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

955 lines
4.6 MiB

This file contains invisible Unicode characters!

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

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

(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+6XX":function(R,D,n){var y=n("y1pI");function g(S){return y(this.__data__,S)>-1}R.exports=g},"+BJd":function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("6MrE"),m=n.n(S)},"+QRC":function(R,D,n){"use strict";var y=n("E9nw"),g={"text/plain":"Text","text/html":"Url",default:"Text"},S="Copy to clipboard: #{key}, Enter";function m(f){var d=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return f.replace(/#{\s*key\s*}/g,d)}function p(f,d){var l,a,i,t,o,e,u=!1;d||(d={}),l=d.debug||!1;try{i=y(),t=document.createRange(),o=document.getSelection(),e=document.createElement("span"),e.textContent=f,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(s){if(s.stopPropagation(),d.format)if(s.preventDefault(),typeof s.clipboardData=="undefined"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var c=g[d.format]||g.default;window.clipboardData.setData(c,f)}else s.clipboardData.clearData(),s.clipboardData.setData(d.format,f);d.onCopy&&(s.preventDefault(),d.onCopy(s.clipboardData))}),document.body.appendChild(e),t.selectNodeContents(e),o.addRange(t);var r=document.execCommand("copy");if(!r)throw new Error("copy command was unsuccessful");u=!0}catch(s){l&&console.error("unable to copy using execCommand: ",s),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(d.format||"text",f),d.onCopy&&d.onCopy(window.clipboardData),u=!0}catch(c){l&&console.error("unable to copy using clipboardData: ",c),l&&console.error("falling back to prompt"),a=m("message"in d?d.message:S),window.prompt(a,f)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(t):o.removeAllRanges()),e&&document.body.removeChild(e),i()}return u}R.exports=p},"+TT/":function(R,D,n){var y=n("bYtY"),g=n("mFDi"),S=n("OELB"),m=S.parsePercent,p=n("7aKB"),f=y.each,d=["left","right","top","bottom","width","height"],l=[["width","left","right"],["height","top","bottom"]];function a(A,b,x,E,T){var _=0,C=0;E==null&&(E=Infinity),T==null&&(T=Infinity);var w=0;b.eachChild(function(O,I){var k=O.position,M=O.getBoundingRect(),U=b.childAt(I+1),P=U&&U.getBoundingRect(),X,F;if(A==="horizontal"){var j=M.width+(P?-P.x+M.x:0);X=_+j,X>E||O.newline?(_=0,X=j,C+=w+x,w=M.height):w=Math.max(w,M.height)}else{var K=M.height+(P?-P.y+M.y:0);F=C+K,F>T||O.newline?(_+=w+x,C=0,F=K,w=M.width):w=Math.max(w,M.width)}if(O.newline)return;k[0]=_,k[1]=C,A==="horizontal"?_=X+x:C=F+x})}var i=a,t=y.curry(a,"vertical"),o=y.curry(a,"horizontal");function e(A,b,x){var E=b.width,T=b.height,_=m(A.x,E),C=m(A.y,T),w=m(A.x2,E),O=m(A.y2,T);return(isNaN(_)||isNaN(parseFloat(A.x)))&&(_=0),(isNaN(w)||isNaN(parseFloat(A.x2)))&&(w=E),(isNaN(C)||isNaN(parseFloat(A.y)))&&(C=0),(isNaN(O)||isNaN(parseFloat(A.y2)))&&(O=T),x=p.normalizeCssArray(x||0),{width:Math.max(w-_-x[1]-x[3],0),height:Math.max(O-C-x[0]-x[2],0)}}function u(A,b,x){x=p.normalizeCssArray(x||0);var E=b.width,T=b.height,_=m(A.left,E),C=m(A.top,T),w=m(A.right,E),O=m(A.bottom,T),I=m(A.width,E),k=m(A.height,T),M=x[2]+x[0],U=x[1]+x[3],P=A.aspect;isNaN(I)&&(I=E-w-U-_),isNaN(k)&&(k=T-O-M-C),P!=null&&(isNaN(I)&&isNaN(k)&&(P>E/T?I=E*.8:k=T*.8),isNaN(I)&&(I=P*k),isNaN(k)&&(k=I/P)),isNaN(_)&&(_=E-w-I-U),isNaN(C)&&(C=T-O-k-M);switch(A.left||A.right){case"center":_=E/2-I/2-x[3];break;case"right":_=E-I-U;break}switch(A.top||A.bottom){case"middle":case"center":C=T/2-k/2-x[0];break;case"bottom":C=T-k-M;break}_=_||0,C=C||0,isNaN(I)&&(I=E-U-_-(w||0)),isNaN(k)&&(k=T-M-C-(O||0));var X=new g(_+x[3],C+x[0],I,k);return X.margin=x,X}function r(A,b,x,E,T){var _=!T||!T.hv||T.hv[0],C=!T||!T.hv||T.hv[1],w=T&&T.boundingMode||"all";if(!_&&!C)return;var O;if(w==="raw")O=A.type==="group"?new g(0,0,+b.width||0,+b.height||0):A.getBoundingRect();else if(O=A.getBoundingRect(),A.needLocalTransform()){var I=A.getLocalTransform();O=O.clone(),O.applyTransform(I)}b=u(y.defaults({width:O.width,height:O.height},b),x,E);var k=A.position,M=_?b.x-O.x:0,U=C?b.y-O.y:0;A.attr("position",w==="raw"?[M,U]:[k[0]+M,k[1]+U])}function s(A,b){return A[l[b][0]]!=null||A[l[b][1]]!=null&&A[l[b][2]]!=null}function c(A,b,x){!y.isObject(x)&&(x={});var E=x.ignoreSize;!y.isArray(E)&&(E=[E,E]);var T=C(l[0],0),_=C(l[1],1);I(l[0],A,T),I(l[1],A,_);function C(k,M){var U={},P=0,X={},F=0,j=2;if(f(k,function(V){X[V]=A[V]}),f(k,function(V){w(b,V)&&(U[V]=X[V]=b[V]),O(U,V)&&P++,O(X,V)&&F++}),E[M])return O(b,k[1])?X[k[2]]=null:O(b,k[2])&&(X[k[1]]=null),X;if(F===j||!P)return X;if(P>=j)return U;for(var K=0;K<k.length;K++){var z=k[K];if(!w(U,z)&&w(A,z)){U[z]=A[z];break}}return U}function w(k,M){return k.hasOwnProperty(M)}function O(k,M){return k[M]!=null&&k[M]!=="auto"}function I(k,M,U){f(k,function(P){M[P]=U[P]})}}function h(A){return v({},A)}function v(A,b){return b&&A&&f(d,function(x){b.hasOwnProperty(x)&&(A[x]=b[x])}),A}D.LOCATION_PARAMS=d,D.HV_NAMES=l,D.box=i,D.vbox=t,D.hbox=o,D.getAvailableSize=e,D.getLayoutRect=u,D.positionElement=r,D.sizeCalculable=s,D.mergeLayoutParam=c,D.getLayoutParams=h,D.copyLayoutParams=v},"+Zaj":function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("ugBc")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="CalendarOutlined";var i=m.forwardRef(a);D.default=i},"+d4F":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("y3Yb"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},"+eQT":function(R,D,n){"use strict";var y=n("wd/R"),g=n.n(y),S=n("Kwbf"),m={getNow:function(){return g()()},getWeekDay:function(_r){var rn=_r.clone().locale("en_US");return rn.weekday()+rn.localeData().firstDayOfWeek()},getYear:function(_r){return _r.year()},getMonth:function(_r){return _r.month()},getDate:function(_r){return _r.date()},getHour:function(_r){return _r.hour()},getMinute:function(_r){return _r.minute()},getSecond:function(_r){return _r.second()},addYear:function(_r,rn){var Jr=_r.clone();return Jr.add(rn,"year")},addMonth:function(_r,rn){var Jr=_r.clone();return Jr.add(rn,"month")},addDate:function(_r,rn){var Jr=_r.clone();return Jr.add(rn,"day")},setYear:function(_r,rn){var Jr=_r.clone();return Jr.year(rn)},setMonth:function(_r,rn){var Jr=_r.clone();return Jr.month(rn)},setDate:function(_r,rn){var Jr=_r.clone();return Jr.date(rn)},setHour:function(_r,rn){var Jr=_r.clone();return Jr.hour(rn)},setMinute:function(_r,rn){var Jr=_r.clone();return Jr.minute(rn)},setSecond:function(_r,rn){var Jr=_r.clone();return Jr.second(rn)},isAfter:function(_r,rn){return _r.isAfter(rn)},isValidate:function(_r){return _r.isValid()},locale:{getWeekFirstDay:function(_r){var rn=g()().locale(_r);return rn.localeData().firstDayOfWeek()},getWeek:function(_r,rn){var Jr=rn.clone(),Jn=Jr.locale(_r);return Jn.week()},getShortWeekDays:function(_r){var rn=g()().locale(_r);return rn.localeData().weekdaysMin()},getShortMonths:function(_r){var rn=g()().locale(_r);return rn.localeData().monthsShort()},format:function(_r,rn,Jr){var Jn=rn.clone(),fn=Jn.locale(_r);return fn.format(Jr)},parse:function(_r,rn,Jr){for(var Jn=[],fn=0;fn<Jr.length;fn+=1){var Yr=Jr[fn],ii=rn;if(Yr.includes("wo")||Yr.includes("Wo")){Yr=Yr.replace(/wo/g,"w").replace(/Wo/g,"W");var on=Yr.match(/[-YyMmDdHhSsWwGg]+/g),zn=ii.match(/[-\d]+/g);on&&zn?(Yr=on.join(""),ii=zn.join("")):Jn.push(Yr.replace(/o/g,""))}var ui=g()(ii,Yr,_r,!0);if(ui.isValid())return ui}for(var di=0;di<Jn.length;di+=1){var li=g()(rn,Jn[di],_r,!1);if(li.isValid())return Object(S.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),li}return null}}},p=m,f=n("pVnL"),d=n.n(f),l=n("q1tI"),a=n.n(l),i=n("2/Rp");function t(vt){return l.createElement(i.a,d()({size:"small",type:"primary"},vt))}var o=n("mr32");function e(vt){return l.createElement(o.a,d()({color:"blue"},vt))}var u=n("lSNA"),r=n.n(u),s=n("lwsE"),c=n.n(s),h=n("W8MJ"),v=n.n(h),A=n("7W2i"),b=n.n(A),x=n("LQ03"),E=n.n(x),T=n("TSYQ"),_=n.n(T),C=n("r/2G"),w=n.n(C),O=n("XzQk"),I=n.n(O),k=n("kbBi"),M=n.n(k),U=n("1OyB"),P=n("vuIU"),X=n("Ji7U"),F=n("LK+K"),j=n("rePB"),K=n("VTBJ"),z=n("ODXe"),V=n("6cGi"),Q=n("U8pU"),G=n("4IlW"),te=l.createContext({}),q=te,se={visibility:"hidden"};function re(vt){var _r=vt.prefixCls,rn=vt.prevIcon,Jr=rn===void 0?"\u2039":rn,Jn=vt.nextIcon,fn=Jn===void 0?"\u203A":Jn,Yr=vt.superPrevIcon,ii=Yr===void 0?"\xAB":Yr,on=vt.superNextIcon,zn=on===void 0?"\xBB":on,ui=vt.onSuperPrev,di=vt.onSuperNext,li=vt.onPrev,Ti=vt.onNext,vi=vt.children,yi=l.useContext(q),Ni=yi.hideNextBtn,ia=yi.hidePrevBtn;return l.createElement("div",{className:_r},ui&&l.createElement("button",{type:"button",onClick:ui,tabIndex:-1,className:"".concat(_r,"-super-prev-btn"),style:ia?se:{}},ii),li&&l.createElement("button",{type:"button",onClick:li,tabIndex:-1,className:"".concat(_r,"-prev-btn"),style:ia?se:{}},Jr),l.createElement("div",{className:"".concat(_r,"-view")},vi),Ti&&l.createElement("button",{type:"button",onClick:Ti,tabIndex:-1,className:"".concat(_r,"-next-btn"),style:Ni?se:{}},fn),di&&l.createElement("button",{type:"button",onClick:di,tabIndex:-1,className:"".concat(_r,"-super-next-btn"),style:Ni?se:{}},zn))}var we=re;function Oe(vt){var _r=l.useContext(q),rn=_r.hideHeader;if(rn)return null;var Jr=vt.prefixCls,Jn=vt.generateConfig,fn=vt.locale,Yr=vt.value,ii=vt.format,on="".concat(Jr,"-header");return l.createElement(we,{prefixCls:on},Yr?Jn.locale.format(fn.locale,Yr,ii):"\xA0")}var Me=Oe,Qe=n("YrtM"),Ve=n("KQm4"),dt=new Map;function Fe(vt,_r,rn){if(dt.get(vt)&&cancelAnimationFrame(dt.get(vt)),rn<=0){dt.set(vt,requestAnimationFrame(function(){vt.scrollTop=_r}));return}var Jr=_r-vt.scrollTop,Jn=Jr/rn*10;dt.set(vt,requestAnimationFrame(function(){vt.scrollTop+=Jn,vt.scrollTop!==_r&&Fe(vt,_r,rn-10)}))}function ue(vt,_r){var rn=_r.onLeftRight,Jr=_r.onCtrlLeftRight,Jn=_r.onUpDown,fn=_r.onPageUpDown,Yr=_r.onEnter,ii=vt.which,on=vt.ctrlKey,zn=vt.metaKey;switch(ii){case G.a.LEFT:if(on||zn){if(Jr)return Jr(-1),!0}else if(rn)return rn(-1),!0;break;case G.a.RIGHT:if(on||zn){if(Jr)return Jr(1),!0}else if(rn)return rn(1),!0;break;case G.a.UP:if(Jn)return Jn(-1),!0;break;case G.a.DOWN:if(Jn)return Jn(1),!0;break;case G.a.PAGE_UP:if(fn)return fn(-1),!0;break;case G.a.PAGE_DOWN:if(fn)return fn(1),!0;break;case G.a.ENTER:if(Yr)return Yr(),!0;break}return!1}function et(vt,_r,rn,Jr){var Jn=vt;if(!Jn)switch(_r){case"time":Jn=Jr?"hh:mm:ss a":"HH:mm:ss";break;case"week":Jn="gggg-wo";break;case"month":Jn="YYYY-MM";break;case"quarter":Jn="YYYY-[Q]Q";break;case"year":Jn="YYYY";break;default:Jn=rn?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Jn}function he(vt,_r){var rn=vt==="time"?8:10;return Math.max(rn,_r.length)+2}var J=null,Y=new Set;function $(vt){return!J&&typeof window!="undefined"&&window.addEventListener&&(J=function(rn){Object(Ve.a)(Y).forEach(function(Jr){Jr(rn)})},window.addEventListener("mousedown",J)),Y.add(vt),function(){Y.delete(vt),Y.size===0&&(window.removeEventListener("mousedown",J),J=null)}}var de=function(_r){return _r==="month"||_r==="date"?"year":_r},be=function(_r){return _r==="date"?"month":_r},Te=function(_r){return _r==="month"||_r==="date"?"quarter":_r},Be=function(_r){return _r==="date"?"week":_r},fe={year:de,month:be,quarter:Te,week:Be,time:null,date:null};function xe(vt,_r){return vt.some(function(rn){return rn&&rn.contains(_r)})}function ke(vt){var _r=vt.prefixCls,rn=vt.units,Jr=vt.onSelect,Jn=vt.value,fn=vt.active,Yr=vt.hideDisabledOptions,ii="".concat(_r,"-cell"),on=l.useContext(q),zn=on.open,ui=l.useRef(null),di=l.useRef(new Map);return l.useLayoutEffect(function(){var li=di.current.get(Jn);li&&zn!==!1&&Fe(ui.current,li.offsetTop,120)},[Jn]),l.useLayoutEffect(function(){if(zn){var li=di.current.get(Jn);li&&Fe(ui.current,li.offsetTop,0)}},[zn]),l.createElement("ul",{className:_()("".concat(_r,"-column"),Object(j.a)({},"".concat(_r,"-column-active"),fn)),ref:ui,style:{position:"relative"}},rn.map(function(li){var Ti;return Yr&&li.disabled?null:l.createElement("li",{key:li.value,ref:function(yi){di.current.set(li.value,yi)},className:_()(ii,(Ti={},Object(j.a)(Ti,"".concat(ii,"-disabled"),li.disabled),Object(j.a)(Ti,"".concat(ii,"-selected"),Jn===li.value),Ti)),onClick:function(){if(li.disabled)return;Jr(li.value)}},l.createElement("div",{className:"".concat(ii,"-inner")},li.label))}))}var nt=ke;function Ct(vt,_r){for(var rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Jr=String(vt);Jr.length<_r;)Jr="".concat(rn).concat(vt);return Jr}var pt=function(){for(var _r=arguments.length,rn=new Array(_r),Jr=0;Jr<_r;Jr++)rn[Jr]=arguments[Jr];return rn};function He(vt){return vt==null?[]:Array.isArray(vt)?vt:[vt]}function nr(vt){var _r={};return Object.keys(vt).forEach(function(rn){(rn.substr(0,5)==="data-"||rn.substr(0,5)==="aria-"||rn==="role"||rn==="name")&&rn.substr(0,7)!=="data-__"&&(_r[rn]=vt[rn])}),_r}function ht(vt,_r){return vt?vt[_r]:null}function Gt(vt,_r,rn){var Jr=[ht(vt,0),ht(vt,1)];return Jr[rn]=typeof _r=="function"?_r(Jr[rn]):_r,!Jr[0]&&!Jr[1]?null:Jr}function pr(vt,_r,rn,Jr,Jn){var fn=vt.setHour(_r,rn);return fn=vt.setMinute(fn,Jr),fn=vt.setSecond(fn,Jn),fn}function Qt(vt,_r,rn,Jr,Jn,fn){var Yr=Math.floor(vt/Jr)*Jr;if(Yr<vt)return[Yr,60-Jn,60-fn];var ii=Math.floor(_r/Jn)*Jn;if(ii<_r)return[Yr,ii,60-fn];var on=Math.floor(rn/fn)*fn;return[Yr,ii,on]}function Ht(vt,_r){if(vt.length!==_r.length)return!0;for(var rn=0;rn<vt.length;rn+=1)if(vt[rn].disabled!==_r[rn].disabled)return!0;return!1}function Jt(vt,_r,rn,Jr){for(var Jn=[],fn=vt;fn<=_r;fn+=rn)Jn.push({label:Ct(fn,2),value:fn,disabled:(Jr||[]).includes(fn)});return Jn}function Ge(vt){var _r=vt.generateConfig,rn=vt.prefixCls,Jr=vt.operationRef,Jn=vt.activeColumnIndex,fn=vt.value,Yr=vt.showHour,ii=vt.showMinute,on=vt.showSecond,zn=vt.use12Hours,ui=vt.hourStep,di=ui===void 0?1:ui,li=vt.minuteStep,Ti=li===void 0?1:li,vi=vt.secondStep,yi=vi===void 0?1:vi,Ni=vt.disabledHours,ia=vt.disabledMinutes,Ki=vt.disabledSeconds,fa=vt.hideDisabledOptions,Ya=vt.onSelect,Sa=[],wa="".concat(rn,"-content"),Da="".concat(rn,"-time-panel"),ja,ko=fn?_r.getHour(fn):-1,ro=fn?_r.getMinute(fn):-1,pa=fn?_r.getSecond(fn):-1,Ea=function(Ao,$a,ss,_s){var Fo=fn||_r.getNow(),il=Math.max(0,$a),Eo=Math.max(0,ss),zo=Math.max(0,_s);return Fo=pr(_r,Fo,!zn||!Ao?il:il+12,Eo,zo),Fo},Fa=Jt(0,23,di,Ni&&Ni()),Ka=Object(Qe.a)(function(){return Fa},Fa,Ht);zn&&(ja=ko>=12,ko%=12);var lo=l.useMemo(function(){if(!zn)return[!1,!1];var co=[!0,!0];return Ka.forEach(function(Ao){var $a=Ao.disabled,ss=Ao.value;if($a)return;ss>=12?co[1]=!1:co[0]=!1}),co},[zn,Ka]),so=Object(z.a)(lo,2),To=so[0],Lo=so[1],is=l.useMemo(function(){return zn?Ka.filter(ja?function(co){return co.value>=12}:function(co){return co.value<12}).map(function(co){var Ao=co.value%12,$a=Ao===0?"12":Ct(Ao,2);return Object(K.a)(Object(K.a)({},co),{},{label:$a,value:Ao})}):Ka},[zn,Ka]),cs=Jt(0,59,Ti,ia&&ia(ko)),Rs=Jt(0,59,yi,Ki&&Ki(ko,ro));Jr.current={onUpDown:function(Ao){var $a=Sa[Jn];if($a)for(var ss=$a.units.findIndex(function(Eo){return Eo.value===$a.value}),_s=$a.units.length,Fo=1;Fo<_s;Fo+=1){var il=$a.units[(ss+Ao*Fo+_s)%_s];if(il.disabled!==!0){$a.onSelect(il.value);break}}}};function Ko(co,Ao,$a,ss,_s){co!==!1&&Sa.push({node:l.cloneElement(Ao,{prefixCls:Da,value:$a,active:Jn===Sa.length,onSelect:_s,units:ss,hideDisabledOptions:fa}),onSelect:_s,value:$a,units:ss})}Ko(Yr,l.createElement(nt,{key:"hour"}),ko,is,function(co){Ya(Ea(ja,co,ro,pa),"mouse")}),Ko(ii,l.createElement(nt,{key:"minute"}),ro,cs,function(co){Ya(Ea(ja,ko,co,pa),"mouse")}),Ko(on,l.createElement(nt,{key:"second"}),pa,Rs,function(co){Ya(Ea(ja,ko,ro,co),"mouse")});var as=-1;return typeof ja=="boolean"&&(as=ja?1:0),Ko(zn===!0,l.createElement(nt,{key:"12hours"}),as,[{label:"AM",value:0,disabled:To},{label:"PM",value:1,disabled:Lo}],function(co){Ya(Ea(!!co,ko,ro,pa),"mouse")}),l.createElement("div",{className:wa},Sa.map(function(co){var Ao=co.node;return Ao}))}var pe=Ge,oe=function(_r){return _r.filter(function(rn){return rn!==!1}).length};function ct(vt){var _r=vt.generateConfig,rn=vt.format,Jr=rn===void 0?"HH:mm:ss":rn,Jn=vt.prefixCls,fn=vt.active,Yr=vt.operationRef,ii=vt.showHour,on=vt.showMinute,zn=vt.showSecond,ui=vt.use12Hours,di=ui===void 0?!1:ui,li=vt.onSelect,Ti=vt.value,vi="".concat(Jn,"-time-panel"),yi=l.useRef(),Ni=l.useState(-1),ia=Object(z.a)(Ni,2),Ki=ia[0],fa=ia[1],Ya=oe([ii,on,zn,di]);return Yr.current={onKeyDown:function(wa){return ue(wa,{onLeftRight:function(ja){fa((Ki+ja+Ya)%Ya)},onUpDown:function(ja){Ki===-1?fa(0):yi.current&&yi.current.onUpDown(ja)},onEnter:function(){li(Ti||_r.getNow(),"key"),fa(-1)}})},onBlur:function(){fa(-1)}},l.createElement("div",{className:_()(vi,Object(j.a)({},"".concat(vi,"-active"),fn))},l.createElement(Me,Object.assign({},vt,{format:Jr,prefixCls:Jn})),l.createElement(pe,Object.assign({},vt,{prefixCls:Jn,activeColumnIndex:Ki,operationRef:yi})))}var qe=ct,me=7;function Kt(vt,_r){return!vt&&!_r?!0:!vt||!_r?!1:void 0}function vr(vt,_r,rn){var Jr=Kt(_r,rn);if(typeof Jr=="boolean")return Jr;var Jn=Math.floor(vt.getYear(_r)/10),fn=Math.floor(vt.getYear(rn)/10);return Jn===fn}function bt(vt,_r,rn){var Jr=Kt(_r,rn);return typeof Jr=="boolean"?Jr:vt.getYear(_r)===vt.getYear(rn)}function or(vt,_r){var rn=Math.floor(vt.getMonth(_r)/3);return rn+1}function _t(vt,_r,rn){var Jr=Kt(_r,rn);return typeof Jr=="boolean"?Jr:bt(vt,_r,rn)&&or(vt,_r)===or(vt,rn)}function jt(vt,_r,rn){var Jr=Kt(_r,rn);return typeof Jr=="boolean"?Jr:bt(vt,_r,rn)&&vt.getMonth(_r)===vt.getMonth(rn)}function ut(vt,_r,rn){var Jr=Kt(_r,rn);return typeof Jr=="boolean"?Jr:vt.getYear(_r)===vt.getYear(rn)&&vt.getMonth(_r)===vt.getMonth(rn)&&vt.getDate(_r)===vt.getDate(rn)}function St(vt,_r,rn){var Jr=Kt(_r,rn);return typeof Jr=="boolean"?Jr:vt.getHour(_r)===vt.getHour(rn)&&vt.getMinute(_r)===vt.getMinute(rn)&&vt.getSecond(_r)===vt.getSecond(rn)}function mt(vt,_r,rn,Jr){var Jn=Kt(rn,Jr);return typeof Jn=="boolean"?Jn:vt.locale.getWeek(_r,rn)===vt.locale.getWeek(_r,Jr)}function lt(vt,_r,rn){return ut(vt,_r,rn)&&St(vt,_r,rn)}function tt(vt,_r,rn,Jr){return!_r||!rn||!Jr?!1:!ut(vt,_r,Jr)&&!ut(vt,rn,Jr)&&vt.isAfter(Jr,_r)&&vt.isAfter(rn,Jr)}function Cr(vt,_r,rn){var Jr=_r.locale.getWeekFirstDay(vt),Jn=_r.setDate(rn,1),fn=_r.getWeekDay(Jn),Yr=_r.addDate(Jn,Jr-fn);return _r.getMonth(Yr)===_r.getMonth(rn)&&_r.getDate(Yr)>1&&(Yr=_r.addDate(Yr,-7)),Yr}function nn(vt,_r,rn){var Jr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(_r){case"year":return rn.addYear(vt,Jr*10);case"quarter":case"month":return rn.addYear(vt,Jr);default:return rn.addMonth(vt,Jr)}}var mn=l.createContext({}),Bn=mn;function oi(vt){var _r=vt.cellPrefixCls,rn=vt.generateConfig,Jr=vt.rangedValue,Jn=vt.hoverRangedValue,fn=vt.isInView,Yr=vt.isSameCell,ii=vt.offsetCell,on=vt.today,zn=vt.value;function ui(di){var li,Ti=ii(di,-1),vi=ii(di,1),yi=ht(Jr,0),Ni=ht(Jr,1),ia=ht(Jn,0),Ki=ht(Jn,1),fa=tt(rn,ia,Ki,di);function Ya(ro){return Yr(yi,ro)}function Sa(ro){return Yr(Ni,ro)}var wa=Yr(ia,di),Da=Yr(Ki,di),ja=(fa||Da)&&(!fn(Ti)||Sa(Ti)),ko=(fa||wa)&&(!fn(vi)||Ya(vi));return li={},Object(j.a)(li,"".concat(_r,"-in-view"),fn(di)),Object(j.a)(li,"".concat(_r,"-in-range"),tt(rn,yi,Ni,di)),Object(j.a)(li,"".concat(_r,"-range-start"),Ya(di)),Object(j.a)(li,"".concat(_r,"-range-end"),Sa(di)),Object(j.a)(li,"".concat(_r,"-range-start-single"),Ya(di)&&!Ni),Object(j.a)(li,"".concat(_r,"-range-end-single"),Sa(di)&&!yi),Object(j.a)(li,"".concat(_r,"-range-start-near-hover"),Ya(di)&&(Yr(Ti,ia)||tt(rn,ia,Ki,Ti))),Object(j.a)(li,"".concat(_r,"-range-end-near-hover"),Sa(di)&&(Yr(vi,Ki)||tt(rn,ia,Ki,vi))),Object(j.a)(li,"".concat(_r,"-range-hover"),fa),Object(j.a)(li,"".concat(_r,"-range-hover-start"),wa),Object(j.a)(li,"".concat(_r,"-range-hover-end"),Da),Object(j.a)(li,"".concat(_r,"-range-hover-edge-start"),ja),Object(j.a)(li,"".concat(_r,"-range-hover-edge-end"),ko),Object(j.a)(li,"".concat(_r,"-range-hover-edge-start-near-range"),ja&&Yr(Ti,Ni)),Object(j.a)(li,"".concat(_r,"-range-hover-edge-end-near-range"),ko&&Yr(vi,yi)),Object(j.a)(li,"".concat(_r,"-today"),Yr(on,di)),Object(j.a)(li,"".concat(_r,"-selected"),Yr(zn,di)),li}return ui}function wn(vt){for(var _r=vt.prefixCls,rn=vt.disabledDate,Jr=vt.onSelect,Jn=vt.rowNum,fn=vt.colNum,Yr=vt.prefixColumn,ii=vt.rowClassName,on=vt.baseDate,zn=vt.getCellClassName,ui=vt.getCellText,di=vt.getCellNode,li=vt.getCellDate,Ti=vt.titleCell,vi=vt.headerCells,yi=l.useContext(q),Ni=yi.onDateMouseEnter,ia=yi.onDateMouseLeave,Ki="".concat(_r,"-cell"),fa=[],Ya=0;Ya<Jn;Ya+=1){for(var Sa=[],wa=void 0,Da=function(ro){var pa=Ya*fn+ro,Ea=li(on,pa),Fa=rn&&rn(Ea);ro===0&&(wa=Ea,Yr&&Sa.push(Yr(wa))),Sa.push(l.createElement("td",{key:ro,title:Ti&&Ti(Ea),className:_()(Ki,Object(K.a)(Object(j.a)({},"".concat(Ki,"-disabled"),Fa),zn(Ea))),onClick:function(){Fa||Jr(Ea)},onMouseEnter:function(){!Fa&&Ni&&Ni(Ea)},onMouseLeave:function(){!Fa&&ia&&ia(Ea)}},di?di(Ea):l.createElement("div",{className:"".concat(Ki,"-inner")},ui(Ea))))},ja=0;ja<fn;ja+=1)Da(ja);fa.push(l.createElement("tr",{key:Ya,className:ii&&ii(wa)},Sa))}return l.createElement("div",{className:"".concat(_r,"-body")},l.createElement("table",{className:"".concat(_r,"-content")},vi&&l.createElement("thead",null,l.createElement("tr",null,vi)),l.createElement("tbody",null,fa)))}function Rn(vt){var _r=vt.prefixCls,rn=vt.generateConfig,Jr=vt.prefixColumn,Jn=vt.locale,fn=vt.rowCount,Yr=vt.viewDate,ii=vt.value,on=vt.dateRender,zn=l.useContext(Bn),ui=zn.rangedValue,di=zn.hoverRangedValue,li=Cr(Jn.locale,rn,Yr),Ti="".concat(_r,"-cell"),vi=rn.locale.getWeekFirstDay(Jn.locale),yi=rn.getNow(),Ni=[],ia=Jn.shortWeekDays||(rn.locale.getShortWeekDays?rn.locale.getShortWeekDays(Jn.locale):[]);Jr&&Ni.push(l.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Ki=0;Ki<me;Ki+=1)Ni.push(l.createElement("th",{key:Ki},ia[(Ki+vi)%me]));var fa=oi({cellPrefixCls:Ti,today:yi,value:ii,generateConfig:rn,rangedValue:Jr?null:ui,hoverRangedValue:Jr?null:di,isSameCell:function(wa,Da){return ut(rn,wa,Da)},isInView:function(wa){return jt(rn,wa,Yr)},offsetCell:function(wa,Da){return rn.addDate(wa,Da)}}),Ya=on?function(Sa){return on(Sa,yi)}:void 0;return l.createElement(wn,Object.assign({},vt,{rowNum:fn,colNum:me,baseDate:li,getCellNode:Ya,getCellText:rn.getDate,getCellClassName:fa,getCellDate:rn.addDate,titleCell:function(wa){return rn.locale.format(Jn.locale,wa,"YYYY-MM-DD")},headerCells:Ni}))}var Zt=Rn;function Tt(vt){var _r=vt.prefixCls,rn=vt.generateConfig,Jr=vt.locale,Jn=vt.viewDate,fn=vt.onNextMonth,Yr=vt.onPrevMonth,ii=vt.onNextYear,on=vt.onPrevYear,zn=vt.onYearClick,ui=vt.onMonthClick,di=l.useContext(q),li=di.hideHeader;if(li)return null;var Ti="".concat(_r,"-header"),vi=Jr.shortMonths||(rn.locale.getShortMonths?rn.locale.getShortMonths(Jr.locale):[]),yi=rn.getMonth(Jn),Ni=l.createElement("button",{type:"button",key:"year",onClick:zn,tabIndex:-1,className:"".concat(_r,"-year-btn")},rn.locale.format(Jr.locale,Jn,Jr.yearFormat)),ia=l.createElement("button",{type:"button",key:"month",onClick:ui,tabIndex:-1,className:"".concat(_r,"-month-btn")},Jr.monthFormat?rn.locale.format(Jr.locale,Jn,Jr.monthFormat):vi[yi]),Ki=Jr.monthBeforeYear?[ia,Ni]:[Ni,ia];return l.createElement(we,Object.assign({},vt,{prefixCls:Ti,onSuperPrev:on,onPrev:Yr,onNext:fn,onSuperNext:ii}),Ki)}var De=Tt,Re=6;function Pe(vt){var _r=vt.prefixCls,rn=vt.panelName,Jr=rn===void 0?"date":rn,Jn=vt.keyboardConfig,fn=vt.active,Yr=vt.operationRef,ii=vt.generateConfig,on=vt.value,zn=vt.viewDate,ui=vt.onViewDateChange,di=vt.onPanelChange,li=vt.onSelect,Ti="".concat(_r,"-").concat(Jr,"-panel");Yr.current={onKeyDown:function(ia){return ue(ia,Object(K.a)({onLeftRight:function(fa){li(ii.addDate(on||zn,fa),"key")},onCtrlLeftRight:function(fa){li(ii.addYear(on||zn,fa),"key")},onUpDown:function(fa){li(ii.addDate(on||zn,fa*me),"key")},onPageUpDown:function(fa){li(ii.addMonth(on||zn,fa),"key")}},Jn))}};var vi=function(ia){var Ki=ii.addYear(zn,ia);ui(Ki),di(null,Ki)},yi=function(ia){var Ki=ii.addMonth(zn,ia);ui(Ki),di(null,Ki)};return l.createElement("div",{className:_()(Ti,Object(j.a)({},"".concat(Ti,"-active"),fn))},l.createElement(De,Object.assign({},vt,{prefixCls:_r,value:on,viewDate:zn,onPrevYear:function(){vi(-1)},onNextYear:function(){vi(1)},onPrevMonth:function(){yi(-1)},onNextMonth:function(){yi(1)},onMonthClick:function(){di("month",zn)},onYearClick:function(){di("year",zn)}})),l.createElement(Zt,Object.assign({},vt,{onSelect:function(ia){return li(ia,"mouse")},prefixCls:_r,value:on,viewDate:zn,rowCount:Re})))}var rt=Pe;function wt(vt,_r,rn){if(!rn)return _r;var Jr=_r;return Jr=vt.setHour(Jr,vt.getHour(rn)),Jr=vt.setMinute(Jr,vt.getMinute(rn)),Jr=vt.setSecond(Jr,vt.getSecond(rn)),Jr}var Ot=pt("date","time");function $t(vt){var _r=vt.prefixCls,rn=vt.operationRef,Jr=vt.generateConfig,Jn=vt.value,fn=vt.defaultValue,Yr=vt.disabledTime,ii=vt.showTime,on=vt.onSelect,zn="".concat(_r,"-datetime-panel"),ui=l.useState(null),di=Object(z.a)(ui,2),li=di[0],Ti=di[1],vi=l.useRef({}),yi=l.useRef({}),Ni=Object(Q.a)(ii)==="object"?Object(K.a)({},ii):{};function ia(Sa){var wa=Ot.indexOf(li)+Sa,Da=Ot[wa]||null;return Da}var Ki=function(wa){yi.current.onBlur&&yi.current.onBlur(wa),Ti(null)};rn.current={onKeyDown:function(wa){if(wa.which===G.a.TAB){var Da=ia(wa.shiftKey?-1:1);return Ti(Da),Da&&wa.preventDefault(),!0}if(li){var ja=li==="date"?vi:yi;return ja.current&&ja.current.onKeyDown&&ja.current.onKeyDown(wa),!0}return[G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN].includes(wa.which)?(Ti("date"),!0):!1},onBlur:Ki,onClose:Ki};var fa=function(wa,Da){var ja=wa;Da==="date"&&!Jn&&Ni.defaultValue?(ja=Jr.setHour(ja,Jr.getHour(Ni.defaultValue)),ja=Jr.setMinute(ja,Jr.getMinute(Ni.defaultValue)),ja=Jr.setSecond(ja,Jr.getSecond(Ni.defaultValue))):Da==="time"&&!Jn&&fn&&(ja=Jr.setYear(ja,Jr.getYear(fn)),ja=Jr.setMonth(ja,Jr.getMonth(fn)),ja=Jr.setDate(ja,Jr.getDate(fn))),on&&on(ja,"mouse")},Ya=Yr?Yr(Jn||null):{};return l.createElement("div",{className:_()(zn,Object(j.a)({},"".concat(zn,"-active"),li))},l.createElement(rt,Object.assign({},vt,{operationRef:vi,active:li==="date",onSelect:function(wa){fa(wt(Jr,wa,ii&&Object(Q.a)(ii)==="object"?ii.defaultValue:null),"date")}})),l.createElement(qe,Object.assign({},vt,{format:void 0},Ni,Ya,{defaultValue:void 0,operationRef:yi,active:li==="time",onSelect:function(wa){fa(wa,"time")}})))}var Mr=$t;function Vr(vt){var _r=vt.prefixCls,rn=vt.generateConfig,Jr=vt.locale,Jn=vt.value,fn="".concat(_r,"-cell"),Yr=function(ui){return l.createElement("td",{key:"week",className:_()(fn,"".concat(fn,"-week"))},rn.locale.getWeek(Jr.locale,ui))},ii="".concat(_r,"-week-panel-row"),on=function(ui){return _()(ii,Object(j.a)({},"".concat(ii,"-selected"),mt(rn,Jr.locale,Jn,ui)))};return l.createElement(rt,Object.assign({},vt,{panelName:"week",prefixColumn:Yr,rowClassName:on,keyboardConfig:{onLeftRight:null}}))}var hn=Vr;function Vt(vt){var _r=vt.prefixCls,rn=vt.generateConfig,Jr=vt.locale,Jn=vt.viewDate,fn=vt.onNextYear,Yr=vt.onPrevYear,ii=vt.onYearClick,on=l.useContext(q),zn=on.hideHeader;if(zn)return null;var ui="".concat(_r,"-header");return l.createElement(we,Object.assign({},vt,{prefixCls:ui,onSuperPrev:Yr,onSuperNext:fn}),l.createElement("button",{type:"button",onClick:ii,className:"".concat(_r,"-year-btn")},rn.locale.format(Jr.locale,Jn,Jr.yearFormat)))}var yt=Vt,xt=3,dr=4;function er(vt){var _r=vt.prefixCls,rn=vt.locale,Jr=vt.value,Jn=vt.viewDate,fn=vt.generateConfig,Yr=vt.monthCellRender,ii=l.useContext(Bn),on=ii.rangedValue,zn=ii.hoverRangedValue,ui="".concat(_r,"-cell"),di=oi({cellPrefixCls:ui,value:Jr,generateConfig:fn,rangedValue:on,hoverRangedValue:zn,isSameCell:function(Ni,ia){return jt(fn,Ni,ia)},isInView:function(){return!0},offsetCell:function(Ni,ia){return fn.addMonth(Ni,ia)}}),li=rn.shortMonths||(fn.locale.getShortMonths?fn.locale.getShortMonths(rn.locale):[]),Ti=fn.setMonth(Jn,0),vi=Yr?function(yi){return Yr(yi,rn)}:void 0;return l.createElement(wn,Object.assign({},vt,{rowNum:dr,colNum:xt,baseDate:Ti,getCellNode:vi,getCellText:function(Ni){return rn.monthFormat?fn.locale.format(rn.locale,Ni,rn.monthFormat):li[fn.getMonth(Ni)]},getCellClassName:di,getCellDate:fn.addMonth,titleCell:function(Ni){return fn.locale.format(rn.locale,Ni,"YYYY-MM")}}))}var Ut=er;function ir(vt){var _r=vt.prefixCls,rn=vt.operationRef,Jr=vt.onViewDateChange,Jn=vt.generateConfig,fn=vt.value,Yr=vt.viewDate,ii=vt.onPanelChange,on=vt.onSelect,zn="".concat(_r,"-month-panel");rn.current={onKeyDown:function(li){return ue(li,{onLeftRight:function(vi){on(Jn.addMonth(fn||Yr,vi),"key")},onCtrlLeftRight:function(vi){on(Jn.addYear(fn||Yr,vi),"key")},onUpDown:function(vi){on(Jn.addMonth(fn||Yr,vi*xt),"key")},onEnter:function(){ii("date",fn||Yr)}})}};var ui=function(li){var Ti=Jn.addYear(Yr,li);Jr(Ti),ii(null,Ti)};return l.createElement("div",{className:zn},l.createElement(yt,Object.assign({},vt,{prefixCls:_r,onPrevYear:function(){ui(-1)},onNextYear:function(){ui(1)},onYearClick:function(){ii("year",Yr)}})),l.createElement(Ut,Object.assign({},vt,{prefixCls:_r,onSelect:function(li){on(li,"mouse"),ii("date",li)}})))}var Ft=ir;function rr(vt){var _r=vt.prefixCls,rn=vt.generateConfig,Jr=vt.locale,Jn=vt.viewDate,fn=vt.onNextYear,Yr=vt.onPrevYear,ii=vt.onYearClick,on=l.useContext(q),zn=on.hideHeader;if(zn)return null;var ui="".concat(_r,"-header");return l.createElement(we,Object.assign({},vt,{prefixCls:ui,onSuperPrev:Yr,onSuperNext:fn}),l.createElement("button",{type:"button",onClick:ii,className:"".concat(_r,"-year-btn")},rn.locale.format(Jr.locale,Jn,Jr.yearFormat)))}var Kr=rr,Rr=4,kr=1;function dn(vt){var _r=vt.prefixCls,rn=vt.locale,Jr=vt.value,Jn=vt.viewDate,fn=vt.generateConfig,Yr=l.useContext(Bn),ii=Yr.rangedValue,on=Yr.hoverRangedValue,zn="".concat(_r,"-cell"),ui=oi({cellPrefixCls:zn,value:Jr,generateConfig:fn,rangedValue:ii,hoverRangedValue:on,isSameCell:function(Ti,vi){return _t(fn,Ti,vi)},isInView:function(){return!0},offsetCell:function(Ti,vi){return fn.addMonth(Ti,vi*3)}}),di=fn.setDate(fn.setMonth(Jn,0),1);return l.createElement(wn,Object.assign({},vt,{rowNum:kr,colNum:Rr,baseDate:di,getCellText:function(Ti){return fn.locale.format(rn.locale,Ti,rn.quarterFormat||"[Q]Q")},getCellClassName:ui,getCellDate:function(Ti,vi){return fn.addMonth(Ti,vi*3)},titleCell:function(Ti){return fn.locale.format(rn.locale,Ti,"YYYY-[Q]Q")}}))}var yn=dn;function ri(vt){var _r=vt.prefixCls,rn=vt.operationRef,Jr=vt.onViewDateChange,Jn=vt.generateConfig,fn=vt.value,Yr=vt.viewDate,ii=vt.onPanelChange,on=vt.onSelect,zn="".concat(_r,"-quarter-panel");rn.current={onKeyDown:function(li){return ue(li,{onLeftRight:function(vi){on(Jn.addMonth(fn||Yr,vi*3),"key")},onCtrlLeftRight:function(vi){on(Jn.addYear(fn||Yr,vi),"key")},onUpDown:function(vi){on(Jn.addYear(fn||Yr,vi),"key")}})}};var ui=function(li){var Ti=Jn.addYear(Yr,li);Jr(Ti),ii(null,Ti)};return l.createElement("div",{className:zn},l.createElement(Kr,Object.assign({},vt,{prefixCls:_r,onPrevYear:function(){ui(-1)},onNextYear:function(){ui(1)},onYearClick:function(){ii("year",Yr)}})),l.createElement(yn,Object.assign({},vt,{prefixCls:_r,onSelect:function(li){on(li,"mouse")}})))}var $n=ri;function pi(vt){var _r=vt.prefixCls,rn=vt.generateConfig,Jr=vt.viewDate,Jn=vt.onPrevDecade,fn=vt.onNextDecade,Yr=vt.onDecadeClick,ii=l.useContext(q),on=ii.hideHeader;if(on)return null;var zn="".concat(_r,"-header"),ui=rn.getYear(Jr),di=Math.floor(ui/je)*je,li=di+je-1;return l.createElement(we,Object.assign({},vt,{prefixCls:zn,onSuperPrev:Jn,onSuperNext:fn}),l.createElement("button",{type:"button",onClick:Yr,className:"".concat(_r,"-decade-btn")},di,"-",li))}var _i=pi,Di=3,Wi=4;function at(vt){var _r=vt.prefixCls,rn=vt.value,Jr=vt.viewDate,Jn=vt.locale,fn=vt.generateConfig,Yr=l.useContext(Bn),ii=Yr.rangedValue,on=Yr.hoverRangedValue,zn="".concat(_r,"-cell"),ui=fn.getYear(Jr),di=Math.floor(ui/je)*je,li=di+je-1,Ti=fn.setYear(Jr,di-Math.ceil((Di*Wi-je)/2)),vi=function(ia){var Ki=fn.getYear(ia);return di<=Ki&&Ki<=li},yi=oi({cellPrefixCls:zn,value:rn,generateConfig:fn,rangedValue:ii,hoverRangedValue:on,isSameCell:function(ia,Ki){return bt(fn,ia,Ki)},isInView:vi,offsetCell:function(ia,Ki){return fn.addYear(ia,Ki)}});return l.createElement(wn,Object.assign({},vt,{rowNum:Wi,colNum:Di,baseDate:Ti,getCellText:fn.getYear,getCellClassName:yi,getCellDate:fn.addYear,titleCell:function(ia){return fn.locale.format(Jn.locale,ia,"YYYY")}}))}var Le=at,je=10;function Xe(vt){var _r=vt.prefixCls,rn=vt.operationRef,Jr=vt.onViewDateChange,Jn=vt.generateConfig,fn=vt.value,Yr=vt.viewDate,ii=vt.sourceMode,on=vt.onSelect,zn=vt.onPanelChange,ui="".concat(_r,"-year-panel");rn.current={onKeyDown:function(Ti){return ue(Ti,{onLeftRight:function(yi){on(Jn.addYear(fn||Yr,yi),"key")},onCtrlLeftRight:function(yi){on(Jn.addYear(fn||Yr,yi*je),"key")},onUpDown:function(yi){on(Jn.addYear(fn||Yr,yi*Di),"key")},onEnter:function(){zn(ii==="date"?"date":"month",fn||Yr)}})}};var di=function(Ti){var vi=Jn.addYear(Yr,Ti*10);Jr(vi),zn(null,vi)};return l.createElement("div",{className:ui},l.createElement(_i,Object.assign({},vt,{prefixCls:_r,onPrevDecade:function(){di(-1)},onNextDecade:function(){di(1)},onDecadeClick:function(){zn("decade",Yr)}})),l.createElement(Le,Object.assign({},vt,{prefixCls:_r,onSelect:function(Ti){zn(ii==="date"?"date":"month",Ti),on(Ti,"mouse")}})))}var it=Xe;function Ze(vt){var _r=vt.prefixCls,rn=vt.generateConfig,Jr=vt.viewDate,Jn=vt.onPrevDecades,fn=vt.onNextDecades,Yr=l.useContext(q),ii=Yr.hideHeader;if(ii)return null;var on="".concat(_r,"-header"),zn=rn.getYear(Jr),ui=Math.floor(zn/gn)*gn,di=ui+gn-1;return l.createElement(we,Object.assign({},vt,{prefixCls:on,onSuperPrev:Jn,onSuperNext:fn}),ui,"-",di)}var ot=Ze,Lt=3,At=4;function mr(vt){var _r=Qr-1,rn=vt.prefixCls,Jr=vt.viewDate,Jn=vt.generateConfig,fn=vt.disabledDate,Yr="".concat(rn,"-cell"),ii=Jn.getYear(Jr),on=Math.floor(ii/Qr)*Qr,zn=Math.floor(ii/gn)*gn,ui=zn+gn-1,di=Jn.setYear(Jr,zn-Math.ceil((Lt*At*Qr-gn)/2)),li=function(vi){var yi,Ni=fn&&fn(vi),ia=Jn.getYear(vi),Ki=ia+_r;return yi={},Object(j.a)(yi,"".concat(Yr,"-disabled"),Ni),Object(j.a)(yi,"".concat(Yr,"-in-view"),zn<=ia&&Ki<=ui),Object(j.a)(yi,"".concat(Yr,"-selected"),ia===on),yi};return l.createElement(wn,Object.assign({},vt,{rowNum:At,colNum:Lt,baseDate:di,getCellText:function(vi){var yi=Jn.getYear(vi);return"".concat(yi,"-").concat(yi+_r)},getCellClassName:li,getCellDate:function(vi,yi){return Jn.addYear(vi,yi*Qr)}}))}var qr=mr,Qr=10,gn=Qr*10;function yr(vt){var _r=vt.prefixCls,rn=vt.onViewDateChange,Jr=vt.generateConfig,Jn=vt.viewDate,fn=vt.operationRef,Yr=vt.onSelect,ii=vt.onPanelChange,on="".concat(_r,"-decade-panel");fn.current={onKeyDown:function(li){return ue(li,{onLeftRight:function(vi){Yr(Jr.addYear(Jn,vi*Qr),"key")},onCtrlLeftRight:function(vi){Yr(Jr.addYear(Jn,vi*gn),"key")},onUpDown:function(vi){Yr(Jr.addYear(Jn,vi*Qr*Lt),"key")},onEnter:function(){ii("year",Jn)}})}};var zn=function(li){var Ti=Jr.addYear(Jn,li*gn);rn(Ti),ii(null,Ti)},ui=function(li){Yr(li,"mouse"),ii("year",li)};return l.createElement("div",{className:on},l.createElement(ot,Object.assign({},vt,{prefixCls:_r,onPrevDecades:function(){zn(-1)},onNextDecades:function(){zn(1)}})),l.createElement(qr,Object.assign({},vt,{prefixCls:_r,onSelect:ui})))}var Vn=yr;function Br(vt,_r,rn){return rn?l.createElement("div",{className:"".concat(vt,"-footer-extra")},rn(_r)):null}function jn(vt){var _r=vt.prefixCls,rn=vt.rangeList,Jr=rn===void 0?[]:rn,Jn=vt.components,fn=Jn===void 0?{}:Jn,Yr=vt.needConfirmButton,ii=vt.onNow,on=vt.onOk,zn=vt.okDisabled,ui=vt.showNow,di=vt.locale,li,Ti;if(Jr.length){var vi=fn.rangeItem||"span";li=l.createElement(l.Fragment,null,Jr.map(function(Ni){var ia=Ni.label,Ki=Ni.onClick,fa=Ni.onMouseEnter,Ya=Ni.onMouseLeave;return l.createElement("li",{key:ia,className:"".concat(_r,"-preset")},l.createElement(vi,{onClick:Ki,onMouseEnter:fa,onMouseLeave:Ya},ia))}))}if(Yr){var yi=fn.button||"button";ii&&!li&&ui!==!1&&(li=l.createElement("li",{className:"".concat(_r,"-now")},l.createElement("a",{className:"".concat(_r,"-now-btn"),onClick:ii},di.now))),Ti=Yr&&l.createElement("li",{className:"".concat(_r,"-ok")},l.createElement(yi,{disabled:zn,onClick:on},di.ok))}return!li&&!Ti?null:l.createElement("ul",{className:"".concat(_r,"-ranges")},li,Ti)}function xn(vt){var _r,rn=vt.prefixCls,Jr=rn===void 0?"rc-picker":rn,Jn=vt.className,fn=vt.style,Yr=vt.locale,ii=vt.generateConfig,on=vt.value,zn=vt.defaultValue,ui=vt.pickerValue,di=vt.defaultPickerValue,li=vt.disabledDate,Ti=vt.mode,vi=vt.picker,yi=vi===void 0?"date":vi,Ni=vt.tabIndex,ia=Ni===void 0?0:Ni,Ki=vt.showNow,fa=vt.showTime,Ya=vt.showToday,Sa=vt.renderExtraFooter,wa=vt.hideHeader,Da=vt.onSelect,ja=vt.onChange,ko=vt.onPanelChange,ro=vt.onMouseDown,pa=vt.onPickerValueChange,Ea=vt.onOk,Fa=vt.components,Ka=vt.direction,lo=vt.hourStep,so=lo===void 0?1:lo,To=vt.minuteStep,Lo=To===void 0?1:To,is=vt.secondStep,cs=is===void 0?1:is,Rs=yi==="date"&&!!fa||yi==="time",Ko=24%so===0,as=60%Lo===0,co=60%cs===0,Ao=l.useContext(q),$a=Ao.operationRef,ss=Ao.panelRef,_s=Ao.onSelect,Fo=Ao.hideRanges,il=Ao.defaultOpenValue,Eo=l.useContext(Bn),zo=Eo.inRange,Fs=Eo.panelPosition,ms=Eo.rangedValue,hs=Eo.hoverRangedValue,Sn=l.useRef({}),Ns=l.useRef(!0),Ll=Object(V.a)(null,{value:on,defaultValue:zn,postState:function(Ai){return!Ai&&il&&yi==="time"?il:Ai}}),el=Object(z.a)(Ll,2),Gs=el[0],ds=el[1],ks=Object(V.a)(null,{value:ui,defaultValue:di||Gs,postState:function(Ai){return Ai||ii.getNow()}}),Qs=Object(z.a)(ks,2),tl=Qs[0],Ss=Qs[1],Bs=function(Ai){Ss(Ai),pa&&pa(Ai)},al=function(Ai){var Qi=fe[yi];return Qi?Qi(Ai):Ai},Js=Object(V.a)(function(){return yi==="time"?"time":al("date")},{value:Ti}),Vo=Object(z.a)(Js,2),No=Vo[0],fs=Vo[1];l.useEffect(function(){fs(yi)},[yi]);var Ds=l.useState(function(){return No}),go=Object(z.a)(Ds,2),zt=go[0],ur=go[1],Dn=function(Ai,Qi){var sa=al(Ai||No);ur(No),fs(sa),ko&&(No!==sa||lt(ii,tl,tl))&&ko(Qi,sa)},fi=function(Ai,Qi){var sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(No===yi||sa)&&(ds(Ai),Da&&Da(Ai),_s&&_s(Ai,Qi),ja&&!lt(ii,Ai,Gs)&&ja(Ai))},Mt=function(Ai){return Sn.current&&Sn.current.onKeyDown?([G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN,G.a.PAGE_UP,G.a.PAGE_DOWN,G.a.ENTER].includes(Ai.which)&&Ai.preventDefault(),Sn.current.onKeyDown(Ai)):(Object(S.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ce=function(Ai){Sn.current&&Sn.current.onBlur&&Sn.current.onBlur(Ai)};$a&&Fs!=="right"&&($a.current={onKeyDown:Mt,onClose:function(){Sn.current&&Sn.current.onClose&&Sn.current.onClose()}}),l.useEffect(function(){on&&!Ns.current&&Ss(on)},[on]),l.useEffect(function(){Ns.current=!1},[]);var Se,Ie=Object(K.a)(Object(K.a)({},vt),{},{operationRef:Sn,prefixCls:Jr,viewDate:tl,value:Gs,onViewDateChange:Bs,sourceMode:zt,onPanelChange:Dn,disabledDate:No!=="decade"?li:void 0});delete Ie.onChange,delete Ie.onSelect;switch(No){case"decade":Se=l.createElement(Vn,Object.assign({},Ie,{onSelect:function(Ai,Qi){Bs(Ai),fi(Ai,Qi)}}));break;case"year":Se=l.createElement(it,Object.assign({},Ie,{onSelect:function(Ai,Qi){Bs(Ai),fi(Ai,Qi)}}));break;case"month":Se=l.createElement(Ft,Object.assign({},Ie,{onSelect:function(Ai,Qi){Bs(Ai),fi(Ai,Qi)}}));break;case"quarter":Se=l.createElement($n,Object.assign({},Ie,{onSelect:function(Ai,Qi){Bs(Ai),fi(Ai,Qi)}}));break;case"week":Se=l.createElement(hn,Object.assign({},Ie,{onSelect:function(Ai,Qi){Bs(Ai),fi(Ai,Qi)}}));break;case"time":delete Ie.showTime,Se=l.createElement(qe,Object.assign({},Ie,Object(Q.a)(fa)==="object"?fa:null,{onSelect:function(Ai,Qi){Bs(Ai),fi(Ai,Qi)}}));break;default:fa?Se=l.createElement(Mr,Object.assign({},Ie,{onSelect:function(Ai,Qi){Bs(Ai),fi(Ai,Qi)}})):Se=l.createElement(rt,Object.assign({},Ie,{onSelect:function(Ai,Qi){Bs(Ai),fi(Ai,Qi)}}))}var Je,Pt,cr=function(){var Ai=ii.getNow(),Qi=Qt(ii.getHour(Ai),ii.getMinute(Ai),ii.getSecond(Ai),Ko?so:1,as?Lo:1,co?cs:1),sa=pr(ii,Ai,Qi[0],Qi[1],Qi[2]);fi(sa,"submit")};Fo||(Je=Br(Jr,No,Sa),Pt=jn({prefixCls:Jr,components:Fa,needConfirmButton:Rs,okDisabled:!Gs||li&&li(Gs),locale:Yr,showNow:Ki,onNow:Rs&&cr,onOk:function(){Gs&&(fi(Gs,"submit",!0),Ea&&Ea(Gs))}}));var Zr;if(Ya&&No==="date"&&yi==="date"&&!fa){var vn=ii.getNow(),kn="".concat(Jr,"-today-btn"),ci=li&&li(vn);Zr=l.createElement("a",{className:_()(kn,ci&&"".concat(kn,"-disabled")),"aria-disabled":ci,onClick:function(){ci||fi(vn,"mouse",!0)}},Yr.today)}return l.createElement(q.Provider,{value:Object(K.a)(Object(K.a)({},Ao),{},{hideHeader:"hideHeader"in vt?wa:Ao.hideHeader,hidePrevBtn:zo&&Fs==="right",hideNextBtn:zo&&Fs==="left"})},l.createElement("div",{tabIndex:ia,className:_()("".concat(Jr,"-panel"),Jn,(_r={},Object(j.a)(_r,"".concat(Jr,"-panel-has-range"),ms&&ms[0]&&ms[1]),Object(j.a)(_r,"".concat(Jr,"-panel-has-range-hover"),hs&&hs[0]&&hs[1]),Object(j.a)(_r,"".concat(Jr,"-panel-rtl"),Ka==="rtl"),_r)),style:fn,onKeyDown:Mt,onBlur:ce,onMouseDown:ro,ref:ss},Se,Je||Pt||Zr?l.createElement("div",{className:"".concat(Jr,"-footer")},Je,Pt,Zr):null))}var tn=xn,ti=n("JX7q"),mi=n("i8i4"),Pi=n.n(mi),en=n("l4aY"),Tn=n("m+aA"),Yn=n("c+Xe"),Yt=n("zT1h"),Dt=n("QC+M");function Bt(vt,_r,rn){return rn?vt[0]===_r[0]:vt[0]===_r[0]&&vt[1]===_r[1]}function Wt(vt,_r,rn){var Jr=vt[_r]||{};return Object(K.a)(Object(K.a)({},Jr),rn)}function Xt(vt,_r,rn,Jr){for(var Jn=rn.points,fn=Object.keys(vt),Yr=0;Yr<fn.length;Yr+=1){var ii=fn[Yr];if(Bt(vt[ii].points,Jn,Jr))return"".concat(_r,"-placement-").concat(ii)}return""}var kt=n("Ff2n"),hr=n("xEkU"),br=n.n(hr),wr=n("9mu1"),Fr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Xn(vt,_r){var rn={};return rn[vt.toLowerCase()]=_r.toLowerCase(),rn["Webkit".concat(vt)]="webkit".concat(_r),rn["Moz".concat(vt)]="moz".concat(_r),rn["ms".concat(vt)]="MS".concat(_r),rn["O".concat(vt)]="o".concat(_r.toLowerCase()),rn}function Fn(vt,_r){var rn={animationend:Xn("Animation","AnimationEnd"),transitionend:Xn("Transition","TransitionEnd")};return vt&&("AnimationEvent"in _r||delete rn.animationend.animation,"TransitionEvent"in _r||delete rn.transitionend.transition),rn}var hi=Fn(Fr,typeof window!="undefined"?window:{}),An={};if(Fr){var jr=document.createElement("div");An=jr.style}var In={};function Qn(vt){if(In[vt])return In[vt];var _r=hi[vt];if(_r)for(var rn=Object.keys(_r),Jr=rn.length,Jn=0;Jn<Jr;Jn+=1){var fn=rn[Jn];if(Object.prototype.hasOwnProperty.call(_r,fn)&&fn in An)return In[vt]=_r[fn],In[vt]}return""}var qn=Qn("animationend"),si=Qn("transitionend"),Ci=!!(qn&&si);function ki(vt,_r){if(!vt)return null;if(Object(Q.a)(vt)==="object"){var rn=_r.replace(/-\w/g,function(Jr){return Jr[1].toUpperCase()});return vt[rn]}return"".concat(vt,"-").concat(_r)}var Ri="none",oa="appear",ma="enter",aa="leave";function ba(vt){var _r=vt,rn=!!l.forwardRef;Object(Q.a)(vt)==="object"&&(_r=vt.transitionSupport,rn="forwardRef"in vt?vt.forwardRef:rn);function Jr(fn){return!!(fn.motionName&&_r)}var Jn=function(fn){Object(X.a)(ii,fn);var Yr=Object(F.a)(ii);function ii(){var on;return Object(U.a)(this,ii),on=Yr.apply(this,arguments),on.$cacheEle=null,on.node=null,on.raf=null,on.destroyed=!1,on.deadlineId=null,on.state={status:Ri,statusActive:!1,newStatus:!1,statusStyle:null},on.onDomUpdate=function(){var zn=on.state,ui=zn.status,di=zn.newStatus,li=on.props,Ti=li.onAppearStart,vi=li.onEnterStart,yi=li.onLeaveStart,Ni=li.onAppearActive,ia=li.onEnterActive,Ki=li.onLeaveActive,fa=li.motionAppear,Ya=li.motionEnter,Sa=li.motionLeave;if(!Jr(on.props))return;var wa=on.getElement();on.$cacheEle!==wa&&(on.removeEventListener(on.$cacheEle),on.addEventListener(wa),on.$cacheEle=wa),di&&ui===oa&&fa?on.updateStatus(Ti,null,null,function(){on.updateActiveStatus(Ni,oa)}):di&&ui===ma&&Ya?on.updateStatus(vi,null,null,function(){on.updateActiveStatus(ia,ma)}):di&&ui===aa&&Sa&&on.updateStatus(yi,null,null,function(){on.updateActiveStatus(Ki,aa)})},on.onMotionEnd=function(zn){if(zn&&!zn.deadline&&zn.target!==on.getElement())return;var ui=on.state,di=ui.status,li=ui.statusActive,Ti=on.props,vi=Ti.onAppearEnd,yi=Ti.onEnterEnd,Ni=Ti.onLeaveEnd;di===oa&&li?on.updateStatus(vi,{status:Ri},zn):di===ma&&li?on.updateStatus(yi,{status:Ri},zn):di===aa&&li&&on.updateStatus(Ni,{status:Ri},zn)},on.setNodeRef=function(zn){var ui=on.props.internalRef;on.node=zn,Object(Yn.b)(ui,zn)},on.getElement=function(){try{return Object(Tn.a)(on.node||Object(ti.a)(on))}catch(zn){return on.$cacheEle}},on.addEventListener=function(zn){if(!zn)return;zn.addEventListener(si,on.onMotionEnd),zn.addEventListener(qn,on.onMotionEnd)},on.removeEventListener=function(zn){if(!zn)return;zn.removeEventListener(si,on.onMotionEnd),zn.removeEventListener(qn,on.onMotionEnd)},on.updateStatus=function(zn,ui,di,li){var Ti=zn?zn(on.getElement(),di):null;if(Ti===!1||on.destroyed)return;var vi;li&&(vi=function(){on.nextFrame(li)}),on.setState(Object(K.a)({statusStyle:Object(Q.a)(Ti)==="object"?Ti:null,newStatus:!1},ui),vi)},on.updateActiveStatus=function(zn,ui){on.nextFrame(function(){var di=on.state.status;if(di!==ui)return;var li=on.props.motionDeadline;on.updateStatus(zn,{statusActive:!0}),li>0&&(on.deadlineId=setTimeout(function(){on.onMotionEnd({deadline:!0})},li))})},on.nextFrame=function(zn){on.cancelNextFrame(),on.raf=br()(zn)},on.cancelNextFrame=function(){on.raf&&(br.a.cancel(on.raf),on.raf=null)},on}return Object(P.a)(ii,[{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 zn,ui=this.state,di=ui.status,li=ui.statusActive,Ti=ui.statusStyle,vi=this.props,yi=vi.children,Ni=vi.motionName,ia=vi.visible,Ki=vi.removeOnLeave,fa=vi.leavedClassName,Ya=vi.eventProps;return yi?di===Ri||!Jr(this.props)?ia?yi(Object(K.a)({},Ya),this.setNodeRef):Ki?null:yi(Object(K.a)(Object(K.a)({},Ya),{},{className:fa}),this.setNodeRef):yi(Object(K.a)(Object(K.a)({},Ya),{},{className:_()(ki(Ni,di),(zn={},Object(j.a)(zn,ki(Ni,"".concat(di,"-active")),li),Object(j.a)(zn,Ni,typeof Ni=="string"),zn)),style:Ti}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(zn,ui){var di=ui.prevProps,li=ui.status;if(!Jr(zn))return{};var Ti=zn.visible,vi=zn.motionAppear,yi=zn.motionEnter,Ni=zn.motionLeave,ia=zn.motionLeaveImmediately,Ki={prevProps:zn};return(li===oa&&!vi||li===ma&&!yi||li===aa&&!Ni)&&(Ki.status=Ri,Ki.statusActive=!1,Ki.newStatus=!1),!di&&Ti&&vi&&(Ki.status=oa,Ki.statusActive=!1,Ki.newStatus=!0),di&&!di.visible&&Ti&&yi&&(Ki.status=ma,Ki.statusActive=!1,Ki.newStatus=!0),(di&&di.visible&&!Ti&&Ni||!di&&ia&&!Ti&&Ni)&&(Ki.status=aa,Ki.statusActive=!1,Ki.newStatus=!0),Ki}}]),ii}(l.Component);return Jn.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},rn?l.forwardRef(function(fn,Yr){return l.createElement(Jn,Object.assign({internalRef:Yr},fn))}):Jn}var bi=ba(Ci),Pn="add",ji="keep",ha="remove",ta="removed";function ra(vt){var _r;return vt&&Object(Q.a)(vt)==="object"&&"key"in vt?_r=vt:_r={key:vt},Object(K.a)(Object(K.a)({},_r),{},{key:String(_r.key)})}function Nr(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return vt.map(ra)}function Er(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rn=[],Jr=0,Jn=_r.length,fn=Nr(vt),Yr=Nr(_r);fn.forEach(function(zn){for(var ui=!1,di=Jr;di<Jn;di+=1){var li=Yr[di];if(li.key===zn.key){Jr<di&&(rn=rn.concat(Yr.slice(Jr,di).map(function(Ti){return Object(K.a)(Object(K.a)({},Ti),{},{status:Pn})})),Jr=di),rn.push(Object(K.a)(Object(K.a)({},li),{},{status:ji})),Jr+=1,ui=!0;break}}ui||rn.push(Object(K.a)(Object(K.a)({},zn),{},{status:ha}))}),Jr<Jn&&(rn=rn.concat(Yr.slice(Jr).map(function(zn){return Object(K.a)(Object(K.a)({},zn),{},{status:Pn})})));var ii={};rn.forEach(function(zn){var ui=zn.key;ii[ui]=(ii[ui]||0)+1});var on=Object.keys(ii).filter(function(zn){return ii[zn]>1});return on.forEach(function(zn){rn=rn.filter(function(ui){var di=ui.key,li=ui.status;return di!==zn||li!==ha}),rn.forEach(function(ui){ui.key===zn&&(ui.status=ji)})}),rn}var On=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gr(vt){var _r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bi,rn=function(Jr){Object(X.a)(fn,Jr);var Jn=Object(F.a)(fn);function fn(){var Yr;return Object(U.a)(this,fn),Yr=Jn.apply(this,arguments),Yr.state={keyEntities:[]},Yr.removeKey=function(ii){Yr.setState(function(on){var zn=on.keyEntities;return{keyEntities:zn.map(function(ui){return ui.key!==ii?ui:Object(K.a)(Object(K.a)({},ui),{},{status:ta})})}})},Yr}return Object(P.a)(fn,[{key:"render",value:function(){var ii=this,on=this.state.keyEntities,zn=this.props,ui=zn.component,di=zn.children,li=Object(kt.a)(zn,["component","children"]),Ti=ui||l.Fragment,vi={};return On.forEach(function(yi){vi[yi]=li[yi],delete li[yi]}),delete li.keys,l.createElement(Ti,Object.assign({},li),on.map(function(yi){var Ni=yi.status,ia=Object(kt.a)(yi,["status"]),Ki=Ni===Pn||Ni===ji;return l.createElement(_r,Object.assign({},vi,{key:ia.key,visible:Ki,eventProps:ia,onLeaveEnd:function(){vi.onLeaveEnd&&vi.onLeaveEnd.apply(vi,arguments),ii.removeKey(ia.key)}}),di)}))}}],[{key:"getDerivedStateFromProps",value:function(ii,on){var zn=ii.keys,ui=on.keyEntities,di=Nr(zn);if(!vt)return{keyEntities:di.map(function(vi){return Object(K.a)(Object(K.a)({},vi),{},{status:ji})})};var li=Er(ui,di),Ti=ui.length;return{keyEntities:li.filter(function(vi){for(var yi=null,Ni=0;Ni<Ti;Ni+=1){var ia=ui[Ni];if(ia.key===vi.key){yi=ia;break}}return!(yi&&yi.status===ta&&vi.status===ha)})}}}]),fn}(l.Component);return rn.defaultProps={component:"div"},rn}var Pr=gr(Ci),Xr=bi,cn=function(_r,rn){var Jr=_r.prefixCls,Jn=_r.className,fn=_r.style,Yr=_r.children,ii=_r.onMouseEnter,on=_r.onMouseLeave,zn=_r.onMouseDown,ui=_r.onTouchStart,di=Yr;return l.Children.count(Yr)>1&&(di=l.createElement("div",{className:"".concat(Jr,"-content")},Yr)),l.createElement("div",{ref:rn,className:Jn,onMouseEnter:ii,onMouseLeave:on,onMouseDown:zn,onTouchStart:ui,style:fn},di)},Un=l.forwardRef(cn);Un.displayName="PopupInner";var Nt=Un;function Lr(vt){var _r=vt.prefixCls,rn=vt.motion,Jr=vt.animation,Jn=vt.transitionName;return rn||(Jr?{motionName:"".concat(_r,"-").concat(Jr)}:Jn?{motionName:Jn}:null)}function Dr(vt){return vt&&vt.motionName}var an=function(vt){Object(X.a)(rn,vt);var _r=Object(F.a)(rn);function rn(){var Jr;return Object(U.a)(this,rn),Jr=_r.apply(this,arguments),Jr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Jr.popupRef=a.a.createRef(),Jr.alignRef=a.a.createRef(),Jr.nextFrameState=null,Jr.nextFrameId=null,Jr.onAlign=function(Jn,fn){var Yr=Jr.state.status,ii=Jr.props,on=ii.getClassNameFromAlign,zn=ii.onAlign,ui=on(fn);Yr==="align"?Jr.setState({alignClassName:ui,status:"aligned"},function(){Jr.alignRef.current.forceAlign()}):Yr==="aligned"?(Jr.setState({alignClassName:ui,status:"afterAlign"}),zn(Jn,fn)):Jr.setState({alignClassName:ui})},Jr.onMotionEnd=function(){var Jn=Jr.props.visible;Jr.setState({status:Jn?"AfterMotion":"stable",inMotion:!1})},Jr.setStateOnNextFrame=function(Jn){Jr.cancelFrameState(),Jr.nextFrameState=Object(K.a)(Object(K.a)({},Jr.nextFrameState),Jn),Jr.nextFrameId=br()(function(){var fn=Object(K.a)({},Jr.nextFrameState);Jr.nextFrameState=null,Jr.setState(fn)})},Jr.getMotion=function(){return Object(K.a)({},Lr(Jr.props))},Jr.getAlignTarget=function(){var Jn=Jr.props,fn=Jn.point,Yr=Jn.getRootDomNode;return fn||Yr},Jr.cancelFrameState=function(){br.a.cancel(Jr.nextFrameId)},Jr.renderPopupElement=function(){var Jn=Jr.state,fn=Jn.status,Yr=Jn.targetHeight,ii=Jn.targetWidth,on=Jn.alignClassName,zn=Jr.props,ui=zn.prefixCls,di=zn.className,li=zn.style,Ti=zn.stretch,vi=zn.visible,yi=zn.align,Ni=zn.destroyPopupOnHide,ia=zn.onMouseEnter,Ki=zn.onMouseLeave,fa=zn.onMouseDown,Ya=zn.onTouchStart,Sa=zn.children,wa=_()(ui,di,on),Da="".concat(ui,"-hidden"),ja={};Ti&&(Ti.indexOf("height")!==-1?ja.height=Yr:Ti.indexOf("minHeight")!==-1&&(ja.minHeight=Yr),Ti.indexOf("width")!==-1?ja.width=ii:Ti.indexOf("minWidth")!==-1&&(ja.minWidth=ii));var ko=Object(K.a)(Object(K.a)(Object(K.a)(Object(K.a)({},ja),Jr.getZIndexStyle()),li),{},{opacity:fn==="stable"||!vi?void 0:0,pointerEvents:fn==="stable"||!vi?void 0:"none"}),ro=Jr.getMotion(),pa=vi;vi&&fn!=="beforeMotion"&&fn!=="motion"&&fn!=="stable"&&(ro.motionAppear=!1,ro.motionEnter=!1,ro.motionLeave=!1),(fn==="afterAlign"||fn==="beforeMotion")&&(pa=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Ka){var lo=ro==null?void 0:ro[Ka];ro[Ka]=function(){for(var so=arguments.length,To=new Array(so),Lo=0;Lo<so;Lo++)To[Lo]=arguments[Lo];lo==null||lo.apply(void 0,To),Jr.setState({inMotion:!0})}});var Ea=!vi||fn!=="align"&&fn!=="aligned"&&fn!=="stable",Fa=!0;return fn==="stable"&&(Fa=vi),Ni&&!Fa?null:a.a.createElement(Xr,Object.assign({visible:pa},ro,{removeOnLeave:!1,onEnterEnd:Jr.onMotionEnd,onLeaveEnd:Jr.onMotionEnd,leavedClassName:Da}),function(Ka,lo){var so=Ka.style,To=Ka.className;return a.a.createElement(wr.a,{target:Jr.getAlignTarget(),key:"popup",ref:Jr.alignRef,monitorWindowResize:!0,disabled:Ea,align:yi,onAlign:Jr.onAlign},a.a.createElement(Nt,{prefixCls:ui,className:_()(wa,To),ref:Object(Yn.a)(lo,Jr.popupRef),onMouseEnter:ia,onMouseLeave:Ki,onMouseDown:fa,onTouchStart:Ya,style:Object(K.a)(Object(K.a)({},ko),so)},Sa))})},Jr.renderMaskElement=function(){var Jn=Jr.props,fn=Jn.mask,Yr=Jn.maskMotion,ii=Jn.maskTransitionName,on=Jn.maskAnimation,zn=Jn.prefixCls,ui=Jn.visible;if(!fn)return null;var di={};return Yr&&Yr.motionName&&(di=Object(K.a)({motionAppear:!0},Lr({motion:Yr,prefixCls:zn,transitionName:ii,animation:on}))),a.a.createElement(Xr,Object.assign({},di,{visible:ui,removeOnLeave:!0}),function(li){var Ti=li.className;return a.a.createElement("div",{style:Jr.getZIndexStyle(),key:"mask",className:_()("".concat(zn,"-mask"),Ti)})})},Jr}return Object(P.a)(rn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Jn=this.state.status,fn=this.props,Yr=fn.getRootDomNode,ii=fn.visible,on=fn.stretch;if(this.cancelFrameState(),ii&&Jn!=="stable")switch(Jn){case null:{this.setStateOnNextFrame({status:on?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Dr(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var zn=["measure","align",null,"beforeMotion","motion"],ui=zn.indexOf(Jn),di=zn[ui+1];ui!==-1&&di&&this.setStateOnNextFrame({status:di})}}if(Jn==="measure"){var li=Yr();li&&this.setStateOnNextFrame({targetHeight:li.offsetHeight,targetWidth:li.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Jn=this.props.zIndex;return{zIndex:Jn}}},{key:"render",value:function(){return a.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Jn,fn){var Yr=Jn.visible,ii=Object(kt.a)(Jn,["visible"]),on=fn.prevVisible,zn=fn.status,ui=fn.inMotion,di={prevVisible:Yr,status:zn},li=Lr(ii);return on===null&&Yr===!1?(di.status="stable",di.inMotion=!1):Yr!==on&&(di.inMotion=!1,Yr||Dr(li)&&ui?di.status=null:di.status="stable",Yr&&(di.alignClassName=null)),di}}]),rn}(l.Component),Cn=an,Nn=l.createContext(null),En=Nn;function ei(){}function Wn(){return""}function gi(){return window.document}var Fi=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function wi(vt){var _r=function(rn){Object(X.a)(Jn,rn);var Jr=Object(F.a)(Jn);function Jn(fn){var Yr;Object(U.a)(this,Jn),Yr=Jr.call(this,fn),Yr.popupRef=a.a.createRef(),Yr.triggerRef=a.a.createRef(),Yr.onMouseEnter=function(on){var zn=Yr.props.mouseEnterDelay;Yr.fireEvents("onMouseEnter",on),Yr.delaySetPopupVisible(!0,zn,zn?null:on)},Yr.onMouseMove=function(on){Yr.fireEvents("onMouseMove",on),Yr.setPoint(on)},Yr.onMouseLeave=function(on){Yr.fireEvents("onMouseLeave",on),Yr.delaySetPopupVisible(!1,Yr.props.mouseLeaveDelay)},Yr.onPopupMouseEnter=function(){Yr.clearDelayTimer()},Yr.onPopupMouseLeave=function(on){if(on.relatedTarget&&!on.relatedTarget.setTimeout&&Yr.popupRef.current&&Yr.popupRef.current.popupRef.current&&Object(en.a)(Yr.popupRef.current.popupRef.current,on.relatedTarget))return;Yr.delaySetPopupVisible(!1,Yr.props.mouseLeaveDelay)},Yr.onFocus=function(on){Yr.fireEvents("onFocus",on),Yr.clearDelayTimer(),Yr.isFocusToShow()&&(Yr.focusTime=Date.now(),Yr.delaySetPopupVisible(!0,Yr.props.focusDelay))},Yr.onMouseDown=function(on){Yr.fireEvents("onMouseDown",on),Yr.preClickTime=Date.now()},Yr.onTouchStart=function(on){Yr.fireEvents("onTouchStart",on),Yr.preTouchTime=Date.now()},Yr.onBlur=function(on){Yr.fireEvents("onBlur",on),Yr.clearDelayTimer(),Yr.isBlurToHide()&&Yr.delaySetPopupVisible(!1,Yr.props.blurDelay)},Yr.onContextMenu=function(on){on.preventDefault(),Yr.fireEvents("onContextMenu",on),Yr.setPopupVisible(!0,on)},Yr.onContextMenuClose=function(){Yr.isContextMenuToShow()&&Yr.close()},Yr.onClick=function(on){if(Yr.fireEvents("onClick",on),Yr.focusTime){var zn;if(Yr.preClickTime&&Yr.preTouchTime?zn=Math.min(Yr.preClickTime,Yr.preTouchTime):Yr.preClickTime?zn=Yr.preClickTime:Yr.preTouchTime&&(zn=Yr.preTouchTime),Math.abs(zn-Yr.focusTime)<20)return;Yr.focusTime=0}Yr.preClickTime=0,Yr.preTouchTime=0,Yr.isClickToShow()&&(Yr.isClickToHide()||Yr.isBlurToHide())&&on&&on.preventDefault&&on.preventDefault();var ui=!Yr.state.popupVisible;(Yr.isClickToHide()&&!ui||ui&&Yr.isClickToShow())&&Yr.setPopupVisible(!Yr.state.popupVisible,on)},Yr.onPopupMouseDown=function(){if(Yr.hasPopupMouseDown=!0,clearTimeout(Yr.mouseDownTimeout),Yr.mouseDownTimeout=window.setTimeout(function(){Yr.hasPopupMouseDown=!1},0),Yr.context){var on;(on=Yr.context).onPopupMouseDown.apply(on,arguments)}},Yr.onDocumentClick=function(on){if(Yr.props.mask&&!Yr.props.maskClosable)return;var zn=on.target,ui=Yr.getRootDomNode(),di=Yr.getPopupDomNode();!Object(en.a)(ui,zn)&&!Object(en.a)(di,zn)&&!Yr.hasPopupMouseDown&&Yr.close()},Yr.getRootDomNode=function(){var on=Yr.props.getTriggerDOMNode;if(on)return on(Yr.triggerRef.current);try{var zn=Object(Tn.a)(Yr.triggerRef.current);if(zn)return zn}catch(ui){}return Pi.a.findDOMNode(Object(ti.a)(Yr))},Yr.getPopupClassNameFromAlign=function(on){var zn=[],ui=Yr.props,di=ui.popupPlacement,li=ui.builtinPlacements,Ti=ui.prefixCls,vi=ui.alignPoint,yi=ui.getPopupClassNameFromAlign;return di&&li&&zn.push(Xt(li,Ti,on,vi)),yi&&zn.push(yi(on)),zn.join(" ")},Yr.getComponent=function(){var on=Yr.props,zn=on.prefixCls,ui=on.destroyPopupOnHide,di=on.popupClassName,li=on.onPopupAlign,Ti=on.popupMotion,vi=on.popupAnimation,yi=on.popupTransitionName,Ni=on.popupStyle,ia=on.mask,Ki=on.maskAnimation,fa=on.maskTransitionName,Ya=on.maskMotion,Sa=on.zIndex,wa=on.popup,Da=on.stretch,ja=on.alignPoint,ko=Yr.state,ro=ko.popupVisible,pa=ko.point,Ea=Yr.getPopupAlign(),Fa={};return Yr.isMouseEnterToShow()&&(Fa.onMouseEnter=Yr.onPopupMouseEnter),Yr.isMouseLeaveToHide()&&(Fa.onMouseLeave=Yr.onPopupMouseLeave),Fa.onMouseDown=Yr.onPopupMouseDown,Fa.onTouchStart=Yr.onPopupMouseDown,a.a.createElement(Cn,Object.assign({prefixCls:zn,destroyPopupOnHide:ui,visible:ro,point:ja&&pa,className:di,align:Ea,onAlign:li,animation:vi,getClassNameFromAlign:Yr.getPopupClassNameFromAlign},Fa,{stretch:Da,getRootDomNode:Yr.getRootDomNode,style:Ni,mask:ia,zIndex:Sa,transitionName:yi,maskAnimation:Ki,maskTransitionName:fa,maskMotion:Ya,ref:Yr.popupRef,motion:Ti}),typeof wa=="function"?wa():wa)},Yr.getContainer=function(){var on=Object(ti.a)(Yr),zn=on.props,ui=document.createElement("div");ui.style.position="absolute",ui.style.top="0",ui.style.left="0",ui.style.width="100%";var di=zn.getPopupContainer?zn.getPopupContainer(Yr.getRootDomNode()):zn.getDocument().body;return di.appendChild(ui),ui},Yr.setPoint=function(on){var zn=Yr.props.alignPoint;if(!zn||!on)return;Yr.setState({point:{pageX:on.pageX,pageY:on.pageY}})},Yr.handlePortalUpdate=function(){Yr.state.prevPopupVisible!==Yr.state.popupVisible&&Yr.props.afterPopupVisibleChange(Yr.state.popupVisible)};var ii;return"popupVisible"in fn?ii=!!fn.popupVisible:ii=!!fn.defaultPopupVisible,Yr.state={prevPopupVisible:ii,popupVisible:ii},Fi.forEach(function(on){Yr["fire".concat(on)]=function(zn){Yr.fireEvents(on,zn)}}),Yr}return Object(P.a)(Jn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Yr=this.props,ii=this.state;if(ii.popupVisible){var on;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(on=Yr.getDocument(),this.clickOutsideHandler=Object(Yt.a)(on,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(on=on||Yr.getDocument(),this.touchOutsideHandler=Object(Yt.a)(on,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(on=on||Yr.getDocument(),this.contextMenuOutsideHandler1=Object(Yt.a)(on,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Yt.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 Yr=this.props,ii=Yr.popupPlacement,on=Yr.popupAlign,zn=Yr.builtinPlacements;return ii&&zn?Wt(zn,ii,on):on}},{key:"setPopupVisible",value:function(Yr,ii){var on=this.props.alignPoint,zn=this.state.popupVisible;this.clearDelayTimer(),zn!==Yr&&("popupVisible"in this.props||this.setState({popupVisible:Yr,prevPopupVisible:zn}),this.props.onPopupVisibleChange(Yr)),on&&ii&&this.setPoint(ii)}},{key:"delaySetPopupVisible",value:function(Yr,ii,on){var zn=this,ui=ii*1e3;if(this.clearDelayTimer(),ui){var di=on?{pageX:on.pageX,pageY:on.pageY}:null;this.delayTimer=window.setTimeout(function(){zn.setPopupVisible(Yr,di),zn.clearDelayTimer()},ui)}else this.setPopupVisible(Yr,on)}},{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(Yr){var ii=this.props.children.props,on=this.props;return ii[Yr]&&on[Yr]?this["fire".concat(Yr)]:ii[Yr]||on[Yr]}},{key:"isClickToShow",value:function(){var Yr=this.props,ii=Yr.action,on=Yr.showAction;return ii.indexOf("click")!==-1||on.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Yr=this.props,ii=Yr.action,on=Yr.showAction;return ii.indexOf("contextMenu")!==-1||on.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Yr=this.props,ii=Yr.action,on=Yr.hideAction;return ii.indexOf("click")!==-1||on.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Yr=this.props,ii=Yr.action,on=Yr.showAction;return ii.indexOf("hover")!==-1||on.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Yr=this.props,ii=Yr.action,on=Yr.hideAction;return ii.indexOf("hover")!==-1||on.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Yr=this.props,ii=Yr.action,on=Yr.showAction;return ii.indexOf("focus")!==-1||on.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Yr=this.props,ii=Yr.action,on=Yr.hideAction;return ii.indexOf("focus")!==-1||on.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(Yr,ii){var on=this.props.children.props[Yr];on&&on(ii);var zn=this.props[Yr];zn&&zn(ii)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Yr=this.state.popupVisible,ii=this.props,on=ii.children,zn=ii.forceRender,ui=ii.alignPoint,di=ii.className,li=ii.autoDestroy,Ti=a.a.Children.only(on),vi={key:"trigger"};this.isContextMenuToShow()?vi.onContextMenu=this.onContextMenu:vi.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(vi.onClick=this.onClick,vi.onMouseDown=this.onMouseDown,vi.onTouchStart=this.onTouchStart):(vi.onClick=this.createTwoChains("onClick"),vi.onMouseDown=this.createTwoChains("onMouseDown"),vi.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(vi.onMouseEnter=this.onMouseEnter,ui&&(vi.onMouseMove=this.onMouseMove)):vi.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?vi.onMouseLeave=this.onMouseLeave:vi.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(vi.onFocus=this.onFocus,vi.onBlur=this.onBlur):(vi.onFocus=this.createTwoChains("onFocus"),vi.onBlur=this.createTwoChains("onBlur"));var yi=_()(Ti&&Ti.props&&Ti.props.className,di);yi&&(vi.className=yi);var Ni=Object(K.a)({},vi);Object(Yn.c)(Ti)&&(Ni.ref=Object(Yn.a)(this.triggerRef,Ti.ref));var ia=a.a.cloneElement(Ti,Ni),Ki;return(Yr||this.popupRef.current||zn)&&(Ki=a.a.createElement(vt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Yr&&li&&(Ki=null),a.a.createElement(En.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},ia,Ki)}}],[{key:"getDerivedStateFromProps",value:function(Yr,ii){var on=Yr.popupVisible,zn={};return on!==void 0&&ii.popupVisible!==on&&(zn.popupVisible=on,zn.prevPopupVisible=ii.popupVisible),zn}}]),Jn}(a.a.Component);return _r.contextType=En,_r.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Wn,getDocument:gi,onPopupVisibleChange:ei,afterPopupVisibleChange:ei,onPopupAlign:ei,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},_r}var Ii=wi(Dt.a),Vi={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 ea(vt){var _r,rn=vt.prefixCls,Jr=vt.popupElement,Jn=vt.popupStyle,fn=vt.visible,Yr=vt.dropdownClassName,ii=vt.dropdownAlign,on=vt.transitionName,zn=vt.getPopupContainer,ui=vt.children,di=vt.range,li=vt.popupPlacement,Ti=vt.direction,vi="".concat(rn,"-dropdown"),yi=function(){return li!==void 0?li:Ti==="rtl"?"bottomRight":"bottomLeft"};return l.createElement(Ii,{showAction:[],hideAction:[],popupPlacement:yi(),builtinPlacements:Vi,prefixCls:vi,popupTransitionName:on,popup:Jr,popupAlign:ii,popupVisible:fn,popupClassName:_()(Yr,(_r={},Object(j.a)(_r,"".concat(vi,"-range"),di),Object(j.a)(_r,"".concat(vi,"-rtl"),Ti==="rtl"),_r)),popupStyle:Jn,getPopupContainer:zn},ui)}var Xi=ea;function zi(vt){var _r=vt.open,rn=vt.value,Jr=vt.isClickOutside,Jn=vt.triggerOpen,fn=vt.forwardKeyDown,Yr=vt.blurToCancel,ii=vt.onSubmit,on=vt.onCancel,zn=vt.onFocus,ui=vt.onBlur,di=Object(l.useState)(!1),li=Object(z.a)(di,2),Ti=li[0],vi=li[1],yi=Object(l.useState)(!1),Ni=Object(z.a)(yi,2),ia=Ni[0],Ki=Ni[1],fa=Object(l.useRef)(!1),Ya=Object(l.useRef)(!1),Sa={onMouseDown:function(){vi(!0),Jn(!0)},onKeyDown:function(Da){switch(Da.which){case G.a.ENTER:{_r?ii()!==!1&&vi(!0):Jn(!0),Da.preventDefault();return}case G.a.TAB:{Ti&&_r&&!Da.shiftKey?(vi(!1),Da.preventDefault()):!Ti&&_r&&(!fn(Da)&&Da.shiftKey&&(vi(!0),Da.preventDefault()));return}case G.a.ESC:{vi(!0),on();return}}!_r&&![G.a.SHIFT].includes(Da.which)?Jn(!0):Ti||fn(Da)},onFocus:function(Da){vi(!0),Ki(!0),zn&&zn(Da)},onBlur:function(Da){if(fa.current||!Jr(document.activeElement)){fa.current=!1;return}Yr?setTimeout(function(){Jr(document.activeElement)&&on()},0):_r&&(Jn(!1),Ya.current&&ii()),Ki(!1),ui&&ui(Da)}};return Object(l.useEffect)(function(){Ya.current=!1},[_r]),Object(l.useEffect)(function(){Ya.current=!0},[rn]),Object(l.useEffect)(function(){return $(function(wa){var Da=wa.target;_r&&(Jr(Da)?ia||Jn(!1):(fa.current=!0,requestAnimationFrame(function(){fa.current=!1})))})}),[Sa,{focused:ia,typing:Ti}]}function Hi(vt){var _r=vt.valueTexts,rn=vt.onTextChange,Jr=l.useState(""),Jn=Object(z.a)(Jr,2),fn=Jn[0],Yr=Jn[1],ii=l.useRef([]);ii.current=_r;function on(ui){Yr(ui),rn(ui)}function zn(){Yr(ii.current[0])}return l.useEffect(function(){_r.every(function(ui){return ui!==fn})&&zn()},[_r.join("||")]),[fn,on,zn]}var Ji=n("Gytx"),ca=n.n(Ji);function Ta(vt,_r){var rn=_r.formatList,Jr=_r.generateConfig,Jn=_r.locale;return Object(Qe.a)(function(){if(!vt)return[[""],""];for(var fn="",Yr=[],ii=0;ii<rn.length;ii+=1){var on=rn[ii],zn=Jr.locale.format(Jn.locale,vt,on);Yr.push(zn),ii===0&&(fn=zn)}return[Yr,fn]},[vt,rn],function(fn,Yr){return fn[0]!==Yr[0]||!ca()(fn[1],Yr[1])})}function na(vt,_r){var rn=_r.formatList,Jr=_r.generateConfig,Jn=_r.locale,fn=Object(l.useState)(null),Yr=Object(z.a)(fn,2),ii=Yr[0],on=Yr[1],zn=Object(l.useRef)(null);function ui(Ni){var ia=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(zn.current),ia){on(Ni);return}zn.current=requestAnimationFrame(function(){on(Ni)})}var di=Ta(ii,{formatList:rn,generateConfig:Jr,locale:Jn}),li=Object(z.a)(di,2),Ti=li[1];function vi(Ni){ui(Ni)}function yi(){var Ni=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ui(null,Ni)}return Object(l.useEffect)(function(){yi(!0)},[vt]),Object(l.useEffect)(function(){return function(){return cancelAnimationFrame(zn.current)}},[]),[Ti,vi,yi]}function Pa(vt){var _r,rn=vt.prefixCls,Jr=rn===void 0?"rc-picker":rn,Jn=vt.id,fn=vt.tabIndex,Yr=vt.style,ii=vt.className,on=vt.dropdownClassName,zn=vt.dropdownAlign,ui=vt.popupStyle,di=vt.transitionName,li=vt.generateConfig,Ti=vt.locale,vi=vt.inputReadOnly,yi=vt.allowClear,Ni=vt.autoFocus,ia=vt.showTime,Ki=vt.picker,fa=Ki===void 0?"date":Ki,Ya=vt.format,Sa=vt.use12Hours,wa=vt.value,Da=vt.defaultValue,ja=vt.open,ko=vt.defaultOpen,ro=vt.defaultOpenValue,pa=vt.suffixIcon,Ea=vt.clearIcon,Fa=vt.disabled,Ka=vt.disabledDate,lo=vt.placeholder,so=vt.getPopupContainer,To=vt.pickerRef,Lo=vt.panelRender,is=vt.onChange,cs=vt.onOpenChange,Rs=vt.onFocus,Ko=vt.onBlur,as=vt.onMouseDown,co=vt.onMouseUp,Ao=vt.onMouseEnter,$a=vt.onMouseLeave,ss=vt.onContextMenu,_s=vt.onClick,Fo=vt.direction,il=vt.autoComplete,Eo=il===void 0?"off":il,zo=l.useRef(null),Fs=fa==="date"&&!!ia||fa==="time",ms=He(et(Ya,fa,ia,Sa)),hs=l.useRef(null),Sn=l.useRef(null),Ns=Object(V.a)(null,{value:wa,defaultValue:Da}),Ll=Object(z.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=l.useState(el),ks=Object(z.a)(ds,2),Qs=ks[0],tl=ks[1],Ss=l.useRef(null),Bs=Object(V.a)(!1,{value:ja,defaultValue:ko,postState:function(vo){return Fa?!1:vo},onChange:function(vo){cs&&cs(vo),!vo&&Ss.current&&Ss.current.onClose&&Ss.current.onClose()}}),al=Object(z.a)(Bs,2),Js=al[0],Vo=al[1],No=Ta(Qs,{formatList:ms,generateConfig:li,locale:Ti}),fs=Object(z.a)(No,2),Ds=fs[0],go=fs[1],zt=Hi({valueTexts:Ds,onTextChange:function(vo){var Ms=li.locale.parse(Ti.locale,vo,ms);Ms&&(!Ka||!Ka(Ms))&&tl(Ms)}}),ur=Object(z.a)(zt,3),Dn=ur[0],fi=ur[1],Mt=ur[2],ce=function(vo){tl(vo),Gs(vo),is&&!lt(li,el,vo)&&is(vo,vo?li.locale.format(Ti.locale,vo,ms[0]):"")},Se=function(vo){if(Fa&&vo)return;Vo(vo)},Ie=function(vo){return Js&&Ss.current&&Ss.current.onKeyDown?Ss.current.onKeyDown(vo):(Object(S.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Je=function(){co&&co.apply(void 0,arguments),zo.current&&(zo.current.focus(),Se(!0))},Pt=zi({blurToCancel:Fs,open:Js,value:Dn,triggerOpen:Se,forwardKeyDown:Ie,isClickOutside:function(vo){return!xe([hs.current,Sn.current],vo)},onSubmit:function(){return Ka&&Ka(Qs)?!1:(ce(Qs),Se(!1),Mt(),!0)},onCancel:function(){Se(!1),tl(el),Mt()},onFocus:Rs,onBlur:Ko}),cr=Object(z.a)(Pt,2),Zr=cr[0],vn=cr[1],kn=vn.focused,ci=vn.typing;l.useEffect(function(){Js||(tl(el),!Ds.length||Ds[0]===""?fi(""):go!==Dn&&Mt())},[Js,Ds]),l.useEffect(function(){Js||Mt()},[fa]),l.useEffect(function(){tl(el)},[el]),To&&(To.current={focus:function(){zo.current&&zo.current.focus()},blur:function(){zo.current&&zo.current.blur()}});var Si=Object(K.a)(Object(K.a)({},vt),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Ai=l.createElement(tn,Object.assign({},Si,{generateConfig:li,className:_()(Object(j.a)({},"".concat(Jr,"-panel-focused"),!ci)),value:Qs,locale:Ti,tabIndex:-1,onChange:tl,direction:Fo}));Lo&&(Ai=Lo(Ai));var Qi=l.createElement("div",{className:"".concat(Jr,"-panel-container"),onMouseDown:function(vo){vo.preventDefault()}},Ai),sa;pa&&(sa=l.createElement("span",{className:"".concat(Jr,"-suffix")},pa));var Ua;yi&&el&&!Fa&&(Ua=l.createElement("span",{onMouseDown:function(vo){vo.preventDefault(),vo.stopPropagation()},onMouseUp:function(vo){vo.preventDefault(),vo.stopPropagation(),ce(null),Se(!1)},className:"".concat(Jr,"-clear")},Ea||l.createElement("span",{className:"".concat(Jr,"-clear-btn")})));var no=function(vo,Ms){(Ms==="submit"||Ms!=="key"&&!Fs)&&(ce(vo),Se(!1))},Wo=Fo==="rtl"?"bottomRight":"bottomLeft",Zo=na(Dn,{formatList:ms,generateConfig:li,locale:Ti}),Bo=Object(z.a)(Zo,3),Es=Bo[0],As=Bo[1],$o=Bo[2];return l.createElement(q.Provider,{value:{operationRef:Ss,hideHeader:fa==="time",panelRef:hs,onSelect:no,open:Js,defaultOpenValue:ro,onDateMouseEnter:As,onDateMouseLeave:$o}},l.createElement(Xi,{visible:Js,popupElement:Qi,popupStyle:ui,prefixCls:Jr,dropdownClassName:on,dropdownAlign:zn,getPopupContainer:so,transitionName:di,popupPlacement:Wo,direction:Fo},l.createElement("div",{className:_()(Jr,ii,(_r={},Object(j.a)(_r,"".concat(Jr,"-disabled"),Fa),Object(j.a)(_r,"".concat(Jr,"-focused"),kn),Object(j.a)(_r,"".concat(Jr,"-rtl"),Fo==="rtl"),_r)),style:Yr,onMouseDown:as,onMouseUp:Je,onMouseEnter:Ao,onMouseLeave:$a,onContextMenu:ss,onClick:_s},l.createElement("div",{className:_()("".concat(Jr,"-input"),Object(j.a)({},"".concat(Jr,"-input-placeholder"),!!Es)),ref:Sn},l.createElement("input",Object.assign({id:Jn,tabIndex:fn,disabled:Fa,readOnly:vi||!ci,value:Es||Dn,onChange:function(vo){fi(vo.target.value)},autoFocus:Ni,placeholder:lo,ref:zo,title:Dn},Zr,{size:he(fa,ms[0])},nr(vt),{autoComplete:Eo})),sa,Ua))))}var La=function(vt){Object(X.a)(rn,vt);var _r=Object(F.a)(rn);function rn(){var Jr;return Object(U.a)(this,rn),Jr=_r.apply(this,arguments),Jr.pickerRef=l.createRef(),Jr.focus=function(){Jr.pickerRef.current&&Jr.pickerRef.current.focus()},Jr.blur=function(){Jr.pickerRef.current&&Jr.pickerRef.current.blur()},Jr}return Object(P.a)(rn,[{key:"render",value:function(){return l.createElement(Pa,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),rn}(l.Component),va=La;function ga(vt,_r,rn){var Jr=vt.picker,Jn=vt.locale,fn=vt.selectedValue,Yr=vt.disabledDate,ii=vt.disabled,on=vt.generateConfig,zn=ht(fn,0),ui=ht(fn,1);function di(Ni){var ia=on.getYear(Ni),Ki=on.locale.getWeek(Jn.locale,Ni);return ia*100+Ki}function li(Ni){var ia=on.getYear(Ni),Ki=on.getMonth(Ni);return ia*100+Ki}function Ti(Ni){var ia=on.getYear(Ni),Ki=or(on,Ni);return ia*10+Ki}var vi=l.useCallback(function(Ni){if(Yr&&Yr(Ni))return!0;if(ii[1]&&ui)return!ut(on,Ni,ui)&&on.isAfter(Ni,ui);if(_r&&ui)switch(Jr){case"quarter":return Ti(Ni)>Ti(ui);case"month":return li(Ni)>li(ui);case"week":return di(Ni)>di(ui);default:return!ut(on,Ni,ui)&&on.isAfter(Ni,ui)}return!1},[Yr,ii[1],ui,_r]),yi=l.useCallback(function(Ni){if(Yr&&Yr(Ni))return!0;if(ii[0]&&zn)return!ut(on,Ni,ui)&&on.isAfter(zn,Ni);if(rn&&zn)switch(Jr){case"quarter":return Ti(Ni)<Ti(zn);case"month":return li(Ni)<li(zn);case"week":return di(Ni)<di(zn);default:return!ut(on,Ni,zn)&&on.isAfter(zn,Ni)}return!1},[Yr,ii[0],zn,rn]);return[vi,yi]}function Oa(vt,_r,rn,Jr){var Jn=nn(vt,rn,Jr,1);function fn(Yr){return Yr(vt,_r)?"same":Yr(Jn,_r)?"closing":"far"}switch(rn){case"year":return fn(function(Yr,ii){return vr(Jr,Yr,ii)});case"quarter":case"month":return fn(function(Yr,ii){return bt(Jr,Yr,ii)});default:return fn(function(Yr,ii){return jt(Jr,Yr,ii)})}}function Aa(vt,_r,rn,Jr){var Jn=ht(vt,0),fn=ht(vt,1);if(_r===0)return Jn;if(Jn&&fn){var Yr=Oa(Jn,fn,rn,Jr);switch(Yr){case"same":return Jn;case"closing":return Jn;default:return nn(fn,rn,Jr,-1)}}return Jn}function Xa(vt){var _r=vt.values,rn=vt.picker,Jr=vt.defaultDates,Jn=vt.generateConfig,fn=l.useState(function(){return[ht(Jr,0),ht(Jr,1)]}),Yr=Object(z.a)(fn,2),ii=Yr[0],on=Yr[1],zn=l.useState(null),ui=Object(z.a)(zn,2),di=ui[0],li=ui[1],Ti=ht(_r,0),vi=ht(_r,1);function yi(ia){return ii[ia]?ii[ia]:ht(di,ia)||Aa(_r,ia,rn,Jn)||Ti||vi||Jn.getNow()}function Ni(ia,Ki){if(ia){var fa=Gt(di,ia,Ki);on(Gt(ii,null,Ki)||[null,null]);var Ya=(Ki+1)%2;ht(_r,Ya)||(fa=Gt(fa,ia,Ya)),li(fa)}else(Ti||vi)&&li(null)}return[yi,Ni]}function _a(vt,_r){return vt&&vt[0]&&vt[1]&&_r.isAfter(vt[0],vt[1])?[vt[1],vt[0]]:vt}function Va(vt,_r,rn,Jr){return vt||Jr&&Jr[_r]?!0:!!rn[(_r+1)%2]}function Bi(vt){var _r,rn,Jr,Jn=vt.prefixCls,fn=Jn===void 0?"rc-picker":Jn,Yr=vt.id,ii=vt.style,on=vt.className,zn=vt.popupStyle,ui=vt.dropdownClassName,di=vt.transitionName,li=vt.dropdownAlign,Ti=vt.getPopupContainer,vi=vt.generateConfig,yi=vt.locale,Ni=vt.placeholder,ia=vt.autoFocus,Ki=vt.disabled,fa=vt.format,Ya=vt.picker,Sa=Ya===void 0?"date":Ya,wa=vt.showTime,Da=vt.use12Hours,ja=vt.separator,ko=ja===void 0?"~":ja,ro=vt.value,pa=vt.defaultValue,Ea=vt.defaultPickerValue,Fa=vt.open,Ka=vt.defaultOpen,lo=vt.disabledDate,so=vt.disabledTime,To=vt.dateRender,Lo=vt.panelRender,is=vt.ranges,cs=vt.allowEmpty,Rs=vt.allowClear,Ko=vt.suffixIcon,as=vt.clearIcon,co=vt.pickerRef,Ao=vt.inputReadOnly,$a=vt.mode,ss=vt.renderExtraFooter,_s=vt.onChange,Fo=vt.onOpenChange,il=vt.onPanelChange,Eo=vt.onCalendarChange,zo=vt.onFocus,Fs=vt.onBlur,ms=vt.onOk,hs=vt.components,Sn=vt.order,Ns=vt.direction,Ll=vt.activePickerIndex,el=vt.autoComplete,Gs=el===void 0?"off":el,ds=Sa==="date"&&!!wa||Sa==="time",ks=Object(l.useRef)({}),Qs=Object(l.useRef)(null),tl=Object(l.useRef)(null),Ss=Object(l.useRef)(null),Bs=Object(l.useRef)(null),al=Object(l.useRef)(null),Js=Object(l.useRef)(null),Vo=Object(l.useRef)(null),No=He(et(fa,Sa,wa,Da)),fs=Object(V.a)(0,{value:Ll}),Ds=Object(z.a)(fs,2),go=Ds[0],zt=Ds[1],ur=Object(l.useRef)(null),Dn=l.useMemo(function(){return Array.isArray(Ki)?Ki:[Ki||!1,Ki||!1]},[Ki]),fi=Object(V.a)(null,{value:ro,defaultValue:pa,postState:function(ve){return Sa==="time"&&!Sn?ve:_a(ve,vi)}}),Mt=Object(z.a)(fi,2),ce=Mt[0],Se=Mt[1],Ie=Xa({values:ce,picker:Sa,defaultDates:Ea,generateConfig:vi}),Je=Object(z.a)(Ie,2),Pt=Je[0],cr=Je[1],Zr=Object(V.a)(ce,{postState:function(ve){var Ce=ve;if(Dn[0]&&Dn[1])return Ce;for(var ze=0;ze<2;ze+=1)Dn[ze]&&!ht(Ce,ze)&&!ht(cs,ze)&&(Ce=Gt(Ce,vi.getNow(),ze));return Ce}}),vn=Object(z.a)(Zr,2),kn=vn[0],ci=vn[1],Si=Object(V.a)([Sa,Sa],{value:$a}),Ai=Object(z.a)(Si,2),Qi=Ai[0],sa=Ai[1];Object(l.useEffect)(function(){sa([Sa,Sa])},[Sa]);var Ua=function(ve,Ce){sa(ve),il&&il(Ce,ve)},no=ga({picker:Sa,selectedValue:kn,locale:yi,disabled:Dn,disabledDate:lo,generateConfig:vi},ks.current[1],ks.current[0]),Wo=Object(z.a)(no,2),Zo=Wo[0],Bo=Wo[1],Es=Object(V.a)(!1,{value:Fa,defaultValue:Ka,postState:function(ve){return Dn[go]?!1:ve},onChange:function(ve){Fo&&Fo(ve),!ve&&ur.current&&ur.current.onClose&&ur.current.onClose()}}),As=Object(z.a)(Es,2),$o=As[0],Do=As[1],vo=$o&&go===0,Ms=$o&&go===1,rl=Object(l.useState)(0),gs=Object(z.a)(rl,2),Ra=gs[0],dl=gs[1];Object(l.useEffect)(function(){!$o&&Qs.current&&dl(Qs.current.offsetWidth)},[$o]);var fl=l.useRef();function Us(ne,ve){if(ne)clearTimeout(fl.current),ks.current[ve]=!0,zt(ve),Do(ne),$o||cr(null,ve);else if(go===ve){Do(ne);var Ce=ks.current;fl.current=setTimeout(function(){Ce===ks.current&&(ks.current={})})}}function Os(ne){Us(!0,ne),setTimeout(function(){var ve=[Js,Vo][ne];ve.current&&ve.current.focus()},0)}function Xs(ne,ve){var Ce=ne,ze=ht(Ce,0),st=ht(Ce,1);ze&&st&&vi.isAfter(ze,st)&&(Sa==="week"&&!mt(vi,yi.locale,ze,st)||Sa==="quarter"&&!_t(vi,ze,st)||Sa!=="week"&&Sa!=="quarter"&&Sa!=="time"&&!ut(vi,ze,st)?(ve===0?(Ce=[ze,null],st=null):(ze=null,Ce=[null,st]),ks.current=Object(j.a)({},ve,!0)):(Sa!=="time"||Sn!==!1)&&(Ce=_a(Ce,vi))),ci(Ce);var gt=Ce&&Ce[0]?vi.locale.format(yi.locale,Ce[0],No[0]):"",tr=Ce&&Ce[1]?vi.locale.format(yi.locale,Ce[1],No[0]):"";if(Eo){var Or={range:ve===0?"start":"end"};Eo(Ce,[gt,tr],Or)}var Sr=Va(ze,0,Dn,cs),Wr=Va(st,1,Dn,cs),$r=Ce===null||Sr&&Wr;$r&&(Se(Ce),_s&&(!lt(vi,ht(ce,0),ze)||!lt(vi,ht(ce,1),st))&&_s(Ce,[gt,tr]));var Ln=null;ve===0&&!Dn[1]?Ln=1:ve===1&&!Dn[0]&&(Ln=0),Ln!==null&&Ln!==go&&(!ks.current[Ln]||!ht(Ce,Ln))&&ht(Ce,ve)?Os(Ln):Us(!1,ve)}var Ql=function(ve){return $o&&ur.current&&ur.current.onKeyDown?ur.current.onKeyDown(ve):(Object(S.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ul={formatList:No,generateConfig:vi,locale:yi},wl=Ta(ht(kn,0),Ul),Cs=Object(z.a)(wl,2),Ws=Cs[0],Cl=Cs[1],pl=Ta(ht(kn,1),Ul),jo=Object(z.a)(pl,2),yo=jo[0],qo=jo[1],ps=function(ve,Ce){var ze=vi.locale.parse(yi.locale,ve,No),st=Ce===0?Zo:Bo;ze&&!st(ze)&&(ci(Gt(kn,ze,Ce)),cr(ze,Ce))},Is=Hi({valueTexts:Ws,onTextChange:function(ve){return ps(ve,0)}}),es=Object(z.a)(Is,3),Ls=es[0],Ps=es[1],ml=es[2],Rl=Hi({valueTexts:yo,onTextChange:function(ve){return ps(ve,1)}}),_l=Object(z.a)(Rl,3),Bl=_l[0],jl=_l[1],kl=_l[2],Xl=Object(l.useState)(null),ol=Object(z.a)(Xl,2),Ys=ol[0],sl=ol[1],nl=Object(l.useState)(null),Sl=Object(z.a)(nl,2),Ml=Sl[0],Wl=Sl[1],au=na(Ls,{formatList:No,generateConfig:vi,locale:yi}),Nl=Object(z.a)(au,3),$l=Nl[0],tu=Nl[1],Iu=Nl[2],pu=na(Bl,{formatList:No,generateConfig:vi,locale:yi}),mu=Object(z.a)(pu,3),gu=mu[0],ql=mu[1],Tl=mu[2],ll=function(ve){Wl(Gt(kn,ve,go)),go===0?tu(ve):ql(ve)},Hl=function(){Wl(Gt(kn,null,go)),go===0?Iu():Tl()},xl=function(ve,Ce){return{blurToCancel:ds,forwardKeyDown:Ql,onBlur:Fs,isClickOutside:function(st){return!xe([tl.current,Ss.current,Bs.current],st)},onFocus:function(st){zt(ve),zo&&zo(st)},triggerOpen:function(st){Us(st,ve)},onSubmit:function(){Xs(kn,ve),Ce()},onCancel:function(){Us(!1,ve),ci(ce),Ce()}}},xu=zi(Object(K.a)(Object(K.a)({},xl(0,ml)),{},{open:vo,value:Ls})),vu=Object(z.a)(xu,2),Au=vu[0],Ol=vu[1],cu=Ol.focused,du=Ol.typing,Lu=zi(Object(K.a)(Object(K.a)({},xl(1,kl)),{},{open:Ms,value:Bl})),zl=Object(z.a)(Lu,2),ru=zl[0],ou=zl[1],su=ou.focused,Jl=ou.typing,Du=function(ve){!$o&&!Js.current.contains(ve.target)&&!Vo.current.contains(ve.target)&&(Dn[0]?Dn[1]||Os(1):Os(0))},Ru=function(ve){$o&&(cu||su)&&!Js.current.contains(ve.target)&&!Vo.current.contains(ve.target)&&ve.preventDefault()},Zl=ce&&ce[0]?vi.locale.format(yi.locale,ce[0],"YYYYMMDDHHmmss"):"",yu=ce&&ce[1]?vi.locale.format(yi.locale,ce[1],"YYYYMMDDHHmmss"):"";Object(l.useEffect)(function(){$o||(ci(ce),!Ws.length||Ws[0]===""?Ps(""):Cl!==Ls&&ml(),!yo.length||yo[0]===""?jl(""):qo!==Bl&&kl())},[$o,Ws,yo]),Object(l.useEffect)(function(){ci(ce)},[Zl,yu]),co&&(co.current={focus:function(){Js.current&&Js.current.focus()},blur:function(){Js.current&&Js.current.blur(),Vo.current&&Vo.current.blur()}});var Su=Object.keys(is||{}),bu=Su.map(function(ne){var ve=is[ne],Ce=typeof ve=="function"?ve():ve;return{label:ne,onClick:function(){Xs(Ce,null),Us(!1,go)},onMouseEnter:function(){sl(Ce)},onMouseLeave:function(){sl(null)}}});function hl(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=null;$o&&Ml&&Ml[0]&&Ml[1]&&vi.isAfter(Ml[1],Ml[0])&&(Ce=Ml);var ze=wa;if(wa&&Object(Q.a)(wa)==="object"&&wa.defaultValue){var st=wa.defaultValue;ze=Object(K.a)(Object(K.a)({},wa),{},{defaultValue:ht(st,go)||void 0})}var gt=null;return To&&(gt=function(Or,Sr){return To(Or,Sr,{range:go?"end":"start"})}),l.createElement(Bn.Provider,{value:{inRange:!0,panelPosition:ne,rangedValue:Ys||kn,hoverRangedValue:Ce}},l.createElement(tn,Object.assign({},vt,ve,{dateRender:gt,showTime:ze,mode:Qi[go],generateConfig:vi,style:void 0,direction:Ns,disabledDate:go===0?Zo:Bo,disabledTime:function(Or){return so?so(Or,go===0?"start":"end"):!1},className:_()(Object(j.a)({},"".concat(fn,"-panel-focused"),go===0?!du:!Jl)),value:ht(kn,go),locale:yi,tabIndex:-1,onPanelChange:function(Or,Sr){Ua(Gt(Qi,Sr,go),Gt(kn,Or,go));var Wr=Or;ne==="right"&&Qi[go]===Sr&&(Wr=nn(Wr,Sr,vi,-1)),cr(Wr,go)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Dl=0,nu=0;go&&Ss.current&&al.current&&tl.current&&(Dl=Ss.current.offsetWidth+al.current.offsetWidth,tl.current.offsetWidth&&Dl>tl.current.offsetWidth&&(nu=Dl));var Nu=Ns==="rtl"?{right:Dl}:{left:Dl};function hu(){var ne,ve=Br(fn,Qi[go],ss),Ce=jn({prefixCls:fn,components:hs,needConfirmButton:ds,okDisabled:!ht(kn,go)||lo&&lo(kn[go]),locale:yi,rangeList:bu,onOk:function(){ht(kn,go)&&(Xs(kn,go),ms&&ms(kn))}});if(Sa!=="time"&&!wa){var ze=Pt(go),st=nn(ze,Sa,vi),gt=Qi[go],tr=gt===Sa,Or=hl(tr?"left":!1,{pickerValue:ze,onPickerValueChange:function(Ln){cr(Ln,go)}}),Sr=hl("right",{pickerValue:st,onPickerValueChange:function(Ln){cr(nn(Ln,Sa,vi,-1),go)}});Ns==="rtl"?ne=l.createElement(l.Fragment,null,Sr,tr&&Or):ne=l.createElement(l.Fragment,null,Or,tr&&Sr)}else ne=hl();var Wr=l.createElement(l.Fragment,null,l.createElement("div",{className:"".concat(fn,"-panels")},ne),(ve||Ce)&&l.createElement("div",{className:"".concat(fn,"-footer")},ve,Ce));return Lo&&(Wr=Lo(Wr)),l.createElement("div",{className:"".concat(fn,"-panel-container"),style:{marginLeft:nu},ref:tl,onMouseDown:function(Ln){Ln.preventDefault()}},Wr)}var fu=l.createElement("div",{className:_()("".concat(fn,"-range-wrapper"),"".concat(fn,"-").concat(Sa,"-range-wrapper")),style:{minWidth:Ra}},l.createElement("div",{className:"".concat(fn,"-range-arrow"),style:Nu}),hu()),iu;Ko&&(iu=l.createElement("span",{className:"".concat(fn,"-suffix")},Ko));var Ae;Rs&&(ht(ce,0)&&!Dn[0]||ht(ce,1)&&!Dn[1])&&(Ae=l.createElement("span",{onMouseDown:function(ve){ve.preventDefault(),ve.stopPropagation()},onMouseUp:function(ve){ve.preventDefault(),ve.stopPropagation();var Ce=ce;Dn[0]||(Ce=Gt(Ce,null,0)),Dn[1]||(Ce=Gt(Ce,null,1)),Xs(Ce,null),Us(!1,go)},className:"".concat(fn,"-clear")},as||l.createElement("span",{className:"".concat(fn,"-clear-btn")})));var ee={size:he(Sa,No[0])},L=0,W=0;Ss.current&&Bs.current&&al.current&&(go===0?W=Ss.current.offsetWidth:(L=Dl,W=Bs.current.offsetWidth));var H=Ns==="rtl"?{right:L}:{left:L},Z=function(ve,Ce){var ze=Gt(kn,ve,go);Ce==="submit"||Ce!=="key"&&!ds?(Xs(ze,go),go===0?Iu():Tl()):ci(ze)};return l.createElement(q.Provider,{value:{operationRef:ur,hideHeader:Sa==="time",onDateMouseEnter:ll,onDateMouseLeave:Hl,hideRanges:!0,onSelect:Z,open:$o}},l.createElement(Xi,{visible:$o,popupElement:fu,popupStyle:zn,prefixCls:fn,dropdownClassName:ui,dropdownAlign:li,getPopupContainer:Ti,transitionName:di,range:!0,direction:Ns},l.createElement("div",Object.assign({ref:Qs,className:_()(fn,"".concat(fn,"-range"),on,(_r={},Object(j.a)(_r,"".concat(fn,"-disabled"),Dn[0]&&Dn[1]),Object(j.a)(_r,"".concat(fn,"-focused"),go===0?cu:su),Object(j.a)(_r,"".concat(fn,"-rtl"),Ns==="rtl"),_r)),style:ii,onClick:Du,onMouseDown:Ru},nr(vt)),l.createElement("div",{className:_()("".concat(fn,"-input"),(rn={},Object(j.a)(rn,"".concat(fn,"-input-active"),go===0),Object(j.a)(rn,"".concat(fn,"-input-placeholder"),!!$l),rn)),ref:Ss},l.createElement("input",Object.assign({id:Yr,disabled:Dn[0],readOnly:Ao||!du,value:$l||Ls,onChange:function(ve){Ps(ve.target.value)},autoFocus:ia,placeholder:ht(Ni,0)||"",ref:Js},Au,ee,{autoComplete:Gs}))),l.createElement("div",{className:"".concat(fn,"-range-separator"),ref:al},ko),l.createElement("div",{className:_()("".concat(fn,"-input"),(Jr={},Object(j.a)(Jr,"".concat(fn,"-input-active"),go===1),Object(j.a)(Jr,"".concat(fn,"-input-placeholder"),!!gu),Jr)),ref:Bs},l.createElement("input",Object.assign({disabled:Dn[1],readOnly:Ao||!Jl,value:gu||Bl,onChange:function(ve){jl(ve.target.value)},placeholder:ht(Ni,1)||"",ref:Vo},ru,ee,{autoComplete:Gs}))),l.createElement("div",{className:"".concat(fn,"-active-bar"),style:Object(K.a)(Object(K.a)({},H),{},{width:W,position:"absolute"})}),iu,Ae)))}var io=function(vt){Object(X.a)(rn,vt);var _r=Object(F.a)(rn);function rn(){var Jr;return Object(U.a)(this,rn),Jr=_r.apply(this,arguments),Jr.pickerRef=l.createRef(),Jr.focus=function(){Jr.pickerRef.current&&Jr.pickerRef.current.focus()},Jr.blur=function(){Jr.pickerRef.current&&Jr.pickerRef.current.blur()},Jr}return Object(P.a)(rn,[{key:"render",value:function(){return l.createElement(Bi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),rn}(l.Component),oo=io,Qo=va,mo=n("61s2");function Co(vt,_r,rn){return rn!==void 0?rn:vt==="year"&&_r.lang.yearPlaceholder?_r.lang.yearPlaceholder:vt==="quarter"&&_r.lang.quarterPlaceholder?_r.lang.quarterPlaceholder:vt==="month"&&_r.lang.monthPlaceholder?_r.lang.monthPlaceholder:vt==="week"&&_r.lang.weekPlaceholder?_r.lang.weekPlaceholder:vt==="time"&&_r.timePickerLocale.placeholder?_r.timePickerLocale.placeholder:_r.lang.placeholder}function ao(vt,_r,rn){return rn!==void 0?rn:vt==="year"&&_r.lang.yearPlaceholder?_r.lang.rangeYearPlaceholder:vt==="month"&&_r.lang.monthPlaceholder?_r.lang.rangeMonthPlaceholder:vt==="week"&&_r.lang.weekPlaceholder?_r.lang.rangeWeekPlaceholder:vt==="time"&&_r.timePickerLocale.placeholder?_r.timePickerLocale.rangePlaceholder:_r.lang.rangePlaceholder}var xo=n("uaoM"),bo=n("H84U"),to=n("YMnH"),Jo=n("3Nzz"),Uo=function(vt,_r){var rn={};for(var Jr in vt)Object.prototype.hasOwnProperty.call(vt,Jr)&&_r.indexOf(Jr)<0&&(rn[Jr]=vt[Jr]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jn=0,Jr=Object.getOwnPropertySymbols(vt);Jn<Jr.length;Jn++)_r.indexOf(Jr[Jn])<0&&Object.prototype.propertyIsEnumerable.call(vt,Jr[Jn])&&(rn[Jr[Jn]]=vt[Jr[Jn]]);return rn};function wo(vt){function _r(on,zn){var ui=function(di){b()(Ti,di);var li=E()(Ti);function Ti(vi){var yi;return c()(this,Ti),yi=li.call(this,vi),yi.pickerRef=l.createRef(),yi.focus=function(){yi.pickerRef.current&&yi.pickerRef.current.focus()},yi.blur=function(){yi.pickerRef.current&&yi.pickerRef.current.blur()},yi.getDefaultLocale=function(){var Ni=yi.props.locale,ia=d()(d()({},mo.a),Ni);return ia.lang=d()(d()({},ia.lang),(Ni||{}).lang),ia},yi.renderPicker=function(Ni){var ia=yi.context,Ki=ia.getPrefixCls,fa=ia.direction,Ya=ia.getPopupContainer,Sa=yi.props,wa=Sa.prefixCls,Da=Sa.getPopupContainer,ja=Sa.className,ko=Sa.size,ro=Sa.bordered,pa=ro===void 0?!0:ro,Ea=Sa.placeholder,Fa=Uo(Sa,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ka=yi.props,lo=Ka.format,so=Ka.showTime,To=Ki("picker",wa),Lo={showToday:!0},is={};on&&(is.picker=on);var cs=on||yi.props.picker;return is=d()(d()(d()({},is),so?rs(d()({format:lo,picker:cs},so)):{}),cs==="time"?rs(d()(d()({format:lo},yi.props),{picker:cs})):{}),l.createElement(Jo.b.Consumer,null,function(Rs){var Ko,as=ko||Rs;return l.createElement(Qo,d()({ref:yi.pickerRef,placeholder:Co(cs,Ni,Ea),suffixIcon:cs==="time"?l.createElement(I.a,null):l.createElement(w.a,null),clearIcon:l.createElement(M.a,null),allowClear:!0,transitionName:"slide-up"},Lo,Fa,is,{locale:Ni.lang,className:_()(ja,(Ko={},r()(Ko,"".concat(To,"-").concat(as),as),r()(Ko,"".concat(To,"-borderless"),!pa),Ko)),prefixCls:To,getPopupContainer:Da||Ya,generateConfig:vt,prevIcon:l.createElement("span",{className:"".concat(To,"-prev-icon")}),nextIcon:l.createElement("span",{className:"".concat(To,"-next-icon")}),superPrevIcon:l.createElement("span",{className:"".concat(To,"-super-prev-icon")}),superNextIcon:l.createElement("span",{className:"".concat(To,"-super-next-icon")}),components:os,direction:fa}))})},Object(xo.a)(on!=="quarter",zn,"DatePicker.".concat(zn," is legacy usage. Please use DatePicker[picker='").concat(on,"'] directly.")),yi}return v()(Ti,[{key:"render",value:function(){return l.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Ti}(l.Component);return ui.contextType=bo.b,zn&&(ui.displayName=zn),ui}var rn=_r(),Jr=_r("week","WeekPicker"),Jn=_r("month","MonthPicker"),fn=_r("year","YearPicker"),Yr=_r("time","TimePicker"),ii=_r("quarter","QuarterPicker");return{DatePicker:rn,WeekPicker:Jr,MonthPicker:Jn,YearPicker:fn,TimePicker:Yr,QuarterPicker:ii}}var ts=n("8ISB"),Ia=n.n(ts),Oo=function(vt,_r){var rn={};for(var Jr in vt)Object.prototype.hasOwnProperty.call(vt,Jr)&&_r.indexOf(Jr)<0&&(rn[Jr]=vt[Jr]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jn=0,Jr=Object.getOwnPropertySymbols(vt);Jn<Jr.length;Jn++)_r.indexOf(Jr[Jn])<0&&Object.prototype.propertyIsEnumerable.call(vt,Jr[Jn])&&(rn[Jr[Jn]]=vt[Jr[Jn]]);return rn};function Io(vt){var _r=function(rn){b()(Jn,rn);var Jr=E()(Jn);function Jn(){var fn;return c()(this,Jn),fn=Jr.apply(this,arguments),fn.pickerRef=l.createRef(),fn.focus=function(){fn.pickerRef.current&&fn.pickerRef.current.focus()},fn.blur=function(){fn.pickerRef.current&&fn.pickerRef.current.blur()},fn.getDefaultLocale=function(){var Yr=fn.props.locale,ii=d()(d()({},mo.a),Yr);return ii.lang=d()(d()({},ii.lang),(Yr||{}).lang),ii},fn.renderPicker=function(Yr){var ii=fn.context,on=ii.getPrefixCls,zn=ii.direction,ui=ii.getPopupContainer,di=fn.props,li=di.prefixCls,Ti=di.getPopupContainer,vi=di.className,yi=di.size,Ni=di.bordered,ia=Ni===void 0?!0:Ni,Ki=di.placeholder,fa=Oo(di,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ya=fn.props,Sa=Ya.format,wa=Ya.showTime,Da=Ya.picker,ja=on("picker",li),ko={};return ko=d()(d()(d()({},ko),wa?rs(d()({format:Sa,picker:Da},wa)):{}),Da==="time"?rs(d()(d()({format:Sa},fn.props),{picker:Da})):{}),l.createElement(Jo.b.Consumer,null,function(ro){var pa,Ea=yi||ro;return l.createElement(oo,d()({separator:l.createElement("span",{"aria-label":"to",className:"".concat(ja,"-separator")},l.createElement(Ia.a,null)),ref:fn.pickerRef,placeholder:ao(Da,Yr,Ki),suffixIcon:Da==="time"?l.createElement(I.a,null):l.createElement(w.a,null),clearIcon:l.createElement(M.a,null),allowClear:!0,transitionName:"slide-up"},fa,ko,{className:_()(vi,(pa={},r()(pa,"".concat(ja,"-").concat(Ea),Ea),r()(pa,"".concat(ja,"-borderless"),!ia),pa)),locale:Yr.lang,prefixCls:ja,getPopupContainer:Ti||ui,generateConfig:vt,prevIcon:l.createElement("span",{className:"".concat(ja,"-prev-icon")}),nextIcon:l.createElement("span",{className:"".concat(ja,"-next-icon")}),superPrevIcon:l.createElement("span",{className:"".concat(ja,"-super-prev-icon")}),superNextIcon:l.createElement("span",{className:"".concat(ja,"-super-next-icon")}),components:os,direction:zn}))})},fn}return v()(Jn,[{key:"render",value:function(){return l.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Jn}(l.Component);return _r.contextType=bo.b,_r}var os={button:t,rangeItem:e};function So(vt){return vt?Array.isArray(vt)?vt:[vt]:[]}function rs(vt){var _r=vt.format,rn=vt.picker,Jr=vt.showHour,Jn=vt.showMinute,fn=vt.showSecond,Yr=vt.use12Hours,ii=So(_r)[0],on=d()({},vt);return ii&&(!ii.includes("s")&&fn===void 0&&(on.showSecond=!1),!ii.includes("m")&&Jn===void 0&&(on.showMinute=!1),!ii.includes("H")&&!ii.includes("h")&&Jr===void 0&&(on.showHour=!1),(ii.includes("a")||ii.includes("A"))&&Yr===void 0&&(on.use12Hours=!0)),rn==="time"?on:{showTime:on}}function Ho(vt){var _r=wo(vt),rn=_r.DatePicker,Jr=_r.WeekPicker,Jn=_r.MonthPicker,fn=_r.YearPicker,Yr=_r.TimePicker,ii=_r.QuarterPicker,on=Io(vt),zn=rn;return zn.WeekPicker=Jr,zn.MonthPicker=Jn,zn.YearPicker=fn,zn.RangePicker=on,zn.TimePicker=Yr,zn.QuarterPicker=ii,zn}var _o=Ho,uo=_o(p),Ha=D.a=uo},"+lIL":function(R,D,n){var y=n("ProS");n("/ry/"),n("3OrL");var g=n("L5E0"),S=n("7Phj");y.registerVisual(g),y.registerLayout(S)},"+nKL":function(R,D,n){"use strict";var y=n("wx14"),g=n("VTBJ"),S=n("U8pU"),m=n("ODXe"),p=n("rePB"),f=n("Ff2n"),d=n("q1tI"),l=n("i8i4"),a=n("TSYQ"),i=n.n(a),t=n("t23M"),o=d.forwardRef(function(et,he){var J=et.height,Y=et.offsetY,$=et.offsetX,de=et.children,be=et.prefixCls,Te=et.onInnerResize,Be=et.innerProps,fe=et.rtl,xe=et.extra,ke={},nt={display:"flex",flexDirection:"column"};if(Y!==void 0){var Ct;ke={height:J,position:"relative",overflow:"hidden"},nt=Object(g.a)(Object(g.a)({},nt),{},(Ct={transform:"translateY(".concat(Y,"px)")},Object(p.a)(Ct,fe?"marginRight":"marginLeft",-$),Object(p.a)(Ct,"position","absolute"),Object(p.a)(Ct,"left",0),Object(p.a)(Ct,"right",0),Object(p.a)(Ct,"top",0),Ct))}return d.createElement("div",{style:ke},d.createElement(t.a,{onResize:function(He){var nr=He.offsetHeight;nr&&Te&&Te()}},d.createElement("div",Object(y.a)({style:nt,className:i()(Object(p.a)({},"".concat(be,"-holder-inner"),be)),ref:he},Be),de,xe)))});o.displayName="Filler";var e=o,u=n("wgJM");function r(et,he){var J="touches"in et?et.touches[0]:et;return J[he?"pageX":"pageY"]}var s=d.forwardRef(function(et,he){var J,Y=et.prefixCls,$=et.rtl,de=et.scrollOffset,be=et.scrollRange,Te=et.onStartMove,Be=et.onStopMove,fe=et.onScroll,xe=et.horizontal,ke=et.spinSize,nt=et.containerSize,Ct=et.style,pt=et.thumbStyle,He=d.useState(!1),nr=Object(m.a)(He,2),ht=nr[0],Gt=nr[1],pr=d.useState(null),Qt=Object(m.a)(pr,2),Ht=Qt[0],Jt=Qt[1],Ge=d.useState(null),pe=Object(m.a)(Ge,2),oe=pe[0],ct=pe[1],qe=!$,me=d.useRef(),Kt=d.useRef(),vr=d.useState(!1),bt=Object(m.a)(vr,2),or=bt[0],_t=bt[1],jt=d.useRef(),ut=function(){clearTimeout(jt.current),_t(!0),jt.current=setTimeout(function(){_t(!1)},3e3)},St=be-nt||0,mt=nt-ke||0,lt=St>0,tt=d.useMemo(function(){if(de===0||St===0)return 0;var Tt=de/St;return Tt*mt},[de,St,mt]),Cr=function(De){De.stopPropagation(),De.preventDefault()},nn=d.useRef({top:tt,dragging:ht,pageY:Ht,startTop:oe});nn.current={top:tt,dragging:ht,pageY:Ht,startTop:oe};var mn=function(De){Gt(!0),Jt(r(De,xe)),ct(nn.current.top),Te(),De.stopPropagation(),De.preventDefault()};d.useEffect(function(){var Tt=function(rt){rt.preventDefault()},De=me.current,Re=Kt.current;return De.addEventListener("touchstart",Tt),Re.addEventListener("touchstart",mn),function(){De.removeEventListener("touchstart",Tt),Re.removeEventListener("touchstart",mn)}},[]);var Bn=d.useRef();Bn.current=St;var oi=d.useRef();oi.current=mt,d.useEffect(function(){if(ht){var Tt,De=function(rt){var wt=nn.current,Ot=wt.dragging,$t=wt.pageY,Mr=wt.startTop;if(u.a.cancel(Tt),Ot){var Vr=r(rt,xe)-$t,hn=Mr;!qe&&xe?hn-=Vr:hn+=Vr;var Vt=Bn.current,yt=oi.current,xt=yt?hn/yt:0,dr=Math.ceil(xt*Vt);dr=Math.max(dr,0),dr=Math.min(dr,Vt),Tt=Object(u.a)(function(){fe(dr,xe)})}},Re=function(){Gt(!1),Be()};return window.addEventListener("mousemove",De),window.addEventListener("touchmove",De),window.addEventListener("mouseup",Re),window.addEventListener("touchend",Re),function(){window.removeEventListener("mousemove",De),window.removeEventListener("touchmove",De),window.removeEventListener("mouseup",Re),window.removeEventListener("touchend",Re),u.a.cancel(Tt)}}},[ht]),d.useEffect(function(){ut()},[de]),d.useImperativeHandle(he,function(){return{delayHidden:ut}});var wn="".concat(Y,"-scrollbar"),Rn={position:"absolute",visibility:or&&lt?null:"hidden"},Zt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return xe?(Rn.height=8,Rn.left=0,Rn.right=0,Rn.bottom=0,Zt.height="100%",Zt.width=ke,qe?Zt.left=tt:Zt.right=tt):(Rn.width=8,Rn.top=0,Rn.bottom=0,qe?Rn.right=0:Rn.left=0,Zt.width="100%",Zt.height=ke,Zt.top=tt),d.createElement("div",{ref:me,className:i()(wn,(J={},Object(p.a)(J,"".concat(wn,"-horizontal"),xe),Object(p.a)(J,"".concat(wn,"-vertical"),!xe),Object(p.a)(J,"".concat(wn,"-visible"),or),J)),style:Object(g.a)(Object(g.a)({},Rn),Ct),onMouseDown:Cr,onMouseMove:ut},d.createElement("div",{ref:Kt,className:i()("".concat(wn,"-thumb"),Object(p.a)({},"".concat(wn,"-thumb-moving"),ht)),style:Object(g.a)(Object(g.a)({},Zt),pt),onMouseDown:mn}))}),c=s;function h(et){var he=et.children,J=et.setRef,Y=d.useCallback(function($){J($)},[]);return d.cloneElement(he,{ref:Y})}function v(et,he,J,Y,$,de,be){var Te=be.getKey;return et.slice(he,J+1).map(function(Be,fe){var xe=he+fe,ke=de(Be,xe,{style:{width:Y}}),nt=Te(Be);return d.createElement(h,{key:nt,setRef:function(pt){return $(Be,pt)}},ke)})}var A=n("m+aA"),b=n("1OyB"),x=n("vuIU"),E=function(){function et(){Object(b.a)(this,et),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Object(x.a)(et,[{key:"set",value:function(J,Y){this.maps[J]=Y,this.id+=1}},{key:"get",value:function(J){return this.maps[J]}}]),et}(),T=E;function _(et,he,J){var Y=d.useState(0),$=Object(m.a)(Y,2),de=$[0],be=$[1],Te=Object(d.useRef)(new Map),Be=Object(d.useRef)(new T),fe=Object(d.useRef)();function xe(){u.a.cancel(fe.current)}function ke(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;xe();var pt=function(){Te.current.forEach(function(nr,ht){if(nr&&nr.offsetParent){var Gt=Object(A.a)(nr),pr=Gt.offsetHeight;Be.current.get(ht)!==pr&&Be.current.set(ht,Gt.offsetHeight)}}),be(function(nr){return nr+1})};Ct?pt():fe.current=Object(u.a)(pt)}function nt(Ct,pt){var He=et(Ct),nr=Te.current.get(He);pt?(Te.current.set(He,pt),ke()):Te.current.delete(He),!nr!==!pt&&(pt?he==null||he(Ct):J==null||J(Ct))}return Object(d.useEffect)(function(){return xe},[]),[nt,ke,Be.current,de]}var C=n("TNol"),w=n("mBDr"),O=n("6cGi"),I=n("c+Xe"),k=n("ub+h"),M=n("bG1m"),U=n("Kwbf"),P=10;function X(et,he,J,Y,$,de,be,Te){var Be=d.useRef(),fe=d.useState(null),xe=Object(m.a)(fe,2),ke=xe[0],nt=xe[1];return Object(C.a)(function(){if(ke&&ke.times<P){if(!et.current){nt(function(ut){return Object(g.a)({},ut)});return}de();var Ct=ke.targetAlign,pt=ke.originAlign,He=ke.index,nr=ke.offset,ht=et.current.clientHeight,Gt=!1,pr=Ct,Qt=null;if(ht){for(var Ht=Ct||pt,Jt=0,Ge=0,pe=0,oe=Math.min(he.length-1,He),ct=0;ct<=oe;ct+=1){var qe=$(he[ct]);Ge=Jt;var me=J.get(qe);pe=Ge+(me===void 0?Y:me),Jt=pe}for(var Kt=Ht==="top"?nr:ht-nr,vr=oe;vr>=0;vr-=1){var bt=$(he[vr]),or=J.get(bt);if(or===void 0){Gt=!0;break}if(Kt-=or,Kt<=0)break}switch(Ht){case"top":Qt=Ge-nr;break;case"bottom":Qt=pe-ht+nr;break;default:{var _t=et.current.scrollTop,jt=_t+ht;Ge<_t?pr="top":pe>jt&&(pr="bottom")}}Qt!==null&&be(Qt),Qt!==ke.lastTop&&(Gt=!0)}Gt&&nt(function(ut){return Object(g.a)(Object(g.a)({},ut),{},{times:ut.times+1,targetAlign:pr,lastTop:Qt})})}},[ke,et.current]),function(Ct){if(Ct==null){Te();return}if(u.a.cancel(Be.current),typeof Ct=="number")be(Ct);else if(Ct&&Object(S.a)(Ct)==="object"){var pt,He=Ct.align;"index"in Ct?pt=Ct.index:pt=he.findIndex(function(Gt){return $(Gt)===Ct.key});var nr=Ct.offset,ht=nr===void 0?0:nr;nt({times:0,index:pt,offset:ht,originAlign:He})}}}function F(et,he,J,Y){var $=J-et,de=he-J,be=Math.min($,de)*2;if(Y<=be){var Te=Math.floor(Y/2);return Y%2?J+Te+1:J-Te}return $>de?J-(Y-de):J+(Y-$)}function j(et,he,J){var Y=et.length,$=he.length,de,be;if(Y===0&&$===0)return null;Y<$?(de=et,be=he):(de=he,be=et);var Te={__EMPTY_ITEM__:!0};function Be(pt){return pt!==void 0?J(pt):Te}for(var fe=null,xe=Math.abs(Y-$)!==1,ke=0;ke<be.length;ke+=1){var nt=Be(de[ke]),Ct=Be(be[ke]);if(nt!==Ct){fe=ke,xe=xe||nt!==Be(be[ke+1]);break}}return fe===null?null:{index:fe,multiple:xe}}function K(et,he,J){var Y=d.useState(et),$=Object(m.a)(Y,2),de=$[0],be=$[1],Te=d.useState(null),Be=Object(m.a)(Te,2),fe=Be[0],xe=Be[1];return d.useEffect(function(){var ke=j(de||[],et||[],he);(ke==null?void 0:ke.index)!==void 0&&(J==null||J(ke.index),xe(et[ke.index])),be(et)},[et]),[fe]}var z=(typeof navigator=="undefined"?"undefined":Object(S.a)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),V=z,Q=function(et,he){var J=Object(d.useRef)(!1),Y=Object(d.useRef)(null);function $(){clearTimeout(Y.current),J.current=!0,Y.current=setTimeout(function(){J.current=!1},50)}var de=Object(d.useRef)({top:et,bottom:he});return de.current.top=et,de.current.bottom=he,function(be){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Be=be<0&&de.current.top||be>0&&de.current.bottom;return Te&&Be?(clearTimeout(Y.current),J.current=!1):(!Be||J.current)&&$(),!J.current&&Be}};function G(et,he,J,Y,$){var de=Object(d.useRef)(0),be=Object(d.useRef)(null),Te=Object(d.useRef)(null),Be=Object(d.useRef)(!1),fe=Q(he,J);function xe(nr,ht){if(u.a.cancel(be.current),de.current+=ht,Te.current=ht,fe(ht))return;V||nr.preventDefault(),be.current=Object(u.a)(function(){var Gt=Be.current?10:1;$(de.current*Gt),de.current=0})}function ke(nr,ht){$(ht,!0),V||nr.preventDefault()}var nt=Object(d.useRef)(null),Ct=Object(d.useRef)(null);function pt(nr){if(!et)return;u.a.cancel(Ct.current),Ct.current=Object(u.a)(function(){nt.current=null},2);var ht=nr.deltaX,Gt=nr.deltaY,pr=nr.shiftKey,Qt=ht,Ht=Gt;(nt.current==="sx"||!nt.current&&(pr||!1)&&Gt&&!ht)&&(Qt=Gt,Ht=0,nt.current="sx");var Jt=Math.abs(Qt),Ge=Math.abs(Ht);nt.current===null&&(nt.current=Y&&Jt>Ge?"x":"y"),nt.current==="y"?xe(nr,Ht):ke(nr,Qt)}function He(nr){if(!et)return;Be.current=nr.detail===Te.current}return[pt,He]}var te=14/15;function q(et,he,J){var Y=Object(d.useRef)(!1),$=Object(d.useRef)(0),de=Object(d.useRef)(null),be=Object(d.useRef)(null),Te,Be=function(nt){if(Y.current){var Ct=Math.ceil(nt.touches[0].pageY),pt=$.current-Ct;$.current=Ct,J(pt)&&nt.preventDefault(),clearInterval(be.current),be.current=setInterval(function(){pt*=te,(!J(pt,!0)||Math.abs(pt)<=.1)&&clearInterval(be.current)},16)}},fe=function(){Y.current=!1,Te()},xe=function(nt){Te(),nt.touches.length===1&&!Y.current&&(Y.current=!0,$.current=Math.ceil(nt.touches[0].pageY),de.current=nt.target,de.current.addEventListener("touchmove",Be),de.current.addEventListener("touchend",fe))};Te=function(){de.current&&(de.current.removeEventListener("touchmove",Be),de.current.removeEventListener("touchend",fe))},Object(C.a)(function(){return et&&he.current.addEventListener("touchstart",xe),function(){var ke;(ke=he.current)===null||ke===void 0||ke.removeEventListener("touchstart",xe),Te(),clearInterval(be.current)}},[et])}var se=20;function re(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,J=et/he*100;return isNaN(J)&&(J=0),J=Math.max(J,se),J=Math.min(J,et/2),Math.floor(J)}function we(et,he,J,Y){var $=d.useMemo(function(){return[new Map,[]]},[et,J.id,Y]),de=Object(m.a)($,2),be=de[0],Te=de[1],Be=function(xe){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xe,nt=be.get(xe),Ct=be.get(ke);if(nt===void 0||Ct===void 0)for(var pt=et.length,He=Te.length;He<pt;He+=1){var nr,ht=et[He],Gt=he(ht);be.set(Gt,He);var pr=(nr=J.get(Gt))!==null&&nr!==void 0?nr:Y;if(Te[He]=(Te[He-1]||0)+pr,Gt===xe&&(nt=He),Gt===ke&&(Ct=He),nt!==void 0&&Ct!==void 0)break}return{top:Te[nt-1]||0,bottom:Te[Ct]}};return Be}var Oe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Me=[],Qe={overflowY:"auto",overflowAnchor:"none"};function Ve(et,he){var J=et.prefixCls,Y=J===void 0?"rc-virtual-list":J,$=et.className,de=et.height,be=et.itemHeight,Te=et.fullHeight,Be=Te===void 0?!0:Te,fe=et.style,xe=et.data,ke=et.children,nt=et.itemKey,Ct=et.virtual,pt=et.direction,He=et.scrollWidth,nr=et.component,ht=nr===void 0?"div":nr,Gt=et.onScroll,pr=et.onVirtualScroll,Qt=et.onVisibleChange,Ht=et.innerProps,Jt=et.extraRender,Ge=et.styles,pe=Object(f.a)(et,Oe),oe=!!(Ct!==!1&&de&&be),ct=oe&&xe&&(be*xe.length>de||!!He),qe=pt==="rtl",me=i()(Y,Object(p.a)({},"".concat(Y,"-rtl"),qe),$),Kt=xe||Me,vr=Object(d.useRef)(),bt=Object(d.useRef)(),or=Object(d.useState)(0),_t=Object(m.a)(or,2),jt=_t[0],ut=_t[1],St=Object(d.useState)(0),mt=Object(m.a)(St,2),lt=mt[0],tt=mt[1],Cr=Object(d.useState)(!1),nn=Object(m.a)(Cr,2),mn=nn[0],Bn=nn[1],oi=function(){Bn(!0)},wn=function(){Bn(!1)},Rn=d.useCallback(function(ti){return typeof nt=="function"?nt(ti):ti==null?void 0:ti[nt]},[nt]),Zt={getKey:Rn};function Tt(ti){ut(function(mi){var Pi;typeof ti=="function"?Pi=ti(mi):Pi=ti;var en=_i(Pi);return vr.current.scrollTop=en,en})}var De=Object(d.useRef)({start:0,end:Kt.length}),Re=Object(d.useRef)(),Pe=K(Kt,Rn),rt=Object(m.a)(Pe,1),wt=rt[0];Re.current=wt;var Ot=_(Rn,null,null),$t=Object(m.a)(Ot,4),Mr=$t[0],Vr=$t[1],hn=$t[2],Vt=$t[3],yt=d.useMemo(function(){if(!oe)return{scrollHeight:void 0,start:0,end:Kt.length-1,offset:void 0};if(!ct){var ti;return{scrollHeight:((ti=bt.current)===null||ti===void 0?void 0:ti.offsetHeight)||0,start:0,end:Kt.length-1,offset:void 0}}for(var mi=0,Pi,en,Tn,Yn=Kt.length,Yt=0;Yt<Yn;Yt+=1){var Dt=Kt[Yt],Bt=Rn(Dt),Wt=hn.get(Bt),Xt=mi+(Wt===void 0?be:Wt);Xt>=jt&&Pi===void 0&&(Pi=Yt,en=mi),Xt>jt+de&&Tn===void 0&&(Tn=Yt),mi=Xt}return Pi===void 0&&(Pi=0,en=0,Tn=Math.ceil(de/be)),Tn===void 0&&(Tn=Kt.length-1),Tn=Math.min(Tn+1,Kt.length-1),{scrollHeight:mi,start:Pi,end:Tn,offset:en}},[ct,oe,jt,Kt,Vt,de]),xt=yt.scrollHeight,dr=yt.start,er=yt.end,Ut=yt.offset;De.current.start=dr,De.current.end=er;var ir=d.useState({width:0,height:de}),Ft=Object(m.a)(ir,2),rr=Ft[0],Kr=Ft[1],Rr=function(mi){Kr({width:mi.width||mi.offsetWidth,height:mi.height||mi.offsetHeight})},kr=Object(d.useRef)(),dn=Object(d.useRef)(),yn=d.useMemo(function(){return re(rr.width,He)},[rr.width,He]),ri=d.useMemo(function(){return re(rr.height,xt)},[rr.height,xt]),$n=xt-de,pi=Object(d.useRef)($n);pi.current=$n;function _i(ti){var mi=ti;return Number.isNaN(pi.current)||(mi=Math.min(mi,pi.current)),mi=Math.max(mi,0),mi}var Di=jt<=0,Wi=jt>=$n,at=Q(Di,Wi),Le=function(){return{x:qe?-lt:lt,y:jt}},je=Object(d.useRef)(Le()),Xe=Object(w.a)(function(){if(pr){var ti=Le();(je.current.x!==ti.x||je.current.y!==ti.y)&&(pr(ti),je.current=ti)}});function it(ti,mi){var Pi=ti;mi?(Object(l.flushSync)(function(){tt(Pi)}),Xe()):Tt(Pi)}function Ze(ti){var mi=ti.currentTarget.scrollTop;mi!==jt&&Tt(mi),Gt==null||Gt(ti),Xe()}var ot=function(mi){var Pi=mi,en=He-rr.width;return Pi=Math.max(Pi,0),Pi=Math.min(Pi,en),Pi},Lt=Object(w.a)(function(ti,mi){mi?(Object(l.flushSync)(function(){tt(function(Pi){var en=Pi+(qe?-ti:ti);return ot(en)})}),Xe()):Tt(function(Pi){var en=Pi+ti;return en})}),At=G(oe,Di,Wi,!!He,Lt),mr=Object(m.a)(At,2),qr=mr[0],Qr=mr[1];q(oe,vr,function(ti,mi){return at(ti,mi)?!1:(qr({preventDefault:function(){},deltaY:ti}),!0)}),Object(C.a)(function(){function ti(Pi){oe&&Pi.preventDefault()}var mi=vr.current;return mi.addEventListener("wheel",qr),mi.addEventListener("DOMMouseScroll",Qr),mi.addEventListener("MozMousePixelScroll",ti),function(){mi.removeEventListener("wheel",qr),mi.removeEventListener("DOMMouseScroll",Qr),mi.removeEventListener("MozMousePixelScroll",ti)}},[oe]),Object(C.a)(function(){He&&tt(function(ti){return ot(ti)})},[rr.width,He]);var gn=function(){var mi,Pi;(mi=kr.current)===null||mi===void 0||mi.delayHidden(),(Pi=dn.current)===null||Pi===void 0||Pi.delayHidden()},yr=X(vr,Kt,hn,be,Rn,function(){return Vr(!0)},Tt,gn);d.useImperativeHandle(he,function(){return{getScrollInfo:Le,scrollTo:function(mi){function Pi(en){return en&&Object(S.a)(en)==="object"&&("left"in en||"top"in en)}Pi(mi)?(mi.left!==void 0&&tt(ot(mi.left)),yr(mi.top)):yr(mi)}}}),Object(C.a)(function(){if(Qt){var ti=Kt.slice(dr,er+1);Qt(ti,Kt)}},[dr,er,Kt]);var Vn=we(Kt,Rn,hn,be),Br=Jt==null?void 0:Jt({start:dr,end:er,virtual:ct,offsetX:lt,offsetY:Ut,rtl:qe,getSize:Vn}),jn=v(Kt,dr,er,He,Mr,ke,Zt),xn=null;de&&(xn=Object(g.a)(Object(p.a)({},Be?"height":"maxHeight",de),Qe),oe&&(xn.overflowY="hidden",He&&(xn.overflowX="hidden"),mn&&(xn.pointerEvents="none")));var tn={};return qe&&(tn.dir="rtl"),d.createElement("div",Object(y.a)({style:Object(g.a)(Object(g.a)({},fe),{},{position:"relative"}),className:me},tn,pe),d.createElement(t.a,{onResize:Rr},d.createElement(ht,{className:"".concat(Y,"-holder"),style:xn,ref:vr,onScroll:Ze,onMouseEnter:gn},d.createElement(e,{prefixCls:Y,height:xt,offsetX:lt,offsetY:Ut,scrollWidth:He,onInnerResize:Vr,ref:bt,innerProps:Ht,rtl:qe,extra:Br},jn))),ct&&xt>de&&d.createElement(c,{ref:kr,prefixCls:Y,scrollOffset:jt,scrollRange:xt,rtl:qe,onScroll:it,onStartMove:oi,onStopMove:wn,spinSize:ri,containerSize:rr.height,style:Ge==null?void 0:Ge.verticalScrollBar,thumbStyle:Ge==null?void 0:Ge.verticalScrollBarThumb}),ct&&He&&d.createElement(c,{ref:dn,prefixCls:Y,scrollOffset:lt,scrollRange:He,rtl:qe,onScroll:it,onStartMove:oi,onStopMove:wn,spinSize:yn,containerSize:rr.width,horizontal:!0,style:Ge==null?void 0:Ge.horizontalScrollBar,thumbStyle:Ge==null?void 0:Ge.horizontalScrollBarThumb}))}var dt=d.forwardRef(Ve);dt.displayName="List";var Fe=dt,ue=D.a=Fe},"+rIm":function(R,D,n){var y=n("bYtY"),g=y.retrieve,S=y.defaults,m=y.extend,p=y.each,f=n("7aKB"),d=n("IwbS"),l=n("Qxkt"),a=n("OELB"),i=a.isRadianAroundZero,t=a.remRadian,o=n("oVpE"),e=o.createSymbol,u=n("Fofx"),r=n("QBsz"),s=r.applyTransform,c=n("aX7z"),h=c.shouldShowAllLabels,v=Math.PI,A=function(F,j){this.opt=j,this.axisModel=F,S(j,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new d.Group;var K=new d.Group({position:j.position.slice(),rotation:j.rotation});K.updateTransform(),this._transform=K.transform,this._dumbGroup=K};A.prototype={constructor:A,hasBuilder:function(F){return!!b[F]},add:function(F){b[F].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var F=this.opt,j=this.axisModel;if(!j.get("axisLine.show"))return;var K=this.axisModel.axis.getExtent(),z=this._transform,V=[K[0],0],Q=[K[1],0];z&&(s(V,V,z),s(Q,Q,z));var G=m({lineCap:"round"},j.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new d.Line({anid:"line",subPixelOptimize:!0,shape:{x1:V[0],y1:V[1],x2:Q[0],y2:Q[1]},style:G,strokeContainThreshold:F.strokeContainThreshold||5,silent:!0,z2:1}));var te=j.get("axisLine.symbol"),q=j.get("axisLine.symbolSize"),se=j.get("axisLine.symbolOffset")||0;if(typeof se=="number"&&(se=[se,se]),te!=null){typeof te=="string"&&(te=[te,te]),(typeof q=="string"||typeof q=="number")&&(q=[q,q]);var re=q[0],we=q[1];p([{rotate:F.rotation+Math.PI/2,offset:se[0],r:0},{rotate:F.rotation-Math.PI/2,offset:se[1],r:Math.sqrt((V[0]-Q[0])*(V[0]-Q[0])+(V[1]-Q[1])*(V[1]-Q[1]))}],function(Oe,Me){if(te[Me]!=="none"&&te[Me]!=null){var Qe=e(te[Me],-re/2,-we/2,re,we,G.stroke,!0),Ve=Oe.r+Oe.offset,dt=[V[0]+Ve*Math.cos(F.rotation),V[1]-Ve*Math.sin(F.rotation)];Qe.attr({rotation:Oe.rotate,position:dt,silent:!0,z2:11}),this.group.add(Qe)}},this)}},axisTickLabel:function(){var F=this.axisModel,j=this.opt,K=M(this,F,j),z=P(this,F,j);C(F,z,K),U(this,F,j)},axisName:function(){var F=this.opt,j=this.axisModel,K=g(F.axisName,j.get("name"));if(!K)return;var z=j.get("nameLocation"),V=F.nameDirection,Q=j.getModel("nameTextStyle"),G=j.get("nameGap")||0,te=this.axisModel.axis.getExtent(),q=te[0]>te[1]?-1:1,se=[z==="start"?te[0]-q*G:z==="end"?te[1]+q*G:(te[0]+te[1])/2,I(z)?F.labelOffset+V*G:0],re,we=j.get("nameRotate");we!=null&&(we=we*v/180);var Oe;I(z)?re=E(F.rotation,we!=null?we:F.rotation,V):(re=T(F,z,we||0,te),Oe=F.axisNameAvailableWidth,Oe!=null&&(Oe=Math.abs(Oe/Math.sin(re.rotation)),!isFinite(Oe)&&(Oe=null)));var Me=Q.getFont(),Qe=j.get("nameTruncate",!0)||{},Ve=Qe.ellipsis,dt=g(F.nameTruncateMaxWidth,Qe.maxWidth,Oe),Fe=Ve!=null&&dt!=null?f.truncateText(K,dt,Me,Ve,{minChar:2,placeholder:Qe.placeholder}):K,ue=j.get("tooltip",!0),et=j.mainType,he={componentType:et,name:K,$vars:["name"]};he[et+"Index"]=j.componentIndex;var J=new d.Text({anid:"name",__fullText:K,__truncatedText:Fe,position:se,rotation:re.rotation,silent:_(j),z2:1,tooltip:ue&&ue.show?m({content:K,formatter:function(){return K},formatterParams:he},ue):null});d.setTextStyle(J.style,Q,{text:Fe,textFont:Me,textFill:Q.getTextColor()||j.get("axisLine.lineStyle.color"),textAlign:Q.get("align")||re.textAlign,textVerticalAlign:Q.get("verticalAlign")||re.textVerticalAlign}),j.get("triggerEvent")&&(J.eventData=x(j),J.eventData.targetType="axisName",J.eventData.name=K),this._dumbGroup.add(J),J.updateTransform(),this.group.add(J),J.decomposeTransform()}},x=A.makeAxisEventDataBase=function(F){var j={componentType:F.mainType,componentIndex:F.componentIndex};return j[F.mainType+"Index"]=F.componentIndex,j},E=A.innerTextLayout=function(F,j,K){var z=t(j-F),V,Q;return i(z)?(Q=K>0?"top":"bottom",V="center"):i(z-v)?(Q=K>0?"bottom":"top",V="center"):(Q="middle",z>0&&z<v?V=K>0?"right":"left":V=K>0?"left":"right"),{rotation:z,textAlign:V,textVerticalAlign:Q}};function T(F,j,K,z){var V=t(K-F.rotation),Q,G,te=z[0]>z[1],q=j==="start"&&!te||j!=="start"&&te;return i(V-v/2)?(G=q?"bottom":"top",Q="center"):i(V-v*1.5)?(G=q?"top":"bottom",Q="center"):(G="middle",V<v*1.5&&V>v/2?Q=q?"left":"right":Q=q?"right":"left"),{rotation:V,textAlign:Q,textVerticalAlign:G}}var _=A.isLabelSilent=function(F){var j=F.get("tooltip");return F.get("silent")||!(F.get("triggerEvent")||j&&j.show)};function C(F,j,K){if(h(F.axis))return;var z=F.get("axisLabel.showMinLabel"),V=F.get("axisLabel.showMaxLabel");j=j||[],K=K||[];var Q=j[0],G=j[1],te=j[j.length-1],q=j[j.length-2],se=K[0],re=K[1],we=K[K.length-1],Oe=K[K.length-2];z===!1?(w(Q),w(se)):O(Q,G)&&(z?(w(G),w(re)):(w(Q),w(se))),V===!1?(w(te),w(we)):O(q,te)&&(V?(w(q),w(Oe)):(w(te),w(we)))}function w(F){F&&(F.ignore=!0)}function O(F,j,K){var z=F&&F.getBoundingRect().clone(),V=j&&j.getBoundingRect().clone();if(!z||!V)return;var Q=u.identity([]);return u.rotate(Q,Q,-F.rotation),z.applyTransform(u.mul([],Q,F.getLocalTransform())),V.applyTransform(u.mul([],Q,j.getLocalTransform())),z.intersect(V)}function I(F){return F==="middle"||F==="center"}function k(F,j,K,z,V){for(var Q=[],G=[],te=[],q=0;q<F.length;q++){var se=F[q].coord;G[0]=se,G[1]=0,te[0]=se,te[1]=K,j&&(s(G,G,j),s(te,te,j));var re=new d.Line({anid:V+"_"+F[q].tickValue,subPixelOptimize:!0,shape:{x1:G[0],y1:G[1],x2:te[0],y2:te[1]},style:z,z2:2,silent:!0});Q.push(re)}return Q}function M(F,j,K){var z=j.axis,V=j.getModel("axisTick");if(!V.get("show")||z.scale.isBlank())return;for(var Q=V.getModel("lineStyle"),G=K.tickDirection*V.get("length"),te=z.getTicksCoords(),q=k(te,F._transform,G,S(Q.getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")}),"ticks"),se=0;se<q.length;se++)F.group.add(q[se]);return q}function U(F,j,K){var z=j.axis,V=j.getModel("minorTick");if(!V.get("show")||z.scale.isBlank())return;var Q=z.getMinorTicksCoords();if(!Q.length)return;for(var G=V.getModel("lineStyle"),te=K.tickDirection*V.get("length"),q=S(G.getLineStyle(),S(j.getModel("axisTick").getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")})),se=0;se<Q.length;se++)for(var re=k(Q[se],F._transform,te,q,"minorticks_"+se),we=0;we<re.length;we++)F.group.add(re[we])}function P(F,j,K){var z=j.axis,V=g(K.axisLabelShow,j.get("axisLabel.show"));if(!V||z.scale.isBlank())return;var Q=j.getModel("axisLabel"),G=Q.get("margin"),te=z.getViewLabels(),q=(g(K.labelRotate,Q.get("rotate"))||0)*v/180,se=E(K.rotation,q,K.labelDirection),re=j.getCategories&&j.getCategories(!0),we=[],Oe=_(j),Me=j.get("triggerEvent");return p(te,function(Qe,Ve){var dt=Qe.tickValue,Fe=Qe.formattedLabel,ue=Qe.rawLabel,et=Q;re&&re[dt]&&re[dt].textStyle&&(et=new l(re[dt].textStyle,Q,j.ecModel));var he=et.getTextColor()||j.get("axisLine.lineStyle.color"),J=z.dataToCoord(dt),Y=[J,K.labelOffset+K.labelDirection*G],$=new d.Text({anid:"label_"+dt,position:Y,rotation:se.rotation,silent:Oe,z2:10});d.setTextStyle($.style,et,{text:Fe,textAlign:et.getShallow("align",!0)||se.textAlign,textVerticalAlign:et.getShallow("verticalAlign",!0)||et.getShallow("baseline",!0)||se.textVerticalAlign,textFill:typeof he=="function"?he(z.type==="category"?ue:z.type==="value"?dt+"":dt,Ve):he}),Me&&($.eventData=x(j),$.eventData.targetType="axisLabel",$.eventData.value=ue),F._dumbGroup.add($),$.updateTransform(),we.push($),F.group.add($),$.decomposeTransform()}),we}var X=A;R.exports=X},"+wW9":function(R,D,n){var y=n("bYtY"),g=y.each,S=y.isArray,m=y.isObject,p=n("JuEJ"),f=n("4NO4"),d=f.normalizeToArray;function l(u,r){r=r.split(",");for(var s=u,c=0;c<r.length&&!(s=s&&s[r[c]],s==null);c++);return s}function a(u,r,s,c){r=r.split(",");for(var h=u,v,A=0;A<r.length-1;A++)v=r[A],h[v]==null&&(h[v]={}),h=h[v];(c||h[r[A]]==null)&&(h[r[A]]=s)}function i(u){g(t,function(r){r[0]in u&&!(r[1]in u)&&(u[r[1]]=u[r[0]])})}var t=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],o=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(u,r){p(u,r),u.series=d(u.series),g(u.series,function(s){if(!m(s))return;var c=s.type;if(c==="line")s.clipOverflow!=null&&(s.clip=s.clipOverflow);else if(c==="pie"||c==="gauge")s.clockWise!=null&&(s.clockwise=s.clockWise);else if(c==="gauge"){var h=l(s,"pointer.color");h!=null&&a(s,"itemStyle.color",h)}i(s)}),u.dataRange&&(u.visualMap=u.dataRange),g(o,function(s){var c=u[s];c&&(S(c)||(c=[c]),g(c,function(h){i(h)}))})}R.exports=e},"/IIm":function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=n("H6uX"),p=n("IwbS"),f=n("pP6R"),d=n("gPAo"),l=S.curry,a=S.each,i=S.map,t=Math.min,o=Math.max,e=Math.pow,u=1e4,r=6,s=6,c="globalPan",h={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},v={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},A={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0;function x(fe){m.call(this),this._zr=fe,this.group=new p.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+b++,this._handlers={},a(Y,function(xe,ke){this._handlers[ke]=S.bind(xe,this)},this)}x.prototype={constructor:x,enableBrush:function(fe){return this._brushType&&T(this),fe.brushType&&E(this,fe),this},setPanels:function(fe){if(fe&&fe.length){var xe=this._panels={};S.each(fe,function(ke){xe[ke.panelId]=S.clone(ke)})}else this._panels=null;return this},mount:function(fe){fe=fe||{},this._enableGlobalPan=fe.enableGlobalPan;var xe=this.group;return this._zr.add(xe),xe.attr({position:fe.position||[0,0],rotation:fe.rotation||0,scale:fe.scale||[1,1]}),this._transform=xe.getLocalTransform(),this},eachCover:function(fe,xe){a(this._covers,fe,xe)},updateCovers:function(fe){fe=S.map(fe,function(pr){return S.merge(S.clone(A),pr,!0)});var xe="\0-brush-index-",ke=this._covers,nt=this._covers=[],Ct=this,pt=this._creatingCover;return new d(ke,fe,nr,He).add(ht).update(ht).remove(Gt).execute(),this;function He(pr,Qt){return(pr.id!=null?pr.id:xe+Qt)+"-"+pr.brushType}function nr(pr,Qt){return He(pr.__brushOption,Qt)}function ht(pr,Qt){var Ht=fe[pr];if(Qt!=null&&ke[Qt]===pt)nt[pr]=ke[Qt];else{var Jt=nt[pr]=Qt!=null?(ke[Qt].__brushOption=Ht,ke[Qt]):O(Ct,w(Ct,Ht));M(Ct,Jt)}}function Gt(pr){ke[pr]!==pt&&Ct.group.remove(ke[pr])}},unmount:function(){return this.enableBrush(!1),F(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},S.mixin(x,m);function E(fe,xe){var ke=fe._zr;fe._enableGlobalPan||f.take(ke,c,fe._uid),_(ke,fe._handlers),fe._brushType=xe.brushType,fe._brushOption=S.merge(S.clone(A),xe,!0)}function T(fe){var xe=fe._zr;f.release(xe,c,fe._uid),C(xe,fe._handlers),fe._brushType=fe._brushOption=null}function _(fe,xe){a(xe,function(ke,nt){fe.on(nt,ke)})}function C(fe,xe){a(xe,function(ke,nt){fe.off(nt,ke)})}function w(fe,xe){var ke=be[xe.brushType].createCover(fe,xe);return ke.__brushOption=xe,k(ke,xe),fe.group.add(ke),ke}function O(fe,xe){var ke=U(xe);return ke.endCreating&&(ke.endCreating(fe,xe),k(xe,xe.__brushOption)),xe}function I(fe,xe){var ke=xe.__brushOption;U(xe).updateCoverShape(fe,xe,ke.range,ke)}function k(fe,xe){var ke=xe.z;ke==null&&(ke=u),fe.traverse(function(nt){nt.z=ke,nt.z2=ke})}function M(fe,xe){U(xe).updateCommon(fe,xe),I(fe,xe)}function U(fe){return be[fe.__brushOption.brushType]}function P(fe,xe,ke){var nt=fe._panels;if(!nt)return!0;var Ct,pt=fe._transform;return a(nt,function(He){He.isTargetByCursor(xe,ke,pt)&&(Ct=He)}),Ct}function X(fe,xe){var ke=fe._panels;if(!ke)return!0;var nt=xe.__brushOption.panelId;return nt!=null?ke[nt]:!0}function F(fe){var xe=fe._covers,ke=xe.length;return a(xe,function(nt){fe.group.remove(nt)},fe),xe.length=0,!!ke}function j(fe,xe){var ke=i(fe._covers,function(nt){var Ct=nt.__brushOption,pt=S.clone(Ct.range);return{brushType:Ct.brushType,panelId:Ct.panelId,range:pt}});fe.trigger("brush",ke,{isEnd:!!xe.isEnd,removeOnClick:!!xe.removeOnClick})}function K(fe){var xe=fe._track;if(!xe.length)return!1;var ke=xe[xe.length-1],nt=xe[0],Ct=ke[0]-nt[0],pt=ke[1]-nt[1],He=e(Ct*Ct+pt*pt,.5);return He>r}function z(fe){var xe=fe.length-1;return xe<0&&(xe=0),[fe[0],fe[xe]]}function V(fe,xe,ke,nt){var Ct=new p.Group;return Ct.add(new p.Rect({name:"main",style:q(ke),silent:!0,draggable:!0,cursor:"move",drift:l(fe,xe,Ct,"nswe"),ondragend:l(j,xe,{isEnd:!0})})),a(nt,function(pt){Ct.add(new p.Rect({name:pt,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:l(fe,xe,Ct,pt),ondragend:l(j,xe,{isEnd:!0})}))}),Ct}function Q(fe,xe,ke,nt){var Ct=nt.brushStyle.lineWidth||0,pt=o(Ct,s),He=ke[0][0],nr=ke[1][0],ht=He-Ct/2,Gt=nr-Ct/2,pr=ke[0][1],Qt=ke[1][1],Ht=pr-pt+Ct/2,Jt=Qt-pt+Ct/2,Ge=pr-He,pe=Qt-nr,oe=Ge+Ct,ct=pe+Ct;te(fe,xe,"main",He,nr,Ge,pe),nt.transformable&&(te(fe,xe,"w",ht,Gt,pt,ct),te(fe,xe,"e",Ht,Gt,pt,ct),te(fe,xe,"n",ht,Gt,oe,pt),te(fe,xe,"s",ht,Jt,oe,pt),te(fe,xe,"nw",ht,Gt,pt,pt),te(fe,xe,"ne",Ht,Gt,pt,pt),te(fe,xe,"sw",ht,Jt,pt,pt),te(fe,xe,"se",Ht,Jt,pt,pt))}function G(fe,xe){var ke=xe.__brushOption,nt=ke.transformable,Ct=xe.childAt(0);Ct.useStyle(q(ke)),Ct.attr({silent:!nt,cursor:nt?"move":"default"}),a(["w","e","n","s","se","sw","ne","nw"],function(pt){var He=xe.childOfName(pt),nr=we(fe,pt);He&&He.attr({silent:!nt,invisible:!nt,cursor:nt?v[nr]+"-resize":null})})}function te(fe,xe,ke,nt,Ct,pt,He){var nr=xe.childOfName(ke);nr&&nr.setShape(dt(Ve(fe,xe,[[nt,Ct],[nt+pt,Ct+He]])))}function q(fe){return S.defaults({strokeNoScale:!0},fe.brushStyle)}function se(fe,xe,ke,nt){var Ct=[t(fe,ke),t(xe,nt)],pt=[o(fe,ke),o(xe,nt)];return[[Ct[0],pt[0]],[Ct[1],pt[1]]]}function re(fe){return p.getTransform(fe.group)}function we(fe,xe){if(xe.length>1){xe=xe.split("");var ke=[we(fe,xe[0]),we(fe,xe[1])];return(ke[0]==="e"||ke[0]==="w")&&ke.reverse(),ke.join("")}else{var nt={w:"left",e:"right",n:"top",s:"bottom"},Ct={left:"w",right:"e",top:"n",bottom:"s"},ke=p.transformDirection(nt[xe],re(fe));return Ct[ke]}}function Oe(fe,xe,ke,nt,Ct,pt,He,nr){var ht=nt.__brushOption,Gt=fe(ht.range),pr=Qe(ke,pt,He);a(Ct.split(""),function(Qt){var Ht=h[Qt];Gt[Ht[0]][Ht[1]]+=pr[Ht[0]]}),ht.range=xe(se(Gt[0][0],Gt[1][0],Gt[0][1],Gt[1][1])),M(ke,nt),j(ke,{isEnd:!1})}function Me(fe,xe,ke,nt,Ct){var pt=xe.__brushOption.range,He=Qe(fe,ke,nt);a(pt,function(nr){nr[0]+=He[0],nr[1]+=He[1]}),M(fe,xe),j(fe,{isEnd:!1})}function Qe(fe,xe,ke){var nt=fe.group,Ct=nt.transformCoordToLocal(xe,ke),pt=nt.transformCoordToLocal(0,0);return[Ct[0]-pt[0],Ct[1]-pt[1]]}function Ve(fe,xe,ke){var nt=X(fe,xe);return nt&&nt!==!0?nt.clipPath(ke,fe._transform):S.clone(ke)}function dt(fe){var xe=t(fe[0][0],fe[1][0]),ke=t(fe[0][1],fe[1][1]),nt=o(fe[0][0],fe[1][0]),Ct=o(fe[0][1],fe[1][1]);return{x:xe,y:ke,width:nt-xe,height:Ct-ke}}function Fe(fe,xe,ke){if(!fe._brushType||de(fe,xe))return;var nt=fe._zr,Ct=fe._covers,pt=P(fe,xe,ke);if(!fe._dragging)for(var He=0;He<Ct.length;He++){var nr=Ct[He].__brushOption;if(pt&&(pt===!0||nr.panelId===pt.panelId)&&be[nr.brushType].contain(Ct[He],ke[0],ke[1]))return}pt&&nt.setCursorStyle("crosshair")}function ue(fe){var xe=fe.event;xe.preventDefault&&xe.preventDefault()}function et(fe,xe,ke){return fe.childOfName("main").contain(xe,ke)}function he(fe,xe,ke,nt){var Ct=fe._creatingCover,pt=fe._creatingPanel,He=fe._brushOption,nr;if(fe._track.push(ke.slice()),K(fe)||Ct){if(pt&&!Ct){He.brushMode==="single"&&F(fe);var ht=S.clone(He);ht.brushType=J(ht.brushType,pt),ht.panelId=pt===!0?null:pt.panelId,Ct=fe._creatingCover=w(fe,ht),fe._covers.push(Ct)}if(Ct){var Gt=be[J(fe._brushType,pt)],pr=Ct.__brushOption;pr.range=Gt.getCreatingRange(Ve(fe,Ct,fe._track)),nt&&(O(fe,Ct),Gt.updateCommon(fe,Ct)),I(fe,Ct),nr={isEnd:nt}}}else nt&&He.brushMode==="single"&&He.removeOnClick&&(P(fe,xe,ke)&&F(fe)&&(nr={isEnd:nt,removeOnClick:!0}));return nr}function J(fe,xe){return fe==="auto"?xe.defaultBrushType:fe}var Y={mousedown:function(fe){if(this._dragging)$(this,fe);else if(!fe.target||!fe.target.draggable){ue(fe);var xe=this.group.transformCoordToLocal(fe.offsetX,fe.offsetY);this._creatingCover=null;var ke=this._creatingPanel=P(this,fe,xe);ke&&(this._dragging=!0,this._track=[xe.slice()])}},mousemove:function(fe){var xe=fe.offsetX,ke=fe.offsetY,nt=this.group.transformCoordToLocal(xe,ke);if(Fe(this,fe,nt),this._dragging){ue(fe);var Ct=he(this,fe,nt,!1);Ct&&j(this,Ct)}},mouseup:function(fe){$(this,fe)}};function $(fe,xe){if(fe._dragging){ue(xe);var ke=xe.offsetX,nt=xe.offsetY,Ct=fe.group.transformCoordToLocal(ke,nt),pt=he(fe,xe,Ct,!0);fe._dragging=!1,fe._track=[],fe._creatingCover=null,pt&&j(fe,pt)}}function de(fe,xe,ke){var nt=fe._zr;return xe<0||xe>nt.getWidth()||ke<0||ke>nt.getHeight()}var be={lineX:Te(0),lineY:Te(1),rect:{createCover:function(fe,xe){return V(l(Oe,function(ke){return ke},function(ke){return ke}),fe,xe,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(fe){var xe=z(fe);return se(xe[1][0],xe[1][1],xe[0][0],xe[0][1])},updateCoverShape:function(fe,xe,ke,nt){Q(fe,xe,ke,nt)},updateCommon:G,contain:et},polygon:{createCover:function(fe,xe){var ke=new p.Group;return ke.add(new p.Polyline({name:"main",style:q(xe),silent:!0})),ke},getCreatingRange:function(fe){return fe},endCreating:function(fe,xe){xe.remove(xe.childAt(0)),xe.add(new p.Polygon({name:"main",draggable:!0,drift:l(Me,fe,xe),ondragend:l(j,fe,{isEnd:!0})}))},updateCoverShape:function(fe,xe,ke,nt){xe.childAt(0).setShape({points:Ve(fe,xe,ke)})},updateCommon:G,contain:et}};function Te(fe){return{createCover:function(xe,ke){return V(l(Oe,function(nt){var Ct=[nt,[0,100]];return fe&&Ct.reverse(),Ct},function(nt){return nt[fe]}),xe,ke,[["w","e"],["n","s"]][fe])},getCreatingRange:function(xe){var ke=z(xe),nt=t(ke[0][fe],ke[1][fe]),Ct=o(ke[0][fe],ke[1][fe]);return[nt,Ct]},updateCoverShape:function(xe,ke,nt,Ct){var pt,He=X(xe,ke);if(He!==!0&&He.getLinearBrushOtherExtent)pt=He.getLinearBrushOtherExtent(fe,xe._transform);else{var nr=xe._zr;pt=[0,[nr.getWidth(),nr.getHeight()][1-fe]]}var ht=[nt,pt];fe&&ht.reverse(),Q(xe,ke,ht,Ct)},updateCommon:G,contain:et}}var Be=x;R.exports=Be},"/MfK":function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="DeleteOutlined";var d=D.a=g.forwardRef(f)},"/POA":function(R,D,n){!function(y,g){if(!0)R.exports=g();else var S,m}(window,function(){return function(y){var g={};function S(m){if(g[m])return g[m].exports;var p=g[m]={i:m,l:!1,exports:{}};return y[m].call(p.exports,p,p.exports,S),p.l=!0,p.exports}return S.m=y,S.c=g,S.d=function(m,p,f){S.o(m,p)||Object.defineProperty(m,p,{enumerable:!0,get:f})},S.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},S.t=function(m,p){if(1&p&&(m=S(m)),8&p)return m;if(4&p&&typeof m=="object"&&m&&m.__esModule)return m;var f=Object.create(null);if(S.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:m}),2&p&&typeof m!="string")for(var d in m)S.d(f,d,function(l){return m[l]}.bind(null,d));return f},S.n=function(m){var p=m&&m.__esModule?function(){return m.default}:function(){return m};return S.d(p,"a",p),p},S.o=function(m,p){return Object.prototype.hasOwnProperty.call(m,p)},S.p="",S(S.s=34)}([function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.forwardEvent=g.EventEmitter=void 0;var m=function(){function p(){this._listeners=[],this._disposed=!1}return Object.defineProperty(p.prototype,"event",{get:function(){var d=this;return this._event||(this._event=function(l){return d._listeners.push(l),{dispose:function(){if(!d._disposed){for(var i=0;i<d._listeners.length;i++)if(d._listeners[i]===l)return void d._listeners.splice(i,1)}}}}),this._event},enumerable:!1,configurable:!0}),p.prototype.fire=function(f,d){for(var l=[],a=0;a<this._listeners.length;a++)l.push(this._listeners[a]);for(a=0;a<l.length;a++)l[a].call(void 0,f,d)},p.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},p}();g.EventEmitter=m,g.forwardEvent=function(p,f){return p(function(d){return f.fire(d)})}},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.IUnicodeService=g.IOptionsService=g.ILogService=g.IInstantiationService=g.IDirtyRowService=g.ICharsetService=g.ICoreService=g.ICoreMouseService=g.IBufferService=void 0;var m=S(14);g.IBufferService=m.createDecorator("BufferService"),g.ICoreMouseService=m.createDecorator("CoreMouseService"),g.ICoreService=m.createDecorator("CoreService"),g.ICharsetService=m.createDecorator("CharsetService"),g.IDirtyRowService=m.createDecorator("DirtyRowService"),g.IInstantiationService=m.createDecorator("InstantiationService"),g.ILogService=m.createDecorator("LogService"),g.IOptionsService=m.createDecorator("OptionsService"),g.IUnicodeService=m.createDecorator("UnicodeService")},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.getDisposeArrayDisposable=g.disposeArray=g.Disposable=void 0;var m=function(){function f(){this._disposables=[],this._isDisposed=!1}return f.prototype.dispose=function(){this._isDisposed=!0;for(var d=0,l=this._disposables;d<l.length;d++)l[d].dispose();this._disposables.length=0},f.prototype.register=function(d){return this._disposables.push(d),d},f.prototype.unregister=function(d){var l=this._disposables.indexOf(d);l!==-1&&this._disposables.splice(l,1)},f}();function p(f){for(var d=0,l=f;d<l.length;d++)l[d].dispose();f.length=0}g.Disposable=m,g.disposeArray=p,g.getDisposeArrayDisposable=function(f){return{dispose:function(){return p(f)}}}},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.WHITESPACE_CELL_CODE=g.WHITESPACE_CELL_WIDTH=g.WHITESPACE_CELL_CHAR=g.NULL_CELL_CODE=g.NULL_CELL_WIDTH=g.NULL_CELL_CHAR=g.CHAR_DATA_CODE_INDEX=g.CHAR_DATA_WIDTH_INDEX=g.CHAR_DATA_CHAR_INDEX=g.CHAR_DATA_ATTR_INDEX=g.DEFAULT_ATTR=g.DEFAULT_COLOR=void 0,g.DEFAULT_COLOR=256,g.DEFAULT_ATTR=256|g.DEFAULT_COLOR<<9,g.CHAR_DATA_ATTR_INDEX=0,g.CHAR_DATA_CHAR_INDEX=1,g.CHAR_DATA_WIDTH_INDEX=2,g.CHAR_DATA_CODE_INDEX=3,g.NULL_CELL_CHAR="",g.NULL_CELL_WIDTH=1,g.NULL_CELL_CODE=0,g.WHITESPACE_CELL_CHAR=" ",g.WHITESPACE_CELL_WIDTH=1,g.WHITESPACE_CELL_CODE=32},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(t,o){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,u){e.__proto__=u}||function(e,u){for(var r in u)u.hasOwnProperty(r)&&(e[r]=u[r])})(t,o)},function(i,t){function o(){this.constructor=i}m(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(g,"__esModule",{value:!0}),g.CellData=void 0;var f=S(8),d=S(3),l=S(6),a=function(i){function t(){var o=i!==null&&i.apply(this,arguments)||this;return o.content=0,o.fg=0,o.bg=0,o.extended=new l.ExtendedAttrs,o.combinedData="",o}return p(t,i),t.fromCharData=function(o){var e=new t;return e.setFromCharData(o),e},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?f.stringFromCodePoint(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(o){this.fg=o[d.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(o[d.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(o[d.CHAR_DATA_CHAR_INDEX].length===2){var u=o[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=u&&u<=56319){var r=o[d.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(u-55296)+r-56320+65536|o[d.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=o[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|o[d.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=o[d.CHAR_DATA_CHAR_INDEX],this.content=2097152|o[d.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(l.AttributeData);g.CellData=a},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ISoundService=g.ISelectionService=g.IRenderService=g.IMouseService=g.ICoreBrowserService=g.ICharSizeService=void 0;var m=S(14);g.ICharSizeService=m.createDecorator("CharSizeService"),g.ICoreBrowserService=m.createDecorator("CoreBrowserService"),g.IMouseService=m.createDecorator("MouseService"),g.IRenderService=m.createDecorator("RenderService"),g.ISelectionService=m.createDecorator("SelectionService"),g.ISoundService=m.createDecorator("SoundService")},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ExtendedAttrs=g.AttributeData=void 0;var m=function(){function f(){this.fg=0,this.bg=0,this.extended=new p}return f.toColorRGB=function(d){return[d>>>16&255,d>>>8&255,255&d]},f.fromColorRGB=function(d){return(255&d[0])<<16|(255&d[1])<<8|255&d[2]},f.prototype.clone=function(){var d=new f;return d.fg=this.fg,d.bg=this.bg,d.extended=this.extended.clone(),d},f.prototype.isInverse=function(){return 67108864&this.fg},f.prototype.isBold=function(){return 134217728&this.fg},f.prototype.isUnderline=function(){return 268435456&this.fg},f.prototype.isBlink=function(){return 536870912&this.fg},f.prototype.isInvisible=function(){return 1073741824&this.fg},f.prototype.isItalic=function(){return 67108864&this.bg},f.prototype.isDim=function(){return 134217728&this.bg},f.prototype.getFgColorMode=function(){return 50331648&this.fg},f.prototype.getBgColorMode=function(){return 50331648&this.bg},f.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},f.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},f.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},f.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},f.prototype.isFgDefault=function(){return(50331648&this.fg)==0},f.prototype.isBgDefault=function(){return(50331648&this.bg)==0},f.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},f.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},f.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},f.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},f.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},f.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()},f.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},f.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},f.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},f.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},f.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},f}();g.AttributeData=m;var p=function(){function f(d,l){d===void 0&&(d=0),l===void 0&&(l=-1),this.underlineStyle=d,this.underlineColor=l}return f.prototype.clone=function(){return new f(this.underlineStyle,this.underlineColor)},f.prototype.isEmpty=function(){return this.underlineStyle===0},f}();g.ExtendedAttrs=p},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.addDisposableDomListener=void 0,g.addDisposableDomListener=function(m,p,f,d){m.addEventListener(p,f,d);var l=!1;return{dispose:function(){l||(l=!0,m.removeEventListener(p,f,d))}}}},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Utf8ToUtf32=g.StringToUtf32=g.utf32ToString=g.stringFromCodePoint=void 0,g.stringFromCodePoint=function(f){return f>65535?(f-=65536,String.fromCharCode(55296+(f>>10))+String.fromCharCode(f%1024+56320)):String.fromCharCode(f)},g.utf32ToString=function(f,d,l){d===void 0&&(d=0),l===void 0&&(l=f.length);for(var a="",i=d;i<l;++i){var t=f[i];t>65535?(t-=65536,a+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):a+=String.fromCharCode(t)}return a};var m=function(){function f(){this._interim=0}return f.prototype.clear=function(){this._interim=0},f.prototype.decode=function(d,l){var a=d.length;if(!a)return 0;var i=0,t=0;this._interim&&(56320<=(u=d.charCodeAt(t++))&&u<=57343?l[i++]=1024*(this._interim-55296)+u-56320+65536:(l[i++]=this._interim,l[i++]=u),this._interim=0);for(var o=t;o<a;++o){var e=d.charCodeAt(o);if(55296<=e&&e<=56319){if(++o>=a)return this._interim=e,i;var u;56320<=(u=d.charCodeAt(o))&&u<=57343?l[i++]=1024*(e-55296)+u-56320+65536:(l[i++]=e,l[i++]=u)}else l[i++]=e}return i},f}();g.StringToUtf32=m;var p=function(){function f(){this.interim=new Uint8Array(3)}return f.prototype.clear=function(){this.interim.fill(0)},f.prototype.decode=function(d,l){var a=d.length;if(!a)return 0;var i,t,o,e,u=0,r=0,s=0;if(this.interim[0]){var c=!1,h=this.interim[0];h&=(224&h)==192?31:(240&h)==224?15:7;for(var v=0,A=void 0;(A=63&this.interim[++v])&&v<4;)h<<=6,h|=A;for(var b=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,x=b-v;s<x;){if(s>=a)return 0;if((192&(A=d[s++]))!=128){s--,c=!0;break}this.interim[v++]=A,h<<=6,h|=63&A}c||(b===2?h<128?s--:l[u++]=h:b===3?h<2048||h>=55296&&h<=57343||(l[u++]=h):h<65536||h>1114111||(l[u++]=h)),this.interim.fill(0)}for(var E=a-4,T=s;T<a;){for(;!(!(T<E)||128&(i=d[T])||128&(t=d[T+1])||128&(o=d[T+2])||128&(e=d[T+3]));)l[u++]=i,l[u++]=t,l[u++]=o,l[u++]=e,T+=4;if((i=d[T++])<128)l[u++]=i;else if((224&i)==192){if(T>=a)return this.interim[0]=i,u;if((192&(t=d[T++]))!=128){T--;continue}if((r=(31&i)<<6|63&t)<128){T--;continue}l[u++]=r}else if((240&i)==224){if(T>=a)return this.interim[0]=i,u;if((192&(t=d[T++]))!=128){T--;continue}if(T>=a)return this.interim[0]=i,this.interim[1]=t,u;if((192&(o=d[T++]))!=128){T--;continue}if((r=(15&i)<<12|(63&t)<<6|63&o)<2048||r>=55296&&r<=57343)continue;l[u++]=r}else if((248&i)==240){if(T>=a)return this.interim[0]=i,u;if((192&(t=d[T++]))!=128){T--;continue}if(T>=a)return this.interim[0]=i,this.interim[1]=t,u;if((192&(o=d[T++]))!=128){T--;continue}if(T>=a)return this.interim[0]=i,this.interim[1]=t,this.interim[2]=o,u;if((192&(e=d[T++]))!=128){T--;continue}if((r=(7&i)<<18|(63&t)<<12|(63&o)<<6|63&e)<65536||r>1114111)continue;l[u++]=r}}return u},f}();g.Utf8ToUtf32=p},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CHAR_ATLAS_CELL_SPACING=g.DIM_OPACITY=g.INVERTED_DEFAULT_COLOR=void 0,g.INVERTED_DEFAULT_COLOR=257,g.DIM_OPACITY=.5,g.CHAR_ATLAS_CELL_SPACING=1},function(y,g,S){"use strict";var m,p,f,d;function l(i){var t=i.toString(16);return t.length<2?"0"+t:t}function a(i,t){return i<t?(t+.05)/(i+.05):(i+.05)/(t+.05)}Object.defineProperty(g,"__esModule",{value:!0}),g.contrastRatio=g.toPaddedHex=g.rgba=g.rgb=g.css=g.color=g.channels=void 0,function(i){i.toCss=function(t,o,e,u){return u!==void 0?"#"+l(t)+l(o)+l(e)+l(u):"#"+l(t)+l(o)+l(e)},i.toRgba=function(t,o,e,u){return u===void 0&&(u=255),(t<<24|o<<16|e<<8|u)>>>0}}(m=g.channels||(g.channels={})),(p=g.color||(g.color={})).blend=function(i,t){var o=(255&t.rgba)/255;if(o===1)return{css:t.css,rgba:t.rgba};var e=t.rgba>>24&255,u=t.rgba>>16&255,r=t.rgba>>8&255,s=i.rgba>>24&255,c=i.rgba>>16&255,h=i.rgba>>8&255,v=s+Math.round((e-s)*o),A=c+Math.round((u-c)*o),b=h+Math.round((r-h)*o);return{css:m.toCss(v,A,b),rgba:m.toRgba(v,A,b)}},p.isOpaque=function(i){return(255&i.rgba)==255},p.ensureContrastRatio=function(i,t,o){var e=d.ensureContrastRatio(i.rgba,t.rgba,o);if(e)return d.toColor(e>>24&255,e>>16&255,e>>8&255)},p.opaque=function(i){var t=(255|i.rgba)>>>0,o=d.toChannels(t),e=o[0],u=o[1],r=o[2];return{css:m.toCss(e,u,r),rgba:t}},p.opacity=function(i,t){var o=Math.round(255*t),e=d.toChannels(i.rgba),u=e[0],r=e[1],s=e[2];return{css:m.toCss(u,r,s,o),rgba:m.toRgba(u,r,s,o)}},(g.css||(g.css={})).toColor=function(i){switch(i.length){case 7:return{css:i,rgba:(parseInt(i.slice(1),16)<<8|255)>>>0};case 9:return{css:i,rgba:parseInt(i.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(i){function t(o,e,u){var r=o/255,s=e/255,c=u/255;return .2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4))}i.relativeLuminance=function(o){return t(o>>16&255,o>>8&255,255&o)},i.relativeLuminance2=t}(f=g.rgb||(g.rgb={})),function(i){function t(e,u,r){for(var s=e>>24&255,c=e>>16&255,h=e>>8&255,v=u>>24&255,A=u>>16&255,b=u>>8&255,x=a(f.relativeLuminance2(v,b,A),f.relativeLuminance2(s,c,h));x<r&&(v>0||A>0||b>0);)v-=Math.max(0,Math.ceil(.1*v)),A-=Math.max(0,Math.ceil(.1*A)),b-=Math.max(0,Math.ceil(.1*b)),x=a(f.relativeLuminance2(v,b,A),f.relativeLuminance2(s,c,h));return(v<<24|A<<16|b<<8|255)>>>0}function o(e,u,r){for(var s=e>>24&255,c=e>>16&255,h=e>>8&255,v=u>>24&255,A=u>>16&255,b=u>>8&255,x=a(f.relativeLuminance2(v,b,A),f.relativeLuminance2(s,c,h));x<r&&(v<255||A<255||b<255);)v=Math.min(255,v+Math.ceil(.1*(255-v))),A=Math.min(255,A+Math.ceil(.1*(255-A))),b=Math.min(255,b+Math.ceil(.1*(255-b))),x=a(f.relativeLuminance2(v,b,A),f.relativeLuminance2(s,c,h));return(v<<24|A<<16|b<<8|255)>>>0}i.ensureContrastRatio=function(e,u,r){var s=f.relativeLuminance(e>>8),c=f.relativeLuminance(u>>8);if(a(s,c)<r)return c<s?t(e,u,r):o(e,u,r)},i.reduceLuminance=t,i.increaseLuminance=o,i.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},i.toColor=function(e,u,r){return{css:m.toCss(e,u,r),rgba:m.toRgba(e,u,r)}}}(d=g.rgba||(g.rgba={})),g.toPaddedHex=l,g.contrastRatio=a},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isLinux=g.isWindows=g.isIphone=g.isIpad=g.isMac=g.isSafari=g.isFirefox=void 0;var m=typeof navigator=="undefined",p=m?"node":navigator.userAgent,f=m?"node":navigator.platform;function d(l,a){return l.indexOf(a)>=0}g.isFirefox=!!~p.indexOf("Firefox"),g.isSafari=/^((?!chrome|android).)*safari/i.test(p),g.isMac=d(["Macintosh","MacIntel","MacPPC","Mac68K"],f),g.isIpad=f==="iPad",g.isIphone=f==="iPhone",g.isWindows=d(["Windows","Win16","Win32","WinCE"],f),g.isLinux=f.indexOf("Linux")>=0},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.C1=g.C0=void 0,function(m){m.NUL="\0",m.SOH="",m.STX="",m.ETX="",m.EOT="",m.ENQ="",m.ACK="",m.BEL="\x07",m.BS="\b",m.HT=" ",m.LF=`
`,m.VT="\v",m.FF="\f",m.CR="\r",m.SO="",m.SI="",m.DLE="",m.DC1="",m.DC2="",m.DC3="",m.DC4="",m.NAK="",m.SYN="",m.ETB="",m.CAN="",m.EM="",m.SUB="",m.ESC="",m.FS="",m.GS="",m.RS="",m.US="",m.SP=" ",m.DEL="\x7F"}(g.C0||(g.C0={})),function(m){m.PAD="\x80",m.HOP="\x81",m.BPH="\x82",m.NBH="\x83",m.IND="\x84",m.NEL="\x85",m.SSA="\x86",m.ESA="\x87",m.HTS="\x88",m.HTJ="\x89",m.VTS="\x8A",m.PLD="\x8B",m.PLU="\x8C",m.RI="\x8D",m.SS2="\x8E",m.SS3="\x8F",m.DCS="\x90",m.PU1="\x91",m.PU2="\x92",m.STS="\x93",m.CCH="\x94",m.MW="\x95",m.SPA="\x96",m.EPA="\x97",m.SOS="\x98",m.SGCI="\x99",m.SCI="\x9A",m.CSI="\x9B",m.ST="\x9C",m.OSC="\x9D",m.PM="\x9E",m.APC="\x9F"}(g.C1||(g.C1={}))},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.BaseRenderLayer=void 0;var m=S(3),p=S(9),f=S(25),d=S(6),l=S(28),a=S(10),i=S(17),t=function(){function o(e,u,r,s,c,h,v,A){this._container=e,this._alpha=s,this._colors=c,this._rendererId=h,this._bufferService=v,this._optionsService=A,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-"+u+"-layer"),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return o.prototype.dispose=function(){var e;i.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},o.prototype._initCanvas=function(){this._ctx=l.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},o.prototype.onOptionsChanged=function(){},o.prototype.onBlur=function(){},o.prototype.onFocus=function(){},o.prototype.onCursorMove=function(){},o.prototype.onGridChanged=function(e,u){},o.prototype.onSelectionChanged=function(e,u,r){r===void 0&&(r=!1)},o.prototype.setColors=function(e){this._refreshCharAtlas(e)},o.prototype._setTransparency=function(e){if(e!==this._alpha){var u=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,u),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},o.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=f.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},o.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)},o.prototype._fillCells=function(e,u,r,s){this._ctx.fillRect(e*this._scaledCellWidth,u*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight)},o.prototype._fillBottomLineAtCells=function(e,u,r){r===void 0&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(u+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},o.prototype._fillLeftLineAtCell=function(e,u,r){this._ctx.fillRect(e*this._scaledCellWidth,u*this._scaledCellHeight,window.devicePixelRatio*r,this._scaledCellHeight)},o.prototype._strokeRectAtCell=function(e,u,r,s){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,u*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,s*this._scaledCellHeight-window.devicePixelRatio)},o.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))},o.prototype._clearCells=function(e,u,r,s){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,u*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,u*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight))},o.prototype._fillCharTrueColor=function(e,u,r){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(r),this._ctx.fillText(e.getChars(),u*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},o.prototype._drawChars=function(e,u,r){var s,c,h=this._getContrastColor(e);h||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,u,r,h):(e.isInverse()?(s=e.isBgDefault()?p.INVERTED_DEFAULT_COLOR:e.getBgColor(),c=e.isFgDefault()?p.INVERTED_DEFAULT_COLOR:e.getFgColor()):(c=e.isBgDefault()?m.DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?m.DEFAULT_COLOR:e.getFgColor()),s+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||m.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||m.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=c,this._currentGlyphIdentifier.fg=s,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,u*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,u,r))},o.prototype._drawUncachedChars=function(e,u,r,s){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(s)this._ctx.fillStyle=s.css;else if(e.isBgDefault())this._ctx.fillStyle=a.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+d.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var c=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&c<8&&(c+=8),this._ctx.fillStyle=this._colors.ansi[c].css}else if(s)this._ctx.fillStyle=s.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+d.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var h=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&h<8&&(h+=8),this._ctx.fillStyle=this._colors.ansi[h].css}this._clipRow(r),e.isDim()&&(this._ctx.globalAlpha=p.DIM_OPACITY),this._ctx.fillText(e.getChars(),u*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},o.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},o.prototype._getFont=function(e,u){return(u?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},o.prototype._getContrastColor=function(e){if(this._optionsService.options.minimumContrastRatio!==1){var u=this._colors.contrastCache.getColor(e.bg,e.fg);if(u!==void 0)return u||void 0;var r=e.getFgColor(),s=e.getFgColorMode(),c=e.getBgColor(),h=e.getBgColorMode(),v=!!e.isInverse(),A=!!e.isInverse();if(v){var b=r;r=c,c=b;var x=s;s=h,h=x}var E=this._resolveBackgroundRgba(h,c,v),T=this._resolveForegroundRgba(s,r,v,A),_=a.rgba.ensureContrastRatio(E,T,this._optionsService.options.minimumContrastRatio);if(_){var C={css:a.channels.toCss(_>>24&255,_>>16&255,_>>8&255),rgba:_};return this._colors.contrastCache.setColor(e.bg,e.fg,C),C}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},o.prototype._resolveBackgroundRgba=function(e,u,r){switch(e){case 16777216:case 33554432:return this._colors.ansi[u].rgba;case 50331648:return u<<8;case 0:default:return r?this._colors.foreground.rgba:this._colors.background.rgba}},o.prototype._resolveForegroundRgba=function(e,u,r,s){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&s&&u<8&&(u+=8),this._colors.ansi[u].rgba;case 50331648:return u<<8;case 0:default:return r?this._colors.background.rgba:this._colors.foreground.rgba}},o}();g.BaseRenderLayer=t},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.createDecorator=g.getServiceDependencies=g.serviceRegistry=void 0;function m(p,f,d){f.di$target===f?f.di$dependencies.push({id:p,index:d}):(f.di$dependencies=[{id:p,index:d}],f.di$target=f)}g.serviceRegistry=new Map,g.getServiceDependencies=function(p){return p.di$dependencies||[]},g.createDecorator=function(p){if(g.serviceRegistry.has(p))return g.serviceRegistry.get(p);var f=function d(l,a,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");m(d,l,i)};return f.toString=function(){return p},g.serviceRegistry.set(p,f),f}},function(y,g,S){"use strict";function m(p,f,d,l){if(d===void 0&&(d=0),l===void 0&&(l=p.length),d>=p.length)return p;d=(p.length+d)%p.length,l=l>=p.length?p.length:(p.length+l)%p.length;for(var a=d;a<l;++a)p[a]=f;return p}Object.defineProperty(g,"__esModule",{value:!0}),g.concat=g.fillFallback=g.fill=void 0,g.fill=function(p,f,d,l){return p.fill?p.fill(f,d,l):m(p,f,d,l)},g.fillFallback=m,g.concat=function(p,f){var d=new p.constructor(p.length+f.length);return d.set(p),d.set(f,p.length),d}},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.BufferLine=g.DEFAULT_ATTR_DATA=void 0;var m=S(8),p=S(3),f=S(4),d=S(6);g.DEFAULT_ATTR_DATA=Object.freeze(new d.AttributeData);var l=function(){function a(i,t,o){o===void 0&&(o=!1),this.isWrapped=o,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*i);for(var e=t||f.CellData.fromCharData([0,p.NULL_CELL_CHAR,p.NULL_CELL_WIDTH,p.NULL_CELL_CODE]),u=0;u<i;++u)this.setCell(u,e);this.length=i}return a.prototype.get=function(i){var t=this._data[3*i+0],o=2097151&t;return[this._data[3*i+1],2097152&t?this._combined[i]:o?m.stringFromCodePoint(o):"",t>>22,2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):o]},a.prototype.set=function(i,t){this._data[3*i+1]=t[p.CHAR_DATA_ATTR_INDEX],t[p.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[i]=t[1],this._data[3*i+0]=2097152|i|t[p.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*i+0]=t[p.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[p.CHAR_DATA_WIDTH_INDEX]<<22},a.prototype.getWidth=function(i){return this._data[3*i+0]>>22},a.prototype.hasWidth=function(i){return 12582912&this._data[3*i+0]},a.prototype.getFg=function(i){return this._data[3*i+1]},a.prototype.getBg=function(i){return this._data[3*i+2]},a.prototype.hasContent=function(i){return 4194303&this._data[3*i+0]},a.prototype.getCodePoint=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):2097151&t},a.prototype.isCombined=function(i){return 2097152&this._data[3*i+0]},a.prototype.getString=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i]:2097151&t?m.stringFromCodePoint(2097151&t):""},a.prototype.loadCell=function(i,t){var o=3*i;return t.content=this._data[o+0],t.fg=this._data[o+1],t.bg=this._data[o+2],2097152&t.content&&(t.combinedData=this._combined[i]),268435456&t.bg&&(t.extended=this._extendedAttrs[i]),t},a.prototype.setCell=function(i,t){2097152&t.content&&(this._combined[i]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[i]=t.extended),this._data[3*i+0]=t.content,this._data[3*i+1]=t.fg,this._data[3*i+2]=t.bg},a.prototype.setCellFromCodePoint=function(i,t,o,e,u,r){268435456&u&&(this._extendedAttrs[i]=r),this._data[3*i+0]=t|o<<22,this._data[3*i+1]=e,this._data[3*i+2]=u},a.prototype.addCodepointToCell=function(i,t){var o=this._data[3*i+0];2097152&o?this._combined[i]+=m.stringFromCodePoint(t):(2097151&o?(this._combined[i]=m.stringFromCodePoint(2097151&o)+m.stringFromCodePoint(t),o&=-2097152,o|=2097152):o=t|1<<22,this._data[3*i+0]=o)},a.prototype.insertCells=function(i,t,o,e){if((i%=this.length)&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),t<this.length-i){for(var u=new f.CellData,r=this.length-i-t-1;r>=0;--r)this.setCell(i+t+r,this.loadCell(i+r,u));for(r=0;r<t;++r)this.setCell(i+r,o)}else for(r=i;r<this.length;++r)this.setCell(r,o);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 d.ExtendedAttrs)},a.prototype.deleteCells=function(i,t,o,e){if(i%=this.length,t<this.length-i){for(var u=new f.CellData,r=0;r<this.length-i-t;++r)this.setCell(i+r,this.loadCell(i+t+r,u));for(r=this.length-t;r<this.length;++r)this.setCell(r,o)}else for(r=i;r<this.length;++r)this.setCell(r,o);i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),this.getWidth(i)!==0||this.hasContent(i)||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 d.ExtendedAttrs)},a.prototype.replaceCells=function(i,t,o,e){for(i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),t<this.length&&this.getWidth(t-1)===2&&this.setCellFromCodePoint(t,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs);i<t&&i<this.length;)this.setCell(i++,o)},a.prototype.resize=function(i,t){if(i!==this.length){if(i>this.length){var o=new Uint32Array(3*i);this.length&&(3*i<this._data.length?o.set(this._data.subarray(0,3*i)):o.set(this._data)),this._data=o;for(var e=this.length;e<i;++e)this.setCell(e,t)}else if(i){(o=new Uint32Array(3*i)).set(this._data.subarray(0,3*i)),this._data=o;var u=Object.keys(this._combined);for(e=0;e<u.length;e++){var r=parseInt(u[e],10);r>=i&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=i}},a.prototype.fill=function(i){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,i)},a.prototype.copyFrom=function(i){for(var t in this.length!==i.length?this._data=new Uint32Array(i._data):this._data.set(i._data),this.length=i.length,this._combined={},i._combined)this._combined[t]=i._combined[t];for(var t in this._extendedAttrs={},i._extendedAttrs)this._extendedAttrs[t]=i._extendedAttrs[t];this.isWrapped=i.isWrapped},a.prototype.clone=function(){var i=new a(0);for(var t in i._data=new Uint32Array(this._data),i.length=this.length,this._combined)i._combined[t]=this._combined[t];for(var t in this._extendedAttrs)i._extendedAttrs[t]=this._extendedAttrs[t];return i.isWrapped=this.isWrapped,i},a.prototype.getTrimmedLength=function(){for(var i=this.length-1;i>=0;--i)if(4194303&this._data[3*i+0])return i+(this._data[3*i+0]>>22);return 0},a.prototype.copyCellsFrom=function(i,t,o,e,u){var r=i._data;if(u)for(var s=e-1;s>=0;s--)for(var c=0;c<3;c++)this._data[3*(o+s)+c]=r[3*(t+s)+c];else for(s=0;s<e;s++)for(c=0;c<3;c++)this._data[3*(o+s)+c]=r[3*(t+s)+c];var h=Object.keys(i._combined);for(c=0;c<h.length;c++){var v=parseInt(h[c],10);v>=t&&(this._combined[v-t+o]=i._combined[v])}},a.prototype.translateToString=function(i,t,o){i===void 0&&(i=!1),t===void 0&&(t=0),o===void 0&&(o=this.length),i&&(o=Math.min(o,this.getTrimmedLength()));for(var e="";t<o;){var u=this._data[3*t+0],r=2097151&u;e+=2097152&u?this._combined[t]:r?m.stringFromCodePoint(r):p.WHITESPACE_CELL_CHAR,t+=u>>22||1}return e},a}();g.BufferLine=l},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.removeElementFromParent=void 0,g.removeElementFromParent=function(){for(var m,p=[],f=0;f<arguments.length;f++)p[f]=arguments[f];for(var d=0,l=p;d<l.length;d++){var a=l[d];(m=a==null?void 0:a.parentElement)===null||m===void 0||m.removeChild(a)}}},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.tooMuchOutput=g.promptLabel=void 0,g.promptLabel="Terminal input",g.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(_,C){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,O){w.__proto__=O}||function(w,O){for(var I in O)O.hasOwnProperty(I)&&(w[I]=O[I])})(_,C)},function(T,_){function C(){this.constructor=T}m(T,_),T.prototype=_===null?Object.create(_):(C.prototype=_.prototype,new C)});Object.defineProperty(g,"__esModule",{value:!0}),g.InputHandler=g.WindowsOptionsReportType=void 0;var f,d=S(12),l=S(20),a=S(39),i=S(2),t=S(15),o=S(8),e=S(16),u=S(0),r=S(3),s=S(4),c=S(6),h=S(22),v=S(24),A={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function b(T,_){if(T>24)return _.setWinLines||!1;switch(T){case 1:return!!_.restoreWin;case 2:return!!_.minimizeWin;case 3:return!!_.setWinPosition;case 4:return!!_.setWinSizePixels;case 5:return!!_.raiseWin;case 6:return!!_.lowerWin;case 7:return!!_.refreshWin;case 8:return!!_.setWinSizeChars;case 9:return!!_.maximizeWin;case 10:return!!_.fullscreenWin;case 11:return!!_.getWinState;case 13:return!!_.getWinPosition;case 14:return!!_.getWinSizePixels;case 15:return!!_.getScreenSizePixels;case 16:return!!_.getCellSizePixels;case 18:return!!_.getWinSizeChars;case 19:return!!_.getScreenSizeChars;case 20:return!!_.getIconTitle;case 21:return!!_.getWinTitle;case 22:return!!_.pushTitle;case 23:return!!_.popTitle;case 24:return!!_.setWinLines}return!1}!function(T){T[T.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",T[T.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(f=g.WindowsOptionsReportType||(g.WindowsOptionsReportType={}));var x=function(){function T(_,C,w,O){this._bufferService=_,this._coreService=C,this._logService=w,this._optionsService=O,this._data=new Uint32Array(0)}return T.prototype.hook=function(_){this._data=new Uint32Array(0)},T.prototype.put=function(_,C,w){this._data=t.concat(this._data,_.subarray(C,w))},T.prototype.unhook=function(_){if(_){var C=o.utf32ToString(this._data);switch(this._data=new Uint32Array(0),C){case'"q':return this._coreService.triggerDataEvent(d.C0.ESC+'P1$r0"q'+d.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(d.C0.ESC+'P1$r61;1"p'+d.C0.ESC+"\\");case"r":var w=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+w+d.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r0m"+d.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(d.C0.ESC+"P1$r"+O+" q"+d.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",C),this._coreService.triggerDataEvent(d.C0.ESC+"P0$r"+d.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},T}(),E=function(T){function _(C,w,O,I,k,M,U,P,X){X===void 0&&(X=new a.EscapeSequenceParser);var F=T.call(this)||this;F._bufferService=C,F._charsetService=w,F._coreService=O,F._dirtyRowService=I,F._logService=k,F._optionsService=M,F._coreMouseService=U,F._unicodeService=P,F._parser=X,F._parseBuffer=new Uint32Array(4096),F._stringDecoder=new o.StringToUtf32,F._utf8Decoder=new o.Utf8ToUtf32,F._workCell=new s.CellData,F._windowTitle="",F._iconName="",F._windowTitleStack=[],F._iconNameStack=[],F._curAttrData=e.DEFAULT_ATTR_DATA.clone(),F._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),F._onRequestBell=new u.EventEmitter,F._onRequestRefreshRows=new u.EventEmitter,F._onRequestReset=new u.EventEmitter,F._onRequestScroll=new u.EventEmitter,F._onRequestSyncScrollBar=new u.EventEmitter,F._onRequestWindowsOptionsReport=new u.EventEmitter,F._onA11yChar=new u.EventEmitter,F._onA11yTab=new u.EventEmitter,F._onCursorMove=new u.EventEmitter,F._onLineFeed=new u.EventEmitter,F._onScroll=new u.EventEmitter,F._onTitleChange=new u.EventEmitter,F.register(F._parser),F._parser.setCsiHandlerFallback(function(V,Q){F._logService.debug("Unknown CSI code: ",{identifier:F._parser.identToString(V),params:Q.toArray()})}),F._parser.setEscHandlerFallback(function(V){F._logService.debug("Unknown ESC code: ",{identifier:F._parser.identToString(V)})}),F._parser.setExecuteHandlerFallback(function(V){F._logService.debug("Unknown EXECUTE code: ",{code:V})}),F._parser.setOscHandlerFallback(function(V,Q,G){F._logService.debug("Unknown OSC code: ",{identifier:V,action:Q,data:G})}),F._parser.setDcsHandlerFallback(function(V,Q,G){Q==="HOOK"&&(G=G.toArray()),F._logService.debug("Unknown DCS code: ",{identifier:F._parser.identToString(V),action:Q,payload:G})}),F._parser.setPrintHandler(function(V,Q,G){return F.print(V,Q,G)}),F._parser.setCsiHandler({final:"@"},function(V){return F.insertChars(V)}),F._parser.setCsiHandler({intermediates:" ",final:"@"},function(V){return F.scrollLeft(V)}),F._parser.setCsiHandler({final:"A"},function(V){return F.cursorUp(V)}),F._parser.setCsiHandler({intermediates:" ",final:"A"},function(V){return F.scrollRight(V)}),F._parser.setCsiHandler({final:"B"},function(V){return F.cursorDown(V)}),F._parser.setCsiHandler({final:"C"},function(V){return F.cursorForward(V)}),F._parser.setCsiHandler({final:"D"},function(V){return F.cursorBackward(V)}),F._parser.setCsiHandler({final:"E"},function(V){return F.cursorNextLine(V)}),F._parser.setCsiHandler({final:"F"},function(V){return F.cursorPrecedingLine(V)}),F._parser.setCsiHandler({final:"G"},function(V){return F.cursorCharAbsolute(V)}),F._parser.setCsiHandler({final:"H"},function(V){return F.cursorPosition(V)}),F._parser.setCsiHandler({final:"I"},function(V){return F.cursorForwardTab(V)}),F._parser.setCsiHandler({final:"J"},function(V){return F.eraseInDisplay(V)}),F._parser.setCsiHandler({prefix:"?",final:"J"},function(V){return F.eraseInDisplay(V)}),F._parser.setCsiHandler({final:"K"},function(V){return F.eraseInLine(V)}),F._parser.setCsiHandler({prefix:"?",final:"K"},function(V){return F.eraseInLine(V)}),F._parser.setCsiHandler({final:"L"},function(V){return F.insertLines(V)}),F._parser.setCsiHandler({final:"M"},function(V){return F.deleteLines(V)}),F._parser.setCsiHandler({final:"P"},function(V){return F.deleteChars(V)}),F._parser.setCsiHandler({final:"S"},function(V){return F.scrollUp(V)}),F._parser.setCsiHandler({final:"T"},function(V){return F.scrollDown(V)}),F._parser.setCsiHandler({final:"X"},function(V){return F.eraseChars(V)}),F._parser.setCsiHandler({final:"Z"},function(V){return F.cursorBackwardTab(V)}),F._parser.setCsiHandler({final:"`"},function(V){return F.charPosAbsolute(V)}),F._parser.setCsiHandler({final:"a"},function(V){return F.hPositionRelative(V)}),F._parser.setCsiHandler({final:"b"},function(V){return F.repeatPrecedingCharacter(V)}),F._parser.setCsiHandler({final:"c"},function(V){return F.sendDeviceAttributesPrimary(V)}),F._parser.setCsiHandler({prefix:">",final:"c"},function(V){return F.sendDeviceAttributesSecondary(V)}),F._parser.setCsiHandler({final:"d"},function(V){return F.linePosAbsolute(V)}),F._parser.setCsiHandler({final:"e"},function(V){return F.vPositionRelative(V)}),F._parser.setCsiHandler({final:"f"},function(V){return F.hVPosition(V)}),F._parser.setCsiHandler({final:"g"},function(V){return F.tabClear(V)}),F._parser.setCsiHandler({final:"h"},function(V){return F.setMode(V)}),F._parser.setCsiHandler({prefix:"?",final:"h"},function(V){return F.setModePrivate(V)}),F._parser.setCsiHandler({final:"l"},function(V){return F.resetMode(V)}),F._parser.setCsiHandler({prefix:"?",final:"l"},function(V){return F.resetModePrivate(V)}),F._parser.setCsiHandler({final:"m"},function(V){return F.charAttributes(V)}),F._parser.setCsiHandler({final:"n"},function(V){return F.deviceStatus(V)}),F._parser.setCsiHandler({prefix:"?",final:"n"},function(V){return F.deviceStatusPrivate(V)}),F._parser.setCsiHandler({intermediates:"!",final:"p"},function(V){return F.softReset(V)}),F._parser.setCsiHandler({intermediates:" ",final:"q"},function(V){return F.setCursorStyle(V)}),F._parser.setCsiHandler({final:"r"},function(V){return F.setScrollRegion(V)}),F._parser.setCsiHandler({final:"s"},function(V){return F.saveCursor(V)}),F._parser.setCsiHandler({final:"t"},function(V){return F.windowOptions(V)}),F._parser.setCsiHandler({final:"u"},function(V){return F.restoreCursor(V)}),F._parser.setCsiHandler({intermediates:"'",final:"}"},function(V){return F.insertColumns(V)}),F._parser.setCsiHandler({intermediates:"'",final:"~"},function(V){return F.deleteColumns(V)}),F._parser.setExecuteHandler(d.C0.BEL,function(){return F.bell()}),F._parser.setExecuteHandler(d.C0.LF,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.VT,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.FF,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.CR,function(){return F.carriageReturn()}),F._parser.setExecuteHandler(d.C0.BS,function(){return F.backspace()}),F._parser.setExecuteHandler(d.C0.HT,function(){return F.tab()}),F._parser.setExecuteHandler(d.C0.SO,function(){return F.shiftOut()}),F._parser.setExecuteHandler(d.C0.SI,function(){return F.shiftIn()}),F._parser.setExecuteHandler(d.C1.IND,function(){return F.index()}),F._parser.setExecuteHandler(d.C1.NEL,function(){return F.nextLine()}),F._parser.setExecuteHandler(d.C1.HTS,function(){return F.tabSet()}),F._parser.setOscHandler(0,new h.OscHandler(function(V){F.setTitle(V),F.setIconName(V)})),F._parser.setOscHandler(1,new h.OscHandler(function(V){return F.setIconName(V)})),F._parser.setOscHandler(2,new h.OscHandler(function(V){return F.setTitle(V)})),F._parser.setEscHandler({final:"7"},function(){return F.saveCursor()}),F._parser.setEscHandler({final:"8"},function(){return F.restoreCursor()}),F._parser.setEscHandler({final:"D"},function(){return F.index()}),F._parser.setEscHandler({final:"E"},function(){return F.nextLine()}),F._parser.setEscHandler({final:"H"},function(){return F.tabSet()}),F._parser.setEscHandler({final:"M"},function(){return F.reverseIndex()}),F._parser.setEscHandler({final:"="},function(){return F.keypadApplicationMode()}),F._parser.setEscHandler({final:">"},function(){return F.keypadNumericMode()}),F._parser.setEscHandler({final:"c"},function(){return F.fullReset()}),F._parser.setEscHandler({final:"n"},function(){return F.setgLevel(2)}),F._parser.setEscHandler({final:"o"},function(){return F.setgLevel(3)}),F._parser.setEscHandler({final:"|"},function(){return F.setgLevel(3)}),F._parser.setEscHandler({final:"}"},function(){return F.setgLevel(2)}),F._parser.setEscHandler({final:"~"},function(){return F.setgLevel(1)}),F._parser.setEscHandler({intermediates:"%",final:"@"},function(){return F.selectDefaultCharset()}),F._parser.setEscHandler({intermediates:"%",final:"G"},function(){return F.selectDefaultCharset()});var j=function(Q){K._parser.setEscHandler({intermediates:"(",final:Q},function(){return F.selectCharset("("+Q)}),K._parser.setEscHandler({intermediates:")",final:Q},function(){return F.selectCharset(")"+Q)}),K._parser.setEscHandler({intermediates:"*",final:Q},function(){return F.selectCharset("*"+Q)}),K._parser.setEscHandler({intermediates:"+",final:Q},function(){return F.selectCharset("+"+Q)}),K._parser.setEscHandler({intermediates:"-",final:Q},function(){return F.selectCharset("-"+Q)}),K._parser.setEscHandler({intermediates:".",final:Q},function(){return F.selectCharset("."+Q)}),K._parser.setEscHandler({intermediates:"/",final:Q},function(){return F.selectCharset("/"+Q)})},K=this;for(var z in l.CHARSETS)j(z);return F._parser.setEscHandler({intermediates:"#",final:"8"},function(){return F.screenAlignmentPattern()}),F._parser.setErrorHandler(function(V){return F._logService.error("Parsing error: ",V),V}),F._parser.setDcsHandler({intermediates:"$",final:"q"},new x(F._bufferService,F._coreService,F._logService,F._optionsService)),F}return p(_,T),Object.defineProperty(_.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),_.prototype.dispose=function(){T.prototype.dispose.call(this)},_.prototype.parse=function(C){var w=this._bufferService.buffer,O=w.x,I=w.y;if(this._logService.debug("parsing data",C),this._parseBuffer.length<C.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(C.length,131072))),this._dirtyRowService.clearRange(),C.length>131072)for(var k=0;k<C.length;k+=131072){var M=k+131072<C.length?k+131072:C.length,U=typeof C=="string"?this._stringDecoder.decode(C.substring(k,M),this._parseBuffer):this._utf8Decoder.decode(C.subarray(k,M),this._parseBuffer);this._parser.parse(this._parseBuffer,U)}else U=typeof C=="string"?this._stringDecoder.decode(C,this._parseBuffer):this._utf8Decoder.decode(C,this._parseBuffer),this._parser.parse(this._parseBuffer,U);(w=this._bufferService.buffer).x===O&&w.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},_.prototype.print=function(C,w,O){var I,k,M=this._bufferService.buffer,U=this._charsetService.charset,P=this._optionsService.options.screenReaderMode,X=this._bufferService.cols,F=this._coreService.decPrivateModes.wraparound,j=this._coreService.modes.insertMode,K=this._curAttrData,z=M.lines.get(M.ybase+M.y);this._dirtyRowService.markDirty(M.y),M.x&&O-w>0&&z.getWidth(M.x-1)===2&&z.setCellFromCodePoint(M.x-1,0,1,K.fg,K.bg,K.extended);for(var V=w;V<O;++V){if(I=C[V],k=this._unicodeService.wcwidth(I),I<127&&U){var Q=U[String.fromCharCode(I)];Q&&(I=Q.charCodeAt(0))}if(P&&this._onA11yChar.fire(o.stringFromCodePoint(I)),k||!M.x){if(M.x+k-1>=X){if(F){for(;M.x<X;)z.setCellFromCodePoint(M.x++,0,1,K.fg,K.bg,K.extended);M.x=0,M.y++,M.y===M.scrollBottom+1?(M.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(M.y>=this._bufferService.rows&&(M.y=this._bufferService.rows-1),M.lines.get(M.ybase+M.y).isWrapped=!0),z=M.lines.get(M.ybase+M.y)}else if(M.x=X-1,k===2)continue}if(j&&(z.insertCells(M.x,k,M.getNullCell(K),K),z.getWidth(X-1)===2&&z.setCellFromCodePoint(X-1,r.NULL_CELL_CODE,r.NULL_CELL_WIDTH,K.fg,K.bg,K.extended)),z.setCellFromCodePoint(M.x++,I,k,K.fg,K.bg,K.extended),k>0)for(;--k;)z.setCellFromCodePoint(M.x++,0,0,K.fg,K.bg,K.extended)}else z.getWidth(M.x-1)?z.addCodepointToCell(M.x-1,I):z.addCodepointToCell(M.x-2,I)}O-w>0&&(z.loadCell(M.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),M.x<X&&O-w>0&&z.getWidth(M.x)===0&&!z.hasContent(M.x)&&z.setCellFromCodePoint(M.x,0,1,K.fg,K.bg,K.extended),this._dirtyRowService.markDirty(M.y)},_.prototype.addCsiHandler=function(C,w){var O=this;return C.final!=="t"||C.prefix||C.intermediates?this._parser.addCsiHandler(C,w):this._parser.addCsiHandler(C,function(I){return!b(I.params[0],O._optionsService.options.windowOptions)||w(I)})},_.prototype.addDcsHandler=function(C,w){return this._parser.addDcsHandler(C,new v.DcsHandler(w))},_.prototype.addEscHandler=function(C,w){return this._parser.addEscHandler(C,w)},_.prototype.addOscHandler=function(C,w){return this._parser.addOscHandler(C,new h.OscHandler(w))},_.prototype.bell=function(){this._onRequestBell.fire()},_.prototype.lineFeed=function(){var C=this._bufferService.buffer;this._dirtyRowService.markDirty(C.y),this._optionsService.options.convertEol&&(C.x=0),C.y++,C.y===C.scrollBottom+1?(C.y--,this._onRequestScroll.fire(this._eraseAttrData())):C.y>=this._bufferService.rows&&(C.y=this._bufferService.rows-1),C.x>=this._bufferService.cols&&C.x--,this._dirtyRowService.markDirty(C.y),this._onLineFeed.fire()},_.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},_.prototype.backspace=function(){var C,w=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(w.x>0&&w.x--);if(this._restrictCursor(this._bufferService.cols),w.x>0)w.x--;else if(w.x===0&&w.y>w.scrollTop&&w.y<=w.scrollBottom&&((C=w.lines.get(w.ybase+w.y))===null||C===void 0?void 0:C.isWrapped)){w.lines.get(w.ybase+w.y).isWrapped=!1,w.y--,w.x=this._bufferService.cols-1;var O=w.lines.get(w.ybase+w.y);O.hasWidth(w.x)&&!O.hasContent(w.x)&&w.x--}this._restrictCursor()},_.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var C=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-C)}},_.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},_.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},_.prototype._restrictCursor=function(C){C===void 0&&(C=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(C,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)},_.prototype._setCursor=function(C,w){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=C,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+w):(this._bufferService.buffer.x=C,this._bufferService.buffer.y=w),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype._moveCursor=function(C,w){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+C,this._bufferService.buffer.y+w)},_.prototype.cursorUp=function(C){var w=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;w>=0?this._moveCursor(0,-Math.min(w,C.params[0]||1)):this._moveCursor(0,-(C.params[0]||1))},_.prototype.cursorDown=function(C){var w=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;w>=0?this._moveCursor(0,Math.min(w,C.params[0]||1)):this._moveCursor(0,C.params[0]||1)},_.prototype.cursorForward=function(C){this._moveCursor(C.params[0]||1,0)},_.prototype.cursorBackward=function(C){this._moveCursor(-(C.params[0]||1),0)},_.prototype.cursorNextLine=function(C){this.cursorDown(C),this._bufferService.buffer.x=0},_.prototype.cursorPrecedingLine=function(C){this.cursorUp(C),this._bufferService.buffer.x=0},_.prototype.cursorCharAbsolute=function(C){this._setCursor((C.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.cursorPosition=function(C){this._setCursor(C.length>=2?(C.params[1]||1)-1:0,(C.params[0]||1)-1)},_.prototype.charPosAbsolute=function(C){this._setCursor((C.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.hPositionRelative=function(C){this._moveCursor(C.params[0]||1,0)},_.prototype.linePosAbsolute=function(C){this._setCursor(this._bufferService.buffer.x,(C.params[0]||1)-1)},_.prototype.vPositionRelative=function(C){this._moveCursor(0,C.params[0]||1)},_.prototype.hVPosition=function(C){this.cursorPosition(C)},_.prototype.tabClear=function(C){var w=C.params[0];w===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:w===3&&(this._bufferService.buffer.tabs={})},_.prototype.cursorForwardTab=function(C){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=C.params[0]||1;w--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},_.prototype.cursorBackwardTab=function(C){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=C.params[0]||1,O=this._bufferService.buffer;w--;)O.x=O.prevStop()},_.prototype._eraseInBufferLine=function(C,w,O,I){I===void 0&&(I=!1);var k=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+C);k.replaceCells(w,O,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),I&&(k.isWrapped=!1)},_.prototype._resetBufferLine=function(C){var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+C);w.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),w.isWrapped=!1},_.prototype.eraseInDisplay=function(C){var w;switch(this._restrictCursor(),C.params[0]){case 0:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);w<this._bufferService.rows;w++)this._resetBufferLine(w);this._dirtyRowService.markDirty(w);break;case 1:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(w+1).isWrapped=!1);w--;)this._resetBufferLine(w);this._dirtyRowService.markDirty(0);break;case 2:for(w=this._bufferService.rows,this._dirtyRowService.markDirty(w-1);w--;)this._resetBufferLine(w);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))}},_.prototype.eraseInLine=function(C){switch(this._restrictCursor(),C.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)},_.prototype.insertLines=function(C){this._restrictCursor();var w=C.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){for(var I=O.ybase+O.y,k=this._bufferService.rows-1-O.scrollBottom,M=this._bufferService.rows-1+O.ybase-k+1;w--;)O.lines.splice(M-1,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.deleteLines=function(C){this._restrictCursor();var w=C.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){var I,k=O.ybase+O.y;for(I=this._bufferService.rows-1-O.scrollBottom,I=this._bufferService.rows-1+O.ybase-I;w--;)O.lines.splice(k,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.insertChars=function(C){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.insertCells(this._bufferService.buffer.x,C.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.deleteChars=function(C){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.deleteCells(this._bufferService.buffer.x,C.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.scrollUp=function(C){for(var w=C.params[0]||1,O=this._bufferService.buffer;w--;)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)},_.prototype.scrollDown=function(C){for(var w=C.params[0]||1,O=this._bufferService.buffer;w--;)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)},_.prototype.scrollLeft=function(C){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=C.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=w.lines.get(w.ybase+I);k.deleteCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.scrollRight=function(C){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=C.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=w.lines.get(w.ybase+I);k.insertCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.insertColumns=function(C){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=C.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=this._bufferService.buffer.lines.get(w.ybase+I);k.insertCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.deleteColumns=function(C){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=C.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=w.lines.get(w.ybase+I);k.deleteCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.eraseChars=function(C){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(C.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.repeatPrecedingCharacter=function(C){if(this._parser.precedingCodepoint){for(var w=C.params[0]||1,O=new Uint32Array(w),I=0;I<w;++I)O[I]=this._parser.precedingCodepoint;this.print(O,0,O.length)}},_.prototype.sendDeviceAttributesPrimary=function(C){C.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(d.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(d.C0.ESC+"[?6c"))},_.prototype.sendDeviceAttributesSecondary=function(C){C.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(d.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(d.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(C.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(d.C0.ESC+"[>83;40003;0c"))},_.prototype._is=function(C){return(this._optionsService.options.termName+"").indexOf(C)===0},_.prototype.setMode=function(C){for(var w=0;w<C.length;w++)switch(C.params[w]){case 4:this._coreService.modes.insertMode=!0}},_.prototype.setModePrivate=function(C){for(var w=0;w<C.length;w++)switch(C.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,l.DEFAULT_CHARSET),this._charsetService.setgCharset(1,l.DEFAULT_CHARSET),this._charsetService.setgCharset(2,l.DEFAULT_CHARSET),this._charsetService.setgCharset(3,l.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}},_.prototype.resetMode=function(C){for(var w=0;w<C.length;w++)switch(C.params[w]){case 4:this._coreService.modes.insertMode=!1}},_.prototype.resetModePrivate=function(C){for(var w=0;w<C.length;w++)switch(C.params[w]){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(),C.params[w]===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}},_.prototype._updateAttrColor=function(C,w,O,I,k){return w===2?(C|=50331648,C&=-16777216,C|=c.AttributeData.fromColorRGB([O,I,k])):w===5&&(C&=-50331904,C|=33554432|255&O),C},_.prototype._extractColor=function(C,w,O){var I=[0,0,-1,0,0,0],k=0,M=0;do{if(I[M+k]=C.params[w+M],C.hasSubParams(w+M)){var U=C.getSubParams(w+M),P=0;do I[1]===5&&(k=1),I[M+P+1+k]=U[P];while(++P<U.length&&P+M+1+k<I.length);break}if(I[1]===5&&M+k>=2||I[1]===2&&M+k>=5)break;I[1]&&(k=1)}while(++M+w<C.length&&M+k<I.length);for(P=2;P<I.length;++P)I[P]===-1&&(I[P]=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 M},_.prototype._processUnderline=function(C,w){w.extended=w.extended.clone(),(!~C||C>5)&&(C=1),w.extended.underlineStyle=C,w.fg|=268435456,C===0&&(w.fg&=-268435457),w.updateExtended()},_.prototype.charAttributes=function(C){if(C.length===1&&C.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var w,O=C.length,I=this._curAttrData,k=0;k<O;k++)(w=C.params[k])>=30&&w<=37?(I.fg&=-50331904,I.fg|=16777216|w-30):w>=40&&w<=47?(I.bg&=-50331904,I.bg|=16777216|w-40):w>=90&&w<=97?(I.fg&=-50331904,I.fg|=16777224|w-90):w>=100&&w<=107?(I.bg&=-50331904,I.bg|=16777224|w-100):w===0?(I.fg=e.DEFAULT_ATTR_DATA.fg,I.bg=e.DEFAULT_ATTR_DATA.bg):w===1?I.fg|=134217728:w===3?I.bg|=67108864:w===4?(I.fg|=268435456,this._processUnderline(C.hasSubParams(k)?C.getSubParams(k)[0]:1,I)):w===5?I.fg|=536870912:w===7?I.fg|=67108864:w===8?I.fg|=1073741824:w===2?I.bg|=134217728:w===21?this._processUnderline(2,I):w===22?(I.fg&=-134217729,I.bg&=-134217729):w===23?I.bg&=-67108865:w===24?I.fg&=-268435457:w===25?I.fg&=-536870913:w===27?I.fg&=-67108865:w===28?I.fg&=-1073741825:w===39?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):w===49?(I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):w===38||w===48||w===58?k+=this._extractColor(C,k,I):w===59?(I.extended=I.extended.clone(),I.extended.underlineColor=-1,I.updateExtended()):w===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.",w)},_.prototype.deviceStatus=function(C){switch(C.params[0]){case 5:this._coreService.triggerDataEvent(d.C0.ESC+"[0n");break;case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"["+w+";"+O+"R")}},_.prototype.deviceStatusPrivate=function(C){switch(C.params[0]){case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"[?"+w+";"+O+"R")}},_.prototype.softReset=function(C){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},_.prototype.setCursorStyle=function(C){var w=C.params[0]||1;switch(w){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=w%2==1;this._optionsService.options.cursorBlink=O},_.prototype.setScrollRegion=function(C){var w,O=C.params[0]||1;(C.length<2||(w=C.params[1])>this._bufferService.rows||w===0)&&(w=this._bufferService.rows),w>O&&(this._bufferService.buffer.scrollTop=O-1,this._bufferService.buffer.scrollBottom=w-1,this._setCursor(0,0))},_.prototype.windowOptions=function(C){if(b(C.params[0],this._optionsService.options.windowOptions)){var w=C.length>1?C.params[1]:0;switch(C.params[0]){case 14:w!==2&&this._onRequestWindowsOptionsReport.fire(f.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(f.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(d.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:w!==0&&w!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),w!==0&&w!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:w!==0&&w!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),w!==0&&w!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},_.prototype.saveCursor=function(C){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},_.prototype.restoreCursor=function(C){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()},_.prototype.setTitle=function(C){this._windowTitle=C,this._onTitleChange.fire(C)},_.prototype.setIconName=function(C){this._iconName=C},_.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},_.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},_.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},_.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,l.DEFAULT_CHARSET)},_.prototype.selectCharset=function(C){C.length===2?C[0]!=="/"&&this._charsetService.setgCharset(A[C[0]],l.CHARSETS[C[1]]||l.DEFAULT_CHARSET):this.selectDefaultCharset()},_.prototype.index=function(){this._restrictCursor();var C=this._bufferService.buffer;this._bufferService.buffer.y++,C.y===C.scrollBottom+1?(C.y--,this._onRequestScroll.fire(this._eraseAttrData())):C.y>=this._bufferService.rows&&(C.y=this._bufferService.rows-1),this._restrictCursor()},_.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},_.prototype.reverseIndex=function(){this._restrictCursor();var C=this._bufferService.buffer;if(C.y===C.scrollTop){var w=C.scrollBottom-C.scrollTop;C.lines.shiftElements(C.ybase+C.y,w,1),C.lines.set(C.ybase+C.y,C.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom)}else C.y--,this._restrictCursor()},_.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},_.prototype.reset=function(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()},_.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},_.prototype.setgLevel=function(C){this._charsetService.setgLevel(C)},_.prototype.screenAlignmentPattern=function(){var C=new s.CellData;C.content=1<<22|"E".charCodeAt(0),C.fg=this._curAttrData.fg,C.bg=this._curAttrData.bg;var w=this._bufferService.buffer;this._setCursor(0,0);for(var O=0;O<this._bufferService.rows;++O){var I=w.ybase+w.y+O,k=w.lines.get(I);k&&(k.fill(C),k.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},_}(i.Disposable);g.InputHandler=E},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.DEFAULT_CHARSET=g.CHARSETS=void 0,g.CHARSETS={},g.DEFAULT_CHARSET=g.CHARSETS.B,g.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"},g.CHARSETS.A={"#":"\xA3"},g.CHARSETS.B=void 0,g.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},g.CHARSETS.C=g.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},g.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},g.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},g.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},g.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},g.CHARSETS.E=g.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},g.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},g.CHARSETS.H=g.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},g.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Params=void 0;var m=function(){function p(f,d){if(f===void 0&&(f=32),d===void 0&&(d=32),this.maxLength=f,this.maxSubParamsLength=d,d>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(f),this.length=0,this._subParams=new Int32Array(d),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(f),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return p.fromArray=function(f){var d=new p;if(!f.length)return d;for(var l=f[0]instanceof Array?1:0;l<f.length;++l){var a=f[l];if(a instanceof Array)for(var i=0;i<a.length;++i)d.addSubParam(a[i]);else d.addParam(a)}return d},p.prototype.clone=function(){var f=new p(this.maxLength,this.maxSubParamsLength);return f.params.set(this.params),f.length=this.length,f._subParams.set(this._subParams),f._subParamsLength=this._subParamsLength,f._subParamsIdx.set(this._subParamsIdx),f._rejectDigits=this._rejectDigits,f._rejectSubDigits=this._rejectSubDigits,f._digitIsSub=this._digitIsSub,f},p.prototype.toArray=function(){for(var f=[],d=0;d<this.length;++d){f.push(this.params[d]);var l=this._subParamsIdx[d]>>8,a=255&this._subParamsIdx[d];a-l>0&&f.push(Array.prototype.slice.call(this._subParams,l,a))}return f},p.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},p.prototype.addParam=function(f){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(f<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=f>2147483647?2147483647:f}},p.prototype.addSubParam=function(f){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(f<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=f>2147483647?2147483647:f,this._subParamsIdx[this.length-1]++}},p.prototype.hasSubParams=function(f){return(255&this._subParamsIdx[f])-(this._subParamsIdx[f]>>8)>0},p.prototype.getSubParams=function(f){var d=this._subParamsIdx[f]>>8,l=255&this._subParamsIdx[f];return l-d>0?this._subParams.subarray(d,l):null},p.prototype.getSubParamsAll=function(){for(var f={},d=0;d<this.length;++d){var l=this._subParamsIdx[d]>>8,a=255&this._subParamsIdx[d];a-l>0&&(f[d]=this._subParams.slice(l,a))}return f},p.prototype.addDigit=function(f){var d;if(!(this._rejectDigits||!(d=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var l=this._digitIsSub?this._subParams:this.params,a=l[d-1];l[d-1]=~a?Math.min(10*a+f,2147483647):f}},p}();g.Params=m},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.OscHandler=g.OscParser=void 0;var m=S(23),p=S(8),f=function(){function l(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return l.prototype.addHandler=function(a,i){this._handlers[a]===void 0&&(this._handlers[a]=[]);var t=this._handlers[a];return t.push(i),{dispose:function(){var e=t.indexOf(i);e!==-1&&t.splice(e,1)}}},l.prototype.setHandler=function(a,i){this._handlers[a]=[i]},l.prototype.clearHandler=function(a){this._handlers[a]&&delete this._handlers[a]},l.prototype.setHandlerFallback=function(a){this._handlerFb=a},l.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},l.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},l.prototype._start=function(){var a=this._handlers[this._id];if(a)for(var i=a.length-1;i>=0;i--)a[i].start();else this._handlerFb(this._id,"START")},l.prototype._put=function(a,i,t){var o=this._handlers[this._id];if(o)for(var e=o.length-1;e>=0;e--)o[e].put(a,i,t);else this._handlerFb(this._id,"PUT",p.utf32ToString(a,i,t))},l.prototype._end=function(a){var i=this._handlers[this._id];if(i){for(var t=i.length-1;t>=0&&i[t].end(a)===!1;t--);for(t--;t>=0;t--)i[t].end(!1)}else this._handlerFb(this._id,"END",a)},l.prototype.start=function(){this.reset(),this._id=-1,this._state=1},l.prototype.put=function(a,i,t){if(this._state!==3){if(this._state===1)for(;i<t;){var o=a[i++];if(o===59){this._state=2,this._start();break}if(o<48||57<o)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+o-48}this._state===2&&t-i>0&&this._put(a,i,t)}},l.prototype.end=function(a){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(a)),this._id=-1,this._state=0)},l}();g.OscParser=f;var d=function(){function l(a){this._handler=a,this._data="",this._hitLimit=!1}return l.prototype.start=function(){this._data="",this._hitLimit=!1},l.prototype.put=function(a,i,t){this._hitLimit||(this._data+=p.utf32ToString(a,i,t),this._data.length>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},l.prototype.end=function(a){var i;return this._hitLimit?i=!1:a&&(i=this._handler(this._data)),this._data="",this._hitLimit=!1,i},l}();g.OscHandler=d},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.PAYLOAD_LIMIT=void 0,g.PAYLOAD_LIMIT=1e7},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.DcsHandler=g.DcsParser=void 0;var m=S(8),p=S(21),f=S(23),d=[],l=function(){function i(){this._handlers=Object.create(null),this._active=d,this._ident=0,this._handlerFb=function(){}}return i.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},i.prototype.addHandler=function(t,o){this._handlers[t]===void 0&&(this._handlers[t]=[]);var e=this._handlers[t];return e.push(o),{dispose:function(){var r=e.indexOf(o);r!==-1&&e.splice(r,1)}}},i.prototype.setHandler=function(t,o){this._handlers[t]=[o]},i.prototype.clearHandler=function(t){this._handlers[t]&&delete this._handlers[t]},i.prototype.setHandlerFallback=function(t){this._handlerFb=t},i.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=d,this._ident=0},i.prototype.hook=function(t,o){if(this.reset(),this._ident=t,this._active=this._handlers[t]||d,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].hook(o);else this._handlerFb(this._ident,"HOOK",o)},i.prototype.put=function(t,o,e){if(this._active.length)for(var u=this._active.length-1;u>=0;u--)this._active[u].put(t,o,e);else this._handlerFb(this._ident,"PUT",m.utf32ToString(t,o,e))},i.prototype.unhook=function(t){if(this._active.length){for(var o=this._active.length-1;o>=0&&this._active[o].unhook(t)===!1;o--);for(o--;o>=0;o--)this._active[o].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",t);this._active=d,this._ident=0},i}();g.DcsParser=l;var a=function(){function i(t){this._handler=t,this._data="",this._hitLimit=!1}return i.prototype.hook=function(t){this._params=t.clone(),this._data="",this._hitLimit=!1},i.prototype.put=function(t,o,e){this._hitLimit||(this._data+=m.utf32ToString(t,o,e),this._data.length>f.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},i.prototype.unhook=function(t){var o;return this._hitLimit?o=!1:t&&(o=this._handler(this._data,this._params||new p.Params)),this._params=void 0,this._data="",this._hitLimit=!1,o},i}();g.DcsHandler=a},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.removeTerminalFromCache=g.acquireCharAtlas=void 0;var m=S(26),p=S(43),f=[];g.acquireCharAtlas=function(d,l,a,i,t){for(var o=m.generateConfig(i,t,d,a),e=0;e<f.length;e++){var u=(r=f[e]).ownedBy.indexOf(l);if(u>=0){if(m.configEquals(r.config,o))return r.atlas;r.ownedBy.length===1?(r.atlas.dispose(),f.splice(e,1)):r.ownedBy.splice(u,1);break}}for(e=0;e<f.length;e++){var r=f[e];if(m.configEquals(r.config,o))return r.ownedBy.push(l),r.atlas}var s={atlas:new p.DynamicCharAtlas(document,o),config:o,ownedBy:[l]};return f.push(s),s.atlas},g.removeTerminalFromCache=function(d){for(var l=0;l<f.length;l++){var a=f[l].ownedBy.indexOf(d);if(a!==-1){f[l].ownedBy.length===1?(f[l].atlas.dispose(),f.splice(l,1)):f[l].ownedBy.splice(a,1);break}}}},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.is256Color=g.configEquals=g.generateConfig=void 0;var m=S(3);g.generateConfig=function(p,f,d,l){var a={foreground:l.foreground,background:l.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:l.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:p,scaledCharHeight:f,fontFamily:d.fontFamily,fontSize:d.fontSize,fontWeight:d.fontWeight,fontWeightBold:d.fontWeightBold,allowTransparency:d.allowTransparency,colors:a}},g.configEquals=function(p,f){for(var d=0;d<p.colors.ansi.length;d++)if(p.colors.ansi[d].rgba!==f.colors.ansi[d].rgba)return!1;return p.devicePixelRatio===f.devicePixelRatio&&p.fontFamily===f.fontFamily&&p.fontSize===f.fontSize&&p.fontWeight===f.fontWeight&&p.fontWeightBold===f.fontWeightBold&&p.allowTransparency===f.allowTransparency&&p.scaledCharWidth===f.scaledCharWidth&&p.scaledCharHeight===f.scaledCharHeight&&p.colors.foreground===f.colors.foreground&&p.colors.background===f.colors.background},g.is256Color=function(p){return p<m.DEFAULT_COLOR}},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ColorManager=g.DEFAULT_ANSI_COLORS=void 0;var m=S(10),p=S(45),f=m.css.toColor("#ffffff"),d=m.css.toColor("#000000"),l=m.css.toColor("#ffffff"),a=m.css.toColor("#000000"),i={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};g.DEFAULT_ANSI_COLORS=function(){for(var o=[m.css.toColor("#2e3436"),m.css.toColor("#cc0000"),m.css.toColor("#4e9a06"),m.css.toColor("#c4a000"),m.css.toColor("#3465a4"),m.css.toColor("#75507b"),m.css.toColor("#06989a"),m.css.toColor("#d3d7cf"),m.css.toColor("#555753"),m.css.toColor("#ef2929"),m.css.toColor("#8ae234"),m.css.toColor("#fce94f"),m.css.toColor("#729fcf"),m.css.toColor("#ad7fa8"),m.css.toColor("#34e2e2"),m.css.toColor("#eeeeec")],e=[0,95,135,175,215,255],u=0;u<216;u++){var r=e[u/36%6|0],s=e[u/6%6|0],c=e[u%6];o.push({css:m.channels.toCss(r,s,c),rgba:m.channels.toRgba(r,s,c)})}for(u=0;u<24;u++){var h=8+10*u;o.push({css:m.channels.toCss(h,h,h),rgba:m.channels.toRgba(h,h,h)})}return o}();var t=function(){function o(e,u){this.allowTransparency=u;var r=e.createElement("canvas");r.width=1,r.height=1;var s=r.getContext("2d");if(!s)throw new Error("Could not get rendering context");this._ctx=s,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new p.ColorContrastCache,this.colors={foreground:f,background:d,cursor:l,cursorAccent:a,selectionTransparent:i,selectionOpaque:m.color.blend(d,i),ansi:g.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return o.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},o.prototype.setTheme=function(e){(e===void 0&&(e={}),this.colors.foreground=this._parseColor(e.foreground,f),this.colors.background=this._parseColor(e.background,d),this.colors.cursor=this._parseColor(e.cursor,l,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,a,!0),this.colors.selectionTransparent=this._parseColor(e.selection,i,!0),this.colors.selectionOpaque=m.color.blend(this.colors.background,this.colors.selectionTransparent),m.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=m.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,g.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,g.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,g.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,g.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,g.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,g.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,g.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,g.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,g.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,g.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,g.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,g.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,g.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,g.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,g.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,g.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},o.prototype._parseColor=function(e,u,r){if(r===void 0&&(r=this.allowTransparency),e===void 0)return u;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+e+" is invalid using fallback "+u.css),u;this._ctx.fillRect(0,0,1,1);var s=this._ctx.getImageData(0,0,1,1).data;if(s[3]!==255){if(!r)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+u.css+"."),u;var c=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(E){return Number(E)}),h=c[0],v=c[1],A=c[2],b=c[3],x=Math.round(255*b);return{rgba:m.channels.toRgba(h,v,A,x),css:e}}return{css:this._ctx.fillStyle,rgba:m.channels.toRgba(s[0],s[1],s[2],s[3])}},o}();g.ColorManager=t},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.throwIfFalsy=void 0,g.throwIfFalsy=function(m){if(!m)throw new Error("value must not be falsy");return m}},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(o,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,r){u.__proto__=r}||function(u,r){for(var s in r)r.hasOwnProperty(s)&&(u[s]=r[s])})(o,e)},function(t,o){function e(){this.constructor=t}m(t,o),t.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)});Object.defineProperty(g,"__esModule",{value:!0}),g.CharacterJoinerRegistry=g.JoinedCellData=void 0;var f=S(6),d=S(3),l=S(4),a=function(t){function o(e,u,r){var s=t.call(this)||this;return s.content=0,s.combinedData="",s.fg=e.fg,s.bg=e.bg,s.combinedData=u,s._width=r,s}return p(o,t),o.prototype.isCombined=function(){return 2097152},o.prototype.getWidth=function(){return this._width},o.prototype.getChars=function(){return this.combinedData},o.prototype.getCode=function(){return 2097151},o.prototype.setFromCharData=function(e){throw new Error("not implemented")},o.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},o}(f.AttributeData);g.JoinedCellData=a;var i=function(){function t(o){this._bufferService=o,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new l.CellData}return t.prototype.registerCharacterJoiner=function(o){var e={id:this._nextCharacterJoinerId++,handler:o};return this._characterJoiners.push(e),e.id},t.prototype.deregisterCharacterJoiner=function(o){for(var e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===o)return this._characterJoiners.splice(e,1),!0;return!1},t.prototype.getJoinedCharacters=function(o){if(this._characterJoiners.length===0)return[];var e=this._bufferService.buffer.lines.get(o);if(!e||e.length===0)return[];for(var u=[],r=e.translateToString(!0),s=0,c=0,h=0,v=e.getFg(0),A=e.getBg(0),b=0;b<e.getTrimmedLength();b++)if(e.loadCell(b,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==v||this._workCell.bg!==A){if(b-s>1)for(var x=this._getJoinedRanges(r,h,c,e,s),E=0;E<x.length;E++)u.push(x[E]);s=b,h=c,v=this._workCell.fg,A=this._workCell.bg}c+=this._workCell.getChars().length||d.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-s>1)for(x=this._getJoinedRanges(r,h,c,e,s),E=0;E<x.length;E++)u.push(x[E]);return u},t.prototype._getJoinedRanges=function(o,e,u,r,s){for(var c=o.substring(e,u),h=this._characterJoiners[0].handler(c),v=1;v<this._characterJoiners.length;v++)for(var A=this._characterJoiners[v].handler(c),b=0;b<A.length;b++)t._mergeRanges(h,A[b]);return this._stringRangesToCellRanges(h,r,s),h},t.prototype._stringRangesToCellRanges=function(o,e,u){var r=0,s=!1,c=0,h=o[r];if(h){for(var v=u;v<this._bufferService.cols;v++){var A=e.getWidth(v),b=e.getString(v).length||d.WHITESPACE_CELL_CHAR.length;if(A!==0){if(!s&&h[0]<=c&&(h[0]=v,s=!0),h[1]<=c){if(h[1]=v,!(h=o[++r]))break;h[0]<=c?(h[0]=v,s=!0):s=!1}c+=b}}h&&(h[1]=this._bufferService.cols)}},t._mergeRanges=function(o,e){for(var u=!1,r=0;r<o.length;r++){var s=o[r];if(u){if(e[1]<=s[0])return o[r-1][1]=e[1],o;if(e[1]<=s[1])return o[r-1][1]=Math.max(e[1],s[1]),o.splice(r,1),o;o.splice(r,1),r--}else{if(e[1]<=s[0])return o.splice(r,0,e),o;if(e[1]<=s[1])return s[0]=Math.min(e[0],s[0]),o;e[0]<s[1]&&(s[0]=Math.min(e[0],s[0]),u=!0)}}return u?o[o.length-1][1]=e[1]:o.push(e),o},t}();g.CharacterJoinerRegistry=i},function(y,g,S){"use strict";function m(p,f){var d=f.getBoundingClientRect();return[p.clientX-d.left,p.clientY-d.top]}Object.defineProperty(g,"__esModule",{value:!0}),g.getRawByteCoords=g.getCoords=g.getCoordsRelativeToElement=void 0,g.getCoordsRelativeToElement=m,g.getCoords=function(p,f,d,l,a,i,t,o){if(a){var e=m(p,f);if(e)return e[0]=Math.ceil((e[0]+(o?i/2:0))/i),e[1]=Math.ceil(e[1]/t),e[0]=Math.min(Math.max(e[0],1),d+(o?1:0)),e[1]=Math.min(Math.max(e[1],1),l),e}},g.getRawByteCoords=function(p){if(p)return{x:p[0]+32,y:p[1]+32}}},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.RenderDebouncer=void 0;var m=function(){function p(f){this._renderCallback=f}return p.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},p.prototype.refresh=function(f,d,l){var a=this;this._rowCount=l,f=f!==void 0?f:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,f):f,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return a._innerRefresh()}))},p.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var f=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(f,d)}},p}();g.RenderDebouncer=m},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(l,a){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o])})(l,a)},function(d,l){function a(){this.constructor=d}m(d,l),d.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)});Object.defineProperty(g,"__esModule",{value:!0}),g.ScreenDprMonitor=void 0;var f=function(d){function l(){var a=d!==null&&d.apply(this,arguments)||this;return a._currentDevicePixelRatio=window.devicePixelRatio,a}return p(l,d),l.prototype.setListener=function(a){var i=this;this._listener&&this.clearListener(),this._listener=a,this._outerListener=function(){i._listener&&(i._listener(window.devicePixelRatio,i._currentDevicePixelRatio),i._updateDpr())},this._updateDpr()},l.prototype.dispose=function(){d.prototype.dispose.call(this),this.clearListener()},l.prototype._updateDpr=function(){var a;this._outerListener&&((a=this._resolutionMediaMatchList)===null||a===void 0||a.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},l.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)},l}(S(2).Disposable);g.ScreenDprMonitor=f},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.clone=void 0,g.clone=function m(p,f){if(f===void 0&&(f=5),typeof p!="object")return p;var d=Array.isArray(p)?[]:{};for(var l in p)d[l]=f<=1?p[l]:p[l]?m(p[l],f-1):p[l];return d}},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Terminal=void 0;var m=S(4),p=S(35),f=S(18),d=S(0),l=S(83),a=function(){function r(s){this._core=new p.Terminal(s),this._addonManager=new l.AddonManager}return r.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(r.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new e(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unicode",{get:function(){return this._checkProposedApi(),new u(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buffer",{get:function(){return this._checkProposedApi(),new t(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),r.prototype.blur=function(){this._core.blur()},r.prototype.focus=function(){this._core.focus()},r.prototype.resize=function(s,c){this._verifyIntegers(s,c),this._core.resize(s,c)},r.prototype.open=function(s){this._core.open(s)},r.prototype.attachCustomKeyEventHandler=function(s){this._core.attachCustomKeyEventHandler(s)},r.prototype.registerLinkMatcher=function(s,c,h){return this._checkProposedApi(),this._core.registerLinkMatcher(s,c,h)},r.prototype.deregisterLinkMatcher=function(s){this._checkProposedApi(),this._core.deregisterLinkMatcher(s)},r.prototype.registerLinkProvider=function(s){return this._checkProposedApi(),this._core.registerLinkProvider(s)},r.prototype.registerCharacterJoiner=function(s){return this._checkProposedApi(),this._core.registerCharacterJoiner(s)},r.prototype.deregisterCharacterJoiner=function(s){this._checkProposedApi(),this._core.deregisterCharacterJoiner(s)},r.prototype.registerMarker=function(s){return this._checkProposedApi(),this._verifyIntegers(s),this._core.addMarker(s)},r.prototype.addMarker=function(s){return this.registerMarker(s)},r.prototype.hasSelection=function(){return this._core.hasSelection()},r.prototype.select=function(s,c,h){this._verifyIntegers(s,c,h),this._core.select(s,c,h)},r.prototype.getSelection=function(){return this._core.getSelection()},r.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},r.prototype.clearSelection=function(){this._core.clearSelection()},r.prototype.selectAll=function(){this._core.selectAll()},r.prototype.selectLines=function(s,c){this._verifyIntegers(s,c),this._core.selectLines(s,c)},r.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},r.prototype.scrollLines=function(s){this._verifyIntegers(s),this._core.scrollLines(s)},r.prototype.scrollPages=function(s){this._verifyIntegers(s),this._core.scrollPages(s)},r.prototype.scrollToTop=function(){this._core.scrollToTop()},r.prototype.scrollToBottom=function(){this._core.scrollToBottom()},r.prototype.scrollToLine=function(s){this._verifyIntegers(s),this._core.scrollToLine(s)},r.prototype.clear=function(){this._core.clear()},r.prototype.write=function(s,c){this._core.write(s,c)},r.prototype.writeUtf8=function(s,c){this._core.write(s,c)},r.prototype.writeln=function(s,c){this._core.write(s),this._core.write(`\r
`,c)},r.prototype.paste=function(s){this._core.paste(s)},r.prototype.getOption=function(s){return this._core.optionsService.getOption(s)},r.prototype.setOption=function(s,c){this._core.optionsService.setOption(s,c)},r.prototype.refresh=function(s,c){this._verifyIntegers(s,c),this._core.refresh(s,c)},r.prototype.reset=function(){this._core.reset()},r.prototype.loadAddon=function(s){return this._addonManager.loadAddon(this,s)},Object.defineProperty(r,"strings",{get:function(){return f},enumerable:!1,configurable:!0}),r.prototype._verifyIntegers=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];for(var h=0,v=s;h<v.length;h++){var A=v[h];if(A===1/0||isNaN(A)||A%1!=0)throw new Error("This API only accepts integers")}},r}();g.Terminal=a;var i=function(){function r(s,c){this._buffer=s,this.type=c}return r.prototype.init=function(s){return this._buffer=s,this},Object.defineProperty(r.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),r.prototype.getLine=function(s){var c=this._buffer.lines.get(s);if(c)return new o(c)},r.prototype.getNullCell=function(){return new m.CellData},r}(),t=function(){function r(s){var c=this;this._buffers=s,this._onBufferChange=new d.EventEmitter,this._normal=new i(this._buffers.normal,"normal"),this._alternate=new i(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return c._onBufferChange.fire(c.active)})}return Object.defineProperty(r.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.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(r.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),r}(),o=function(){function r(s){this._line=s}return Object.defineProperty(r.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),r.prototype.getCell=function(s,c){if(!(s<0||s>=this._line.length))return c?(this._line.loadCell(s,c),c):this._line.loadCell(s,new m.CellData)},r.prototype.translateToString=function(s,c,h){return this._line.translateToString(s,c,h)},r}(),e=function(){function r(s){this._core=s}return r.prototype.registerCsiHandler=function(s,c){return this._core.addCsiHandler(s,function(h){return c(h.toArray())})},r.prototype.addCsiHandler=function(s,c){return this.registerCsiHandler(s,c)},r.prototype.registerDcsHandler=function(s,c){return this._core.addDcsHandler(s,function(h,v){return c(h,v.toArray())})},r.prototype.addDcsHandler=function(s,c){return this.registerDcsHandler(s,c)},r.prototype.registerEscHandler=function(s,c){return this._core.addEscHandler(s,c)},r.prototype.addEscHandler=function(s,c){return this.registerEscHandler(s,c)},r.prototype.registerOscHandler=function(s,c){return this._core.addOscHandler(s,c)},r.prototype.addOscHandler=function(s,c){return this.registerOscHandler(s,c)},r}(),u=function(){function r(s){this._core=s}return r.prototype.register=function(s){this._core.unicodeService.register(s)},Object.defineProperty(r.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(c){this._core.unicodeService.activeVersion=c},enumerable:!1,configurable:!0}),r}()},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(F,j){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,z){K.__proto__=z}||function(K,z){for(var V in z)z.hasOwnProperty(V)&&(K[V]=z[V])})(F,j)},function(X,F){function j(){this.constructor=X}m(X,F),X.prototype=F===null?Object.create(F):(j.prototype=F.prototype,new j)});Object.defineProperty(g,"__esModule",{value:!0}),g.Terminal=void 0;var f=S(36),d=S(37),l=S(38),a=S(12),i=S(19),t=S(40),o=S(50),e=S(51),u=S(11),r=S(7),s=S(18),c=S(54),h=S(55),v=S(56),A=S(57),b=S(59),x=S(0),E=S(16),T=S(27),_=S(60),C=S(5),w=S(61),O=S(62),I=S(63),k=S(64),M=S(65),U=typeof window!="undefined"?window.document:null,P=function(X){function F(j){j===void 0&&(j={});var K=X.call(this,j)||this;return K.browser=u,K._keyDownHandled=!1,K._onCursorMove=new x.EventEmitter,K._onKey=new x.EventEmitter,K._onRender=new x.EventEmitter,K._onSelectionChange=new x.EventEmitter,K._onTitleChange=new x.EventEmitter,K._onFocus=new x.EventEmitter,K._onBlur=new x.EventEmitter,K._onA11yCharEmitter=new x.EventEmitter,K._onA11yTabEmitter=new x.EventEmitter,K._setup(),K.linkifier=K._instantiationService.createInstance(o.Linkifier),K.linkifier2=K.register(K._instantiationService.createInstance(I.Linkifier2)),K.register(K._inputHandler.onRequestBell(function(){return K.bell()})),K.register(K._inputHandler.onRequestRefreshRows(function(z,V){return K.refresh(z,V)})),K.register(K._inputHandler.onRequestReset(function(){return K.reset()})),K.register(K._inputHandler.onRequestScroll(function(z,V){return K.scroll(z,V||void 0)})),K.register(K._inputHandler.onRequestWindowsOptionsReport(function(z){return K._reportWindowsOptions(z)})),K.register(x.forwardEvent(K._inputHandler.onCursorMove,K._onCursorMove)),K.register(x.forwardEvent(K._inputHandler.onTitleChange,K._onTitleChange)),K.register(x.forwardEvent(K._inputHandler.onA11yChar,K._onA11yCharEmitter)),K.register(x.forwardEvent(K._inputHandler.onA11yTab,K._onA11yTabEmitter)),K.register(K._bufferService.onResize(function(z){return K._afterResize(z.cols,z.rows)})),K}return p(F,X),Object.defineProperty(F.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),F.prototype.dispose=function(){var j,K,z;this._isDisposed||(X.prototype.dispose.call(this),(j=this._renderService)===null||j===void 0||j.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(z=(K=this.element)===null||K===void 0?void 0:K.parentNode)===null||z===void 0||z.removeChild(this.element))},F.prototype._setup=function(){X.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(F.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),F.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},F.prototype._updateOptions=function(j){var K,z,V,Q;switch(X.prototype._updateOptions.call(this,j),j){case"fontFamily":case"fontSize":(K=this._renderService)===null||K===void 0||K.clear(),(z=this._charSizeService)===null||z===void 0||z.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":(V=this.viewport)===null||V===void 0||V.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new v.AccessibilityManager(this,this._renderService)):((Q=this._accessibilityManager)===null||Q===void 0||Q.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},F.prototype._onTextAreaFocus=function(j){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(a.C0.ESC+"[I"),this.updateCursorStyle(j),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},F.prototype.blur=function(){var j;return(j=this.textarea)===null||j===void 0?void 0:j.blur()},F.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(a.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},F.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var j=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),K=this._bufferService.buffer.y*j,z=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=z+"px",this.textarea.style.top=K+"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"}},F.prototype._initGlobal=function(){var j=this;this._bindKeys(),this.register(r.addDisposableDomListener(this.element,"copy",function(z){j.hasSelection()&&l.copyHandler(z,j._selectionService)}));var K=function(V){return l.handlePasteEvent(V,j.textarea,j._coreService)};this.register(r.addDisposableDomListener(this.textarea,"paste",K)),this.register(r.addDisposableDomListener(this.element,"paste",K)),u.isFirefox?this.register(r.addDisposableDomListener(this.element,"mousedown",function(z){z.button===2&&l.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})):this.register(r.addDisposableDomListener(this.element,"contextmenu",function(z){l.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})),u.isLinux&&this.register(r.addDisposableDomListener(this.element,"auxclick",function(z){z.button===1&&l.moveTextAreaUnderMouseCursor(z,j.textarea,j.screenElement)}))},F.prototype._bindKeys=function(){var j=this;this.register(r.addDisposableDomListener(this.textarea,"keyup",function(K){return j._keyUp(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keydown",function(K){return j._keyDown(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keypress",function(K){return j._keyPress(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"compositionstart",function(){return j._compositionHelper.compositionstart()})),this.register(r.addDisposableDomListener(this.textarea,"compositionupdate",function(K){return j._compositionHelper.compositionupdate(K)})),this.register(r.addDisposableDomListener(this.textarea,"compositionend",function(){return j._compositionHelper.compositionend()})),this.register(this.onRender(function(){return j._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(K){return j._queueLinkification(K.start,K.end)}))},F.prototype.open=function(j){var K=this;if(!j)throw new Error("Terminal requires a parent element.");U.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 z=U.createDocumentFragment();this._viewportElement=U.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),z.appendChild(this._viewportElement),this._viewportScrollArea=U.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=U.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=U.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),z.appendChild(this.screenElement),this.textarea=U.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",s.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(r.addDisposableDomListener(this.textarea,"focus",function(G){return K._onTextAreaFocus(G)})),this.register(r.addDisposableDomListener(this.textarea,"blur",function(){return K._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var V=this._instantiationService.createInstance(k.CoreBrowserService,this.textarea);this._instantiationService.setService(C.ICoreBrowserService,V),this._charSizeService=this._instantiationService.createInstance(w.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(C.ICharSizeService,this._charSizeService),this._compositionView=U.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(f.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(z),this._theme=this.options.theme||this._theme,this._colorManager=new T.ColorManager(U,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(G){return K._colorManager.onOptionsChange(G)})),this._colorManager.setTheme(this._theme);var Q=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(_.RenderService,Q,this.rows,this.screenElement)),this._instantiationService.setService(C.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(G){return K._onRender.fire(G)})),this.onResize(function(G){return K._renderService.resize(G.cols,G.rows)}),this._soundService=this._instantiationService.createInstance(c.SoundService),this._instantiationService.setService(C.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(C.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(d.Viewport,function(G,te){return K.scrollLines(G,te)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return K.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){K._renderService.onCursorMove(),K._syncTextArea()})),this.register(this.onResize(function(){return K._renderService.onResize(K.cols,K.rows)})),this.register(this.onBlur(function(){return K._renderService.onBlur()})),this.register(this.onFocus(function(){return K._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return K.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(C.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(G){return K.scrollLines(G.amount,G.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return K._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(G){return K._renderService.onSelectionChanged(G.start,G.end,G.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(G){K.textarea.value=G,K.textarea.focus(),K.textarea.select()})),this.register(this.onScroll(function(){K.viewport.syncScrollArea(),K._selectionService.refresh()})),this.register(r.addDisposableDomListener(this._viewportElement,"scroll",function(){return K._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(h.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return K._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(r.addDisposableDomListener(this.element,"mousedown",function(G){return K._selectionService.onMouseDown(G)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new v.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},F.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(t.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(A.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},F.prototype._setTheme=function(j){var K,z,V;this._theme=j,(K=this._colorManager)===null||K===void 0||K.setTheme(j),(z=this._renderService)===null||z===void 0||z.setColors(this._colorManager.colors),(V=this.viewport)===null||V===void 0||V.onThemeChange(this._colorManager.colors)},F.prototype.bindMouse=function(){var j=this,K=this,z=this.element;function V(re){var we,Oe,Me=K._mouseService.getRawByteCoords(re,K.screenElement,K.cols,K.rows);if(!Me)return!1;switch(re.overrideType||re.type){case"mousemove":Oe=32,re.buttons===void 0?(we=3,re.button!==void 0&&(we=re.button<3?re.button:3)):we=1&re.buttons?0:4&re.buttons?1:2&re.buttons?2:3;break;case"mouseup":Oe=0,we=re.button<3?re.button:3;break;case"mousedown":Oe=1,we=re.button<3?re.button:3;break;case"wheel":re.deltaY!==0&&(Oe=re.deltaY<0?0:1),we=4;break;default:return!1}return!(Oe===void 0||we===void 0||we>4)&&K._coreMouseService.triggerMouseEvent({col:Me.x-33,row:Me.y-33,button:we,action:Oe,ctrl:re.ctrlKey,alt:re.altKey,shift:re.shiftKey})}var Q={mouseup:null,wheel:null,mousedrag:null,mousemove:null},G=function(we){return V(we),we.buttons||(j._document.removeEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.removeEventListener("mousemove",Q.mousedrag)),j.cancel(we)},te=function(we){return V(we),we.preventDefault(),j.cancel(we)},q=function(we){we.buttons&&V(we)},se=function(we){we.buttons||V(we)};this.register(this._coreMouseService.onProtocolChange(function(re){re?(j.optionsService.options.logLevel==="debug"&&j._logService.debug("Binding to mouse events:",j._coreMouseService.explainEvents(re)),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&re?Q.mousemove||(z.addEventListener("mousemove",se),Q.mousemove=se):(z.removeEventListener("mousemove",Q.mousemove),Q.mousemove=null),16&re?Q.wheel||(z.addEventListener("wheel",te,{passive:!1}),Q.wheel=te):(z.removeEventListener("wheel",Q.wheel),Q.wheel=null),2&re?Q.mouseup||(Q.mouseup=G):(j._document.removeEventListener("mouseup",Q.mouseup),Q.mouseup=null),4&re?Q.mousedrag||(Q.mousedrag=q):(j._document.removeEventListener("mousemove",Q.mousedrag),Q.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(r.addDisposableDomListener(z,"mousedown",function(re){if(re.preventDefault(),j.focus(),j._coreMouseService.areMouseEventsActive&&!j._selectionService.shouldForceSelection(re))return V(re),Q.mouseup&&j._document.addEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.addEventListener("mousemove",Q.mousedrag),j.cancel(re)})),this.register(r.addDisposableDomListener(z,"wheel",function(re){if(!Q.wheel){if(!j.buffer.hasScrollback){var we=j.viewport.getLinesScrolled(re);if(we===0)return;for(var Oe=a.C0.ESC+(j._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(re.deltaY<0?"A":"B"),Me="",Qe=0;Qe<Math.abs(we);Qe++)Me+=Oe;j._coreService.triggerDataEvent(Me,!0)}}},{passive:!0})),this.register(r.addDisposableDomListener(z,"wheel",function(re){if(!Q.wheel)return j.viewport.onWheel(re)?void 0:j.cancel(re)},{passive:!1})),this.register(r.addDisposableDomListener(z,"touchstart",function(re){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchStart(re),j.cancel(re)},{passive:!0})),this.register(r.addDisposableDomListener(z,"touchmove",function(re){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchMove(re)?void 0:j.cancel(re)},{passive:!1}))},F.prototype.refresh=function(j,K){var z;(z=this._renderService)===null||z===void 0||z.refreshRows(j,K)},F.prototype._queueLinkification=function(j,K){var z;(z=this.linkifier)===null||z===void 0||z.linkifyRows(j,K)},F.prototype.updateCursorStyle=function(j){this._selectionService&&this._selectionService.shouldColumnSelect(j)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},F.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},F.prototype.scrollLines=function(j,K){X.prototype.scrollLines.call(this,j,K),this.refresh(0,this.rows-1)},F.prototype.paste=function(j){l.paste(j,this.textarea,this._coreService)},F.prototype.attachCustomKeyEventHandler=function(j){this._customKeyEventHandler=j},F.prototype.registerLinkMatcher=function(j,K,z){var V=this.linkifier.registerLinkMatcher(j,K,z);return this.refresh(0,this.rows-1),V},F.prototype.deregisterLinkMatcher=function(j){this.linkifier.deregisterLinkMatcher(j)&&this.refresh(0,this.rows-1)},F.prototype.registerLinkProvider=function(j){return this.linkifier2.registerLinkProvider(j)},F.prototype.registerCharacterJoiner=function(j){var K=this._renderService.registerCharacterJoiner(j);return this.refresh(0,this.rows-1),K},F.prototype.deregisterCharacterJoiner=function(j){this._renderService.deregisterCharacterJoiner(j)&&this.refresh(0,this.rows-1)},Object.defineProperty(F.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),F.prototype.addMarker=function(j){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+j)},F.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},F.prototype.select=function(j,K,z){this._selectionService.setSelection(j,K,z)},F.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},F.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]}},F.prototype.clearSelection=function(){var j;(j=this._selectionService)===null||j===void 0||j.clearSelection()},F.prototype.selectAll=function(){var j;(j=this._selectionService)===null||j===void 0||j.selectAll()},F.prototype.selectLines=function(j,K){var z;(z=this._selectionService)===null||z===void 0||z.selectLines(j,K)},F.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 K=b.evaluateKeyboardEvent(j,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(j),K.type===3||K.type===2){var z=this.rows-1;return this.scrollLines(K.type===2?-z:z),this.cancel(j,!0)}return K.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,j)||(K.cancel&&this.cancel(j,!0),!K.key||(K.key!==a.C0.ETX&&K.key!==a.C0.CR||(this.textarea.value=""),this._onKey.fire({key:K.key,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(K.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(j,!0)))},F.prototype._isThirdLevelShift=function(j,K){var z=j.isMac&&!this.options.macOptionIsMeta&&K.altKey&&!K.ctrlKey&&!K.metaKey||j.isWindows&&K.altKey&&K.ctrlKey&&!K.metaKey;return K.type==="keypress"?z:z&&(!K.keyCode||K.keyCode>47)},F.prototype._keyUp=function(j){this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1||(function(K){return K.keyCode===16||K.keyCode===17||K.keyCode===18}(j)||this.focus(),this.updateCursorStyle(j))},F.prototype._keyPress=function(j){var K;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(this.cancel(j),j.charCode)K=j.charCode;else if(j.which===null||j.which===void 0)K=j.keyCode;else{if(j.which===0||j.charCode===0)return!1;K=j.which}return!(!K||(j.altKey||j.ctrlKey||j.metaKey)&&!this._isThirdLevelShift(this.browser,j))&&(K=String.fromCharCode(K),this._onKey.fire({key:K,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(K,!0),!0)},F.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},F.prototype.resize=function(j,K){j!==this.cols||K!==this.rows?X.prototype.resize.call(this,j,K):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},F.prototype._afterResize=function(j,K){var z,V;(z=this._charSizeService)===null||z===void 0||z.measure(),(V=this.viewport)===null||V===void 0||V.syncScrollArea(!0)},F.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(E.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},F.prototype.reset=function(){var j,K;this.options.rows=this.rows,this.options.cols=this.cols;var z=this._customKeyEventHandler;this._setup(),X.prototype.reset.call(this),(j=this._selectionService)===null||j===void 0||j.reset(),this._customKeyEventHandler=z,this.refresh(0,this.rows-1),(K=this.viewport)===null||K===void 0||K.syncScrollArea()},F.prototype._reportWindowsOptions=function(j){if(this._renderService)switch(j){case i.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var K=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),z=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(a.C0.ESC+"[4;"+z+";"+K+"t");break;case i.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var V=this._renderService.dimensions.scaledCellWidth.toFixed(0),Q=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(a.C0.ESC+"[6;"+Q+";"+V+"t")}},F.prototype.cancel=function(j,K){if(this.options.cancelEvents||K)return j.preventDefault(),j.stopPropagation(),!1},F.prototype._visualBell=function(){return!1},F.prototype._soundBell=function(){return this.options.bellStyle==="sound"},F}(M.CoreTerminal);g.Terminal=P},function(y,g,S){"use strict";var m=this&&this.__decorate||function(a,i,t,o){var e,u=arguments.length,r=u<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(a,i,t,o);else for(var s=a.length-1;s>=0;s--)(e=a[s])&&(r=(u<3?e(r):u>3?e(i,t,r):e(i,t))||r);return u>3&&r&&Object.defineProperty(i,t,r),r},p=this&&this.__param||function(a,i){return function(t,o){i(t,o,a)}};Object.defineProperty(g,"__esModule",{value:!0}),g.CompositionHelper=void 0;var f=S(5),d=S(1),l=function(){function a(i,t,o,e,u,r){this._textarea=i,this._compositionView=t,this._bufferService=o,this._optionsService=e,this._charSizeService=u,this._coreService=r,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(a.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),a.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},a.prototype.compositionupdate=function(i){var t=this;this._compositionView.textContent=i.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},a.prototype.compositionend=function(){this._finalizeComposition(!0)},a.prototype.keydown=function(i){if(this._isComposing||this._isSendingComposition){if(i.keyCode===229)return!1;if(i.keyCode===16||i.keyCode===17||i.keyCode===18)return!1;this._finalizeComposition(!1)}return i.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},a.prototype._finalizeComposition=function(i){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,i){var o={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(t._isSendingComposition){t._isSendingComposition=!1;var u=void 0;u=t._isComposing?t._textarea.value.substring(o.start,o.end):t._textarea.value.substring(o.start),t._coreService.triggerDataEvent(u,!0)}},0)}else{this._isSendingComposition=!1;var e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}},a.prototype._handleAnyTextareaChanges=function(){var i=this,t=this._textarea.value;setTimeout(function(){if(!i._isComposing){var o=i._textarea.value.replace(t,"");o.length>0&&i._coreService.triggerDataEvent(o,!0)}},0)},a.prototype.updateCompositionElements=function(i){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var o=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*o,u=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=u+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=o+"px",this._compositionView.style.lineHeight=o+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var r=this._compositionView.getBoundingClientRect();this._textarea.style.left=u+"px",this._textarea.style.top=e+"px",this._textarea.style.width=r.width+"px",this._textarea.style.height=r.height+"px",this._textarea.style.lineHeight=r.height+"px"}i||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},a=m([p(2,d.IBufferService),p(3,d.IOptionsService),p(4,f.ICharSizeService),p(5,d.ICoreService)],a)}();g.CompositionHelper=l},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(u,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(u,r)},function(e,u){function r(){this.constructor=e}m(e,u),e.prototype=u===null?Object.create(u):(r.prototype=u.prototype,new r)}),f=this&&this.__decorate||function(e,u,r,s){var c,h=arguments.length,v=h<3?u:s===null?s=Object.getOwnPropertyDescriptor(u,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,u,r,s);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(v=(h<3?c(v):h>3?c(u,r,v):c(u,r))||v);return h>3&&v&&Object.defineProperty(u,r,v),v},d=this&&this.__param||function(e,u){return function(r,s){u(r,s,e)}};Object.defineProperty(g,"__esModule",{value:!0}),g.Viewport=void 0;var l=S(2),a=S(7),i=S(5),t=S(1),o=function(e){function u(r,s,c,h,v,A,b){var x=e.call(this)||this;return x._scrollLines=r,x._viewportElement=s,x._scrollArea=c,x._bufferService=h,x._optionsService=v,x._charSizeService=A,x._renderService=b,x.scrollBarWidth=0,x._currentRowHeight=0,x._lastRecordedBufferLength=0,x._lastRecordedViewportHeight=0,x._lastRecordedBufferHeight=0,x._lastTouchY=0,x._lastScrollTop=0,x._wheelPartialScroll=0,x._refreshAnimationFrame=null,x._ignoreNextScrollEvent=!1,x.scrollBarWidth=x._viewportElement.offsetWidth-x._scrollArea.offsetWidth||15,x.register(a.addDisposableDomListener(x._viewportElement,"scroll",x._onScroll.bind(x))),setTimeout(function(){return x.syncScrollArea()},0),x}return p(u,e),u.prototype.onThemeChange=function(r){this._viewportElement.style.backgroundColor=r.background.css},u.prototype._refresh=function(r){var s=this;if(r)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return s._innerRefresh()}))},u.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var r=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==r&&(this._lastRecordedBufferHeight=r,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var s=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==s&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=s),this._refreshAnimationFrame=null},u.prototype.syncScrollArea=function(r){if(r===void 0&&(r=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(r);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var s=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===s&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(r)}else this._refresh(r)},u.prototype._onScroll=function(r){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var s=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(s,!0)}},u.prototype._bubbleScroll=function(r,s){var c=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(s<0&&this._viewportElement.scrollTop!==0||s>0&&c<this._lastRecordedBufferHeight)||(r.cancelable&&r.preventDefault(),!1)},u.prototype.onWheel=function(r){var s=this._getPixelsScrolled(r);return s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(r,s))},u.prototype._getPixelsScrolled=function(r){if(r.deltaY===0)return 0;var s=this._applyScrollModifier(r.deltaY,r);return r.deltaMode===WheelEvent.DOM_DELTA_LINE?s*=this._currentRowHeight:r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._currentRowHeight*this._bufferService.rows),s},u.prototype.getLinesScrolled=function(r){if(r.deltaY===0)return 0;var s=this._applyScrollModifier(r.deltaY,r);return r.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(s/=this._currentRowHeight+0,this._wheelPartialScroll+=s,s=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._bufferService.rows),s},u.prototype._applyScrollModifier=function(r,s){var c=this._optionsService.options.fastScrollModifier;return c==="alt"&&s.altKey||c==="ctrl"&&s.ctrlKey||c==="shift"&&s.shiftKey?r*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:r*this._optionsService.options.scrollSensitivity},u.prototype.onTouchStart=function(r){this._lastTouchY=r.touches[0].pageY},u.prototype.onTouchMove=function(r){var s=this._lastTouchY-r.touches[0].pageY;return this._lastTouchY=r.touches[0].pageY,s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(r,s))},u=f([d(3,t.IBufferService),d(4,t.IOptionsService),d(5,i.ICharSizeService),d(6,i.IRenderService)],u)}(l.Disposable);g.Viewport=o},function(y,g,S){"use strict";function m(l){return l.replace(/\r?\n/g,"\r")}function p(l,a){return a?"[200~"+l+"[201~":l}function f(l,a,i){l=p(l=m(l),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(l,!0),a.value=""}function d(l,a,i){var t=i.getBoundingClientRect(),o=l.clientX-t.left-10,e=l.clientY-t.top-10;a.style.width="20px",a.style.height="20px",a.style.left=o+"px",a.style.top=e+"px",a.style.zIndex="1000",a.focus()}Object.defineProperty(g,"__esModule",{value:!0}),g.rightClickHandler=g.moveTextAreaUnderMouseCursor=g.paste=g.handlePasteEvent=g.copyHandler=g.bracketTextForPaste=g.prepareTextForTerminal=void 0,g.prepareTextForTerminal=m,g.bracketTextForPaste=p,g.copyHandler=function(l,a){l.clipboardData&&l.clipboardData.setData("text/plain",a.selectionText),l.preventDefault()},g.handlePasteEvent=function(l,a,i){l.stopPropagation(),l.clipboardData&&f(l.clipboardData.getData("text/plain"),a,i)},g.paste=f,g.moveTextAreaUnderMouseCursor=d,g.rightClickHandler=function(l,a,i,t,o){d(l,a,i),o&&!t.isClickInSelection(l)&&t.selectWordAtCursor(l),a.value=t.selectionText,a.select()}},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(u,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(u,r)},function(e,u){function r(){this.constructor=e}m(e,u),e.prototype=u===null?Object.create(u):(r.prototype=u.prototype,new r)});Object.defineProperty(g,"__esModule",{value:!0}),g.EscapeSequenceParser=g.VT500_TRANSITION_TABLE=g.TransitionTable=void 0;var f=S(2),d=S(15),l=S(21),a=S(22),i=S(24),t=function(){function e(u){this.table=new Uint8Array(u)}return e.prototype.setDefault=function(u,r){d.fill(this.table,u<<4|r)},e.prototype.add=function(u,r,s,c){this.table[r<<8|u]=s<<4|c},e.prototype.addMany=function(u,r,s,c){for(var h=0;h<u.length;h++)this.table[r<<8|u[h]]=s<<4|c},e}();g.TransitionTable=t,g.VT500_TRANSITION_TABLE=function(){var e=new t(4095),u=Array.apply(null,Array(256)).map(function(A,b){return b}),r=function(b,x){return u.slice(b,x)},s=r(32,127),c=r(0,24);c.push(25),c.push.apply(c,r(28,32));var h,v=r(0,14);for(h in e.setDefault(1,0),e.addMany(s,0,2,0),v)e.addMany([24,26,153,154],h,3,0),e.addMany(r(128,144),h,3,0),e.addMany(r(144,152),h,3,0),e.add(156,h,0,0),e.add(27,h,11,1),e.add(157,h,4,8),e.addMany([152,158,159],h,0,7),e.add(155,h,11,3),e.add(144,h,11,9);return e.addMany(c,0,3,0),e.addMany(c,1,3,1),e.add(127,1,0,1),e.addMany(c,8,0,8),e.addMany(c,3,3,3),e.add(127,3,0,3),e.addMany(c,4,3,4),e.add(127,4,0,4),e.addMany(c,6,3,6),e.addMany(c,5,3,5),e.add(127,5,0,5),e.addMany(c,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(s,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(r(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(s,7,0,7),e.addMany(c,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(r(64,127),3,7,0),e.addMany(r(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(r(48,60),4,8,4),e.addMany(r(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(r(32,64),6,0,6),e.add(127,6,0,6),e.addMany(r(64,127),6,0,0),e.addMany(r(32,48),3,9,5),e.addMany(r(32,48),5,9,5),e.addMany(r(48,64),5,0,6),e.addMany(r(64,127),5,7,0),e.addMany(r(32,48),4,9,5),e.addMany(r(32,48),1,9,2),e.addMany(r(32,48),2,9,2),e.addMany(r(48,127),2,10,0),e.addMany(r(48,80),1,10,0),e.addMany(r(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(r(96,127),1,10,0),e.add(80,1,11,9),e.addMany(c,9,0,9),e.add(127,9,0,9),e.addMany(r(28,32),9,0,9),e.addMany(r(32,48),9,9,12),e.addMany(r(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(c,11,0,11),e.addMany(r(32,128),11,0,11),e.addMany(r(28,32),11,0,11),e.addMany(c,10,0,10),e.add(127,10,0,10),e.addMany(r(28,32),10,0,10),e.addMany(r(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(r(32,48),10,9,12),e.addMany(c,12,0,12),e.add(127,12,0,12),e.addMany(r(28,32),12,0,12),e.addMany(r(32,48),12,9,12),e.addMany(r(48,64),12,0,11),e.addMany(r(64,127),12,12,13),e.addMany(r(64,127),10,12,13),e.addMany(r(64,127),9,12,13),e.addMany(c,13,13,13),e.addMany(s,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 o=function(e){function u(r){r===void 0&&(r=g.VT500_TRANSITION_TABLE);var s=e.call(this)||this;return s._transitions=r,s.initialState=0,s.currentState=s.initialState,s._params=new l.Params,s._params.addParam(0),s._collect=0,s.precedingCodepoint=0,s._printHandlerFb=function(c,h,v){},s._executeHandlerFb=function(c){},s._csiHandlerFb=function(c,h){},s._escHandlerFb=function(c){},s._errorHandlerFb=function(c){return c},s._printHandler=s._printHandlerFb,s._executeHandlers=Object.create(null),s._csiHandlers=Object.create(null),s._escHandlers=Object.create(null),s._oscParser=new a.OscParser,s._dcsParser=new i.DcsParser,s._errorHandler=s._errorHandlerFb,s.setEscHandler({final:"\\"},function(){}),s}return p(u,e),u.prototype._identifier=function(r,s){s===void 0&&(s=[64,126]);var c=0;if(r.prefix){if(r.prefix.length>1)throw new Error("only one byte as prefix supported");if((c=r.prefix.charCodeAt(0))&&60>c||c>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(r.intermediates){if(r.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var h=0;h<r.intermediates.length;++h){var v=r.intermediates.charCodeAt(h);if(32>v||v>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");c<<=8,c|=v}}if(r.final.length!==1)throw new Error("final must be a single byte");var A=r.final.charCodeAt(0);if(s[0]>A||A>s[1])throw new Error("final must be in range "+s[0]+" .. "+s[1]);return c<<=8,c|=A},u.prototype.identToString=function(r){for(var s=[];r;)s.push(String.fromCharCode(255&r)),r>>=8;return s.reverse().join("")},u.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},u.prototype.setPrintHandler=function(r){this._printHandler=r},u.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},u.prototype.addEscHandler=function(r,s){var c=this._identifier(r,[48,126]);this._escHandlers[c]===void 0&&(this._escHandlers[c]=[]);var h=this._escHandlers[c];return h.push(s),{dispose:function(){var A=h.indexOf(s);A!==-1&&h.splice(A,1)}}},u.prototype.setEscHandler=function(r,s){this._escHandlers[this._identifier(r,[48,126])]=[s]},u.prototype.clearEscHandler=function(r){this._escHandlers[this._identifier(r,[48,126])]&&delete this._escHandlers[this._identifier(r,[48,126])]},u.prototype.setEscHandlerFallback=function(r){this._escHandlerFb=r},u.prototype.setExecuteHandler=function(r,s){this._executeHandlers[r.charCodeAt(0)]=s},u.prototype.clearExecuteHandler=function(r){this._executeHandlers[r.charCodeAt(0)]&&delete this._executeHandlers[r.charCodeAt(0)]},u.prototype.setExecuteHandlerFallback=function(r){this._executeHandlerFb=r},u.prototype.addCsiHandler=function(r,s){var c=this._identifier(r);this._csiHandlers[c]===void 0&&(this._csiHandlers[c]=[]);var h=this._csiHandlers[c];return h.push(s),{dispose:function(){var A=h.indexOf(s);A!==-1&&h.splice(A,1)}}},u.prototype.setCsiHandler=function(r,s){this._csiHandlers[this._identifier(r)]=[s]},u.prototype.clearCsiHandler=function(r){this._csiHandlers[this._identifier(r)]&&delete this._csiHandlers[this._identifier(r)]},u.prototype.setCsiHandlerFallback=function(r){this._csiHandlerFb=r},u.prototype.addDcsHandler=function(r,s){return this._dcsParser.addHandler(this._identifier(r),s)},u.prototype.setDcsHandler=function(r,s){this._dcsParser.setHandler(this._identifier(r),s)},u.prototype.clearDcsHandler=function(r){this._dcsParser.clearHandler(this._identifier(r))},u.prototype.setDcsHandlerFallback=function(r){this._dcsParser.setHandlerFallback(r)},u.prototype.addOscHandler=function(r,s){return this._oscParser.addHandler(r,s)},u.prototype.setOscHandler=function(r,s){this._oscParser.setHandler(r,s)},u.prototype.clearOscHandler=function(r){this._oscParser.clearHandler(r)},u.prototype.setOscHandlerFallback=function(r){this._oscParser.setHandlerFallback(r)},u.prototype.setErrorHandler=function(r){this._errorHandler=r},u.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},u.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},u.prototype.parse=function(r,s){for(var c=0,h=0,v=this.currentState,A=this._oscParser,b=this._dcsParser,x=this._collect,E=this._params,T=this._transitions.table,_=0;_<s;++_){switch((h=T[v<<8|((c=r[_])<160?c:160)])>>4){case 2:for(var C=_+1;;++C){if(C>=s||(c=r[C])<32||c>126&&c<160){this._printHandler(r,_,C),_=C-1;break}if(++C>=s||(c=r[C])<32||c>126&&c<160){this._printHandler(r,_,C),_=C-1;break}if(++C>=s||(c=r[C])<32||c>126&&c<160){this._printHandler(r,_,C),_=C-1;break}if(++C>=s||(c=r[C])<32||c>126&&c<160){this._printHandler(r,_,C),_=C-1;break}}break;case 3:this._executeHandlers[c]?this._executeHandlers[c]():this._executeHandlerFb(c),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:_,code:c,currentState:v,collect:x,params:E,abort:!1}).abort)return;break;case 7:for(var w=this._csiHandlers[x<<8|c],O=w?w.length-1:-1;O>=0&&w[O](E)===!1;O--);O<0&&this._csiHandlerFb(x<<8|c,E),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:E.addParam(0);break;case 58:E.addSubParam(-1);break;default:E.addDigit(c-48)}while(++_<s&&(c=r[_])>47&&c<60);_--;break;case 9:x<<=8,x|=c;break;case 10:for(var I=this._escHandlers[x<<8|c],k=I?I.length-1:-1;k>=0&&I[k]()===!1;k--);k<0&&this._escHandlerFb(x<<8|c),this.precedingCodepoint=0;break;case 11:E.reset(),E.addParam(0),x=0;break;case 12:b.hook(x<<8|c,E);break;case 13:for(var M=_+1;;++M)if(M>=s||(c=r[M])===24||c===26||c===27||c>127&&c<160){b.put(r,_,M),_=M-1;break}break;case 14:b.unhook(c!==24&&c!==26),c===27&&(h|=1),E.reset(),E.addParam(0),x=0,this.precedingCodepoint=0;break;case 4:A.start();break;case 5:for(var U=_+1;;U++)if(U>=s||(c=r[U])<32||c>127&&c<=159){A.put(r,_,U),_=U-1;break}break;case 6:A.end(c!==24&&c!==26),c===27&&(h|=1),E.reset(),E.addParam(0),x=0,this.precedingCodepoint=0}v=15&h}this._collect=x,this.currentState=v},u}(f.Disposable);g.EscapeSequenceParser=o},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(b,x){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,T){E.__proto__=T}||function(E,T){for(var _ in T)T.hasOwnProperty(_)&&(E[_]=T[_])})(b,x)},function(A,b){function x(){this.constructor=A}m(A,b),A.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}),f=this&&this.__decorate||function(A,b,x,E){var T,_=arguments.length,C=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,x):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(A,b,x,E);else for(var w=A.length-1;w>=0;w--)(T=A[w])&&(C=(_<3?T(C):_>3?T(b,x,C):T(b,x))||C);return _>3&&C&&Object.defineProperty(b,x,C),C},d=this&&this.__param||function(A,b){return function(x,E){b(x,E,A)}};Object.defineProperty(g,"__esModule",{value:!0}),g.Renderer=void 0;var l=S(41),a=S(47),i=S(48),t=S(49),o=S(29),e=S(2),u=S(5),r=S(1),s=S(25),c=S(0),h=1,v=function(A){function b(x,E,T,_,C,w,O,I,k){var M=A.call(this)||this;M._colors=x,M._screenElement=E,M._bufferService=C,M._charSizeService=w,M._optionsService=O,M._id=h++,M._onRequestRedraw=new c.EventEmitter;var U=M._optionsService.options.allowTransparency;return M._characterJoinerRegistry=new o.CharacterJoinerRegistry(M._bufferService),M._renderLayers=[new l.TextRenderLayer(M._screenElement,0,M._colors,M._characterJoinerRegistry,U,M._id,M._bufferService,O),new a.SelectionRenderLayer(M._screenElement,1,M._colors,M._id,M._bufferService,O),new t.LinkRenderLayer(M._screenElement,2,M._colors,M._id,T,_,M._bufferService,O),new i.CursorRenderLayer(M._screenElement,3,M._colors,M._id,M._onRequestRedraw,M._bufferService,O,I,k)],M.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},M._devicePixelRatio=window.devicePixelRatio,M._updateDimensions(),M.onOptionsChanged(),M}return p(b,A),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){for(var x=0,E=this._renderLayers;x<E.length;x++)E[x].dispose();A.prototype.dispose.call(this),s.removeTerminalFromCache(this._id)},b.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},b.prototype.setColors=function(x){this._colors=x;for(var E=0,T=this._renderLayers;E<T.length;E++){var _=T[E];_.setColors(this._colors),_.reset()}},b.prototype.onResize=function(x,E){this._updateDimensions();for(var T=0,_=this._renderLayers;T<_.length;T++)_[T].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},b.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},b.prototype.onBlur=function(){this._runOperation(function(x){return x.onBlur()})},b.prototype.onFocus=function(){this._runOperation(function(x){return x.onFocus()})},b.prototype.onSelectionChanged=function(x,E,T){T===void 0&&(T=!1),this._runOperation(function(_){return _.onSelectionChanged(x,E,T)})},b.prototype.onCursorMove=function(){this._runOperation(function(x){return x.onCursorMove()})},b.prototype.onOptionsChanged=function(){this._runOperation(function(x){return x.onOptionsChanged()})},b.prototype.clear=function(){this._runOperation(function(x){return x.reset()})},b.prototype._runOperation=function(x){for(var E=0,T=this._renderLayers;E<T.length;E++)x(T[E])},b.prototype.renderRows=function(x,E){for(var T=0,_=this._renderLayers;T<_.length;T++)_[T].onGridChanged(x,E)},b.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)},b.prototype.registerCharacterJoiner=function(x){return this._characterJoinerRegistry.registerCharacterJoiner(x)},b.prototype.deregisterCharacterJoiner=function(x){return this._characterJoinerRegistry.deregisterCharacterJoiner(x)},b=f([d(4,r.IBufferService),d(5,u.ICharSizeService),d(6,r.IOptionsService),d(7,r.ICoreService),d(8,u.ICoreBrowserService)],b)}(e.Disposable);g.Renderer=v},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(u,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(u,r)},function(e,u){function r(){this.constructor=e}m(e,u),e.prototype=u===null?Object.create(u):(r.prototype=u.prototype,new r)});Object.defineProperty(g,"__esModule",{value:!0}),g.TextRenderLayer=void 0;var f=S(42),d=S(13),l=S(6),a=S(3),i=S(29),t=S(4),o=function(e){function u(r,s,c,h,v,A,b,x){var E=e.call(this,r,"text",s,v,c,A,b,x)||this;return E._characterWidth=0,E._characterFont="",E._characterOverlapCache={},E._workCell=new t.CellData,E._state=new f.GridCache,E._characterJoinerRegistry=h,E}return p(u,e),u.prototype.resize=function(r){e.prototype.resize.call(this,r);var s=this._getFont(!1,!1);this._characterWidth===r.scaledCharWidth&&this._characterFont===s||(this._characterWidth=r.scaledCharWidth,this._characterFont=s,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},u.prototype.reset=function(){this._state.clear(),this._clearAll()},u.prototype._forEachCell=function(r,s,c,h){for(var v=r;v<=s;v++)for(var A=v+this._bufferService.buffer.ydisp,b=this._bufferService.buffer.lines.get(A),x=c?c.getJoinedCharacters(A):[],E=0;E<this._bufferService.cols;E++){b.loadCell(E,this._workCell);var T=this._workCell,_=!1,C=E;if(T.getWidth()!==0){if(x.length>0&&E===x[0][0]){_=!0;var w=x.shift();T=new i.JoinedCellData(this._workCell,b.translateToString(!0,w[0],w[1]),w[1]-w[0]),C=w[1]-1}!_&&this._isOverlapping(T)&&C<b.length-1&&b.getCodePoint(C+1)===a.NULL_CELL_CODE&&(T.content&=-12582913,T.content|=2<<22),h(T,E,v),E=C}}},u.prototype._drawBackground=function(r,s){var c=this,h=this._ctx,v=this._bufferService.cols,A=0,b=0,x=null;h.save(),this._forEachCell(r,s,null,function(E,T,_){var C=null;E.isInverse()?C=E.isFgDefault()?c._colors.foreground.css:E.isFgRGB()?"rgb("+l.AttributeData.toColorRGB(E.getFgColor()).join(",")+")":c._colors.ansi[E.getFgColor()].css:E.isBgRGB()?C="rgb("+l.AttributeData.toColorRGB(E.getBgColor()).join(",")+")":E.isBgPalette()&&(C=c._colors.ansi[E.getBgColor()].css),x===null&&(A=T,b=_),_!==b?(h.fillStyle=x||"",c._fillCells(A,b,v-A,1),A=T,b=_):x!==C&&(h.fillStyle=x||"",c._fillCells(A,b,T-A,1),A=T,b=_),x=C}),x!==null&&(h.fillStyle=x,this._fillCells(A,b,v-A,1)),h.restore()},u.prototype._drawForeground=function(r,s){var c=this;this._forEachCell(r,s,this._characterJoinerRegistry,function(h,v,A){if(!h.isInvisible()&&(c._drawChars(h,v,A),h.isUnderline())){if(c._ctx.save(),h.isInverse())if(h.isBgDefault())c._ctx.fillStyle=c._colors.background.css;else if(h.isBgRGB())c._ctx.fillStyle="rgb("+l.AttributeData.toColorRGB(h.getBgColor()).join(",")+")";else{var b=h.getBgColor();c._optionsService.options.drawBoldTextInBrightColors&&h.isBold()&&b<8&&(b+=8),c._ctx.fillStyle=c._colors.ansi[b].css}else if(h.isFgDefault())c._ctx.fillStyle=c._colors.foreground.css;else if(h.isFgRGB())c._ctx.fillStyle="rgb("+l.AttributeData.toColorRGB(h.getFgColor()).join(",")+")";else{var x=h.getFgColor();c._optionsService.options.drawBoldTextInBrightColors&&h.isBold()&&x<8&&(x+=8),c._ctx.fillStyle=c._colors.ansi[x].css}c._fillBottomLineAtCells(v,A,h.getWidth()),c._ctx.restore()}})},u.prototype.onGridChanged=function(r,s){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,r,this._bufferService.cols,s-r+1),this._drawBackground(r,s),this._drawForeground(r,s))},u.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},u.prototype._isOverlapping=function(r){if(r.getWidth()!==1)return!1;if(r.getCode()<256)return!1;var s=r.getChars();if(this._characterOverlapCache.hasOwnProperty(s))return this._characterOverlapCache[s];this._ctx.save(),this._ctx.font=this._characterFont;var c=Math.floor(this._ctx.measureText(s).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[s]=c,c},u}(d.BaseRenderLayer);g.TextRenderLayer=o},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.GridCache=void 0;var m=function(){function p(){this.cache=[]}return p.prototype.resize=function(f,d){for(var l=0;l<f;l++){this.cache.length<=l&&this.cache.push([]);for(var a=this.cache[l].length;a<d;a++)this.cache[l].push(void 0);this.cache[l].length=d}this.cache.length=f},p.prototype.clear=function(){for(var f=0;f<this.cache.length;f++)for(var d=0;d<this.cache[f].length;d++)this.cache[f][d]=void 0},p}();g.GridCache=m},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(h,v){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var x in b)b.hasOwnProperty(x)&&(A[x]=b[x])})(h,v)},function(c,h){function v(){this.constructor=c}m(c,h),c.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(g,"__esModule",{value:!0}),g.NoneCharAtlas=g.DynamicCharAtlas=g.getGlyphCacheKey=void 0;var f=S(9),d=S(44),l=S(27),a=S(46),i=S(11),t=S(28),o=S(10),e={css:"rgba(0, 0, 0, 0)",rgba:0};function u(c){return c.code<<21|c.bg<<12|c.fg<<3|(c.bold?0:4)+(c.dim?0:2)+(c.italic?0:1)}g.getGlyphCacheKey=u;var r=function(c){function h(v,A){var b=c.call(this)||this;b._config=A,b._drawToCacheCount=0,b._glyphsWaitingOnBitmap=[],b._bitmapCommitTimeout=null,b._bitmap=null,b._cacheCanvas=v.createElement("canvas"),b._cacheCanvas.width=1024,b._cacheCanvas.height=1024,b._cacheCtx=t.throwIfFalsy(b._cacheCanvas.getContext("2d",{alpha:!0}));var x=v.createElement("canvas");x.width=b._config.scaledCharWidth,x.height=b._config.scaledCharHeight,b._tmpCtx=t.throwIfFalsy(x.getContext("2d",{alpha:b._config.allowTransparency})),b._width=Math.floor(1024/b._config.scaledCharWidth),b._height=Math.floor(1024/b._config.scaledCharHeight);var E=b._width*b._height;return b._cacheMap=new a.LRUMap(E),b._cacheMap.prealloc(E),b}return p(h,c),h.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},h.prototype.beginFrame=function(){this._drawToCacheCount=0},h.prototype.draw=function(v,A,b,x){if(A.code===32)return!0;if(!this._canCache(A))return!1;var E=u(A),T=this._cacheMap.get(E);if(T!=null)return this._drawFromCache(v,T,b,x),!0;if(this._drawToCacheCount<100){var _=void 0;_=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var C=this._drawToCache(A,_);return this._cacheMap.set(E,C),this._drawFromCache(v,C,b,x),!0}return!1},h.prototype._canCache=function(v){return v.code<256},h.prototype._toCoordinateX=function(v){return v%this._width*this._config.scaledCharWidth},h.prototype._toCoordinateY=function(v){return Math.floor(v/this._width)*this._config.scaledCharHeight},h.prototype._drawFromCache=function(v,A,b,x){if(!A.isEmpty){var E=this._toCoordinateX(A.index),T=this._toCoordinateY(A.index);v.drawImage(A.inBitmap?this._bitmap:this._cacheCanvas,E,T,this._config.scaledCharWidth,this._config.scaledCharHeight,b,x,this._config.scaledCharWidth,this._config.scaledCharHeight)}},h.prototype._getColorFromAnsiIndex=function(v){return v<this._config.colors.ansi.length?this._config.colors.ansi[v]:l.DEFAULT_ANSI_COLORS[v]},h.prototype._getBackgroundColor=function(v){return this._config.allowTransparency?e:v.bg===f.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:v.bg<256?this._getColorFromAnsiIndex(v.bg):this._config.colors.background},h.prototype._getForegroundColor=function(v){return v.fg===f.INVERTED_DEFAULT_COLOR?o.color.opaque(this._config.colors.background):v.fg<256?this._getColorFromAnsiIndex(v.fg):this._config.colors.foreground},h.prototype._drawToCache=function(v,A){this._drawToCacheCount++,this._tmpCtx.save();var b=this._getBackgroundColor(v);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=b.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var x=v.bold?this._config.fontWeightBold:this._config.fontWeight,E=v.italic?"italic":"";this._tmpCtx.font=E+" "+x+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(v).css,v.dim&&(this._tmpCtx.globalAlpha=f.DIM_OPACITY),this._tmpCtx.fillText(v.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var T=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),_=!1;this._config.allowTransparency||(_=function(I,k){for(var M=!0,U=k.rgba>>>24,P=k.rgba>>>16&255,X=k.rgba>>>8&255,F=0;F<I.data.length;F+=4)I.data[F]===U&&I.data[F+1]===P&&I.data[F+2]===X?I.data[F+3]=0:M=!1;return M}(T,b));var C=this._toCoordinateX(A),w=this._toCoordinateY(A);this._cacheCtx.putImageData(T,C,w);var O={index:A,isEmpty:_,inBitmap:!1};return this._addGlyphToBitmap(O),O},h.prototype._addGlyphToBitmap=function(v){var A=this;!("createImageBitmap"in window)||i.isFirefox||i.isSafari||(this._glyphsWaitingOnBitmap.push(v),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return A._generateBitmap()},100)))},h.prototype._generateBitmap=function(){var v=this,A=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(b){v._bitmap=b;for(var x=0;x<A.length;x++)A[x].inBitmap=!0}),this._bitmapCommitTimeout=null},h}(d.BaseCharAtlas);g.DynamicCharAtlas=r;var s=function(c){function h(v,A){return c.call(this)||this}return p(h,c),h.prototype.draw=function(v,A,b,x){return!1},h}(d.BaseCharAtlas);g.NoneCharAtlas=s},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.BaseCharAtlas=void 0;var m=function(){function p(){this._didWarmUp=!1}return p.prototype.dispose=function(){},p.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},p.prototype._doWarmUp=function(){},p.prototype.beginFrame=function(){},p}();g.BaseCharAtlas=m},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ColorContrastCache=void 0;var m=function(){function p(){this._color={},this._rgba={}}return p.prototype.clear=function(){this._color={},this._rgba={}},p.prototype.setCss=function(f,d,l){this._rgba[f]||(this._rgba[f]={}),this._rgba[f][d]=l},p.prototype.getCss=function(f,d){return this._rgba[f]?this._rgba[f][d]:void 0},p.prototype.setColor=function(f,d,l){this._color[f]||(this._color[f]={}),this._color[f][d]=l},p.prototype.getColor=function(f,d){return this._color[f]?this._color[f][d]:void 0},p}();g.ColorContrastCache=m},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.LRUMap=void 0;var m=function(){function p(f){this.capacity=f,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return p.prototype._unlinkNode=function(f){var d=f.prev,l=f.next;f===this._head&&(this._head=l),f===this._tail&&(this._tail=d),d!==null&&(d.next=l),l!==null&&(l.prev=d)},p.prototype._appendNode=function(f){var d=this._tail;d!==null&&(d.next=f),f.prev=d,f.next=null,this._tail=f,this._head===null&&(this._head=f)},p.prototype.prealloc=function(f){for(var d=this._nodePool,l=0;l<f;l++)d.push({prev:null,next:null,key:null,value:null})},p.prototype.get=function(f){var d=this._map[f];return d!==void 0?(this._unlinkNode(d),this._appendNode(d),d.value):null},p.prototype.peekValue=function(f){var d=this._map[f];return d!==void 0?d.value:null},p.prototype.peek=function(){var f=this._head;return f===null?null:f.value},p.prototype.set=function(f,d){var l=this._map[f];if(l!==void 0)l=this._map[f],this._unlinkNode(l),l.value=d;else if(this.size>=this.capacity)l=this._head,this._unlinkNode(l),delete this._map[l.key],l.key=f,l.value=d,this._map[f]=l;else{var a=this._nodePool;a.length>0?((l=a.pop()).key=f,l.value=d):l={prev:null,next:null,key:f,value:d},this._map[f]=l,this.size++}this._appendNode(l)},p}();g.LRUMap=m},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(l,a){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o])})(l,a)},function(d,l){function a(){this.constructor=d}m(d,l),d.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)});Object.defineProperty(g,"__esModule",{value:!0}),g.SelectionRenderLayer=void 0;var f=function(d){function l(a,i,t,o,e,u){var r=d.call(this,a,"selection",i,!0,t,o,e,u)||this;return r._clearState(),r}return p(l,d),l.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},l.prototype.resize=function(a){d.prototype.resize.call(this,a),this._clearState()},l.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},l.prototype.onSelectionChanged=function(a,i,t){if(this._didStateChange(a,i,t,this._bufferService.buffer.ydisp))if(this._clearAll(),a&&i){var o=a[1]-this._bufferService.buffer.ydisp,e=i[1]-this._bufferService.buffer.ydisp,u=Math.max(o,0),r=Math.min(e,this._bufferService.rows-1);if(!(u>=this._bufferService.rows||r<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,t){var s=a[0],c=i[0]-s,h=r-u+1;this._fillCells(s,u,c,h)}else{s=o===u?a[0]:0;var v=u===r?i[0]:this._bufferService.cols;this._fillCells(s,u,v-s,1);var A=Math.max(r-u-1,0);if(this._fillCells(0,u+1,this._bufferService.cols,A),u!==r){var b=e===r?i[0]:this._bufferService.cols;this._fillCells(0,r,b,1)}}this._state.start=[a[0],a[1]],this._state.end=[i[0],i[1]],this._state.columnSelectMode=t,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},l.prototype._didStateChange=function(a,i,t,o){return!this._areCoordinatesEqual(a,this._state.start)||!this._areCoordinatesEqual(i,this._state.end)||t!==this._state.columnSelectMode||o!==this._state.ydisp},l.prototype._areCoordinatesEqual=function(a,i){return!(!a||!i)&&a[0]===i[0]&&a[1]===i[1]},l}(S(13).BaseRenderLayer);g.SelectionRenderLayer=f},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(t,o){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,u){e.__proto__=u}||function(e,u){for(var r in u)u.hasOwnProperty(r)&&(e[r]=u[r])})(t,o)},function(i,t){function o(){this.constructor=i}m(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(g,"__esModule",{value:!0}),g.CursorRenderLayer=void 0;var f=S(13),d=S(4),l=function(i){function t(o,e,u,r,s,c,h,v,A){var b=i.call(this,o,"cursor",e,!0,u,r,c,h)||this;return b._onRequestRedraw=s,b._coreService=v,b._coreBrowserService=A,b._cell=new d.CellData,b._state={x:0,y:0,isFocused:!1,style:"",width:0},b._cursorRenderers={bar:b._renderBarCursor.bind(b),block:b._renderBlockCursor.bind(b),underline:b._renderUnderlineCursor.bind(b)},b}return p(t,i),t.prototype.resize=function(o){i.prototype.resize.call(this,o),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},t.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var o,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new a(this._coreBrowserService.isFocused,function(){e._render(!0)})):((o=this._cursorBlinkStateManager)===null||o===void 0||o.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype.onGridChanged=function(o,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(o){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var e=this._bufferService.buffer.ybase+this._bufferService.buffer.y,u=e-this._bufferService.buffer.ydisp;if(u<0||u>=this._bufferService.rows)this._clearCursor();else{var r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(e).loadCell(r,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var s=this._optionsService.options.cursorStyle;return s&&s!=="block"?this._cursorRenderers[s](r,u,this._cell):this._renderBlurCursor(r,u,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=u,this._state.isFocused=!1,this._state.style=s,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===r&&this._state.y===u&&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"](r,u,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=u,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.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})},t.prototype._renderBarCursor=function(o,e,u){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(o,e,this._optionsService.options.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(o,e,u){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(o,e,u.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(u,o,e),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(o,e,u){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(o,e),this._ctx.restore()},t.prototype._renderBlurCursor=function(o,e,u){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(o,e,u.getWidth(),1),this._ctx.restore()},t}(f.BaseRenderLayer);g.CursorRenderLayer=l;var a=function(){function i(t,o){this._renderCallback=o,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(i.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),i.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)},i.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},i.prototype._restartInterval=function(t){var o=this;t===void 0&&(t=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(o._animationTimeRestarted){var e=600-(Date.now()-o._animationTimeRestarted);if(o._animationTimeRestarted=void 0,e>0)return void o._restartInterval(e)}o.isCursorVisible=!1,o._animationFrame=window.requestAnimationFrame(function(){o._renderCallback(),o._animationFrame=void 0}),o._blinkInterval=window.setInterval(function(){if(o._animationTimeRestarted){var u=600-(Date.now()-o._animationTimeRestarted);return o._animationTimeRestarted=void 0,void o._restartInterval(u)}o.isCursorVisible=!o.isCursorVisible,o._animationFrame=window.requestAnimationFrame(function(){o._renderCallback(),o._animationFrame=void 0})},600)},t)},i.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)},i.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},i}()},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(t,o){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,u){e.__proto__=u}||function(e,u){for(var r in u)u.hasOwnProperty(r)&&(e[r]=u[r])})(t,o)},function(i,t){function o(){this.constructor=i}m(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(g,"__esModule",{value:!0}),g.LinkRenderLayer=void 0;var f=S(13),d=S(9),l=S(26),a=function(i){function t(o,e,u,r,s,c,h,v){var A=i.call(this,o,"link",e,!0,u,r,h,v)||this;return s.onShowLinkUnderline(function(b){return A._onShowLinkUnderline(b)}),s.onHideLinkUnderline(function(b){return A._onHideLinkUnderline(b)}),c.onShowLinkUnderline(function(b){return A._onShowLinkUnderline(b)}),c.onHideLinkUnderline(function(b){return A._onHideLinkUnderline(b)}),A}return p(t,i),t.prototype.resize=function(o){i.prototype.resize.call(this,o),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var o=this._state.y2-this._state.y1-1;o>0&&this._clearCells(0,this._state.y1+1,this._state.cols,o),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(o){if(o.fg===d.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:o.fg&&l.is256Color(o.fg)?this._ctx.fillStyle=this._colors.ansi[o.fg].css:this._ctx.fillStyle=this._colors.foreground.css,o.y1===o.y2)this._fillBottomLineAtCells(o.x1,o.y1,o.x2-o.x1);else{this._fillBottomLineAtCells(o.x1,o.y1,o.cols-o.x1);for(var e=o.y1+1;e<o.y2;e++)this._fillBottomLineAtCells(0,e,o.cols);this._fillBottomLineAtCells(0,o.y2,o.x2)}this._state=o},t.prototype._onHideLinkUnderline=function(o){this._clearCurrentLink()},t}(f.BaseRenderLayer);g.LinkRenderLayer=a},function(y,g,S){"use strict";var m=this&&this.__decorate||function(i,t,o,e){var u,r=arguments.length,s=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,t,o,e);else for(var c=i.length-1;c>=0;c--)(u=i[c])&&(s=(r<3?u(s):r>3?u(t,o,s):u(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},p=this&&this.__param||function(i,t){return function(o,e){t(o,e,i)}};Object.defineProperty(g,"__esModule",{value:!0}),g.MouseZone=g.Linkifier=void 0;var f=S(0),d=S(1),l=function(){function i(t,o,e){this._bufferService=t,this._logService=o,this._unicodeService=e,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new f.EventEmitter,this._onHideLinkUnderline=new f.EventEmitter,this._onLinkTooltip=new f.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(i.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),i.prototype.attachToDom=function(t,o){this._element=t,this._mouseZoneManager=o},i.prototype.linkifyRows=function(t,o){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=o):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,o)),this._mouseZoneManager.clearAll(t,o),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},i._timeBeforeLatency))},i.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var t=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var o=t.ydisp+this._rowsToLinkify.start;if(!(o>=t.lines.length)){for(var e=t.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,u=Math.ceil(2e3/this._bufferService.cols),r=this._bufferService.buffer.iterator(!1,o,e,u,u);r.hasNext();)for(var s=r.next(),c=0;c<this._linkMatchers.length;c++)this._doLinkifyRow(s.range.first,s.content,this._linkMatchers[c]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},i.prototype.registerLinkMatcher=function(t,o,e){if(e===void 0&&(e={}),!o)throw new Error("handler must be defined");var u={id:this._nextLinkMatcherId++,regex:t,handler:o,matchIndex:e.matchIndex,validationCallback:e.validationCallback,hoverTooltipCallback:e.tooltipCallback,hoverLeaveCallback:e.leaveCallback,willLinkActivate:e.willLinkActivate,priority:e.priority||0};return this._addLinkMatcherToList(u),u.id},i.prototype._addLinkMatcherToList=function(t){if(this._linkMatchers.length!==0){for(var o=this._linkMatchers.length-1;o>=0;o--)if(t.priority<=this._linkMatchers[o].priority)return void this._linkMatchers.splice(o+1,0,t);this._linkMatchers.splice(0,0,t)}else this._linkMatchers.push(t)},i.prototype.deregisterLinkMatcher=function(t){for(var o=0;o<this._linkMatchers.length;o++)if(this._linkMatchers[o].id===t)return this._linkMatchers.splice(o,1),!0;return!1},i.prototype._doLinkifyRow=function(t,o,e){for(var u,r=this,s=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),c=-1,h=function(){var b=u[typeof e.matchIndex!="number"?0:e.matchIndex];if(!b)return v._logService.debug("match found without corresponding matchIndex",u,e),"break";if(c=o.indexOf(b,c+1),s.lastIndex=c+b.length,c<0)return"break";var x=v._bufferService.buffer.stringIndexToBufferIndex(t,c);if(x[0]<0)return"break";var E=v._bufferService.buffer.lines.get(x[0]);if(!E)return"break";var T=E.getFg(x[1]),_=T?T>>9&511:void 0;e.validationCallback?e.validationCallback(b,function(C){r._rowsTimeoutId||C&&r._addLink(x[1],x[0]-r._bufferService.buffer.ydisp,b,e,_)}):v._addLink(x[1],x[0]-v._bufferService.buffer.ydisp,b,e,_)},v=this;(u=s.exec(o))!==null&&!(h()==="break"););},i.prototype._addLink=function(t,o,e,u,r){var s=this;if(this._mouseZoneManager&&this._element){var c=this._unicodeService.getStringCellWidth(e),h=t%this._bufferService.cols,v=o+Math.floor(t/this._bufferService.cols),A=(h+c)%this._bufferService.cols,b=v+Math.floor((h+c)/this._bufferService.cols);A===0&&(A=this._bufferService.cols,b--),this._mouseZoneManager.add(new a(h+1,v+1,A+1,b+1,function(x){if(u.handler)return u.handler(x,e);var E=window.open();E?(E.opener=null,E.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){s._onShowLinkUnderline.fire(s._createLinkHoverEvent(h,v,A,b,r)),s._element.classList.add("xterm-cursor-pointer")},function(x){s._onLinkTooltip.fire(s._createLinkHoverEvent(h,v,A,b,r)),u.hoverTooltipCallback&&u.hoverTooltipCallback(x,e,{start:{x:h,y:v},end:{x:A,y:b}})},function(){s._onHideLinkUnderline.fire(s._createLinkHoverEvent(h,v,A,b,r)),s._element.classList.remove("xterm-cursor-pointer"),u.hoverLeaveCallback&&u.hoverLeaveCallback()},function(x){return!u.willLinkActivate||u.willLinkActivate(x,e)}))}},i.prototype._createLinkHoverEvent=function(t,o,e,u,r){return{x1:t,y1:o,x2:e,y2:u,cols:this._bufferService.cols,fg:r}},i._timeBeforeLatency=200,i=m([p(0,d.IBufferService),p(1,d.ILogService),p(2,d.IUnicodeService)],i)}();g.Linkifier=l;var a=function(t,o,e,u,r,s,c,h,v){this.x1=t,this.y1=o,this.x2=e,this.y2=u,this.clickCallback=r,this.hoverCallback=s,this.tooltipCallback=c,this.leaveCallback=h,this.willLinkActivate=v};g.MouseZone=a},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(b,x){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,T){E.__proto__=T}||function(E,T){for(var _ in T)T.hasOwnProperty(_)&&(E[_]=T[_])})(b,x)},function(A,b){function x(){this.constructor=A}m(A,b),A.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}),f=this&&this.__decorate||function(A,b,x,E){var T,_=arguments.length,C=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,x):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(A,b,x,E);else for(var w=A.length-1;w>=0;w--)(T=A[w])&&(C=(_<3?T(C):_>3?T(b,x,C):T(b,x))||C);return _>3&&C&&Object.defineProperty(b,x,C),C},d=this&&this.__param||function(A,b){return function(x,E){b(x,E,A)}};Object.defineProperty(g,"__esModule",{value:!0}),g.SelectionService=void 0;var l=S(11),a=S(52),i=S(4),t=S(0),o=S(5),e=S(1),u=S(30),r=S(53),s=S(2),c=String.fromCharCode(160),h=new RegExp(c,"g"),v=function(A){function b(x,E,T,_,C,w,O){var I=A.call(this)||this;return I._element=x,I._screenElement=E,I._bufferService=T,I._coreService=_,I._mouseService=C,I._optionsService=w,I._renderService=O,I._dragScrollAmount=0,I._enabled=!0,I._workCell=new i.CellData,I._mouseDownTimeStamp=0,I._onLinuxMouseSelection=I.register(new t.EventEmitter),I._onRedrawRequest=I.register(new t.EventEmitter),I._onSelectionChange=I.register(new t.EventEmitter),I._onRequestScrollLines=I.register(new t.EventEmitter),I._mouseMoveListener=function(k){return I._onMouseMove(k)},I._mouseUpListener=function(k){return I._onMouseUp(k)},I._coreService.onUserInput(function(){I.hasSelection&&I.clearSelection()}),I._trimListener=I._bufferService.buffer.lines.onTrim(function(k){return I._onTrim(k)}),I.register(I._bufferService.buffers.onBufferActivate(function(k){return I._onBufferActivate(k)})),I.enable(),I._model=new a.SelectionModel(I._bufferService),I._activeSelectionMode=0,I}return p(b,A),Object.defineProperty(b.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._removeMouseDownListeners()},b.prototype.reset=function(){this.clearSelection()},b.prototype.disable=function(){this.clearSelection(),this._enabled=!1},b.prototype.enable=function(){this._enabled=!0},Object.defineProperty(b.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasSelection",{get:function(){var E=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!(!E||!T)&&(E[0]!==T[0]||E[1]!==T[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var E=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;if(!E||!T)return"";var _=this._bufferService.buffer,C=[];if(this._activeSelectionMode===3){if(E[0]===T[0])return"";for(var w=E[1];w<=T[1];w++){var O=_.translateBufferLineToString(w,!0,E[0],T[0]);C.push(O)}}else{var I=E[1]===T[1]?T[0]:void 0;for(C.push(_.translateBufferLineToString(E[1],!0,E[0],I)),w=E[1]+1;w<=T[1]-1;w++){var k=_.lines.get(w);O=_.translateBufferLineToString(w,!0),k&&k.isWrapped?C[C.length-1]+=O:C.push(O)}E[1]!==T[1]&&(k=_.lines.get(T[1]),O=_.translateBufferLineToString(T[1],!0,0,T[0]),k&&k.isWrapped?C[C.length-1]+=O:C.push(O))}return C.map(function(M){return M.replace(h," ")}).join(l.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),b.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},b.prototype.refresh=function(x){var E=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return E._refresh()})),l.isLinux&&x)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},b.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},b.prototype.isClickInSelection=function(x){var E=this._getMouseBufferCoords(x),T=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;return!!(T&&_&&E)&&this._areCoordsInSelection(E,T,_)},b.prototype._areCoordsInSelection=function(x,E,T){return x[1]>E[1]&&x[1]<T[1]||E[1]===T[1]&&x[1]===E[1]&&x[0]>=E[0]&&x[0]<T[0]||E[1]<T[1]&&x[1]===T[1]&&x[0]<T[0]||E[1]<T[1]&&x[1]===E[1]&&x[0]>=E[0]},b.prototype.selectWordAtCursor=function(x){var E=this._getMouseBufferCoords(x);E&&(this._selectWordAt(E,!1),this._model.selectionEnd=void 0,this.refresh(!0))},b.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},b.prototype.selectLines=function(x,E){this._model.clearSelection(),x=Math.max(x,0),E=Math.min(E,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,x],this._model.selectionEnd=[this._bufferService.cols,E],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(x){this._model.onTrim(x)&&this.refresh()},b.prototype._getMouseBufferCoords=function(x){var E=this._mouseService.getCoords(x,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(E)return E[0]--,E[1]--,E[1]+=this._bufferService.buffer.ydisp,E},b.prototype._getMouseEventScrollAmount=function(x){var E=u.getCoordsRelativeToElement(x,this._screenElement)[1],T=this._renderService.dimensions.canvasHeight;return E>=0&&E<=T?0:(E>T&&(E-=T),E=Math.min(Math.max(E,-50),50),(E/=50)/Math.abs(E)+Math.round(14*E))},b.prototype.shouldForceSelection=function(x){return l.isMac?x.altKey&&this._optionsService.options.macOptionClickForcesSelection:x.shiftKey},b.prototype.onMouseDown=function(x){if(this._mouseDownTimeStamp=x.timeStamp,(x.button!==2||!this.hasSelection)&&x.button===0){if(!this._enabled){if(!this.shouldForceSelection(x))return;x.stopPropagation()}x.preventDefault(),this._dragScrollAmount=0,this._enabled&&x.shiftKey?this._onIncrementalClick(x):x.detail===1?this._onSingleClick(x):x.detail===2?this._onDoubleClick(x):x.detail===3&&this._onTripleClick(x),this._addMouseDownListeners(),this.refresh(!0)}},b.prototype._addMouseDownListeners=function(){var x=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return x._dragScroll()},50)},b.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},b.prototype._onIncrementalClick=function(x){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(x))},b.prototype._onSingleClick=function(x){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(x)?3:0,this._model.selectionStart=this._getMouseBufferCoords(x),this._model.selectionStart){this._model.selectionEnd=void 0;var E=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);E&&E.length!==this._model.selectionStart[0]&&E.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(x){var E=this._getMouseBufferCoords(x);E&&(this._activeSelectionMode=1,this._selectWordAt(E,!0))},b.prototype._onTripleClick=function(x){var E=this._getMouseBufferCoords(x);E&&(this._activeSelectionMode=2,this._selectLineAt(E[1]))},b.prototype.shouldColumnSelect=function(x){return x.altKey&&!(l.isMac&&this._optionsService.options.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(x){if(x.stopImmediatePropagation(),this._model.selectionStart){var E=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(x),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(x),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var T=this._bufferService.buffer;if(this._model.selectionEnd[1]<T.lines.length){var _=T.lines.get(this._model.selectionEnd[1]);_&&_.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}E&&E[0]===this._model.selectionEnd[0]&&E[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},b.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var x=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(x.ydisp+this._bufferService.rows,x.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=x.ydisp),this.refresh()}},b.prototype._onMouseUp=function(x){var E=x.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&E<500&&x.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var T=this._mouseService.getCoords(x,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(T&&T[0]!==void 0&&T[1]!==void 0){var _=r.moveToCellSequence(T[0]-1,T[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(_,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(x){var E=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=x.activeBuffer.lines.onTrim(function(T){return E._onTrim(T)})},b.prototype._convertViewportColToCharacterIndex=function(x,E){for(var T=E[0],_=0;E[0]>=_;_++){var C=x.loadCell(_,this._workCell).getChars().length;this._workCell.getWidth()===0?T--:C>1&&E[0]!==_&&(T+=C-1)}return T},b.prototype.setSelection=function(x,E,T){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[x,E],this._model.selectionStartLength=T,this.refresh()},b.prototype._getWordAt=function(x,E,T,_){if(T===void 0&&(T=!0),_===void 0&&(_=!0),!(x[0]>=this._bufferService.cols)){var C=this._bufferService.buffer,w=C.lines.get(x[1]);if(w){var O=C.translateBufferLineToString(x[1],!1),I=this._convertViewportColToCharacterIndex(w,x),k=I,M=x[0]-I,U=0,P=0,X=0,F=0;if(O.charAt(I)===" "){for(;I>0&&O.charAt(I-1)===" ";)I--;for(;k<O.length&&O.charAt(k+1)===" ";)k++}else{var j=x[0],K=x[0];w.getWidth(j)===0&&(U++,j--),w.getWidth(K)===2&&(P++,K++);var z=w.getString(K).length;for(z>1&&(F+=z-1,k+=z-1);j>0&&I>0&&!this._isCharWordSeparator(w.loadCell(j-1,this._workCell));){w.loadCell(j-1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===0?(U++,j--):V>1&&(X+=V-1,I-=V-1),I--,j--}for(;K<w.length&&k+1<O.length&&!this._isCharWordSeparator(w.loadCell(K+1,this._workCell));){w.loadCell(K+1,this._workCell);var Q=this._workCell.getChars().length;this._workCell.getWidth()===2?(P++,K++):Q>1&&(F+=Q-1,k+=Q-1),k++,K++}}k++;var G=I+M-U+X,te=Math.min(this._bufferService.cols,k-I+U+P-X-F);if(E||O.slice(I,k).trim()!==""){if(T&&G===0&&w.getCodePoint(0)!==32){var q=C.lines.get(x[1]-1);if(q&&w.isWrapped&&q.getCodePoint(this._bufferService.cols-1)!==32){var se=this._getWordAt([this._bufferService.cols-1,x[1]-1],!1,!0,!1);if(se){var re=this._bufferService.cols-se.start;G-=re,te+=re}}}if(_&&G+te===this._bufferService.cols&&w.getCodePoint(this._bufferService.cols-1)!==32){var we=C.lines.get(x[1]+1);if(we&&we.isWrapped&&we.getCodePoint(0)!==32){var Oe=this._getWordAt([0,x[1]+1],!1,!1,!0);Oe&&(te+=Oe.length)}}return{start:G,length:te}}}}},b.prototype._selectWordAt=function(x,E){var T=this._getWordAt(x,E);if(T){for(;T.start<0;)T.start+=this._bufferService.cols,x[1]--;this._model.selectionStart=[T.start,x[1]],this._model.selectionStartLength=T.length}},b.prototype._selectToWordAt=function(x){var E=this._getWordAt(x,!0);if(E){for(var T=x[1];E.start<0;)E.start+=this._bufferService.cols,T--;if(!this._model.areSelectionValuesReversed())for(;E.start+E.length>this._bufferService.cols;)E.length-=this._bufferService.cols,T++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?E.start:E.start+E.length,T]}},b.prototype._isCharWordSeparator=function(x){return x.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(x.getChars())>=0},b.prototype._selectLineAt=function(x){var E=this._bufferService.buffer.getWrappedRangeForLine(x);this._model.selectionStart=[0,E.first],this._model.selectionEnd=[this._bufferService.cols,E.last],this._model.selectionStartLength=0},b=f([d(2,e.IBufferService),d(3,e.ICoreService),d(4,o.IMouseService),d(5,e.IOptionsService),d(6,o.IRenderService)],b)}(s.Disposable);g.SelectionService=v},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.SelectionModel=void 0;var m=function(){function p(f){this._bufferService=f,this.isSelectAllActive=!1,this.selectionStartLength=0}return p.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(p.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(p.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 d=this.selectionStart[0]+this.selectionStartLength;return d>this._bufferService.cols?[d%this._bufferService.cols,this.selectionStart[1]+Math.floor(d/this._bufferService.cols)]:[d,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}),p.prototype.areSelectionValuesReversed=function(){var f=this.selectionStart,d=this.selectionEnd;return!(!f||!d)&&(f[1]>d[1]||f[1]===d[1]&&f[0]>d[0])},p.prototype.onTrim=function(f){return this.selectionStart&&(this.selectionStart[1]-=f),this.selectionEnd&&(this.selectionEnd[1]-=f),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},p}();g.SelectionModel=m},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.moveToCellSequence=void 0;var m=S(12);function p(t,o,e,u){var r=t-f(e,t),s=o-f(e,o);return i(Math.abs(r-s)-function(c,h,v){for(var A=0,b=c-f(v,c),x=h-f(v,h),E=0;E<Math.abs(b-x);E++){var T=d(c,h)==="A"?-1:1,_=v.buffer.lines.get(b+T*E);_&&_.isWrapped&&A++}return A}(t,o,e),a(d(t,o),u))}function f(t,o){for(var e=0,u=t.buffer.lines.get(o),r=u&&u.isWrapped;r&&o>=0&&o<t.rows;)e++,r=(u=t.buffer.lines.get(--o))&&u.isWrapped;return e}function d(t,o){return t>o?"A":"B"}function l(t,o,e,u,r,s){for(var c=t,h=o,v="";c!==e||h!==u;)c+=r?1:-1,r&&c>s.cols-1?(v+=s.buffer.translateBufferLineToString(h,!1,t,c),c=0,t=0,h++):!r&&c<0&&(v+=s.buffer.translateBufferLineToString(h,!1,0,t+1),t=c=s.cols-1,h--);return v+s.buffer.translateBufferLineToString(h,!1,t,c)}function a(t,o){var e=o?"O":"[";return m.C0.ESC+e+t}function i(t,o){t=Math.floor(t);for(var e="",u=0;u<t;u++)e+=o;return e}g.moveToCellSequence=function(t,o,e,u){var r,s=e.buffer.x,c=e.buffer.y;if(!e.buffer.hasScrollback)return function(v,A,b,x,E,T){return p(A,x,E,T).length===0?"":i(l(v,A,v,A-f(E,A),!1,E).length,a("D",T))}(s,c,0,o,e,u)+p(c,o,e,u)+function(v,A,b,x,E,T){var _;_=p(A,x,E,T).length>0?x-f(E,x):A;var C=x,w=function(O,I,k,M,U,P){var X;return X=p(k,M,U,P).length>0?M-f(U,M):I,O<k&&X<=M||O>=k&&X<M?"C":"D"}(v,A,b,x,E,T);return i(l(v,_,b,C,w==="C",E).length,a(w,T))}(s,c,t,o,e,u);if(c===o)return r=s>t?"D":"C",i(Math.abs(s-t),a(r,u));r=c>o?"D":"C";var h=Math.abs(c-o);return i(function(v,A){return A.cols-v}(c>o?t:s,e)+(h-1)*e.cols+1+((c>o?s:t)-1),a(r,u))}},function(y,g,S){"use strict";var m=this&&this.__decorate||function(l,a,i,t){var o,e=arguments.length,u=e<3?a:t===null?t=Object.getOwnPropertyDescriptor(a,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(l,a,i,t);else for(var r=l.length-1;r>=0;r--)(o=l[r])&&(u=(e<3?o(u):e>3?o(a,i,u):o(a,i))||u);return e>3&&u&&Object.defineProperty(a,i,u),u},p=this&&this.__param||function(l,a){return function(i,t){a(i,t,l)}};Object.defineProperty(g,"__esModule",{value:!0}),g.SoundService=void 0;var f=S(1),d=function(){function l(a){this._optionsService=a}return Object.defineProperty(l,"audioContext",{get:function(){if(!l._audioContext){var i=window.AudioContext||window.webkitAudioContext;if(!i)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;l._audioContext=new i}return l._audioContext},enumerable:!1,configurable:!0}),l.prototype.playBellSound=function(){var a=l.audioContext;if(a){var i=a.createBufferSource();a.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(t){i.buffer=t,i.connect(a.destination),i.start(0)})}},l.prototype._base64ToArrayBuffer=function(a){for(var i=window.atob(a),t=i.length,o=new Uint8Array(t),e=0;e<t;e++)o[e]=i.charCodeAt(e);return o.buffer},l.prototype._removeMimeType=function(a){return a.split(",")[1]},l=m([p(0,f.IOptionsService)],l)}();g.SoundService=d},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(u,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(u,r)},function(e,u){function r(){this.constructor=e}m(e,u),e.prototype=u===null?Object.create(u):(r.prototype=u.prototype,new r)}),f=this&&this.__decorate||function(e,u,r,s){var c,h=arguments.length,v=h<3?u:s===null?s=Object.getOwnPropertyDescriptor(u,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,u,r,s);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(v=(h<3?c(v):h>3?c(u,r,v):c(u,r))||v);return h>3&&v&&Object.defineProperty(u,r,v),v},d=this&&this.__param||function(e,u){return function(r,s){u(r,s,e)}};Object.defineProperty(g,"__esModule",{value:!0}),g.MouseZoneManager=void 0;var l=S(2),a=S(7),i=S(5),t=S(1),o=function(e){function u(r,s,c,h,v,A){var b=e.call(this)||this;return b._element=r,b._screenElement=s,b._bufferService=c,b._mouseService=h,b._selectionService=v,b._optionsService=A,b._zones=[],b._areZonesActive=!1,b._lastHoverCoords=[void 0,void 0],b._initialSelectionLength=0,b.register(a.addDisposableDomListener(b._element,"mousedown",function(x){return b._onMouseDown(x)})),b._mouseMoveListener=function(x){return b._onMouseMove(x)},b._mouseLeaveListener=function(x){return b._onMouseLeave(x)},b._clickListener=function(x){return b._onClick(x)},b}return p(u,e),u.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},u.prototype.add=function(r){this._zones.push(r),this._zones.length===1&&this._activate()},u.prototype.clearAll=function(r,s){if(this._zones.length!==0){r&&s||(r=0,s=this._bufferService.rows-1);for(var c=0;c<this._zones.length;c++){var h=this._zones[c];(h.y1>r&&h.y1<=s+1||h.y2>r&&h.y2<=s+1||h.y1<r&&h.y2>s+1)&&(this._currentZone&&this._currentZone===h&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(c--,1))}this._zones.length===0&&this._deactivate()}},u.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))},u.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))},u.prototype._onMouseMove=function(r){this._lastHoverCoords[0]===r.pageX&&this._lastHoverCoords[1]===r.pageY||(this._onHover(r),this._lastHoverCoords=[r.pageX,r.pageY])},u.prototype._onHover=function(r){var s=this,c=this._findZoneEventAt(r);c!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),c&&(this._currentZone=c,c.hoverCallback&&c.hoverCallback(r),this._tooltipTimeout=window.setTimeout(function(){return s._onTooltip(r)},this._optionsService.options.linkTooltipHoverDuration)))},u.prototype._onTooltip=function(r){this._tooltipTimeout=void 0;var s=this._findZoneEventAt(r);s&&s.tooltipCallback&&s.tooltipCallback(r)},u.prototype._onMouseDown=function(r){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var s=this._findZoneEventAt(r);(s==null?void 0:s.willLinkActivate(r))&&(r.preventDefault(),r.stopImmediatePropagation())}},u.prototype._onMouseLeave=function(r){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},u.prototype._onClick=function(r){var s=this._findZoneEventAt(r),c=this._getSelectionLength();s&&c===this._initialSelectionLength&&(s.clickCallback(r),r.preventDefault(),r.stopImmediatePropagation())},u.prototype._getSelectionLength=function(){var r=this._selectionService.selectionText;return r?r.length:0},u.prototype._findZoneEventAt=function(r){var s=this._mouseService.getCoords(r,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(s)for(var c=s[0],h=s[1],v=0;v<this._zones.length;v++){var A=this._zones[v];if(A.y1===A.y2){if(h===A.y1&&c>=A.x1&&c<A.x2)return A}else if(h===A.y1&&c>=A.x1||h===A.y2&&c<A.x2||h>A.y1&&h<A.y2)return A}},u=f([d(2,t.IBufferService),d(3,i.IMouseService),d(4,i.ISelectionService),d(5,t.IOptionsService)],u)}(l.Disposable);g.MouseZoneManager=o},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(r,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var v in h)h.hasOwnProperty(v)&&(c[v]=h[v])})(r,s)},function(u,r){function s(){this.constructor=u}m(u,r),u.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)});Object.defineProperty(g,"__esModule",{value:!0}),g.AccessibilityManager=void 0;var f=S(18),d=S(11),l=S(31),a=S(7),i=S(2),t=S(32),o=S(17),e=function(u){function r(s,c){var h=u.call(this)||this;h._terminal=s,h._renderService=c,h._liveRegionLineCount=0,h._charsToConsume=[],h._charsToAnnounce="",h._accessibilityTreeRoot=document.createElement("div"),h._accessibilityTreeRoot.classList.add("xterm-accessibility"),h._rowContainer=document.createElement("div"),h._rowContainer.classList.add("xterm-accessibility-tree"),h._rowContainer.setAttribute("role","list"),h._rowElements=[];for(var v=0;v<h._terminal.rows;v++)h._rowElements[v]=h._createAccessibilityTreeNode(),h._rowContainer.appendChild(h._rowElements[v]);if(h._topBoundaryFocusListener=function(A){return h._onBoundaryFocus(A,0)},h._bottomBoundaryFocusListener=function(A){return h._onBoundaryFocus(A,1)},h._rowElements[0].addEventListener("focus",h._topBoundaryFocusListener),h._rowElements[h._rowElements.length-1].addEventListener("focus",h._bottomBoundaryFocusListener),h._refreshRowsDimensions(),h._accessibilityTreeRoot.appendChild(h._rowContainer),h._renderRowsDebouncer=new l.RenderDebouncer(h._renderRows.bind(h)),h._refreshRows(),h._liveRegion=document.createElement("div"),h._liveRegion.classList.add("live-region"),h._liveRegion.setAttribute("aria-live","assertive"),h._accessibilityTreeRoot.appendChild(h._liveRegion),!h._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return h._terminal.element.insertAdjacentElement("afterbegin",h._accessibilityTreeRoot),h.register(h._renderRowsDebouncer),h.register(h._terminal.onResize(function(A){return h._onResize(A.rows)})),h.register(h._terminal.onRender(function(A){return h._refreshRows(A.start,A.end)})),h.register(h._terminal.onScroll(function(){return h._refreshRows()})),h.register(h._terminal.onA11yChar(function(A){return h._onChar(A)})),h.register(h._terminal.onLineFeed(function(){return h._onChar(`
`)})),h.register(h._terminal.onA11yTab(function(A){return h._onTab(A)})),h.register(h._terminal.onKey(function(A){return h._onKey(A.key)})),h.register(h._terminal.onBlur(function(){return h._clearLiveRegion()})),h.register(h._renderService.onDimensionsChange(function(){return h._refreshRowsDimensions()})),h._screenDprMonitor=new t.ScreenDprMonitor,h.register(h._screenDprMonitor),h._screenDprMonitor.setListener(function(){return h._refreshRowsDimensions()}),h.register(a.addDisposableDomListener(window,"resize",function(){return h._refreshRowsDimensions()})),h}return p(r,u),r.prototype.dispose=function(){u.prototype.dispose.call(this),o.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},r.prototype._onBoundaryFocus=function(s,c){var h=s.target,v=this._rowElements[c===0?1:this._rowElements.length-2];if(h.getAttribute("aria-posinset")!==(c===0?"1":""+this._terminal.buffer.lines.length)&&s.relatedTarget===v){var A,b;if(c===0?(A=h,b=this._rowElements.pop(),this._rowContainer.removeChild(b)):(A=this._rowElements.shift(),b=h,this._rowContainer.removeChild(A)),A.removeEventListener("focus",this._topBoundaryFocusListener),b.removeEventListener("focus",this._bottomBoundaryFocusListener),c===0){var x=this._createAccessibilityTreeNode();this._rowElements.unshift(x),this._rowContainer.insertAdjacentElement("afterbegin",x)}else x=this._createAccessibilityTreeNode(),this._rowElements.push(x),this._rowContainer.appendChild(x);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(c===0?-1:1),this._rowElements[c===0?1:this._rowElements.length-2].focus(),s.preventDefault(),s.stopImmediatePropagation()}},r.prototype._onResize=function(s){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var c=this._rowContainer.children.length;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);for(;this._rowElements.length>s;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},r.prototype._createAccessibilityTreeNode=function(){var s=document.createElement("div");return s.setAttribute("role","listitem"),s.tabIndex=-1,this._refreshRowDimensions(s),s},r.prototype._onTab=function(s){for(var c=0;c<s;c++)this._onChar(" ")},r.prototype._onChar=function(s){var c=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==s&&(this._charsToAnnounce+=s):this._charsToAnnounce+=s,s===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=f.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){c._accessibilityTreeRoot.appendChild(c._liveRegion)},0))},r.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&o.removeElementFromParent(this._liveRegion)},r.prototype._onKey=function(s){this._clearLiveRegion(),this._charsToConsume.push(s)},r.prototype._refreshRows=function(s,c){this._renderRowsDebouncer.refresh(s,c,this._terminal.rows)},r.prototype._renderRows=function(s,c){for(var h=this._terminal.buffer,v=h.lines.length.toString(),A=s;A<=c;A++){var b=h.translateBufferLineToString(h.ydisp+A,!0),x=(h.ydisp+A+1).toString(),E=this._rowElements[A];E&&(b.length===0?E.innerHTML="&nbsp;":E.textContent=b,E.setAttribute("aria-posinset",x),E.setAttribute("aria-setsize",v))}this._announceCharacters()},r.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var s=0;s<this._terminal.rows;s++)this._refreshRowDimensions(this._rowElements[s])}},r.prototype._refreshRowDimensions=function(s){s.style.height=this._renderService.dimensions.actualCellHeight+"px"},r.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},r}(i.Disposable);g.AccessibilityManager=e},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(v,A){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var E in x)x.hasOwnProperty(E)&&(b[E]=x[E])})(v,A)},function(h,v){function A(){this.constructor=h}m(h,v),h.prototype=v===null?Object.create(v):(A.prototype=v.prototype,new A)}),f=this&&this.__decorate||function(h,v,A,b){var x,E=arguments.length,T=E<3?v:b===null?b=Object.getOwnPropertyDescriptor(v,A):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(h,v,A,b);else for(var _=h.length-1;_>=0;_--)(x=h[_])&&(T=(E<3?x(T):E>3?x(v,A,T):x(v,A))||T);return E>3&&T&&Object.defineProperty(v,A,T),T},d=this&&this.__param||function(h,v){return function(A,b){v(A,b,h)}};Object.defineProperty(g,"__esModule",{value:!0}),g.DomRenderer=void 0;var l=S(58),a=S(9),i=S(2),t=S(5),o=S(1),e=S(0),u=S(10),r=S(17),s=1,c=function(h){function v(A,b,x,E,T,_,C,w,O){var I=h.call(this)||this;return I._colors=A,I._element=b,I._screenElement=x,I._viewportElement=E,I._linkifier=T,I._linkifier2=_,I._charSizeService=C,I._optionsService=w,I._bufferService=O,I._terminalClass=s++,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 l.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(k){return I._onLinkHover(k)}),I._linkifier.onHideLinkUnderline(function(k){return I._onLinkLeave(k)}),I._linkifier2.onShowLinkUnderline(function(k){return I._onLinkHover(k)}),I._linkifier2.onHideLinkUnderline(function(k){return I._onLinkLeave(k)}),I}return p(v,h),Object.defineProperty(v.prototype,"onRequestRedraw",{get:function(){return new e.EventEmitter().event},enumerable:!1,configurable:!0}),v.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),r.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),h.prototype.dispose.call(this)},v.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 A=0,b=this._rowElements;A<b.length;A++){var x=b[A];x.style.width=this.dimensions.canvasWidth+"px",x.style.height=this.dimensions.actualCellHeight+"px",x.style.lineHeight=this.dimensions.actualCellHeight+"px",x.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var E=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},v.prototype.setColors=function(A){this._colors=A,this._injectCss()},v.prototype._injectCss=function(){var A=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var b=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";b+=this._terminalSelector+" span:not(."+l.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+l.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+l.ITALIC_CLASS+" { font-style: italic;}",b+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",b+="@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+"; }}",b+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+l.CURSOR_CLASS+"."+l.CURSOR_BLINK_CLASS+":not(."+l.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+l.CURSOR_CLASS+"."+l.CURSOR_BLINK_CLASS+"."+l.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",b+=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(x,E){b+=A._terminalSelector+" .xterm-fg-"+E+" { color: "+x.css+"; }"+A._terminalSelector+" .xterm-bg-"+E+" { background-color: "+x.css+"; }"}),b+=this._terminalSelector+" .xterm-fg-"+a.INVERTED_DEFAULT_COLOR+" { color: "+u.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+a.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=b},v.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},v.prototype._refreshRowElements=function(A,b){for(var x=this._rowElements.length;x<=b;x++){var E=document.createElement("div");this._rowContainer.appendChild(E),this._rowElements.push(E)}for(;this._rowElements.length>b;)this._rowContainer.removeChild(this._rowElements.pop())},v.prototype.onResize=function(A,b){this._refreshRowElements(A,b),this._updateDimensions()},v.prototype.onCharSizeChanged=function(){this._updateDimensions()},v.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},v.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},v.prototype.onSelectionChanged=function(A,b,x){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(A&&b){var E=A[1]-this._bufferService.buffer.ydisp,T=b[1]-this._bufferService.buffer.ydisp,_=Math.max(E,0),C=Math.min(T,this._bufferService.rows-1);if(!(_>=this._bufferService.rows||C<0)){var w=document.createDocumentFragment();if(x)w.appendChild(this._createSelectionElement(_,A[0],b[0],C-_+1));else{var O=E===_?A[0]:0,I=_===C?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(_,O,I));var k=C-_-1;if(w.appendChild(this._createSelectionElement(_+1,0,this._bufferService.cols,k)),_!==C){var M=T===C?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(C,0,M))}}this._selectionContainer.appendChild(w)}}},v.prototype._createSelectionElement=function(A,b,x,E){E===void 0&&(E=1);var T=document.createElement("div");return T.style.height=E*this.dimensions.actualCellHeight+"px",T.style.top=A*this.dimensions.actualCellHeight+"px",T.style.left=b*this.dimensions.actualCellWidth+"px",T.style.width=this.dimensions.actualCellWidth*(x-b)+"px",T},v.prototype.onCursorMove=function(){},v.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},v.prototype.clear=function(){for(var A=0,b=this._rowElements;A<b.length;A++)b[A].innerHTML=""},v.prototype.renderRows=function(A,b){for(var x=this._bufferService.buffer.ybase+this._bufferService.buffer.y,E=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),T=this._optionsService.options.cursorBlink,_=A;_<=b;_++){var C=this._rowElements[_];C.innerHTML="";var w=_+this._bufferService.buffer.ydisp,O=this._bufferService.buffer.lines.get(w),I=this._optionsService.options.cursorStyle;C.appendChild(this._rowFactory.createRow(O,w===x,I,E,T,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(v.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),v.prototype.registerCharacterJoiner=function(A){return-1},v.prototype.deregisterCharacterJoiner=function(A){return!1},v.prototype._onLinkHover=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!0)},v.prototype._onLinkLeave=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!1)},v.prototype._setCellUnderline=function(A,b,x,E,T,_){for(;A!==b||x!==E;){var C=this._rowElements[x];if(!C)return;var w=C.children[A];w&&(w.style.textDecoration=_?"underline":"none"),++A>=T&&(A=0,x++)}},v=f([d(6,t.ICharSizeService),d(7,o.IOptionsService),d(8,o.IBufferService)],v)}(i.Disposable);g.DomRenderer=c},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.DomRendererRowFactory=g.CURSOR_STYLE_UNDERLINE_CLASS=g.CURSOR_STYLE_BAR_CLASS=g.CURSOR_STYLE_BLOCK_CLASS=g.CURSOR_BLINK_CLASS=g.CURSOR_CLASS=g.UNDERLINE_CLASS=g.ITALIC_CLASS=g.DIM_CLASS=g.BOLD_CLASS=void 0;var m=S(9),p=S(3),f=S(4),d=S(10);g.BOLD_CLASS="xterm-bold",g.DIM_CLASS="xterm-dim",g.ITALIC_CLASS="xterm-italic",g.UNDERLINE_CLASS="xterm-underline",g.CURSOR_CLASS="xterm-cursor",g.CURSOR_BLINK_CLASS="xterm-cursor-blink",g.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",g.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",g.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var l=function(){function i(t,o,e){this._document=t,this._optionsService=o,this._colors=e,this._workCell=new f.CellData}return i.prototype.setColors=function(t){this._colors=t},i.prototype.createRow=function(t,o,e,u,r,s,c){for(var h=this._document.createDocumentFragment(),v=0,A=Math.min(t.length,c)-1;A>=0;A--)if(t.loadCell(A,this._workCell).getCode()!==p.NULL_CELL_CODE||o&&A===u){v=A+1;break}for(A=0;A<v;A++){t.loadCell(A,this._workCell);var b=this._workCell.getWidth();if(b!==0){var x=this._document.createElement("span");if(b>1&&(x.style.width=s*b+"px"),o&&A===u)switch(x.classList.add(g.CURSOR_CLASS),r&&x.classList.add(g.CURSOR_BLINK_CLASS),e){case"bar":x.classList.add(g.CURSOR_STYLE_BAR_CLASS);break;case"underline":x.classList.add(g.CURSOR_STYLE_UNDERLINE_CLASS);break;default:x.classList.add(g.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&x.classList.add(g.BOLD_CLASS),this._workCell.isItalic()&&x.classList.add(g.ITALIC_CLASS),this._workCell.isDim()&&x.classList.add(g.DIM_CLASS),this._workCell.isUnderline()&&x.classList.add(g.UNDERLINE_CLASS),this._workCell.isInvisible()?x.textContent=p.WHITESPACE_CELL_CHAR:x.textContent=this._workCell.getChars()||p.WHITESPACE_CELL_CHAR;var E=this._workCell.getFgColor(),T=this._workCell.getFgColorMode(),_=this._workCell.getBgColor(),C=this._workCell.getBgColorMode(),w=!!this._workCell.isInverse();if(w){var O=E;E=_,_=O;var I=T;T=C,C=I}switch(T){case 16777216:case 33554432:this._workCell.isBold()&&E<8&&this._optionsService.options.drawBoldTextInBrightColors&&(E+=8),this._applyMinimumContrast(x,this._colors.background,this._colors.ansi[E])||x.classList.add("xterm-fg-"+E);break;case 50331648:var k=d.rgba.toColor(E>>16&255,E>>8&255,255&E);this._applyMinimumContrast(x,this._colors.background,k)||this._addStyle(x,"color:#"+a(E.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(x,this._colors.background,this._colors.foreground)||w&&x.classList.add("xterm-fg-"+m.INVERTED_DEFAULT_COLOR)}switch(C){case 16777216:case 33554432:x.classList.add("xterm-bg-"+_);break;case 50331648:this._addStyle(x,"background-color:#"+a(_.toString(16),"0",6));break;case 0:default:w&&x.classList.add("xterm-bg-"+m.INVERTED_DEFAULT_COLOR)}h.appendChild(x)}}return h},i.prototype._applyMinimumContrast=function(t,o,e){if(this._optionsService.options.minimumContrastRatio===1)return!1;var u=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return u===void 0&&(u=d.color.ensureContrastRatio(o,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,u!=null?u:null)),!!u&&(this._addStyle(t,"color:"+u.css),!0)},i.prototype._addStyle=function(t,o){t.setAttribute("style",""+(t.getAttribute("style")||"")+o+";")},i}();function a(i,t,o){for(;i.length<o;)i=t+i;return i}g.DomRendererRowFactory=l},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.evaluateKeyboardEvent=void 0;var m=S(12),p={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:["'",'"']};g.evaluateKeyboardEvent=function(f,d,l,a){var i={type:0,cancel:!1,key:void 0},t=(f.shiftKey?1:0)|(f.altKey?2:0)|(f.ctrlKey?4:0)|(f.metaKey?8:0);switch(f.keyCode){case 0:f.key==="UIKeyInputUpArrow"?i.key=d?m.C0.ESC+"OA":m.C0.ESC+"[A":f.key==="UIKeyInputLeftArrow"?i.key=d?m.C0.ESC+"OD":m.C0.ESC+"[D":f.key==="UIKeyInputRightArrow"?i.key=d?m.C0.ESC+"OC":m.C0.ESC+"[C":f.key==="UIKeyInputDownArrow"&&(i.key=d?m.C0.ESC+"OB":m.C0.ESC+"[B");break;case 8:if(f.shiftKey){i.key=m.C0.BS;break}if(f.altKey){i.key=m.C0.ESC+m.C0.DEL;break}i.key=m.C0.DEL;break;case 9:if(f.shiftKey){i.key=m.C0.ESC+"[Z";break}i.key=m.C0.HT,i.cancel=!0;break;case 13:i.key=f.altKey?m.C0.ESC+m.C0.CR:m.C0.CR,i.cancel=!0;break;case 27:i.key=m.C0.ESC,f.altKey&&(i.key=m.C0.ESC+m.C0.ESC),i.cancel=!0;break;case 37:if(f.metaKey)break;t?(i.key=m.C0.ESC+"[1;"+(t+1)+"D",i.key===m.C0.ESC+"[1;3D"&&(i.key=m.C0.ESC+(l?"b":"[1;5D"))):i.key=d?m.C0.ESC+"OD":m.C0.ESC+"[D";break;case 39:if(f.metaKey)break;t?(i.key=m.C0.ESC+"[1;"+(t+1)+"C",i.key===m.C0.ESC+"[1;3C"&&(i.key=m.C0.ESC+(l?"f":"[1;5C"))):i.key=d?m.C0.ESC+"OC":m.C0.ESC+"[C";break;case 38:if(f.metaKey)break;t?(i.key=m.C0.ESC+"[1;"+(t+1)+"A",l||i.key!==m.C0.ESC+"[1;3A"||(i.key=m.C0.ESC+"[1;5A")):i.key=d?m.C0.ESC+"OA":m.C0.ESC+"[A";break;case 40:if(f.metaKey)break;t?(i.key=m.C0.ESC+"[1;"+(t+1)+"B",l||i.key!==m.C0.ESC+"[1;3B"||(i.key=m.C0.ESC+"[1;5B")):i.key=d?m.C0.ESC+"OB":m.C0.ESC+"[B";break;case 45:f.shiftKey||f.ctrlKey||(i.key=m.C0.ESC+"[2~");break;case 46:i.key=t?m.C0.ESC+"[3;"+(t+1)+"~":m.C0.ESC+"[3~";break;case 36:i.key=t?m.C0.ESC+"[1;"+(t+1)+"H":d?m.C0.ESC+"OH":m.C0.ESC+"[H";break;case 35:i.key=t?m.C0.ESC+"[1;"+(t+1)+"F":d?m.C0.ESC+"OF":m.C0.ESC+"[F";break;case 33:f.shiftKey?i.type=2:i.key=m.C0.ESC+"[5~";break;case 34:f.shiftKey?i.type=3:i.key=m.C0.ESC+"[6~";break;case 112:i.key=t?m.C0.ESC+"[1;"+(t+1)+"P":m.C0.ESC+"OP";break;case 113:i.key=t?m.C0.ESC+"[1;"+(t+1)+"Q":m.C0.ESC+"OQ";break;case 114:i.key=t?m.C0.ESC+"[1;"+(t+1)+"R":m.C0.ESC+"OR";break;case 115:i.key=t?m.C0.ESC+"[1;"+(t+1)+"S":m.C0.ESC+"OS";break;case 116:i.key=t?m.C0.ESC+"[15;"+(t+1)+"~":m.C0.ESC+"[15~";break;case 117:i.key=t?m.C0.ESC+"[17;"+(t+1)+"~":m.C0.ESC+"[17~";break;case 118:i.key=t?m.C0.ESC+"[18;"+(t+1)+"~":m.C0.ESC+"[18~";break;case 119:i.key=t?m.C0.ESC+"[19;"+(t+1)+"~":m.C0.ESC+"[19~";break;case 120:i.key=t?m.C0.ESC+"[20;"+(t+1)+"~":m.C0.ESC+"[20~";break;case 121:i.key=t?m.C0.ESC+"[21;"+(t+1)+"~":m.C0.ESC+"[21~";break;case 122:i.key=t?m.C0.ESC+"[23;"+(t+1)+"~":m.C0.ESC+"[23~";break;case 123:i.key=t?m.C0.ESC+"[24;"+(t+1)+"~":m.C0.ESC+"[24~";break;default:if(!f.ctrlKey||f.shiftKey||f.altKey||f.metaKey)if(l&&!a||!f.altKey||f.metaKey)l&&!f.altKey&&!f.ctrlKey&&f.metaKey?f.keyCode===65&&(i.type=1):f.key&&!f.ctrlKey&&!f.altKey&&!f.metaKey&&f.keyCode>=48&&f.key.length===1?i.key=f.key:f.key&&f.ctrlKey&&f.key==="_"&&(i.key=m.C0.US);else{var o=p[f.keyCode],e=o&&o[f.shiftKey?1:0];if(e)i.key=m.C0.ESC+e;else if(f.keyCode>=65&&f.keyCode<=90){var u=f.ctrlKey?f.keyCode-64:f.keyCode+32;i.key=m.C0.ESC+String.fromCharCode(u)}}else f.keyCode>=65&&f.keyCode<=90?i.key=String.fromCharCode(f.keyCode-64):f.keyCode===32?i.key=m.C0.NUL:f.keyCode>=51&&f.keyCode<=55?i.key=String.fromCharCode(f.keyCode-51+27):f.keyCode===56?i.key=m.C0.DEL:f.keyCode===219?i.key=m.C0.ESC:f.keyCode===220?i.key=m.C0.FS:f.keyCode===221&&(i.key=m.C0.GS)}return i}},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(c,h){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,A){v.__proto__=A}||function(v,A){for(var b in A)A.hasOwnProperty(b)&&(v[b]=A[b])})(c,h)},function(s,c){function h(){this.constructor=s}m(s,c),s.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),f=this&&this.__decorate||function(s,c,h,v){var A,b=arguments.length,x=b<3?c:v===null?v=Object.getOwnPropertyDescriptor(c,h):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(s,c,h,v);else for(var E=s.length-1;E>=0;E--)(A=s[E])&&(x=(b<3?A(x):b>3?A(c,h,x):A(c,h))||x);return b>3&&x&&Object.defineProperty(c,h,x),x},d=this&&this.__param||function(s,c){return function(h,v){c(h,v,s)}};Object.defineProperty(g,"__esModule",{value:!0}),g.RenderService=void 0;var l=S(31),a=S(0),i=S(2),t=S(32),o=S(7),e=S(1),u=S(5),r=function(s){function c(h,v,A,b,x,E){var T=s.call(this)||this;if(T._renderer=h,T._rowCount=v,T._isPaused=!1,T._needsFullRefresh=!1,T._isNextRenderRedrawOnly=!0,T._needsSelectionRefresh=!1,T._canvasWidth=0,T._canvasHeight=0,T._selectionState={start:void 0,end:void 0,columnSelectMode:!1},T._onDimensionsChange=new a.EventEmitter,T._onRender=new a.EventEmitter,T._onRefreshRequest=new a.EventEmitter,T.register({dispose:function(){return T._renderer.dispose()}}),T._renderDebouncer=new l.RenderDebouncer(function(C,w){return T._renderRows(C,w)}),T.register(T._renderDebouncer),T._screenDprMonitor=new t.ScreenDprMonitor,T._screenDprMonitor.setListener(function(){return T.onDevicePixelRatioChange()}),T.register(T._screenDprMonitor),T.register(E.onResize(function(C){return T._fullRefresh()})),T.register(b.onOptionChange(function(){return T._renderer.onOptionsChanged()})),T.register(x.onCharSizeChange(function(){return T.onCharSizeChanged()})),T._renderer.onRequestRedraw(function(C){return T.refreshRows(C.start,C.end,!0)}),T.register(o.addDisposableDomListener(window,"resize",function(){return T.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var _=new IntersectionObserver(function(C){return T._onIntersectionChange(C[C.length-1])},{threshold:0});_.observe(A),T.register({dispose:function(){return _.disconnect()}})}return T}return p(c,s),Object.defineProperty(c.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),c.prototype._onIntersectionChange=function(h){this._isPaused=h.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},c.prototype.refreshRows=function(h,v,A){A===void 0&&(A=!1),this._isPaused?this._needsFullRefresh=!0:(A||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(h,v,this._rowCount))},c.prototype._renderRows=function(h,v){this._renderer.renderRows(h,v),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:h,end:v}),this._isNextRenderRedrawOnly=!0},c.prototype.resize=function(h,v){this._rowCount=v,this._fireOnCanvasResize()},c.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},c.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},c.prototype.dispose=function(){s.prototype.dispose.call(this)},c.prototype.setRenderer=function(h){var v=this;this._renderer.dispose(),this._renderer=h,this._renderer.onRequestRedraw(function(A){return v.refreshRows(A.start,A.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},c.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},c.prototype.setColors=function(h){this._renderer.setColors(h),this._fullRefresh()},c.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},c.prototype.onResize=function(h,v){this._renderer.onResize(h,v),this._fullRefresh()},c.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},c.prototype.onBlur=function(){this._renderer.onBlur()},c.prototype.onFocus=function(){this._renderer.onFocus()},c.prototype.onSelectionChanged=function(h,v,A){this._selectionState.start=h,this._selectionState.end=v,this._selectionState.columnSelectMode=A,this._renderer.onSelectionChanged(h,v,A)},c.prototype.onCursorMove=function(){this._renderer.onCursorMove()},c.prototype.clear=function(){this._renderer.clear()},c.prototype.registerCharacterJoiner=function(h){return this._renderer.registerCharacterJoiner(h)},c.prototype.deregisterCharacterJoiner=function(h){return this._renderer.deregisterCharacterJoiner(h)},c=f([d(3,e.IOptionsService),d(4,u.ICharSizeService),d(5,e.IBufferService)],c)}(i.Disposable);g.RenderService=r},function(y,g,S){"use strict";var m=this&&this.__decorate||function(i,t,o,e){var u,r=arguments.length,s=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,t,o,e);else for(var c=i.length-1;c>=0;c--)(u=i[c])&&(s=(r<3?u(s):r>3?u(t,o,s):u(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},p=this&&this.__param||function(i,t){return function(o,e){t(o,e,i)}};Object.defineProperty(g,"__esModule",{value:!0}),g.CharSizeService=void 0;var f=S(1),d=S(0),l=function(){function i(t,o,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new d.EventEmitter,this._measureStrategy=new a(t,o,this._optionsService)}return Object.defineProperty(i.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),i.prototype.measure=function(){var t=this._measureStrategy.measure();t.width===this.width&&t.height===this.height||(this.width=t.width,this.height=t.height,this._onCharSizeChange.fire())},i=m([p(2,f.IOptionsService)],i)}();g.CharSizeService=l;var a=function(){function i(t,o,e){this._document=t,this._parentElement=o,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 i.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._measureElement.getBoundingClientRect();return t.width!==0&&t.height!==0&&(this._result.width=t.width,this._result.height=Math.ceil(t.height)),this._result},i}()},function(y,g,S){"use strict";var m=this&&this.__decorate||function(a,i,t,o){var e,u=arguments.length,r=u<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(a,i,t,o);else for(var s=a.length-1;s>=0;s--)(e=a[s])&&(r=(u<3?e(r):u>3?e(i,t,r):e(i,t))||r);return u>3&&r&&Object.defineProperty(i,t,r),r},p=this&&this.__param||function(a,i){return function(t,o){i(t,o,a)}};Object.defineProperty(g,"__esModule",{value:!0}),g.MouseService=void 0;var f=S(5),d=S(30),l=function(){function a(i,t){this._renderService=i,this._charSizeService=t}return a.prototype.getCoords=function(i,t,o,e,u){return d.getCoords(i,t,o,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,u)},a.prototype.getRawByteCoords=function(i,t,o,e){var u=this.getCoords(i,t,o,e);return d.getRawByteCoords(u)},a=m([p(0,f.IRenderService),p(1,f.ICharSizeService)],a)}();g.MouseService=l},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(u,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(u,r)},function(e,u){function r(){this.constructor=e}m(e,u),e.prototype=u===null?Object.create(u):(r.prototype=u.prototype,new r)}),f=this&&this.__decorate||function(e,u,r,s){var c,h=arguments.length,v=h<3?u:s===null?s=Object.getOwnPropertyDescriptor(u,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,u,r,s);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(v=(h<3?c(v):h>3?c(u,r,v):c(u,r))||v);return h>3&&v&&Object.defineProperty(u,r,v),v},d=this&&this.__param||function(e,u){return function(r,s){u(r,s,e)}};Object.defineProperty(g,"__esModule",{value:!0}),g.Linkifier2=void 0;var l=S(1),a=S(0),i=S(2),t=S(7),o=function(e){function u(r){var s=e.call(this)||this;return s._bufferService=r,s._linkProviders=[],s._linkCacheDisposables=[],s._isMouseOut=!0,s._activeLine=-1,s._onShowLinkUnderline=s.register(new a.EventEmitter),s._onHideLinkUnderline=s.register(new a.EventEmitter),s.register(i.getDisposeArrayDisposable(s._linkCacheDisposables)),s}return p(u,e),Object.defineProperty(u.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),u.prototype.registerLinkProvider=function(r){var s=this;return this._linkProviders.push(r),{dispose:function(){var h=s._linkProviders.indexOf(r);h!==-1&&s._linkProviders.splice(h,1)}}},u.prototype.attachToDom=function(r,s,c){var h=this;this._element=r,this._mouseService=s,this._renderService=c,this.register(t.addDisposableDomListener(this._element,"mouseleave",function(){h._isMouseOut=!0,h._clearCurrentLink()})),this.register(t.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(t.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},u.prototype._onMouseMove=function(r){if(this._lastMouseEvent=r,this._element&&this._mouseService){var s=this._positionFromMouseEvent(r,this._element,this._mouseService);if(s){this._isMouseOut=!1;for(var c=r.composedPath(),h=0;h<c.length;h++){var v=c[h];if(v.classList.contains("xterm"))break;if(v.classList.contains("xterm-hover"))return}this._lastBufferCell&&s.x===this._lastBufferCell.x&&s.y===this._lastBufferCell.y||(this._onHover(s),this._lastBufferCell=s)}}},u.prototype._onHover=function(r){if(this._activeLine!==r.y)return this._clearCurrentLink(),void this._askForLink(r,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,r)||(this._clearCurrentLink(),this._askForLink(r,!0))},u.prototype._askForLink=function(r,s){var c=this;this._activeProviderReplies&&s||(this._activeProviderReplies=new Map,this._activeLine=r.y);var h=!1;this._linkProviders.forEach(function(v,A){var b;s?((b=c._activeProviderReplies)===null||b===void 0?void 0:b.get(A))&&(h=c._checkLinkProviderResult(A,r,h)):v.provideLinks(r.y,function(x){var E,T;if(!c._isMouseOut){var _=x==null?void 0:x.map(function(C){return{link:C}});(E=c._activeProviderReplies)===null||E===void 0||E.set(A,_),h=c._checkLinkProviderResult(A,r,h),((T=c._activeProviderReplies)===null||T===void 0?void 0:T.size)===c._linkProviders.length&&c._removeIntersectingLinks(r.y,c._activeProviderReplies)}})})},u.prototype._removeIntersectingLinks=function(r,s){for(var c=new Set,h=0;h<s.size;h++){var v=s.get(h);if(v)for(var A=0;A<v.length;A++)for(var b=v[A],x=b.link.range.start.y<r?0:b.link.range.start.x,E=b.link.range.end.y>r?this._bufferService.cols:b.link.range.end.x,T=x;T<=E;T++){if(c.has(T)){v.splice(A--,1);break}c.add(T)}}},u.prototype._checkLinkProviderResult=function(r,s,c){var h,v=this;if(!this._activeProviderReplies)return c;for(var A=this._activeProviderReplies.get(r),b=!1,x=0;x<r;x++)this._activeProviderReplies.has(x)&&!this._activeProviderReplies.get(x)||(b=!0);if(!b&&A){var E=A.find(function(_){return v._linkAtPosition(_.link,s)});E&&(c=!0,this._handleNewLink(E))}if(this._activeProviderReplies.size===this._linkProviders.length&&!c)for(x=0;x<this._activeProviderReplies.size;x++){var T=(h=this._activeProviderReplies.get(x))===null||h===void 0?void 0:h.find(function(_){return v._linkAtPosition(_.link,s)});if(T){c=!0,this._handleNewLink(T);break}}return c},u.prototype._onClick=function(r){if(this._element&&this._mouseService&&this._currentLink){var s=this._positionFromMouseEvent(r,this._element,this._mouseService);s&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(r,this._currentLink.link.text)}},u.prototype._clearCurrentLink=function(r,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!r||!s||this._currentLink.link.range.start.y>=r&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,i.disposeArray(this._linkCacheDisposables))},u.prototype._handleNewLink=function(r){var s=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._linkAtPosition(r.link,c)&&(this._currentLink=r,this._currentLink.state={decorations:{underline:r.link.decorations===void 0||r.link.decorations.underline,pointerCursor:r.link.decorations===void 0||r.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,r.link,this._lastMouseEvent),r.link.decorations={},Object.defineProperties(r.link.decorations,{pointerCursor:{get:function(){var v,A;return(A=(v=s._currentLink)===null||v===void 0?void 0:v.state)===null||A===void 0?void 0:A.decorations.pointerCursor},set:function(v){var A,b;((A=s._currentLink)===null||A===void 0?void 0:A.state)&&s._currentLink.state.decorations.pointerCursor!==v&&(s._currentLink.state.decorations.pointerCursor=v,s._currentLink.state.isHovered&&((b=s._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",v)))}},underline:{get:function(){var v,A;return(A=(v=s._currentLink)===null||v===void 0?void 0:v.state)===null||A===void 0?void 0:A.decorations.underline},set:function(v){var A,b,x;((A=s._currentLink)===null||A===void 0?void 0:A.state)&&((x=(b=s._currentLink)===null||b===void 0?void 0:b.state)===null||x===void 0?void 0:x.decorations.underline)!==v&&(s._currentLink.state.decorations.underline=v,s._currentLink.state.isHovered&&s._fireUnderlineEvent(r.link,v))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(h){var v=h.start===0?0:h.start+1+s._bufferService.buffer.ydisp;s._clearCurrentLink(v,h.end+1+s._bufferService.buffer.ydisp)})))}},u.prototype._linkHover=function(r,s,c){var h;((h=this._currentLink)===null||h===void 0?void 0:h.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&r.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(c,s.text)},u.prototype._fireUnderlineEvent=function(r,s){var c=r.range,h=this._bufferService.buffer.ydisp,v=this._createLinkUnderlineEvent(c.start.x-1,c.start.y-h-1,c.end.x,c.end.y-h-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(v)},u.prototype._linkLeave=function(r,s,c){var h;((h=this._currentLink)===null||h===void 0?void 0:h.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&r.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(c,s.text)},u.prototype._linkAtPosition=function(r,s){var c=r.range.start.y===r.range.end.y,h=r.range.start.y<s.y,v=r.range.end.y>s.y;return(c&&r.range.start.x<=s.x&&r.range.end.x>=s.x||h&&r.range.end.x>=s.x||v&&r.range.start.x<=s.x||h&&v)&&r.range.start.y<=s.y&&r.range.end.y>=s.y},u.prototype._positionFromMouseEvent=function(r,s,c){var h=c.getCoords(r,s,this._bufferService.cols,this._bufferService.rows);if(h)return{x:h[0],y:h[1]+this._bufferService.buffer.ydisp}},u.prototype._createLinkUnderlineEvent=function(r,s,c,h,v){return{x1:r,y1:s,x2:c,y2:h,cols:this._bufferService.cols,fg:v}},u=f([d(0,l.IBufferService)],u)}(i.Disposable);g.Linkifier2=o},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CoreBrowserService=void 0;var m=function(){function p(f){this._textarea=f}return Object.defineProperty(p.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),p}();g.CoreBrowserService=m},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(E,T){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,C){_.__proto__=C}||function(_,C){for(var w in C)C.hasOwnProperty(w)&&(_[w]=C[w])})(E,T)},function(x,E){function T(){this.constructor=x}m(x,E),x.prototype=E===null?Object.create(E):(T.prototype=E.prototype,new T)});Object.defineProperty(g,"__esModule",{value:!0}),g.CoreTerminal=void 0;var f=S(2),d=S(1),l=S(66),a=S(67),i=S(68),t=S(74),o=S(75),e=S(0),u=S(76),r=S(77),s=S(78),c=S(80),h=S(81),v=S(19),A=S(82),b=function(x){function E(T){var _=x.call(this)||this;return _._onBinary=new e.EventEmitter,_._onData=new e.EventEmitter,_._onLineFeed=new e.EventEmitter,_._onResize=new e.EventEmitter,_._onScroll=new e.EventEmitter,_._instantiationService=new l.InstantiationService,_.optionsService=new t.OptionsService(T),_._instantiationService.setService(d.IOptionsService,_.optionsService),_._bufferService=_.register(_._instantiationService.createInstance(i.BufferService)),_._instantiationService.setService(d.IBufferService,_._bufferService),_._logService=_._instantiationService.createInstance(a.LogService),_._instantiationService.setService(d.ILogService,_._logService),_._coreService=_.register(_._instantiationService.createInstance(o.CoreService,function(){return _.scrollToBottom()})),_._instantiationService.setService(d.ICoreService,_._coreService),_._coreMouseService=_._instantiationService.createInstance(u.CoreMouseService),_._instantiationService.setService(d.ICoreMouseService,_._coreMouseService),_._dirtyRowService=_._instantiationService.createInstance(r.DirtyRowService),_._instantiationService.setService(d.IDirtyRowService,_._dirtyRowService),_.unicodeService=_._instantiationService.createInstance(s.UnicodeService),_._instantiationService.setService(d.IUnicodeService,_.unicodeService),_._charsetService=_._instantiationService.createInstance(c.CharsetService),_._instantiationService.setService(d.ICharsetService,_._charsetService),_._inputHandler=new v.InputHandler(_._bufferService,_._charsetService,_._coreService,_._dirtyRowService,_._logService,_.optionsService,_._coreMouseService,_.unicodeService),_.register(e.forwardEvent(_._inputHandler.onLineFeed,_._onLineFeed)),_.register(_._inputHandler),_.register(e.forwardEvent(_._bufferService.onResize,_._onResize)),_.register(e.forwardEvent(_._coreService.onData,_._onData)),_.register(e.forwardEvent(_._coreService.onBinary,_._onBinary)),_.register(_.optionsService.onOptionChange(function(C){return _._updateOptions(C)})),_._writeBuffer=new A.WriteBuffer(function(C){return _._inputHandler.parse(C)}),_}return p(E,x),Object.defineProperty(E.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){var T;this._isDisposed||(x.prototype.dispose.call(this),(T=this._windowsMode)===null||T===void 0||T.dispose(),this._windowsMode=void 0)},E.prototype.write=function(T,_){this._writeBuffer.write(T,_)},E.prototype.writeSync=function(T){this._writeBuffer.writeSync(T)},E.prototype.resize=function(T,_){isNaN(T)||isNaN(_)||(T=Math.max(T,i.MINIMUM_COLS),_=Math.max(_,i.MINIMUM_ROWS),this._bufferService.resize(T,_))},E.prototype.scroll=function(T,_){_===void 0&&(_=!1);var C,w=this._bufferService.buffer;(C=this._cachedBlankLine)&&C.length===this.cols&&C.getFg(0)===T.fg&&C.getBg(0)===T.bg||(C=w.getBlankLine(T,_),this._cachedBlankLine=C),C.isWrapped=_;var O=w.ybase+w.scrollTop,I=w.ybase+w.scrollBottom;if(w.scrollTop===0){var k=w.lines.isFull;I===w.lines.length-1?k?w.lines.recycle().copyFrom(C):w.lines.push(C.clone()):w.lines.splice(I+1,0,C.clone()),k?this._bufferService.isUserScrolling&&(w.ydisp=Math.max(w.ydisp-1,0)):(w.ybase++,this._bufferService.isUserScrolling||w.ydisp++)}else{var M=I-O+1;w.lines.shiftElements(O+1,M-1,-1),w.lines.set(I,C.clone())}this._bufferService.isUserScrolling||(w.ydisp=w.ybase),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom),this._onScroll.fire(w.ydisp)},E.prototype.scrollLines=function(T,_){var C=this._bufferService.buffer;if(T<0){if(C.ydisp===0)return;this._bufferService.isUserScrolling=!0}else T+C.ydisp>=C.ybase&&(this._bufferService.isUserScrolling=!1);var w=C.ydisp;C.ydisp=Math.max(Math.min(C.ydisp+T,C.ybase),0),w!==C.ydisp&&(_||this._onScroll.fire(C.ydisp))},E.prototype.scrollPages=function(T){this.scrollLines(T*(this.rows-1))},E.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},E.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},E.prototype.scrollToLine=function(T){var _=T-this._bufferService.buffer.ydisp;_!==0&&this.scrollLines(_)},E.prototype.addEscHandler=function(T,_){return this._inputHandler.addEscHandler(T,_)},E.prototype.addDcsHandler=function(T,_){return this._inputHandler.addDcsHandler(T,_)},E.prototype.addCsiHandler=function(T,_){return this._inputHandler.addCsiHandler(T,_)},E.prototype.addOscHandler=function(T,_){return this._inputHandler.addOscHandler(T,_)},E.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},E.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},E.prototype._updateOptions=function(T){var _;switch(T){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((_=this._windowsMode)===null||_===void 0||_.dispose(),this._windowsMode=void 0)}},E.prototype._enableWindowsMode=function(){var T=this;if(!this._windowsMode){var _=[];_.push(this.onLineFeed(h.updateWindowsModeWrappedState.bind(null,this._bufferService))),_.push(this.addCsiHandler({final:"H"},function(){return h.updateWindowsModeWrappedState(T._bufferService),!1})),this._windowsMode={dispose:function(){for(var w=0,O=_;w<O.length;w++)O[w].dispose()}}}},E}(f.Disposable);g.CoreTerminal=b},function(y,g,S){"use strict";var m=this&&this.__spreadArrays||function(){for(var a=0,i=0,t=arguments.length;i<t;i++)a+=arguments[i].length;var o=Array(a),e=0;for(i=0;i<t;i++)for(var u=arguments[i],r=0,s=u.length;r<s;r++,e++)o[e]=u[r];return o};Object.defineProperty(g,"__esModule",{value:!0}),g.InstantiationService=g.ServiceCollection=void 0;var p=S(1),f=S(14),d=function(){function a(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];this._entries=new Map;for(var o=0,e=i;o<e.length;o++){var u=e[o],r=u[0],s=u[1];this.set(r,s)}}return a.prototype.set=function(i,t){var o=this._entries.get(i);return this._entries.set(i,t),o},a.prototype.forEach=function(i){this._entries.forEach(function(t,o){return i(o,t)})},a.prototype.has=function(i){return this._entries.has(i)},a.prototype.get=function(i){return this._entries.get(i)},a}();g.ServiceCollection=d;var l=function(){function a(){this._services=new d,this._services.set(p.IInstantiationService,this)}return a.prototype.setService=function(i,t){this._services.set(i,t)},a.prototype.getService=function(i){return this._services.get(i)},a.prototype.createInstance=function(i){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];for(var e=f.getServiceDependencies(i).sort(function(A,b){return A.index-b.index}),u=[],r=0,s=e;r<s.length;r++){var c=s[r],h=this._services.get(c.id);if(!h)throw new Error("[createInstance] "+i.name+" depends on UNKNOWN service "+c.id+".");u.push(h)}var v=e.length>0?e[0].index:t.length;if(t.length!==v)throw new Error("[createInstance] First service dependency of "+i.name+" at position "+(v+1)+" conflicts with "+t.length+" static arguments");return new(i.bind.apply(i,m([void 0],m(t,u))))},a}();g.InstantiationService=l},function(y,g,S){"use strict";var m=this&&this.__decorate||function(t,o,e,u){var r,s=arguments.length,c=s<3?o:u===null?u=Object.getOwnPropertyDescriptor(o,e):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(t,o,e,u);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(c=(s<3?r(c):s>3?r(o,e,c):r(o,e))||c);return s>3&&c&&Object.defineProperty(o,e,c),c},p=this&&this.__param||function(t,o){return function(e,u){o(e,u,t)}},f=this&&this.__spreadArrays||function(){for(var t=0,o=0,e=arguments.length;o<e;o++)t+=arguments[o].length;var u=Array(t),r=0;for(o=0;o<e;o++)for(var s=arguments[o],c=0,h=s.length;c<h;c++,r++)u[r]=s[c];return u};Object.defineProperty(g,"__esModule",{value:!0}),g.LogService=g.LogLevel=void 0;var d,l=S(1);!function(t){t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t[t.OFF=4]="OFF"}(d=g.LogLevel||(g.LogLevel={}));var a={debug:d.DEBUG,info:d.INFO,warn:d.WARN,error:d.ERROR,off:d.OFF},i=function(){function t(o){var e=this;this._optionsService=o,this._updateLogLevel(),this._optionsService.onOptionChange(function(u){u==="logLevel"&&e._updateLogLevel()})}return t.prototype._updateLogLevel=function(){this._logLevel=a[this._optionsService.options.logLevel]},t.prototype._evalLazyOptionalParams=function(o){for(var e=0;e<o.length;e++)typeof o[e]=="function"&&(o[e]=o[e]())},t.prototype._log=function(o,e,u){this._evalLazyOptionalParams(u),o.call.apply(o,f([console,"xterm.js: "+e],u))},t.prototype.debug=function(o){for(var e=[],u=1;u<arguments.length;u++)e[u-1]=arguments[u];this._logLevel<=d.DEBUG&&this._log(console.log,o,e)},t.prototype.info=function(o){for(var e=[],u=1;u<arguments.length;u++)e[u-1]=arguments[u];this._logLevel<=d.INFO&&this._log(console.info,o,e)},t.prototype.warn=function(o){for(var e=[],u=1;u<arguments.length;u++)e[u-1]=arguments[u];this._logLevel<=d.WARN&&this._log(console.warn,o,e)},t.prototype.error=function(o){for(var e=[],u=1;u<arguments.length;u++)e[u-1]=arguments[u];this._logLevel<=d.ERROR&&this._log(console.error,o,e)},t=m([p(0,l.IOptionsService)],t)}();g.LogService=i},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(u,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(u,r)},function(e,u){function r(){this.constructor=e}m(e,u),e.prototype=u===null?Object.create(u):(r.prototype=u.prototype,new r)}),f=this&&this.__decorate||function(e,u,r,s){var c,h=arguments.length,v=h<3?u:s===null?s=Object.getOwnPropertyDescriptor(u,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,u,r,s);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(v=(h<3?c(v):h>3?c(u,r,v):c(u,r))||v);return h>3&&v&&Object.defineProperty(u,r,v),v},d=this&&this.__param||function(e,u){return function(r,s){u(r,s,e)}};Object.defineProperty(g,"__esModule",{value:!0}),g.BufferService=g.MINIMUM_ROWS=g.MINIMUM_COLS=void 0;var l=S(1),a=S(69),i=S(0),t=S(2);g.MINIMUM_COLS=2,g.MINIMUM_ROWS=1;var o=function(e){function u(r){var s=e.call(this)||this;return s._optionsService=r,s.isUserScrolling=!1,s._onResize=new i.EventEmitter,s.cols=Math.max(r.options.cols,g.MINIMUM_COLS),s.rows=Math.max(r.options.rows,g.MINIMUM_ROWS),s.buffers=new a.BufferSet(r,s),s}return p(u,e),Object.defineProperty(u.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),u.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},u.prototype.resize=function(r,s){this.cols=r,this.rows=s,this.buffers.resize(r,s),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:r,rows:s})},u.prototype.reset=function(){this.buffers.dispose(),this.buffers=new a.BufferSet(this._optionsService,this),this.isUserScrolling=!1},u=f([d(0,l.IOptionsService)],u)}(t.Disposable);g.BufferService=o},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(i,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var u in e)e.hasOwnProperty(u)&&(o[u]=e[u])})(i,t)},function(a,i){function t(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)});Object.defineProperty(g,"__esModule",{value:!0}),g.BufferSet=void 0;var f=S(70),d=S(0),l=function(a){function i(t,o){var e=a.call(this)||this;return e._onBufferActivate=e.register(new d.EventEmitter),e._normal=new f.Buffer(!0,t,o),e._normal.fillViewportRows(),e._alt=new f.Buffer(!1,t,o),e._activeBuffer=e._normal,e.setupTabStops(),e}return p(i,a),Object.defineProperty(i.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),i.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}))},i.prototype.activateAltBuffer=function(t){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(t),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}))},i.prototype.resize=function(t,o){this._normal.resize(t,o),this._alt.resize(t,o)},i.prototype.setupTabStops=function(t){this._normal.setupTabStops(t),this._alt.setupTabStops(t)},i}(S(2).Disposable);g.BufferSet=l},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.BufferStringIterator=g.Buffer=g.MAX_BUFFER_SIZE=void 0;var m=S(71),p=S(16),f=S(4),d=S(3),l=S(72),a=S(73),i=S(20),t=S(6);g.MAX_BUFFER_SIZE=4294967295;var o=function(){function u(r,s,c){this._hasScrollback=r,this._optionsService=s,this._bufferService=c,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=p.DEFAULT_ATTR_DATA.clone(),this.savedCharset=i.DEFAULT_CHARSET,this.markers=[],this._nullCell=f.CellData.fromCharData([0,d.NULL_CELL_CHAR,d.NULL_CELL_WIDTH,d.NULL_CELL_CODE]),this._whitespaceCell=f.CellData.fromCharData([0,d.WHITESPACE_CELL_CHAR,d.WHITESPACE_CELL_WIDTH,d.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new m.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return u.prototype.getNullCell=function(r){return r?(this._nullCell.fg=r.fg,this._nullCell.bg=r.bg,this._nullCell.extended=r.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new t.ExtendedAttrs),this._nullCell},u.prototype.getWhitespaceCell=function(r){return r?(this._whitespaceCell.fg=r.fg,this._whitespaceCell.bg=r.bg,this._whitespaceCell.extended=r.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new t.ExtendedAttrs),this._whitespaceCell},u.prototype.getBlankLine=function(r,s){return new p.BufferLine(this._bufferService.cols,this.getNullCell(r),s)},Object.defineProperty(u.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isCursorInViewport",{get:function(){var s=this.ybase+this.y-this.ydisp;return s>=0&&s<this._rows},enumerable:!1,configurable:!0}),u.prototype._getCorrectBufferLength=function(r){if(!this._hasScrollback)return r;var s=r+this._optionsService.options.scrollback;return s>g.MAX_BUFFER_SIZE?g.MAX_BUFFER_SIZE:s},u.prototype.fillViewportRows=function(r){if(this.lines.length===0){r===void 0&&(r=p.DEFAULT_ATTR_DATA);for(var s=this._rows;s--;)this.lines.push(this.getBlankLine(r))}},u.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new m.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},u.prototype.resize=function(r,s){var c=this.getNullCell(p.DEFAULT_ATTR_DATA),h=this._getCorrectBufferLength(s);if(h>this.lines.maxLength&&(this.lines.maxLength=h),this.lines.length>0){if(this._cols<r)for(var v=0;v<this.lines.length;v++)this.lines.get(v).resize(r,c);var A=0;if(this._rows<s)for(var b=this._rows;b<s;b++)this.lines.length<s+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new p.BufferLine(r,c)):this.ybase>0&&this.lines.length<=this.ybase+this.y+A+1?(this.ybase--,A++,this.ydisp>0&&this.ydisp--):this.lines.push(new p.BufferLine(r,c)));else for(b=this._rows;b>s;b--)this.lines.length>s+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(h<this.lines.maxLength){var x=this.lines.length-h;x>0&&(this.lines.trimStart(x),this.ybase=Math.max(this.ybase-x,0),this.ydisp=Math.max(this.ydisp-x,0),this.savedY=Math.max(this.savedY-x,0)),this.lines.maxLength=h}this.x=Math.min(this.x,r-1),this.y=Math.min(this.y,s-1),A&&(this.y+=A),this.savedX=Math.min(this.savedX,r-1),this.scrollTop=0}if(this.scrollBottom=s-1,this._isReflowEnabled&&(this._reflow(r,s),this._cols>r))for(v=0;v<this.lines.length;v++)this.lines.get(v).resize(r,c);this._cols=r,this._rows=s},Object.defineProperty(u.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),u.prototype._reflow=function(r,s){this._cols!==r&&(r>this._cols?this._reflowLarger(r,s):this._reflowSmaller(r,s))},u.prototype._reflowLarger=function(r,s){var c=l.reflowLargerGetLinesToRemove(this.lines,this._cols,r,this.ybase+this.y,this.getNullCell(p.DEFAULT_ATTR_DATA));if(c.length>0){var h=l.reflowLargerCreateNewLayout(this.lines,c);l.reflowLargerApplyNewLayout(this.lines,h.layout),this._reflowLargerAdjustViewport(r,s,h.countRemoved)}},u.prototype._reflowLargerAdjustViewport=function(r,s,c){for(var h=this.getNullCell(p.DEFAULT_ATTR_DATA),v=c;v-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<s&&this.lines.push(new p.BufferLine(r,h))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-c,0)},u.prototype._reflowSmaller=function(r,s){for(var c=this.getNullCell(p.DEFAULT_ATTR_DATA),h=[],v=0,A=this.lines.length-1;A>=0;A--){var b=this.lines.get(A);if(!(!b||!b.isWrapped&&b.getTrimmedLength()<=r)){for(var x=[b];b.isWrapped&&A>0;)b=this.lines.get(--A),x.unshift(b);var E=this.ybase+this.y;if(!(E>=A&&E<A+x.length)){var T=x[x.length-1].getTrimmedLength(),_=l.reflowSmallerGetNewLineLengths(x,this._cols,r),C=_.length-x.length,w=void 0;w=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+C):Math.max(0,this.lines.length-this.lines.maxLength+C);for(var O=[],I=0;I<C;I++){var k=this.getBlankLine(p.DEFAULT_ATTR_DATA,!0);O.push(k)}O.length>0&&(h.push({start:A+x.length+v,newLines:O}),v+=O.length),x.push.apply(x,O);var M=_.length-1,U=_[M];U===0&&(U=_[--M]);for(var P=x.length-C-1,X=T;P>=0;){var F=Math.min(X,U);if(x[M].copyCellsFrom(x[P],X-F,U-F,F,!0),(U-=F)===0&&(U=_[--M]),(X-=F)===0){P--;var j=Math.max(P,0);X=l.getWrappedLineTrimmedLength(x,j,this._cols)}}for(I=0;I<x.length;I++)_[I]<r&&x[I].setCell(_[I],c);for(var K=C-w;K-- >0;)this.ybase===0?this.y<s-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+v)-s&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+C,this.ybase+s-1)}}}if(h.length>0){var z=[],V=[];for(I=0;I<this.lines.length;I++)V.push(this.lines.get(I));var Q=this.lines.length,G=Q-1,te=0,q=h[te];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+v);var se=0;for(I=Math.min(this.lines.maxLength-1,Q+v-1);I>=0;I--)if(q&&q.start>G+se){for(var re=q.newLines.length-1;re>=0;re--)this.lines.set(I--,q.newLines[re]);I++,z.push({index:G+1,amount:q.newLines.length}),se+=q.newLines.length,q=h[++te]}else this.lines.set(I,V[G--]);var we=0;for(I=z.length-1;I>=0;I--)z[I].index+=we,this.lines.onInsertEmitter.fire(z[I]),we+=z[I].amount;var Oe=Math.max(0,Q+v-this.lines.maxLength);Oe>0&&this.lines.onTrimEmitter.fire(Oe)}},u.prototype.stringIndexToBufferIndex=function(r,s,c){for(c===void 0&&(c=!1);s;){var h=this.lines.get(r);if(!h)return[-1,-1];for(var v=c?h.getTrimmedLength():h.length,A=0;A<v;++A)if(h.get(A)[d.CHAR_DATA_WIDTH_INDEX]&&(s-=h.get(A)[d.CHAR_DATA_CHAR_INDEX].length||1),s<0)return[r,A];r++}return[r,0]},u.prototype.translateBufferLineToString=function(r,s,c,h){c===void 0&&(c=0);var v=this.lines.get(r);return v?v.translateToString(s,c,h):""},u.prototype.getWrappedRangeForLine=function(r){for(var s=r,c=r;s>0&&this.lines.get(s).isWrapped;)s--;for(;c+1<this.lines.length&&this.lines.get(c+1).isWrapped;)c++;return{first:s,last:c}},u.prototype.setupTabStops=function(r){for(r!=null?this.tabs[r]||(r=this.prevStop(r)):(this.tabs={},r=0);r<this._cols;r+=this._optionsService.options.tabStopWidth)this.tabs[r]=!0},u.prototype.prevStop=function(r){for(r==null&&(r=this.x);!this.tabs[--r]&&r>0;);return r>=this._cols?this._cols-1:r<0?0:r},u.prototype.nextStop=function(r){for(r==null&&(r=this.x);!this.tabs[++r]&&r<this._cols;);return r>=this._cols?this._cols-1:r<0?0:r},u.prototype.addMarker=function(r){var s=this,c=new a.Marker(r);return this.markers.push(c),c.register(this.lines.onTrim(function(h){c.line-=h,c.line<0&&c.dispose()})),c.register(this.lines.onInsert(function(h){c.line>=h.index&&(c.line+=h.amount)})),c.register(this.lines.onDelete(function(h){c.line>=h.index&&c.line<h.index+h.amount&&c.dispose(),c.line>h.index&&(c.line-=h.amount)})),c.register(c.onDispose(function(){return s._removeMarker(c)})),c},u.prototype._removeMarker=function(r){this.markers.splice(this.markers.indexOf(r),1)},u.prototype.iterator=function(r,s,c,h,v){return new e(this,r,s,c,h,v)},u}();g.Buffer=o;var e=function(){function u(r,s,c,h,v,A){c===void 0&&(c=0),h===void 0&&(h=r.lines.length),v===void 0&&(v=0),A===void 0&&(A=0),this._buffer=r,this._trimRight=s,this._startIndex=c,this._endIndex=h,this._startOverscan=v,this._endOverscan=A,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return u.prototype.hasNext=function(){return this._current<this._endIndex},u.prototype.next=function(){var r=this._buffer.getWrappedRangeForLine(this._current);r.first<this._startIndex-this._startOverscan&&(r.first=this._startIndex-this._startOverscan),r.last>this._endIndex+this._endOverscan&&(r.last=this._endIndex+this._endOverscan),r.first=Math.max(r.first,0),r.last=Math.min(r.last,this._buffer.lines.length);for(var s="",c=r.first;c<=r.last;++c)s+=this._buffer.translateBufferLineToString(c,this._trimRight);return this._current=r.last+1,{range:r,content:s}},u}();g.BufferStringIterator=e},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CircularList=void 0;var m=S(0),p=function(){function f(d){this._maxLength=d,this.onDeleteEmitter=new m.EventEmitter,this.onInsertEmitter=new m.EventEmitter,this.onTrimEmitter=new m.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(f.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"maxLength",{get:function(){return this._maxLength},set:function(l){if(this._maxLength!==l){for(var a=new Array(l),i=0;i<Math.min(l,this.length);i++)a[i]=this._array[this._getCyclicIndex(i)];this._array=a,this._maxLength=l,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"length",{get:function(){return this._length},set:function(l){if(l>this._length)for(var a=this._length;a<l;a++)this._array[a]=void 0;this._length=l},enumerable:!1,configurable:!0}),f.prototype.get=function(d){return this._array[this._getCyclicIndex(d)]},f.prototype.set=function(d,l){this._array[this._getCyclicIndex(d)]=l},f.prototype.push=function(d){this._array[this._getCyclicIndex(this._length)]=d,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},f.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(f.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),f.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},f.prototype.splice=function(d,l){for(var a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];if(l){for(var t=d;t<this._length-l;t++)this._array[this._getCyclicIndex(t)]=this._array[this._getCyclicIndex(t+l)];this._length-=l}for(t=this._length-1;t>=d;t--)this._array[this._getCyclicIndex(t+a.length)]=this._array[this._getCyclicIndex(t)];for(t=0;t<a.length;t++)this._array[this._getCyclicIndex(d+t)]=a[t];if(this._length+a.length>this._maxLength){var o=this._length+a.length-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=a.length},f.prototype.trimStart=function(d){d>this._length&&(d=this._length),this._startIndex+=d,this._length-=d,this.onTrimEmitter.fire(d)},f.prototype.shiftElements=function(d,l,a){if(!(l<=0)){if(d<0||d>=this._length)throw new Error("start argument out of range");if(d+a<0)throw new Error("Cannot shift elements in list beyond index 0");if(a>0){for(var i=l-1;i>=0;i--)this.set(d+i+a,this.get(d+i));var t=d+l+a-this._length;if(t>0)for(this._length+=t;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(i=0;i<l;i++)this.set(d+i+a,this.get(d+i))}},f.prototype._getCyclicIndex=function(d){return(this._startIndex+d)%this._maxLength},f}();g.CircularList=p},function(y,g,S){"use strict";function m(p,f,d){if(f===p.length-1)return p[f].getTrimmedLength();var l=!p[f].hasContent(d-1)&&p[f].getWidth(d-1)===1,a=p[f+1].getWidth(0)===2;return l&&a?d-1:d}Object.defineProperty(g,"__esModule",{value:!0}),g.getWrappedLineTrimmedLength=g.reflowSmallerGetNewLineLengths=g.reflowLargerApplyNewLayout=g.reflowLargerCreateNewLayout=g.reflowLargerGetLinesToRemove=void 0,g.reflowLargerGetLinesToRemove=function(p,f,d,l,a){for(var i=[],t=0;t<p.length-1;t++){var o=t,e=p.get(++o);if(e.isWrapped){for(var u=[p.get(t)];o<p.length&&e.isWrapped;)u.push(e),e=p.get(++o);if(l>=t&&l<o)t+=u.length-1;else{for(var r=0,s=m(u,r,f),c=1,h=0;c<u.length;){var v=m(u,c,f),A=v-h,b=d-s,x=Math.min(A,b);u[r].copyCellsFrom(u[c],h,s,x,!1),(s+=x)===d&&(r++,s=0),(h+=x)===v&&(c++,h=0),s===0&&r!==0&&u[r-1].getWidth(d-1)===2&&(u[r].copyCellsFrom(u[r-1],d-1,s++,1,!1),u[r-1].setCell(d-1,a))}u[r].replaceCells(s,d,a);for(var E=0,T=u.length-1;T>0&&(T>r||u[T].getTrimmedLength()===0);T--)E++;E>0&&(i.push(t+u.length-E),i.push(E)),t+=u.length-1}}}return i},g.reflowLargerCreateNewLayout=function(p,f){for(var d=[],l=0,a=f[l],i=0,t=0;t<p.length;t++)if(a===t){var o=f[++l];p.onDeleteEmitter.fire({index:t-i,amount:o}),t+=o-1,i+=o,a=f[++l]}else d.push(t);return{layout:d,countRemoved:i}},g.reflowLargerApplyNewLayout=function(p,f){for(var d=[],l=0;l<f.length;l++)d.push(p.get(f[l]));for(l=0;l<d.length;l++)p.set(l,d[l]);p.length=f.length},g.reflowSmallerGetNewLineLengths=function(p,f,d){for(var l=[],a=p.map(function(s,c){return m(p,c,f)}).reduce(function(s,c){return s+c}),i=0,t=0,o=0;o<a;){if(a-o<d){l.push(a-o);break}i+=d;var e=m(p,t,f);i>e&&(i-=e,t++);var u=p[t].getWidth(i-1)===2;u&&i--;var r=u?d-1:d;l.push(r),o+=r}return l},g.getWrappedLineTrimmedLength=m},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(a,i){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e])})(a,i)},function(l,a){function i(){this.constructor=l}m(l,a),l.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(g,"__esModule",{value:!0}),g.Marker=void 0;var f=S(0),d=function(l){function a(i){var t=l.call(this)||this;return t.line=i,t._id=a._nextId++,t.isDisposed=!1,t._onDispose=new f.EventEmitter,t}return p(a,l),Object.defineProperty(a.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),a.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},a._nextId=1,a}(S(2).Disposable);g.Marker=d},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.OptionsService=g.DEFAULT_OPTIONS=g.DEFAULT_BELL_SOUND=void 0;var m=S(0),p=S(11),f=S(33);g.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",g.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:g.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:p.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var d=["cols","rows"],l=function(){function a(i){this._onOptionChange=new m.EventEmitter,this.options=f.clone(g.DEFAULT_OPTIONS);for(var t=0,o=Object.keys(i);t<o.length;t++){var e=o[t];if(e in this.options){var u=i[e];this.options[e]=u}}}return Object.defineProperty(a.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),a.prototype.setOption=function(i,t){if(!(i in g.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');if(d.indexOf(i)!==-1)throw new Error('Option "'+i+'" can only be set in the constructor');this.options[i]!==t&&(t=this._sanitizeAndValidateOption(i,t),this.options[i]!==t&&(this.options[i]=t,this._onOptionChange.fire(i)))},a.prototype._sanitizeAndValidateOption=function(i,t){switch(i){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":t||(t=g.DEFAULT_OPTIONS[i]);break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(i+" cannot be less than 1, value: "+t);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));break;case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(i+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(i+" cannot be less than or equal to 0, value: "+t)}return t},a.prototype.getOption=function(i){if(!(i in g.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');return this.options[i]},a}();g.OptionsService=l},function(y,g,S){"use strict";var m,p=this&&this.__extends||(m=function(s,c){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var A in v)v.hasOwnProperty(A)&&(h[A]=v[A])})(s,c)},function(r,s){function c(){this.constructor=r}m(r,s),r.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}),f=this&&this.__decorate||function(r,s,c,h){var v,A=arguments.length,b=A<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,c):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(r,s,c,h);else for(var x=r.length-1;x>=0;x--)(v=r[x])&&(b=(A<3?v(b):A>3?v(s,c,b):v(s,c))||b);return A>3&&b&&Object.defineProperty(s,c,b),b},d=this&&this.__param||function(r,s){return function(c,h){s(c,h,r)}};Object.defineProperty(g,"__esModule",{value:!0}),g.CoreService=void 0;var l=S(1),a=S(0),i=S(33),t=S(2),o=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),u=function(r){function s(c,h,v,A){var b=r.call(this)||this;return b._bufferService=h,b._logService=v,b._optionsService=A,b.isCursorInitialized=!1,b.isCursorHidden=!1,b._onData=b.register(new a.EventEmitter),b._onUserInput=b.register(new a.EventEmitter),b._onBinary=b.register(new a.EventEmitter),b._scrollToBottom=c,b.register({dispose:function(){return b._scrollToBottom=void 0}}),b.modes=i.clone(o),b.decPrivateModes=i.clone(e),b}return p(s,r),Object.defineProperty(s.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),s.prototype.reset=function(){this.modes=i.clone(o),this.decPrivateModes=i.clone(e)},s.prototype.triggerDataEvent=function(c,h){if(h===void 0&&(h=!1),!this._optionsService.options.disableStdin){var v=this._bufferService.buffer;v.ybase!==v.ydisp&&this._scrollToBottom(),h&&this._onUserInput.fire(),this._logService.debug('sending data "'+c+'"',function(){return c.split("").map(function(A){return A.charCodeAt(0)})}),this._onData.fire(c)}},s.prototype.triggerBinaryEvent=function(c){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+c+'"',function(){return c.split("").map(function(h){return h.charCodeAt(0)})}),this._onBinary.fire(c))},s=f([d(1,l.IBufferService),d(2,l.ILogService),d(3,l.IOptionsService)],s)}(t.Disposable);g.CoreService=u},function(y,g,S){"use strict";var m=this&&this.__decorate||function(e,u,r,s){var c,h=arguments.length,v=h<3?u:s===null?s=Object.getOwnPropertyDescriptor(u,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,u,r,s);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(v=(h<3?c(v):h>3?c(u,r,v):c(u,r))||v);return h>3&&v&&Object.defineProperty(u,r,v),v},p=this&&this.__param||function(e,u){return function(r,s){u(r,s,e)}};Object.defineProperty(g,"__esModule",{value:!0}),g.CoreMouseService=void 0;var f=S(1),d=S(0),l={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(u){return u.button!==4&&u.action===1&&(u.ctrl=!1,u.alt=!1,u.shift=!1,!0)}},VT200:{events:19,restrict:function(u){return u.action!==32}},DRAG:{events:23,restrict:function(u){return u.action!==32||u.button!==3}},ANY:{events:31,restrict:function(u){return!0}}};function a(e,u){var r=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(r|=64,r|=e.action):(r|=3&e.button,4&e.button&&(r|=64),8&e.button&&(r|=128),e.action===32?r|=32:e.action!==0||u||(r|=3)),r}var i=String.fromCharCode,t={DEFAULT:function(u){var r=[a(u,!1)+32,u.col+32,u.row+32];return r[0]>255||r[1]>255||r[2]>255?"":""+i(r[0])+i(r[1])+i(r[2])},SGR:function(u){var r=u.action===0&&u.button!==4?"m":"M";return"[<"+a(u,!0)+";"+u.col+";"+u.row+r}},o=function(){function e(u,r){this._bufferService=u,this._coreService=r,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new d.EventEmitter,this._lastEvent=null;for(var s=0,c=Object.keys(l);s<c.length;s++){var h=c[s];this.addProtocol(h,l[h])}for(var v=0,A=Object.keys(t);v<A.length;v++){var b=A[v];this.addEncoding(b,t[b])}this.reset()}return e.prototype.addProtocol=function(u,r){this._protocols[u]=r},e.prototype.addEncoding=function(u,r){this._encodings[u]=r},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(r){if(!this._protocols[r])throw new Error('unknown protocol "'+r+'"');this._activeProtocol=r,this._onProtocolChange.fire(this._protocols[r].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(r){if(!this._encodings[r])throw new Error('unknown encoding "'+r+'"');this._activeEncoding=r},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(u){if(u.col<0||u.col>=this._bufferService.cols||u.row<0||u.row>=this._bufferService.rows)return!1;if(u.button===4&&u.action===32)return!1;if(u.button===3&&u.action!==32)return!1;if(u.button!==4&&(u.action===2||u.action===3))return!1;if(u.col++,u.row++,u.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,u))return!1;if(!this._protocols[this._activeProtocol].restrict(u))return!1;var r=this._encodings[this._activeEncoding](u);return r&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(r):this._coreService.triggerDataEvent(r,!0)),this._lastEvent=u,!0},e.prototype.explainEvents=function(u){return{down:!!(1&u),up:!!(2&u),drag:!!(4&u),move:!!(8&u),wheel:!!(16&u)}},e.prototype._compareEvents=function(u,r){return u.col===r.col&&u.row===r.row&&u.button===r.button&&u.action===r.action&&u.ctrl===r.ctrl&&u.alt===r.alt&&u.shift===r.shift},e=m([p(0,f.IBufferService),p(1,f.ICoreService)],e)}();g.CoreMouseService=o},function(y,g,S){"use strict";var m=this&&this.__decorate||function(l,a,i,t){var o,e=arguments.length,u=e<3?a:t===null?t=Object.getOwnPropertyDescriptor(a,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(l,a,i,t);else for(var r=l.length-1;r>=0;r--)(o=l[r])&&(u=(e<3?o(u):e>3?o(a,i,u):o(a,i))||u);return e>3&&u&&Object.defineProperty(a,i,u),u},p=this&&this.__param||function(l,a){return function(i,t){a(i,t,l)}};Object.defineProperty(g,"__esModule",{value:!0}),g.DirtyRowService=void 0;var f=S(1),d=function(){function l(a){this._bufferService=a,this.clearRange()}return Object.defineProperty(l.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),l.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},l.prototype.markDirty=function(a){a<this._start?this._start=a:a>this._end&&(this._end=a)},l.prototype.markRangeDirty=function(a,i){if(a>i){var t=a;a=i,i=t}a<this._start&&(this._start=a),i>this._end&&(this._end=i)},l.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},l=m([p(0,f.IBufferService)],l)}();g.DirtyRowService=d},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.UnicodeService=void 0;var m=S(0),p=S(79),f=function(){function d(){this._providers=Object.create(null),this._active="",this._onChange=new m.EventEmitter;var l=new p.UnicodeV6;this.register(l),this._active=l.version,this._activeProvider=l}return Object.defineProperty(d.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"activeVersion",{get:function(){return this._active},set:function(a){if(!this._providers[a])throw new Error('unknown Unicode version "'+a+'"');this._active=a,this._activeProvider=this._providers[a],this._onChange.fire(a)},enumerable:!1,configurable:!0}),d.prototype.register=function(l){this._providers[l.version]=l},d.prototype.wcwidth=function(l){return this._activeProvider.wcwidth(l)},d.prototype.getStringCellWidth=function(l){for(var a=0,i=l.length,t=0;t<i;++t){var o=l.charCodeAt(t);if(55296<=o&&o<=56319){if(++t>=i)return a+this.wcwidth(o);var e=l.charCodeAt(t);56320<=e&&e<=57343?o=1024*(o-55296)+e-56320+65536:a+=this.wcwidth(e)}a+=this.wcwidth(o)}return a},d}();g.UnicodeService=f},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.UnicodeV6=void 0;var m,p=S(15),f=[[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]],d=[[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]],l=function(){function a(){if(this.version="6",!m){m=new Uint8Array(65536),p.fill(m,1),m[0]=0,p.fill(m,0,1,32),p.fill(m,0,127,160),p.fill(m,2,4352,4448),m[9001]=2,m[9002]=2,p.fill(m,2,11904,42192),m[12351]=1,p.fill(m,2,44032,55204),p.fill(m,2,63744,64256),p.fill(m,2,65040,65050),p.fill(m,2,65072,65136),p.fill(m,2,65280,65377),p.fill(m,2,65504,65511);for(var i=0;i<f.length;++i)p.fill(m,0,f[i][0],f[i][1]+1)}}return a.prototype.wcwidth=function(i){return i<32?0:i<127?1:i<65536?m[i]:function(t,o){var e,u=0,r=o.length-1;if(t<o[0][0]||t>o[r][1])return!1;for(;r>=u;)if(t>o[e=u+r>>1][1])u=e+1;else{if(!(t<o[e][0]))return!0;r=e-1}return!1}(i,d)?0:i>=131072&&i<=196605||i>=196608&&i<=262141?2:1},a}();g.UnicodeV6=l},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CharsetService=void 0;var m=function(){function p(){this.glevel=0,this._charsets=[]}return p.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},p.prototype.setgLevel=function(f){this.glevel=f,this.charset=this._charsets[f]},p.prototype.setgCharset=function(f,d){this._charsets[f]=d,this.glevel===f&&(this.charset=d)},p}();g.CharsetService=m},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.updateWindowsModeWrappedState=void 0;var m=S(3);g.updateWindowsModeWrappedState=function(p){var f=p.buffer.lines.get(p.buffer.ybase+p.buffer.y-1),d=f==null?void 0:f.get(p.cols-1),l=p.buffer.lines.get(p.buffer.ybase+p.buffer.y);l&&d&&(l.isWrapped=d[m.CHAR_DATA_CODE_INDEX]!==m.NULL_CELL_CODE&&d[m.CHAR_DATA_CODE_INDEX]!==m.WHITESPACE_CELL_CODE)}},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.WriteBuffer=void 0;var m=function(){function p(f){this._action=f,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return p.prototype.writeSync=function(f){if(this._writeBuffer.length){for(var d=this._bufferOffset;d<this._writeBuffer.length;++d){var l=this._writeBuffer[d],a=this._callbacks[d];this._action(l),a&&a()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(f)},p.prototype.write=function(f,d){var l=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 l._innerWrite()})),this._pendingData+=f.length,this._writeBuffer.push(f),this._callbacks.push(d)},p.prototype._innerWrite=function(){for(var f=this,d=Date.now();this._writeBuffer.length>this._bufferOffset;){var l=this._writeBuffer[this._bufferOffset],a=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(l),this._pendingData-=l.length,a&&a(),Date.now()-d>=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 f._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},p}();g.WriteBuffer=m},function(y,g,S){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.AddonManager=void 0;var m=function(){function p(){this._addons=[]}return p.prototype.dispose=function(){for(var f=this._addons.length-1;f>=0;f--)this._addons[f].instance.dispose()},p.prototype.loadAddon=function(f,d){var l=this,a={instance:d,dispose:d.dispose,isDisposed:!1};this._addons.push(a),d.dispose=function(){return l._wrappedAddonDispose(a)},d.activate(f)},p.prototype._wrappedAddonDispose=function(f){if(!f.isDisposed){for(var d=-1,l=0;l<this._addons.length;l++)if(this._addons[l]===f){d=l;break}if(d===-1)throw new Error("Could not dispose an addon that has not been loaded");f.isDisposed=!0,f.dispose.apply(f.instance),this._addons.splice(d,1)}},p}();g.AddonManager=m}])})},"/SeX":function(R,D,n){var y=n("knOB"),g=n("qZFw"),S=function(p){this.name=p||"",this.cx=0,this.cy=0,this._radiusAxis=new y,this._angleAxis=new g,this._radiusAxis.polar=this._angleAxis.polar=this};S.prototype={type:"polar",axisPointerEnabled:!0,constructor:S,dimensions:["radius","angle"],model:null,containPoint:function(p){var f=this.pointToCoord(p);return this._radiusAxis.contain(f[0])&&this._angleAxis.contain(f[1])},containData:function(p){return this._radiusAxis.containData(p[0])&&this._angleAxis.containData(p[1])},getAxis:function(p){return this["_"+p+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(p){var f=[],d=this._angleAxis,l=this._radiusAxis;return d.scale.type===p&&f.push(d),l.scale.type===p&&f.push(l),f},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(p){var f=this._angleAxis;return p===f?this._radiusAxis:f},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(p){var f=p!=null&&p!=="auto"?this.getAxis(p):this.getBaseAxis();return{baseAxes:[f],otherAxes:[this.getOtherAxis(f)]}},dataToPoint:function(p,f){return this.coordToPoint([this._radiusAxis.dataToRadius(p[0],f),this._angleAxis.dataToAngle(p[1],f)])},pointToData:function(p,f){var d=this.pointToCoord(p);return[this._radiusAxis.radiusToData(d[0],f),this._angleAxis.angleToData(d[1],f)]},pointToCoord:function(p){var f=p[0]-this.cx,d=p[1]-this.cy,l=this.getAngleAxis(),a=l.getExtent(),i=Math.min(a[0],a[1]),t=Math.max(a[0],a[1]);l.inverse?i=t-360:t=i+360;var o=Math.sqrt(f*f+d*d);f/=o,d/=o;for(var e=Math.atan2(-d,f)/Math.PI*180,u=e<i?1:-1;e<i||e>t;)e+=u*360;return[o,e]},coordToPoint:function(p){var f=p[0],d=p[1]/180*Math.PI,l=Math.cos(d)*f+this.cx,a=-Math.sin(d)*f+this.cy;return[l,a]},getArea:function(){var p=this.getAngleAxis(),f=this.getRadiusAxis(),d=f.getExtent().slice();d[0]>d[1]&&d.reverse();var l=p.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:d[0],r:d[1],startAngle:-l[0]*a,endAngle:-l[1]*a,clockwise:p.inverse,contain:function(i,t){var o=i-this.cx,e=t-this.cy,u=o*o+e*e,r=this.r,s=this.r0;return u<=r*r&&u>=s*s}}}};var m=S;R.exports=m},"/WM3":function(R,D,n){var y=n("QuXc"),g=n("bYtY"),S=g.isFunction,m={createOnAllSeries:!0,performRawSeries:!0,reset:function(p,f){var d=p.getData(),l=(p.visualColorAccessPath||"itemStyle.color").split("."),a=p.get(l),i=S(a)&&!(a instanceof y)?a:null;(!a||i)&&(a=p.getColorFromPalette(p.name,null,f.getSeriesCount())),d.setVisual("color",a);var t=(p.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),o=p.get(t);if(d.setVisual("borderColor",o),!f.isSeriesFiltered(p)){i&&d.each(function(u){d.setItemVisual(u,"color",i(p.getDataParams(u)))});var e=function(u,r){var s=u.getItemModel(r),c=s.get(l,!0),h=s.get(t,!0);c!=null&&u.setItemVisual(r,"color",c),h!=null&&u.setItemVisual(r,"borderColor",h)};return{dataEach:d.hasItemOption?e:null}}}};R.exports=m},"/d5a":function(R,D){var n={average:function(S){for(var m=0,p=0,f=0;f<S.length;f++)isNaN(S[f])||(m+=S[f],p++);return p===0?NaN:m/p},sum:function(S){for(var m=0,p=0;p<S.length;p++)m+=S[p]||0;return m},max:function(S){for(var m=-Infinity,p=0;p<S.length;p++)S[p]>m&&(m=S[p]);return isFinite(m)?m:NaN},min:function(S){for(var m=Infinity,p=0;p<S.length;p++)S[p]<m&&(m=S[p]);return isFinite(m)?m:NaN},nearest:function(S){return S[0]}},y=function(S,m){return Math.round(S.length/2)};function g(S){return{seriesType:S,modifyOutputEnd:!0,reset:function(m,p,f){var d=m.getData(),l=m.get("sampling"),a=m.coordinateSystem;if(a.type==="cartesian2d"&&l){var i=a.getBaseAxis(),t=a.getOtherAxis(i),o=i.getExtent(),e=o[1]-o[0],u=Math.round(d.count()/e);if(u>1){var r;typeof l=="string"?r=n[l]:typeof l=="function"&&(r=l),r&&m.setData(d.downSample(d.mapDimension(t.dim),1/u,r,y))}}}}}R.exports=g},"/ezw":function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("pVnL"),m=n.n(S),p=n("cDf5"),f=n.n(p),d=n("q1tI"),l=n("TSYQ"),a=n.n(l),i=function(K){var z=K.prefixCls,V=K.className,Q=K.width,G=K.style;return d.createElement("h3",{className:a()(z,V),style:m()({width:Q},G)})},t=i,o=n("RIqP"),e=n.n(o),u=function(K){var z=function(re){var we=K.width,Oe=K.rows,Me=Oe===void 0?2:Oe;return Array.isArray(we)?we[re]:Me-1===re?we:void 0},V=K.prefixCls,Q=K.className,G=K.style,te=K.rows,q=e()(Array(te)).map(function(se,re){return d.createElement("li",{key:re,style:{width:z(re)}})});return d.createElement("ul",{className:a()(V,Q),style:G},q)},r=u,s=n("H84U"),c=function(K){var z,V,Q=K.prefixCls,G=K.className,te=K.style,q=K.size,se=K.shape,re=a()((z={},g()(z,"".concat(Q,"-lg"),q==="large"),g()(z,"".concat(Q,"-sm"),q==="small"),z)),we=a()((V={},g()(V,"".concat(Q,"-circle"),se==="circle"),g()(V,"".concat(Q,"-square"),se==="square"),g()(V,"".concat(Q,"-round"),se==="round"),V)),Oe=typeof q=="number"?{width:q,height:q,lineHeight:"".concat(q,"px")}:{};return d.createElement("span",{className:a()(Q,G,re,we),style:m()(m()({},Oe),te)})},h=c,v=n("BGR+"),A=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,se=K.active,re=G("skeleton",te),we=Object(v.default)(K,["prefixCls"]),Oe=a()(re,q,"".concat(re,"-element"),g()({},"".concat(re,"-active"),se));return d.createElement("div",{className:Oe},d.createElement(h,m()({prefixCls:"".concat(re,"-avatar")},we)))};return d.createElement(s.a,null,z)};A.defaultProps={size:"default",shape:"circle"};var b=A,x=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,se=K.active,re=G("skeleton",te),we=Object(v.default)(K,["prefixCls"]),Oe=a()(re,q,"".concat(re,"-element"),g()({},"".concat(re,"-active"),se));return d.createElement("div",{className:Oe},d.createElement(h,m()({prefixCls:"".concat(re,"-button")},we)))};return d.createElement(s.a,null,z)};x.defaultProps={size:"default"};var E=x,T=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,se=K.active,re=G("skeleton",te),we=Object(v.default)(K,["prefixCls"]),Oe=a()(re,q,"".concat(re,"-element"),g()({},"".concat(re,"-active"),se));return d.createElement("div",{className:Oe},d.createElement(h,m()({prefixCls:"".concat(re,"-input")},we)))};return d.createElement(s.a,null,z)};T.defaultProps={size:"default"};var _=T,C="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",w=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,se=K.style,re=G("skeleton",te),we=a()(re,q,"".concat(re,"-element"));return d.createElement("div",{className:we},d.createElement("div",{className:a()("".concat(re,"-image"),q),style:se},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(re,"-image-svg")},d.createElement("path",{d:C,className:"".concat(re,"-image-path")}))))};return d.createElement(s.a,null,z)},O=w;function I(j){return j&&f()(j)==="object"?j:{}}function k(j,K){return j&&!K?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function M(j,K){return!j&&K?{width:"38%"}:j&&K?{width:"50%"}:{}}function U(j,K){var z={};return(!j||!K)&&(z.width="61%"),!j&&K?z.rows=3:z.rows=2,z}var P=function(K){var z=function(Q){var G=Q.getPrefixCls,te=Q.direction,q=K.prefixCls,se=K.loading,re=K.className,we=K.children,Oe=K.avatar,Me=K.title,Qe=K.paragraph,Ve=K.active,dt=K.round,Fe=G("skeleton",q);if(se||!("loading"in K)){var ue,et=!!Oe,he=!!Me,J=!!Qe,Y;if(et){var $=m()(m()({prefixCls:"".concat(Fe,"-avatar")},k(he,J)),I(Oe));Y=d.createElement("div",{className:"".concat(Fe,"-header")},d.createElement(h,$))}var de;if(he||J){var be;if(he){var Te=m()(m()({prefixCls:"".concat(Fe,"-title")},M(et,J)),I(Me));be=d.createElement(t,Te)}var Be;if(J){var fe=m()(m()({prefixCls:"".concat(Fe,"-paragraph")},U(et,he)),I(Qe));Be=d.createElement(r,fe)}de=d.createElement("div",{className:"".concat(Fe,"-content")},be,Be)}var xe=a()(Fe,re,(ue={},g()(ue,"".concat(Fe,"-with-avatar"),et),g()(ue,"".concat(Fe,"-active"),Ve),g()(ue,"".concat(Fe,"-rtl"),te==="rtl"),g()(ue,"".concat(Fe,"-round"),dt),ue));return d.createElement("div",{className:xe},Y,de)}return we};return d.createElement(s.a,null,z)};P.defaultProps={avatar:!1,title:!0,paragraph:!0},P.Button=E,P.Avatar=b,P.Input=_,P.Image=O;var X=P,F=D.a=X},"/iHx":function(R,D,n){var y=n("6GrX"),g=n("IwbS"),S=["textStyle","color"],m={getTextColor:function(p){var f=this.ecModel;return this.getShallow("color")||(!p&&f?f.get(S):null)},getFont:function(){return g.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(p){return y.getBoundingRect(p,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};R.exports=m},"/qDX":function(R,D,n){},"/ry/":function(R,D,n){var y=n("bYtY"),g=n("T4UG"),S=n("5GhG"),m=S.seriesModelMixin,p=g.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}});y.mixin(p,m,!0);var f=p;R.exports=f},"/stD":function(R,D,n){var y=n("bYtY"),g=n("IUWy"),S=n("Kagy"),m=S.toolbox.brush;function p(l,a,i){this.model=l,this.ecModel=a,this.api=i,this._brushType,this._brushMode}p.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:y.clone(m.title)};var f=p.prototype;f.render=f.updateView=function(l,a,i){var t,o,e;a.eachComponent({mainType:"brush"},function(u){t=u.brushType,o=u.brushOption.brushMode||"single",e|=u.areas.length}),this._brushType=t,this._brushMode=o,y.each(l.get("type",!0),function(u){l.setIconStatus(u,(u==="keep"?o==="multiple":u==="clear"?e:u===t)?"emphasis":"normal")})},f.getIcons=function(){var l=this.model,a=l.get("icon",!0),i={};return y.each(l.get("type",!0),function(t){a[t]&&(i[t]=a[t])}),i},f.onclick=function(l,a,i){var t=this._brushType,o=this._brushMode;i==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?t:t===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},g.register("brush",p);var d=p;R.exports=d},"/thR":function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("YCuv")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="EnterOutlined";var i=m.forwardRef(a);D.default=i},"/wGt":function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("pVnL"),m=n.n(S),p=n("lwsE"),f=n.n(p),d=n("W8MJ"),l=n.n(d),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),u=n.n(e),r=n("q1tI"),s=n("Ff2n"),c=n("1OyB"),h=n("vuIU"),v=n("Ji7U"),A=n("md7G"),b=n("foSv"),x=n("1W/9"),E=n("rePB"),T=n("JX7q"),_=n("TSYQ"),C=n.n(_),w=n("qx4F"),O=n("4IlW");function I(be){return Array.isArray(be)?be:[be]}var k={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},M=Object.keys(k).filter(function(be){if(typeof document=="undefined")return!1;var Te=document.getElementsByTagName("html")[0];return be in(Te?Te.style:{})})[0],U=k[M];function P(be,Te,Be,fe){be.addEventListener?be.addEventListener(Te,Be,fe):be.attachEvent&&be.attachEvent("on".concat(Te),Be)}function X(be,Te,Be,fe){be.removeEventListener?be.removeEventListener(Te,Be,fe):be.attachEvent&&be.detachEvent("on".concat(Te),Be)}function F(be,Te){var Be=typeof be=="function"?be(Te):be;return Array.isArray(Be)?Be.length===2?Be:[Be[0],Be[1]]:[Be]}var j=function(Te){return!isNaN(parseFloat(Te))&&isFinite(Te)},K=!(typeof window!="undefined"&&window.document&&window.document.createElement),z=function be(Te,Be,fe,xe){if(!Be||Be===document||Be instanceof Document)return!1;if(Be===Te.parentNode)return!0;var ke=Math.max(Math.abs(fe),Math.abs(xe))===Math.abs(xe),nt=Math.max(Math.abs(fe),Math.abs(xe))===Math.abs(fe),Ct=Be.scrollHeight-Be.clientHeight,pt=Be.scrollWidth-Be.clientWidth,He=document.defaultView.getComputedStyle(Be),nr=He.overflowY==="auto"||He.overflowY==="scroll",ht=He.overflowX==="auto"||He.overflowX==="scroll",Gt=Ct&&nr,pr=pt&&ht;return ke&&(!Gt||Gt&&(Be.scrollTop>=Ct&&xe<0||Be.scrollTop<=0&&xe>0))||nt&&(!pr||pr&&(Be.scrollLeft>=pt&&fe<0||Be.scrollLeft<=0&&fe>0))?be(Te,Be.parentNode,fe,xe):!1};function V(be){var Te=Q();return function(){var fe=Object(b.a)(be),xe;if(Te){var ke=Object(b.a)(this).constructor;xe=Reflect.construct(fe,arguments,ke)}else xe=fe.apply(this,arguments);return Object(A.a)(this,xe)}}function Q(){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(be){return!1}}var G={},te=function(be){Object(v.a)(Be,be);var Te=V(Be);function Be(fe){var xe;return Object(c.a)(this,Be),xe=Te.call(this,fe),xe.domFocus=function(){xe.dom&&xe.dom.focus()},xe.removeStartHandler=function(ke){if(ke.touches.length>1)return;xe.startPos={x:ke.touches[0].clientX,y:ke.touches[0].clientY}},xe.removeMoveHandler=function(ke){if(ke.changedTouches.length>1)return;var nt=ke.currentTarget,Ct=ke.changedTouches[0].clientX-xe.startPos.x,pt=ke.changedTouches[0].clientY-xe.startPos.y;(nt===xe.maskDom||nt===xe.handlerDom||nt===xe.contentDom&&z(nt,ke.target,Ct,pt))&&ke.cancelable&&ke.preventDefault()},xe.transitionEnd=function(ke){var nt=ke.target;X(nt,U,xe.transitionEnd),nt.style.transition=""},xe.onKeyDown=function(ke){if(ke.keyCode===O.a.ESC){var nt=xe.props.onClose;ke.stopPropagation(),nt&&nt(ke)}},xe.onWrapperTransitionEnd=function(ke){var nt=xe.props,Ct=nt.open,pt=nt.afterVisibleChange;ke.target===xe.contentWrapper&&ke.propertyName.match(/transform$/)&&(xe.dom.style.transition="",!Ct&&xe.getCurrentDrawerSome()&&(document.body.style.overflowX="",xe.maskDom&&(xe.maskDom.style.left="",xe.maskDom.style.width="")),pt&&pt(!!Ct))},xe.openLevelTransition=function(){var ke=xe.props,nt=ke.open,Ct=ke.width,pt=ke.height,He=xe.getHorizontalBoolAndPlacementName(),nr=He.isHorizontal,ht=He.placementName,Gt=xe.contentDom?xe.contentDom.getBoundingClientRect()[nr?"width":"height"]:0,pr=(nr?Ct:pt)||Gt;xe.setLevelAndScrolling(nt,ht,pr)},xe.setLevelTransform=function(ke,nt,Ct,pt){var He=xe.props,nr=He.placement,ht=He.levelMove,Gt=He.duration,pr=He.ease,Qt=He.showMask;xe.levelDom.forEach(function(Ht){Ht.style.transition="transform ".concat(Gt," ").concat(pr),P(Ht,U,xe.transitionEnd);var Jt=ke?Ct:0;if(ht){var Ge=F(ht,{target:Ht,open:ke});Jt=ke?Ge[0]:Ge[1]||0}var pe=typeof Jt=="number"?"".concat(Jt,"px"):Jt,oe=nr==="left"||nr==="top"?pe:"-".concat(pe);oe=Qt&&nr==="right"&&pt?"calc(".concat(oe," + ").concat(pt,"px)"):oe,Ht.style.transform=Jt?"".concat(nt,"(").concat(oe,")"):""})},xe.setLevelAndScrolling=function(ke,nt,Ct){var pt=xe.props.onChange;if(!K){var He=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(w.a)(!0):0;xe.setLevelTransform(ke,nt,Ct,He),xe.toggleScrollingToDrawerAndBody(He)}pt&&pt(ke)},xe.toggleScrollingToDrawerAndBody=function(ke){var nt=xe.props,Ct=nt.getOpenCount,pt=nt.getContainer,He=nt.showMask,nr=nt.open,ht=pt&&pt(),Gt=Ct&&Ct();if(ht&&ht.parentNode===document.body&&He){var pr=["touchstart"],Qt=[document.body,xe.maskDom,xe.handlerDom,xe.contentDom];nr&&document.body.style.overflow!=="hidden"?(ke&&xe.addScrollingEffect(ke),Gt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Qt.forEach(function(Ht,Jt){if(!Ht)return;P(Ht,pr[Jt]||"touchmove",Jt?xe.removeMoveHandler:xe.removeStartHandler,xe.passive)})):xe.getCurrentDrawerSome()&&(Gt||(document.body.style.overflow=""),document.body.style.touchAction="",ke&&xe.remScrollingEffect(ke),Qt.forEach(function(Ht,Jt){if(!Ht)return;X(Ht,pr[Jt]||"touchmove",Jt?xe.removeMoveHandler:xe.removeStartHandler,xe.passive)}))}},xe.addScrollingEffect=function(ke){var nt=xe.props,Ct=nt.placement,pt=nt.duration,He=nt.ease,nr=nt.getOpenCount,ht=nt.switchScrollingEffect,Gt=nr&&nr();Gt===1&&ht();var pr="width ".concat(pt," ").concat(He),Qt="transform ".concat(pt," ").concat(He);xe.dom.style.transition="none";switch(Ct){case"right":xe.dom.style.transform="translateX(-".concat(ke,"px)");break;case"top":case"bottom":xe.dom.style.width="calc(100% - ".concat(ke,"px)"),xe.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(xe.timeout),xe.timeout=setTimeout(function(){xe.dom&&(xe.dom.style.transition="".concat(Qt,",").concat(pr),xe.dom.style.width="",xe.dom.style.transform="")})},xe.remScrollingEffect=function(ke){var nt=xe.props,Ct=nt.placement,pt=nt.duration,He=nt.ease,nr=nt.getOpenCount,ht=nt.switchScrollingEffect,Gt=nr&&nr();Gt||ht(!0),M&&(document.body.style.overflowX="hidden"),xe.dom.style.transition="none";var pr,Qt="width ".concat(pt," ").concat(He),Ht="transform ".concat(pt," ").concat(He);switch(Ct){case"left":{xe.dom.style.width="100%",Qt="width 0s ".concat(He," ").concat(pt);break}case"right":{xe.dom.style.transform="translateX(".concat(ke,"px)"),xe.dom.style.width="100%",Qt="width 0s ".concat(He," ").concat(pt),xe.maskDom&&(xe.maskDom.style.left="-".concat(ke,"px"),xe.maskDom.style.width="calc(100% + ".concat(ke,"px)"));break}case"top":case"bottom":{xe.dom.style.width="calc(100% + ".concat(ke,"px)"),xe.dom.style.height="100%",xe.dom.style.transform="translateZ(0)",pr="height 0s ".concat(He," ").concat(pt);break}default:break}clearTimeout(xe.timeout),xe.timeout=setTimeout(function(){xe.dom&&(xe.dom.style.transition="".concat(Ht,",").concat(pr?"".concat(pr,","):"").concat(Qt),xe.dom.style.transform="",xe.dom.style.width="",xe.dom.style.height="")})},xe.getCurrentDrawerSome=function(){return!Object.keys(G).some(function(ke){return G[ke]})},xe.getLevelDom=function(ke){var nt=ke.level,Ct=ke.getContainer;if(K)return;var pt=Ct&&Ct(),He=pt?pt.parentNode:null;if(xe.levelDom=[],nt==="all"){var nr=He?Array.prototype.slice.call(He.children):[];nr.forEach(function(ht){ht.nodeName!=="SCRIPT"&&ht.nodeName!=="STYLE"&&ht.nodeName!=="LINK"&&ht!==pt&&xe.levelDom.push(ht)})}else nt&&I(nt).forEach(function(ht){document.querySelectorAll(ht).forEach(function(Gt){xe.levelDom.push(Gt)})})},xe.getHorizontalBoolAndPlacementName=function(){var ke=xe.props.placement,nt=ke==="left"||ke==="right",Ct="translate".concat(nt?"X":"Y");return{isHorizontal:nt,placementName:Ct}},xe.state={_self:Object(T.a)(xe)},xe}return Object(h.a)(Be,[{key:"componentDidMount",value:function(){var xe=this;if(!K){var ke=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return ke=!0,null}}))}catch(nr){}this.passive=ke?{passive:!1}:!1}var nt=this.props,Ct=nt.open,pt=nt.getContainer,He=pt&&pt();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),Ct&&(He&&He.parentNode===document.body&&(G[this.drawerId]=Ct),this.openLevelTransition(),this.forceUpdate(function(){xe.domFocus()}))}},{key:"componentDidUpdate",value:function(xe){var ke=this.props,nt=ke.open,Ct=ke.getContainer,pt=Ct&&Ct();nt!==xe.open&&(nt&&this.domFocus(),pt&&pt.parentNode===document.body&&(G[this.drawerId]=!!nt),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var xe=this.props,ke=xe.getOpenCount,nt=xe.open,Ct=xe.switchScrollingEffect,pt=typeof ke=="function"&&ke();delete G[this.drawerId],nt&&(this.setLevelTransform(!1),document.body.style.touchAction=""),pt||(document.body.style.overflow="",Ct(!0))}},{key:"render",value:function(){var xe,ke=this,nt=this.props,Ct=nt.className,pt=nt.children,He=nt.style,nr=nt.width,ht=nt.height,Gt=nt.defaultOpen,pr=nt.open,Qt=nt.prefixCls,Ht=nt.placement,Jt=nt.level,Ge=nt.levelMove,pe=nt.ease,oe=nt.duration,ct=nt.getContainer,qe=nt.handler,me=nt.onChange,Kt=nt.afterVisibleChange,vr=nt.showMask,bt=nt.maskClosable,or=nt.maskStyle,_t=nt.onClose,jt=nt.onHandleClick,ut=nt.keyboard,St=nt.getOpenCount,mt=nt.switchScrollingEffect,lt=Object(s.a)(nt,["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"]),tt=this.dom?pr:!1,Cr=C()(Qt,(xe={},Object(E.a)(xe,"".concat(Qt,"-").concat(Ht),!0),Object(E.a)(xe,"".concat(Qt,"-open"),tt),Object(E.a)(xe,Ct||"",!!Ct),Object(E.a)(xe,"no-mask",!vr),xe)),nn=this.getHorizontalBoolAndPlacementName(),mn=nn.placementName,Bn=Ht==="left"||Ht==="top"?"-100%":"100%",oi=tt?"":"".concat(mn,"(").concat(Bn,")"),wn=qe&&r.cloneElement(qe,{onClick:function(Zt){qe.props.onClick&&qe.props.onClick(),jt&&jt(Zt)},ref:function(Zt){ke.handlerDom=Zt}});return r.createElement("div",Object.assign({},lt,{tabIndex:-1,className:Cr,style:He,ref:function(Zt){ke.dom=Zt},onKeyDown:tt&&ut?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),vr&&r.createElement("div",{className:"".concat(Qt,"-mask"),onClick:bt?_t:void 0,style:or,ref:function(Zt){ke.maskDom=Zt}}),r.createElement("div",{className:"".concat(Qt,"-content-wrapper"),style:{transform:oi,msTransform:oi,width:j(nr)?"".concat(nr,"px"):nr,height:j(ht)?"".concat(ht,"px"):ht},ref:function(Zt){ke.contentWrapper=Zt}},r.createElement("div",{className:"".concat(Qt,"-content"),ref:function(Zt){ke.contentDom=Zt},onTouchStart:tt&&vr?this.removeStartHandler:void 0,onTouchMove:tt&&vr?this.removeMoveHandler:void 0},pt),wn))}}],[{key:"getDerivedStateFromProps",value:function(xe,ke){var nt=ke.prevProps,Ct=ke._self,pt={prevProps:xe};if(nt!==void 0){var He=xe.placement,nr=xe.level;He!==nt.placement&&(Ct.contentDom=null),nr!==nt.level&&Ct.getLevelDom(xe)}return pt}}]),Be}(r.Component);te.defaultProps={switchScrollingEffect:function(){}};var q=te;function se(be){var Te=re();return function(){var fe=Object(b.a)(be),xe;if(Te){var ke=Object(b.a)(this).constructor;xe=Reflect.construct(fe,arguments,ke)}else xe=fe.apply(this,arguments);return Object(A.a)(this,xe)}}function re(){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(be){return!1}}var we=function(be){Object(v.a)(Be,be);var Te=se(Be);function Be(fe){var xe;Object(c.a)(this,Be),xe=Te.call(this,fe),xe.onHandleClick=function(nt){var Ct=xe.props,pt=Ct.onHandleClick,He=Ct.open;if(pt&&pt(nt),typeof He=="undefined"){var nr=xe.state.open;xe.setState({open:!nr})}},xe.onClose=function(nt){var Ct=xe.props,pt=Ct.onClose,He=Ct.open;pt&&pt(nt),typeof He=="undefined"&&xe.setState({open:!1})};var ke=typeof fe.open!="undefined"?fe.open:!!fe.defaultOpen;return xe.state={open:ke},"onMaskClick"in fe&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),xe}return Object(h.a)(Be,[{key:"render",value:function(){var xe=this,ke=this.props,nt=ke.defaultOpen,Ct=ke.getContainer,pt=ke.wrapperClassName,He=ke.forceRender,nr=ke.handler,ht=Object(s.a)(ke,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),Gt=this.state.open;if(!Ct)return r.createElement("div",{className:pt,ref:function(Ht){xe.dom=Ht}},r.createElement(q,Object.assign({},ht,{open:Gt,handler:nr,getContainer:function(){return xe.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var pr=!!nr||He;return r.createElement(x.a,{visible:Gt,forceRender:pr,getContainer:Ct,wrapperClassName:pt},function(Qt){var Ht=Qt.visible,Jt=Qt.afterClose,Ge=Object(s.a)(Qt,["visible","afterClose"]);return r.createElement(q,Object.assign({},ht,Ge,{open:Ht!==void 0?Ht:Gt,afterVisibleChange:Jt!==void 0?Jt:ht.afterVisibleChange,handler:nr,onClose:xe.onClose,onHandleClick:xe.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(xe,ke){var nt=ke.prevProps,Ct={prevProps:xe};return typeof nt!="undefined"&&xe.open!==nt.open&&(Ct.open=xe.open),Ct}}]),Be}(r.Component);we.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:r.createElement("div",{className:"drawer-handle"},r.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var Oe=we,Me=Oe,Qe=n("V/uB"),Ve=n.n(Qe),dt=n("BGR+"),Fe=n("H84U"),ue=n("CWQg"),et=function(be,Te){var Be={};for(var fe in be)Object.prototype.hasOwnProperty.call(be,fe)&&Te.indexOf(fe)<0&&(Be[fe]=be[fe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,fe=Object.getOwnPropertySymbols(be);xe<fe.length;xe++)Te.indexOf(fe[xe])<0&&Object.prototype.propertyIsEnumerable.call(be,fe[xe])&&(Be[fe[xe]]=be[fe[xe]]);return Be},he=r.createContext(null),J=Object(ue.a)("top","right","bottom","left"),Y={distance:180},$=function(be){o()(Be,be);var Te=u()(Be);function Be(){var fe;return f()(this,Be),fe=Te.apply(this,arguments),fe.state={push:!1},fe.push=function(){fe.props.push&&fe.setState({push:!0})},fe.pull=function(){fe.props.push&&fe.setState({push:!1})},fe.onDestroyTransitionEnd=function(){var xe=fe.getDestroyOnClose();if(!xe)return;fe.props.visible||(fe.destroyClose=!0,fe.forceUpdate())},fe.getDestroyOnClose=function(){return fe.props.destroyOnClose&&!fe.props.visible},fe.getPushDistance=function(){var xe=fe.props.push,ke;return typeof xe=="boolean"?ke=xe?Y.distance:0:ke=xe.distance,parseFloat(String(ke||0))},fe.getPushTransform=function(xe){var ke=fe.getPushDistance();if(xe==="left"||xe==="right")return"translateX(".concat(xe==="left"?ke:-ke,"px)");if(xe==="top"||xe==="bottom")return"translateY(".concat(xe==="top"?ke:-ke,"px)")},fe.getRcDrawerStyle=function(){var xe=fe.props,ke=xe.zIndex,nt=xe.placement,Ct=xe.mask,pt=xe.style,He=fe.state.push,nr=Ct?{}:fe.getOffsetStyle();return m()(m()({zIndex:ke,transform:He?fe.getPushTransform(nt):void 0},nr),pt)},fe.renderBody=function(){var xe=fe.props,ke=xe.bodyStyle,nt=xe.drawerStyle,Ct=xe.prefixCls,pt=xe.visible;if(fe.destroyClose&&!pt)return null;fe.destroyClose=!1;var He={},nr=fe.getDestroyOnClose();return nr&&(He.opacity=0,He.transition="opacity .3s"),r.createElement("div",{className:"".concat(Ct,"-wrapper-body"),style:m()(m()({},He),nt),onTransitionEnd:fe.onDestroyTransitionEnd},fe.renderHeader(),r.createElement("div",{className:"".concat(Ct,"-body"),style:ke},fe.props.children),fe.renderFooter())},fe.renderProvider=function(xe){return fe.parentDrawer=xe,r.createElement(Fe.a,null,function(ke){var nt=ke.getPopupContainer,Ct=ke.getPrefixCls,pt=fe.props,He=pt.prefixCls,nr=pt.placement,ht=pt.className,Gt=pt.mask,pr=pt.direction,Qt=pt.visible,Ht=et(pt,["prefixCls","placement","className","mask","direction","visible"]),Jt=Ct("select",He),Ge=C()(ht,g()({"no-mask":!Gt},"".concat(Jt,"-rtl"),pr==="rtl")),pe=Gt?fe.getOffsetStyle():{};return r.createElement(he.Provider,{value:i()(fe)},r.createElement(Me,m()({handler:!1},Object(dt.default)(Ht,["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:Ht.getContainer===void 0&&nt?function(){return nt(document.body)}:Ht.getContainer},pe,{prefixCls:Jt,open:Qt,showMask:Gt,placement:nr,style:fe.getRcDrawerStyle(),className:Ge}),fe.renderBody()))})},fe}return l()(Be,[{key:"componentDidMount",value:function(){var xe=this.props.visible;xe&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(xe){var ke=this.props.visible;xe.visible!==ke&&this.parentDrawer&&(ke?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var xe=this.props,ke=xe.placement,nt=xe.width,Ct=xe.height,pt=xe.visible,He=xe.mask;if(!pt&&!He)return{};var nr={};return ke==="left"||ke==="right"?nr.width=nt:nr.height=Ct,nr}},{key:"renderHeader",value:function(){var xe=this.props,ke=xe.title,nt=xe.prefixCls,Ct=xe.closable,pt=xe.headerStyle;if(!ke&&!Ct)return null;var He=ke?"".concat(nt,"-header"):"".concat(nt,"-header-no-title");return r.createElement("div",{className:He,style:pt},ke&&r.createElement("div",{className:"".concat(nt,"-title")},ke),Ct&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var xe=this.props,ke=xe.footer,nt=xe.footerStyle,Ct=xe.prefixCls;if(!ke)return null;var pt="".concat(Ct,"-footer");return r.createElement("div",{className:pt,style:nt},ke)}},{key:"renderCloseIcon",value:function(){var xe=this.props,ke=xe.closable,nt=xe.closeIcon,Ct=nt===void 0?r.createElement(Ve.a,null):nt,pt=xe.prefixCls,He=xe.onClose;return ke&&r.createElement("button",{onClick:He,"aria-label":"Close",className:"".concat(pt,"-close"),style:{"--scroll-bar":"".concat(Object(w.a)(),"px")}},Ct)}},{key:"render",value:function(){return r.createElement(he.Consumer,null,this.renderProvider)}}]),Be}(r.Component);$.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Y};var de=D.a=Object(Fe.c)({prefixCls:"drawer"})($)},"/y7N":function(R,D,n){var y=n("bYtY"),g=n("IwbS"),S=n("6GrX"),m=n("7aKB"),p=n("Fofx"),f=n("aX7z"),d=n("+rIm");function l(c){var h=c.get("type"),v=c.getModel(h+"Style"),A;return h==="line"?(A=v.getLineStyle(),A.fill=null):h==="shadow"&&(A=v.getAreaStyle(),A.stroke=null),A}function a(c,h,v,A,b){var x=v.get("value"),E=t(x,h.axis,h.ecModel,v.get("seriesDataIndices"),{precision:v.get("label.precision"),formatter:v.get("label.formatter")}),T=v.getModel("label"),_=m.normalizeCssArray(T.get("padding")||0),C=T.getFont(),w=S.getBoundingRect(E,C),O=b.position,I=w.width+_[1]+_[3],k=w.height+_[0]+_[2],M=b.align;M==="right"&&(O[0]-=I),M==="center"&&(O[0]-=I/2);var U=b.verticalAlign;U==="bottom"&&(O[1]-=k),U==="middle"&&(O[1]-=k/2),i(O,I,k,A);var P=T.get("backgroundColor");(!P||P==="auto")&&(P=h.get("axisLine.lineStyle.color")),c.label={shape:{x:0,y:0,width:I,height:k,r:T.get("borderRadius")},position:O.slice(),style:{text:E,textFont:C,textFill:T.getTextColor(),textPosition:"inside",textPadding:_,fill:P,stroke:T.get("borderColor")||"transparent",lineWidth:T.get("borderWidth")||0,shadowBlur:T.get("shadowBlur"),shadowColor:T.get("shadowColor"),shadowOffsetX:T.get("shadowOffsetX"),shadowOffsetY:T.get("shadowOffsetY")},z2:10}}function i(c,h,v,A){var b=A.getWidth(),x=A.getHeight();c[0]=Math.min(c[0]+h,b)-h,c[1]=Math.min(c[1]+v,x)-v,c[0]=Math.max(c[0],0),c[1]=Math.max(c[1],0)}function t(c,h,v,A,b){c=h.scale.parse(c);var x=h.scale.getLabel(c,{precision:b.precision}),E=b.formatter;if(E){var T={value:f.getAxisRawValue(h,c),axisDimension:h.dim,axisIndex:h.index,seriesData:[]};y.each(A,function(_){var C=v.getSeriesByIndex(_.seriesIndex),w=_.dataIndexInside,O=C&&C.getDataParams(w);O&&T.seriesData.push(O)}),y.isString(E)?x=E.replace("{value}",x):y.isFunction(E)&&(x=E(T))}return x}function o(c,h,v){var A=p.create();return p.rotate(A,A,v.rotation),p.translate(A,A,v.position),g.applyTransform([c.dataToCoord(h),(v.labelOffset||0)+(v.labelDirection||1)*(v.labelMargin||0)],A)}function e(c,h,v,A,b,x){var E=d.innerTextLayout(v.rotation,0,v.labelDirection);v.labelMargin=b.get("label.margin"),a(h,A,b,x,{position:o(A.axis,c,v),align:E.textAlign,verticalAlign:E.textVerticalAlign})}function u(c,h,v){return v=v||0,{x1:c[v],y1:c[1-v],x2:h[v],y2:h[1-v]}}function r(c,h,v){return v=v||0,{x:c[v],y:c[1-v],width:h[v],height:h[1-v]}}function s(c,h,v,A,b,x){return{cx:c,cy:h,r0:v,r:A,startAngle:b,endAngle:x,clockwise:!0}}D.buildElStyle=l,D.buildLabelElOption=a,D.getValueLabel=t,D.getTransformedPosition=o,D.buildCartesianSingleLabelElOption=e,D.makeLineShape=u,D.makeRectShape=r,D.makeSectorShape=s},"/zsF":function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("bE4E"),m=n.n(S)},"0/Rx":function(R,D){function n(y){return{seriesType:y,reset:function(g,S){var m=S.findComponents({mainType:"legend"});if(!m||!m.length)return;var p=g.getData();p.filterSelf(function(f){for(var d=p.getName(f),l=0;l<m.length;l++)if(!m[l].isSelected(d))return!1;return!0})}}}R.exports=n},"01d+":function(R,D,n){var y=n("bYtY"),g=y.each,S=n("HF/U"),m=S.simpleLayout,p=S.simpleLayoutEdge;function f(d,l){d.eachSeriesByType("graph",function(a){var i=a.get("layout"),t=a.coordinateSystem;if(t&&t.type!=="view"){var o=a.getData(),e=[];g(t.dimensions,function(v){e=e.concat(o.mapDimension(v,!0))});for(var u=0;u<o.count();u++){for(var r=[],s=!1,c=0;c<e.length;c++){var h=o.get(e[c],u);isNaN(h)||(s=!0),r.push(h)}s?o.setItemLayout(u,t.dataToPoint(r)):o.setItemLayout(u,[NaN,NaN])}p(o.graph)}else(!i||i==="none")&&m(a)})}R.exports=f},"03A+":function(R,D,n){var y=n("JTzB"),g=n("ExA7"),S=Object.prototype,m=S.hasOwnProperty,p=S.propertyIsEnumerable,f=y(function(){return arguments}())?y:function(d){return g(d)&&m.call(d,"callee")&&!p.call(d,"callee")};R.exports=f},"06DH":function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("Kagy"),m=n("IUWy"),p=S.toolbox.magicType,f="__ec_magicType_stack__";function d(o){this.model=o}d.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:g.clone(p.title),option:{},seriesIndex:{}};var l=d.prototype;l.getIcons=function(){var o=this.model,e=o.get("icon"),u={};return g.each(o.get("type"),function(r){e[r]&&(u[r]=e[r])}),u};var a={line:function(o,e,u,r){if(o==="bar")return g.merge({id:e,type:"line",data:u.get("data"),stack:u.get("stack"),markPoint:u.get("markPoint"),markLine:u.get("markLine")},r.get("option.line")||{},!0)},bar:function(o,e,u,r){if(o==="line")return g.merge({id:e,type:"bar",data:u.get("data"),stack:u.get("stack"),markPoint:u.get("markPoint"),markLine:u.get("markLine")},r.get("option.bar")||{},!0)},stack:function(o,e,u,r){var s=u.get("stack")===f;if(o==="line"||o==="bar")return r.setIconStatus("stack",s?"normal":"emphasis"),g.merge({id:e,stack:s?"":f},r.get("option.stack")||{},!0)}},i=[["line","bar"],["stack"]];l.onclick=function(o,e,u){var r=this.model,s=r.get("seriesIndex."+u);if(!a[u])return;var c={series:[]},h=function(b){var x=b.subType,E=b.id,T=a[u](x,E,b,r);T&&(g.defaults(T,b.option),c.series.push(T));var _=b.coordinateSystem;if(_&&_.type==="cartesian2d"&&(u==="line"||u==="bar")){var C=_.getAxesByScale("ordinal")[0];if(C){var w=C.dim,O=w+"Axis",I=o.queryComponents({mainType:O,index:b.get(name+"Index"),id:b.get(name+"Id")})[0],k=I.componentIndex;c[O]=c[O]||[];for(var M=0;M<=k;M++)c[O][k]=c[O][k]||{};c[O][k].boundaryGap=u==="bar"}}};g.each(i,function(b){g.indexOf(b,u)>=0&&g.each(b,function(x){r.setIconStatus(x,"normal")})}),r.setIconStatus(u,"emphasis"),o.eachComponent({mainType:"series",query:s==null?null:{seriesIndex:s}},h);var v;if(u==="stack"){var A=c.series&&c.series[0]&&c.series[0].stack===f;v=A?g.merge({stack:p.title.tiled},p.title):g.clone(p.title)}e.dispatchAction({type:"changeMagicType",currentType:u,newOption:c,newTitle:v,featureName:"magicType"})},y.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(o,e){e.mergeOption(o.newOption)}),m.register("magicType",d);var t=d;R.exports=t},"06Qe":function(R,D,n){var y=n("ItGF"),g="urn:schemas-microsoft-com:vml",S=typeof window=="undefined"?null:window,m=!1,p=S&&S.document;function f(a){return d(a)}var d;if(p&&!y.canvasSupported)try{!p.namespaces.zrvml&&p.namespaces.add("zrvml",g),d=function(i){return p.createElement("<zrvml:"+i+' class="zrvml">')}}catch(a){d=function(t){return p.createElement("<"+t+' xmlns="'+g+'" class="zrvml">')}}function l(){if(m||!p)return;m=!0;var a=p.styleSheets;a.length<31?p.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):a[0].addRule(".zrvml","behavior:url(#default#VML)")}D.doc=p,D.createNode=f,D.initVML=l},"09Wf":function(R,D,n){"use strict";n.d(D,"b",function(){return g}),n.d(D,"a",function(){return S});var y=n("CWQg"),g=Object(y.a)("success","processing","error","default","warning"),S=Object(y.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(R,D,n){var y=n("T4UG"),g=n("I3/A"),S=n("7aKB"),m=S.encodeHTML,p=n("Qxkt"),f=n("Tghj"),d=f.__DEV__,l=y.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(i,t){for(var o=i.edges||i.links,e=i.data||i.nodes,u=i.levels,r=this.levelModels={},s=0;s<u.length;s++)u[s].depth!=null&&u[s].depth>=0&&(r[u[s].depth]=new p(u[s],this,t));if(e&&o){var c=g(e,o,this,!0,h);return c.data}function h(v,A){v.wrapMethod("getItemModel",function(b,x){return b.customizeGetParent(function(E){var T=this.parentModel,_=T.getData().getItemLayout(x).depth,C=T.levelModels[_];return C||this.parentModel}),b}),A.wrapMethod("getItemModel",function(b,x){return b.customizeGetParent(function(E){var T=this.parentModel,_=T.getGraph().getEdgeByIndex(x),C=_.node1.getLayout().depth,w=T.levelModels[C];return w||this.parentModel}),b})}},setNodePosition:function(i,t){var o=this.option.data[i];o.localX=t[0],o.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(i,t,o){if(o==="edge"){var e=this.getDataParams(i,o),u=e.data,r=u.source+" -- "+u.target;return e.value&&(r+=" : "+e.value),m(r)}else if(o==="node"){var s=this.getGraph().getNodeByIndex(i),c=s.getLayout().value,h=this.getDataParams(i,o).data.name;if(c)var r=h+" : "+c;return m(r)}return l.superCall(this,"formatTooltip",i,t)},optionUpdated:function(){var i=this.option;i.focusNodeAdjacency===!0&&(i.focusNodeAdjacency="allEdges")},getDataParams:function(i,t){var o=l.superCall(this,"getDataParams",i,t);if(o.value==null&&t==="node"){var e=this.getGraph().getNodeByIndex(i),u=e.getLayout().value;o.value=u}return o},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),a=l;R.exports=a},"0Cz8":function(R,D,n){var y=n("Xi7e"),g=n("ebwN"),S=n("e4Nc"),m=200;function p(f,d){var l=this.__data__;if(l instanceof y){var a=l.__data__;if(!g||a.length<m-1)return a.push([f,d]),this.size=++l.size,this;l=this.__data__=new S(a)}return l.set(f,d),this.size=l.size,this}R.exports=p},"0HBW":function(R,D,n){var y=n("ProS"),g=n("bYtY");n("Hxpc"),n("7uqq"),n("dmGj"),n("SehX");function S(m,p){p.update="updateView",y.registerAction(p,function(f,d){var l={};return d.eachComponent({mainType:"geo",query:f},function(a){a[m](f.name);var i=a.coordinateSystem;g.each(i.regions,function(t){l[t.name]=a.isSelected(t.name)||!1})}),{selected:l,name:f.name}})}S("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),S("select",{type:"geoSelect",event:"geoselected"}),S("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(R,D,n){var y=n("bYtY"),g=n("+TT/"),S=n("OELB"),m=n("IDmD"),p=864e5;function f(a,i,t){this._model=a}f.prototype={constructor:f,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(a){a=S.parseDate(a);var i=a.getFullYear(),t=a.getMonth()+1;t=t<10?"0"+t:t;var o=a.getDate();o=o<10?"0"+o:o;var e=a.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:i,m:t,d:o,day:e,time:a.getTime(),formatedDate:i+"-"+t+"-"+o,date:a}},getNextNDay:function(a,i){return i=i||0,i===0?this.getDateInfo(a):(a=new Date(this.getDateInfo(a).time),a.setDate(a.getDate()+i),this.getDateInfo(a))},update:function(a,i){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 t=this._rangeInfo.weeks||1,o=["width","height"],e=this._model.get("cellSize").slice(),u=this._model.getBoxLayoutParams(),r=this._orient==="horizontal"?[t,7]:[7,t];y.each([0,1],function(v){h(e,v)&&(u[o[v]]=e[v]*r[v])});var s={width:i.getWidth(),height:i.getHeight()},c=this._rect=g.getLayoutRect(u,s);y.each([0,1],function(v){h(e,v)||(e[v]=c[o[v]]/r[v])});function h(v,A){return v[A]!=null&&v[A]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(a,i){y.isArray(a)&&(a=a[0]),i==null&&(i=!0);var t=this.getDateInfo(a),o=this._rangeInfo,e=t.formatedDate;if(i&&!(t.time>=o.start.time&&t.time<o.end.time+p))return[NaN,NaN];var u=t.day,r=this._getRangeInfo([o.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+u*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]:[this._rect.x+r*this._sw+this._sw/2,this._rect.y+u*this._sh+this._sh/2]},pointToData:function(a){var i=this.pointToDate(a);return i&&i.time},dataToRect:function(a,i){var t=this.dataToPoint(a,i);return{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},pointToDate:function(a){var i=Math.floor((a[0]-this._rect.x)/this._sw)+1,t=Math.floor((a[1]-this._rect.y)/this._sh)+1,o=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(t,i-1,o):this._getDateByWeeksAndDay(i,t-1,o)},convertToPixel:y.curry(d,"dataToPoint"),convertFromPixel:y.curry(d,"pointToData"),_initRangeOption:function(){var a=this._model.get("range"),i=a;if(y.isArray(i)&&i.length===1&&(i=i[0]),/^\d{4}$/.test(i)&&(a=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var t=this.getDateInfo(i),o=t.date;o.setMonth(o.getMonth()+1);var e=this.getNextNDay(o,-1);a=[t.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(a=[i,i]);var u=this._getRangeInfo(a);return u.start.time>u.end.time&&a.reverse(),a},_getRangeInfo:function(a){a=[this.getDateInfo(a[0]),this.getDateInfo(a[1])];var i;a[0].time>a[1].time&&(i=!0,a.reverse());var t=Math.floor(a[1].time/p)-Math.floor(a[0].time/p)+1,o=new Date(a[0].time),e=o.getDate(),u=a[1].date.getDate();o.setDate(e+t-1);var r=o.getDate();if(r!==u)for(var s=o.getTime()-a[1].time>0?1:-1;(r=o.getDate())!==u&&(o.getTime()-a[1].time)*s>0;)t-=s,o.setDate(r-s);var c=Math.floor((t+a[0].day+6)/7),h=i?-c+1:c-1;return i&&a.reverse(),{range:[a[0].formatedDate,a[1].formatedDate],start:a[0],end:a[1],allDay:t,weeks:c,nthWeek:h,fweek:a[0].day,lweek:a[1].day}},_getDateByWeeksAndDay:function(a,i,t){var o=this._getRangeInfo(t);if(a>o.weeks||a===0&&i<o.fweek||a===o.weeks&&i>o.lweek)return!1;var e=(a-1)*7-o.fweek+i,u=new Date(o.start.time);return u.setDate(o.start.d+e),this.getDateInfo(u)}},f.dimensions=f.prototype.dimensions,f.getDimensionsInfo=f.prototype.getDimensionsInfo,f.create=function(a,i){var t=[];return a.eachComponent("calendar",function(o){var e=new f(o,a,i);t.push(e),o.coordinateSystem=e}),a.eachSeries(function(o){o.get("coordinateSystem")==="calendar"&&(o.coordinateSystem=t[o.get("calendarIndex")||0])}),t};function d(a,i,t,o){var e=t.calendarModel,u=t.seriesModel,r=e?e.coordinateSystem:u?u.coordinateSystem:null;return r===this?r[a](o):null}m.register("calendar",f);var l=f;R.exports=l},"0NbB":function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="CaretDownOutlined";var d=D.a=g.forwardRef(f)},"0OKo":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("TdNH"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},"0V0F":function(R,D,n){var y=n("bYtY"),g=y.createHashMap,S=y.each;function m(f){var d=g();f.eachSeries(function(l){var a=l.get("stack");if(a){var i=d.get(a)||d.set(a,[]),t=l.getData(),o={stackResultDimension:t.getCalculationInfo("stackResultDimension"),stackedOverDimension:t.getCalculationInfo("stackedOverDimension"),stackedDimension:t.getCalculationInfo("stackedDimension"),stackedByDimension:t.getCalculationInfo("stackedByDimension"),isStackedByIndex:t.getCalculationInfo("isStackedByIndex"),data:t,seriesModel:l};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&t.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),d.each(p)}function p(f){S(f,function(d,l){var a=[],i=[NaN,NaN],t=[d.stackResultDimension,d.stackedOverDimension],o=d.data,e=d.isStackedByIndex,u=o.map(t,function(r,s,c){var h=o.get(d.stackedDimension,c);if(isNaN(h))return i;var v,A;e?A=o.getRawIndex(c):v=o.get(d.stackedByDimension,c);for(var b=NaN,x=l-1;x>=0;x--){var E=f[x];if(e||(A=E.data.rawIndexOf(E.stackedByDimension,v)),A>=0){var T=E.data.getByRawIndex(E.stackResultDimension,A);if(h>=0&&T>0||h<=0&&T<0){h+=T,b=T;break}}}return a[0]=h,a[1]=b,a});o.hostModel.setData(u),d.data=u})}R.exports=m},"0XgM":function(R,D,n){},"0fbx":function(R,D,n){},"0o9m":function(R,D,n){var y=n("ProS");n("hNWo"),n("RlCK"),n("XpcN");var g=n("kDyi"),S=n("bLfw");y.registerProcessor(y.PRIORITY.PROCESSOR.SERIES_FILTER,g),S.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(R,D,n){var y=n("ProS");y.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),y.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(R,D){var n=arguments[3],y=arguments[4],g=arguments[5],S=JSON.stringify;R.exports=function(m,p){for(var f,d=Object.keys(g),l=0,a=d.length;l<a;l++){var i=d[l],t=g[i].exports;if(t===m||t&&t.default===m){f=i;break}}if(!f){f=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var o={},l=0,a=d.length;l<a;l++){var i=d[l];o[i]=i}y[f]=["function(require,module,exports){"+m+"(self); }",o]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),u={};u[f]=f,y[e]=["function(require,module,exports){var f = require("+S(f)+");(f.default ? f.default : f)(self);}",u];var r={};s(e);function s(x){r[x]=!0;for(var E in y[x][1]){var T=y[x][1][E];r[T]||s(T)}}var c="("+n+")({"+Object.keys(r).map(function(x){return S(x)+":["+y[x][0]+","+S(y[x][1])+"]"}).join(",")+"},{},["+S(e)+"])",h=window.URL||window.webkitURL||window.mozURL||window.msURL,v=new Blob([c],{type:"text/javascript"});if(p&&p.bare)return v;var A=h.createObjectURL(v),b=new Worker(A);return b.objectURL=A,b}},"0s+r":function(R,D,n){var y=n("bYtY"),g=n("QBsz"),S=n("y23F"),m=n("H6uX"),p=n("YH21"),f=n("C0SR"),d="silent";function l(s,c,h){return{type:s,event:h,target:c.target,topTarget:c.topTarget,cancelBubble:!1,offsetX:h.zrX,offsetY:h.zrY,gestureEvent:h.gestureEvent,pinchX:h.pinchX,pinchY:h.pinchY,pinchScale:h.pinchScale,wheelDelta:h.zrDelta,zrByTouch:h.zrByTouch,which:h.which,stop:a}}function a(){p.stop(this.event)}function i(){}i.prototype.dispose=function(){};var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],o=function(c,h,v,A){m.call(this),this.storage=c,this.painter=h,this.painterRoot=A,v=v||new i,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,S.call(this),this.setHandlerProxy(v)};o.prototype={constructor:o,setHandlerProxy:function(c){this.proxy&&this.proxy.dispose(),c&&(y.each(t,function(h){c.on&&c.on(h,this[h],this)},this),c.handler=this),this.proxy=c},mousemove:function(c){var h=c.zrX,v=c.zrY,A=u(this,h,v),b=this._hovered,x=b.target;x&&!x.__zr&&(b=this.findHover(b.x,b.y),x=b.target);var E=this._hovered=A?{x:h,y:v}:this.findHover(h,v),T=E.target,_=this.proxy;_.setCursor&&_.setCursor(T?T.cursor:"default"),x&&T!==x&&this.dispatchToElement(b,"mouseout",c),this.dispatchToElement(E,"mousemove",c),T&&T!==x&&this.dispatchToElement(E,"mouseover",c)},mouseout:function(c){var h=c.zrEventControl,v=c.zrIsToLocalDOM;h!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",c),h!=="no_globalout"&&(!v&&this.trigger("globalout",{type:"globalout",event:c}))},resize:function(c){this._hovered={}},dispatch:function(c,h){var v=this[c];v&&v.call(this,h)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(c){var h=this.proxy;h.setCursor&&h.setCursor(c)},dispatchToElement:function(c,h,v){c=c||{};var A=c.target;if(A&&A.silent)return;for(var b="on"+h,x=l(h,c,v);A&&!(A[b]&&(x.cancelBubble=A[b].call(A,x)),A.trigger(h,x),A=A.parent,x.cancelBubble););x.cancelBubble||(this.trigger(h,x),this.painter&&this.painter.eachOtherLayer(function(E){typeof E[b]=="function"&&E[b].call(E,x),E.trigger&&E.trigger(h,x)}))},findHover:function(c,h,v){for(var A=this.storage.getDisplayList(),b={x:c,y:h},x=A.length-1;x>=0;x--){var E;if(A[x]!==v&&!A[x].ignore&&(E=e(A[x],c,h))&&(!b.topTarget&&(b.topTarget=A[x]),E!==d)){b.target=A[x];break}}return b},processGesture:function(c,h){this._gestureMgr||(this._gestureMgr=new f);var v=this._gestureMgr;h==="start"&&v.clear();var A=v.recognize(c,this.findHover(c.zrX,c.zrY,null).target,this.proxy.dom);if(h==="end"&&v.clear(),A){var b=A.type;c.gestureEvent=b,this.dispatchToElement({target:A.target},b,A.event)}}},y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(s){o.prototype[s]=function(c){var h=c.zrX,v=c.zrY,A=u(this,h,v),b,x;if((s!=="mouseup"||!A)&&(b=this.findHover(h,v),x=b.target),s==="mousedown")this._downEl=x,this._downPoint=[c.zrX,c.zrY],this._upEl=x;else if(s==="mouseup")this._upEl=x;else if(s==="click"){if(this._downEl!==this._upEl||!this._downPoint||g.dist(this._downPoint,[c.zrX,c.zrY])>4)return;this._downPoint=null}this.dispatchToElement(b,s,c)}});function e(s,c,h){if(s[s.rectHover?"rectContain":"contain"](c,h)){for(var v=s,A;v;){if(v.clipPath&&!v.clipPath.contain(c,h))return!1;v.silent&&(A=!0),v=v.parent}return A?d:!0}return!1}function u(s,c,h){var v=s.painter;return c<0||c>v.getWidth()||h<0||h>v.getHeight()}y.mixin(o,m),y.mixin(o,S);var r=o;R.exports=r},"0ycA":function(R,D){function n(){return[]}R.exports=n},"10cm":function(R,D,n){var y=n("ProS"),g=n("2B6p"),S=g.updateCenterAndZoom;n("0qV/");var m={type:"graphRoam",event:"graphRoam",update:"none"};y.registerAction(m,function(p,f){f.eachComponent({mainType:"series",query:p},function(d){var l=d.coordinateSystem,a=S(l,p);d.setCenter&&d.setCenter(a.center),d.setZoom&&d.setZoom(a.zoom)})})},"15/o":function(R,D,n){},"19Vz":function(R,D,n){(function(y){y(n("VrN/"))})(function(y){y.defineOption("placeholder","",function(l,a,i){var t=i&&i!=y.Init;if(a&&!t)l.on("blur",p),l.on("change",f),l.on("swapDoc",f),y.on(l.getInputField(),"compositionupdate",l.state.placeholderCompose=function(){m(l)}),f(l);else if(!a&&t){l.off("blur",p),l.off("change",f),l.off("swapDoc",f),y.off(l.getInputField(),"compositionupdate",l.state.placeholderCompose),g(l);var o=l.getWrapperElement();o.className=o.className.replace(" CodeMirror-empty","")}a&&!l.hasFocus()&&p(l)});function g(l){l.state.placeholder&&(l.state.placeholder.parentNode.removeChild(l.state.placeholder),l.state.placeholder=null)}function S(l){g(l);var a=l.state.placeholder=document.createElement("pre");a.style.cssText="height: 0; overflow: visible",a.style.direction=l.getOption("direction"),a.className="CodeMirror-placeholder CodeMirror-line-like";var i=l.getOption("placeholder");typeof i=="string"&&(i=document.createTextNode(i)),a.appendChild(i),l.display.lineSpace.insertBefore(a,l.display.lineSpace.firstChild)}function m(l){setTimeout(function(){var a=!1,i=l.getInputField();i.nodeName=="TEXTAREA"?a=!i.value:l.lineCount()==1&&(a=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),a?S(l):g(l)},20)}function p(l){d(l)&&S(l)}function f(l){var a=l.getWrapperElement(),i=d(l);a.className=a.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?S(l):g(l)}function d(l){return l.lineCount()===1&&l.getLine(0)===""}})},"1Jh7":function(R,D,n){var y=n("y+Vt"),g=n("T6xi"),S=y.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(p,f){g.buildPath(p,f,!1)}});R.exports=S},"1LEl":function(R,D,n){var y=n("ProS"),g=n("F9bG"),S=y.extendComponentView({type:"axisPointer",render:function(p,f,d){var l=f.getComponent("tooltip"),a=p.get("triggerOn")||l&&l.get("triggerOn")||"mousemove|click";g.register("axisPointer",d,function(i,t,o){a!=="none"&&(i==="leave"||a.indexOf(i)>=0)&&o({type:"updateAxisPointer",currTrigger:i,x:t&&t.offsetX,y:t&&t.offsetY})})},remove:function(p,f){g.unregister(f.getZr(),"axisPointer"),S.superApply(this._model,"remove",arguments)},dispose:function(p,f){g.unregister("axisPointer",f),S.superApply(this._model,"dispose",arguments)}}),m=S;R.exports=m},"1MYJ":function(R,D,n){var y=n("y+Vt"),g=y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var m=this.__dirtyPath,p=this.shape.paths,f=0;f<p.length;f++)m=m||p[f].__dirtyPath;this.__dirtyPath=m,this.__dirty=this.__dirty||m},beforeBrush:function(){this._updatePathDirty();for(var m=this.shape.paths||[],p=this.getGlobalScale(),f=0;f<m.length;f++)m[f].path||m[f].createPathProxy(),m[f].path.setScale(p[0],p[1],m[f].segmentIgnoreThreshold)},buildPath:function(m,p){for(var f=p.paths||[],d=0;d<f.length;d++)f[d].buildPath(m,f[d].shape,!0)},afterBrush:function(){for(var m=this.shape.paths||[],p=0;p<m.length;p++)m[p].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),y.prototype.getBoundingRect.call(this)}});R.exports=g},"1NG9":function(R,D,n){var y=n("y+Vt"),g=n("QBsz"),S=n("iXp4"),m=g.min,p=g.max,f=g.scaleAndAdd,d=g.copy,l=[],a=[],i=[];function t(h){return isNaN(h[0])||isNaN(h[1])}function o(h,v,A,b,x,E,T,_,C,w,O){return w==="none"||!w?u.apply(this,arguments):e.apply(this,arguments)}function e(h,v,A,b,x,E,T,_,C,w,O){for(var I=0,k=A,M=0;M<b;M++){var U=v[k];if(k>=x||k<0)break;if(t(U)){if(O){k+=E;continue}break}if(k===A)h[E>0?"moveTo":"lineTo"](U[0],U[1]);else if(C>0){var P=v[I],X=w==="y"?1:0,F=(U[X]-P[X])*C;d(a,P),a[X]=P[X]+F,d(i,U),i[X]=U[X]-F,h.bezierCurveTo(a[0],a[1],i[0],i[1],U[0],U[1])}else h.lineTo(U[0],U[1]);I=k,k+=E}return M}function u(h,v,A,b,x,E,T,_,C,w,O){for(var I=0,k=A,M=0;M<b;M++){var U=v[k];if(k>=x||k<0)break;if(t(U)){if(O){k+=E;continue}break}if(k===A)h[E>0?"moveTo":"lineTo"](U[0],U[1]),d(a,U);else if(C>0){var P=k+E,X=v[P];if(O)for(;X&&t(v[P]);)P+=E,X=v[P];var F=.5,j=v[I],X=v[P];if(!X||t(X))d(i,U);else{t(X)&&!O&&(X=U),g.sub(l,X,j);var K,z;if(w==="x"||w==="y"){var V=w==="x"?0:1;K=Math.abs(U[V]-j[V]),z=Math.abs(U[V]-X[V])}else K=g.dist(U,j),z=g.dist(U,X);F=z/(z+K),f(i,U,l,-C*(1-F))}m(a,a,_),p(a,a,T),m(i,i,_),p(i,i,T),h.bezierCurveTo(a[0],a[1],i[0],i[1],U[0],U[1]),f(a,U,l,C*F)}else h.lineTo(U[0],U[1]);I=k,k+=E}return M}function r(h,v){var A=[Infinity,Infinity],b=[-Infinity,-Infinity];if(v)for(var x=0;x<h.length;x++){var E=h[x];E[0]<A[0]&&(A[0]=E[0]),E[1]<A[1]&&(A[1]=E[1]),E[0]>b[0]&&(b[0]=E[0]),E[1]>b[1]&&(b[1]=E[1])}return{min:v?A:b,max:v?b:A}}var s=y.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:S(y.prototype.brush),buildPath:function(h,v){var A=v.points,b=0,x=A.length,E=r(A,v.smoothConstraint);if(v.connectNulls){for(;x>0&&t(A[x-1]);x--);for(;b<x&&t(A[b]);b++);}for(;b<x;)b+=o(h,A,b,x,x,1,E.min,E.max,v.smooth,v.smoothMonotone,v.connectNulls)+1}}),c=y.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:S(y.prototype.brush),buildPath:function(h,v){var A=v.points,b=v.stackedOnPoints,x=0,E=A.length,T=v.smoothMonotone,_=r(A,v.smoothConstraint),C=r(b,v.smoothConstraint);if(v.connectNulls){for(;E>0&&t(A[E-1]);E--);for(;x<E&&t(A[x]);x++);}for(;x<E;){var w=o(h,A,x,E,E,1,_.min,_.max,v.smooth,T,v.connectNulls);o(h,b,x+w-1,w,E,-1,C.min,C.max,v.stackedOnSmooth,T,v.connectNulls),x+=w+1,h.closePath()}}});D.Polyline=s,D.Polygon=c},"1RvN":function(R,D){var n=function(){this.head=null,this.tail=null,this._len=0},y=n.prototype;y.insert=function(f){var d=new g(f);return this.insertEntry(d),d},y.insertEntry=function(f){this.head?(this.tail.next=f,f.prev=this.tail,f.next=null,this.tail=f):this.head=this.tail=f,this._len++},y.remove=function(f){var d=f.prev,l=f.next;d?d.next=l:this.head=l,l?l.prev=d:this.tail=d,f.next=f.prev=null,this._len--},y.len=function(){return this._len},y.clear=function(){this.head=this.tail=null,this._len=0};var g=function(d){this.value=d,this.next,this.prev},S=function(d){this._list=new n,this._map={},this._maxSize=d||10,this._lastRemovedEntry=null},m=S.prototype;m.put=function(f,d){var l=this._list,a=this._map,i=null;if(a[f]==null){var t=l.len(),o=this._lastRemovedEntry;if(t>=this._maxSize&&t>0){var e=l.head;l.remove(e),delete a[e.key],i=e.value,this._lastRemovedEntry=e}o?o.value=d:o=new g(d),o.key=f,l.insertEntry(o),a[f]=o}return i},m.get=function(f){var d=this._map[f],l=this._list;if(d!=null)return d!==l.tail&&(l.remove(d),l.insertEntry(d)),d.value},m.clear=function(){this._list.clear(),this._map={}};var p=S;R.exports=p},"1bdT":function(R,D,n){var y=n("3gBT"),g=n("H6uX"),S=n("DN4a"),m=n("vWvF"),p=n("bYtY"),f=function(a){S.call(this,a),g.call(this,a),m.call(this,a),this.id=a.id||y()};f.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(a,i){switch(this.draggable){case"horizontal":i=0;break;case"vertical":a=0;break}var t=this.transform;t||(t=this.transform=[1,0,0,1,0,0]),t[4]+=a,t[5]+=i,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(a,i){},attrKV:function(a,i){if(a==="position"||a==="scale"||a==="origin"){if(i){var t=this[a];t||(t=this[a]=[]),t[0]=i[0],t[1]=i[1]}}else this[a]=i},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(a,i){if(typeof a=="string")this.attrKV(a,i);else if(p.isObject(a))for(var t in a)a.hasOwnProperty(t)&&this.attrKV(t,a[t]);return this.dirty(!1),this},setClipPath:function(a){var i=this.__zr;i&&a.addSelfToZr(i),this.clipPath&&this.clipPath!==a&&this.removeClipPath(),this.clipPath=a,a.__zr=i,a.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var a=this.clipPath;a&&(a.__zr&&a.removeSelfFromZr(a.__zr),a.__zr=null,a.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(a){this.__zr=a;var i=this.animators;if(i)for(var t=0;t<i.length;t++)a.animation.addAnimator(i[t]);this.clipPath&&this.clipPath.addSelfToZr(a)},removeSelfFromZr:function(a){this.__zr=null;var i=this.animators;if(i)for(var t=0;t<i.length;t++)a.animation.removeAnimator(i[t]);this.clipPath&&this.clipPath.removeSelfFromZr(a)}},p.mixin(f,m),p.mixin(f,S),p.mixin(f,g);var d=f;R.exports=d},"1dTM":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("GQ8N"),g=w(n("Lo0S")),S=n("VSMT"),m=n("GdRQ"),p=n("SZEN"),f=n("vewr"),d=_(n("YJ9k")),l=_(n("MZdM")),a=_(n("ItS6")),i=_(n("whVF")),t=_(n("Fv0C")),o=_(n("LCi9")),e=_(n("rwxt")),u=_(n("Mmt2")),r=_(n("iUHT")),s=_(n("mHUz")),c=_(n("P2ho")),h=n("NBmB");n("mdZa");var v=_(n("34/K")),A=_(n("hXwI")),b=_(n("SgaC")),x=_(n("3690")),E=_(n("8K/p")),T=_(n("xO64"));function _(de){return de&&de.__esModule?de:{default:de}}function C(){if(typeof WeakMap!="function")return null;var de=new WeakMap;return C=function(){return de},de}function w(de){if(de&&de.__esModule)return de;if(de===null||O(de)!=="object"&&typeof de!="function")return{default:de};var be=C();if(be&&be.has(de))return be.get(de);var Te={},Be=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var fe in de)if(Object.prototype.hasOwnProperty.call(de,fe)){var xe=Be?Object.getOwnPropertyDescriptor(de,fe):null;xe&&(xe.get||xe.set)?Object.defineProperty(Te,fe,xe):Te[fe]=de[fe]}return Te.default=de,be&&be.set(de,Te),Te}function O(de){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Te){return typeof Te}:O=function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},O(de)}function I(de,be){if(!(de instanceof be))throw new TypeError("Cannot call a class as a function")}function k(de,be){for(var Te=0;Te<be.length;Te++){var Be=be[Te];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(de,Be.key,Be)}}function M(de,be,Te){return be&&k(de.prototype,be),Te&&k(de,Te),de}function U(de,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function");de.prototype=Object.create(be&&be.prototype,{constructor:{value:de,writable:!0,configurable:!0}}),be&&P(de,be)}function P(de,be){return P=Object.setPrototypeOf||function(Be,fe){return Be.__proto__=fe,Be},P(de,be)}function X(de){var be=K();return function(){var Be=z(de),fe;if(be){var xe=z(this).constructor;fe=Reflect.construct(Be,arguments,xe)}else fe=Be.apply(this,arguments);return F(this,fe)}}function F(de,be){return be&&(O(be)==="object"||typeof be=="function")?be:j(de)}function j(de){if(de===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}function K(){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}}function z(de){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(Te){return Te.__proto__||Object.getPrototypeOf(Te)},z(de)}var V=3,Q="rgb(40, 40, 40)",G=17,te=50,q=19,se=75,re=50,we=1e3,Oe=50,Me=1,Qe=1<<1,Ve=1<<2,dt=1<<3,Fe=1<<4,ue=1<<24,et=1<<25,he=1<<26,J=1<<27,Y=1<<28,$=function(de){U(Te,de);var be=X(Te);function Te(Be,fe,xe){var ke;if(I(this,Te),!Be)throw new Error("Must specify target");if(!fe)throw new Error("Must specify URL");ke=be.call(this),ke._target=Be,ke._url=fe,xe=xe||{},ke._rfbCredentials=xe.credentials||{},ke._shared="shared"in xe?!!xe.shared:!0,ke._repeaterID=xe.repeaterID||"",ke._wsProtocols=xe.wsProtocols||[],ke._rfbConnectionState="",ke._rfbInitState="",ke._rfbAuthScheme=-1,ke._rfbCleanDisconnect=!0,ke._rfbVersion=0,ke._rfbMaxVersion=3.8,ke._rfbTightVNC=!1,ke._rfbVeNCryptState=0,ke._rfbXvpVer=0,ke._fbWidth=0,ke._fbHeight=0,ke._fbName="",ke._capabilities={power:!1},ke._supportsFence=!1,ke._supportsContinuousUpdates=!1,ke._enabledContinuousUpdates=!1,ke._supportsSetDesktopSize=!1,ke._screenID=0,ke._screenFlags=0,ke._qemuExtKeyEventSupported=!1,ke._clipboardText=null,ke._clipboardServerCapabilitiesActions={},ke._clipboardServerCapabilitiesFormats={},ke._sock=null,ke._display=null,ke._flushing=!1,ke._keyboard=null,ke._gestures=null,ke._disconnTimer=null,ke._resizeTimeout=null,ke._mouseMoveTimer=null,ke._decoders={},ke._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},ke._mousePos={},ke._mouseButtonMask=0,ke._mouseLastMoveTime=0,ke._viewportDragging=!1,ke._viewportDragPos={},ke._viewportHasMoved=!1,ke._accumulatedWheelDeltaX=0,ke._accumulatedWheelDeltaY=0,ke._gestureLastTapTime=null,ke._gestureFirstDoubleTapEv=null,ke._gestureLastMagnitudeX=0,ke._gestureLastMagnitudeY=0,ke._eventHandlers={focusCanvas:ke._focusCanvas.bind(j(ke)),windowResize:ke._windowResize.bind(j(ke)),handleMouse:ke._handleMouse.bind(j(ke)),handleWheel:ke._handleWheel.bind(j(ke)),handleGesture:ke._handleGesture.bind(j(ke))},g.Debug(">> RFB.constructor"),ke._screen=document.createElement("div"),ke._screen.style.display="flex",ke._screen.style.width="100%",ke._screen.style.height="100%",ke._screen.style.overflow="auto",ke._screen.style.background=Q,ke._canvas=document.createElement("canvas"),ke._canvas.style.margin="auto",ke._canvas.style.outline="none",ke._canvas.style.flexShrink="0",ke._canvas.width=0,ke._canvas.height=0,ke._canvas.tabIndex=-1,ke._screen.appendChild(ke._canvas),ke._cursor=new e.default,ke._cursorImage=Te.cursors.none,ke._decoders[h.encodings.encodingRaw]=new v.default,ke._decoders[h.encodings.encodingCopyRect]=new A.default,ke._decoders[h.encodings.encodingRRE]=new b.default,ke._decoders[h.encodings.encodingHextile]=new x.default,ke._decoders[h.encodings.encodingTight]=new E.default,ke._decoders[h.encodings.encodingTightPNG]=new T.default;try{ke._display=new l.default(ke._canvas)}catch(nt){throw g.Error("Display exception: "+nt),nt}return ke._display.onflush=ke._onFlush.bind(j(ke)),ke._keyboard=new t.default(ke._canvas),ke._keyboard.onkeyevent=ke._handleKeyEvent.bind(j(ke)),ke._gestures=new o.default,ke._sock=new u.default,ke._sock.on("message",function(){ke._handleMessage()}),ke._sock.on("open",function(){ke._rfbConnectionState==="connecting"&&ke._rfbInitState===""?(ke._rfbInitState="ProtocolVersion",g.Debug("Starting VNC handshake")):ke._fail("Unexpected server connection while "+ke._rfbConnectionState)}),ke._sock.on("close",function(nt){g.Debug("WebSocket on-close event");var Ct="";nt.code&&(Ct="(code: "+nt.code,nt.reason&&(Ct+=", reason: "+nt.reason),Ct+=")");switch(ke._rfbConnectionState){case"connecting":ke._fail("Connection closed "+Ct);break;case"connected":ke._updateConnectionState("disconnecting"),ke._updateConnectionState("disconnected");break;case"disconnecting":ke._updateConnectionState("disconnected");break;case"disconnected":ke._fail("Unexpected server disconnect when already disconnected "+Ct);break;default:ke._fail("Unexpected server disconnect before connecting "+Ct);break}ke._sock.off("close")}),ke._sock.on("error",function(nt){return g.Warn("WebSocket on-error event")}),setTimeout(ke._updateConnectionState.bind(j(ke),"connecting")),g.Debug("<< RFB.constructor"),ke.dragViewport=!1,ke.focusOnClick=!0,ke._viewOnly=!1,ke._clipViewport=!1,ke._scaleViewport=!1,ke._resizeSession=!1,ke._showDotCursor=!1,xe.showDotCursor!==void 0&&(g.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),ke._showDotCursor=xe.showDotCursor),ke._qualityLevel=6,ke._compressionLevel=2,ke}return M(Te,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(fe){this._rfbCredentials=fe,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;g.Info("Sending Ctrl-Alt-Del"),this.sendKey(s.default.XK_Control_L,"ControlLeft",!0),this.sendKey(s.default.XK_Alt_L,"AltLeft",!0),this.sendKey(s.default.XK_Delete,"Delete",!0),this.sendKey(s.default.XK_Delete,"Delete",!1),this.sendKey(s.default.XK_Alt_L,"AltLeft",!1),this.sendKey(s.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(fe,xe,ke){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(ke===void 0){this.sendKey(fe,xe,!0),this.sendKey(fe,xe,!1);return}var nt=c.default[xe];if(this._qemuExtKeyEventSupported&&nt)fe=fe||0,g.Info("Sending key ("+(ke?"down":"up")+"): keysym "+fe+", scancode "+nt),Te.messages.QEMUExtendedKeyEvent(this._sock,fe,ke,nt);else{if(!fe)return;g.Info("Sending keysym ("+(ke?"down":"up")+"): "+fe),Te.messages.keyEvent(this._sock,fe,ke?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(fe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[Me]&&this._clipboardServerCapabilitiesActions[J])this._clipboardText=fe,Te.messages.extendedClipboardNotify(this._sock,[Me]);else{for(var xe=new Uint8Array(fe.length),ke=0;ke<fe.length;ke++)xe[ke]=fe.charCodeAt(ke);Te.messages.clientCutText(this._sock,xe)}}},{key:"_connect",value:function(){g.Debug(">> RFB.connect"),g.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(fe){fe.name==="SyntaxError"?this._fail("Invalid host or port ("+fe+")"):this._fail("Error when opening socket ("+fe+")")}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),g.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){g.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(fe){if(!(fe.name==="NotFoundError"))throw fe}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),g.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(fe){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(fe){this._fbName=fe,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(fe){var xe=this;window.requestAnimationFrame(function(){xe._updateClip(),xe._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var fe=this._display.clipViewport,xe=this._clipViewport;if(this._scaleViewport&&(xe=!1),fe!==xe&&(this._display.clipViewport=xe),xe){var ke=this._screenSize();this._display.viewportChangeSize(ke.w,ke.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var fe=this._screenSize();this._display.autoscale(fe.w,fe.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var fe=this._screenSize();Te.messages.setDesktopSize(this._sock,Math.floor(fe.w),Math.floor(fe.h),this._screenID,this._screenFlags),g.Debug("Requested new desktop size: "+fe.w+"x"+fe.h)}},{key:"_screenSize",value:function(){var fe=this._screen.getBoundingClientRect();return{w:fe.width,h:fe.height}}},{key:"_fixScrollbars",value:function(){var fe=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=fe}},{key:"_updateConnectionState",value:function(fe){var xe=this,ke=this._rfbConnectionState;if(fe===ke){g.Debug("Already in state '"+fe+"', ignoring");return}if(ke==="disconnected"){g.Error("Tried changing state of a disconnected RFB object");return}switch(fe){case"connected":if(ke!=="connecting"){g.Error("Bad transition to connected state, previous connection state: "+ke);return}break;case"disconnected":if(ke!=="disconnecting"){g.Error("Bad transition to disconnected state, previous connection state: "+ke);return}break;case"connecting":if(ke!==""){g.Error("Bad transition to connecting state, previous connection state: "+ke);return}break;case"disconnecting":if(ke!=="connected"&&ke!=="connecting"){g.Error("Bad transition to disconnecting state, previous connection state: "+ke);return}break;default:g.Error("Unknown connection state: "+fe);return}this._rfbConnectionState=fe,g.Debug("New state '"+fe+"', was '"+ke+"'."),this._disconnTimer&&fe!=="disconnecting"&&(g.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(fe){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){g.Error("Disconnection timed out."),xe._updateConnectionState("disconnected")},V*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(fe){switch(this._rfbConnectionState){case"disconnecting":g.Error("Failed when disconnecting: "+fe);break;case"connected":g.Error("Failed while connected: "+fe);break;case"connecting":g.Error("Failed when connecting: "+fe);break;default:g.Error("RFB failure: "+fe);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(fe,xe){this._capabilities[fe]=xe,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){g.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":g.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(fe,xe,ke){this.sendKey(fe,xe,ke)}},{key:"_handleMouse",value:function(fe){if(fe.type==="click"&&fe.target!==this._canvas)return;if(fe.stopPropagation(),fe.preventDefault(),fe.type==="click"||fe.type==="contextmenu")return;var xe=(0,p.clientToElement)(fe.clientX,fe.clientY,this._canvas);switch(fe.type){case"mousedown":(0,f.setCapture)(this._canvas),this._handleMouseButton(xe.x,xe.y,!0,1<<fe.button);break;case"mouseup":this._handleMouseButton(xe.x,xe.y,!1,1<<fe.button);break;case"mousemove":this._handleMouseMove(xe.x,xe.y);break}}},{key:"_handleMouseButton",value:function(fe,xe,ke,nt){if(this.dragViewport)if(ke&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:fe,y:xe},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(fe,xe,nt)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(fe,xe,this._mouseButtonMask)),ke?this._mouseButtonMask|=nt:this._mouseButtonMask&=~nt,this._sendMouse(fe,xe,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(fe,xe){var ke=this;if(this._viewportDragging){var nt=this._viewportDragPos.x-fe,Ct=this._viewportDragPos.y-xe;(this._viewportHasMoved||Math.abs(nt)>m.dragThreshold||Math.abs(Ct)>m.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:fe,y:xe},this._display.viewportChangePos(nt,Ct));return}if(this._mousePos={x:fe,y:xe},this._mouseMoveTimer==null){var pt=Date.now()-this._mouseLastMoveTime;pt>G?(this._sendMouse(fe,xe,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){ke._handleDelayedMouseMove()},G-pt)}}},{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(fe,xe,ke){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Te.messages.pointerEvent(this._sock,this._display.absX(fe),this._display.absY(xe),ke)}},{key:"_handleWheel",value:function(fe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;fe.stopPropagation(),fe.preventDefault();var xe=(0,p.clientToElement)(fe.clientX,fe.clientY,this._canvas),ke=fe.deltaX,nt=fe.deltaY;fe.deltaMode!==0&&(ke*=q,nt*=q),this._accumulatedWheelDeltaX+=ke,this._accumulatedWheelDeltaY+=nt,Math.abs(this._accumulatedWheelDeltaX)>=te&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(xe.x,xe.y,!0,1<<5),this._handleMouseButton(xe.x,xe.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(xe.x,xe.y,!0,1<<6),this._handleMouseButton(xe.x,xe.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=te&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(xe.x,xe.y,!0,1<<3),this._handleMouseButton(xe.x,xe.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(xe.x,xe.y,!0,1<<4),this._handleMouseButton(xe.x,xe.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(fe,xe,ke){this._handleMouseMove(xe,ke),this._cursor.move(fe.detail.clientX,fe.detail.clientY)}},{key:"_handleTapEvent",value:function(fe,xe){var ke=(0,p.clientToElement)(fe.detail.clientX,fe.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<we&&this._gestureFirstDoubleTapEv.detail.type===fe.detail.type){var nt=this._gestureFirstDoubleTapEv.detail.clientX-fe.detail.clientX,Ct=this._gestureFirstDoubleTapEv.detail.clientY-fe.detail.clientY,pt=Math.hypot(nt,Ct);pt<Oe?ke=(0,p.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=fe}else this._gestureFirstDoubleTapEv=fe;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,ke.x,ke.y),this._handleMouseButton(ke.x,ke.y,!0,xe),this._handleMouseButton(ke.x,ke.y,!1,xe)}},{key:"_handleGesture",value:function(fe){var xe,ke=(0,p.clientToElement)(fe.detail.clientX,fe.detail.clientY,this._canvas);switch(fe.type){case"gesturestart":switch(fe.detail.type){case"onetap":this._handleTapEvent(fe,1);break;case"twotap":this._handleTapEvent(fe,4);break;case"threetap":this._handleTapEvent(fe,2);break;case"drag":this._fakeMouseMove(fe,ke.x,ke.y),this._handleMouseButton(ke.x,ke.y,!0,1);break;case"longpress":this._fakeMouseMove(fe,ke.x,ke.y),this._handleMouseButton(ke.x,ke.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=fe.detail.magnitudeX,this._gestureLastMagnitudeY=fe.detail.magnitudeY,this._fakeMouseMove(fe,ke.x,ke.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(fe.detail.magnitudeX,fe.detail.magnitudeY),this._fakeMouseMove(fe,ke.x,ke.y);break}break;case"gesturemove":switch(fe.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(fe,ke.x,ke.y);break;case"twodrag":for(this._fakeMouseMove(fe,ke.x,ke.y);fe.detail.magnitudeY-this._gestureLastMagnitudeY>re;)this._handleMouseButton(ke.x,ke.y,!0,8),this._handleMouseButton(ke.x,ke.y,!1,8),this._gestureLastMagnitudeY+=re;for(;fe.detail.magnitudeY-this._gestureLastMagnitudeY<-re;)this._handleMouseButton(ke.x,ke.y,!0,16),this._handleMouseButton(ke.x,ke.y,!1,16),this._gestureLastMagnitudeY-=re;for(;fe.detail.magnitudeX-this._gestureLastMagnitudeX>re;)this._handleMouseButton(ke.x,ke.y,!0,32),this._handleMouseButton(ke.x,ke.y,!1,32),this._gestureLastMagnitudeX+=re;for(;fe.detail.magnitudeX-this._gestureLastMagnitudeX<-re;)this._handleMouseButton(ke.x,ke.y,!0,64),this._handleMouseButton(ke.x,ke.y,!1,64),this._gestureLastMagnitudeX-=re;break;case"pinch":if(this._fakeMouseMove(fe,ke.x,ke.y),xe=Math.hypot(fe.detail.magnitudeX,fe.detail.magnitudeY),Math.abs(xe-this._gestureLastMagnitudeX)>se){for(this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!0);xe-this._gestureLastMagnitudeX>se;)this._handleMouseButton(ke.x,ke.y,!0,8),this._handleMouseButton(ke.x,ke.y,!1,8),this._gestureLastMagnitudeX+=se;for(;xe-this._gestureLastMagnitudeX<-se;)this._handleMouseButton(ke.x,ke.y,!0,16),this._handleMouseButton(ke.x,ke.y,!1,16),this._gestureLastMagnitudeX-=se}this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(fe.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(fe,ke.x,ke.y),this._handleMouseButton(ke.x,ke.y,!1,1);break;case"longpress":this._fakeMouseMove(fe,ke.x,ke.y),this._handleMouseButton(ke.x,ke.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var fe=this._sock.rQshiftStr(12).substr(4,7);g.Info("Server ProtocolVersion: "+fe);var xe=0;switch(fe){case"000.000":xe=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 "+fe)}if(xe){for(var ke="ID:"+this._repeaterID;ke.length<250;)ke+="\0";return this._sock.sendString(ke),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var nt="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+nt+`
`),g.Debug("Sent ProtocolVersion: "+nt),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function fe(nt,Ct){for(var pt=0;pt<Ct.length;pt++)if(Ct[pt]===nt)return!0;return!1}if(this._rfbVersion>=3.7){var xe=this._sock.rQshift8();if(this._sock.rQwait("security type",xe,1))return!1;if(xe===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var ke=this._sock.rQshiftBytes(xe);if(g.Debug("Server security types: "+ke),fe(1,ke))this._rfbAuthScheme=1;else if(fe(22,ke))this._rfbAuthScheme=22;else if(fe(16,ke))this._rfbAuthScheme=16;else if(fe(2,ke))this._rfbAuthScheme=2;else if(fe(19,ke))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+ke+")");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",g.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var fe=this._sock.rQshift32(),xe="";if(fe>0){if(this._sock.rQwait("reason",fe,4))return!1;xe=this._sock.rQshiftStr(fe)}return xe!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:xe}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+xe+")")):(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 fe=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(fe),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var fe=this._sock.rQshift8(),xe=this._sock.rQshift8();if(!(fe==0&&xe==2))return this._fail("Unsupported VeNCrypt version "+fe+"."+xe);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var ke=this._sock.rQshift8();if(ke!=0)return this._fail("VeNCrypt failure "+ke);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var nt=this._sock.rQshift8();if(nt<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=nt,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var Ct=[],pt=0;pt<this._rfbVeNCryptSubtypesLength;pt++)Ct.push(this._sock.rQshift32());if(Ct.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 He=(0,S.encodeUTF8)(this._rfbCredentials.username),nr=(0,S.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,He.length]),this._sock.send([0,0,0,nr.length]),this._sock.sendString(He),this._sock.sendString(nr),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 fe=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),xe=Te.genDES(this._rfbCredentials.password,fe);return this._sock.send(xe),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(fe){for(var xe={0:{vendor:"TGHT",signature:"NOTUNNEL"}},ke={},nt=0;nt<fe;nt++){var Ct=this._sock.rQshift32(),pt=this._sock.rQshiftStr(4),He=this._sock.rQshiftStr(8);ke[Ct]={vendor:pt,signature:He}}return g.Debug("Server Tight tunnel types: "+ke),ke[1]&&ke[1].vendor==="SICR"&&ke[1].signature==="SCHANNEL"&&(g.Debug("Detected Siemens server. Assuming NOTUNNEL support."),ke[0]={vendor:"TGHT",signature:"NOTUNNEL"}),ke[0]?ke[0].vendor!=xe[0].vendor||ke[0].signature!=xe[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(g.Debug("Selected tunnel type: "+xe[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 fe=this._sock.rQshift32();if(fe>0&&this._sock.rQwait("tunnel capabilities",16*fe,4))return!1;if(this._rfbTightVNC=!0,fe>0)return this._negotiateTightTunnels(fe),!1}if(this._sock.rQwait("sub auth count",4))return!1;var xe=this._sock.rQshift32();if(xe===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*xe,4))return!1;for(var ke={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},nt=[],Ct=0;Ct<xe;Ct++){this._sock.rQshift32();var pt=this._sock.rQshiftStr(12);nt.push(pt)}g.Debug("Server Tight authentication types: "+nt);for(var He in ke)if(nt.indexOf(He)!=-1){this._sock.send([0,0,0,ke[He]]),g.Debug("Selected authentication type: "+He);switch(He){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: "+He+")")}}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 fe=this._sock.rQshift32();return fe===0?(this._rfbInitState="ClientInitialisation",g.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=fe,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:fe}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var fe=this._sock.rQshift16(),xe=this._sock.rQshift16(),ke=this._sock.rQshift8(),nt=this._sock.rQshift8(),Ct=this._sock.rQshift8(),pt=this._sock.rQshift8(),He=this._sock.rQshift16(),nr=this._sock.rQshift16(),ht=this._sock.rQshift16(),Gt=this._sock.rQshift8(),pr=this._sock.rQshift8(),Qt=this._sock.rQshift8();this._sock.rQskipBytes(3);var Ht=this._sock.rQshift32();if(this._sock.rQwait("server init name",Ht,24))return!1;var Jt=this._sock.rQshiftStr(Ht);if(Jt=(0,S.decodeUTF8)(Jt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Ht))return!1;var Ge=this._sock.rQshift16(),pe=this._sock.rQshift16(),oe=this._sock.rQshift16();this._sock.rQskipBytes(2);var ct=(Ge+pe+oe)*16;if(this._sock.rQwait("TightVNC extended server init header",ct,32+Ht))return!1;this._sock.rQskipBytes(16*Ge),this._sock.rQskipBytes(16*pe),this._sock.rQskipBytes(16*oe)}return g.Info("Screen: "+fe+"x"+xe+", bpp: "+ke+", depth: "+nt+", bigEndian: "+Ct+", trueColor: "+pt+", redMax: "+He+", greenMax: "+nr+", blueMax: "+ht+", redShift: "+Gt+", greenShift: "+pr+", blueShift: "+Qt),this._setDesktopName(Jt),this._resize(fe,xe),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(g.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Te.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Te.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var fe=[];fe.push(h.encodings.encodingCopyRect),this._fbDepth==24&&(fe.push(h.encodings.encodingTight),fe.push(h.encodings.encodingTightPNG),fe.push(h.encodings.encodingHextile),fe.push(h.encodings.encodingRRE)),fe.push(h.encodings.encodingRaw),fe.push(h.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),fe.push(h.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),fe.push(h.encodings.pseudoEncodingDesktopSize),fe.push(h.encodings.pseudoEncodingLastRect),fe.push(h.encodings.pseudoEncodingQEMUExtendedKeyEvent),fe.push(h.encodings.pseudoEncodingExtendedDesktopSize),fe.push(h.encodings.pseudoEncodingXvp),fe.push(h.encodings.pseudoEncodingFence),fe.push(h.encodings.pseudoEncodingContinuousUpdates),fe.push(h.encodings.pseudoEncodingDesktopName),fe.push(h.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(fe.push(h.encodings.pseudoEncodingVMwareCursor),fe.push(h.encodings.pseudoEncodingCursor)),Te.messages.clientEncodings(this._sock,fe)}},{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 g.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(g.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var fe=this._sock.rQshift32();if(fe=(0,y.toSigned32bit)(fe),this._sock.rQwait("ServerCutText content",Math.abs(fe),8))return!1;if(fe>=0){var xe=this._sock.rQshiftStr(fe);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:xe}}))}else{fe=Math.abs(fe);var ke=this._sock.rQshift32(),nt=ke&65535,Ct=ke&4278190080,pt=!!(Ct&ue);if(pt){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var He=0;He<=15;He++){var nr=1<<He;nt&nr&&(this._clipboardServerCapabilitiesFormats[nr]=!0,this._sock.rQshift32())}for(var ht=24;ht<=31;ht++){var Gt=1<<ht;this._clipboardServerCapabilitiesActions[Gt]=!!(Ct&Gt)}var pr=[ue,et,he,J,Y];Te.messages.extendedClipboardCaps(this._sock,pr,{extendedClipboardFormatText:0})}else if(Ct===et){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[Y]&&(nt&Me&&Te.messages.extendedClipboardProvide(this._sock,[Me],[this._clipboardText]))}else if(Ct===he){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[J]&&(this._clipboardText!=null?Te.messages.extendedClipboardNotify(this._sock,[Me]):Te.messages.extendedClipboardNotify(this._sock,[]))}else if(Ct===J){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[et]&&(nt&Me&&Te.messages.extendedClipboardRequest(this._sock,[Me]))}else if(Ct===Y){if(this._viewOnly)return!0;if(!(nt&Me))return!0;this._clipboardText=null;var Qt=this._sock.rQshiftBytes(fe-4),Ht=new a.default,Jt=null;Ht.setInput(Qt);for(var Ge=0;Ge<=15;Ge++){var pe=1<<Ge;if(nt&pe){var oe=0,ct=Ht.inflate(4);oe|=ct[0]<<24,oe|=ct[1]<<16,oe|=ct[2]<<8,oe|=ct[3];var qe=Ht.inflate(oe);pe===Me&&(Jt=qe)}}if(Ht.setInput(null),Jt!==null){for(var me="",Kt=0;Kt<Jt.length;Kt++)me+=String.fromCharCode(Jt[Kt]);Jt=me,Jt=(0,S.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: "+Ct)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var fe=this._sock.rQshift32(),xe=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",xe,9))return!1;xe>64&&(g.Warn("Bad payload length ("+xe+") in fence response"),xe=64);var ke=this._sock.rQshiftStr(xe);return this._supportsFence=!0,fe&1<<31?(fe&=1<<0|1<<1,Te.messages.clientFence(this._sock,fe,ke),!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 fe=this._sock.rQshift8(),xe=this._sock.rQshift8();switch(xe){case 0:g.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=fe,g.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+xe+")");break}return!0}},{key:"_normalMsg",value:function(){var fe;this._FBU.rects>0?fe=0:fe=this._sock.rQshift8();var xe,ke;switch(fe){case 0:return ke=this._framebufferUpdate(),ke&&!this._enabledContinuousUpdates&&Te.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),ke;case 1:return this._handleSetColourMapMsg();case 2:return g.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return xe=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,xe&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),g.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+fe+")"),g.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 fe=this._sock.rQshiftBytes(12);this._FBU.x=(fe[0]<<8)+fe[1],this._FBU.y=(fe[2]<<8)+fe[3],this._FBU.width=(fe[4]<<8)+fe[5],this._FBU.height=(fe[6]<<8)+fe[7],this._FBU.encoding=parseInt((fe[8]<<24)+(fe[9]<<16)+(fe[10]<<8)+fe[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 h.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case h.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case h.encodings.pseudoEncodingCursor:return this._handleCursor();case h.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var fe=document.createEvent("keyboardEvent");fe.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(xe){}return!0;case h.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case h.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case h.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var fe=this._FBU.x,xe=this._FBU.y,ke=this._FBU.width,nt=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var Ct=this._sock.rQshift8();this._sock.rQshift8();var pt,He=4;if(Ct==0){var nr=4294967040|0;if(pt=new Array(ke*nt*He),this._sock.rQwait("VMware cursor classic encoding",ke*nt*He*2,2))return!1;for(var ht=new Array(ke*nt),Gt=0;Gt<ke*nt;Gt++)ht[Gt]=this._sock.rQshift32();for(var pr=new Array(ke*nt),Qt=0;Qt<ke*nt;Qt++)pr[Qt]=this._sock.rQshift32();for(var Ht=0;Ht<ke*nt;Ht++)if(ht[Ht]==0){var Jt=pr[Ht],Ge=Jt>>8&255,pe=Jt>>16&255,oe=Jt>>24&255;pt[Ht*He]=Ge,pt[Ht*He+1]=pe,pt[Ht*He+2]=oe,pt[Ht*He+3]=255}else(ht[Ht]&nr)==nr?pr[Ht]==0?(pt[Ht*He]=0,pt[Ht*He+1]=0,pt[Ht*He+2]=0,pt[Ht*He+3]=0):((pr[Ht]&nr)==nr,pt[Ht*He]=0,pt[Ht*He+1]=0,pt[Ht*He+2]=0,pt[Ht*He+3]=255):(pt[Ht*He]=0,pt[Ht*He+1]=0,pt[Ht*He+2]=0,pt[Ht*He+3]=255)}else if(Ct==1){if(this._sock.rQwait("VMware cursor alpha encoding",ke*nt*4,2))return!1;pt=new Array(ke*nt*He);for(var ct=0;ct<ke*nt;ct++){var qe=this._sock.rQshift32();pt[ct*4]=qe>>24&255,pt[ct*4+1]=qe>>16&255,pt[ct*4+2]=qe>>8&255,pt[ct*4+3]=qe&255}}else return g.Warn("The given cursor type is not supported: "+Ct+" given."),!1;return this._updateCursor(pt,fe,xe,ke,nt),!0}},{key:"_handleCursor",value:function(){var fe=this._FBU.x,xe=this._FBU.y,ke=this._FBU.width,nt=this._FBU.height,Ct=ke*nt*4,pt=Math.ceil(ke/8)*nt,He=Ct+pt;if(this._sock.rQwait("cursor encoding",He))return!1;for(var nr=this._sock.rQshiftBytes(Ct),ht=this._sock.rQshiftBytes(pt),Gt=new Uint8Array(ke*nt*4),pr=0,Qt=0;Qt<nt;Qt++)for(var Ht=0;Ht<ke;Ht++){var Jt=Qt*Math.ceil(ke/8)+Math.floor(Ht/8),Ge=ht[Jt]<<Ht%8&128?255:0;Gt[pr]=nr[pr+2],Gt[pr+1]=nr[pr+1],Gt[pr+2]=nr[pr],Gt[pr+3]=Ge,pr+=4}return this._updateCursor(Gt,fe,xe,ke,nt),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var fe=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",fe,4))return!1;var xe=this._sock.rQshiftStr(fe);return xe=(0,S.decodeUTF8)(xe,!0),this._setDesktopName(xe),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var fe=this._sock.rQpeek8(),xe=4+fe*16;if(this._sock.rQwait("ExtendedDesktopSize",xe))return!1;var ke=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,ke&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var nt=0;nt<fe;nt+=1)nt===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 Ct="";switch(this._FBU.y){case 1:Ct="Resize is administratively prohibited";break;case 2:Ct="Out of resources";break;case 3:Ct="Invalid screen layout";break;default:Ct="Unknown reason";break}g.Warn("Server did not accept the resize request: "+Ct)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var fe=this._decoders[this._FBU.encoding];if(!fe)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return fe.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(xe){return this._fail("Error decoding rect: "+xe),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;Te.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(fe,xe){this._fbWidth=fe,this._fbHeight=xe,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(fe,xe){if(this._rfbXvpVer<fe)return;g.Info("Sending XVP operation "+xe+" (version "+fe+")"),Te.messages.xvpOp(this._sock,fe,xe)}},{key:"_updateCursor",value:function(fe,xe,ke,nt,Ct){this._cursorImage={rgbaPixels:fe,hotx:xe,hoty:ke,w:nt,h:Ct},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var fe=3;fe<this._cursorImage.rgbaPixels.length;fe+=4)if(this._cursorImage.rgbaPixels[fe])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var fe=this._shouldShowDotCursor()?Te.cursors.dot:this._cursorImage;this._cursor.change(fe.rgbaPixels,fe.hotx,fe.hoty,fe.w,fe.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(fe){this._viewOnly=fe,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(fe?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(fe){g.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(fe){this._clipViewport=fe,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(fe){this._scaleViewport=fe,fe&&this._clipViewport&&this._updateClip(),this._updateScale(),!fe&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(fe){this._resizeSession=fe,fe&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(fe){this._showDotCursor=fe,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(fe){this._screen.style.background=fe}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(fe){if(!Number.isInteger(fe)||fe<0||fe>9){g.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===fe)return;this._qualityLevel=fe,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(fe){if(!Number.isInteger(fe)||fe<0||fe>9){g.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===fe)return;this._compressionLevel=fe,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(fe,xe){var ke=fe.split("").map(function(nt){return nt.charCodeAt(0)});return new r.default(ke).encrypt(xe)}}]),Te}(d.default);D.default=$,$.messages={keyEvent:function(be,Te,Be){var fe=be._sQ,xe=be._sQlen;fe[xe]=4,fe[xe+1]=Be,fe[xe+2]=0,fe[xe+3]=0,fe[xe+4]=Te>>24,fe[xe+5]=Te>>16,fe[xe+6]=Te>>8,fe[xe+7]=Te,be._sQlen+=8,be.flush()},QEMUExtendedKeyEvent:function(be,Te,Be,fe){function xe(pt){var He=fe>>8,nr=fe&255;return He===224&&nr<127?nr|128:pt}var ke=be._sQ,nt=be._sQlen;ke[nt]=255,ke[nt+1]=0,ke[nt+2]=Be>>8,ke[nt+3]=Be,ke[nt+4]=Te>>24,ke[nt+5]=Te>>16,ke[nt+6]=Te>>8,ke[nt+7]=Te;var Ct=xe(fe);ke[nt+8]=Ct>>24,ke[nt+9]=Ct>>16,ke[nt+10]=Ct>>8,ke[nt+11]=Ct,be._sQlen+=12,be.flush()},pointerEvent:function(be,Te,Be,fe){var xe=be._sQ,ke=be._sQlen;xe[ke]=5,xe[ke+1]=fe,xe[ke+2]=Te>>8,xe[ke+3]=Te,xe[ke+4]=Be>>8,xe[ke+5]=Be,be._sQlen+=6,be.flush()},_buildExtendedClipboardFlags:function(be,Te){for(var Be=new Uint8Array(4),fe=0,xe=0,ke=0;ke<be.length;ke++)xe|=be[ke];for(var nt=0;nt<Te.length;nt++)fe|=Te[nt];return Be[0]=xe>>24,Be[1]=0,Be[2]=0,Be[3]=fe,Be},extendedClipboardProvide:function(be,Te,Be){for(var fe=new i.default,xe=[],ke=0;ke<Te.length;ke++){if(Te[ke]!=Me)throw new Error("Unsupported extended clipboard format for Provide message.");Be[ke]=Be[ke].replace(/\r\n|\r|\n/gm,`\r
`);var nt=(0,S.encodeUTF8)(Be[ke]+"\0");xe.push(nt.length>>24&255,nt.length>>16&255,nt.length>>8&255,nt.length&255);for(var Ct=0;Ct<nt.length;Ct++)xe.push(nt.charCodeAt(Ct))}var pt=fe.deflate(new Uint8Array(xe)),He=new Uint8Array(4+pt.length);He.set($.messages._buildExtendedClipboardFlags([Y],Te)),He.set(pt,4),$.messages.clientCutText(be,He,!0)},extendedClipboardNotify:function(be,Te){var Be=$.messages._buildExtendedClipboardFlags([J],Te);$.messages.clientCutText(be,Be,!0)},extendedClipboardRequest:function(be,Te){var Be=$.messages._buildExtendedClipboardFlags([et],Te);$.messages.clientCutText(be,Be,!0)},extendedClipboardCaps:function(be,Te,Be){var fe=Object.keys(Be),xe=new Uint8Array(4+4*fe.length);fe.map(function(Ct){return parseInt(Ct)}),fe.sort(function(Ct,pt){return Ct-pt}),xe.set($.messages._buildExtendedClipboardFlags(Te,[]));for(var ke=4,nt=0;nt<fe.length;nt++)xe[ke]=Be[fe[nt]]>>24,xe[ke+1]=Be[fe[nt]]>>16,xe[ke+2]=Be[fe[nt]]>>8,xe[ke+3]=Be[fe[nt]]>>0,ke+=4,xe[3]|=1<<fe[nt];$.messages.clientCutText(be,xe,!0)},clientCutText:function(be,Te){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,fe=be._sQ,xe=be._sQlen;fe[xe]=6,fe[xe+1]=0,fe[xe+2]=0,fe[xe+3]=0;var ke;Be?ke=(0,y.toUnsigned32bit)(-Te.length):ke=Te.length,fe[xe+4]=ke>>24,fe[xe+5]=ke>>16,fe[xe+6]=ke>>8,fe[xe+7]=ke,be._sQlen+=8;for(var nt=0,Ct=Te.length;Ct>0;){for(var pt=Math.min(Ct,be._sQbufferSize-be._sQlen),He=0;He<pt;He++)fe[be._sQlen+He]=Te[nt+He];be._sQlen+=pt,be.flush(),Ct-=pt,nt+=pt}},setDesktopSize:function(be,Te,Be,fe,xe){var ke=be._sQ,nt=be._sQlen;ke[nt]=251,ke[nt+1]=0,ke[nt+2]=Te>>8,ke[nt+3]=Te,ke[nt+4]=Be>>8,ke[nt+5]=Be,ke[nt+6]=1,ke[nt+7]=0,ke[nt+8]=fe>>24,ke[nt+9]=fe>>16,ke[nt+10]=fe>>8,ke[nt+11]=fe,ke[nt+12]=0,ke[nt+13]=0,ke[nt+14]=0,ke[nt+15]=0,ke[nt+16]=Te>>8,ke[nt+17]=Te,ke[nt+18]=Be>>8,ke[nt+19]=Be,ke[nt+20]=xe>>24,ke[nt+21]=xe>>16,ke[nt+22]=xe>>8,ke[nt+23]=xe,be._sQlen+=24,be.flush()},clientFence:function(be,Te,Be){var fe=be._sQ,xe=be._sQlen;fe[xe]=248,fe[xe+1]=0,fe[xe+2]=0,fe[xe+3]=0,fe[xe+4]=Te>>24,fe[xe+5]=Te>>16,fe[xe+6]=Te>>8,fe[xe+7]=Te;var ke=Be.length;fe[xe+8]=ke;for(var nt=0;nt<ke;nt++)fe[xe+9+nt]=Be.charCodeAt(nt);be._sQlen+=9+ke,be.flush()},enableContinuousUpdates:function(be,Te,Be,fe,xe,ke){var nt=be._sQ,Ct=be._sQlen;nt[Ct]=150,nt[Ct+1]=Te,nt[Ct+2]=Be>>8,nt[Ct+3]=Be,nt[Ct+4]=fe>>8,nt[Ct+5]=fe,nt[Ct+6]=xe>>8,nt[Ct+7]=xe,nt[Ct+8]=ke>>8,nt[Ct+9]=ke,be._sQlen+=10,be.flush()},pixelFormat:function(be,Te,Be){var fe=be._sQ,xe=be._sQlen,ke;Te>16?ke=32:Te>8?ke=16:ke=8;var nt=Math.floor(Te/3);fe[xe]=0,fe[xe+1]=0,fe[xe+2]=0,fe[xe+3]=0,fe[xe+4]=ke,fe[xe+5]=Te,fe[xe+6]=0,fe[xe+7]=Be?1:0,fe[xe+8]=0,fe[xe+9]=(1<<nt)-1,fe[xe+10]=0,fe[xe+11]=(1<<nt)-1,fe[xe+12]=0,fe[xe+13]=(1<<nt)-1,fe[xe+14]=nt*2,fe[xe+15]=nt*1,fe[xe+16]=nt*0,fe[xe+17]=0,fe[xe+18]=0,fe[xe+19]=0,be._sQlen+=20,be.flush()},clientEncodings:function(be,Te){var Be=be._sQ,fe=be._sQlen;Be[fe]=2,Be[fe+1]=0,Be[fe+2]=Te.length>>8,Be[fe+3]=Te.length;for(var xe=fe+4,ke=0;ke<Te.length;ke++){var nt=Te[ke];Be[xe]=nt>>24,Be[xe+1]=nt>>16,Be[xe+2]=nt>>8,Be[xe+3]=nt,xe+=4}be._sQlen+=xe-fe,be.flush()},fbUpdateRequest:function(be,Te,Be,fe,xe,ke){var nt=be._sQ,Ct=be._sQlen;typeof Be=="undefined"&&(Be=0),typeof fe=="undefined"&&(fe=0),nt[Ct]=3,nt[Ct+1]=Te?1:0,nt[Ct+2]=Be>>8&255,nt[Ct+3]=Be&255,nt[Ct+4]=fe>>8&255,nt[Ct+5]=fe&255,nt[Ct+6]=xe>>8&255,nt[Ct+7]=xe&255,nt[Ct+8]=ke>>8&255,nt[Ct+9]=ke&255,be._sQlen+=10,be.flush()},xvpOp:function(be,Te,Be){var fe=be._sQ,xe=be._sQlen;fe[xe]=250,fe[xe+1]=0,fe[xe+2]=Te,fe[xe+3]=Be,be._sQlen+=4,be.flush()}},$.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(R,D,n){(function(y){y(n("VrN/"))})(function(y){"use strict";var g={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},S={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(m,p){var f=m.indentUnit,d={},l=p.htmlMode?g:S;for(var a in l)d[a]=l[a];for(var a in p)d[a]=p[a];var i,t;function o(I,k){function M(X){return k.tokenize=X,X(I,k)}var U=I.next();if(U=="<")return I.eat("!")?I.eat("[")?I.match("CDATA[")?M(r("atom","]]>")):null:I.match("--")?M(r("comment","-->")):I.match("DOCTYPE",!0,!0)?(I.eatWhile(/[\w\._\-]/),M(s(1))):null:I.eat("?")?(I.eatWhile(/[\w\._\-]/),k.tokenize=r("meta","?>"),"meta"):(i=I.eat("/")?"closeTag":"openTag",k.tokenize=e,"tag bracket");if(U=="&"){var P;return I.eat("#")?I.eat("x")?P=I.eatWhile(/[a-fA-F\d]/)&&I.eat(";"):P=I.eatWhile(/[\d]/)&&I.eat(";"):P=I.eatWhile(/[\w\.\-:]/)&&I.eat(";"),P?"atom":"error"}else return I.eatWhile(/[^&<]/),null}o.isInText=!0;function e(I,k){var M=I.next();if(M==">"||M=="/"&&I.eat(">"))return k.tokenize=o,i=M==">"?"endTag":"selfcloseTag","tag bracket";if(M=="=")return i="equals",null;if(M=="<"){k.tokenize=o,k.state=A,k.tagName=k.tagStart=null;var U=k.tokenize(I,k);return U?U+" tag error":"tag error"}else return/[\'\"]/.test(M)?(k.tokenize=u(M),k.stringStartCol=I.column(),k.tokenize(I,k)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function u(I){var k=function(U,P){for(;!U.eol();)if(U.next()==I){P.tokenize=e;break}return"string"};return k.isInAttribute=!0,k}function r(I,k){return function(M,U){for(;!M.eol();){if(M.match(k)){U.tokenize=o;break}M.next()}return I}}function s(I){return function(k,M){for(var U;(U=k.next())!=null;){if(U=="<")return M.tokenize=s(I+1),M.tokenize(k,M);if(U==">")if(I==1){M.tokenize=o;break}else return M.tokenize=s(I-1),M.tokenize(k,M)}return"meta"}}function c(I,k,M){this.prev=I.context,this.tagName=k,this.indent=I.indented,this.startOfLine=M,(d.doNotIndent.hasOwnProperty(k)||I.context&&I.context.noIndent)&&(this.noIndent=!0)}function h(I){I.context&&(I.context=I.context.prev)}function v(I,k){for(var M;;){if(!I.context)return;if(M=I.context.tagName,!d.contextGrabbers.hasOwnProperty(M)||!d.contextGrabbers[M].hasOwnProperty(k))return;h(I)}}function A(I,k,M){return I=="openTag"?(M.tagStart=k.column(),b):I=="closeTag"?x:A}function b(I,k,M){return I=="word"?(M.tagName=k.current(),t="tag",_):d.allowMissingTagName&&I=="endTag"?(t="tag bracket",_(I,k,M)):(t="error",b)}function x(I,k,M){if(I=="word"){var U=k.current();return M.context&&M.context.tagName!=U&&d.implicitlyClosed.hasOwnProperty(M.context.tagName)&&h(M),M.context&&M.context.tagName==U||d.matchClosing===!1?(t="tag",E):(t="tag error",T)}else return d.allowMissingTagName&&I=="endTag"?(t="tag bracket",E(I,k,M)):(t="error",T)}function E(I,k,M){return I!="endTag"?(t="error",E):(h(M),A)}function T(I,k,M){return t="error",E(I,k,M)}function _(I,k,M){if(I=="word")return t="attribute",C;if(I=="endTag"||I=="selfcloseTag"){var U=M.tagName,P=M.tagStart;return M.tagName=M.tagStart=null,I=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(U)?v(M,U):(v(M,U),M.context=new c(M,U,P==M.indented)),A}return t="error",_}function C(I,k,M){return I=="equals"?w:(d.allowMissing||(t="error"),_(I,k,M))}function w(I,k,M){return I=="string"?O:I=="word"&&d.allowUnquoted?(t="string",_):(t="error",_(I,k,M))}function O(I,k,M){return I=="string"?O:_(I,k,M)}return{startState:function(k){var M={tokenize:o,state:A,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(M.baseIndent=k),M},token:function(k,M){if(!M.tagName&&k.sol()&&(M.indented=k.indentation()),k.eatSpace())return null;i=null;var U=M.tokenize(k,M);return(U||i)&&U!="comment"&&(t=null,M.state=M.state(i||U,k,M),t&&(U=t=="error"?U+" error":t)),U},indent:function(k,M,U){var P=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+f;if(P&&P.noIndent)return y.Pass;if(k.tokenize!=e&&k.tokenize!=o)return U?U.match(/^(\s*)/)[0].length:0;if(k.tagName)return d.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+f*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(M))return 0;var X=M&&/^<(\/)?([\w_:\.-]*)/.exec(M);if(X&&X[1])for(;P;)if(P.tagName==X[2]){P=P.prev;break}else if(d.implicitlyClosed.hasOwnProperty(P.tagName))P=P.prev;else break;else if(X)for(;P;){var F=d.contextGrabbers[P.tagName];if(F&&F.hasOwnProperty(X[2]))P=P.prev;else break}for(;P&&P.prev&&!P.startOfLine;)P=P.prev;return P?P.indent+f:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(k){k.state==w&&(k.state=_)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var M=[],U=k.context;U;U=U.prev)U.tagName&&M.push(U.tagName);return M.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1hJj":function(R,D,n){var y=n("e4Nc"),g=n("ftKO"),S=n("3A9y");function m(p){var f=-1,d=p==null?0:p.length;for(this.__data__=new y;++f<d;)this.add(p[f])}m.prototype.add=m.prototype.push=g,m.prototype.has=S,R.exports=m},"1n7x":function(R,D,n){(function(y,g){/*!
* html2pdf.js v0.10.1
* Copyright (c) 2021 Erik Koopmans
* Released under the MIT License.
*/(function(m,p){R.exports=p(n("dtIV"),n("wOnQ"))})(self,function(S,m){return function(){var p={"./src/plugin/hyperlinks.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),u=o.n(e),r=o("./node_modules/core-js/modules/es.string.link.js"),s=o.n(r),c=o("./src/worker.js"),h=o("./src/utils.js"),v=[],A={toContainer:c.default.prototype.toContainer,toPdf:c.default.prototype.toPdf};c.default.prototype.toContainer=function(){return A.toContainer.call(this).then(function(){if(this.opt.enableLinks){var E=this.prop.container,T=E.querySelectorAll("a"),_=(0,h.unitConvert)(E.getBoundingClientRect(),this.prop.pageSize.k);v=[],Array.prototype.forEach.call(T,function(C){for(var w=C.getClientRects(),O=0;O<w.length;O++){var I=(0,h.unitConvert)(w[O],this.prop.pageSize.k);I.left-=_.left,I.top-=_.top;var k=Math.floor(I.top/this.prop.pageSize.inner.height)+1,M=this.opt.margin[0]+I.top%this.prop.pageSize.inner.height,U=this.opt.margin[1]+I.left;v.push({page:k,top:M,left:U,clientRect:I,link:C})}},this)}})},c.default.prototype.toPdf=function(){return A.toPdf.call(this).then(function(){if(this.opt.enableLinks){v.forEach(function(T){this.prop.pdf.setPage(T.page),this.prop.pdf.link(T.left,T.top,T.clientRect.width,T.clientRect.height,{url:T.link.href})},this);var E=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(E)}})}},"./src/plugin/jspdf-plugin.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.symbol.js"),u=o.n(e),r=o("./node_modules/core-js/modules/es.symbol.description.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.object.to-string.js"),h=o.n(c),v=o("./node_modules/core-js/modules/es.symbol.iterator.js"),A=o.n(v),b=o("./node_modules/core-js/modules/es.array.iterator.js"),x=o.n(b),E=o("./node_modules/core-js/modules/es.string.iterator.js"),T=o.n(E),_=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),C=o.n(_),w=o("jspdf"),O=o.n(w);function I(k){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(U){return typeof U}:I=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},I(k)}w.jsPDF.getPageSize=function(k,M,U){if(I(k)==="object"){var P=k;k=P.orientation,M=P.unit||M,U=P.format||U}M=M||"mm",U=U||"a4",k=(""+(k||"P")).toLowerCase();var X=(""+U).toLowerCase(),F={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(M){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: "+M}if(F.hasOwnProperty(X))var K=F[X][1]/j,z=F[X][0]/j;else try{var K=U[1],z=U[0]}catch(G){throw new Error("Invalid format: "+U)}if(k==="p"||k==="portrait"){if(k="p",z>K){var V=z;z=K,K=V}}else if(k==="l"||k==="landscape"){if(k="l",K>z){var V=z;z=K,K=V}}else throw"Invalid orientation: "+k;var Q={width:z,height:K,unit:M,k:j};return Q},t.default=w.jsPDF},"./src/plugin/pagebreaks.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.array.concat.js"),u=o.n(e),r=o("./node_modules/core-js/modules/es.array.slice.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.array.join.js"),h=o.n(c),v=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),A=o.n(v),b=o("./node_modules/core-js/modules/es.object.keys.js"),x=o.n(b),E=o("./src/worker.js"),T=o("./src/utils.js"),_={toContainer:E.default.prototype.toContainer};E.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},E.default.prototype.toContainer=function(){return _.toContainer.call(this).then(function(){var O=this.prop.container,I=this.prop.pageSize.inner.px.height,k=[].concat(this.opt.pagebreak.mode),M={avoidAll:k.indexOf("avoid-all")!==-1,css:k.indexOf("css")!==-1,legacy:k.indexOf("legacy")!==-1},U={},P=this;["before","after","avoid"].forEach(function(j){var K=M.avoidAll&&j==="avoid";U[j]=K?[]:[].concat(P.opt.pagebreak[j]||[]),U[j].length>0&&(U[j]=Array.prototype.slice.call(O.querySelectorAll(U[j].join(", "))))});var X=O.querySelectorAll(".html2pdf__page-break");X=Array.prototype.slice.call(X);var F=O.querySelectorAll("*");Array.prototype.forEach.call(F,function(K){var z={before:!1,after:M.legacy&&X.indexOf(K)!==-1,avoid:M.avoidAll};if(M.css){var V=window.getComputedStyle(K),Q=["always","page","left","right"],G=["avoid","avoid-page"];z={before:z.before||Q.indexOf(V.breakBefore||V.pageBreakBefore)!==-1,after:z.after||Q.indexOf(V.breakAfter||V.pageBreakAfter)!==-1,avoid:z.avoid||G.indexOf(V.breakInside||V.pageBreakInside)!==-1}}Object.keys(z).forEach(function(Oe){z[Oe]=z[Oe]||U[Oe].indexOf(K)!==-1});var te=K.getBoundingClientRect();if(z.avoid&&!z.before){var q=Math.floor(te.top/I),se=Math.floor(te.bottom/I),re=Math.abs(te.bottom-te.top)/I;se!==q&&re<=1&&(z.before=!0)}if(z.before){var we=(0,T.createElement)("div",{style:{display:"block",height:I-te.top%I+"px"}});K.parentNode.insertBefore(we,K)}if(z.after){var we=(0,T.createElement)("div",{style:{display:"block",height:I-te.bottom%I+"px"}});K.parentNode.insertBefore(we,K.nextSibling)}})})}},"./src/utils.js":function(i,t,o){"use strict";o.r(t),o.d(t,{objType:function(){return k},createElement:function(){return M},cloneNode:function(){return U},unitConvert:function(){return P},toPx:function(){return X}});var e=o("./node_modules/core-js/modules/es.number.constructor.js"),u=o.n(e),r=o("./node_modules/core-js/modules/es.symbol.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.symbol.description.js"),h=o.n(c),v=o("./node_modules/core-js/modules/es.object.to-string.js"),A=o.n(v),b=o("./node_modules/core-js/modules/es.symbol.iterator.js"),x=o.n(b),E=o("./node_modules/core-js/modules/es.array.iterator.js"),T=o.n(E),_=o("./node_modules/core-js/modules/es.string.iterator.js"),C=o.n(_),w=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),O=o.n(w);function I(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(K){return typeof K}:I=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},I(F)}var k=function(j){var K=I(j);return K==="undefined"?"undefined":K==="string"||j instanceof String?"string":K==="number"||j instanceof Number?"number":K==="function"||j instanceof Function?"function":!!j&&j.constructor===Array?"array":j&&j.nodeType===1?"element":K==="object"?"object":"unknown"},M=function(j,K){var z=document.createElement(j);if(K.className&&(z.className=K.className),K.innerHTML){z.innerHTML=K.innerHTML;for(var V=z.getElementsByTagName("script"),Q=V.length;Q-- >0;null)V[Q].parentNode.removeChild(V[Q])}for(var G in K.style)z.style[G]=K.style[G];return z},U=function F(j,K){for(var z=j.nodeType===3?document.createTextNode(j.nodeValue):j.cloneNode(!1),V=j.firstChild;V;V=V.nextSibling)(K===!0||V.nodeType!==1||V.nodeName!=="SCRIPT")&&z.appendChild(F(V,K));return j.nodeType===1&&(j.nodeName==="CANVAS"?(z.width=j.width,z.height=j.height,z.getContext("2d").drawImage(j,0,0)):(j.nodeName==="TEXTAREA"||j.nodeName==="SELECT")&&(z.value=j.value),z.addEventListener("load",function(){z.scrollTop=j.scrollTop,z.scrollLeft=j.scrollLeft},!0)),z},P=function(j,K){if(k(j)==="number")return j*72/96/K;var z={};for(var V in j)z[V]=j[V]*72/96/K;return z},X=function(j,K){return Math.floor(j*K/72*96)}},"./src/worker.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.object.assign.js"),u=o.n(e),r=o("./node_modules/core-js/modules/es.array.map.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.object.keys.js"),h=o.n(c),v=o("./node_modules/core-js/modules/es.array.concat.js"),A=o.n(v),b=o("./node_modules/core-js/modules/es.object.to-string.js"),x=o.n(b),E=o("./node_modules/core-js/modules/es.regexp.to-string.js"),T=o.n(E),_=o("./node_modules/core-js/modules/es.function.name.js"),C=o.n(_),w=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),O=o.n(w),I=o("jspdf"),k=o.n(I),M=o("html2canvas"),U=o.n(M),P=o("./src/utils.js"),X=o("./node_modules/es6-promise/dist/es6-promise.js"),F=o.n(X),j=F().Promise,K=function z(V){var Q=Object.assign(z.convert(j.resolve()),JSON.parse(JSON.stringify(z.template))),G=z.convert(j.resolve(),Q);return G=G.setProgress(1,z,1,[z]),G=G.set(V),G};K.prototype=Object.create(j.prototype),K.prototype.constructor=K,K.convert=function(V,Q){return V.__proto__=Q||K.prototype,V},K.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:{}}},K.prototype.from=function(V,Q){function G(te){switch((0,P.objType)(te)){case"string":return"string";case"element":return te.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){Q=Q||G(V);switch(Q){case"string":return this.set({src:(0,P.createElement)("div",{innerHTML:V})});case"element":return this.set({src:V});case"canvas":return this.set({canvas:V});case"img":return this.set({img:V});default:return this.error("Unknown source type.")}})},K.prototype.to=function(V){switch(V){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.")}},K.prototype.toContainer=function(){var V=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(V).then(function(){var G={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},te={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};G.opacity=0;var q=(0,P.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,P.createElement)("div",{className:"html2pdf__overlay",style:G}),this.prop.container=(0,P.createElement)("div",{className:"html2pdf__container",style:te}),this.prop.container.appendChild(q),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},K.prototype.toCanvas=function(){var V=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(V).then(function(){var G=Object.assign({},this.opt.html2canvas);return delete G.onrendered,M(this.prop.container,G)}).then(function(G){var te=this.opt.html2canvas.onrendered||function(){};te(G),this.prop.canvas=G,document.body.removeChild(this.prop.overlay)})},K.prototype.toImg=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var G=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=G})},K.prototype.toPdf=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var G=this.prop.canvas,te=this.opt,q=G.height,se=Math.floor(G.width*this.prop.pageSize.inner.ratio),re=Math.ceil(q/se),we=this.prop.pageSize.inner.height,Oe=document.createElement("canvas"),Me=Oe.getContext("2d");Oe.width=G.width,Oe.height=se,this.prop.pdf=this.prop.pdf||new I.jsPDF(te.jsPDF);for(var Qe=0;Qe<re;Qe++){Qe===re-1&&q%se!==0&&(Oe.height=q%se,we=Oe.height*this.prop.pageSize.inner.width/Oe.width);var Ve=Oe.width,dt=Oe.height;Me.fillStyle="white",Me.fillRect(0,0,Ve,dt),Me.drawImage(G,0,Qe*se,Ve,dt,0,0,Ve,dt),Qe&&this.prop.pdf.addPage();var Fe=Oe.toDataURL("image/"+te.image.type,te.image.quality);this.prop.pdf.addImage(Fe,te.image.type,te.margin[1],te.margin[0],this.prop.pageSize.inner.width,we)}})},K.prototype.output=function(V,Q,G){return G=G||"pdf",G.toLowerCase()==="img"||G.toLowerCase()==="image"?this.outputImg(V,Q):this.outputPdf(V,Q)},K.prototype.outputPdf=function(V,Q){var G=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(G).then(function(){return this.prop.pdf.output(V,Q)})},K.prototype.outputImg=function(V,Q){var G=[function(){return this.prop.img||this.toImg()}];return this.thenList(G).then(function(){switch(V){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 "'+V+'" is not supported.'}})},K.prototype.save=function(V){var Q=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Q).set(V?{filename:V}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},K.prototype.set=function(V){if((0,P.objType)(V)!=="object")return this;var Q=Object.keys(V||{}).map(function(G){switch(G){case"margin":return this.setMargin.bind(this,V.margin);case"jsPDF":return function(){return this.opt.jsPDF=V.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,V.pageSize);default:return G in K.template.prop?function(){this.prop[G]=V[G]}:function(){this.opt[G]=V[G]}}},this);return this.then(function(){return this.thenList(Q)})},K.prototype.get=function(V,Q){return this.then(function(){var te=V in K.template.prop?this.prop[V]:this.opt[V];return Q?Q(te):te})},K.prototype.setMargin=function(V){return this.then(function(){switch((0,P.objType)(V)){case"number":V=[V,V,V,V];case"array":if(V.length===2&&(V=[V[0],V[1],V[0],V[1]]),V.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=V}).then(this.setPageSize)},K.prototype.setPageSize=function(V){return this.then(function(){V=V||I.jsPDF.getPageSize(this.opt.jsPDF),V.hasOwnProperty("inner")||(V.inner={width:V.width-this.opt.margin[1]-this.opt.margin[3],height:V.height-this.opt.margin[0]-this.opt.margin[2]},V.inner.px={width:(0,P.toPx)(V.inner.width,V.k),height:(0,P.toPx)(V.inner.height,V.k)},V.inner.ratio=V.inner.height/V.inner.width),this.prop.pageSize=V})},K.prototype.setProgress=function(V,Q,G,te){return V!=null&&(this.progress.val=V),Q!=null&&(this.progress.state=Q),G!=null&&(this.progress.n=G),te!=null&&(this.progress.stack=te),this.progress.ratio=this.progress.val/this.progress.state,this},K.prototype.updateProgress=function(V,Q,G,te){return this.setProgress(V?this.progress.val+V:null,Q||null,G?this.progress.n+G:null,te?this.progress.stack.concat(te):null)},K.prototype.then=function(V,Q){var G=this;return this.thenCore(V,Q,function(q,se){return G.updateProgress(null,null,1,[q]),j.prototype.then.call(this,function(we){return G.updateProgress(null,q),we}).then(q,se).then(function(we){return G.updateProgress(1),we})})},K.prototype.thenCore=function(V,Q,G){G=G||j.prototype.then;var te=this;V&&(V=V.bind(te)),Q&&(Q=Q.bind(te));var q=j.toString().indexOf("[native code]")!==-1&&j.name==="Promise",se=q?te:K.convert(Object.assign({},te),j.prototype),re=G.call(se,V,Q);return K.convert(re,te.__proto__)},K.prototype.thenExternal=function(V,Q){return j.prototype.then.call(this,V,Q)},K.prototype.thenList=function(V){var Q=this;return V.forEach(function(te){Q=Q.thenCore(te)}),Q},K.prototype.catch=function(z){z&&(z=z.bind(this));var V=j.prototype.catch.call(this,z);return K.convert(V,this)},K.prototype.catchExternal=function(V){return j.prototype.catch.call(this,V)},K.prototype.error=function(V){return this.then(function(){throw new Error(V)})},K.prototype.using=K.prototype.set,K.prototype.saveAs=K.prototype.save,K.prototype.export=K.prototype.output,K.prototype.run=K.prototype.then,t.default=K},"./node_modules/core-js/internals/a-function.js":function(i){i.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"./node_modules/core-js/internals/a-possible-prototype.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.exports=function(u){if(!e(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},"./node_modules/core-js/internals/add-to-unscopables.js":function(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js"),u=o("./node_modules/core-js/internals/object-create.js"),r=o("./node_modules/core-js/internals/object-define-property.js"),s=e("unscopables"),c=Array.prototype;c[s]==null&&r.f(c,s,{configurable:!0,value:u(null)}),i.exports=function(h){c[s][h]=!0}},"./node_modules/core-js/internals/an-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.exports=function(u){if(!e(u))throw TypeError(String(u)+" is not an object");return u}},"./node_modules/core-js/internals/array-for-each.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/array-iteration.js").forEach,u=o("./node_modules/core-js/internals/array-method-is-strict.js"),r=u("forEach");i.exports=r?[].forEach:function(c){return e(this,c,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-indexed-object.js"),u=o("./node_modules/core-js/internals/to-length.js"),r=o("./node_modules/core-js/internals/to-absolute-index.js"),s=function(h){return function(v,A,b){var x=e(v),E=u(x.length),T=r(b,E),_;if(h&&A!=A){for(;E>T;)if(_=x[T++],_!=_)return!0}else for(;E>T;T++)if((h||T in x)&&x[T]===A)return h||T||0;return!h&&-1}};i.exports={includes:s(!0),indexOf:s(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(i,t,o){var e=o("./node_modules/core-js/internals/function-bind-context.js"),u=o("./node_modules/core-js/internals/indexed-object.js"),r=o("./node_modules/core-js/internals/to-object.js"),s=o("./node_modules/core-js/internals/to-length.js"),c=o("./node_modules/core-js/internals/array-species-create.js"),h=[].push,v=function(b){var x=b==1,E=b==2,T=b==3,_=b==4,C=b==6,w=b==7,O=b==5||C;return function(I,k,M,U){for(var P=r(I),X=u(P),F=e(k,M,3),j=s(X.length),K=0,z=U||c,V=x?z(I,j):E||w?z(I,0):void 0,Q,G;j>K;K++)if((O||K in X)&&(Q=X[K],G=F(Q,K,P),b))if(x)V[K]=G;else if(G)switch(b){case 3:return!0;case 5:return Q;case 6:return K;case 2:h.call(V,Q)}else switch(b){case 4:return!1;case 7:h.call(V,Q)}return C?-1:T||_?_:V}};i.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),u=o("./node_modules/core-js/internals/well-known-symbol.js"),r=o("./node_modules/core-js/internals/engine-v8-version.js"),s=u("species");i.exports=function(c){return r>=51||!e(function(){var h=[],v=h.constructor={};return v[s]=function(){return{foo:1}},h[c](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/fails.js");i.exports=function(u,r){var s=[][u];return!!s&&e(function(){s.call(null,r||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),u=o("./node_modules/core-js/internals/is-array.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),s=r("species");i.exports=function(c){var h;return u(c)&&(h=c.constructor,typeof h=="function"&&(h===Array||u(h.prototype))?h=void 0:e(h)&&(h=h[s],h===null&&(h=void 0))),h===void 0?Array:h}},"./node_modules/core-js/internals/array-species-create.js":function(i,t,o){var e=o("./node_modules/core-js/internals/array-species-constructor.js");i.exports=function(u,r){return new(e(u))(r===0?0:r)}},"./node_modules/core-js/internals/classof-raw.js":function(i){var t={}.toString;i.exports=function(o){return t.call(o).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),u=o("./node_modules/core-js/internals/classof-raw.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),s=r("toStringTag"),c=u(function(){return arguments}())=="Arguments",h=function(A,b){try{return A[b]}catch(x){}};i.exports=e?u:function(v){var A,b,x;return v===void 0?"Undefined":v===null?"Null":typeof(b=h(A=Object(v),s))=="string"?b:c?u(A):(x=u(A))=="Object"&&typeof A.callee=="function"?"Arguments":x}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),u=o("./node_modules/core-js/internals/own-keys.js"),r=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),s=o("./node_modules/core-js/internals/object-define-property.js");i.exports=function(c,h){for(var v=u(h),A=s.f,b=r.f,x=0;x<v.length;x++){var E=v[x];e(c,E)||A(c,E,b(h,E))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},"./node_modules/core-js/internals/create-html.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js"),u=o("./node_modules/core-js/internals/to-string.js"),r=/"/g;i.exports=function(s,c,h,v){var A=u(e(s)),b="<"+c;return h!==""&&(b+=" "+h+'="'+u(v).replace(r,"&quot;")+'"'),b+">"+A+"</"+c+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,u=o("./node_modules/core-js/internals/object-create.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js"),s=o("./node_modules/core-js/internals/set-to-string-tag.js"),c=o("./node_modules/core-js/internals/iterators.js"),h=function(){return this};i.exports=function(v,A,b){var x=A+" Iterator";return v.prototype=u(e,{next:r(1,b)}),s(v,x,!1,!0),c[x]=h,v}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),u=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=e?function(s,c,h){return u.f(s,c,r(1,h))}:function(s,c,h){return s[c]=h,s}},"./node_modules/core-js/internals/create-property-descriptor.js":function(i){i.exports=function(t,o){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:o}}},"./node_modules/core-js/internals/create-property.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-property-key.js"),u=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=function(s,c,h){var v=e(c);v in s?u.f(s,v,r(0,h)):s[v]=h}},"./node_modules/core-js/internals/define-iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),u=o("./node_modules/core-js/internals/create-iterator-constructor.js"),r=o("./node_modules/core-js/internals/object-get-prototype-of.js"),s=o("./node_modules/core-js/internals/object-set-prototype-of.js"),c=o("./node_modules/core-js/internals/set-to-string-tag.js"),h=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),v=o("./node_modules/core-js/internals/redefine.js"),A=o("./node_modules/core-js/internals/well-known-symbol.js"),b=o("./node_modules/core-js/internals/is-pure.js"),x=o("./node_modules/core-js/internals/iterators.js"),E=o("./node_modules/core-js/internals/iterators-core.js"),T=E.IteratorPrototype,_=E.BUGGY_SAFARI_ITERATORS,C=A("iterator"),w="keys",O="values",I="entries",k=function(){return this};i.exports=function(M,U,P,X,F,j,K){u(P,U,X);var z=function(Qe){if(Qe===F&&q)return q;if(!_&&Qe in G)return G[Qe];switch(Qe){case w:return function(){return new P(this,Qe)};case O:return function(){return new P(this,Qe)};case I:return function(){return new P(this,Qe)}}return function(){return new P(this)}},V=U+" Iterator",Q=!1,G=M.prototype,te=G[C]||G["@@iterator"]||F&&G[F],q=!_&&te||z(F),se=U=="Array"&&G.entries||te,re,we,Oe;if(se&&(re=r(se.call(new M)),T!==Object.prototype&&re.next&&(!b&&r(re)!==T&&(s?s(re,T):typeof re[C]!="function"&&h(re,C,k)),c(re,V,!0,!0),b&&(x[V]=k))),F==O&&te&&te.name!==O&&(Q=!0,q=function(){return te.call(this)}),(!b||K)&&G[C]!==q&&h(G,C,q),x[U]=q,F)if(we={values:z(O),keys:j?q:z(w),entries:z(I)},K)for(Oe in we)(_||Q||!(Oe in G))&&v(G,Oe,we[Oe]);else e({target:U,proto:!0,forced:_||Q},we);return we}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/path.js"),u=o("./node_modules/core-js/internals/has.js"),r=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),s=o("./node_modules/core-js/internals/object-define-property.js").f;i.exports=function(c){var h=e.Symbol||(e.Symbol={});u(h,c)||s(h,c,{value:r.f(c)})}},"./node_modules/core-js/internals/descriptors.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),u=o("./node_modules/core-js/internals/is-object.js"),r=e.document,s=u(r)&&u(r.createElement);i.exports=function(c){return s?r.createElement(c):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(i){i.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(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js");i.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),u=o("./node_modules/core-js/internals/engine-user-agent.js"),r=e.process,s=e.Deno,c=r&&r.versions||s&&s.version,h=c&&c.v8,v,A;h?(v=h.split("."),A=v[0]<4?1:v[0]+v[1]):u&&(v=u.match(/Edge\/(\d+)/),(!v||v[1]>=74)&&(v=u.match(/Chrome\/(\d+)/),v&&(A=v[1]))),i.exports=A&&+A},"./node_modules/core-js/internals/enum-bug-keys.js":function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),u=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,r=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=o("./node_modules/core-js/internals/redefine.js"),c=o("./node_modules/core-js/internals/set-global.js"),h=o("./node_modules/core-js/internals/copy-constructor-properties.js"),v=o("./node_modules/core-js/internals/is-forced.js");i.exports=function(A,b){var x=A.target,E=A.global,T=A.stat,_,C,w,O,I,k;if(E?C=e:T?C=e[x]||c(x,{}):C=(e[x]||{}).prototype,C)for(w in b){if(I=b[w],A.noTargetGet?(k=u(C,w),O=k&&k.value):O=C[w],_=v(E?w:x+(T?".":"#")+w,A.forced),!_&&O!==void 0){if(typeof I===typeof O)continue;h(I,O)}(A.sham||O&&O.sham)&&r(I,"sham",!0),s(C,w,I,A)}}},"./node_modules/core-js/internals/fails.js":function(i){i.exports=function(t){try{return!!t()}catch(o){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(i,t,o){var e=o("./node_modules/core-js/internals/a-function.js");i.exports=function(u,r,s){if(e(u),r===void 0)return u;switch(s){case 0:return function(){return u.call(r)};case 1:return function(c){return u.call(r,c)};case 2:return function(c,h){return u.call(r,c,h)};case 3:return function(c,h,v){return u.call(r,c,h,v)}}return function(){return u.apply(r,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),u=function(s){return typeof s=="function"?s:void 0};i.exports=function(r,s){return arguments.length<2?u(e[r]):e[r]&&e[r][s]}},"./node_modules/core-js/internals/global.js":function(i){var t=function(e){return e&&e.Math==Math&&e};i.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof y=="object"&&y)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-object.js"),u={}.hasOwnProperty;i.exports=Object.hasOwn||function(s,c){return u.call(e(s),c)}},"./node_modules/core-js/internals/hidden-keys.js":function(i){i.exports={}},"./node_modules/core-js/internals/html.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js");i.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),u=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/document-create-element.js");i.exports=!e&&!u(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),u=o("./node_modules/core-js/internals/classof-raw.js"),r="".split;i.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(s){return u(s)=="String"?r.call(s,""):Object(s)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),u=o("./node_modules/core-js/internals/object-set-prototype-of.js");i.exports=function(r,s,c){var h,v;return u&&typeof(h=s.constructor)=="function"&&h!==c&&e(v=h.prototype)&&v!==c.prototype&&u(r,v),r}},"./node_modules/core-js/internals/inspect-source.js":function(i,t,o){var e=o("./node_modules/core-js/internals/shared-store.js"),u=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(r){return u.call(r)}),i.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(i,t,o){var e=o("./node_modules/core-js/internals/native-weak-map.js"),u=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/is-object.js"),s=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=o("./node_modules/core-js/internals/has.js"),h=o("./node_modules/core-js/internals/shared-store.js"),v=o("./node_modules/core-js/internals/shared-key.js"),A=o("./node_modules/core-js/internals/hidden-keys.js"),b="Object already initialized",x=u.WeakMap,E,T,_,C=function(X){return _(X)?T(X):E(X,{})},w=function(X){return function(F){var j;if(!r(F)||(j=T(F)).type!==X)throw TypeError("Incompatible receiver, "+X+" required");return j}};if(e||h.state){var O=h.state||(h.state=new x),I=O.get,k=O.has,M=O.set;E=function(X,F){if(k.call(O,X))throw new TypeError(b);return F.facade=X,M.call(O,X,F),F},T=function(X){return I.call(O,X)||{}},_=function(X){return k.call(O,X)}}else{var U=v("state");A[U]=!0,E=function(X,F){if(c(X,U))throw new TypeError(b);return F.facade=X,s(X,U,F),F},T=function(X){return c(X,U)?X[U]:{}},_=function(X){return c(X,U)}}i.exports={set:E,get:T,has:_,enforce:C,getterFor:w}},"./node_modules/core-js/internals/is-array.js":function(i,t,o){var e=o("./node_modules/core-js/internals/classof-raw.js");i.exports=Array.isArray||function(r){return e(r)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),u=/#|\.prototype\./,r=function(b,x){var E=c[s(b)];return E==v?!0:E==h?!1:typeof x=="function"?e(x):!!x},s=r.normalize=function(A){return String(A).replace(u,".").toLowerCase()},c=r.data={},h=r.NATIVE="N",v=r.POLYFILL="P";i.exports=r},"./node_modules/core-js/internals/is-object.js":function(i){i.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},"./node_modules/core-js/internals/is-pure.js":function(i){i.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js"),u=o("./node_modules/core-js/internals/use-symbol-as-uid.js");i.exports=u?function(r){return typeof r=="symbol"}:function(r){var s=e("Symbol");return typeof s=="function"&&Object(r)instanceof s}},"./node_modules/core-js/internals/iterators-core.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/fails.js"),u=o("./node_modules/core-js/internals/object-get-prototype-of.js"),r=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/well-known-symbol.js"),h=o("./node_modules/core-js/internals/is-pure.js"),v=c("iterator"),A=!1,b=function(){return this},x,E,T;[].keys&&(T=[].keys(),"next"in T?(E=u(u(T)),E!==Object.prototype&&(x=E)):A=!0);var _=x==null||e(function(){var C={};return x[v].call(C)!==C});_&&(x={}),(!h||_)&&!s(x,v)&&r(x,v,b),i.exports={IteratorPrototype:x,BUGGY_SAFARI_ITERATORS:A}},"./node_modules/core-js/internals/iterators.js":function(i){i.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/engine-v8-version.js"),u=o("./node_modules/core-js/internals/fails.js");i.exports=!!Object.getOwnPropertySymbols&&!u(function(){var r=Symbol();return!String(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&e&&e<41})},"./node_modules/core-js/internals/native-weak-map.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),u=o("./node_modules/core-js/internals/inspect-source.js"),r=e.WeakMap;i.exports=typeof r=="function"&&/native code/.test(u(r))},"./node_modules/core-js/internals/object-assign.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/descriptors.js"),u=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/object-keys.js"),s=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),h=o("./node_modules/core-js/internals/to-object.js"),v=o("./node_modules/core-js/internals/indexed-object.js"),A=Object.assign,b=Object.defineProperty;i.exports=!A||u(function(){if(e&&A({b:1},A(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var x={},E={},T=Symbol(),_="abcdefghijklmnopqrst";return x[T]=7,_.split("").forEach(function(C){E[C]=C}),A({},x)[T]!=7||r(A({},E)).join("")!=_})?function(E,T){for(var _=h(E),C=arguments.length,w=1,O=s.f,I=c.f;C>w;)for(var k=v(arguments[w++]),M=O?r(k).concat(O(k)):r(k),U=M.length,P=0,X;U>P;)X=M[P++],(!e||I.call(k,X))&&(_[X]=k[X]);return _}:A},"./node_modules/core-js/internals/object-create.js":function(i,t,o){var e=o("./node_modules/core-js/internals/an-object.js"),u=o("./node_modules/core-js/internals/object-define-properties.js"),r=o("./node_modules/core-js/internals/enum-bug-keys.js"),s=o("./node_modules/core-js/internals/hidden-keys.js"),c=o("./node_modules/core-js/internals/html.js"),h=o("./node_modules/core-js/internals/document-create-element.js"),v=o("./node_modules/core-js/internals/shared-key.js"),A=">",b="<",x="prototype",E="script",T=v("IE_PROTO"),_=function(){},C=function(U){return b+E+A+U+b+"/"+E+A},w=function(U){U.write(C("")),U.close();var P=U.parentWindow.Object;return U=null,P},O=function(){var U=h("iframe"),P="java"+E+":",X;if(U.style)return U.style.display="none",c.appendChild(U),U.src=String(P),X=U.contentWindow.document,X.open(),X.write(C("document.F=Object")),X.close(),X.F},I,k=function(){try{I=new ActiveXObject("htmlfile")}catch(P){}k=document.domain&&I?w(I):O()||w(I);for(var U=r.length;U--;)delete k[x][r[U]];return k()};s[T]=!0,i.exports=Object.create||function(U,P){var X;return U!==null?(_[x]=e(U),X=new _,_[x]=null,X[T]=U):X=k(),P===void 0?X:u(X,P)}},"./node_modules/core-js/internals/object-define-properties.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),u=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/an-object.js"),s=o("./node_modules/core-js/internals/object-keys.js");i.exports=e?Object.defineProperties:function(h,v){r(h);for(var A=s(v),b=A.length,x=0,E;b>x;)u.f(h,E=A[x++],v[E]);return h}},"./node_modules/core-js/internals/object-define-property.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),u=o("./node_modules/core-js/internals/ie8-dom-define.js"),r=o("./node_modules/core-js/internals/an-object.js"),s=o("./node_modules/core-js/internals/to-property-key.js"),c=Object.defineProperty;t.f=e?c:function(v,A,b){if(r(v),A=s(A),r(b),u)try{return c(v,A,b)}catch(x){}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(v[A]=b.value),v}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),u=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js"),s=o("./node_modules/core-js/internals/to-indexed-object.js"),c=o("./node_modules/core-js/internals/to-property-key.js"),h=o("./node_modules/core-js/internals/has.js"),v=o("./node_modules/core-js/internals/ie8-dom-define.js"),A=Object.getOwnPropertyDescriptor;t.f=e?A:function(x,E){if(x=s(x),E=c(E),v)try{return A(x,E)}catch(T){}if(h(x,E))return r(!u.f.call(x,E),x[E])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-indexed-object.js"),u=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,r={}.toString,s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(v){try{return u(v)}catch(A){return s.slice()}};i.exports.f=function(v){return s&&r.call(v)=="[object Window]"?c(v):u(e(v))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(i,t,o){var e=o("./node_modules/core-js/internals/object-keys-internal.js"),u=o("./node_modules/core-js/internals/enum-bug-keys.js"),r=u.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(c){return e(c,r)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(i,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),u=o("./node_modules/core-js/internals/to-object.js"),r=o("./node_modules/core-js/internals/shared-key.js"),s=o("./node_modules/core-js/internals/correct-prototype-getter.js"),c=r("IE_PROTO"),h=Object.prototype;i.exports=s?Object.getPrototypeOf:function(v){return v=u(v),e(v,c)?v[c]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?h:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),u=o("./node_modules/core-js/internals/to-indexed-object.js"),r=o("./node_modules/core-js/internals/array-includes.js").indexOf,s=o("./node_modules/core-js/internals/hidden-keys.js");i.exports=function(c,h){var v=u(c),A=0,b=[],x;for(x in v)!e(s,x)&&e(v,x)&&b.push(x);for(;h.length>A;)e(v,x=h[A++])&&(~r(b,x)||b.push(x));return b}},"./node_modules/core-js/internals/object-keys.js":function(i,t,o){var e=o("./node_modules/core-js/internals/object-keys-internal.js"),u=o("./node_modules/core-js/internals/enum-bug-keys.js");i.exports=Object.keys||function(s){return e(s,u)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(i,t){"use strict";var o={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,u=e&&!o.call({1:2},1);t.f=u?function(s){var c=e(this,s);return!!c&&c.enumerable}:o},"./node_modules/core-js/internals/object-set-prototype-of.js":function(i,t,o){var e=o("./node_modules/core-js/internals/an-object.js"),u=o("./node_modules/core-js/internals/a-possible-prototype.js");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,s={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(s,[]),r=s instanceof Array}catch(h){}return function(v,A){return e(v),u(A),r?c.call(v,A):v.__proto__=A,v}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),u=o("./node_modules/core-js/internals/classof.js");i.exports=e?{}.toString:function(){return"[object "+u(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.exports=function(u,r){var s,c;if(r==="string"&&typeof(s=u.toString)=="function"&&!e(c=s.call(u)))return c;if(typeof(s=u.valueOf)=="function"&&!e(c=s.call(u)))return c;if(r!=="string"&&typeof(s=u.toString)=="function"&&!e(c=s.call(u)))return c;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js"),u=o("./node_modules/core-js/internals/object-get-own-property-names.js"),r=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=o("./node_modules/core-js/internals/an-object.js");i.exports=e("Reflect","ownKeys")||function(h){var v=u.f(s(h)),A=r.f;return A?v.concat(A(h)):v}},"./node_modules/core-js/internals/path.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js");i.exports=e},"./node_modules/core-js/internals/redefine.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),u=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),r=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/set-global.js"),c=o("./node_modules/core-js/internals/inspect-source.js"),h=o("./node_modules/core-js/internals/internal-state.js"),v=h.get,A=h.enforce,b=String(String).split("String");(i.exports=function(x,E,T,_){var C=_?!!_.unsafe:!1,w=_?!!_.enumerable:!1,O=_?!!_.noTargetGet:!1,I;if(typeof T=="function"&&(typeof E=="string"&&!r(T,"name")&&u(T,"name",E),I=A(T),I.source||(I.source=b.join(typeof E=="string"?E:""))),x===e){w?x[E]=T:s(E,T);return}else C?!O&&x[E]&&(w=!0):delete x[E];w?x[E]=T:u(x,E,T)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||c(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/an-object.js");i.exports=function(){var u=e(this),r="";return u.global&&(r+="g"),u.ignoreCase&&(r+="i"),u.multiline&&(r+="m"),u.dotAll&&(r+="s"),u.unicode&&(r+="u"),u.sticky&&(r+="y"),r}},"./node_modules/core-js/internals/require-object-coercible.js":function(i){i.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"./node_modules/core-js/internals/set-global.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js");i.exports=function(u,r){try{Object.defineProperty(e,u,{value:r,configurable:!0,writable:!0})}catch(s){e[u]=r}return r}},"./node_modules/core-js/internals/set-to-string-tag.js":function(i,t,o){var e=o("./node_modules/core-js/internals/object-define-property.js").f,u=o("./node_modules/core-js/internals/has.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),s=r("toStringTag");i.exports=function(c,h,v){c&&!u(c=v?c:c.prototype,s)&&e(c,s,{configurable:!0,value:h})}},"./node_modules/core-js/internals/shared-key.js":function(i,t,o){var e=o("./node_modules/core-js/internals/shared.js"),u=o("./node_modules/core-js/internals/uid.js"),r=e("keys");i.exports=function(s){return r[s]||(r[s]=u(s))}},"./node_modules/core-js/internals/shared-store.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),u=o("./node_modules/core-js/internals/set-global.js"),r="__core-js_shared__",s=e[r]||u(r,{});i.exports=s},"./node_modules/core-js/internals/shared.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-pure.js"),u=o("./node_modules/core-js/internals/shared-store.js");(i.exports=function(r,s){return u[r]||(u[r]=s!==void 0?s:{})})("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(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.exports=function(u){return e(function(){var r=""[u]('"');return r!==r.toLowerCase()||r.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),u=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/require-object-coercible.js"),s=function(h){return function(v,A){var b=u(r(v)),x=e(A),E=b.length,T,_;return x<0||x>=E?h?"":void 0:(T=b.charCodeAt(x),T<55296||T>56319||x+1===E||(_=b.charCodeAt(x+1))<56320||_>57343?h?b.charAt(x):T:h?b.slice(x,x+2):(T-55296<<10)+(_-56320)+65536)}};i.exports={codeAt:s(!1),charAt:s(!0)}},"./node_modules/core-js/internals/string-trim.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js"),u=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/whitespaces.js"),s="["+r+"]",c=RegExp("^"+s+s+"*"),h=RegExp(s+s+"*$"),v=function(b){return function(x){var E=u(e(x));return b&1&&(E=E.replace(c,"")),b&2&&(E=E.replace(h,"")),E}};i.exports={start:v(1),end:v(2),trim:v(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),u=Math.max,r=Math.min;i.exports=function(s,c){var h=e(s);return h<0?u(h+c,0):r(h,c)}},"./node_modules/core-js/internals/to-indexed-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/indexed-object.js"),u=o("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(r){return e(u(r))}},"./node_modules/core-js/internals/to-integer.js":function(i){var t=Math.ceil,o=Math.floor;i.exports=function(e){return isNaN(e=+e)?0:(e>0?o:t)(e)}},"./node_modules/core-js/internals/to-length.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),u=Math.min;i.exports=function(r){return r>0?u(e(r),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(u){return Object(e(u))}},"./node_modules/core-js/internals/to-primitive.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),u=o("./node_modules/core-js/internals/is-symbol.js"),r=o("./node_modules/core-js/internals/ordinary-to-primitive.js"),s=o("./node_modules/core-js/internals/well-known-symbol.js"),c=s("toPrimitive");i.exports=function(h,v){if(!e(h)||u(h))return h;var A=h[c],b;if(A!==void 0){if(v===void 0&&(v="default"),b=A.call(h,v),!e(b)||u(b))return b;throw TypeError("Can't convert object to primitive value")}return v===void 0&&(v="number"),r(h,v)}},"./node_modules/core-js/internals/to-property-key.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-primitive.js"),u=o("./node_modules/core-js/internals/is-symbol.js");i.exports=function(r){var s=e(r,"string");return u(s)?s:String(s)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js"),u=e("toStringTag"),r={};r[u]="z",i.exports=String(r)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-symbol.js");i.exports=function(u){if(e(u))throw TypeError("Cannot convert a Symbol value to a string");return String(u)}},"./node_modules/core-js/internals/uid.js":function(i){var t=0,o=Math.random();i.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++t+o).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(i,t,o){var e=o("./node_modules/core-js/internals/native-symbol.js");i.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js");t.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),u=o("./node_modules/core-js/internals/shared.js"),r=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/uid.js"),c=o("./node_modules/core-js/internals/native-symbol.js"),h=o("./node_modules/core-js/internals/use-symbol-as-uid.js"),v=u("wks"),A=e.Symbol,b=h?A:A&&A.withoutSetter||s;i.exports=function(x){return(!r(v,x)||!(c||typeof v[x]=="string"))&&(c&&r(A,x)?v[x]=A[x]:v[x]=b("Symbol."+x)),v[x]}},"./node_modules/core-js/internals/whitespaces.js":function(i){i.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(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),u=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/is-array.js"),s=o("./node_modules/core-js/internals/is-object.js"),c=o("./node_modules/core-js/internals/to-object.js"),h=o("./node_modules/core-js/internals/to-length.js"),v=o("./node_modules/core-js/internals/create-property.js"),A=o("./node_modules/core-js/internals/array-species-create.js"),b=o("./node_modules/core-js/internals/array-method-has-species-support.js"),x=o("./node_modules/core-js/internals/well-known-symbol.js"),E=o("./node_modules/core-js/internals/engine-v8-version.js"),T=x("isConcatSpreadable"),_=9007199254740991,C="Maximum allowed index exceeded",w=E>=51||!u(function(){var M=[];return M[T]=!1,M.concat()[0]!==M}),O=b("concat"),I=function(U){if(!s(U))return!1;var P=U[T];return P!==void 0?!!P:r(U)},k=!w||!O;e({target:"Array",proto:!0,forced:k},{concat:function(U){var P=c(this),X=A(P,0),F=0,j,K,z,V,Q;for(j=-1,z=arguments.length;j<z;j++)if(Q=j===-1?P:arguments[j],I(Q)){if(V=h(Q.length),F+V>_)throw TypeError(C);for(K=0;K<V;K++,F++)K in Q&&v(X,F,Q[K])}else{if(F>=_)throw TypeError(C);v(X,F++,Q)}return X.length=F,X}})},"./node_modules/core-js/modules/es.array.iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-indexed-object.js"),u=o("./node_modules/core-js/internals/add-to-unscopables.js"),r=o("./node_modules/core-js/internals/iterators.js"),s=o("./node_modules/core-js/internals/internal-state.js"),c=o("./node_modules/core-js/internals/define-iterator.js"),h="Array Iterator",v=s.set,A=s.getterFor(h);i.exports=c(Array,"Array",function(b,x){v(this,{type:h,target:e(b),index:0,kind:x})},function(){var b=A(this),x=b.target,E=b.kind,T=b.index++;return!x||T>=x.length?(b.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:T,done:!1}:E=="values"?{value:x[T],done:!1}:{value:[T,x[T]],done:!1}},"values"),r.Arguments=r.Array,u("keys"),u("values"),u("entries")},"./node_modules/core-js/modules/es.array.join.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),u=o("./node_modules/core-js/internals/indexed-object.js"),r=o("./node_modules/core-js/internals/to-indexed-object.js"),s=o("./node_modules/core-js/internals/array-method-is-strict.js"),c=[].join,h=u!=Object,v=s("join",",");e({target:"Array",proto:!0,forced:h||!v},{join:function(b){return c.call(r(this),b===void 0?",":b)}})},"./node_modules/core-js/modules/es.array.map.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),u=o("./node_modules/core-js/internals/array-iteration.js").map,r=o("./node_modules/core-js/internals/array-method-has-species-support.js"),s=r("map");e({target:"Array",proto:!0,forced:!s},{map:function(h){return u(this,h,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),u=o("./node_modules/core-js/internals/is-object.js"),r=o("./node_modules/core-js/internals/is-array.js"),s=o("./node_modules/core-js/internals/to-absolute-index.js"),c=o("./node_modules/core-js/internals/to-length.js"),h=o("./node_modules/core-js/internals/to-indexed-object.js"),v=o("./node_modules/core-js/internals/create-property.js"),A=o("./node_modules/core-js/internals/well-known-symbol.js"),b=o("./node_modules/core-js/internals/array-method-has-species-support.js"),x=b("slice"),E=A("species"),T=[].slice,_=Math.max;e({target:"Array",proto:!0,forced:!x},{slice:function(w,O){var I=h(this),k=c(I.length),M=s(w,k),U=s(O===void 0?k:O,k),P,X,F;if(r(I)&&(P=I.constructor,typeof P=="function"&&(P===Array||r(P.prototype))?P=void 0:u(P)&&(P=P[E],P===null&&(P=void 0)),P===Array||P===void 0))return T.call(I,M,U);for(X=new(P===void 0?Array:P)(_(U-M,0)),F=0;M<U;M++,F++)M in I&&v(X,F,I[M]);return X.length=F,X}})},"./node_modules/core-js/modules/es.function.name.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),u=o("./node_modules/core-js/internals/object-define-property.js").f,r=Function.prototype,s=r.toString,c=/^\s*function ([^ (]*)/,h="name";e&&!(h in r)&&u(r,h,{configurable:!0,get:function(){try{return s.call(this).match(c)[1]}catch(A){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/descriptors.js"),u=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/is-forced.js"),s=o("./node_modules/core-js/internals/redefine.js"),c=o("./node_modules/core-js/internals/has.js"),h=o("./node_modules/core-js/internals/classof-raw.js"),v=o("./node_modules/core-js/internals/inherit-if-required.js"),A=o("./node_modules/core-js/internals/is-symbol.js"),b=o("./node_modules/core-js/internals/to-primitive.js"),x=o("./node_modules/core-js/internals/fails.js"),E=o("./node_modules/core-js/internals/object-create.js"),T=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,_=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,C=o("./node_modules/core-js/internals/object-define-property.js").f,w=o("./node_modules/core-js/internals/string-trim.js").trim,O="Number",I=u[O],k=I.prototype,M=h(E(k))==O,U=function(z){if(A(z))throw TypeError("Cannot convert a Symbol value to a number");var V=b(z,"number"),Q,G,te,q,se,re,we,Oe;if(typeof V=="string"&&V.length>2){if(V=w(V),Q=V.charCodeAt(0),Q===43||Q===45){if(G=V.charCodeAt(2),G===88||G===120)return NaN}else if(Q===48){switch(V.charCodeAt(1)){case 66:case 98:te=2,q=49;break;case 79:case 111:te=8,q=55;break;default:return+V}for(se=V.slice(2),re=se.length,we=0;we<re;we++)if(Oe=se.charCodeAt(we),Oe<48||Oe>q)return NaN;return parseInt(se,te)}}return+V};if(r(O,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var P=function(z){var V=arguments.length<1?0:z,Q=this;return Q instanceof P&&(M?x(function(){k.valueOf.call(Q)}):h(Q)!=O)?v(new I(U(V)),Q,P):U(V)},X=e?T(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(","),F=0,j;X.length>F;F++)c(I,j=X[F])&&!c(P,j)&&C(P,j,_(I,j));P.prototype=k,k.constructor=P,s(u,O,P)}},"./node_modules/core-js/modules/es.object.assign.js":function(i,t,o){var e=o("./node_modules/core-js/internals/export.js"),u=o("./node_modules/core-js/internals/object-assign.js");e({target:"Object",stat:!0,forced:Object.assign!==u},{assign:u})},"./node_modules/core-js/modules/es.object.keys.js":function(i,t,o){var e=o("./node_modules/core-js/internals/export.js"),u=o("./node_modules/core-js/internals/to-object.js"),r=o("./node_modules/core-js/internals/object-keys.js"),s=o("./node_modules/core-js/internals/fails.js"),c=s(function(){r(1)});e({target:"Object",stat:!0,forced:c},{keys:function(v){return r(u(v))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),u=o("./node_modules/core-js/internals/redefine.js"),r=o("./node_modules/core-js/internals/object-to-string.js");e||u(Object.prototype,"toString",r,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/redefine.js"),u=o("./node_modules/core-js/internals/an-object.js"),r=o("./node_modules/core-js/internals/to-string.js"),s=o("./node_modules/core-js/internals/fails.js"),c=o("./node_modules/core-js/internals/regexp-flags.js"),h="toString",v=RegExp.prototype,A=v[h],b=s(function(){return A.call({source:"a",flags:"b"})!="/a/b"}),x=A.name!=h;(b||x)&&e(RegExp.prototype,h,function(){var T=u(this),_=r(T.source),C=T.flags,w=r(C===void 0&&T instanceof RegExp&&!("flags"in v)?c.call(T):C);return"/"+_+"/"+w},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/string-multibyte.js").charAt,u=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/internal-state.js"),s=o("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",h=r.set,v=r.getterFor(c);s(String,"String",function(A){h(this,{type:c,string:u(A),index:0})},function(){var b=v(this),x=b.string,E=b.index,T;return E>=x.length?{value:void 0,done:!0}:(T=e(x,E),b.index+=T.length,{value:T,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),u=o("./node_modules/core-js/internals/create-html.js"),r=o("./node_modules/core-js/internals/string-html-forced.js");e({target:"String",proto:!0,forced:r("link")},{link:function(c){return u(this,"a","href",c)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),u=o("./node_modules/core-js/internals/descriptors.js"),r=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/is-object.js"),h=o("./node_modules/core-js/internals/object-define-property.js").f,v=o("./node_modules/core-js/internals/copy-constructor-properties.js"),A=r.Symbol;if(u&&typeof A=="function"&&(!("description"in A.prototype)||A().description!==void 0)){var b={},x=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof x?new A(O):O===void 0?A():A(O);return O===""&&(b[I]=!0),I};v(x,A);var E=x.prototype=A.prototype;E.constructor=x;var T=E.toString,_=String(A("test"))=="Symbol(test)",C=/^Symbol\((.*)\)[^)]+$/;h(E,"description",{configurable:!0,get:function(){var O=c(this)?this.valueOf():this,I=T.call(O);if(s(b,O))return"";var k=_?I.slice(7,-1):I.replace(C,"$1");return k===""?void 0:k}}),e({global:!0,forced:!0},{Symbol:x})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(i,t,o){var e=o("./node_modules/core-js/internals/define-well-known-symbol.js");e("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),u=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/get-built-in.js"),s=o("./node_modules/core-js/internals/is-pure.js"),c=o("./node_modules/core-js/internals/descriptors.js"),h=o("./node_modules/core-js/internals/native-symbol.js"),v=o("./node_modules/core-js/internals/fails.js"),A=o("./node_modules/core-js/internals/has.js"),b=o("./node_modules/core-js/internals/is-array.js"),x=o("./node_modules/core-js/internals/is-object.js"),E=o("./node_modules/core-js/internals/is-symbol.js"),T=o("./node_modules/core-js/internals/an-object.js"),_=o("./node_modules/core-js/internals/to-object.js"),C=o("./node_modules/core-js/internals/to-indexed-object.js"),w=o("./node_modules/core-js/internals/to-property-key.js"),O=o("./node_modules/core-js/internals/to-string.js"),I=o("./node_modules/core-js/internals/create-property-descriptor.js"),k=o("./node_modules/core-js/internals/object-create.js"),M=o("./node_modules/core-js/internals/object-keys.js"),U=o("./node_modules/core-js/internals/object-get-own-property-names.js"),P=o("./node_modules/core-js/internals/object-get-own-property-names-external.js"),X=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),F=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),j=o("./node_modules/core-js/internals/object-define-property.js"),K=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),z=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),V=o("./node_modules/core-js/internals/redefine.js"),Q=o("./node_modules/core-js/internals/shared.js"),G=o("./node_modules/core-js/internals/shared-key.js"),te=o("./node_modules/core-js/internals/hidden-keys.js"),q=o("./node_modules/core-js/internals/uid.js"),se=o("./node_modules/core-js/internals/well-known-symbol.js"),re=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),we=o("./node_modules/core-js/internals/define-well-known-symbol.js"),Oe=o("./node_modules/core-js/internals/set-to-string-tag.js"),Me=o("./node_modules/core-js/internals/internal-state.js"),Qe=o("./node_modules/core-js/internals/array-iteration.js").forEach,Ve=G("hidden"),dt="Symbol",Fe="prototype",ue=se("toPrimitive"),et=Me.set,he=Me.getterFor(dt),J=Object[Fe],Y=u.Symbol,$=r("JSON","stringify"),de=F.f,be=j.f,Te=P.f,Be=K.f,fe=Q("symbols"),xe=Q("op-symbols"),ke=Q("string-to-symbol-registry"),nt=Q("symbol-to-string-registry"),Ct=Q("wks"),pt=u.QObject,He=!pt||!pt[Fe]||!pt[Fe].findChild,nr=c&&v(function(){return k(be({},"a",{get:function(){return be(this,"a",{value:7}).a}})).a!=7})?function(ct,qe,me){var Kt=de(J,qe);Kt&&delete J[qe],be(ct,qe,me),Kt&&ct!==J&&be(J,qe,Kt)}:be,ht=function(qe,me){var Kt=fe[qe]=k(Y[Fe]);return et(Kt,{type:dt,tag:qe,description:me}),c||(Kt.description=me),Kt},Gt=function(qe,me,Kt){qe===J&&Gt(xe,me,Kt),T(qe);var vr=w(me);return T(Kt),A(fe,vr)?(Kt.enumerable?(A(qe,Ve)&&qe[Ve][vr]&&(qe[Ve][vr]=!1),Kt=k(Kt,{enumerable:I(0,!1)})):(A(qe,Ve)||be(qe,Ve,I(1,{})),qe[Ve][vr]=!0),nr(qe,vr,Kt)):be(qe,vr,Kt)},pr=function(qe,me){T(qe);var Kt=C(me),vr=M(Kt).concat(pe(Kt));return Qe(vr,function(bt){(!c||Ht.call(Kt,bt))&&Gt(qe,bt,Kt[bt])}),qe},Qt=function(qe,me){return me===void 0?k(qe):pr(k(qe),me)},Ht=function(qe){var me=w(qe),Kt=Be.call(this,me);return this===J&&A(fe,me)&&!A(xe,me)?!1:Kt||!A(this,me)||!A(fe,me)||A(this,Ve)&&this[Ve][me]?Kt:!0},Jt=function(qe,me){var Kt=C(qe),vr=w(me);if(Kt===J&&A(fe,vr)&&!A(xe,vr))return;var bt=de(Kt,vr);return bt&&A(fe,vr)&&!(A(Kt,Ve)&&Kt[Ve][vr])&&(bt.enumerable=!0),bt},Ge=function(qe){var me=Te(C(qe)),Kt=[];return Qe(me,function(vr){!A(fe,vr)&&!A(te,vr)&&Kt.push(vr)}),Kt},pe=function(qe){var me=qe===J,Kt=Te(me?xe:C(qe)),vr=[];return Qe(Kt,function(bt){A(fe,bt)&&(!me||A(J,bt))&&vr.push(fe[bt])}),vr};if(h||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var qe=!arguments.length||arguments[0]===void 0?void 0:O(arguments[0]),me=q(qe),Kt=function vr(bt){this===J&&vr.call(xe,bt),A(this,Ve)&&A(this[Ve],me)&&(this[Ve][me]=!1),nr(this,me,I(1,bt))};return c&&He&&nr(J,me,{configurable:!0,set:Kt}),ht(me,qe)},V(Y[Fe],"toString",function(){return he(this).tag}),V(Y,"withoutSetter",function(ct){return ht(q(ct),ct)}),K.f=Ht,j.f=Gt,F.f=Jt,U.f=P.f=Ge,X.f=pe,re.f=function(ct){return ht(se(ct),ct)},c&&(be(Y[Fe],"description",{configurable:!0,get:function(){return he(this).description}}),s||V(J,"propertyIsEnumerable",Ht,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Y}),Qe(M(Ct),function(ct){we(ct)}),e({target:dt,stat:!0,forced:!h},{for:function(qe){var me=O(qe);if(A(ke,me))return ke[me];var Kt=Y(me);return ke[me]=Kt,nt[Kt]=me,Kt},keyFor:function(qe){if(!E(qe))throw TypeError(qe+" is not a symbol");if(A(nt,qe))return nt[qe]},useSetter:function(){He=!0},useSimple:function(){He=!1}}),e({target:"Object",stat:!0,forced:!h,sham:!c},{create:Qt,defineProperty:Gt,defineProperties:pr,getOwnPropertyDescriptor:Jt}),e({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:Ge,getOwnPropertySymbols:pe}),e({target:"Object",stat:!0,forced:v(function(){X.f(1)})},{getOwnPropertySymbols:function(qe){return X.f(_(qe))}}),$){var oe=!h||v(function(){var ct=Y();return $([ct])!="[null]"||$({a:ct})!="{}"||$(Object(ct))!="{}"});e({target:"JSON",stat:!0,forced:oe},{stringify:function(qe,me,Kt){for(var vr=[qe],bt=1,or;arguments.length>bt;)vr.push(arguments[bt++]);return or=me,!x(me)&&qe===void 0||E(qe)?void 0:(b(me)||(me=function(jt,ut){if(typeof or=="function"&&(ut=or.call(this,jt,ut)),!E(ut))return ut}),vr[1]=me,$.apply(null,vr))}})}Y[Fe][ue]||z(Y[Fe],ue,Y[Fe].valueOf),Oe(Y,dt),te[Ve]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),u=o("./node_modules/core-js/internals/dom-iterables.js"),r=o("./node_modules/core-js/internals/array-for-each.js"),s=o("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var c in u){var h=e[c],v=h&&h.prototype;if(v&&v.forEach!==r)try{s(v,"forEach",r)}catch(A){v.forEach=r}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),u=o("./node_modules/core-js/internals/dom-iterables.js"),r=o("./node_modules/core-js/modules/es.array.iterator.js"),s=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=o("./node_modules/core-js/internals/well-known-symbol.js"),h=c("iterator"),v=c("toStringTag"),A=r.values;for(var b in u){var x=e[b],E=x&&x.prototype;if(E){if(E[h]!==A)try{s(E,h,A)}catch(_){E[h]=A}if(E[v]||s(E,v,b),u[b]){for(var T in r)if(E[T]!==r[T])try{s(E,T,r[T])}catch(_){E[T]=r[T]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(i){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/(function(t,o){i.exports=o()})(this,function(){"use strict";function t(pt){var He=typeof pt;return pt!==null&&(He==="object"||He==="function")}function o(pt){return typeof pt=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(He){return Object.prototype.toString.call(He)==="[object Array]"};var u=e,r=0,s=void 0,c=void 0,h=function(He,nr){M[r]=He,M[r+1]=nr,r+=2,r===2&&(c?c(U):X())};function v(pt){c=pt}function A(pt){h=pt}var b=typeof window!="undefined"?window:void 0,x=b||{},E=x.MutationObserver||x.WebKitMutationObserver,T=typeof self=="undefined"&&typeof g!="undefined"&&{}.toString.call(g)==="[object process]",_=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function C(){return function(){return g.nextTick(U)}}function w(){return typeof s!="undefined"?function(){s(U)}:k()}function O(){var pt=0,He=new E(U),nr=document.createTextNode("");return He.observe(nr,{characterData:!0}),function(){nr.data=pt=++pt%2}}function I(){var pt=new MessageChannel;return pt.port1.onmessage=U,function(){return pt.port2.postMessage(0)}}function k(){var pt=setTimeout;return function(){return pt(U,1)}}var M=new Array(1e3);function U(){for(var pt=0;pt<r;pt+=2){var He=M[pt],nr=M[pt+1];He(nr),M[pt]=void 0,M[pt+1]=void 0}r=0}function P(){try{var pt=Function("return this")().require("vertx");return s=pt.runOnLoop||pt.runOnContext,w()}catch(He){return k()}}var X=void 0;T?X=C():E?X=O():_?X=I():b===void 0&&!0?X=P():X=k();function F(pt,He){var nr=this,ht=new this.constructor(z);ht[K]===void 0&&$(ht);var Gt=nr._state;if(Gt){var pr=arguments[Gt-1];h(function(){return et(Gt,ht,pr,nr._result)})}else Fe(nr,ht,pt,He);return ht}function j(pt){var He=this;if(pt&&typeof pt=="object"&&pt.constructor===He)return pt;var nr=new He(z);return Me(nr,pt),nr}var K=Math.random().toString(36).substring(2);function z(){}var V=void 0,Q=1,G=2;function te(){return new TypeError("You cannot resolve a promise with itself")}function q(){return new TypeError("A promises callback cannot return that same promise.")}function se(pt,He,nr,ht){try{pt.call(He,nr,ht)}catch(Gt){return Gt}}function re(pt,He,nr){h(function(ht){var Gt=!1,pr=se(nr,He,function(Qt){if(Gt)return;Gt=!0,He!==Qt?Me(ht,Qt):Ve(ht,Qt)},function(Qt){if(Gt)return;Gt=!0,dt(ht,Qt)},"Settle: "+(ht._label||" unknown promise"));!Gt&&pr&&(Gt=!0,dt(ht,pr))},pt)}function we(pt,He){He._state===Q?Ve(pt,He._result):He._state===G?dt(pt,He._result):Fe(He,void 0,function(nr){return Me(pt,nr)},function(nr){return dt(pt,nr)})}function Oe(pt,He,nr){He.constructor===pt.constructor&&nr===F&&He.constructor.resolve===j?we(pt,He):nr===void 0?Ve(pt,He):o(nr)?re(pt,He,nr):Ve(pt,He)}function Me(pt,He){if(pt===He)dt(pt,te());else if(t(He)){var nr=void 0;try{nr=He.then}catch(ht){dt(pt,ht);return}Oe(pt,He,nr)}else Ve(pt,He)}function Qe(pt){pt._onerror&&pt._onerror(pt._result),ue(pt)}function Ve(pt,He){if(pt._state!==V)return;pt._result=He,pt._state=Q,pt._subscribers.length!==0&&h(ue,pt)}function dt(pt,He){if(pt._state!==V)return;pt._state=G,pt._result=He,h(Qe,pt)}function Fe(pt,He,nr,ht){var Gt=pt._subscribers,pr=Gt.length;pt._onerror=null,Gt[pr]=He,Gt[pr+Q]=nr,Gt[pr+G]=ht,pr===0&&pt._state&&h(ue,pt)}function ue(pt){var He=pt._subscribers,nr=pt._state;if(He.length===0)return;for(var ht=void 0,Gt=void 0,pr=pt._result,Qt=0;Qt<He.length;Qt+=3)ht=He[Qt],Gt=He[Qt+nr],ht?et(nr,ht,Gt,pr):Gt(pr);pt._subscribers.length=0}function et(pt,He,nr,ht){var Gt=o(nr),pr=void 0,Qt=void 0,Ht=!0;if(Gt){try{pr=nr(ht)}catch(Jt){Ht=!1,Qt=Jt}if(He===pr){dt(He,q());return}}else pr=ht;He._state!==V||(Gt&&Ht?Me(He,pr):Ht===!1?dt(He,Qt):pt===Q?Ve(He,pr):pt===G&&dt(He,pr))}function he(pt,He){try{He(function(ht){Me(pt,ht)},function(ht){dt(pt,ht)})}catch(nr){dt(pt,nr)}}var J=0;function Y(){return J++}function $(pt){pt[K]=J++,pt._state=void 0,pt._result=void 0,pt._subscribers=[]}function de(){return new Error("Array Methods must be provided an Array")}var be=function(){function pt(He,nr){this._instanceConstructor=He,this.promise=new He(z),this.promise[K]||$(this.promise),u(nr)?(this.length=nr.length,this._remaining=nr.length,this._result=new Array(this.length),this.length===0?Ve(this.promise,this._result):(this.length=this.length||0,this._enumerate(nr),this._remaining===0&&Ve(this.promise,this._result))):dt(this.promise,de())}return pt.prototype._enumerate=function(nr){for(var ht=0;this._state===V&&ht<nr.length;ht++)this._eachEntry(nr[ht],ht)},pt.prototype._eachEntry=function(nr,ht){var Gt=this._instanceConstructor,pr=Gt.resolve;if(pr===j){var Qt=void 0,Ht=void 0,Jt=!1;try{Qt=nr.then}catch(pe){Jt=!0,Ht=pe}if(Qt===F&&nr._state!==V)this._settledAt(nr._state,ht,nr._result);else if(typeof Qt!="function")this._remaining--,this._result[ht]=nr;else if(Gt===nt){var Ge=new Gt(z);Jt?dt(Ge,Ht):Oe(Ge,nr,Qt),this._willSettleAt(Ge,ht)}else this._willSettleAt(new Gt(function(pe){return pe(nr)}),ht)}else this._willSettleAt(pr(nr),ht)},pt.prototype._settledAt=function(nr,ht,Gt){var pr=this.promise;pr._state===V&&(this._remaining--,nr===G?dt(pr,Gt):this._result[ht]=Gt),this._remaining===0&&Ve(pr,this._result)},pt.prototype._willSettleAt=function(nr,ht){var Gt=this;Fe(nr,void 0,function(pr){return Gt._settledAt(Q,ht,pr)},function(pr){return Gt._settledAt(G,ht,pr)})},pt}();function Te(pt){return new be(this,pt).promise}function Be(pt){var He=this;return u(pt)?new He(function(nr,ht){for(var Gt=pt.length,pr=0;pr<Gt;pr++)He.resolve(pt[pr]).then(nr,ht)}):new He(function(nr,ht){return ht(new TypeError("You must pass an array to race."))})}function fe(pt){var He=this,nr=new He(z);return dt(nr,pt),nr}function xe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ke(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var nt=function(){function pt(He){this[K]=Y(),this._result=this._state=void 0,this._subscribers=[],z!==He&&(typeof He!="function"&&xe(),this instanceof pt?he(this,He):ke())}return pt.prototype.catch=function(nr){return this.then(null,nr)},pt.prototype.finally=function(nr){var ht=this,Gt=ht.constructor;return o(nr)?ht.then(function(pr){return Gt.resolve(nr()).then(function(){return pr})},function(pr){return Gt.resolve(nr()).then(function(){throw pr})}):ht.then(nr,nr)},pt}();nt.prototype.then=F,nt.all=Te,nt.race=Be,nt.resolve=j,nt.reject=fe,nt._setScheduler=v,nt._setAsap=A,nt._asap=h;function Ct(){var pt=void 0;if(typeof y!="undefined")pt=y;else if(typeof self!="undefined")pt=self;else try{pt=Function("return this")()}catch(ht){throw new Error("polyfill failed because global object is unavailable in this environment")}var He=pt.Promise;if(He){var nr=null;try{nr=Object.prototype.toString.call(He.resolve())}catch(ht){}if(nr==="[object Promise]"&&!He.cast)return}pt.Promise=nt}return nt.polyfill=Ct,nt.Promise=nt,nt})},html2canvas:function(i){"use strict";i.exports=m},jspdf:function(i){"use strict";i.exports=S}},f={};function d(a){var i=f[a];if(i!==void 0)return i.exports;var t=f[a]={exports:{}};return p[a].call(t.exports,t,t.exports,d),t.exports}!function(){d.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return d.d(i,{a:i}),i}}(),!function(){d.d=function(a,i){for(var t in i)d.o(i,t)&&!d.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:i[t]})}}(),!function(){d.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}}(),!function(){d.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}}();var l={};return!function(){"use strict";/*!**********************!*\
!*** ./src/index.js ***!
\**********************/d.r(l);var a=d("./src/worker.js"),i=d("./src/plugin/jspdf-plugin.js"),t=d("./src/plugin/pagebreaks.js"),o=d("./src/plugin/hyperlinks.js"),e=function u(r,s){var c=new u.Worker(s);return r?c.from(r).save():c};e.Worker=a.default,l.default=e}(),l=l.default,l}()})}).call(this,n("yLpj"),n("Q2Ig"))},"1q3G":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(){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(R,D,n){var y=n("MBQ8"),g=y.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(m){return m.stack=null,g.superApply(this,"getInitialData",arguments)}}),S=g;R.exports=S},"1u/T":function(R,D,n){var y=n("ProS"),g={type:"selectDataRange",event:"dataRangeSelected",update:"update"};y.registerAction(g,function(S,m){m.eachComponent({mainType:"visualMap",query:S},function(p){p.setSelected(S.selected)})})},"1uat":function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("MlIO"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.Hasher,p=g.x64,f=p.Word,d=p.WordArray,l=g.algo;function a(){return f.create.apply(f,arguments)}var i=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],t=[];(function(){for(var e=0;e<80;e++)t[e]=a()})();var o=l.SHA512=m.extend({_doReset:function(){this._hash=new d.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(u,r){for(var s=this._hash.words,c=s[0],h=s[1],v=s[2],A=s[3],b=s[4],x=s[5],E=s[6],T=s[7],_=c.high,C=c.low,w=h.high,O=h.low,I=v.high,k=v.low,M=A.high,U=A.low,P=b.high,X=b.low,F=x.high,j=x.low,K=E.high,z=E.low,V=T.high,Q=T.low,G=_,te=C,q=w,se=O,re=I,we=k,Oe=M,Me=U,Qe=P,Ve=X,dt=F,Fe=j,ue=K,et=z,he=V,J=Q,Y=0;Y<80;Y++){var $,de,be=t[Y];if(Y<16)de=be.high=u[r+Y*2]|0,$=be.low=u[r+Y*2+1]|0;else{var Te=t[Y-15],Be=Te.high,fe=Te.low,xe=(Be>>>1|fe<<31)^(Be>>>8|fe<<24)^Be>>>7,ke=(fe>>>1|Be<<31)^(fe>>>8|Be<<24)^(fe>>>7|Be<<25),nt=t[Y-2],Ct=nt.high,pt=nt.low,He=(Ct>>>19|pt<<13)^(Ct<<3|pt>>>29)^Ct>>>6,nr=(pt>>>19|Ct<<13)^(pt<<3|Ct>>>29)^(pt>>>6|Ct<<26),ht=t[Y-7],Gt=ht.high,pr=ht.low,Qt=t[Y-16],Ht=Qt.high,Jt=Qt.low;$=ke+pr,de=xe+Gt+($>>>0<ke>>>0?1:0),$=$+nr,de=de+He+($>>>0<nr>>>0?1:0),$=$+Jt,de=de+Ht+($>>>0<Jt>>>0?1:0),be.high=de,be.low=$}var Ge=Qe&dt^~Qe&ue,pe=Ve&Fe^~Ve&et,oe=G&q^G&re^q&re,ct=te&se^te&we^se&we,qe=(G>>>28|te<<4)^(G<<30|te>>>2)^(G<<25|te>>>7),me=(te>>>28|G<<4)^(te<<30|G>>>2)^(te<<25|G>>>7),Kt=(Qe>>>14|Ve<<18)^(Qe>>>18|Ve<<14)^(Qe<<23|Ve>>>9),vr=(Ve>>>14|Qe<<18)^(Ve>>>18|Qe<<14)^(Ve<<23|Qe>>>9),bt=i[Y],or=bt.high,_t=bt.low,jt=J+vr,ut=he+Kt+(jt>>>0<J>>>0?1:0),jt=jt+pe,ut=ut+Ge+(jt>>>0<pe>>>0?1:0),jt=jt+_t,ut=ut+or+(jt>>>0<_t>>>0?1:0),jt=jt+$,ut=ut+de+(jt>>>0<$>>>0?1:0),St=me+ct,mt=qe+oe+(St>>>0<me>>>0?1:0);he=ue,J=et,ue=dt,et=Fe,dt=Qe,Fe=Ve,Ve=Me+jt|0,Qe=Oe+ut+(Ve>>>0<Me>>>0?1:0)|0,Oe=re,Me=we,re=q,we=se,q=G,se=te,te=jt+St|0,G=ut+mt+(te>>>0<jt>>>0?1:0)|0}C=c.low=C+te,c.high=_+G+(C>>>0<te>>>0?1:0),O=h.low=O+se,h.high=w+q+(O>>>0<se>>>0?1:0),k=v.low=k+we,v.high=I+re+(k>>>0<we>>>0?1:0),U=A.low=U+Me,A.high=M+Oe+(U>>>0<Me>>>0?1:0),X=b.low=X+Ve,b.high=P+Qe+(X>>>0<Ve>>>0?1:0),j=x.low=j+Fe,x.high=F+dt+(j>>>0<Fe>>>0?1:0),z=E.low=z+et,E.high=K+ue+(z>>>0<et>>>0?1:0),Q=T.low=Q+J,T.high=V+he+(Q>>>0<J>>>0?1:0)},_doFinalize:function(){var u=this._data,r=u.words,s=this._nDataBytes*8,c=u.sigBytes*8;r[c>>>5]|=128<<24-c%32,r[(c+128>>>10<<5)+30]=Math.floor(s/4294967296),r[(c+128>>>10<<5)+31]=s,u.sigBytes=r.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var u=m.clone.call(this);return u._hash=this._hash.clone(),u},blockSize:1024/32});g.SHA512=m._createHelper(o),g.HmacSHA512=m._createHmacHelper(o)}(),y.SHA512})},"1vzs":function(R,D,n){"use strict";n.d(D,"a",function(){return r});var y=n("q1tI"),g=n.n(y),S=n("HQEm"),m=n.n(S),p=n("gZBC"),f=n.n(p),d=n("NAnI"),l=n.n(d),a=n("V/uB"),i=n.n(a),t=n("kbBi"),o=n.n(t),e=n("w6Tc"),u=n.n(e);function r(s){var c=s.suffixIcon,h=s.clearIcon,v=s.menuItemSelectedIcon,A=s.removeIcon,b=s.loading,x=s.multiple,E=s.prefixCls,T=h;h||(T=y.createElement(o.a,null));var _=null;if(c!==void 0)_=c;else if(b)_=y.createElement(f.a,{spin:!0});else{var C="".concat(E,"-suffix");_=function(k){var M=k.open,U=k.showSearch;return M&&U?y.createElement(u.a,{className:C}):y.createElement(m.a,{className:C})}}var w=null;v!==void 0?w=v:x?w=y.createElement(l.a,null):w=null;var O=null;return A!==void 0?O=A:O=y.createElement(i.a,null),{clearIcon:T,suffixIcon:_,itemIcon:w,removeIcon:O}}},"1xaR":function(R,D,n){var y=n("ProS"),g=n("bYtY");n("qgGe"),n("NA0q"),n("RPvy");var S=n("mOdp"),m=n("y3NT"),p=n("0/Rx");y.registerVisual(g.curry(S,"sunburst")),y.registerLayout(g.curry(m,"sunburst")),y.registerProcessor(g.curry(p,"sunburst"))},"24YM":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.SizeSensorId=D.SensorTabIndex=D.SensorClassName=void 0;var y="size-sensor-id";D.SizeSensorId=y;var g="size-sensor-object";D.SensorClassName=g;var S="-1";D.SensorTabIndex=S},"2548":function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("6GrX"),m=n("IUWy"),p=n("IwbS"),f=n("Qxkt"),d=n("gPAo"),l=n("eRkO"),a=y.extendComponentView({type:"toolbox",render:function(t,o,e,u){var r=this.group;if(r.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),c=t.get("feature")||{},h=this._features||(this._features={}),v=[];g.each(c,function(x,E){v.push(E)}),new d(this._featureNames||[],v).add(A).update(A).remove(g.curry(A,null)).execute(),this._featureNames=v;function A(x,E){var T=v[x],_=v[E],C=c[T],w=new f(C,t,t.ecModel),O;if(u&&u.newTitle!=null&&u.featureName===T&&(C.title=u.newTitle),T&&!_){if(i(T))O={model:w,onclick:w.option.onclick,featureName:T};else{var I=m.get(T);if(!I)return;O=new I(w,o,e)}h[T]=O}else{if(O=h[_],!O)return;O.model=w,O.ecModel=o,O.api=e}if(!T&&_){O.dispose&&O.dispose(o,e);return}if(!w.get("show")||O.unusable){O.remove&&O.remove(o,e);return}b(w,O,T),w.setIconStatus=function(k,M){var U=this.option,P=this.iconPaths;U.iconStatus=U.iconStatus||{},U.iconStatus[k]=M,P[k]&&P[k].trigger(M)},O.render&&O.render(w,o,e,u)}function b(x,E,T){var _=x.getModel("iconStyle"),C=x.getModel("emphasis.iconStyle"),w=E.getIcons?E.getIcons():x.get("icon"),O=x.get("title")||{};if(typeof w=="string"){var I=w,k=O;w={},O={},w[T]=I,O[T]=k}var M=x.iconPaths={};g.each(w,function(U,P){var X=p.createIcon(U,{},{x:-s/2,y:-s/2,width:s,height:s});X.setStyle(_.getItemStyle()),X.hoverStyle=C.getItemStyle(),X.setStyle({text:O[P],textAlign:C.get("textAlign"),textBorderRadius:C.get("textBorderRadius"),textPadding:C.get("textPadding"),textFill:null});var F=t.getModel("tooltip");F&&F.get("show")&&X.attr("tooltip",g.extend({content:O[P],formatter:F.get("formatter",!0)||function(){return O[P]},formatterParams:{componentType:"toolbox",name:P,title:O[P],$vars:["name","title"]},position:F.get("position",!0)||"bottom"},F.option)),p.setHoverStyle(X),t.get("showTitle")&&(X.__title=O[P],X.on("mouseover",function(){var j=C.getItemStyle(),K=t.get("orient")==="vertical"?t.get("right")==null?"right":"left":t.get("bottom")==null?"bottom":"top";X.setStyle({textFill:C.get("textFill")||j.fill||j.stroke||"#000",textBackgroundColor:C.get("textBackgroundColor"),textPosition:C.get("textPosition")||K})}).on("mouseout",function(){X.setStyle({textFill:null,textBackgroundColor:null})})),X.trigger(x.get("iconStatus."+P)||"normal"),r.add(X),X.on("click",g.bind(E.onclick,E,o,e,P)),M[P]=X})}l.layout(r,t,e),r.add(l.makeBackground(r.getBoundingRect(),t)),r.eachChild(function(x){var E=x.__title,T=x.hoverStyle;if(T&&E){var _=S.getBoundingRect(E,S.makeFont(T)),C=x.position[0]+r.position[0],w=x.position[1]+r.position[1]+s,O=!1;w+_.height>e.getHeight()&&(T.textPosition="top",O=!0);var I=O?-5-_.height:s+8;C+_.width/2>e.getWidth()?(T.textPosition=["100%",I],T.textAlign="right"):C-_.width/2<0&&(T.textPosition=[0,I],T.textAlign="left")}})},updateView:function(t,o,e,u){g.each(this._features,function(r){r.updateView&&r.updateView(r.model,o,e,u)})},remove:function(t,o){g.each(this._features,function(e){e.remove&&e.remove(t,o)}),this.group.removeAll()},dispose:function(t,o){g.each(this._features,function(e){e.dispose&&e.dispose(t,o)})}});function i(t){return t.indexOf("my")===0}R.exports=a},"2B6p":function(R,D){function n(y,g,S){var m=y.getZoom(),p=y.getCenter(),f=g.zoom,d=y.dataToPoint(p);if(g.dx!=null&&g.dy!=null){d[0]-=g.dx,d[1]-=g.dy;var p=y.pointToData(d);y.setCenter(p)}if(f!=null){if(S){var l=S.min||0,a=S.max||Infinity;f=Math.max(Math.min(m*f,a),l)/m}y.scale[0]*=f,y.scale[1]*=f;var i=y.position,t=(g.originX-i[0])*(f-1),o=(g.originY-i[1])*(f-1);i[0]-=t,i[1]-=o,y.updateTransform();var p=y.pointToData(d);y.setCenter(p),y.setZoom(f*m)}return{center:y.getCenter(),zoom:y.getZoom()}}D.updateCenterAndZoom=n},"2BaD":function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="CloseCircleOutlined";var d=D.a=g.forwardRef(f)},"2DNl":function(R,D,n){var y=n("IMiH"),g=n("loD1"),S=n("59Ip"),m=n("aKvl"),p=n("n1HI"),f=n("hX1E"),d=f.normalizeRadian,l=n("Sj9i"),a=n("hyiK"),i=y.CMD,t=Math.PI*2,o=1e-4;function e(E,T){return Math.abs(E-T)<o}var u=[-1,-1,-1],r=[-1,-1];function s(){var E=r[0];r[0]=r[1],r[1]=E}function c(E,T,_,C,w,O,I,k,M,U){if(U>T&&U>C&&U>O&&U>k||U<T&&U<C&&U<O&&U<k)return 0;var P=l.cubicRootAt(T,C,O,k,U,u);if(P===0)return 0;for(var X=0,F=-1,j,K,z=0;z<P;z++){var V=u[z],Q=V===0||V===1?.5:1,G=l.cubicAt(E,_,w,I,V);if(G<M)continue;F<0&&(F=l.cubicExtrema(T,C,O,k,r),r[1]<r[0]&&F>1&&s(),j=l.cubicAt(T,C,O,k,r[0]),F>1&&(K=l.cubicAt(T,C,O,k,r[1]))),F===2?V<r[0]?X+=j<T?Q:-Q:V<r[1]?X+=K<j?Q:-Q:X+=k<K?Q:-Q:V<r[0]?X+=j<T?Q:-Q:X+=k<j?Q:-Q}return X}function h(E,T,_,C,w,O,I,k){if(k>T&&k>C&&k>O||k<T&&k<C&&k<O)return 0;var M=l.quadraticRootAt(T,C,O,k,u);if(M===0)return 0;var U=l.quadraticExtremum(T,C,O);if(U>=0&&U<=1){for(var P=0,X=l.quadraticAt(T,C,O,U),F=0;F<M;F++){var j=u[F]===0||u[F]===1?.5:1,K=l.quadraticAt(E,_,w,u[F]);if(K<I)continue;u[F]<U?P+=X<T?j:-j:P+=O<X?j:-j}return P}else{var j=u[0]===0||u[0]===1?.5:1,K=l.quadraticAt(E,_,w,u[0]);return K<I?0:O<T?j:-j}}function v(E,T,_,C,w,O,I,k){if(k-=T,k>_||k<-_)return 0;var M=Math.sqrt(_*_-k*k);u[0]=-M,u[1]=M;var U=Math.abs(C-w);if(U<1e-4)return 0;if(U%t<1e-4){C=0,w=t;var P=O?1:-1;return I>=u[0]+E&&I<=u[1]+E?P:0}if(O){var M=C;C=d(w),w=d(M)}else C=d(C),w=d(w);C>w&&(w+=t);for(var X=0,F=0;F<2;F++){var j=u[F];if(j+E>I){var K=Math.atan2(k,j),P=O?1:-1;K<0&&(K=t+K),(K>=C&&K<=w||K+t>=C&&K+t<=w)&&(K>Math.PI/2&&K<Math.PI*1.5&&(P=-P),X+=P)}}return X}function A(E,T,_,C,w){for(var O=0,I=0,k=0,M=0,U=0,P=0;P<E.length;){var X=E[P++];X===i.M&&P>1&&(_||(O+=a(I,k,M,U,C,w))),P===1&&(I=E[P],k=E[P+1],M=I,U=k);switch(X){case i.M:M=E[P++],U=E[P++],I=M,k=U;break;case i.L:if(_){if(g.containStroke(I,k,E[P],E[P+1],T,C,w))return!0}else O+=a(I,k,E[P],E[P+1],C,w)||0;I=E[P++],k=E[P++];break;case i.C:if(_){if(S.containStroke(I,k,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],T,C,w))return!0}else O+=c(I,k,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],C,w)||0;I=E[P++],k=E[P++];break;case i.Q:if(_){if(m.containStroke(I,k,E[P++],E[P++],E[P],E[P+1],T,C,w))return!0}else O+=h(I,k,E[P++],E[P++],E[P],E[P+1],C,w)||0;I=E[P++],k=E[P++];break;case i.A:var F=E[P++],j=E[P++],K=E[P++],z=E[P++],V=E[P++],Q=E[P++];P+=1;var G=1-E[P++],te=Math.cos(V)*K+F,q=Math.sin(V)*z+j;P>1?O+=a(I,k,te,q,C,w):(M=te,U=q);var se=(C-F)*z/K+F;if(_){if(p.containStroke(F,j,z,V,V+Q,G,T,se,w))return!0}else O+=v(F,j,z,V,V+Q,G,se,w);I=Math.cos(V+Q)*K+F,k=Math.sin(V+Q)*z+j;break;case i.R:M=I=E[P++],U=k=E[P++];var re=E[P++],we=E[P++],te=M+re,q=U+we;if(_){if(g.containStroke(M,U,te,U,T,C,w)||g.containStroke(te,U,te,q,T,C,w)||g.containStroke(te,q,M,q,T,C,w)||g.containStroke(M,q,M,U,T,C,w))return!0}else O+=a(te,U,te,q,C,w),O+=a(M,q,M,U,C,w);break;case i.Z:if(_){if(g.containStroke(I,k,M,U,T,C,w))return!0}else O+=a(I,k,M,U,C,w);I=M,k=U;break}}return!_&&!e(k,U)&&(O+=a(I,k,M,U,C,w)||0),O!==0}function b(E,T,_){return A(E,0,!1,T,_)}function x(E,T,_,C){return A(E,T,!0,_,C)}D.contain=b,D.containStroke=x},"2dDv":function(R,D,n){var y=n("bYtY"),g=n("Fofx"),S=n("+TT/"),m=n("aX7z"),p=n("D1WM"),f=n("IwbS"),d=n("OELB"),l=n("72pK"),a=y.each,i=Math.min,t=Math.max,o=Math.floor,e=Math.ceil,u=d.round,r=Math.PI;function s(b,x,E){this._axesMap=y.createHashMap(),this._axesLayout={},this.dimensions=b.dimensions,this._rect,this._model=b,this._init(b,x,E)}s.prototype={type:"parallel",constructor:s,_init:function(b,x,E){var T=b.dimensions,_=b.parallelAxisIndex;a(T,function(C,w){var O=_[w],I=x.getComponent("parallelAxis",O),k=this._axesMap.set(C,new p(C,m.createScaleByModel(I),[0,0],I.get("type"),O)),M=k.type==="category";k.onBand=M&&I.get("boundaryGap"),k.inverse=I.get("inverse"),I.axis=k,k.model=I,k.coordinateSystem=I.coordinateSystem=this},this)},update:function(b,x){this._updateAxesFromSeries(this._model,b)},containPoint:function(b){var x=this._makeLayoutInfo(),E=x.axisBase,T=x.layoutBase,_=x.pixelDimIndex,C=b[1-_],w=b[_];return C>=E&&C<=E+x.axisLength&&w>=T&&w<=T+x.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(b,x){x.eachSeries(function(E){if(!b.contains(E,x))return;var T=E.getData();a(this.dimensions,function(_){var C=this._axesMap.get(_);C.scale.unionExtentFromData(T,T.mapDimension(_)),m.niceScaleExtent(C.scale,C.model)},this)},this)},resize:function(b,x){this._rect=S.getLayoutRect(b.getBoxLayoutParams(),{width:x.getWidth(),height:x.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var b=this._model,x=this._rect,E=["x","y"],T=["width","height"],_=b.get("layout"),C=_==="horizontal"?0:1,w=x[T[C]],O=[0,w],I=this.dimensions.length,k=c(b.get("axisExpandWidth"),O),M=c(b.get("axisExpandCount")||0,[0,I]),U=b.get("axisExpandable")&&I>3&&I>M&&M>1&&k>0&&w>0,P=b.get("axisExpandWindow"),X;if(P)X=c(P[1]-P[0],O),P[1]=P[0]+X;else{X=c(k*(M-1),O);var F=b.get("axisExpandCenter")||o(I/2);P=[k*F-X/2],P[1]=P[0]+X}var j=(w-X)/(I-M);j<3&&(j=0);var K=[o(u(P[0]/k,1))+1,e(u(P[1]/k,1))-1],z=j/k*P[0];return{layout:_,pixelDimIndex:C,layoutBase:x[E[C]],layoutLength:w,axisBase:x[E[1-C]],axisLength:x[T[1-C]],axisExpandable:U,axisExpandWidth:k,axisCollapseWidth:j,axisExpandWindow:P,axisCount:I,winInnerIndices:K,axisExpandWindow0Pos:z}},_layoutAxes:function(){var b=this._rect,x=this._axesMap,E=this.dimensions,T=this._makeLayoutInfo(),_=T.layout;x.each(function(C){var w=[0,T.axisLength],O=C.inverse?1:0;C.setExtent(w[O],w[1-O])}),a(E,function(C,w){var O=(T.axisExpandable?v:h)(w,T),I={horizontal:{x:O.position,y:T.axisLength},vertical:{x:0,y:O.position}},k={horizontal:r/2,vertical:0},M=[I[_].x+b.x,I[_].y+b.y],U=k[_],P=g.create();g.rotate(P,P,U),g.translate(P,P,M),this._axesLayout[C]={position:M,rotation:U,transform:P,axisNameAvailableWidth:O.axisNameAvailableWidth,axisLabelShow:O.axisLabelShow,nameTruncateMaxWidth:O.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(b){return this._axesMap.get(b)},dataToPoint:function(b,x){return this.axisCoordToPoint(this._axesMap.get(x).dataToCoord(b),x)},eachActiveState:function(b,x,E,T){E==null&&(E=0),T==null&&(T=b.count());var _=this._axesMap,C=this.dimensions,w=[],O=[];y.each(C,function(j){w.push(b.mapDimension(j)),O.push(_.get(j).model)});for(var I=this.hasAxisBrushed(),k=E;k<T;k++){var M;if(!I)M="normal";else{M="active";for(var U=b.getValues(w,k),P=0,X=C.length;P<X;P++){var F=O[P].getActiveState(U[P]);if(F==="inactive"){M="inactive";break}}}x(M,k)}},hasAxisBrushed:function(){for(var b=this.dimensions,x=this._axesMap,E=!1,T=0,_=b.length;T<_;T++)x.get(b[T]).model.getActiveState()!=="normal"&&(E=!0);return E},axisCoordToPoint:function(b,x){var E=this._axesLayout[x];return f.applyTransform([b,0],E.transform)},getAxisLayout:function(b){return y.clone(this._axesLayout[b])},getSlidedAxisExpandWindow:function(b){var x=this._makeLayoutInfo(),E=x.pixelDimIndex,T=x.axisExpandWindow.slice(),_=T[1]-T[0],C=[0,x.axisExpandWidth*(x.axisCount-1)];if(!this.containPoint(b))return{behavior:"none",axisExpandWindow:T};var w=b[E]-x.layoutBase-x.axisExpandWindow0Pos,O,I="slide",k=x.axisCollapseWidth,M=this._model.get("axisExpandSlideTriggerArea"),U=M[0]!=null;if(k)U&&k&&w<_*M[0]?(I="jump",O=w-_*M[2]):U&&k&&w>_*(1-M[0])?(I="jump",O=w-_*(1-M[2])):(O=w-_*M[1])>=0&&(O=w-_*(1-M[1]))<=0&&(O=0),O*=x.axisExpandWidth/k,O?l(O,T,C,"all"):I="none";else{var _=T[1]-T[0],P=C[1]*w/_;T=[t(0,P-_/2)],T[1]=i(C[1],T[0]+_),T[0]=T[1]-_}return{axisExpandWindow:T,behavior:I}}};function c(b,x){return i(t(b,x[0]),x[1])}function h(b,x){var E=x.layoutLength/(x.axisCount-1);return{position:E*b,axisNameAvailableWidth:E,axisLabelShow:!0}}function v(b,x){var E=x.layoutLength,T=x.axisExpandWidth,_=x.axisCount,C=x.axisCollapseWidth,w=x.winInnerIndices,O,I=C,k=!1,M;return b<w[0]?(O=b*C,M=C):b<=w[1]?(O=x.axisExpandWindow0Pos+b*T-x.axisExpandWindow[0],I=T,k=!0):(O=E-(_-1-b)*C,M=C),{position:O,axisNameAvailableWidth:I,axisLabelShow:k,nameTruncateMaxWidth:M}}var A=s;R.exports=A},"2fGM":function(R,D,n){var y=n("bYtY"),g=n("bLfw"),S=n("nkfE"),m=n("ICMv"),p=g.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});y.merge(p.prototype,m);var f={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function d(l,a){return a.type||(a.data?"category":"value")}S("angle",p,d,f.angle),S("radius",p,d,f.radius)},"2fM7":function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("pVnL"),m=n.n(S),p=n("lwsE"),f=n.n(p),d=n("W8MJ"),l=n.n(d),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),u=n("BGR+"),r=n("TSYQ"),s=n.n(r),c=n("1OyB"),h=n("vuIU"),v=n("Ji7U"),A=n("LK+K"),b=n("rePB"),x=n("Ff2n"),E=n("ODXe"),T=n("4IlW"),_=n("bX4T"),C=n("YrtM"),w=n("+nKL"),O=function(Re){var Pe=Re.className,rt=Re.customizeIcon,wt=Re.customizeIconProps,Ot=Re.onMouseDown,$t=Re.onClick,Mr=Re.children,Vr;return typeof rt=="function"?Vr=rt(wt):Vr=rt,e.createElement("span",{className:Pe,onMouseDown:function(Vt){Vt.preventDefault(),Ot&&Ot(Vt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:$t,"aria-hidden":!0},Vr!==void 0?Vr:e.createElement("span",{className:s()(Pe.split(/\s+/).map(function(hn){return"".concat(hn,"-icon")}))},Mr))},I=O,k=function(Re,Pe){var rt=Re.prefixCls,wt=Re.id,Ot=Re.flattenOptions,$t=Re.childrenAsData,Mr=Re.values,Vr=Re.searchValue,hn=Re.multiple,Vt=Re.defaultActiveFirstOption,yt=Re.height,xt=Re.itemHeight,dr=Re.notFoundContent,er=Re.open,Ut=Re.menuItemSelectedIcon,ir=Re.virtual,Ft=Re.onSelect,rr=Re.onToggleOpen,Kr=Re.onActiveValue,Rr=Re.onScroll,kr=Re.onMouseEnter,dn="".concat(rt,"-item"),yn=Object(C.a)(function(){return Ot},[er,Ot],function(Ze,ot){return ot[0]&&Ze[1]!==ot[1]}),ri=e.useRef(null),$n=function(ot){ot.preventDefault()},pi=function(ot){ri.current&&ri.current.scrollTo({index:ot})},_i=function(ot){for(var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,At=yn.length,mr=0;mr<At;mr+=1){var qr=(ot+mr*Lt+At)%At,Qr=yn[qr],gn=Qr.group,yr=Qr.data;if(!gn&&!yr.disabled)return qr}return-1},Di=e.useState(function(){return _i(0)}),Wi=Object(E.a)(Di,2),at=Wi[0],Le=Wi[1],je=function(ot){Le(ot);var Lt=yn[ot];if(!Lt){Kr(null,-1);return}Kr(Lt.data.value,ot)};e.useEffect(function(){je(Vt!==!1?_i(0):-1)},[yn.length,Vr]),e.useEffect(function(){var Ze=setTimeout(function(){if(!hn&&er&&Mr.size===1){var ot=Array.from(Mr)[0],Lt=yn.findIndex(function(At){var mr=At.data;return mr.value===ot});je(Lt),pi(Lt)}});return function(){return clearTimeout(Ze)}},[er]);var Xe=function(ot){ot!==void 0&&Ft(ot,{selected:!Mr.has(ot)}),hn||rr(!1)};if(e.useImperativeHandle(Pe,function(){return{onKeyDown:function(ot){var Lt=ot.which;switch(Lt){case T.a.UP:case T.a.DOWN:{var At=0;if(Lt===T.a.UP?At=-1:Lt===T.a.DOWN&&(At=1),At!==0){var mr=_i(at+At,At);pi(mr),je(mr)}break}case T.a.ENTER:{var qr=yn[at];qr&&!qr.data.disabled?Xe(qr.data.value):Xe(void 0),er&&ot.preventDefault();break}case T.a.ESC:rr(!1)}},onKeyUp:function(){},scrollTo:function(ot){pi(ot)}}}),yn.length===0)return e.createElement("div",{role:"listbox",id:"".concat(wt,"_list"),className:"".concat(dn,"-empty"),onMouseDown:$n},dr);function it(Ze){var ot=yn[Ze];if(!ot)return null;var Lt=ot.data||{},At=Lt.value,mr=Lt.label,qr=Lt.children,Qr=Object(_.a)(Lt,!0),gn=$t?qr:mr;return ot?e.createElement("div",Object.assign({"aria-label":typeof gn=="string"?gn:null},Qr,{key:Ze,role:"option",id:"".concat(wt,"_list_").concat(Ze),"aria-selected":Mr.has(At)}),At):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(wt,"_list"),style:{height:0,width:0,overflow:"hidden"}},it(at-1),it(at),it(at+1)),e.createElement(w.a,{itemKey:"key",ref:ri,data:yn,height:yt,itemHeight:xt,fullHeight:!1,onMouseDown:$n,onScroll:Rr,virtual:ir,onMouseEnter:kr},function(Ze,ot){var Lt,At=Ze.group,mr=Ze.groupOption,qr=Ze.data,Qr=qr.label,gn=qr.key;if(At)return e.createElement("div",{className:s()(dn,"".concat(dn,"-group"))},Qr!==void 0?Qr:gn);var yr=qr.disabled,Vn=qr.value,Br=qr.title,jn=qr.children,xn=qr.style,tn=qr.className,ti=Object(x.a)(qr,["disabled","value","title","children","style","className"]),mi=Mr.has(Vn),Pi="".concat(dn,"-option"),en=s()(dn,Pi,tn,(Lt={},Object(b.a)(Lt,"".concat(Pi,"-grouped"),mr),Object(b.a)(Lt,"".concat(Pi,"-active"),at===ot&&!yr),Object(b.a)(Lt,"".concat(Pi,"-disabled"),yr),Object(b.a)(Lt,"".concat(Pi,"-selected"),mi),Lt)),Tn=$t?jn:Qr,Yn=!Ut||typeof Ut=="function"||mi;return e.createElement("div",Object.assign({},ti,{"aria-selected":mi,className:en,title:Br,onMouseMove:function(){if(at===ot||yr)return;je(ot)},onClick:function(){yr||Xe(Vn)},style:xn}),e.createElement("div",{className:"".concat(Pi,"-content")},Tn||Vn),e.isValidElement(Ut)||mi,Yn&&e.createElement(I,{className:"".concat(dn,"-option-state"),customizeIcon:Ut,customizeIconProps:{isSelected:mi}},mi?"\u2713":null))}))},M=e.forwardRef(k);M.displayName="OptionList";var U=M,P=function(){return null};P.isSelectOption=!0;var X=P,F=function(){return null};F.isSelectOptGroup=!0;var j=F,K=n("VTBJ"),z=n("Zm9Q");function V(De){var Re=De.key,Pe=De.props,rt=Pe.children,wt=Pe.value,Ot=Object(x.a)(Pe,["children","value"]);return Object(K.a)({key:Re,value:wt!==void 0?wt:Re,children:rt},Ot)}function Q(De){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(De).map(function(Pe,rt){if(!e.isValidElement(Pe)||!Pe.type)return null;var wt=Pe.type.isSelectOptGroup,Ot=Pe.key,$t=Pe.props,Mr=$t.children,Vr=Object(x.a)($t,["children"]);return Re||!wt?V(Pe):Object(K.a)(Object(K.a)({key:"__RC_SELECT_GRP__".concat(Ot===null?rt:Ot,"__"),label:Ot},Vr),{},{options:Q(Mr)})}).filter(function(Pe){return Pe})}var G=n("KQm4"),te=n("T5bk"),q=n("U8pU"),se=n("Kwbf");function re(De){return Array.isArray(De)?De:De!==void 0?[De]:[]}function we(De,Re){var Pe=Re.labelInValue,rt=Re.combobox;if(De===void 0||De===""&&rt)return[];var wt=Array.isArray(De)?De:[De];return Pe?wt.map(function(Ot){var $t=Ot.key,Mr=Ot.value;return Mr!==void 0?Mr:$t}):wt}function Oe(De,Re){var Pe=Re.optionLabelProp,rt=Re.labelInValue,wt=Re.prevValue,Ot=Re.options,$t=Re.getLabeledValue,Mr=De;return rt&&(Mr=Mr.map(function(Vr){return $t(Vr,{options:Ot,prevValue:wt,labelInValue:rt,optionLabelProp:Pe})})),Mr}function Me(De,Re){var Pe=Object(G.a)(Re),rt;for(rt=De.length-1;rt>=0&&De[rt].disabled;rt-=1);var wt=null;return rt!==-1&&(wt=Pe[rt],Pe.splice(rt,1)),{values:Pe,removedValue:wt}}var Qe=typeof window!="undefined"&&window.document&&window.document.documentElement,Ve=Qe,dt=0;function Fe(){var De;return Ve?(De=dt,dt+=1):De="TEST_OR_SSR",De}function ue(De,Re){var Pe=De.key,rt;return"value"in De&&(rt=De.value),Pe!=null?Pe:rt!==void 0?rt:"rc-index-key-".concat(Re)}function et(De){var Re=[];function Pe(rt,wt){rt.forEach(function(Ot){wt||!("options"in Ot)?Re.push({key:ue(Ot,Re.length),groupOption:wt,data:Ot}):(Re.push({key:ue(Ot,Re.length),group:!0,data:Ot}),Pe(Ot.options,!0))})}return Pe(De,!1),Re}function he(De){var Re=Object(K.a)({},De);return"props"in Re||Object.defineProperty(Re,"props",{get:function(){return Object(se.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Re}}),Re}function J(De,Re){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},rt=Pe.prevValueOptions,wt=rt===void 0?[]:rt,Ot=new Map;return Re.forEach(function($t){if(!$t.group){var Mr=$t.data;Ot.set(Mr.value,Mr)}}),De.map(function($t){var Mr=Ot.get($t);return Mr||(Mr=Object(K.a)({},wt.find(function(Vr){return Vr._INTERNAL_OPTION_VALUE_===$t}))),he(Mr)})}var Y=function(Re,Pe){var rt=Pe.options,wt=Pe.prevValue,Ot=Pe.labelInValue,$t=Pe.optionLabelProp,Mr=J([Re],rt)[0],Vr={value:Re},hn,Vt=re(wt);return Ot&&(hn=Vt.find(function(yt){return Object(q.a)(yt)==="object"&&"value"in yt?yt.value===Re:yt.key===Re})),hn&&Object(q.a)(hn)==="object"&&"label"in hn?(Vr.label=hn.label,Mr&&typeof hn.label=="string"&&typeof Mr[$t]=="string"&&hn.label.trim()!==Mr[$t].trim()&&Object(se.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Mr&&$t in Mr?Vr.label=Mr[$t]:Vr.label=Re,Vr.key=Vr.value,Vr};function $(De){return re(De).join("")}function de(De){return function(Re,Pe){var rt=Re.toLowerCase();if("options"in Pe)return $(Pe.label).toLowerCase().includes(rt);var wt=Pe[De],Ot=$(wt).toLowerCase();return Ot.includes(rt)}}function be(De,Re,Pe){var rt=Pe.optionFilterProp,wt=Pe.filterOption,Ot=[],$t;return wt===!1?Re:(typeof wt=="function"?$t=wt:$t=de(rt),Re.forEach(function(Mr){if("options"in Mr){var Vr=$t(De,Mr);if(Vr)Ot.push(Mr);else{var hn=Mr.options.filter(function(Vt){return $t(De,Vt)});hn.length&&Ot.push(Object(K.a)(Object(K.a)({},Mr),{},{options:hn}))}return}$t(De,he(Mr))&&Ot.push(Mr)}),Ot)}function Te(De,Re){if(!Re||!Re.length)return null;var Pe=!1;function rt(Ot,$t){var Mr=Object(te.a)($t),Vr=Mr[0],hn=Mr.slice(1);if(!Vr)return[Ot];var Vt=Ot.split(Vr);return Pe=Pe||Vt.length>1,Vt.reduce(function(yt,xt){return[].concat(Object(G.a)(yt),Object(G.a)(rt(xt,hn)))},[]).filter(function(yt){return yt})}var wt=rt(De,Re);return Pe?wt:null}function Be(De,Re){var Pe=J([De],Re)[0];return Pe.disabled}function fe(De,Re,Pe,rt){var wt=re(Re).slice().sort(),Ot=Object(G.a)(De),$t=new Set;return De.forEach(function(Mr){Mr.options?Mr.options.forEach(function(Vr){$t.add(Vr.value)}):$t.add(Mr.value)}),wt.forEach(function(Mr){var Vr=rt?Mr.value:Mr;if(!$t.has(Vr)){var hn;Ot.push(rt?(hn={},Object(b.a)(hn,Pe,Mr.label),Object(b.a)(hn,"value",Vr),hn):{value:Vr})}}),Ot}var xe=n("6cGi"),ke=n("HTfv"),nt=n("c+Xe"),Ct=function(Re,Pe){var rt=Re.prefixCls,wt=Re.id,Ot=Re.inputElement,$t=Re.disabled,Mr=Re.tabIndex,Vr=Re.autoFocus,hn=Re.autoComplete,Vt=Re.editable,yt=Re.accessibilityIndex,xt=Re.value,dr=Re.onKeyDown,er=Re.onMouseDown,Ut=Re.onChange,ir=Re.onPaste,Ft=Re.onCompositionStart,rr=Re.onCompositionEnd,Kr=Re.open,Rr=Re.attrs,kr=Ot||e.createElement("input",null),dn=kr,yn=dn.ref,ri=dn.props,$n=ri.onKeyDown,pi=ri.onChange,_i=ri.onMouseDown,Di=ri.onCompositionStart,Wi=ri.onCompositionEnd,at=ri.style;return kr=e.cloneElement(kr,Object(K.a)(Object(K.a)({id:wt,ref:Object(nt.a)(Pe,yn),disabled:$t,tabIndex:Mr,autoComplete:hn||"off",autoFocus:Vr,className:"".concat(rt,"-selection-search-input"),style:Object(K.a)(Object(K.a)({},at),{},{opacity:Vt?null:0}),role:"combobox","aria-expanded":Kr,"aria-haspopup":"listbox","aria-owns":"".concat(wt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(wt,"_list"),"aria-activedescendant":"".concat(wt,"_list_").concat(yt)},Rr),{},{value:Vt?xt:"",readOnly:!Vt,unselectable:Vt?null:"on",onKeyDown:function(je){dr(je),$n&&$n(je)},onMouseDown:function(je){er(je),_i&&_i(je)},onChange:function(je){Ut(je),pi&&pi(je)},onCompositionStart:function(je){Ft(je),Di&&Di(je)},onCompositionEnd:function(je){rr(je),Wi&&Wi(je)},onPaste:ir})),kr},pt=e.forwardRef(Ct);pt.displayName="Input";var He=pt;function nr(De,Re){Ve?e.useLayoutEffect(De,Re):e.useEffect(De,Re)}var ht="__RC_SELECT_MAX_REST_COUNT__",Gt=function(Re){var Pe=Re.id,rt=Re.prefixCls,wt=Re.values,Ot=Re.open,$t=Re.searchValue,Mr=Re.inputRef,Vr=Re.placeholder,hn=Re.disabled,Vt=Re.mode,yt=Re.showSearch,xt=Re.autoFocus,dr=Re.autoComplete,er=Re.accessibilityIndex,Ut=Re.tabIndex,ir=Re.removeIcon,Ft=Re.choiceTransitionName,rr=Re.maxTagCount,Kr=Re.maxTagTextLength,Rr=Re.maxTagPlaceholder,kr=Rr===void 0?function(Vn){return"+ ".concat(Vn.length," ...")}:Rr,dn=Re.tagRender,yn=Re.onSelect,ri=Re.onInputChange,$n=Re.onInputPaste,pi=Re.onInputKeyDown,_i=Re.onInputMouseDown,Di=Re.onInputCompositionStart,Wi=Re.onInputCompositionEnd,at=e.useState(!1),Le=Object(E.a)(at,2),je=Le[0],Xe=Le[1],it=e.useRef(null),Ze=e.useState(0),ot=Object(E.a)(Ze,2),Lt=ot[0],At=ot[1];e.useEffect(function(){Xe(!0)},[]);var mr=Ot||Vt==="tags"?$t:"",qr=Vt==="tags"||Ot&&yt;nr(function(){At(it.current.scrollWidth)},[mr]);var Qr=wt,gn;typeof rr=="number"&&(gn=wt.length-rr,Qr=wt.slice(0,rr)),typeof Kr=="number"&&(Qr=Qr.map(function(Vn){var Br=Vn.label,jn=Object(x.a)(Vn,["label"]),xn=Br;if(typeof Br=="string"||typeof Br=="number"){var tn=String(xn);tn.length>Kr&&(xn="".concat(tn.slice(0,Kr),"..."))}return Object(K.a)(Object(K.a)({},jn),{},{label:xn})})),gn>0&&Qr.push({key:ht,label:typeof kr=="function"?kr(wt.slice(rr)):kr});var yr=e.createElement(ke.CSSMotionList,{component:!1,keys:Qr,motionName:Ft,motionAppear:je},function(Vn){var Br=Vn.key,jn=Vn.label,xn=Vn.value,tn=Vn.disabled,ti=Vn.className,mi=Vn.style,Pi=Br||xn,en=Br!==ht&&!tn,Tn=function(Dt){Dt.preventDefault(),Dt.stopPropagation()},Yn=function(Dt){Dt&&Dt.stopPropagation(),yn(xn,{selected:!1})};return typeof dn=="function"?e.createElement("span",{key:Pi,onMouseDown:Tn,className:ti,style:mi},dn({label:jn,value:xn,disabled:tn,closable:en,onClose:Yn})):e.createElement("span",{key:Pi,className:s()(ti,"".concat(rt,"-selection-item"),Object(b.a)({},"".concat(rt,"-selection-item-disabled"),tn)),style:mi},e.createElement("span",{className:"".concat(rt,"-selection-item-content")},jn),en&&e.createElement(I,{className:"".concat(rt,"-selection-item-remove"),onMouseDown:Tn,onClick:Yn,customizeIcon:ir},"\xD7"))});return e.createElement(e.Fragment,null,yr,e.createElement("span",{className:"".concat(rt,"-selection-search"),style:{width:Lt}},e.createElement(He,{ref:Mr,open:Ot,prefixCls:rt,id:Pe,inputElement:null,disabled:hn,autoFocus:xt,autoComplete:dr,editable:qr,accessibilityIndex:er,value:mr,onKeyDown:pi,onMouseDown:_i,onChange:ri,onPaste:$n,onCompositionStart:Di,onCompositionEnd:Wi,tabIndex:Ut,attrs:Object(_.a)(Re,!0)}),e.createElement("span",{ref:it,className:"".concat(rt,"-selection-search-mirror"),"aria-hidden":!0},mr,"\xA0")),!wt.length&&!mr&&e.createElement("span",{className:"".concat(rt,"-selection-placeholder")},Vr))},pr=Gt,Qt=function(Re){var Pe=Re.inputElement,rt=Re.prefixCls,wt=Re.id,Ot=Re.inputRef,$t=Re.disabled,Mr=Re.autoFocus,Vr=Re.autoComplete,hn=Re.accessibilityIndex,Vt=Re.mode,yt=Re.open,xt=Re.values,dr=Re.placeholder,er=Re.tabIndex,Ut=Re.showSearch,ir=Re.searchValue,Ft=Re.activeValue,rr=Re.onInputKeyDown,Kr=Re.onInputMouseDown,Rr=Re.onInputChange,kr=Re.onInputPaste,dn=Re.onInputCompositionStart,yn=Re.onInputCompositionEnd,ri=e.useState(!1),$n=Object(E.a)(ri,2),pi=$n[0],_i=$n[1],Di=Vt==="combobox",Wi=Di||Ut&&yt,at=xt[0],Le=ir||"";Di&&Ft&&!pi&&(Le=Ft),e.useEffect(function(){Di&&_i(!1)},[Di,Ft]);var je=Vt!=="combobox"&&!yt?!1:!!Le,Xe=at&&(typeof at.label=="string"||typeof at.label=="number")?at.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(rt,"-selection-search")},e.createElement(He,{ref:Ot,prefixCls:rt,id:wt,open:yt,inputElement:Pe,disabled:$t,autoFocus:Mr,autoComplete:Vr,editable:Wi,accessibilityIndex:hn,value:Le,onKeyDown:rr,onMouseDown:Kr,onChange:function(Ze){_i(!0),Rr(Ze)},onPaste:kr,onCompositionStart:dn,onCompositionEnd:yn,tabIndex:er,attrs:Object(_.a)(Re,!0)})),!Di&&at&&!je&&e.createElement("span",{className:"".concat(rt,"-selection-item"),title:Xe},at.label),!at&&!je&&e.createElement("span",{className:"".concat(rt,"-selection-placeholder")},dr))},Ht=Qt;function Jt(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Re=e.useRef(null),Pe=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Pe.current)}},[]);function rt(wt){(wt||Re.current===null)&&(Re.current=wt),window.clearTimeout(Pe.current),Pe.current=window.setTimeout(function(){Re.current=null},De)}return[function(){return Re.current},rt]}var Ge=function(Re,Pe){var rt=Object(e.useRef)(null),wt=Object(e.useRef)(!1),Ot=Re.prefixCls,$t=Re.multiple,Mr=Re.open,Vr=Re.mode,hn=Re.showSearch,Vt=Re.tokenWithEnter,yt=Re.onSearch,xt=Re.onSearchSubmit,dr=Re.onToggleOpen,er=Re.onInputKeyDown,Ut=Re.domRef;e.useImperativeHandle(Pe,function(){return{focus:function(){rt.current.focus()},blur:function(){rt.current.blur()}}});var ir=Jt(0),Ft=Object(E.a)(ir,2),rr=Ft[0],Kr=Ft[1],Rr=function(je){var Xe=je.which;(Xe===T.a.UP||Xe===T.a.DOWN)&&je.preventDefault(),er&&er(je),Xe===T.a.ENTER&&Vr==="tags"&&!wt.current&&!Mr&&xt(je.target.value),[T.a.SHIFT,T.a.TAB,T.a.BACKSPACE,T.a.ESC].includes(Xe)||dr(!0)},kr=function(){Kr(!0)},dn=Object(e.useRef)(null),yn=function(je){yt(je,!0,wt.current)!==!1&&dr(!0)},ri=function(){wt.current=!0},$n=function(){wt.current=!1},pi=function(je){var Xe=je.target.value;if(Vt&&dn.current&&/[\r\n]/.test(dn.current)){var it=dn.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Xe=Xe.replace(it,dn.current)}dn.current=null,yn(Xe)},_i=function(je){var Xe=je.clipboardData,it=Xe.getData("text");dn.current=it},Di=function(je){var Xe=rr();if(je.target!==rt.current){Xe||je.preventDefault();var it=document.body.style.msTouchAction!==void 0;it?setTimeout(function(){rt.current.focus()}):rt.current.focus()}(Vr!=="combobox"&&(!hn||!Xe)||!Mr)&&(Mr&&yt("",!0,!1),dr())},Wi={inputRef:rt,onInputKeyDown:Rr,onInputMouseDown:kr,onInputChange:pi,onInputPaste:_i,onInputCompositionStart:ri,onInputCompositionEnd:$n},at=$t?e.createElement(pr,Object.assign({},Re,Wi)):e.createElement(Ht,Object.assign({},Re,Wi));return e.createElement("div",{ref:Ut,className:"".concat(Ot,"-selector"),onMouseDown:Di},at)},pe=e.forwardRef(Ge);pe.displayName="Selector";var oe=pe,ct=n("Uaa1"),qe=function(Re){var Pe=typeof Re!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1}}}},me=function(Re,Pe){var rt=Re.prefixCls,wt=Re.disabled,Ot=Re.visible,$t=Re.children,Mr=Re.popupElement,Vr=Re.containerWidth,hn=Re.animation,Vt=Re.transitionName,yt=Re.dropdownStyle,xt=Re.dropdownClassName,dr=Re.direction,er=dr===void 0?"ltr":dr,Ut=Re.dropdownMatchSelectWidth,ir=Ut===void 0?!0:Ut,Ft=Re.dropdownRender,rr=Re.dropdownAlign,Kr=Re.getPopupContainer,Rr=Re.empty,kr=Re.getTriggerDOMNode,dn=Object(x.a)(Re,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),yn="".concat(rt,"-dropdown"),ri=Mr;Ft&&(ri=Ft(Mr));var $n=e.useMemo(function(){return qe(ir)},[ir]),pi=hn?"".concat(yn,"-").concat(hn):Vt,_i=e.useRef(null);e.useImperativeHandle(Pe,function(){return{getPopupElement:function(){return _i.current}}});var Di=Object(K.a)({minWidth:Vr},yt);return typeof ir=="number"?Di.width=ir:ir&&(Di.width=Vr),e.createElement(ct.a,Object.assign({},dn,{showAction:[],hideAction:[],popupPlacement:er==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:$n,prefixCls:yn,popupTransitionName:pi,popup:e.createElement("div",{ref:_i},ri),popupAlign:rr,popupVisible:Ot,getPopupContainer:Kr,popupClassName:s()(xt,Object(b.a)({},"".concat(yn,"-empty"),Rr)),popupStyle:Di,getTriggerDOMNode:kr}),$t)},Kt=e.forwardRef(me);Kt.displayName="SelectTrigger";var vr=Kt,bt="RC_SELECT_INTERNAL_PROPS_MARK";function or(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Re=e.useState(!1),Pe=Object(E.a)(Re,2),rt=Pe[0],wt=Pe[1],Ot=e.useRef(null),$t=function(){window.clearTimeout(Ot.current)};e.useEffect(function(){return $t},[]);var Mr=function(hn,Vt){$t(),Ot.current=window.setTimeout(function(){wt(hn),Vt&&Vt()},De)};return[rt,Mr,$t]}function _t(De,Re,Pe){var rt=e.useRef(null);rt.current={elements:De.filter(function(wt){return wt}),open:Re,triggerOpen:Pe},e.useEffect(function(){function wt(Ot){var $t=Ot.target;rt.current.open&&rt.current.elements.every(function(Mr){return!Mr.contains($t)&&Mr!==$t})&&rt.current.triggerOpen(!1)}return window.addEventListener("mousedown",wt),function(){return window.removeEventListener("mousedown",wt)}},[])}function jt(De){var Re=e.useRef(De),Pe=e.useMemo(function(){var rt=new Map;Re.current.forEach(function(Ot){var $t=Ot.value,Mr=Ot.label;$t!==Mr&&rt.set($t,Mr)});var wt=De.map(function(Ot){var $t=rt.get(Ot.value);return Ot.value===Ot.label&&$t?Object(K.a)(Object(K.a)({},Ot),{},{label:$t}):Ot});return Re.current=wt,wt},[De]);return Pe}function ut(De,Re){var Pe=e.useRef(null),rt=e.useMemo(function(){var Ot=new Map;return Re.forEach(function($t){var Mr=$t.data.value;Ot.set(Mr,$t)}),Ot},[De,Re]);Pe.current=rt;var wt=function($t){return $t.map(function(Mr){return Pe.current.get(Mr)}).filter(Boolean)};return wt}var St=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function mt(De){var Re=De.prefixCls,Pe=De.components.optionList,rt=De.convertChildrenToData,wt=De.flattenOptions,Ot=De.getLabeledValue,$t=De.filterOptions,Mr=De.isValueDisabled,Vr=De.findValueOption,hn=De.warningProps,Vt=De.fillOptionsWithMissingValue,yt=De.omitDOMProps;function xt(er,Ut){var ir,Ft=er.prefixCls,rr=Ft===void 0?Re:Ft,Kr=er.className,Rr=er.id,kr=er.open,dn=er.defaultOpen,yn=er.options,ri=er.children,$n=er.mode,pi=er.value,_i=er.defaultValue,Di=er.labelInValue,Wi=er.showSearch,at=er.inputValue,Le=er.searchValue,je=er.filterOption,Xe=er.optionFilterProp,it=Xe===void 0?"value":Xe,Ze=er.autoClearSearchValue,ot=Ze===void 0?!0:Ze,Lt=er.onSearch,At=er.allowClear,mr=er.clearIcon,qr=er.showArrow,Qr=er.inputIcon,gn=er.menuItemSelectedIcon,yr=er.disabled,Vn=er.loading,Br=er.defaultActiveFirstOption,jn=er.notFoundContent,xn=jn===void 0?"Not Found":jn,tn=er.optionLabelProp,ti=er.backfill,mi=er.getInputElement,Pi=er.getPopupContainer,en=er.listHeight,Tn=en===void 0?200:en,Yn=er.listItemHeight,Yt=Yn===void 0?20:Yn,Dt=er.animation,Bt=er.transitionName,Wt=er.virtual,Xt=er.dropdownStyle,kt=er.dropdownClassName,hr=er.dropdownMatchSelectWidth,br=er.dropdownRender,wr=er.dropdownAlign,Fr=er.showAction,Xn=Fr===void 0?[]:Fr,Fn=er.direction,hi=er.tokenSeparators,An=er.tagRender,jr=er.onPopupScroll,In=er.onDropdownVisibleChange,Qn=er.onFocus,qn=er.onBlur,si=er.onKeyUp,Ci=er.onKeyDown,ki=er.onMouseDown,Ri=er.onChange,oa=er.onSelect,ma=er.onDeselect,aa=er.onClear,ba=er.internalProps,bi=ba===void 0?{}:ba,Pn=Object(x.a)(er,["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"]),ji=bi.mark===bt,ha=yt?yt(Pn):Pn;St.forEach(function(pa){delete ha[pa]});var ta=Object(e.useRef)(null),ra=Object(e.useRef)(null),Nr=Object(e.useRef)(null),Er=Object(e.useRef)(null),On=Object(e.useMemo)(function(){return(hi||[]).some(function(pa){return[`
`,`\r
`].includes(pa)})},[hi]),gr=or(),Pr=Object(E.a)(gr,3),Xr=Pr[0],cn=Pr[1],Un=Pr[2],Nt=Object(e.useState)(),Lr=Object(E.a)(Nt,2),Dr=Lr[0],an=Lr[1];Object(e.useEffect)(function(){an("rc_select_".concat(Fe()))},[]);var Cn=Rr||Dr,Nn=tn;Nn===void 0&&(Nn=yn?"label":"children");var En=$n==="combobox"?!1:Di,ei=$n==="tags"||$n==="multiple",Wn=Wi!==void 0?Wi:ei||$n==="combobox",gi=Object(e.useRef)(null);e.useImperativeHandle(Ut,function(){return{focus:Nr.current.focus,blur:Nr.current.blur}});var Fi=Object(xe.a)(_i,{value:pi}),wi=Object(E.a)(Fi,2),Ii=wi[0],Vi=wi[1],ea=Object(e.useMemo)(function(){return we(Ii,{labelInValue:En,combobox:$n==="combobox"})},[Ii,En]),Xi=Object(e.useMemo)(function(){return new Set(ea)},[ea]),zi=Object(e.useState)(null),Hi=Object(E.a)(zi,2),Ji=Hi[0],ca=Hi[1],Ta=Object(e.useState)(""),na=Object(E.a)(Ta,2),Pa=na[0],La=na[1],va=Pa;$n==="combobox"&&Ii!==void 0?va=Ii:Le!==void 0?va=Le:at&&(va=at);var ga=Object(e.useMemo)(function(){var pa=yn;return pa===void 0&&(pa=rt(ri)),$n==="tags"&&Vt&&(pa=Vt(pa,Ii,Nn,Di)),pa||[]},[yn,ri,$n,Ii]),Oa=Object(e.useMemo)(function(){return wt(ga,er)},[ga]),Aa=ut(ea,Oa),Xa=Object(e.useMemo)(function(){if(!va||!Wn)return Object(G.a)(ga);var pa=$t(va,ga,{optionFilterProp:it,filterOption:$n==="combobox"&&je===void 0?function(){return!0}:je});return $n==="tags"&&pa.every(function(Ea){return Ea[it]!==va})&&pa.unshift({value:va,label:va,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),pa},[ga,va,$n,Wn]),_a=Object(e.useMemo)(function(){return wt(Xa,er)},[Xa]);Object(e.useEffect)(function(){Er.current&&Er.current.scrollTo&&Er.current.scrollTo(0)},[va]);var Va=Object(e.useMemo)(function(){var pa=ea.map(function(Ea){var Fa=Aa([Ea]),Ka=Ot(Ea,{options:Fa,prevValue:Ii,labelInValue:En,optionLabelProp:Nn});return Object(K.a)(Object(K.a)({},Ka),{},{disabled:Mr(Ea,Fa)})});return!$n&&pa.length===1&&pa[0].value===null&&pa[0].label===null?[]:pa},[Ii,ga,$n]);Va=jt(Va);var Bi=function(Ea,Fa,Ka){var lo=Aa([Ea]),so=Vr([Ea],lo)[0];if(!bi.skipTriggerSelect){var To=En?Ot(Ea,{options:lo,prevValue:Ii,labelInValue:En,optionLabelProp:Nn}):Ea;Fa&&oa?oa(To,so):!Fa&&ma&&ma(To,so)}ji&&(Fa&&bi.onRawSelect?bi.onRawSelect(Ea,so,Ka):!Fa&&bi.onRawDeselect&&bi.onRawDeselect(Ea,so,Ka))},io=Object(e.useState)([]),oo=Object(E.a)(io,2),Qo=oo[0],mo=oo[1],Co=function(Ea){if(ji&&bi.skipTriggerChange)return;var Fa=Aa(Ea),Ka=Oe(Array.from(Ea),{labelInValue:En,options:Fa,getLabeledValue:Ot,prevValue:Ii,optionLabelProp:Nn}),lo=ei?Ka:Ka[0];if(Ri&&(ea.length!==0||Ka.length!==0)){var so=Vr(Ea,Fa,{prevValueOptions:Qo});mo(so.map(function(To,Lo){var is=Object(K.a)({},To);return Object.defineProperty(is,"_INTERNAL_OPTION_VALUE_",{get:function(){return Ea[Lo]}}),is})),Ri(lo,ei?so:so[0])}Vi(lo)},ao=function(Ea,Fa){var Ka=Fa.selected,lo=Fa.source;if(yr)return;var so;ei?(so=new Set(ea),Ka?so.add(Ea):so.delete(Ea)):(so=new Set,so.add(Ea)),(ei||!ei&&Array.from(ea)[0]!==Ea)&&Co(Array.from(so)),Bi(Ea,!ei||Ka,lo),$n==="combobox"?(La(String(Ea)),ca("")):(!ei||ot)&&(La(""),ca(""))},xo=function(Ea,Fa){ao(Ea,Object(K.a)(Object(K.a)({},Fa),{},{source:"option"}))},bo=function(Ea,Fa){ao(Ea,Object(K.a)(Object(K.a)({},Fa),{},{source:"selection"}))},to=$n==="combobox"&&mi&&mi()||null,Jo=Object(xe.a)(void 0,{defaultValue:dn,value:kr}),Uo=Object(E.a)(Jo,2),wo=Uo[0],ts=Uo[1],Ia=wo,Oo=!xn&&!Xa.length;(yr||Oo&&Ia&&$n==="combobox")&&(Ia=!1);var Io=Oo?!1:Ia,os=function(Ea){var Fa=Ea!==void 0?Ea:!Ia;wo!==Fa&&!yr&&(ts(Fa),In&&In(Fa))};_t([ta.current,ra.current&&ra.current.getPopupElement()],Io,os);var So=function(Ea,Fa,Ka){var lo=!0,so=Ea;ca(null);var To=Ka?null:Te(Ea,hi),Lo=To;if($n==="combobox")Fa&&Co([so]);else if(To){so="",$n!=="tags"&&(Lo=To.map(function(cs){var Rs=Oa.find(function(Ko){var as=Ko.data;return as[Nn]===cs});return Rs?Rs.data.value:null}).filter(function(cs){return cs!==null}));var is=Array.from(new Set([].concat(Object(G.a)(ea),Object(G.a)(Lo))));Co(is),is.forEach(function(cs){Bi(cs,!0,"input")}),os(!1),lo=!1}return La(so),Lt&&va!==so&&Lt(so),lo},rs=function(Ea){var Fa=Array.from(new Set([].concat(Object(G.a)(ea),[Ea])));Co(Fa),Fa.forEach(function(Ka){Bi(Ka,!0,"input")}),La("")};Object(e.useEffect)(function(){wo&&!!yr&&ts(!1)},[yr]),Object(e.useEffect)(function(){!Ia&&!ei&&$n!=="combobox"&&So("",!1,!1)},[Ia]);var Ho=Jt(),_o=Object(E.a)(Ho,2),uo=_o[0],Ha=_o[1],vt=function(Ea){var Fa=uo(),Ka=Ea.which;if(!Ia&&Ka===T.a.ENTER&&os(!0),Ha(!!va),Ka===T.a.BACKSPACE&&!Fa&&ei&&!va&&ea.length){var lo=Me(Va,ea);lo.removedValue!==null&&(Co(lo.values),Bi(lo.removedValue,!1,"input"))}for(var so=arguments.length,To=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)To[Lo-1]=arguments[Lo];if(Ia&&Er.current){var is;(is=Er.current).onKeyDown.apply(is,[Ea].concat(To))}Ci&&Ci.apply(void 0,[Ea].concat(To))},_r=function(Ea){for(var Fa=arguments.length,Ka=new Array(Fa>1?Fa-1:0),lo=1;lo<Fa;lo++)Ka[lo-1]=arguments[lo];if(Ia&&Er.current){var so;(so=Er.current).onKeyUp.apply(so,[Ea].concat(Ka))}si&&si.apply(void 0,[Ea].concat(Ka))},rn=Object(e.useRef)(!1),Jr=function(){cn(!0),yr||(Qn&&!rn.current&&Qn.apply(void 0,arguments),Xn.includes("focus")&&os(!0)),rn.current=!0},Jn=function(){if(cn(!1,function(){rn.current=!1,os(!1)}),yr)return;va&&($n==="tags"?(So("",!1,!1),Co(Array.from(new Set([].concat(Object(G.a)(ea),[va]))))):$n==="multiple"&&La("")),qn&&qn.apply(void 0,arguments)},fn=[];Object(e.useEffect)(function(){return function(){fn.forEach(function(pa){return clearTimeout(pa)}),fn.splice(0,fn.length)}},[]);var Yr=function(Ea){var Fa=Ea.target,Ka=ra.current&&ra.current.getPopupElement();if(Ka&&Ka.contains(Fa)){var lo=setTimeout(function(){var is=fn.indexOf(lo);is!==-1&&fn.splice(is,1),Un(),Ka.contains(document.activeElement)||Nr.current.focus()});fn.push(lo)}if(ki){for(var so=arguments.length,To=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)To[Lo-1]=arguments[Lo];ki.apply(void 0,[Ea].concat(To))}},ii=Object(e.useState)(0),on=Object(E.a)(ii,2),zn=on[0],ui=on[1],di=Br!==void 0?Br:$n!=="combobox",li=function(Ea,Fa){ui(Fa),ti&&$n==="combobox"&&Ea!==null&&ca(String(Ea))},Ti=Object(e.useState)(null),vi=Object(E.a)(Ti,2),yi=vi[0],Ni=vi[1],ia=Object(e.useState)({}),Ki=Object(E.a)(ia,2),fa=Ki[1];function Ya(){fa({})}nr(function(){if(Io){var pa=Math.ceil(ta.current.offsetWidth);yi!==pa&&Ni(pa)}},[Io]);var Sa=e.createElement(Pe,{ref:Er,prefixCls:rr,id:Cn,open:Ia,childrenAsData:!yn,options:Xa,flattenOptions:_a,multiple:ei,values:Xi,height:Tn,itemHeight:Yt,onSelect:xo,onToggleOpen:os,onActiveValue:li,defaultActiveFirstOption:di,notFoundContent:xn,onScroll:jr,searchValue:va,menuItemSelectedIcon:gn,virtual:Wt!==!1&&hr!==!1,onMouseEnter:Ya}),wa,Da=function(){ji&&bi.onClear&&bi.onClear(),aa&&aa(),Co([]),So("",!1,!1)};!yr&&At&&(ea.length||va)&&(wa=e.createElement(I,{className:"".concat(rr,"-clear"),onMouseDown:Da,customizeIcon:mr},"\xD7"));var ja=qr!==void 0?qr:Vn||!ei&&$n!=="combobox",ko;ja&&(ko=e.createElement(I,{className:s()("".concat(rr,"-arrow"),Object(b.a)({},"".concat(rr,"-arrow-loading"),Vn)),customizeIcon:Qr,customizeIconProps:{loading:Vn,searchValue:va,open:Ia,focused:Xr,showSearch:Wn}}));var ro=s()(rr,Kr,(ir={},Object(b.a)(ir,"".concat(rr,"-focused"),Xr),Object(b.a)(ir,"".concat(rr,"-multiple"),ei),Object(b.a)(ir,"".concat(rr,"-single"),!ei),Object(b.a)(ir,"".concat(rr,"-allow-clear"),At),Object(b.a)(ir,"".concat(rr,"-show-arrow"),ja),Object(b.a)(ir,"".concat(rr,"-disabled"),yr),Object(b.a)(ir,"".concat(rr,"-loading"),Vn),Object(b.a)(ir,"".concat(rr,"-open"),Ia),Object(b.a)(ir,"".concat(rr,"-customize-input"),to),Object(b.a)(ir,"".concat(rr,"-show-search"),Wn),ir));return e.createElement("div",Object.assign({className:ro},ha,{ref:ta,onMouseDown:Yr,onKeyDown:vt,onKeyUp:_r,onFocus:Jr,onBlur:Jn}),Xr&&!Ia&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ea.join(", "))),e.createElement(vr,{ref:ra,disabled:yr,prefixCls:rr,visible:Io,popupElement:Sa,containerWidth:yi,animation:Dt,transitionName:Bt,dropdownStyle:Xt,dropdownClassName:kt,direction:Fn,dropdownMatchSelectWidth:hr,dropdownRender:br,dropdownAlign:wr,getPopupContainer:Pi,empty:!ga.length,getTriggerDOMNode:function(){return gi.current}},e.createElement(oe,Object.assign({},er,{domRef:gi,prefixCls:rr,inputElement:to,ref:Nr,id:Cn,showSearch:Wn,mode:$n,accessibilityIndex:zn,multiple:ei,tagRender:An,values:Va,open:Ia,onToggleOpen:os,searchValue:va,activeValue:Ji,onSearch:So,onSearchSubmit:rs,onSelect:bo,tokenWithEnter:On}))),ko,wa)}var dr=e.forwardRef(xt);return dr}function lt(De){var Re=De.mode,Pe=De.options,rt=De.children,wt=De.backfill,Ot=De.allowClear,$t=De.placeholder,Mr=De.getInputElement,Vr=De.showSearch,hn=De.onSearch,Vt=De.defaultOpen,yt=De.autoFocus,xt=De.labelInValue,dr=De.value,er=De.inputValue,Ut=De.optionLabelProp,ir=Re==="multiple"||Re==="tags",Ft=Vr!==void 0?Vr:ir||Re==="combobox",rr=Pe||Q(rt);if(Object(se.a)(Re!=="tags"||rr.every(function(dn){return!dn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Re==="tags"||Re==="combobox"){var Kr=rr.some(function(dn){return dn.options?dn.options.some(function(yn){return typeof("value"in yn?yn.value:yn.key)=="number"}):typeof("value"in dn?dn.value:dn.key)=="number"});Object(se.a)(!Kr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(se.a)(Re!=="combobox"||!Ut,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(se.a)(Re==="combobox"||!wt,"`backfill` only works with `combobox` mode."),Object(se.a)(Re==="combobox"||!Mr,"`getInputElement` only work with `combobox` mode."),Object(se.b)(Re!=="combobox"||!Mr||!Ot||!$t,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),hn&&!Ft&&Re!=="combobox"&&Re!=="tags"&&Object(se.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(se.b)(!Vt||yt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),dr!=null){var Rr=re(dr);Object(se.a)(!xt||Rr.every(function(dn){return Object(q.a)(dn)==="object"&&("key"in dn||"value"in dn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(se.a)(!ir||Array.isArray(dr),"`value` should be array when `mode` is `multiple` or `tags`")}if(rt){var kr=null;Object(z.a)(rt).some(function(dn){if(!e.isValidElement(dn)||!dn.type)return!1;var yn=dn.type;if(yn.isSelectOption)return!1;if(yn.isSelectOptGroup){var ri=Object(z.a)(dn.props.children).every(function($n){return!e.isValidElement($n)||!dn.type||$n.type.isSelectOption?!0:(kr=$n.type,!1)});return!ri}return kr=yn,!0}),kr&&Object(se.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(kr.displayName||kr.name||kr,"`.")),Object(se.a)(er===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var tt=lt,Cr=mt({prefixCls:"rc-select",components:{optionList:U},convertChildrenToData:Q,flattenOptions:et,getLabeledValue:Y,filterOptions:be,isValueDisabled:Be,findValueOption:J,warningProps:tt,fillOptionsWithMissingValue:fe}),nn=function(De){Object(v.a)(Pe,De);var Re=Object(A.a)(Pe);function Pe(){var rt;return Object(c.a)(this,Pe),rt=Re.apply(this,arguments),rt.selectRef=e.createRef(),rt.focus=function(){rt.selectRef.current.focus()},rt.blur=function(){rt.selectRef.current.blur()},rt}return Object(h.a)(Pe,[{key:"render",value:function(){return e.createElement(Cr,Object.assign({ref:this.selectRef},this.props))}}]),Pe}(e.Component);nn.Option=X,nn.OptGroup=j;var mn=nn,Bn=mn,oi=n("H84U"),wn=n("1vzs"),Rn=n("3Nzz"),Zt=function(De){i()(Pe,De);var Re=o()(Pe);function Pe(){var rt;return f()(this,Pe),rt=Re.apply(this,arguments),rt.selectRef=e.createRef(),rt.focus=function(){rt.selectRef.current&&rt.selectRef.current.focus()},rt.blur=function(){rt.selectRef.current&&rt.selectRef.current.blur()},rt.getMode=function(){var wt=rt.props.mode;return wt==="combobox"?void 0:wt===Pe.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":wt},rt.renderSelect=function(wt){var Ot=wt.getPopupContainer,$t=wt.getPrefixCls,Mr=wt.renderEmpty,Vr=wt.direction,hn=wt.virtual,Vt=wt.dropdownMatchSelectWidth,yt=rt.props,xt=yt.prefixCls,dr=yt.notFoundContent,er=yt.className,Ut=yt.size,ir=yt.listHeight,Ft=ir===void 0?256:ir,rr=yt.listItemHeight,Kr=rr===void 0?24:rr,Rr=yt.getPopupContainer,kr=yt.dropdownClassName,dn=yt.bordered,yn=$t("select",xt),ri=rt.getMode(),$n=ri==="multiple"||ri==="tags",pi;dr!==void 0?pi=dr:ri==="combobox"?pi=null:pi=Mr("Select");var _i=Object(wn.a)(m()(m()({},rt.props),{multiple:$n,prefixCls:yn})),Di=_i.suffixIcon,Wi=_i.itemIcon,at=_i.removeIcon,Le=_i.clearIcon,je=Object(u.default)(rt.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Xe=s()(kr,g()({},"".concat(yn,"-dropdown-").concat(Vr),Vr==="rtl"));return e.createElement(Rn.b.Consumer,null,function(it){var Ze,ot=Ut||it,Lt=s()(er,(Ze={},g()(Ze,"".concat(yn,"-lg"),ot==="large"),g()(Ze,"".concat(yn,"-sm"),ot==="small"),g()(Ze,"".concat(yn,"-rtl"),Vr==="rtl"),g()(Ze,"".concat(yn,"-borderless"),!dn),Ze));return e.createElement(Bn,m()({ref:rt.selectRef,virtual:hn,dropdownMatchSelectWidth:Vt},je,{listHeight:Ft,listItemHeight:Kr,mode:ri,prefixCls:yn,direction:Vr,inputIcon:Di,menuItemSelectedIcon:Wi,removeIcon:at,clearIcon:Le,notFoundContent:pi,className:Lt,getPopupContainer:Rr||Ot,dropdownClassName:Xe}))})},rt}return l()(Pe,[{key:"render",value:function(){return e.createElement(oi.a,null,this.renderSelect)}}]),Pe}(e.Component);Zt.Option=X,Zt.OptGroup=j,Zt.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",Zt.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var Tt=D.a=Zt},"2fw6":function(R,D,n){var y=n("y+Vt"),g=y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(m,p,f){f&&m.moveTo(p.cx+p.r,p.cy),m.arc(p.cx,p.cy,p.r,0,Math.PI*2,!0)}});R.exports=g},"2gN3":function(R,D,n){var y=n("Kz5y"),g=y["__core-js_shared__"];R.exports=g},"2jpz":function(R,D,n){"use strict";n.d(D,"a",function(){return h});var y=n("cDf5"),g=n.n(y),S=n("q1tI"),m=n.n(S),p=n("TSYQ"),f=n.n(p),d=n("gZBC"),l=n.n(d),a=n("vk+C"),i=n.n(a),t=n("pG52"),o=n.n(t),e=n("Csr3"),u=n.n(e),r=n("e5VY"),s=n.n(r),c=n("0n0R");function h(v,A,b,x){var E=x.isLeaf,T=x.expanded,_=x.loading;if(_)return S.createElement(l.a,{className:"".concat(v,"-switcher-loading-icon")});var C;if(b&&g()(b)==="object"&&(C=b.showLeafIcon),E)return b?g()(b)==="object"&&!C?S.createElement("span",{className:"".concat(v,"-switcher-leaf-line")}):S.createElement(i.a,{className:"".concat(v,"-switcher-line-icon")}):null;var w="".concat(v,"-switcher-icon");return Object(c.b)(A)?Object(c.a)(A,{className:f()(A.props.className||"",w)}):A||(b?T?S.createElement(o.a,{className:"".concat(v,"-switcher-line-icon")}):S.createElement(u.a,{className:"".concat(v,"-switcher-line-icon")}):S.createElement(s.a,{className:w}))}},"2oIt":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},"2uGb":function(R,D,n){var y=n("ProS");n("ko1b"),n("s2lz"),n("RBEP");var g=n("kMLO"),S=n("nKiI");y.registerVisual(g),y.registerLayout(S)},"2w7y":function(R,D,n){var y=n("ProS");n("qMZE"),n("g0SD"),y.registerPreprocessor(function(g){g.markPoint=g.markPoint||{}})},"33Ds":function(R,D,n){var y=n("ProS"),g=n("b9oc"),S=n("Kagy"),m=n("IUWy"),p=S.toolbox.restore;function f(a){this.model=a}f.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:p.title};var d=f.prototype;d.onclick=function(a,i,t){g.clear(a),i.dispatchAction({type:"restore",from:this.uid})},m.register("restore",f),y.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(a,i){i.resetOption("recreate")});var l=f;R.exports=l},"34/K":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function g(p,f){for(var d=0;d<f.length;d++){var l=f[d];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(p,l.key,l)}}function S(p,f,d){return f&&g(p.prototype,f),d&&g(p,d),p}var m=function(){function p(){y(this,p),this._lines=0}return S(p,[{key:"decodeRect",value:function(d,l,a,i,t,o,e){this._lines===0&&(this._lines=i);var u=e==8?1:4,r=a*u;if(t.rQwait("RAW",r))return!1;var s=l+(i-this._lines),c=Math.min(this._lines,Math.floor(t.rQlen/r)),h=t.rQ,v=t.rQi;if(e==8){for(var A=a*c,b=new Uint8Array(A*4),x=0;x<A;x++)b[x*4+0]=(h[v+x]>>0&3)*255/3,b[x*4+1]=(h[v+x]>>2&3)*255/3,b[x*4+2]=(h[v+x]>>4&3)*255/3,b[x*4+4]=0;h=b,v=0}return o.blitImage(d,s,a,c,h,v),t.rQskipBytes(c*r),this._lines-=c,!(this._lines>0)}}]),p}();D.default=m},"3690":function(R,D,n){"use strict";function y(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(t){return typeof t}:y=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(a)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var g=m(n("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return S=function(){return a},a}function m(a){if(a&&a.__esModule)return a;if(a===null||y(a)!=="object"&&typeof a!="function")return{default:a};var i=S();if(i&&i.has(a))return i.get(a);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var u=o?Object.getOwnPropertyDescriptor(a,e):null;u&&(u.get||u.set)?Object.defineProperty(t,e,u):t[e]=a[e]}return t.default=a,i&&i.set(a,t),t}function p(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function f(a,i){for(var t=0;t<i.length;t++){var o=i[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}function d(a,i,t){return i&&f(a.prototype,i),t&&f(a,t),a}var l=function(){function a(){p(this,a),this._tiles=0,this._lastsubencoding=0}return d(a,[{key:"decodeRect",value:function(t,o,e,u,r,s,c){for(this._tiles===0&&(this._tilesX=Math.ceil(e/16),this._tilesY=Math.ceil(u/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var h=1;if(r.rQwait("HEXTILE",h))return!1;var v=r.rQ,A=r.rQi,b=v[A];if(b>30)throw new Error("Illegal hextile subencoding (subencoding: "+b+")");var x=this._totalTiles-this._tiles,E=x%this._tilesX,T=Math.floor(x/this._tilesX),_=t+E*16,C=o+T*16,w=Math.min(16,t+e-_),O=Math.min(16,o+u-C);if(b&1)h+=w*O*4;else if(b&2&&(h+=4),b&4&&(h+=4),b&8){if(h++,r.rQwait("HEXTILE",h))return!1;var I=v[A+h-1];b&16?h+=I*(4+2):h+=I*2}if(r.rQwait("HEXTILE",h))return!1;if(A++,b===0)this._lastsubencoding&1?g.Debug(" Ignoring blank after RAW"):s.fillRect(_,C,w,O,this._background);else if(b&1)s.blitImage(_,C,w,O,v,A),A+=h-1;else{if(b&2&&(this._background=[v[A],v[A+1],v[A+2],v[A+3]],A+=4),b&4&&(this._foreground=[v[A],v[A+1],v[A+2],v[A+3]],A+=4),s.startTile(_,C,w,O,this._background),b&8){var k=v[A];A++;for(var M=0;M<k;M++){var U=void 0;b&16?(U=[v[A],v[A+1],v[A+2],v[A+3]],A+=4):U=this._foreground;var P=v[A];A++;var X=P>>4,F=P&15,j=v[A];A++;var K=(j>>4)+1,z=(j&15)+1;s.subTile(X,F,K,z,U)}}s.finishTile()}r.rQi=A,this._lastsubencoding=b,this._tiles--}return!0}}]),a}();D.default=l},"3A9y":function(R,D){function n(y){return this.__data__.has(y)}R.exports=n},"3C/r":function(R,D){var n=function(S,m){this.image=S,this.repeat=m,this.type="pattern"};n.prototype.getCanvasPattern=function(g){return g.createPattern(this.image,this.repeat||"repeat")};var y=n;R.exports=y},"3CBa":function(R,D,n){var y=n("hydK"),g=y.createElement,S=n("bYtY"),m=n("SUKs"),p=n("y+Vt"),f=n("Dagg"),d=n("dqUG"),l=n("DBLp"),a=n("sW+o"),i=n("n6Mw"),t=n("vKoX"),o=n("P47w"),e=o.path,u=o.image,r=o.text;function s(w){return parseInt(w,10)}function c(w){return w instanceof p?e:w instanceof f?u:w instanceof d?r:e}function h(w,O){return O&&w&&O.parentNode!==w}function v(w,O,I){if(h(w,O)&&I){var k=I.nextSibling;k?w.insertBefore(O,k):w.appendChild(O)}}function A(w,O){if(h(w,O)){var I=w.firstChild;I?w.insertBefore(O,I):w.appendChild(O)}}function b(w,O){O&&w&&O.parentNode===w&&w.removeChild(O)}function x(w){return w.__textSvgEl}function E(w){return w.__svgEl}var T=function(O,I,k,M){this.root=O,this.storage=I,this._opts=k=S.extend({},k||{});var U=g("svg");U.setAttribute("xmlns","http://www.w3.org/2000/svg"),U.setAttribute("version","1.1"),U.setAttribute("baseProfile","full"),U.style.cssText="user-select:none;position:absolute;left:0;top:0;";var P=g("g");U.appendChild(P);var X=g("g");U.appendChild(X),this.gradientManager=new a(M,X),this.clipPathManager=new i(M,X),this.shadowManager=new t(M,X);var F=document.createElement("div");F.style.cssText="overflow:hidden;position:relative",this._svgDom=U,this._svgRoot=X,this._backgroundRoot=P,this._viewport=F,O.appendChild(F),F.appendChild(U),this.resize(k.width,k.height),this._visibleList=[]};T.prototype={constructor:T,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=g("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,k=this._visibleList,M=O.length,U=[],P;for(P=0;P<M;P++){var X=O[P],F=c(X),j=E(X)||x(X);X.invisible||(X.__dirty&&(F&&F.brush(X),this.clipPathManager.update(X),X.style&&(this.gradientManager.update(X.style.fill),this.gradientManager.update(X.style.stroke),this.shadowManager.update(j,X)),X.__dirty=!1),U.push(X))}var K=l(k,U),z;for(P=0;P<K.length;P++){var V=K[P];if(V.removed)for(var Q=0;Q<V.count;Q++){var X=k[V.indices[Q]],j=E(X),G=x(X);b(I,j),b(I,G)}}for(P=0;P<K.length;P++){var V=K[P];if(V.added)for(var Q=0;Q<V.count;Q++){var X=U[V.indices[Q]],j=E(X),G=x(X);z?v(I,j,z):A(I,j),j?v(I,G,j):z?v(I,G,z):A(I,G),v(I,G,j),z=G||j||z,this.gradientManager.addWithoutUpdate(j||G,X),this.shadowManager.addWithoutUpdate(j||G,X),this.clipPathManager.markUsed(X)}else if(!V.removed)for(var Q=0;Q<V.count;Q++){var X=U[V.indices[Q]],j=E(X),G=x(X),j=E(X),G=x(X);this.gradientManager.markUsed(X),this.gradientManager.addWithoutUpdate(j||G,X),this.shadowManager.markUsed(X),this.shadowManager.addWithoutUpdate(j||G,X),this.clipPathManager.markUsed(X),G&&v(I,G,j),z=j||G||z}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=U},_getDefs:function(O){var I=this._svgDom,k=I.getElementsByTagName("defs");if(k.length===0)if(O){var k=I.insertBefore(g("defs"),I.firstChild);return k.contains||(k.contains=function(U){var P=k.children;if(!P)return!1;for(var X=P.length-1;X>=0;--X)if(P[X]===U)return!0;return!1}),k}else return null;else return k[0]},resize:function(O,I){var k=this._viewport;k.style.display="none";var M=this._opts;if(O!=null&&(M.width=O),I!=null&&(M.height=I),O=this._getSize(0),I=this._getSize(1),k.style.display="",this._width!==O||this._height!==I){this._width=O,this._height=I;var U=k.style;U.width=O+"px",U.height=I+"px";var P=this._svgDom;P.setAttribute("width",O),P.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,k=["width","height"][O],M=["clientWidth","clientHeight"][O],U=["paddingLeft","paddingTop"][O],P=["paddingRight","paddingBottom"][O];if(I[k]!=null&&I[k]!=="auto")return parseFloat(I[k]);var X=this.root,F=document.defaultView.getComputedStyle(X);return(X[M]||s(F[k])||s(X.style[k]))-(s(F[U])||0)-(s(F[P])||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 _(w){return function(){m('In SVG mode painter not support method "'+w+'"')}}S.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(w){T.prototype[w]=_(w)});var C=T;R.exports=C},"3Fdi":function(R,D){var n=Function.prototype,y=n.toString;function g(S){if(S!=null){try{return y.call(S)}catch(m){}try{return S+""}catch(m){}}return""}R.exports=g},"3LNs":function(R,D,n){var y=n("bYtY"),g=n("Yl7c"),S=n("IwbS"),m=n("zTMp"),p=n("YH21"),f=n("iLNv"),d=n("4NO4"),l=d.makeInner,a=l(),i=y.clone,t=y.bind;function o(){}o.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(v,A,b,x){var E=A.get("value"),T=A.get("status");if(this._axisModel=v,this._axisPointerModel=A,this._api=b,!x&&this._lastValue===E&&this._lastStatus===T)return;this._lastValue=E,this._lastStatus=T;var _=this._group,C=this._handle;if(!T||T==="hide"){_&&_.hide(),C&&C.hide();return}_&&_.show(),C&&C.show();var w={};this.makeElOption(w,E,v,A,b);var O=w.graphicKey;O!==this._lastGraphicKey&&this.clear(b),this._lastGraphicKey=O;var I=this._moveAnimation=this.determineAnimation(v,A);if(!_)_=this._group=new S.Group,this.createPointerEl(_,w,v,A),this.createLabelEl(_,w,v,A),b.getZr().add(_);else{var k=y.curry(e,A,I);this.updatePointerEl(_,w,k,A),this.updateLabelEl(_,w,k,A)}c(_,A,!0),this._renderHandle(E)},remove:function(v){this.clear(v)},dispose:function(v){this.clear(v)},determineAnimation:function(v,A){var b=A.get("animation"),x=v.axis,E=x.type==="category",T=A.get("snap");if(!T&&!E)return!1;if(b==="auto"||b==null){var _=this.animationThreshold;if(E&&x.getBandWidth()>_)return!0;if(T){var C=m.getAxisInfo(v).seriesDataCount,w=x.getExtent();return Math.abs(w[0]-w[1])/C>_}return!1}return b===!0},makeElOption:function(v,A,b,x,E){},createPointerEl:function(v,A,b,x){var E=A.pointer;if(E){var T=a(v).pointerEl=new S[E.type](i(A.pointer));v.add(T)}},createLabelEl:function(v,A,b,x){if(A.label){var E=a(v).labelEl=new S.Rect(i(A.label));v.add(E),r(E,x)}},updatePointerEl:function(v,A,b){var x=a(v).pointerEl;x&&A.pointer&&(x.setStyle(A.pointer.style),b(x,{shape:A.pointer.shape}))},updateLabelEl:function(v,A,b,x){var E=a(v).labelEl;E&&(E.setStyle(A.label.style),b(E,{shape:A.label.shape,position:A.label.position}),r(E,x))},_renderHandle:function(v){if(this._dragging||!this.updateHandleTransform)return;var A=this._axisPointerModel,b=this._api.getZr(),x=this._handle,E=A.getModel("handle"),T=A.get("status");if(!E.get("show")||!T||T==="hide"){x&&b.remove(x),this._handle=null;return}var _;this._handle||(_=!0,x=this._handle=S.createIcon(E.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(O){p.stop(O.event)},onmousedown:t(this._onHandleDragMove,this,0,0),drift:t(this._onHandleDragMove,this),ondragend:t(this._onHandleDragEnd,this)}),b.add(x)),c(x,A,!1);var C=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];x.setStyle(E.getItemStyle(null,C));var w=E.get("size");y.isArray(w)||(w=[w,w]),x.attr("scale",[w[0]/2,w[1]/2]),f.createOrUpdate(this,"_doDispatchAxisPointer",E.get("throttle")||0,"fixRate"),this._moveHandleToValue(v,_)},_moveHandleToValue:function(v,A){e(this._axisPointerModel,!A&&this._moveAnimation,this._handle,s(this.getHandleTransform(v,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(v,A){var b=this._handle;if(!b)return;this._dragging=!0;var x=this.updateHandleTransform(s(b),[v,A],this._axisModel,this._axisPointerModel);this._payloadInfo=x,b.stopAnimation(),b.attr(s(x)),a(b).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var v=this._handle;if(!v)return;var A=this._payloadInfo,b=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:A.cursorPoint[0],y:A.cursorPoint[1],tooltipOption:A.tooltipOption,axesInfo:[{axisDim:b.axis.dim,axisIndex:b.componentIndex}]})},_onHandleDragEnd:function(v){this._dragging=!1;var A=this._handle;if(!A)return;var b=this._axisPointerModel.get("value");this._moveHandleToValue(b),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(v){this._lastValue=null,this._lastStatus=null;var A=v.getZr(),b=this._group,x=this._handle;A&&b&&(this._lastGraphicKey=null,b&&A.remove(b),x&&A.remove(x),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(v,A,b){return b=b||0,{x:v[b],y:v[1-b],width:A[b],height:A[1-b]}}},o.prototype.constructor=o;function e(v,A,b,x){u(a(b).lastProp,x)||(a(b).lastProp=x,A?S.updateProps(b,x,v):(b.stopAnimation(),b.attr(x)))}function u(v,A){if(y.isObject(v)&&y.isObject(A)){var b=!0;return y.each(A,function(x,E){b=b&&u(v[E],x)}),!!b}else return v===A}function r(v,A){v[A.get("label.show")?"show":"hide"]()}function s(v){return{position:v.position.slice(),rotation:v.rotation||0}}function c(v,A,b){var x=A.get("z"),E=A.get("zlevel");v&&v.traverse(function(T){T.type!=="group"&&(x!=null&&(T.z=x),E!=null&&(T.zlevel=E),T.silent=b)})}g.enableClassExtend(o);var h=o;R.exports=h},"3OrL":function(R,D,n){var y=n("bYtY"),g=n("6Ic6"),S=n("IwbS"),m=n("y+Vt"),p=["itemStyle"],f=["emphasis","itemStyle"],d=g.extend({type:"boxplot",render:function(e,u,r){var s=e.getData(),c=this.group,h=this._data;this._data||c.removeAll();var v=e.get("layout")==="horizontal"?1:0;s.diff(h).add(function(A){if(s.hasValue(A)){var b=s.getItemLayout(A),x=a(b,s,A,v,!0);s.setItemGraphicEl(A,x),c.add(x)}}).update(function(A,b){var x=h.getItemGraphicEl(b);if(!s.hasValue(A)){c.remove(x);return}var E=s.getItemLayout(A);x?i(E,x,s,A):x=a(E,s,A,v),c.add(x),s.setItemGraphicEl(A,x)}).remove(function(A){var b=h.getItemGraphicEl(A);b&&c.remove(b)}).execute(),this._data=s},remove:function(e){var u=this.group,r=this._data;this._data=null,r&&r.eachItemGraphicEl(function(s){s&&u.remove(s)})},dispose:y.noop}),l=m.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,u){var r=u.points,s=0;for(e.moveTo(r[s][0],r[s][1]),s++;s<4;s++)e.lineTo(r[s][0],r[s][1]);for(e.closePath();s<r.length;s++)e.moveTo(r[s][0],r[s][1]),s++,e.lineTo(r[s][0],r[s][1])}});function a(e,u,r,s,c){var h=e.ends,v=new l({shape:{points:c?t(h,s,e):h}});return i(e,v,u,r,c),v}function i(e,u,r,s,c){var h=r.hostModel,v=S[c?"initProps":"updateProps"];v(u,{shape:{points:e.ends}},h,s);var A=r.getItemModel(s),b=A.getModel(p),x=r.getItemVisual(s,"color"),E=b.getItemStyle(["borderColor"]);E.stroke=x,E.strokeNoScale=!0,u.useStyle(E),u.z2=100;var T=A.getModel(f).getItemStyle();S.setHoverStyle(u,T)}function t(e,u,r){return y.map(e,function(s){return s=s.slice(),s[u]=r.initBaseline,s})}var o=d;R.exports=o},"3S7+":function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("J4zp"),m=n.n(S),p=n("pVnL"),f=n.n(p),d=n("q1tI"),l=n.n(d),a=n("U8pU"),i=n("VTBJ"),t=n("Ff2n"),o=n("1OyB"),e=n("vuIU"),u=n("JX7q"),r=n("Ji7U"),s=n("LK+K"),c=n("i8i4"),h=n.n(c),v=n("l4aY"),A=n("m+aA"),b=n("c+Xe"),x=n("zT1h"),E=n("QC+M"),T=n("TSYQ"),_=n.n(T);function C(wn,Rn,Zt){return Zt?wn[0]===Rn[0]:wn[0]===Rn[0]&&wn[1]===Rn[1]}function w(wn,Rn,Zt){var Tt=wn[Rn]||{};return Object(i.a)(Object(i.a)({},Tt),Zt)}function O(wn,Rn,Zt,Tt){for(var De=Zt.points,Re=Object.keys(wn),Pe=0;Pe<Re.length;Pe+=1){var rt=Re[Pe];if(C(wn[rt].points,De,Tt))return"".concat(Rn,"-placement-").concat(rt)}return""}var I=n("xEkU"),k=n.n(I),M=n("9mu1"),U=n("rePB"),P=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function X(wn,Rn){var Zt={};return Zt[wn.toLowerCase()]=Rn.toLowerCase(),Zt["Webkit".concat(wn)]="webkit".concat(Rn),Zt["Moz".concat(wn)]="moz".concat(Rn),Zt["ms".concat(wn)]="MS".concat(Rn),Zt["O".concat(wn)]="o".concat(Rn.toLowerCase()),Zt}function F(wn,Rn){var Zt={animationend:X("Animation","AnimationEnd"),transitionend:X("Transition","TransitionEnd")};return wn&&("AnimationEvent"in Rn||delete Zt.animationend.animation,"TransitionEvent"in Rn||delete Zt.transitionend.transition),Zt}var j=F(P,typeof window!="undefined"?window:{}),K={};if(P){var z=document.createElement("div");K=z.style}var V={};function Q(wn){if(V[wn])return V[wn];var Rn=j[wn];if(Rn)for(var Zt=Object.keys(Rn),Tt=Zt.length,De=0;De<Tt;De+=1){var Re=Zt[De];if(Object.prototype.hasOwnProperty.call(Rn,Re)&&Re in K)return V[wn]=Rn[Re],V[wn]}return""}var G=Q("animationend"),te=Q("transitionend"),q=!!(G&&te);function se(wn,Rn){if(!wn)return null;if(Object(a.a)(wn)==="object"){var Zt=Rn.replace(/-\w/g,function(Tt){return Tt[1].toUpperCase()});return wn[Zt]}return"".concat(wn,"-").concat(Rn)}var re="none",we="appear",Oe="enter",Me="leave";function Qe(wn){var Rn=wn,Zt=!!d.forwardRef;Object(a.a)(wn)==="object"&&(Rn=wn.transitionSupport,Zt="forwardRef"in wn?wn.forwardRef:Zt);function Tt(Re){return!!(Re.motionName&&Rn)}var De=function(Re){Object(r.a)(rt,Re);var Pe=Object(s.a)(rt);function rt(){var wt;return Object(o.a)(this,rt),wt=Pe.apply(this,arguments),wt.$cacheEle=null,wt.node=null,wt.raf=null,wt.destroyed=!1,wt.deadlineId=null,wt.state={status:re,statusActive:!1,newStatus:!1,statusStyle:null},wt.onDomUpdate=function(){var Ot=wt.state,$t=Ot.status,Mr=Ot.newStatus,Vr=wt.props,hn=Vr.onAppearStart,Vt=Vr.onEnterStart,yt=Vr.onLeaveStart,xt=Vr.onAppearActive,dr=Vr.onEnterActive,er=Vr.onLeaveActive,Ut=Vr.motionAppear,ir=Vr.motionEnter,Ft=Vr.motionLeave;if(!Tt(wt.props))return;var rr=wt.getElement();wt.$cacheEle!==rr&&(wt.removeEventListener(wt.$cacheEle),wt.addEventListener(rr),wt.$cacheEle=rr),Mr&&$t===we&&Ut?wt.updateStatus(hn,null,null,function(){wt.updateActiveStatus(xt,we)}):Mr&&$t===Oe&&ir?wt.updateStatus(Vt,null,null,function(){wt.updateActiveStatus(dr,Oe)}):Mr&&$t===Me&&Ft&&wt.updateStatus(yt,null,null,function(){wt.updateActiveStatus(er,Me)})},wt.onMotionEnd=function(Ot){if(Ot&&!Ot.deadline&&Ot.target!==wt.getElement())return;var $t=wt.state,Mr=$t.status,Vr=$t.statusActive,hn=wt.props,Vt=hn.onAppearEnd,yt=hn.onEnterEnd,xt=hn.onLeaveEnd;Mr===we&&Vr?wt.updateStatus(Vt,{status:re},Ot):Mr===Oe&&Vr?wt.updateStatus(yt,{status:re},Ot):Mr===Me&&Vr&&wt.updateStatus(xt,{status:re},Ot)},wt.setNodeRef=function(Ot){var $t=wt.props.internalRef;wt.node=Ot,Object(b.b)($t,Ot)},wt.getElement=function(){try{return Object(A.a)(wt.node||Object(u.a)(wt))}catch(Ot){return wt.$cacheEle}},wt.addEventListener=function(Ot){if(!Ot)return;Ot.addEventListener(te,wt.onMotionEnd),Ot.addEventListener(G,wt.onMotionEnd)},wt.removeEventListener=function(Ot){if(!Ot)return;Ot.removeEventListener(te,wt.onMotionEnd),Ot.removeEventListener(G,wt.onMotionEnd)},wt.updateStatus=function(Ot,$t,Mr,Vr){var hn=Ot?Ot(wt.getElement(),Mr):null;if(hn===!1||wt.destroyed)return;var Vt;Vr&&(Vt=function(){wt.nextFrame(Vr)}),wt.setState(Object(i.a)({statusStyle:Object(a.a)(hn)==="object"?hn:null,newStatus:!1},$t),Vt)},wt.updateActiveStatus=function(Ot,$t){wt.nextFrame(function(){var Mr=wt.state.status;if(Mr!==$t)return;var Vr=wt.props.motionDeadline;wt.updateStatus(Ot,{statusActive:!0}),Vr>0&&(wt.deadlineId=setTimeout(function(){wt.onMotionEnd({deadline:!0})},Vr))})},wt.nextFrame=function(Ot){wt.cancelNextFrame(),wt.raf=k()(Ot)},wt.cancelNextFrame=function(){wt.raf&&(k.a.cancel(wt.raf),wt.raf=null)},wt}return Object(e.a)(rt,[{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 Ot,$t=this.state,Mr=$t.status,Vr=$t.statusActive,hn=$t.statusStyle,Vt=this.props,yt=Vt.children,xt=Vt.motionName,dr=Vt.visible,er=Vt.removeOnLeave,Ut=Vt.leavedClassName,ir=Vt.eventProps;return yt?Mr===re||!Tt(this.props)?dr?yt(Object(i.a)({},ir),this.setNodeRef):er?null:yt(Object(i.a)(Object(i.a)({},ir),{},{className:Ut}),this.setNodeRef):yt(Object(i.a)(Object(i.a)({},ir),{},{className:_()(se(xt,Mr),(Ot={},Object(U.a)(Ot,se(xt,"".concat(Mr,"-active")),Vr),Object(U.a)(Ot,xt,typeof xt=="string"),Ot)),style:hn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Ot,$t){var Mr=$t.prevProps,Vr=$t.status;if(!Tt(Ot))return{};var hn=Ot.visible,Vt=Ot.motionAppear,yt=Ot.motionEnter,xt=Ot.motionLeave,dr=Ot.motionLeaveImmediately,er={prevProps:Ot};return(Vr===we&&!Vt||Vr===Oe&&!yt||Vr===Me&&!xt)&&(er.status=re,er.statusActive=!1,er.newStatus=!1),!Mr&&hn&&Vt&&(er.status=we,er.statusActive=!1,er.newStatus=!0),Mr&&!Mr.visible&&hn&&yt&&(er.status=Oe,er.statusActive=!1,er.newStatus=!0),(Mr&&Mr.visible&&!hn&&xt||!Mr&&dr&&!hn&&xt)&&(er.status=Me,er.statusActive=!1,er.newStatus=!0),er}}]),rt}(d.Component);return De.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Zt?d.forwardRef(function(Re,Pe){return d.createElement(De,Object.assign({internalRef:Pe},Re))}):De}var Ve=Qe(q),dt="add",Fe="keep",ue="remove",et="removed";function he(wn){var Rn;return wn&&Object(a.a)(wn)==="object"&&"key"in wn?Rn=wn:Rn={key:wn},Object(i.a)(Object(i.a)({},Rn),{},{key:String(Rn.key)})}function J(){var wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return wn.map(he)}function Y(){var wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Zt=[],Tt=0,De=Rn.length,Re=J(wn),Pe=J(Rn);Re.forEach(function(Ot){for(var $t=!1,Mr=Tt;Mr<De;Mr+=1){var Vr=Pe[Mr];if(Vr.key===Ot.key){Tt<Mr&&(Zt=Zt.concat(Pe.slice(Tt,Mr).map(function(hn){return Object(i.a)(Object(i.a)({},hn),{},{status:dt})})),Tt=Mr),Zt.push(Object(i.a)(Object(i.a)({},Vr),{},{status:Fe})),Tt+=1,$t=!0;break}}$t||Zt.push(Object(i.a)(Object(i.a)({},Ot),{},{status:ue}))}),Tt<De&&(Zt=Zt.concat(Pe.slice(Tt).map(function(Ot){return Object(i.a)(Object(i.a)({},Ot),{},{status:dt})})));var rt={};Zt.forEach(function(Ot){var $t=Ot.key;rt[$t]=(rt[$t]||0)+1});var wt=Object.keys(rt).filter(function(Ot){return rt[Ot]>1});return wt.forEach(function(Ot){Zt=Zt.filter(function($t){var Mr=$t.key,Vr=$t.status;return Mr!==Ot||Vr!==ue}),Zt.forEach(function($t){$t.key===Ot&&($t.status=Fe)})}),Zt}var $=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function de(wn){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ve,Zt=function(Tt){Object(r.a)(Re,Tt);var De=Object(s.a)(Re);function Re(){var Pe;return Object(o.a)(this,Re),Pe=De.apply(this,arguments),Pe.state={keyEntities:[]},Pe.removeKey=function(rt){Pe.setState(function(wt){var Ot=wt.keyEntities;return{keyEntities:Ot.map(function($t){return $t.key!==rt?$t:Object(i.a)(Object(i.a)({},$t),{},{status:et})})}})},Pe}return Object(e.a)(Re,[{key:"render",value:function(){var rt=this,wt=this.state.keyEntities,Ot=this.props,$t=Ot.component,Mr=Ot.children,Vr=Object(t.a)(Ot,["component","children"]),hn=$t||d.Fragment,Vt={};return $.forEach(function(yt){Vt[yt]=Vr[yt],delete Vr[yt]}),delete Vr.keys,d.createElement(hn,Object.assign({},Vr),wt.map(function(yt){var xt=yt.status,dr=Object(t.a)(yt,["status"]),er=xt===dt||xt===Fe;return d.createElement(Rn,Object.assign({},Vt,{key:dr.key,visible:er,eventProps:dr,onLeaveEnd:function(){Vt.onLeaveEnd&&Vt.onLeaveEnd.apply(Vt,arguments),rt.removeKey(dr.key)}}),Mr)}))}}],[{key:"getDerivedStateFromProps",value:function(rt,wt){var Ot=rt.keys,$t=wt.keyEntities,Mr=J(Ot);if(!wn)return{keyEntities:Mr.map(function(Vt){return Object(i.a)(Object(i.a)({},Vt),{},{status:Fe})})};var Vr=Y($t,Mr),hn=$t.length;return{keyEntities:Vr.filter(function(Vt){for(var yt=null,xt=0;xt<hn;xt+=1){var dr=$t[xt];if(dr.key===Vt.key){yt=dr;break}}return!(yt&&yt.status===et&&Vt.status===ue)})}}}]),Re}(d.Component);return Zt.defaultProps={component:"div"},Zt}var be=de(q),Te=Ve,Be=function(Rn,Zt){var Tt=Rn.prefixCls,De=Rn.className,Re=Rn.style,Pe=Rn.children,rt=Rn.onMouseEnter,wt=Rn.onMouseLeave,Ot=Rn.onMouseDown,$t=Rn.onTouchStart,Mr=Pe;return d.Children.count(Pe)>1&&(Mr=d.createElement("div",{className:"".concat(Tt,"-content")},Pe)),d.createElement("div",{ref:Zt,className:De,onMouseEnter:rt,onMouseLeave:wt,onMouseDown:Ot,onTouchStart:$t,style:Re},Mr)},fe=d.forwardRef(Be);fe.displayName="PopupInner";var xe=fe;function ke(wn){var Rn=wn.prefixCls,Zt=wn.motion,Tt=wn.animation,De=wn.transitionName;return Zt||(Tt?{motionName:"".concat(Rn,"-").concat(Tt)}:De?{motionName:De}:null)}function nt(wn){return wn&&wn.motionName}var Ct=function(wn){Object(r.a)(Zt,wn);var Rn=Object(s.a)(Zt);function Zt(){var Tt;return Object(o.a)(this,Zt),Tt=Rn.apply(this,arguments),Tt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Tt.popupRef=l.a.createRef(),Tt.alignRef=l.a.createRef(),Tt.nextFrameState=null,Tt.nextFrameId=null,Tt.onAlign=function(De,Re){var Pe=Tt.state.status,rt=Tt.props,wt=rt.getClassNameFromAlign,Ot=rt.onAlign,$t=wt(Re);Pe==="align"?Tt.setState({alignClassName:$t,status:"aligned"},function(){Tt.alignRef.current.forceAlign()}):Pe==="aligned"?(Tt.setState({alignClassName:$t,status:"afterAlign"}),Ot(De,Re)):Tt.setState({alignClassName:$t})},Tt.onMotionEnd=function(){var De=Tt.props.visible;Tt.setState({status:De?"AfterMotion":"stable",inMotion:!1})},Tt.setStateOnNextFrame=function(De){Tt.cancelFrameState(),Tt.nextFrameState=Object(i.a)(Object(i.a)({},Tt.nextFrameState),De),Tt.nextFrameId=k()(function(){var Re=Object(i.a)({},Tt.nextFrameState);Tt.nextFrameState=null,Tt.setState(Re)})},Tt.getMotion=function(){return Object(i.a)({},ke(Tt.props))},Tt.getAlignTarget=function(){var De=Tt.props,Re=De.point,Pe=De.getRootDomNode;return Re||Pe},Tt.cancelFrameState=function(){k.a.cancel(Tt.nextFrameId)},Tt.renderPopupElement=function(){var De=Tt.state,Re=De.status,Pe=De.targetHeight,rt=De.targetWidth,wt=De.alignClassName,Ot=Tt.props,$t=Ot.prefixCls,Mr=Ot.className,Vr=Ot.style,hn=Ot.stretch,Vt=Ot.visible,yt=Ot.align,xt=Ot.destroyPopupOnHide,dr=Ot.onMouseEnter,er=Ot.onMouseLeave,Ut=Ot.onMouseDown,ir=Ot.onTouchStart,Ft=Ot.children,rr=_()($t,Mr,wt),Kr="".concat($t,"-hidden"),Rr={};hn&&(hn.indexOf("height")!==-1?Rr.height=Pe:hn.indexOf("minHeight")!==-1&&(Rr.minHeight=Pe),hn.indexOf("width")!==-1?Rr.width=rt:hn.indexOf("minWidth")!==-1&&(Rr.minWidth=rt));var kr=Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)({},Rr),Tt.getZIndexStyle()),Vr),{},{opacity:Re==="stable"||!Vt?void 0:0,pointerEvents:Re==="stable"||!Vt?void 0:"none"}),dn=Tt.getMotion(),yn=Vt;Vt&&Re!=="beforeMotion"&&Re!=="motion"&&Re!=="stable"&&(dn.motionAppear=!1,dn.motionEnter=!1,dn.motionLeave=!1),(Re==="afterAlign"||Re==="beforeMotion")&&(yn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(pi){var _i=dn==null?void 0:dn[pi];dn[pi]=function(){for(var Di=arguments.length,Wi=new Array(Di),at=0;at<Di;at++)Wi[at]=arguments[at];_i==null||_i.apply(void 0,Wi),Tt.setState({inMotion:!0})}});var ri=!Vt||Re!=="align"&&Re!=="aligned"&&Re!=="stable",$n=!0;return Re==="stable"&&($n=Vt),xt&&!$n?null:l.a.createElement(Te,Object.assign({visible:yn},dn,{removeOnLeave:!1,onEnterEnd:Tt.onMotionEnd,onLeaveEnd:Tt.onMotionEnd,leavedClassName:Kr}),function(pi,_i){var Di=pi.style,Wi=pi.className;return l.a.createElement(M.a,{target:Tt.getAlignTarget(),key:"popup",ref:Tt.alignRef,monitorWindowResize:!0,disabled:ri,align:yt,onAlign:Tt.onAlign},l.a.createElement(xe,{prefixCls:$t,className:_()(rr,Wi),ref:Object(b.a)(_i,Tt.popupRef),onMouseEnter:dr,onMouseLeave:er,onMouseDown:Ut,onTouchStart:ir,style:Object(i.a)(Object(i.a)({},kr),Di)},Ft))})},Tt.renderMaskElement=function(){var De=Tt.props,Re=De.mask,Pe=De.maskMotion,rt=De.maskTransitionName,wt=De.maskAnimation,Ot=De.prefixCls,$t=De.visible;if(!Re)return null;var Mr={};return Pe&&Pe.motionName&&(Mr=Object(i.a)({motionAppear:!0},ke({motion:Pe,prefixCls:Ot,transitionName:rt,animation:wt}))),l.a.createElement(Te,Object.assign({},Mr,{visible:$t,removeOnLeave:!0}),function(Vr){var hn=Vr.className;return l.a.createElement("div",{style:Tt.getZIndexStyle(),key:"mask",className:_()("".concat(Ot,"-mask"),hn)})})},Tt}return Object(e.a)(Zt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var De=this.state.status,Re=this.props,Pe=Re.getRootDomNode,rt=Re.visible,wt=Re.stretch;if(this.cancelFrameState(),rt&&De!=="stable")switch(De){case null:{this.setStateOnNextFrame({status:wt?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:nt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Ot=["measure","align",null,"beforeMotion","motion"],$t=Ot.indexOf(De),Mr=Ot[$t+1];$t!==-1&&Mr&&this.setStateOnNextFrame({status:Mr})}}if(De==="measure"){var Vr=Pe();Vr&&this.setStateOnNextFrame({targetHeight:Vr.offsetHeight,targetWidth:Vr.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var De=this.props.zIndex;return{zIndex:De}}},{key:"render",value:function(){return l.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(De,Re){var Pe=De.visible,rt=Object(t.a)(De,["visible"]),wt=Re.prevVisible,Ot=Re.status,$t=Re.inMotion,Mr={prevVisible:Pe,status:Ot},Vr=ke(rt);return wt===null&&Pe===!1?(Mr.status="stable",Mr.inMotion=!1):Pe!==wt&&(Mr.inMotion=!1,Pe||nt(Vr)&&$t?Mr.status=null:Mr.status="stable",Pe&&(Mr.alignClassName=null)),Mr}}]),Zt}(d.Component),pt=Ct,He=d.createContext(null),nr=He;function ht(){}function Gt(){return""}function pr(){return window.document}var Qt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ht(wn){var Rn=function(Zt){Object(r.a)(De,Zt);var Tt=Object(s.a)(De);function De(Re){var Pe;Object(o.a)(this,De),Pe=Tt.call(this,Re),Pe.popupRef=l.a.createRef(),Pe.triggerRef=l.a.createRef(),Pe.onMouseEnter=function(wt){var Ot=Pe.props.mouseEnterDelay;Pe.fireEvents("onMouseEnter",wt),Pe.delaySetPopupVisible(!0,Ot,Ot?null:wt)},Pe.onMouseMove=function(wt){Pe.fireEvents("onMouseMove",wt),Pe.setPoint(wt)},Pe.onMouseLeave=function(wt){Pe.fireEvents("onMouseLeave",wt),Pe.delaySetPopupVisible(!1,Pe.props.mouseLeaveDelay)},Pe.onPopupMouseEnter=function(){Pe.clearDelayTimer()},Pe.onPopupMouseLeave=function(wt){if(wt.relatedTarget&&!wt.relatedTarget.setTimeout&&Pe.popupRef.current&&Pe.popupRef.current.popupRef.current&&Object(v.a)(Pe.popupRef.current.popupRef.current,wt.relatedTarget))return;Pe.delaySetPopupVisible(!1,Pe.props.mouseLeaveDelay)},Pe.onFocus=function(wt){Pe.fireEvents("onFocus",wt),Pe.clearDelayTimer(),Pe.isFocusToShow()&&(Pe.focusTime=Date.now(),Pe.delaySetPopupVisible(!0,Pe.props.focusDelay))},Pe.onMouseDown=function(wt){Pe.fireEvents("onMouseDown",wt),Pe.preClickTime=Date.now()},Pe.onTouchStart=function(wt){Pe.fireEvents("onTouchStart",wt),Pe.preTouchTime=Date.now()},Pe.onBlur=function(wt){Pe.fireEvents("onBlur",wt),Pe.clearDelayTimer(),Pe.isBlurToHide()&&Pe.delaySetPopupVisible(!1,Pe.props.blurDelay)},Pe.onContextMenu=function(wt){wt.preventDefault(),Pe.fireEvents("onContextMenu",wt),Pe.setPopupVisible(!0,wt)},Pe.onContextMenuClose=function(){Pe.isContextMenuToShow()&&Pe.close()},Pe.onClick=function(wt){if(Pe.fireEvents("onClick",wt),Pe.focusTime){var Ot;if(Pe.preClickTime&&Pe.preTouchTime?Ot=Math.min(Pe.preClickTime,Pe.preTouchTime):Pe.preClickTime?Ot=Pe.preClickTime:Pe.preTouchTime&&(Ot=Pe.preTouchTime),Math.abs(Ot-Pe.focusTime)<20)return;Pe.focusTime=0}Pe.preClickTime=0,Pe.preTouchTime=0,Pe.isClickToShow()&&(Pe.isClickToHide()||Pe.isBlurToHide())&&wt&&wt.preventDefault&&wt.preventDefault();var $t=!Pe.state.popupVisible;(Pe.isClickToHide()&&!$t||$t&&Pe.isClickToShow())&&Pe.setPopupVisible(!Pe.state.popupVisible,wt)},Pe.onPopupMouseDown=function(){if(Pe.hasPopupMouseDown=!0,clearTimeout(Pe.mouseDownTimeout),Pe.mouseDownTimeout=window.setTimeout(function(){Pe.hasPopupMouseDown=!1},0),Pe.context){var wt;(wt=Pe.context).onPopupMouseDown.apply(wt,arguments)}},Pe.onDocumentClick=function(wt){if(Pe.props.mask&&!Pe.props.maskClosable)return;var Ot=wt.target,$t=Pe.getRootDomNode(),Mr=Pe.getPopupDomNode();!Object(v.a)($t,Ot)&&!Object(v.a)(Mr,Ot)&&!Pe.hasPopupMouseDown&&Pe.close()},Pe.getRootDomNode=function(){var wt=Pe.props.getTriggerDOMNode;if(wt)return wt(Pe.triggerRef.current);try{var Ot=Object(A.a)(Pe.triggerRef.current);if(Ot)return Ot}catch($t){}return h.a.findDOMNode(Object(u.a)(Pe))},Pe.getPopupClassNameFromAlign=function(wt){var Ot=[],$t=Pe.props,Mr=$t.popupPlacement,Vr=$t.builtinPlacements,hn=$t.prefixCls,Vt=$t.alignPoint,yt=$t.getPopupClassNameFromAlign;return Mr&&Vr&&Ot.push(O(Vr,hn,wt,Vt)),yt&&Ot.push(yt(wt)),Ot.join(" ")},Pe.getComponent=function(){var wt=Pe.props,Ot=wt.prefixCls,$t=wt.destroyPopupOnHide,Mr=wt.popupClassName,Vr=wt.onPopupAlign,hn=wt.popupMotion,Vt=wt.popupAnimation,yt=wt.popupTransitionName,xt=wt.popupStyle,dr=wt.mask,er=wt.maskAnimation,Ut=wt.maskTransitionName,ir=wt.maskMotion,Ft=wt.zIndex,rr=wt.popup,Kr=wt.stretch,Rr=wt.alignPoint,kr=Pe.state,dn=kr.popupVisible,yn=kr.point,ri=Pe.getPopupAlign(),$n={};return Pe.isMouseEnterToShow()&&($n.onMouseEnter=Pe.onPopupMouseEnter),Pe.isMouseLeaveToHide()&&($n.onMouseLeave=Pe.onPopupMouseLeave),$n.onMouseDown=Pe.onPopupMouseDown,$n.onTouchStart=Pe.onPopupMouseDown,l.a.createElement(pt,Object.assign({prefixCls:Ot,destroyPopupOnHide:$t,visible:dn,point:Rr&&yn,className:Mr,align:ri,onAlign:Vr,animation:Vt,getClassNameFromAlign:Pe.getPopupClassNameFromAlign},$n,{stretch:Kr,getRootDomNode:Pe.getRootDomNode,style:xt,mask:dr,zIndex:Ft,transitionName:yt,maskAnimation:er,maskTransitionName:Ut,maskMotion:ir,ref:Pe.popupRef,motion:hn}),typeof rr=="function"?rr():rr)},Pe.getContainer=function(){var wt=Object(u.a)(Pe),Ot=wt.props,$t=document.createElement("div");$t.style.position="absolute",$t.style.top="0",$t.style.left="0",$t.style.width="100%";var Mr=Ot.getPopupContainer?Ot.getPopupContainer(Pe.getRootDomNode()):Ot.getDocument().body;return Mr.appendChild($t),$t},Pe.setPoint=function(wt){var Ot=Pe.props.alignPoint;if(!Ot||!wt)return;Pe.setState({point:{pageX:wt.pageX,pageY:wt.pageY}})},Pe.handlePortalUpdate=function(){Pe.state.prevPopupVisible!==Pe.state.popupVisible&&Pe.props.afterPopupVisibleChange(Pe.state.popupVisible)};var rt;return"popupVisible"in Re?rt=!!Re.popupVisible:rt=!!Re.defaultPopupVisible,Pe.state={prevPopupVisible:rt,popupVisible:rt},Qt.forEach(function(wt){Pe["fire".concat(wt)]=function(Ot){Pe.fireEvents(wt,Ot)}}),Pe}return Object(e.a)(De,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this.props,rt=this.state;if(rt.popupVisible){var wt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(wt=Pe.getDocument(),this.clickOutsideHandler=Object(x.a)(wt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(wt=wt||Pe.getDocument(),this.touchOutsideHandler=Object(x.a)(wt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(wt=wt||Pe.getDocument(),this.contextMenuOutsideHandler1=Object(x.a)(wt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(x.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Pe=this.props,rt=Pe.popupPlacement,wt=Pe.popupAlign,Ot=Pe.builtinPlacements;return rt&&Ot?w(Ot,rt,wt):wt}},{key:"setPopupVisible",value:function(Pe,rt){var wt=this.props.alignPoint,Ot=this.state.popupVisible;this.clearDelayTimer(),Ot!==Pe&&("popupVisible"in this.props||this.setState({popupVisible:Pe,prevPopupVisible:Ot}),this.props.onPopupVisibleChange(Pe)),wt&&rt&&this.setPoint(rt)}},{key:"delaySetPopupVisible",value:function(Pe,rt,wt){var Ot=this,$t=rt*1e3;if(this.clearDelayTimer(),$t){var Mr=wt?{pageX:wt.pageX,pageY:wt.pageY}:null;this.delayTimer=window.setTimeout(function(){Ot.setPopupVisible(Pe,Mr),Ot.clearDelayTimer()},$t)}else this.setPopupVisible(Pe,wt)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Pe){var rt=this.props.children.props,wt=this.props;return rt[Pe]&&wt[Pe]?this["fire".concat(Pe)]:rt[Pe]||wt[Pe]}},{key:"isClickToShow",value:function(){var Pe=this.props,rt=Pe.action,wt=Pe.showAction;return rt.indexOf("click")!==-1||wt.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Pe=this.props,rt=Pe.action,wt=Pe.showAction;return rt.indexOf("contextMenu")!==-1||wt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Pe=this.props,rt=Pe.action,wt=Pe.hideAction;return rt.indexOf("click")!==-1||wt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Pe=this.props,rt=Pe.action,wt=Pe.showAction;return rt.indexOf("hover")!==-1||wt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Pe=this.props,rt=Pe.action,wt=Pe.hideAction;return rt.indexOf("hover")!==-1||wt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Pe=this.props,rt=Pe.action,wt=Pe.showAction;return rt.indexOf("focus")!==-1||wt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Pe=this.props,rt=Pe.action,wt=Pe.hideAction;return rt.indexOf("focus")!==-1||wt.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(Pe,rt){var wt=this.props.children.props[Pe];wt&&wt(rt);var Ot=this.props[Pe];Ot&&Ot(rt)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Pe=this.state.popupVisible,rt=this.props,wt=rt.children,Ot=rt.forceRender,$t=rt.alignPoint,Mr=rt.className,Vr=rt.autoDestroy,hn=l.a.Children.only(wt),Vt={key:"trigger"};this.isContextMenuToShow()?Vt.onContextMenu=this.onContextMenu:Vt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Vt.onClick=this.onClick,Vt.onMouseDown=this.onMouseDown,Vt.onTouchStart=this.onTouchStart):(Vt.onClick=this.createTwoChains("onClick"),Vt.onMouseDown=this.createTwoChains("onMouseDown"),Vt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Vt.onMouseEnter=this.onMouseEnter,$t&&(Vt.onMouseMove=this.onMouseMove)):Vt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Vt.onMouseLeave=this.onMouseLeave:Vt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Vt.onFocus=this.onFocus,Vt.onBlur=this.onBlur):(Vt.onFocus=this.createTwoChains("onFocus"),Vt.onBlur=this.createTwoChains("onBlur"));var yt=_()(hn&&hn.props&&hn.props.className,Mr);yt&&(Vt.className=yt);var xt=Object(i.a)({},Vt);Object(b.c)(hn)&&(xt.ref=Object(b.a)(this.triggerRef,hn.ref));var dr=l.a.cloneElement(hn,xt),er;return(Pe||this.popupRef.current||Ot)&&(er=l.a.createElement(wn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Pe&&Vr&&(er=null),l.a.createElement(nr.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},dr,er)}}],[{key:"getDerivedStateFromProps",value:function(Pe,rt){var wt=Pe.popupVisible,Ot={};return wt!==void 0&&rt.popupVisible!==wt&&(Ot.popupVisible=wt,Ot.prevPopupVisible=rt.popupVisible),Ot}}]),De}(l.a.Component);return Rn.contextType=nr,Rn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Gt,getDocument:pr,onPopupVisibleChange:ht,afterPopupVisibleChange:ht,onPopupAlign:ht,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Rn}var Jt=Ht(E.a),Ge={adjustX:1,adjustY:1},pe=[0,0],oe={left:{points:["cr","cl"],overflow:Ge,offset:[-4,0],targetOffset:pe},right:{points:["cl","cr"],overflow:Ge,offset:[4,0],targetOffset:pe},top:{points:["bc","tc"],overflow:Ge,offset:[0,-4],targetOffset:pe},bottom:{points:["tc","bc"],overflow:Ge,offset:[0,4],targetOffset:pe},topLeft:{points:["bl","tl"],overflow:Ge,offset:[0,-4],targetOffset:pe},leftTop:{points:["tr","tl"],overflow:Ge,offset:[-4,0],targetOffset:pe},topRight:{points:["br","tr"],overflow:Ge,offset:[0,-4],targetOffset:pe},rightTop:{points:["tl","tr"],overflow:Ge,offset:[4,0],targetOffset:pe},bottomRight:{points:["tr","br"],overflow:Ge,offset:[0,4],targetOffset:pe},rightBottom:{points:["bl","br"],overflow:Ge,offset:[4,0],targetOffset:pe},bottomLeft:{points:["tl","bl"],overflow:Ge,offset:[0,4],targetOffset:pe},leftBottom:{points:["br","bl"],overflow:Ge,offset:[-4,0],targetOffset:pe}},ct=oe,qe=function(Rn){var Zt=Rn.overlay,Tt=Rn.prefixCls,De=Rn.id,Re=Rn.overlayInnerStyle;return d.createElement("div",{className:"".concat(Tt,"-inner"),id:De,role:"tooltip",style:Re},typeof Zt=="function"?Zt():Zt)},me=qe,Kt=function(Rn,Zt){var Tt=Rn.overlayClassName,De=Rn.trigger,Re=De===void 0?["hover"]:De,Pe=Rn.mouseEnterDelay,rt=Pe===void 0?0:Pe,wt=Rn.mouseLeaveDelay,Ot=wt===void 0?.1:wt,$t=Rn.overlayStyle,Mr=Rn.prefixCls,Vr=Mr===void 0?"rc-tooltip":Mr,hn=Rn.children,Vt=Rn.onVisibleChange,yt=Rn.afterVisibleChange,xt=Rn.transitionName,dr=Rn.animation,er=Rn.placement,Ut=er===void 0?"right":er,ir=Rn.align,Ft=ir===void 0?{}:ir,rr=Rn.destroyTooltipOnHide,Kr=rr===void 0?!1:rr,Rr=Rn.defaultVisible,kr=Rn.getTooltipContainer,dn=Rn.overlayInnerStyle,yn=Object(t.a)(Rn,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ri=Object(d.useRef)(null);Object(d.useImperativeHandle)(Zt,function(){return ri.current});var $n=Object(i.a)({},yn);"visible"in Rn&&($n.popupVisible=Rn.visible);var pi=function(){var Le=Rn.arrowContent,je=Le===void 0?null:Le,Xe=Rn.overlay,it=Rn.id;return[d.createElement("div",{className:"".concat(Vr,"-arrow"),key:"arrow"},je),d.createElement(me,{key:"content",prefixCls:Vr,id:it,overlay:Xe,overlayInnerStyle:dn})]},_i=!1,Di=!1;if(typeof Kr=="boolean")_i=Kr;else if(Kr&&Object(a.a)(Kr)==="object"){var Wi=Kr.keepParent;_i=Wi===!0,Di=Wi===!1}return d.createElement(Jt,Object.assign({popupClassName:Tt,prefixCls:Vr,popup:pi,action:Re,builtinPlacements:oe,popupPlacement:Ut,ref:ri,popupAlign:Ft,getPopupContainer:kr,onPopupVisibleChange:Vt,afterPopupVisibleChange:yt,popupTransitionName:xt,popupAnimation:dr,defaultPopupVisible:Rr,destroyPopupOnHide:_i,autoDestroy:Di,mouseLeaveDelay:Ot,popupStyle:$t,mouseEnterDelay:rt},$n),hn)},vr=Object(d.forwardRef)(Kt),bt=vr,or={adjustX:1,adjustY:1},_t={adjustX:0,adjustY:0},jt=[0,0];function ut(wn){return typeof wn=="boolean"?wn?or:_t:f()(f()({},_t),wn)}function St(wn){var Rn=wn.arrowWidth,Zt=Rn===void 0?5:Rn,Tt=wn.horizontalArrowShift,De=Tt===void 0?16:Tt,Re=wn.verticalArrowShift,Pe=Re===void 0?8:Re,rt=wn.autoAdjustOverflow,wt={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(De+Zt),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Pe+Zt)]},topRight:{points:["br","tc"],offset:[De+Zt,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Pe+Zt)]},bottomRight:{points:["tr","bc"],offset:[De+Zt,4]},rightBottom:{points:["bl","cr"],offset:[4,Pe+Zt]},bottomLeft:{points:["tl","bc"],offset:[-(De+Zt),4]},leftBottom:{points:["br","cl"],offset:[-4,Pe+Zt]}};return Object.keys(wt).forEach(function(Ot){wt[Ot]=wn.arrowPointAtCenter?f()(f()({},wt[Ot]),{overflow:ut(rt),targetOffset:jt}):f()(f()({},oe[Ot]),{overflow:ut(rt)}),wt[Ot].ignoreShake=!0}),wt}var mt=n("0n0R"),lt=n("H84U"),tt=n("09Wf"),Cr=function(Rn,Zt){var Tt={},De=f()({},Rn);return Zt.forEach(function(Re){Rn&&Re in Rn&&(Tt[Re]=Rn[Re],delete De[Re])}),{picked:Tt,omitted:De}},nn=new RegExp("^(".concat(tt.a.join("|"),")(-inverse)?$"));function mn(wn,Rn){var Zt=wn.type;if((Zt.__ANT_BUTTON===!0||Zt.__ANT_SWITCH===!0||Zt.__ANT_CHECKBOX===!0||wn.type==="button")&&wn.props.disabled){var Tt=Cr(wn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),De=Tt.picked,Re=Tt.omitted,Pe=f()(f()({display:"inline-block"},De),{cursor:"not-allowed",width:wn.props.block?"100%":null}),rt=f()(f()({},Re),{pointerEvents:"none"}),wt=Object(mt.a)(wn,{style:rt,className:null});return d.createElement("span",{style:Pe,className:_()(wn.props.className,"".concat(Rn,"-disabled-compatible-wrapper"))},wt)}return wn}var Bn=d.forwardRef(function(wn,Rn){var Zt,Tt=d.useContext(lt.b),De=Tt.getPopupContainer,Re=Tt.getPrefixCls,Pe=Tt.direction,rt=d.useState(!!wn.visible||!!wn.defaultVisible),wt=m()(rt,2),Ot=wt[0],$t=wt[1];d.useEffect(function(){"visible"in wn&&$t(wn.visible)},[wn.visible]);var Mr=function(){var Wi=wn.title,at=wn.overlay;return!Wi&&!at&&Wi!==0},Vr=function(Wi){"visible"in wn||$t(Mr()?!1:Wi),wn.onVisibleChange&&!Mr()&&wn.onVisibleChange(Wi)},hn=function(){var Wi=wn.builtinPlacements,at=wn.arrowPointAtCenter,Le=wn.autoAdjustOverflow;return Wi||St({arrowPointAtCenter:at,autoAdjustOverflow:Le})},Vt=function(Wi,at){var Le=hn(),je=Object.keys(Le).filter(function(Ze){return Le[Ze].points[0]===at.points[0]&&Le[Ze].points[1]===at.points[1]})[0];if(!je)return;var Xe=Wi.getBoundingClientRect(),it={top:"50%",left:"50%"};je.indexOf("top")>=0||je.indexOf("Bottom")>=0?it.top="".concat(Xe.height-at.offset[1],"px"):(je.indexOf("Top")>=0||je.indexOf("bottom")>=0)&&(it.top="".concat(-at.offset[1],"px")),je.indexOf("left")>=0||je.indexOf("Right")>=0?it.left="".concat(Xe.width-at.offset[0],"px"):(je.indexOf("right")>=0||je.indexOf("Left")>=0)&&(it.left="".concat(-at.offset[0],"px")),Wi.style.transformOrigin="".concat(it.left," ").concat(it.top)},yt=function(){var Wi=wn.title,at=wn.overlay;return Wi===0?Wi:at||Wi||""},xt=wn.prefixCls,dr=wn.openClassName,er=wn.getPopupContainer,Ut=wn.getTooltipContainer,ir=wn.overlayClassName,Ft=wn.color,rr=wn.overlayInnerStyle,Kr=wn.children,Rr=Re("tooltip",xt),kr=Ot;!("visible"in wn)&&Mr()&&(kr=!1);var dn=mn(Object(mt.b)(Kr)?Kr:d.createElement("span",null,Kr),Rr),yn=dn.props,ri=_()(yn.className,g()({},dr||"".concat(Rr,"-open"),!0)),$n=_()(ir,(Zt={},g()(Zt,"".concat(Rr,"-rtl"),Pe==="rtl"),g()(Zt,"".concat(Rr,"-").concat(Ft),Ft&&nn.test(Ft)),Zt)),pi,_i;return Ft&&!nn.test(Ft)&&(pi=f()(f()({},rr),{background:Ft}),_i={background:Ft}),d.createElement(bt,f()({},wn,{prefixCls:Rr,overlayClassName:$n,getTooltipContainer:er||Ut||De,ref:Rn,builtinPlacements:hn(),overlay:yt(),visible:kr,onVisibleChange:Vr,onPopupAlign:Vt,overlayInnerStyle:pi,arrowContent:d.createElement("span",{className:"".concat(Rr,"-arrow-content"),style:_i})}),kr?Object(mt.a)(dn,{className:ri}):dn)});Bn.displayName="Tooltip",Bn.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var oi=D.a=Bn},"3TkU":function(R,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("QUw5"),n("Swgg"),n("LBfv"),n("noeP")},"3X6L":function(R,D,n){var y=n("bYtY"),g=n("7a+S"),S=n("OKJ2"),m=g.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:[]}});y.mixin(m,S);var p=m;R.exports=p},"3dVZ":function(R,D,n){},"3e3G":function(R,D,n){var y=n("bYtY"),g=n("QuXc"),S=function(f,d,l,a,i){this.x=f==null?.5:f,this.y=d==null?.5:d,this.r=l==null?.5:l,this.type="radial",this.global=i||!1,g.call(this,a)};S.prototype={constructor:S},y.inherits(S,g);var m=S;R.exports=m},"3gBT":function(R,D){var n=2311;function y(){return n++}R.exports=y},"3hzK":function(R,D){var n={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")}}};R.exports=n},"3m61":function(R,D){function n(g){return g instanceof Array||(g=[g,g]),g}function y(g){g.eachSeriesByType("graph",function(S){var m=S.getGraph(),p=S.getEdgeData(),f=n(S.get("edgeSymbol")),d=n(S.get("edgeSymbolSize")),l="lineStyle.color".split("."),a="lineStyle.opacity".split(".");p.setVisual("fromSymbol",f&&f[0]),p.setVisual("toSymbol",f&&f[1]),p.setVisual("fromSymbolSize",d&&d[0]),p.setVisual("toSymbolSize",d&&d[1]),p.setVisual("color",S.get(l)),p.setVisual("opacity",S.get(a)),p.each(function(i){var t=p.getItemModel(i),o=m.getEdgeByIndex(i),e=n(t.getShallow("symbol",!0)),u=n(t.getShallow("symbolSize",!0)),r=t.get(l),s=t.get(a);switch(r){case"source":r=o.node1.getVisual("color");break;case"target":r=o.node2.getVisual("color");break}e[0]&&o.setVisual("fromSymbol",e[0]),e[1]&&o.setVisual("toSymbol",e[1]),u[0]&&o.setVisual("fromSymbolSize",u[0]),u[1]&&o.setVisual("toSymbolSize",u[1]),o.setVisual("color",r),o.setVisual("opacity",s)})})}R.exports=y},"3ouR":function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c17.7 0 32 14.3 32 32v736c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32zm-40 72H184v656h656V184zM640.01 338.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-square",theme:"outlined"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="CloseSquareOutlined";var d=D.a=g.forwardRef(f)},"3y9D":function(R,D,n){(function(y,g){R.exports=D=g(n("Ib8C"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.WordArray,p=S.Hasher,f=g.algo,d=[],l=f.SHA1=p.extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,t){for(var o=this._hash.words,e=o[0],u=o[1],r=o[2],s=o[3],c=o[4],h=0;h<80;h++){if(h<16)d[h]=i[t+h]|0;else{var v=d[h-3]^d[h-8]^d[h-14]^d[h-16];d[h]=v<<1|v>>>31}var A=(e<<5|e>>>27)+c+d[h];h<20?A+=(u&r|~u&s)+1518500249:h<40?A+=(u^r^s)+1859775393:h<60?A+=(u&r|u&s|r&s)-1894007588:A+=(u^r^s)-899497514,c=s,s=r,r=u<<30|u>>>2,u=e,e=A}o[0]=o[0]+e|0,o[1]=o[1]+u|0,o[2]=o[2]+r|0,o[3]=o[3]+s|0,o[4]=o[4]+c|0},_doFinalize:function(){var i=this._data,t=i.words,o=this._nDataBytes*8,e=i.sigBytes*8;return t[e>>>5]|=128<<24-e%32,t[(e+64>>>9<<4)+14]=Math.floor(o/4294967296),t[(e+64>>>9<<4)+15]=o,i.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var i=p.clone.call(this);return i._hash=this._hash.clone(),i}});g.SHA1=p._createHelper(l),g.HmacSHA1=p._createHmacHelper(l)}(),y.SHA1})},"3zoK":function(R,D,n){var y=n("bYtY"),g=n("bLfw"),S=n("KCsZ"),m=n("nkfE"),p=n("OELB"),f=n("ICMv"),d=g.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return S([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var o=this.activeIntervals=y.clone(t);if(o)for(var e=o.length-1;e>=0;e--)p.asc(o[e])},getActiveState:function(t){var o=this.activeIntervals;if(!o.length)return"normal";if(t==null||isNaN(t))return"inactive";if(o.length===1){var e=o[0];if(e[0]<=t&&t<=e[1])return"active"}else for(var u=0,r=o.length;u<r;u++)if(o[u][0]<=t&&t<=o[u][1])return"active";return"inactive"}}),l={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};y.merge(d.prototype,f);function a(t,o){return o.type||(o.data?"category":"value")}m("parallel",d,a,l);var i=d;R.exports=i},"49sm":function(R,D){var n={}.toString;R.exports=Array.isArray||function(y){return n.call(y)=="[object Array]"}},"4Feb":function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=n("IwbS"),p=n("x3X8"),f=p.getDefaultLabel,d=n("MwEJ"),l=n("nVfU"),a=l.getLayoutOnAxis,i=n("gPAo"),t=n("T4UG"),o=n("Qxkt"),e=n("6Ic6"),u=n("sK/D"),r=u.createClipPath,s=n("qj72"),c=n("ANjR"),h=n("MHtr"),v=n("6usn"),A=n("Rx6q"),b=m.CACHED_LABEL_STYLE_PROPERTIES,x=["itemStyle"],E=["emphasis","itemStyle"],T=["label"],_=["emphasis","label"],C="e\0\0",w={cartesian2d:s,geo:c,singleAxis:h,polar:v,calendar:A};t.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(re,we){return d(this.getSource(),this)},getDataParams:function(re,we,Oe){var Me=t.prototype.getDataParams.apply(this,arguments);return Oe&&(Me.info=Oe.info),Me}}),e.extend({type:"custom",_data:null,render:function(re,we,Oe,Me){var Qe=this._data,Ve=re.getData(),dt=this.group,Fe=M(re,Ve,we,Oe);Ve.diff(Qe).add(function(et){P(null,et,Fe(et,Me),re,dt,Ve)}).update(function(et,he){var J=Qe.getItemGraphicEl(he);P(J,et,Fe(et,Me),re,dt,Ve)}).remove(function(et){var he=Qe.getItemGraphicEl(et);he&&dt.remove(he)}).execute();var ue=re.get("clip",!0)?r(re.coordinateSystem,!1,re):null;ue?dt.setClipPath(ue):dt.removeClipPath(),this._data=Ve},incrementalPrepareRender:function(re,we,Oe){this.group.removeAll(),this._data=null},incrementalRender:function(re,we,Oe,Me,Qe){var Ve=we.getData(),dt=M(we,Ve,Oe,Me);function Fe(he){he.isGroup||(he.incremental=!0,he.useHoverLayer=!0)}for(var ue=re.start;ue<re.end;ue++){var et=P(null,ue,dt(ue,Qe),we,this.group,Ve);et.traverse(Fe)}},dispose:S.noop,filterForExposedEvent:function(re,we,Oe,Me){var Qe=we.element;if(Qe==null||Oe.name===Qe)return!0;for(;(Oe=Oe.parent)&&Oe!==this.group;)if(Oe.name===Qe)return!0;return!1}});function O(re){var we=re.type,Oe;if(we==="path"){var Me=re.shape,Qe=Me.width!=null&&Me.height!=null?{x:Me.x||0,y:Me.y||0,width:Me.width,height:Me.height}:null,Ve=te(Me);Oe=m.makePath(Ve,null,Qe,Me.layout||"center"),Oe.__customPathData=Ve}else if(we==="image")Oe=new m.Image({}),Oe.__customImagePath=re.style.image;else if(we==="text")Oe=new m.Text({}),Oe.__customText=re.style.text;else if(we==="group")Oe=new m.Group;else{if(we==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var dt=m.getShapeClass(we);Oe=new dt}return Oe.__customGraphicType=we,Oe.name=re.name,Oe}function I(re,we,Oe,Me,Qe,Ve,dt){var Fe={},ue=Oe.style||{};if(Oe.shape&&(Fe.shape=S.clone(Oe.shape)),Oe.position&&(Fe.position=Oe.position.slice()),Oe.scale&&(Fe.scale=Oe.scale.slice()),Oe.origin&&(Fe.origin=Oe.origin.slice()),Oe.rotation&&(Fe.rotation=Oe.rotation),re.type==="image"&&Oe.style){var et=Fe.style={};S.each(["x","y","width","height"],function(Y){k(Y,et,ue,re.style,Ve)})}if(re.type==="text"&&Oe.style){var et=Fe.style={};S.each(["x","y"],function($){k($,et,ue,re.style,Ve)}),!ue.hasOwnProperty("textFill")&&ue.fill&&(ue.textFill=ue.fill),!ue.hasOwnProperty("textStroke")&&ue.stroke&&(ue.textStroke=ue.stroke)}if(re.type!=="group"&&(re.useStyle(ue),Ve)){re.style.opacity=0;var he=ue.opacity;he==null&&(he=1),m.initProps(re,{style:{opacity:he}},Me,we)}Ve?re.attr(Fe):m.updateProps(re,Fe,Me,we),Oe.hasOwnProperty("z2")&&re.attr("z2",Oe.z2||0),Oe.hasOwnProperty("silent")&&re.attr("silent",Oe.silent),Oe.hasOwnProperty("invisible")&&re.attr("invisible",Oe.invisible),Oe.hasOwnProperty("ignore")&&re.attr("ignore",Oe.ignore),Oe.hasOwnProperty("info")&&re.attr("info",Oe.info);var J=Oe.styleEmphasis;m.setElementHoverStyle(re,J),dt&&m.setAsHighDownDispatcher(re,J!==!1)}function k(re,we,Oe,Me,Qe){Oe[re]!=null&&!Qe&&(we[re]=Oe[re],Oe[re]=Me[re])}function M(re,we,Oe,Me){var Qe=re.get("renderItem"),Ve=re.coordinateSystem,dt={};Ve&&(dt=Ve.prepareCustoms?Ve.prepareCustoms():w[Ve.type](Ve));var Fe=S.defaults({getWidth:Me.getWidth,getHeight:Me.getHeight,getZr:Me.getZr,getDevicePixelRatio:Me.getDevicePixelRatio,value:Te,style:Be,styleEmphasis:fe,visual:xe,barLayout:ke,currentSeriesIndices:nt,font:Ct},dt.api||{}),ue={context:{},seriesId:re.id,seriesName:re.name,seriesIndex:re.seriesIndex,coordSys:dt.coordSys,dataInsideLength:we.count(),encode:U(re.getData())},et,he=!0,J,Y,$,de;return function(pt,He){return et=pt,he=!0,Qe&&Qe(S.defaults({dataIndexInside:pt,dataIndex:we.getRawIndex(pt),actionType:He?He.type:null},ue),Fe)};function be(pt){pt==null&&(pt=et),he&&(J=we.getItemModel(pt),Y=J.getModel(T),$=J.getModel(_),de=we.getItemVisual(pt,"color"),he=!1)}function Te(pt,He){return He==null&&(He=et),we.get(we.getDimension(pt||0),He)}function Be(pt,He){He==null&&(He=et),be(He);var nr=J.getModel(x).getItemStyle();de!=null&&(nr.fill=de);var ht=we.getItemVisual(He,"opacity");ht!=null&&(nr.opacity=ht);var Gt=pt?V(pt,Y):Y;return m.setTextStyle(nr,Gt,null,{autoColor:de,isRectText:!0}),nr.text=Gt.getShallow("show")?S.retrieve2(re.getFormattedLabel(He,"normal"),f(we,He)):null,pt&&Q(nr,pt),nr}function fe(pt,He){He==null&&(He=et),be(He);var nr=J.getModel(E).getItemStyle(),ht=pt?V(pt,$):$;return m.setTextStyle(nr,ht,null,{isRectText:!0},!0),nr.text=ht.getShallow("show")?S.retrieve3(re.getFormattedLabel(He,"emphasis"),re.getFormattedLabel(He,"normal"),f(we,He)):null,pt&&Q(nr,pt),nr}function xe(pt,He){return He==null&&(He=et),we.getItemVisual(He,pt)}function ke(pt){if(Ve.getBaseAxis){var He=Ve.getBaseAxis();return a(S.defaults({axis:He},pt),Me)}}function nt(){return Oe.getCurrentSeriesIndices()}function Ct(pt){return m.getFont(pt,Oe)}}function U(re){var we={};return S.each(re.dimensions,function(Oe,Me){var Qe=re.getDimensionInfo(Oe);if(!Qe.isExtraCoord){var Ve=Qe.coordDim,dt=we[Ve]=we[Ve]||[];dt[Qe.coordDimIndex]=Me}}),we}function P(re,we,Oe,Me,Qe,Ve){return re=X(re,we,Oe,Me,Qe,Ve,!0),re&&Ve.setItemGraphicEl(we,re),re}function X(re,we,Oe,Me,Qe,Ve,dt){var Fe=!Oe;Oe=Oe||{};var ue=Oe.type,et=Oe.shape,he=Oe.style;if(re&&(Fe||ue!=null&&ue!==re.__customGraphicType||ue==="path"&&q(et)&&te(et)!==re.__customPathData||ue==="image"&&se(he,"image")&&he.image!==re.__customImagePath||ue==="text"&&se(et,"text")&&he.text!==re.__customText)&&(Qe.remove(re),re=null),Fe)return;var J=!re;return!re&&(re=O(Oe)),I(re,we,Oe,Me,Ve,J,dt),ue==="group"&&F(re,we,Oe,Me,Ve),Qe.add(re),re}function F(re,we,Oe,Me,Qe){var Ve=Oe.children,dt=Ve?Ve.length:0,Fe=Oe.$mergeChildren,ue=Fe==="byName"||Oe.diffChildrenByName,et=Fe===!1;if(!dt&&!ue&&!et)return;if(ue){j({oldChildren:re.children()||[],newChildren:Ve||[],dataIndex:we,animatableModel:Me,group:re,data:Qe});return}et&&re.removeAll();for(var he=0;he<dt;he++)Ve[he]&&X(re.childAt(he),we,Ve[he],Me,re,Qe)}function j(re){new i(re.oldChildren,re.newChildren,K,K,re).add(z).update(z).remove(G).execute()}function K(re,we){var Oe=re&&re.name;return Oe!=null?Oe:C+we}function z(re,we){var Oe=this.context,Me=re!=null?Oe.newChildren[re]:null,Qe=we!=null?Oe.oldChildren[we]:null;X(Qe,Oe.dataIndex,Me,Oe.animatableModel,Oe.group,Oe.data)}function V(re,we){var Oe=new o({},we);return S.each(b,function(Me,Qe){re.hasOwnProperty(Me)&&(Oe.option[Qe]=re[Me])}),Oe}function Q(re,we){for(var Oe in we)(we.hasOwnProperty(Oe)||!b.hasOwnProperty(Oe))&&(re[Oe]=we[Oe])}function G(re){var we=this.context,Oe=we.oldChildren[re];Oe&&we.group.remove(Oe)}function te(re){return re&&(re.pathData||re.d)}function q(re){return re&&(re.hasOwnProperty("pathData")||re.hasOwnProperty("d"))}function se(re,we){return re&&re.hasOwnProperty(we)}},"4HMb":function(R,D,n){var y=n("bYtY"),g=n("6GrX"),S=n("4NO4"),m=S.makeInner,p=n("aX7z"),f=p.makeLabelFormatter,d=p.getOptionCategoryInterval,l=p.shouldShowAllLabels,a=m();function i(T){return T.type==="category"?o(T):r(T)}function t(T,_){return T.type==="category"?u(T,_):{ticks:T.scale.getTicks()}}function o(T){var _=T.getLabelModel(),C=e(T,_);return!_.get("show")||T.scale.isBlank()?{labels:[],labelCategoryInterval:C.labelCategoryInterval}:C}function e(T,_){var C=s(T,"labels"),w=d(_),O=c(C,w);if(O)return O;var I,k;return y.isFunction(w)?I=E(T,w):(k=w==="auto"?v(T):w,I=x(T,k)),h(C,w,{labels:I,labelCategoryInterval:k})}function u(T,_){var C=s(T,"ticks"),w=d(_),O=c(C,w);if(O)return O;var I,k;if((!_.get("show")||T.scale.isBlank())&&(I=[]),y.isFunction(w))I=E(T,w,!0);else if(w==="auto"){var M=e(T,T.getLabelModel());k=M.labelCategoryInterval,I=y.map(M.labels,function(U){return U.tickValue})}else k=w,I=x(T,k,!0);return h(C,w,{ticks:I,tickCategoryInterval:k})}function r(T){var _=T.scale.getTicks(),C=f(T);return{labels:y.map(_,function(w,O){return{formattedLabel:C(w,O),rawLabel:T.scale.getLabel(w),tickValue:w}})}}function s(T,_){return a(T)[_]||(a(T)[_]=[])}function c(T,_){for(var C=0;C<T.length;C++)if(T[C].key===_)return T[C].value}function h(T,_,C){return T.push({key:_,value:C}),C}function v(T){var _=a(T).autoInterval;return _!=null?_:a(T).autoInterval=T.calculateCategoryInterval()}function A(T){var _=b(T),C=f(T),w=(_.axisRotate-_.labelRotate)/180*Math.PI,O=T.scale,I=O.getExtent(),k=O.count();if(I[1]-I[0]<1)return 0;var M=1;k>40&&(M=Math.max(1,Math.floor(k/40)));for(var U=I[0],P=T.dataToCoord(U+1)-T.dataToCoord(U),X=Math.abs(P*Math.cos(w)),F=Math.abs(P*Math.sin(w)),j=0,K=0;U<=I[1];U+=M){var z=0,V=0,Q=g.getBoundingRect(C(U),_.font,"center","top");z=Q.width*1.3,V=Q.height*1.3,j=Math.max(j,z,7),K=Math.max(K,V,7)}var G=j/X,te=K/F;isNaN(G)&&(G=Infinity),isNaN(te)&&(te=Infinity);var q=Math.max(0,Math.floor(Math.min(G,te))),se=a(T.model),re=T.getExtent(),we=se.lastAutoInterval,Oe=se.lastTickCount;return we!=null&&Oe!=null&&Math.abs(we-q)<=1&&Math.abs(Oe-k)<=1&&we>q&&se.axisExtend0===re[0]&&se.axisExtend1===re[1]?q=we:(se.lastTickCount=k,se.lastAutoInterval=q,se.axisExtend0=re[0],se.axisExtend1=re[1]),q}function b(T){var _=T.getLabelModel();return{axisRotate:T.getRotate?T.getRotate():T.isHorizontal&&!T.isHorizontal()?90:0,labelRotate:_.get("rotate")||0,font:_.getFont()}}function x(T,_,C){var w=f(T),O=T.scale,I=O.getExtent(),k=T.getLabelModel(),M=[],U=Math.max((_||0)+1,1),P=I[0],X=O.count();P!==0&&U>1&&X/U>2&&(P=Math.round(Math.ceil(P/U)*U));var F=l(T),j=k.get("showMinLabel")||F,K=k.get("showMaxLabel")||F;j&&P!==I[0]&&V(I[0]);for(var z=P;z<=I[1];z+=U)V(z);K&&z-U!==I[1]&&V(I[1]);function V(Q){M.push(C?Q:{formattedLabel:w(Q),rawLabel:O.getLabel(Q),tickValue:Q})}return M}function E(T,_,C){var w=T.scale,O=f(T),I=[];return y.each(w.getTicks(),function(k){var M=w.getLabel(k);_(k,M)&&I.push(C?k:{formattedLabel:O(k),rawLabel:M,tickValue:k})}),I}D.createAxisLabels=i,D.createAxisTicks=t,D.calculateCategoryInterval=A},"4NO4":function(R,D,n){var y=n("bYtY"),g=n("ItGF"),S=y.each,m=y.isObject,p=y.isArray,f="series\0";function d(C){return C instanceof Array?C:C==null?[]:[C]}function l(C,w,O){if(C){C[w]=C[w]||{},C.emphasis=C.emphasis||{},C.emphasis[w]=C.emphasis[w]||{};for(var I=0,k=O.length;I<k;I++){var M=O[I];!C.emphasis[w].hasOwnProperty(M)&&C[w].hasOwnProperty(M)&&(C.emphasis[w][M]=C[w][M])}}}var a=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function i(C){return m(C)&&!p(C)&&!(C instanceof Date)?C.value:C}function t(C){return m(C)&&!(C instanceof Array)}function o(C,w){w=(w||[]).slice();var O=y.map(C||[],function(I,k){return{exist:I}});return S(w,function(I,k){if(!m(I))return;for(var M=0;M<O.length;M++)if(!O[M].option&&I.id!=null&&O[M].exist.id===I.id+""){O[M].option=I,w[k]=null;return}for(var M=0;M<O.length;M++){var U=O[M].exist;if(!O[M].option&&(U.id==null||I.id==null)&&I.name!=null&&!r(I)&&!r(U)&&U.name===I.name+""){O[M].option=I,w[k]=null;return}}}),S(w,function(I,k){if(!m(I))return;for(var M=0;M<O.length;M++){var U=O[M].exist;if(!O[M].option&&!r(U)&&I.id==null){O[M].option=I;break}}M>=O.length&&O.push({option:I})}),O}function e(C){var w=y.createHashMap();S(C,function(O,I){var k=O.exist;k&&w.set(k.id,O)}),S(C,function(O,I){var k=O.option;y.assert(!k||k.id==null||!w.get(k.id)||w.get(k.id)===O,"id duplicates: "+(k&&k.id)),k&&k.id!=null&&w.set(k.id,O),!O.keyInfo&&(O.keyInfo={})}),S(C,function(O,I){var k=O.exist,M=O.option,U=O.keyInfo;if(!m(M))return;if(U.name=M.name!=null?M.name+"":k?k.name:f+I,k)U.id=k.id;else if(M.id!=null)U.id=M.id+"";else{var P=0;do U.id="\0"+U.name+"\0"+P++;while(w.get(U.id))}w.set(U.id,O)})}function u(C){var w=C.name;return!!(w&&w.indexOf(f))}function r(C){return m(C)&&C.id&&(C.id+"").indexOf("\0_ec_\0")===0}function s(C,w){var O={},I={};return k(C||[],O),k(w||[],I,O),[M(O),M(I)];function k(U,P,X){for(var F=0,j=U.length;F<j;F++)for(var K=U[F].seriesId,z=d(U[F].dataIndex),V=X&&X[K],Q=0,G=z.length;Q<G;Q++){var te=z[Q];V&&V[te]?V[te]=null:(P[K]||(P[K]={}))[te]=1}}function M(U,P){var X=[];for(var F in U)if(U.hasOwnProperty(F)&&U[F]!=null)if(P)X.push(+F);else{var j=M(U[F],!0);j.length&&X.push({seriesId:F,dataIndex:j})}return X}}function c(C,w){if(w.dataIndexInside!=null)return w.dataIndexInside;if(w.dataIndex!=null)return y.isArray(w.dataIndex)?y.map(w.dataIndex,function(O){return C.indexOfRawIndex(O)}):C.indexOfRawIndex(w.dataIndex);if(w.name!=null)return y.isArray(w.name)?y.map(w.name,function(O){return C.indexOfName(O)}):C.indexOfName(w.name)}function h(){var C="__\0ec_inner_"+v+++"_"+Math.random().toFixed(5);return function(w){return w[C]||(w[C]={})}}var v=0;function A(C,w,O){if(y.isString(w)){var I={};I[w+"Index"]=0,w=I}var k=O&&O.defaultMainType;k&&!b(w,k+"Index")&&!b(w,k+"Id")&&!b(w,k+"Name")&&(w[k+"Index"]=0);var M={};return S(w,function(U,P){var U=w[P];if(P==="dataIndex"||P==="dataIndexInside"){M[P]=U;return}var X=P.match(/^(\w+)(Index|Id|Name)$/)||[],F=X[1],j=(X[2]||"").toLowerCase();if(!F||!j||U==null||j==="index"&&U==="none"||O&&O.includeMainTypes&&y.indexOf(O.includeMainTypes,F)<0)return;var K={mainType:F};(j!=="index"||U!=="all")&&(K[j]=U);var z=C.queryComponents(K);M[F+"Models"]=z,M[F+"Model"]=z[0]}),M}function b(C,w){return C&&C.hasOwnProperty(w)}function x(C,w,O){C.setAttribute?C.setAttribute(w,O):C[w]=O}function E(C,w){return C.getAttribute?C.getAttribute(w):C[w]}function T(C){return C==="auto"?g.domSupported?"html":"richText":C||"html"}function _(C,w){var O=y.createHashMap(),I=[];return y.each(C,function(k){var M=w(k);(O.get(M)||(I.push(M),O.set(M,[]))).push(k)}),{keys:I,buckets:O}}D.normalizeToArray=d,D.defaultEmphasis=l,D.TEXT_STYLE_OPTIONS=a,D.getDataItemValue=i,D.isDataItemOption=t,D.mappingToExists=o,D.makeIdAndName=e,D.isNameSpecified=u,D.isIdInner=r,D.compressBatches=s,D.queryDataIndex=c,D.makeInner=h,D.parseFinder=A,D.setAttribute=x,D.getAttribute=E,D.getTooltipRenderMode=T,D.groupData=_},"4NgU":function(R,D,n){var y=n("Yl7c");function g(m){this._setting=m||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}g.prototype.parse=function(m){return m},g.prototype.getSetting=function(m){return this._setting[m]},g.prototype.contain=function(m){var p=this._extent;return m>=p[0]&&m<=p[1]},g.prototype.normalize=function(m){var p=this._extent;return p[1]===p[0]?.5:(m-p[0])/(p[1]-p[0])},g.prototype.scale=function(m){var p=this._extent;return m*(p[1]-p[0])+p[0]},g.prototype.unionExtent=function(m){var p=this._extent;m[0]<p[0]&&(p[0]=m[0]),m[1]>p[1]&&(p[1]=m[1])},g.prototype.unionExtentFromData=function(m,p){this.unionExtent(m.getApproximateExtent(p))},g.prototype.getExtent=function(){return this._extent.slice()},g.prototype.setExtent=function(m,p){var f=this._extent;isNaN(m)||(f[0]=m),isNaN(p)||(f[1]=p)},g.prototype.isBlank=function(){return this._isBlank},g.prototype.setBlank=function(m){this._isBlank=m},g.prototype.getLabel=null,y.enableClassExtend(g),y.enableClassManagement(g,{registerWhenExtend:!0});var S=g;R.exports=S},"4fz+":function(R,D,n){var y=n("bYtY"),g=n("1bdT"),S=n("mFDi"),m=function(d){d=d||{},g.call(this,d);for(var l in d)d.hasOwnProperty(l)&&(this[l]=d[l]);this._children=[],this.__storage=null,this.__dirty=!0};m.prototype={constructor:m,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(d){return this._children[d]},childOfName:function(d){for(var l=this._children,a=0;a<l.length;a++)if(l[a].name===d)return l[a]},childCount:function(){return this._children.length},add:function(d){return d&&d!==this&&d.parent!==this&&(this._children.push(d),this._doAdd(d)),this},addBefore:function(d,l){if(d&&d!==this&&d.parent!==this&&l&&l.parent===this){var a=this._children,i=a.indexOf(l);i>=0&&(a.splice(i,0,d),this._doAdd(d))}return this},_doAdd:function(d){d.parent&&d.parent.remove(d),d.parent=this;var l=this.__storage,a=this.__zr;l&&l!==d.__storage&&(l.addToStorage(d),d instanceof m&&d.addChildrenToStorage(l)),a&&a.refresh()},remove:function(d){var l=this.__zr,a=this.__storage,i=this._children,t=y.indexOf(i,d);return t<0?this:(i.splice(t,1),d.parent=null,a&&(a.delFromStorage(d),d instanceof m&&d.delChildrenFromStorage(a)),l&&l.refresh(),this)},removeAll:function(){var d=this._children,l=this.__storage,a,i;for(i=0;i<d.length;i++)a=d[i],l&&(l.delFromStorage(a),a instanceof m&&a.delChildrenFromStorage(l)),a.parent=null;return d.length=0,this},eachChild:function(d,l){for(var a=this._children,i=0;i<a.length;i++){var t=a[i];d.call(l,t,i)}return this},traverse:function(d,l){for(var a=0;a<this._children.length;a++){var i=this._children[a];d.call(l,i),i.type==="group"&&i.traverse(d,l)}return this},addChildrenToStorage:function(d){for(var l=0;l<this._children.length;l++){var a=this._children[l];d.addToStorage(a),a instanceof m&&a.addChildrenToStorage(d)}},delChildrenFromStorage:function(d){for(var l=0;l<this._children.length;l++){var a=this._children[l];d.delFromStorage(a),a instanceof m&&a.delChildrenFromStorage(d)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(d){for(var l=null,a=new S(0,0,0,0),i=d||this._children,t=[],o=0;o<i.length;o++){var e=i[o];if(e.ignore||e.invisible)continue;var u=e.getBoundingRect(),r=e.getLocalTransform(t);r?(a.copy(u),a.applyTransform(r),l=l||a.clone(),l.union(a)):(l=l||u.clone(),l.union(u))}return l||a}},y.inherits(m,g);var p=m;R.exports=p},"4i/N":function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="CloseOutlined";var d=D.a=g.forwardRef(f)},"4kuk":function(R,D,n){var y=n("SfRM"),g=n("Hvzi"),S=n("u8Dt"),m=n("ekgI"),p=n("JSQU");function f(d){var l=-1,a=d==null?0:d.length;for(this.clear();++l<a;){var i=d[l];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=g,f.prototype.get=S,f.prototype.has=m,f.prototype.set=p,R.exports=f},"4mN7":function(R,D,n){var y=n("QBsz"),g=n("Sj9i"),S=Math.min,m=Math.max,p=Math.sin,f=Math.cos,d=Math.PI*2,l=y.create(),a=y.create(),i=y.create();function t(h,v,A){if(h.length===0)return;var b=h[0],x=b[0],E=b[0],T=b[1],_=b[1],C;for(C=1;C<h.length;C++)b=h[C],x=S(x,b[0]),E=m(E,b[0]),T=S(T,b[1]),_=m(_,b[1]);v[0]=x,v[1]=T,A[0]=E,A[1]=_}function o(h,v,A,b,x,E){x[0]=S(h,A),x[1]=S(v,b),E[0]=m(h,A),E[1]=m(v,b)}var e=[],u=[];function r(h,v,A,b,x,E,T,_,C,w){var O=g.cubicExtrema,I=g.cubicAt,k,M=O(h,A,x,T,e);for(C[0]=Infinity,C[1]=Infinity,w[0]=-Infinity,w[1]=-Infinity,k=0;k<M;k++){var U=I(h,A,x,T,e[k]);C[0]=S(U,C[0]),w[0]=m(U,w[0])}for(M=O(v,b,E,_,u),k=0;k<M;k++){var P=I(v,b,E,_,u[k]);C[1]=S(P,C[1]),w[1]=m(P,w[1])}C[0]=S(h,C[0]),w[0]=m(h,w[0]),C[0]=S(T,C[0]),w[0]=m(T,w[0]),C[1]=S(v,C[1]),w[1]=m(v,w[1]),C[1]=S(_,C[1]),w[1]=m(_,w[1])}function s(h,v,A,b,x,E,T,_){var C=g.quadraticExtremum,w=g.quadraticAt,O=m(S(C(h,A,x),1),0),I=m(S(C(v,b,E),1),0),k=w(h,A,x,O),M=w(v,b,E,I);T[0]=S(h,x,k),T[1]=S(v,E,M),_[0]=m(h,x,k),_[1]=m(v,E,M)}function c(h,v,A,b,x,E,T,_,C){var w=y.min,O=y.max,I=Math.abs(x-E);if(I%d<1e-4&&I>1e-4){_[0]=h-A,_[1]=v-b,C[0]=h+A,C[1]=v+b;return}if(l[0]=f(x)*A+h,l[1]=p(x)*b+v,a[0]=f(E)*A+h,a[1]=p(E)*b+v,w(_,l,a),O(C,l,a),x=x%d,x<0&&(x=x+d),E=E%d,E<0&&(E=E+d),x>E&&!T?E+=d:x<E&&T&&(x+=d),T){var k=E;E=x,x=k}for(var M=0;M<E;M+=Math.PI/2)M>x&&(i[0]=f(M)*A+h,i[1]=p(M)*b+v,w(_,i,_),O(C,i,C))}D.fromPoints=t,D.fromLine=o,D.fromCubic=r,D.fromQuadratic=s,D.fromArc=c},"4vCz":function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("X2/X")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="PlusSquareOutlined";var i=m.forwardRef(a);D.default=i},"4xFK":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},"56rv":function(R,D,n){var y=n("IwbS"),g=n("x3X8"),S=g.getDefaultLabel;function m(f,d,l,a,i,t,o){var e=l.getModel("label"),u=l.getModel("emphasis.label");y.setLabelStyle(f,d,e,u,{labelFetcher:i,labelDataIndex:t,defaultText:S(i.getData(),t),isRectText:!0,autoColor:a}),p(f),p(d)}function p(f,d){f.textPosition==="outside"&&(f.textPosition=d)}D.setLabel=m},"59Ip":function(R,D,n){var y=n("Sj9i");function g(S,m,p,f,d,l,a,i,t,o,e){if(t===0)return!1;var u=t;if(e>m+u&&e>f+u&&e>l+u&&e>i+u||e<m-u&&e<f-u&&e<l-u&&e<i-u||o>S+u&&o>p+u&&o>d+u&&o>a+u||o<S-u&&o<p-u&&o<d-u&&o<a-u)return!1;var r=y.cubicProjectPoint(S,m,p,f,d,l,a,i,o,e,null);return r<=u/2}D.containStroke=g},"5Dmo":function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("5YgA"),m=n.n(S)},"5GOC":function(R,D,n){"use strict";var y=n("cIOH"),g=n("b56q"),S=n("15/o")},"5GhG":function(R,D,n){var y=n("5GtS"),g=n("bYtY"),S=n("L0Ub"),m=S.getDimensionTypeByAxis,p=n("D5nY"),f=p.makeSeriesEncodeForAxisCoordSys,d={_baseAxisDim:null,getInitialData:function(l,a){var i,t=a.getComponent("xAxis",this.get("xAxisIndex")),o=a.getComponent("yAxis",this.get("yAxisIndex")),e=t.get("type"),u=o.get("type"),r;e==="category"?(l.layout="horizontal",i=t.getOrdinalMeta(),r=!0):u==="category"?(l.layout="vertical",i=o.getOrdinalMeta(),r=!0):l.layout=l.layout||"horizontal";var s=["x","y"],c=l.layout==="horizontal"?0:1,h=this._baseAxisDim=s[c],v=s[1-c],A=[t,o],b=A[c].get("type"),x=A[1-c].get("type"),E=l.data;if(E&&r){var T=[];g.each(E,function(w,O){var I;w.value&&g.isArray(w.value)?(I=w.value.slice(),w.value.unshift(O)):g.isArray(w)?(I=w.slice(),w.unshift(O)):I=w,T.push(I)}),l.data=T}var _=this.defaultValueDimensions,C=[{name:h,type:m(b),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:m(x),dimsDef:_.slice()}];return y(this,{coordDimensions:C,dimensionsCount:_.length+1,encodeDefaulter:g.curry(f,C,this)})},getBaseAxis:function(){var l=this._baseAxisDim;return this.ecModel.getComponent(l+"Axis",this.get(l+"AxisIndex")).axis}};D.seriesModelMixin=d},"5GtS":function(R,D,n){var y=n("sdST"),g=n("YXkt"),S=n("bYtY"),m=S.extend,p=S.isArray;function f(d,l,a){l=p(l)&&{coordDimensions:l}||m({},l);var i=d.getSource(),t=y(i,l),o=new g(t,d);return o.initData(i,a),o}R.exports=f},"5Hur":function(R,D,n){var y=n("4NO4"),g=y.makeInner,S=y.normalizeToArray,m=g();function p(d,l){for(var a=d.length,i=0;i<a;i++)if(d[i].length>l)return d[i];return d[a-1]}var f={clearColorPalette:function(){m(this).colorIdx=0,m(this).colorNameMap={}},getColorFromPalette:function(d,l,a){l=l||this;var i=m(l),t=i.colorIdx||0,o=i.colorNameMap=i.colorNameMap||{};if(o.hasOwnProperty(d))return o[d];var e=S(this.get("color",!0)),u=this.get("colorLayer",!0),r=a==null||!u?e:p(u,a);if(r=r||e,!r||!r.length)return;var s=r[t];return d&&(o[d]=s),i.colorIdx=(t+1)%r.length,s}};R.exports=f},"5NDa":function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("OnYD"),m=n.n(S),p=n("+L6B")},"5NHt":function(R,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("N5BQ"),n("IyUQ"),n("LBfv"),n("noeP")},"5OYt":function(R,D,n){"use strict";var y=n("J4zp"),g=n.n(y),S=n("q1tI"),m=n.n(S),p=n("ACnJ");function f(){var d=Object(S.useState)({}),l=g()(d,2),a=l[0],i=l[1];return Object(S.useEffect)(function(){var t=p.a.subscribe(function(o){i(o)});return function(){return p.a.unsubscribe(t)}},[]),a}D.a=f},"5RzL":function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("lwsE"),f=n.n(p),d=n("W8MJ"),l=n.n(d),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),u=n.n(e),r=n("1OyB"),s=n("vuIU"),c=n("Ji7U"),h=n("LK+K"),v=n("KQm4"),A=n("U8pU"),b=n("ODXe"),x=n("VTBJ"),E=n("rePB"),T=n("Ff2n"),_=n("4IlW"),C=n("TSYQ"),w=n.n(C),O=n("6cGi"),I=n("bX4T"),k=n("8XRh"),M=function(Er){var On=Er.className,gr=Er.customizeIcon,Pr=Er.customizeIconProps,Xr=Er.onMouseDown,cn=Er.onClick,Un=Er.children,Nt;return typeof gr=="function"?Nt=gr(Pr):Nt=gr,e.createElement("span",{className:On,onMouseDown:function(Dr){Dr.preventDefault(),Xr&&Xr(Dr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:cn,"aria-hidden":!0},Nt!==void 0?Nt:e.createElement("span",{className:w()(On.split(/\s+/).map(function(Lr){return"".concat(Lr,"-icon")}))},Un))},U=M,P=n("c+Xe"),X=function(Er,On){var gr=Er.prefixCls,Pr=Er.id,Xr=Er.inputElement,cn=Er.disabled,Un=Er.tabIndex,Nt=Er.autoFocus,Lr=Er.autoComplete,Dr=Er.editable,an=Er.accessibilityIndex,Cn=Er.value,Nn=Er.maxLength,En=Er.onKeyDown,ei=Er.onMouseDown,Wn=Er.onChange,gi=Er.onPaste,Fi=Er.onCompositionStart,wi=Er.onCompositionEnd,Ii=Er.open,Vi=Er.attrs,ea=Xr||e.createElement("input",null),Xi=ea,zi=Xi.ref,Hi=Xi.props,Ji=Hi.onKeyDown,ca=Hi.onChange,Ta=Hi.onMouseDown,na=Hi.onCompositionStart,Pa=Hi.onCompositionEnd,La=Hi.style;return ea=e.cloneElement(ea,Object(x.a)(Object(x.a)({id:Pr,ref:Object(P.a)(On,zi),disabled:cn,tabIndex:Un,autoComplete:Lr||"off",type:"search",autoFocus:Nt,className:"".concat(gr,"-selection-search-input"),style:Object(x.a)(Object(x.a)({},La),{},{opacity:Dr?null:0}),role:"combobox","aria-expanded":Ii,"aria-haspopup":"listbox","aria-owns":"".concat(Pr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Pr,"_list"),"aria-activedescendant":"".concat(Pr,"_list_").concat(an)},Vi),{},{value:Dr?Cn:"",maxLength:Nn,readOnly:!Dr,unselectable:Dr?null:"on",onKeyDown:function(ga){En(ga),Ji&&Ji(ga)},onMouseDown:function(ga){ei(ga),Ta&&Ta(ga)},onChange:function(ga){Wn(ga),ca&&ca(ga)},onCompositionStart:function(ga){Fi(ga),na&&na(ga)},onCompositionEnd:function(ga){wi(ga),Pa&&Pa(ga)},onPaste:gi})),ea},F=e.forwardRef(X);F.displayName="Input";var j=F;function K(Nr){return Array.isArray(Nr)?Nr:Nr!==void 0?[Nr]:[]}function z(Nr,Er){var On=Er.labelInValue,gr=Er.combobox;if(Nr===void 0||Nr===""&&gr)return[];var Pr=Array.isArray(Nr)?Nr:[Nr];return On?Pr.map(function(Xr){var cn=Xr.key,Un=Xr.value;return Un!==void 0?Un:cn}):Pr}function V(Nr,Er){var On=Er.optionLabelProp,gr=Er.labelInValue,Pr=Er.prevValue,Xr=Er.options,cn=Er.getLabeledValue,Un=Nr;return gr&&(Un=Un.map(function(Nt){return cn(Nt,{options:Xr,prevValue:Pr,labelInValue:gr,optionLabelProp:On})})),Un}function Q(Nr,Er){var On=Object(v.a)(Er),gr;for(gr=Nr.length-1;gr>=0&&Nr[gr].disabled;gr-=1);var Pr=null;return gr!==-1&&(Pr=On[gr],On.splice(gr,1)),{values:On,removedValue:Pr}}var G=typeof window!="undefined"&&window.document&&window.document.documentElement,te=G,q=0;function se(){var Nr;return te?(Nr=q,q+=1):Nr="TEST_OR_SSR",Nr}function re(Nr,Er){te?e.useLayoutEffect(Nr,Er):e.useEffect(Nr,Er)}var we="__RC_SELECT_MAX_REST_COUNT__",Oe=function(Er){var On=Er.id,gr=Er.prefixCls,Pr=Er.values,Xr=Er.open,cn=Er.searchValue,Un=Er.inputRef,Nt=Er.placeholder,Lr=Er.disabled,Dr=Er.mode,an=Er.showSearch,Cn=Er.autoFocus,Nn=Er.autoComplete,En=Er.accessibilityIndex,ei=Er.tabIndex,Wn=Er.removeIcon,gi=Er.choiceTransitionName,Fi=Er.maxTagCount,wi=Er.maxTagTextLength,Ii=Er.maxTagPlaceholder,Vi=Ii===void 0?function(to){return"+ ".concat(to.length," ...")}:Ii,ea=Er.tagRender,Xi=Er.onSelect,zi=Er.onInputChange,Hi=Er.onInputPaste,Ji=Er.onInputKeyDown,ca=Er.onInputMouseDown,Ta=Er.onInputCompositionStart,na=Er.onInputCompositionEnd,Pa=Object(e.useState)(!1),La=Object(b.a)(Pa,2),va=La[0],ga=La[1],Oa=e.useRef(null),Aa=Object(e.useState)(0),Xa=Object(b.a)(Aa,2),_a=Xa[0],Va=Xa[1],Bi=Object(e.useState)(!1),io=Object(b.a)(Bi,2),oo=io[0],Qo=io[1];e.useEffect(function(){ga(!0)},[]);var mo=Xr||Dr==="tags"?cn:"",Co=Dr==="tags"||an&&(Xr||oo);re(function(){Va(Oa.current.scrollWidth)},[mo]);var ao=Pr,xo;typeof Fi=="number"&&(xo=Pr.length-Fi,ao=Pr.slice(0,Fi)),typeof wi=="number"&&(ao=ao.map(function(to){var Jo=to.label,Uo=Object(T.a)(to,["label"]),wo=Jo;if(typeof Jo=="string"||typeof Jo=="number"){var ts=String(wo);ts.length>wi&&(wo="".concat(ts.slice(0,wi),"..."))}return Object(x.a)(Object(x.a)({},Uo),{},{label:wo})})),xo>0&&ao.push({key:we,label:typeof Vi=="function"?Vi(Pr.slice(Fi)):Vi});var bo=e.createElement(k.a,{component:!1,keys:ao,motionName:gi,motionAppear:va},function(to){var Jo=to.key,Uo=to.label,wo=to.value,ts=to.disabled,Ia=to.className,Oo=to.style,Io=Jo||wo,os=!Lr&&Jo!==we&&!ts,So=function(_o){_o.preventDefault(),_o.stopPropagation()},rs=function(_o){_o&&_o.stopPropagation(),Xi(wo,{selected:!1})};return typeof ea=="function"?e.createElement("span",{key:Io,onMouseDown:So,className:Ia,style:Oo},ea({label:Uo,value:wo,disabled:ts,closable:os,onClose:rs})):e.createElement("span",{key:Io,className:w()(Ia,"".concat(gr,"-selection-item"),Object(E.a)({},"".concat(gr,"-selection-item-disabled"),ts)),style:Oo},e.createElement("span",{className:"".concat(gr,"-selection-item-content")},Uo),os&&e.createElement(U,{className:"".concat(gr,"-selection-item-remove"),onMouseDown:So,onClick:rs,customizeIcon:Wn},"\xD7"))});return e.createElement(e.Fragment,null,bo,e.createElement("span",{className:"".concat(gr,"-selection-search"),style:{width:_a},onFocus:function(){Qo(!0)},onBlur:function(){Qo(!1)}},e.createElement(j,{ref:Un,open:Xr,prefixCls:gr,id:On,inputElement:null,disabled:Lr,autoFocus:Cn,autoComplete:Nn,editable:Co,accessibilityIndex:En,value:mo,onKeyDown:Ji,onMouseDown:ca,onChange:zi,onPaste:Hi,onCompositionStart:Ta,onCompositionEnd:na,tabIndex:ei,attrs:Object(I.a)(Er,!0)}),e.createElement("span",{ref:Oa,className:"".concat(gr,"-selection-search-mirror"),"aria-hidden":!0},mo,"\xA0")),!Pr.length&&!mo&&e.createElement("span",{className:"".concat(gr,"-selection-placeholder")},Nt))},Me=Oe,Qe=function(Er){var On=Er.inputElement,gr=Er.prefixCls,Pr=Er.id,Xr=Er.inputRef,cn=Er.disabled,Un=Er.autoFocus,Nt=Er.autoComplete,Lr=Er.accessibilityIndex,Dr=Er.mode,an=Er.open,Cn=Er.values,Nn=Er.placeholder,En=Er.tabIndex,ei=Er.showSearch,Wn=Er.searchValue,gi=Er.activeValue,Fi=Er.maxLength,wi=Er.onInputKeyDown,Ii=Er.onInputMouseDown,Vi=Er.onInputChange,ea=Er.onInputPaste,Xi=Er.onInputCompositionStart,zi=Er.onInputCompositionEnd,Hi=e.useState(!1),Ji=Object(b.a)(Hi,2),ca=Ji[0],Ta=Ji[1],na=Dr==="combobox",Pa=na||ei,La=Cn[0],va=Wn||"";na&&gi&&!ca&&(va=gi),e.useEffect(function(){na&&Ta(!1)},[na,gi]);var ga=Dr!=="combobox"&&!an?!1:!!va,Oa=La&&(typeof La.label=="string"||typeof La.label=="number")?La.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(gr,"-selection-search")},e.createElement(j,{ref:Xr,prefixCls:gr,id:Pr,open:an,inputElement:On,disabled:cn,autoFocus:Un,autoComplete:Nt,editable:Pa,accessibilityIndex:Lr,value:va,onKeyDown:wi,onMouseDown:Ii,onChange:function(Xa){Ta(!0),Vi(Xa)},onPaste:ea,onCompositionStart:Xi,onCompositionEnd:zi,tabIndex:En,attrs:Object(I.a)(Er,!0),maxLength:na?Fi:void 0})),!na&&La&&!ga&&e.createElement("span",{className:"".concat(gr,"-selection-item"),title:Oa},La.label),!La&&!ga&&e.createElement("span",{className:"".concat(gr,"-selection-placeholder")},Nn))},Ve=Qe;function dt(){var Nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Er=e.useRef(null),On=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(On.current)}},[]);function gr(Pr){(Pr||Er.current===null)&&(Er.current=Pr),window.clearTimeout(On.current),On.current=window.setTimeout(function(){Er.current=null},Nr)}return[function(){return Er.current},gr]}var Fe=function(Er,On){var gr=Object(e.useRef)(null),Pr=Object(e.useRef)(!1),Xr=Er.prefixCls,cn=Er.multiple,Un=Er.open,Nt=Er.mode,Lr=Er.showSearch,Dr=Er.tokenWithEnter,an=Er.onSearch,Cn=Er.onSearchSubmit,Nn=Er.onToggleOpen,En=Er.onInputKeyDown,ei=Er.domRef;e.useImperativeHandle(On,function(){return{focus:function(){gr.current.focus()},blur:function(){gr.current.blur()}}});var Wn=dt(0),gi=Object(b.a)(Wn,2),Fi=gi[0],wi=gi[1],Ii=function(ga){var Oa=ga.which;(Oa===_.a.UP||Oa===_.a.DOWN)&&ga.preventDefault(),En&&En(ga),Oa===_.a.ENTER&&Nt==="tags"&&!Pr.current&&!Un&&Cn(ga.target.value),[_.a.SHIFT,_.a.TAB,_.a.BACKSPACE,_.a.ESC].includes(Oa)||Nn(!0)},Vi=function(){wi(!0)},ea=Object(e.useRef)(null),Xi=function(ga){an(ga,!0,Pr.current)!==!1&&Nn(!0)},zi=function(){Pr.current=!0},Hi=function(){Pr.current=!1},Ji=function(ga){var Oa=ga.target.value;if(Dr&&ea.current&&/[\r\n]/.test(ea.current)){var Aa=ea.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Oa=Oa.replace(Aa,ea.current)}ea.current=null,Xi(Oa)},ca=function(ga){var Oa=ga.clipboardData,Aa=Oa.getData("text");ea.current=Aa},Ta=function(ga){var Oa=ga.target;if(Oa!==gr.current){var Aa=document.body.style.msTouchAction!==void 0;Aa?setTimeout(function(){gr.current.focus()}):gr.current.focus()}},na=function(ga){var Oa=Fi();ga.target!==gr.current&&!Oa&&ga.preventDefault(),(Nt!=="combobox"&&(!Lr||!Oa)||!Un)&&(Un&&an("",!0,!1),Nn())},Pa={inputRef:gr,onInputKeyDown:Ii,onInputMouseDown:Vi,onInputChange:Ji,onInputPaste:ca,onInputCompositionStart:zi,onInputCompositionEnd:Hi},La=cn?e.createElement(Me,Object.assign({},Er,Pa)):e.createElement(Ve,Object.assign({},Er,Pa));return e.createElement("div",{ref:ei,className:"".concat(Xr,"-selector"),onClick:Ta,onMouseDown:na},La)},ue=e.forwardRef(Fe);ue.displayName="Selector";var et=ue,he=n("uciX"),J=function(Er){var On=typeof Er!="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}}}},Y=function(Er,On){var gr=Er.prefixCls,Pr=Er.disabled,Xr=Er.visible,cn=Er.children,Un=Er.popupElement,Nt=Er.containerWidth,Lr=Er.animation,Dr=Er.transitionName,an=Er.dropdownStyle,Cn=Er.dropdownClassName,Nn=Er.direction,En=Nn===void 0?"ltr":Nn,ei=Er.dropdownMatchSelectWidth,Wn=ei===void 0?!0:ei,gi=Er.dropdownRender,Fi=Er.dropdownAlign,wi=Er.getPopupContainer,Ii=Er.empty,Vi=Er.getTriggerDOMNode,ea=Object(T.a)(Er,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),Xi="".concat(gr,"-dropdown"),zi=Un;gi&&(zi=gi(Un));var Hi=e.useMemo(function(){return J(Wn)},[Wn]),Ji=Lr?"".concat(Xi,"-").concat(Lr):Dr,ca=e.useRef(null);e.useImperativeHandle(On,function(){return{getPopupElement:function(){return ca.current}}});var Ta=Object(x.a)({minWidth:Nt},an);return typeof Wn=="number"?Ta.width=Wn:Wn&&(Ta.width=Nt),e.createElement(he.a,Object.assign({},ea,{showAction:[],hideAction:[],popupPlacement:En==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Hi,prefixCls:Xi,popupTransitionName:Ji,popup:e.createElement("div",{ref:ca},zi),popupAlign:Fi,popupVisible:Xr,getPopupContainer:wi,popupClassName:w()(Cn,Object(E.a)({},"".concat(Xi,"-empty"),Ii)),popupStyle:Ta,getTriggerDOMNode:Vi}),cn)},$=e.forwardRef(Y);$.displayName="SelectTrigger";var de=$,be="RC_SELECT_INTERNAL_PROPS_MARK";function Te(){var Nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Er=e.useState(!1),On=Object(b.a)(Er,2),gr=On[0],Pr=On[1],Xr=e.useRef(null),cn=function(){window.clearTimeout(Xr.current)};e.useEffect(function(){return cn},[]);var Un=function(Lr,Dr){cn(),Xr.current=window.setTimeout(function(){Pr(Lr),Dr&&Dr()},Nr)};return[gr,Un,cn]}var Be=n("T5bk"),fe=n("Kwbf");function xe(Nr,Er){var On=Nr.key,gr;return"value"in Nr&&(gr=Nr.value),On!=null?On:gr!==void 0?gr:"rc-index-key-".concat(Er)}function ke(Nr){var Er=[];function On(gr,Pr){gr.forEach(function(Xr){Pr||!("options"in Xr)?Er.push({key:xe(Xr,Er.length),groupOption:Pr,data:Xr}):(Er.push({key:xe(Xr,Er.length),group:!0,data:Xr}),On(Xr.options,!0))})}return On(Nr,!1),Er}function nt(Nr){var Er=Object(x.a)({},Nr);return"props"in Er||Object.defineProperty(Er,"props",{get:function(){return Object(fe.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Er}}),Er}function Ct(Nr,Er){var On=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},gr=On.prevValueOptions,Pr=gr===void 0?[]:gr,Xr=new Map;return Er.forEach(function(cn){if(!cn.group){var Un=cn.data;Xr.set(Un.value,Un)}}),Nr.map(function(cn){var Un=Xr.get(cn);return Un||(Un=Object(x.a)({},Pr.find(function(Nt){return Nt._INTERNAL_OPTION_VALUE_===cn}))),nt(Un)})}var pt=function(Er,On){var gr=On.options,Pr=On.prevValue,Xr=On.labelInValue,cn=On.optionLabelProp,Un=Ct([Er],gr)[0],Nt={value:Er},Lr,Dr=K(Pr);return Xr&&(Lr=Dr.find(function(an){return Object(A.a)(an)==="object"&&"value"in an?an.value===Er:an.key===Er})),Lr&&Object(A.a)(Lr)==="object"&&"label"in Lr?(Nt.label=Lr.label,Un&&typeof Lr.label=="string"&&typeof Un[cn]=="string"&&Lr.label.trim()!==Un[cn].trim()&&Object(fe.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Un&&cn in Un?Nt.label=Un[cn]:Nt.label=Er,Nt.key=Nt.value,Nt};function He(Nr){return K(Nr).join("")}function nr(Nr){return function(Er,On){var gr=Er.toLowerCase();if("options"in On)return He(On.label).toLowerCase().includes(gr);var Pr=On[Nr],Xr=He(Pr).toLowerCase();return Xr.includes(gr)}}function ht(Nr,Er,On){var gr=On.optionFilterProp,Pr=On.filterOption,Xr=[],cn;return Pr===!1?Object(v.a)(Er):(typeof Pr=="function"?cn=Pr:cn=nr(gr),Er.forEach(function(Un){if("options"in Un){var Nt=cn(Nr,Un);if(Nt)Xr.push(Un);else{var Lr=Un.options.filter(function(Dr){return cn(Nr,Dr)});Lr.length&&Xr.push(Object(x.a)(Object(x.a)({},Un),{},{options:Lr}))}return}cn(Nr,nt(Un))&&Xr.push(Un)}),Xr)}function Gt(Nr,Er){if(!Er||!Er.length)return null;var On=!1;function gr(Xr,cn){var Un=Object(Be.a)(cn),Nt=Un[0],Lr=Un.slice(1);if(!Nt)return[Xr];var Dr=Xr.split(Nt);return On=On||Dr.length>1,Dr.reduce(function(an,Cn){return[].concat(Object(v.a)(an),Object(v.a)(gr(Cn,Lr)))},[]).filter(function(an){return an})}var Pr=gr(Nr,Er);return On?Pr:null}function pr(Nr,Er){var On=Ct([Nr],Er)[0];return On.disabled}function Qt(Nr,Er,On,gr){var Pr=K(Er).slice().sort(),Xr=Object(v.a)(Nr),cn=new Set;return Nr.forEach(function(Un){Un.options?Un.options.forEach(function(Nt){cn.add(Nt.value)}):cn.add(Un.value)}),Pr.forEach(function(Un){var Nt=gr?Un.value:Un;if(!cn.has(Nt)){var Lr;Xr.push(gr?(Lr={},Object(E.a)(Lr,On,Un.label),Object(E.a)(Lr,"value",Nt),Lr):{value:Nt})}}),Xr}function Ht(Nr,Er,On){var gr=e.useRef(null);gr.current={elements:Nr.filter(function(Pr){return Pr}),open:Er,triggerOpen:On},e.useEffect(function(){function Pr(Xr){var cn=Xr.target;gr.current.open&&gr.current.elements.every(function(Un){return!Un.contains(cn)&&Un!==cn})&&gr.current.triggerOpen(!1)}return window.addEventListener("mousedown",Pr),function(){return window.removeEventListener("mousedown",Pr)}},[])}function Jt(Nr){var Er=e.useRef(Nr),On=e.useMemo(function(){var gr=new Map;Er.current.forEach(function(Xr){var cn=Xr.value,Un=Xr.label;cn!==Un&&gr.set(cn,Un)});var Pr=Nr.map(function(Xr){var cn=gr.get(Xr.value);return Xr.value===Xr.label&&cn?Object(x.a)(Object(x.a)({},Xr),{},{label:cn}):Xr});return Er.current=Pr,Pr},[Nr]);return On}function Ge(Nr,Er){var On=e.useRef(null),gr=e.useMemo(function(){var Xr=new Map;return Er.forEach(function(cn){var Un=cn.data.value;Xr.set(Un,cn)}),Xr},[Nr,Er]);On.current=gr;var Pr=function(cn){return cn.map(function(Un){return On.current.get(Un)}).filter(Boolean)};return Pr}var pe=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function oe(Nr){var Er=Nr.prefixCls,On=Nr.components.optionList,gr=Nr.convertChildrenToData,Pr=Nr.flattenOptions,Xr=Nr.getLabeledValue,cn=Nr.filterOptions,Un=Nr.isValueDisabled,Nt=Nr.findValueOption,Lr=Nr.warningProps,Dr=Nr.fillOptionsWithMissingValue,an=Nr.omitDOMProps;function Cn(En,ei){var Wn,gi=En.prefixCls,Fi=gi===void 0?Er:gi,wi=En.className,Ii=En.id,Vi=En.open,ea=En.defaultOpen,Xi=En.options,zi=En.children,Hi=En.mode,Ji=En.value,ca=En.defaultValue,Ta=En.labelInValue,na=En.showSearch,Pa=En.inputValue,La=En.searchValue,va=En.filterOption,ga=En.filterSort,Oa=En.optionFilterProp,Aa=Oa===void 0?"value":Oa,Xa=En.autoClearSearchValue,_a=Xa===void 0?!0:Xa,Va=En.onSearch,Bi=En.allowClear,io=En.clearIcon,oo=En.showArrow,Qo=En.inputIcon,mo=En.menuItemSelectedIcon,Co=En.disabled,ao=En.loading,xo=En.defaultActiveFirstOption,bo=En.notFoundContent,to=bo===void 0?"Not Found":bo,Jo=En.optionLabelProp,Uo=En.backfill,wo=En.getInputElement,ts=En.getPopupContainer,Ia=En.listHeight,Oo=Ia===void 0?200:Ia,Io=En.listItemHeight,os=Io===void 0?20:Io,So=En.animation,rs=En.transitionName,Ho=En.virtual,_o=En.dropdownStyle,uo=En.dropdownClassName,Ha=En.dropdownMatchSelectWidth,vt=En.dropdownRender,_r=En.dropdownAlign,rn=En.showAction,Jr=rn===void 0?[]:rn,Jn=En.direction,fn=En.tokenSeparators,Yr=En.tagRender,ii=En.onPopupScroll,on=En.onDropdownVisibleChange,zn=En.onFocus,ui=En.onBlur,di=En.onKeyUp,li=En.onKeyDown,Ti=En.onMouseDown,vi=En.onChange,yi=En.onSelect,Ni=En.onDeselect,ia=En.onClear,Ki=En.internalProps,fa=Ki===void 0?{}:Ki,Ya=Object(T.a)(En,["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"]),Sa=fa.mark===be,wa=an?an(Ya):Ya;pe.forEach(function(jo){delete wa[jo]});var Da=Object(e.useRef)(null),ja=Object(e.useRef)(null),ko=Object(e.useRef)(null),ro=Object(e.useRef)(null),pa=Object(e.useMemo)(function(){return(fn||[]).some(function(jo){return[`
`,`\r
`].includes(jo)})},[fn]),Ea=Te(),Fa=Object(b.a)(Ea,3),Ka=Fa[0],lo=Fa[1],so=Fa[2],To=Object(e.useState)(),Lo=Object(b.a)(To,2),is=Lo[0],cs=Lo[1];Object(e.useEffect)(function(){cs("rc_select_".concat(se()))},[]);var Rs=Ii||is,Ko=Jo;Ko===void 0&&(Ko=Xi?"label":"children");var as=Hi==="combobox"?!1:Ta,co=Hi==="tags"||Hi==="multiple",Ao=na!==void 0?na:co||Hi==="combobox",$a=Object(e.useRef)(null);e.useImperativeHandle(ei,function(){return{focus:ko.current.focus,blur:ko.current.blur}});var ss=Object(O.a)(ca,{value:Ji}),_s=Object(b.a)(ss,2),Fo=_s[0],il=_s[1],Eo=Object(e.useMemo)(function(){return z(Fo,{labelInValue:as,combobox:Hi==="combobox"})},[Fo,as]),zo=Object(e.useMemo)(function(){return new Set(Eo)},[Eo]),Fs=Object(e.useState)(null),ms=Object(b.a)(Fs,2),hs=ms[0],Sn=ms[1],Ns=Object(e.useState)(""),Ll=Object(b.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=el;Hi==="combobox"&&Fo!==void 0?ds=Fo:La!==void 0?ds=La:Pa&&(ds=Pa);var ks=Object(e.useMemo)(function(){var jo=Xi;return jo===void 0&&(jo=gr(zi)),Hi==="tags"&&Dr&&(jo=Dr(jo,Fo,Ko,Ta)),jo||[]},[Xi,zi,Hi,Fo]),Qs=Object(e.useMemo)(function(){return Pr(ks,En)},[ks]),tl=Ge(Eo,Qs),Ss=Object(e.useMemo)(function(){if(!ds||!Ao)return Object(v.a)(ks);var jo=cn(ds,ks,{optionFilterProp:Aa,filterOption:Hi==="combobox"&&va===void 0?function(){return!0}:va});return Hi==="tags"&&jo.every(function(yo){return yo[Aa]!==ds})&&jo.unshift({value:ds,label:ds,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),ga&&Array.isArray(jo)?Object(v.a)(jo).sort(ga):jo},[ks,ds,Hi,Ao,ga]),Bs=Object(e.useMemo)(function(){return Pr(Ss,En)},[Ss]);Object(e.useEffect)(function(){ro.current&&ro.current.scrollTo&&ro.current.scrollTo(0)},[ds]);var al=Object(e.useMemo)(function(){var jo=Eo.map(function(yo){var qo=tl([yo]),ps=Xr(yo,{options:qo,prevValue:Fo,labelInValue:as,optionLabelProp:Ko});return Object(x.a)(Object(x.a)({},ps),{},{disabled:Un(yo,qo)})});return!Hi&&jo.length===1&&jo[0].value===null&&jo[0].label===null?[]:jo},[Fo,ks,Hi]);al=Jt(al);var Js=function(yo,qo,ps){var Is=tl([yo]),es=Nt([yo],Is)[0];if(!fa.skipTriggerSelect){var Ls=as?Xr(yo,{options:Is,prevValue:Fo,labelInValue:as,optionLabelProp:Ko}):yo;qo&&yi?yi(Ls,es):!qo&&Ni&&Ni(Ls,es)}Sa&&(qo&&fa.onRawSelect?fa.onRawSelect(yo,es,ps):!qo&&fa.onRawDeselect&&fa.onRawDeselect(yo,es,ps))},Vo=Object(e.useState)([]),No=Object(b.a)(Vo,2),fs=No[0],Ds=No[1],go=function(yo){if(Sa&&fa.skipTriggerChange)return;var qo=tl(yo),ps=V(Array.from(yo),{labelInValue:as,options:qo,getLabeledValue:Xr,prevValue:Fo,optionLabelProp:Ko}),Is=co?ps:ps[0];if(vi&&(Eo.length!==0||ps.length!==0)){var es=Nt(yo,qo,{prevValueOptions:fs});Ds(es.map(function(Ls,Ps){var ml=Object(x.a)({},Ls);return Object.defineProperty(ml,"_INTERNAL_OPTION_VALUE_",{get:function(){return yo[Ps]}}),ml})),vi(Is,co?es:es[0])}il(Is)},zt=function(yo,qo){var ps=qo.selected,Is=qo.source;if(Co)return;var es;co?(es=new Set(Eo),ps?es.add(yo):es.delete(yo)):(es=new Set,es.add(yo)),(co||!co&&Array.from(Eo)[0]!==yo)&&go(Array.from(es)),Js(yo,!co||ps,Is),Hi==="combobox"?(Gs(String(yo)),Sn("")):(!co||_a)&&(Gs(""),Sn(""))},ur=function(yo,qo){zt(yo,Object(x.a)(Object(x.a)({},qo),{},{source:"option"}))},Dn=function(yo,qo){zt(yo,Object(x.a)(Object(x.a)({},qo),{},{source:"selection"}))},fi=Hi==="combobox"&&wo&&wo()||null,Mt=Object(O.a)(void 0,{defaultValue:ea,value:Vi}),ce=Object(b.a)(Mt,2),Se=ce[0],Ie=ce[1],Je=Se,Pt=!to&&!Ss.length;(Co||Pt&&Je&&Hi==="combobox")&&(Je=!1);var cr=Pt?!1:Je,Zr=function(yo){var qo=yo!==void 0?yo:!Je;Se!==qo&&!Co&&(Ie(qo),on&&on(qo))};Ht([Da.current,ja.current&&ja.current.getPopupElement()],cr,Zr);var vn=function(yo,qo,ps){var Is=!0,es=yo;Sn(null);var Ls=ps?null:Gt(yo,fn),Ps=Ls;if(Hi==="combobox")qo&&go([es]);else if(Ls){es="",Hi!=="tags"&&(Ps=Ls.map(function(Rl){var _l=Qs.find(function(Bl){var jl=Bl.data;return jl[Ko]===Rl});return _l?_l.data.value:null}).filter(function(Rl){return Rl!==null}));var ml=Array.from(new Set([].concat(Object(v.a)(Eo),Object(v.a)(Ps))));go(ml),ml.forEach(function(Rl){Js(Rl,!0,"input")}),Zr(!1),Is=!1}return Gs(es),Va&&ds!==es&&Va(es),Is},kn=function(yo){var qo=Array.from(new Set([].concat(Object(v.a)(Eo),[yo])));go(qo),qo.forEach(function(ps){Js(ps,!0,"input")}),Gs("")};Object(e.useEffect)(function(){Se&&!!Co&&Ie(!1)},[Co]),Object(e.useEffect)(function(){!Je&&!co&&Hi!=="combobox"&&vn("",!1,!1)},[Je]);var ci=dt(),Si=Object(b.a)(ci,2),Ai=Si[0],Qi=Si[1],sa=function(yo){var qo=Ai(),ps=yo.which;if(!Je&&ps===_.a.ENTER&&Zr(!0),Qi(!!ds),ps===_.a.BACKSPACE&&!qo&&co&&!ds&&Eo.length){var Is=Q(al,Eo);Is.removedValue!==null&&(go(Is.values),Js(Is.removedValue,!1,"input"))}for(var es=arguments.length,Ls=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Ls[Ps-1]=arguments[Ps];if(Je&&ro.current){var ml;(ml=ro.current).onKeyDown.apply(ml,[yo].concat(Ls))}li&&li.apply(void 0,[yo].concat(Ls))},Ua=function(yo){for(var qo=arguments.length,ps=new Array(qo>1?qo-1:0),Is=1;Is<qo;Is++)ps[Is-1]=arguments[Is];if(Je&&ro.current){var es;(es=ro.current).onKeyUp.apply(es,[yo].concat(ps))}di&&di.apply(void 0,[yo].concat(ps))},no=Object(e.useRef)(!1),Wo=function(){lo(!0),Co||(zn&&!no.current&&zn.apply(void 0,arguments),Jr.includes("focus")&&Zr(!0)),no.current=!0},Zo=function(){if(lo(!1,function(){no.current=!1,Zr(!1)}),Co)return;ds&&(Hi==="tags"?(vn("",!1,!1),go(Array.from(new Set([].concat(Object(v.a)(Eo),[ds]))))):Hi==="multiple"&&Gs("")),ui&&ui.apply(void 0,arguments)},Bo=[];Object(e.useEffect)(function(){return function(){Bo.forEach(function(jo){return clearTimeout(jo)}),Bo.splice(0,Bo.length)}},[]);var Es=function(yo){var qo=yo.target,ps=ja.current&&ja.current.getPopupElement();if(ps&&ps.contains(qo)){var Is=setTimeout(function(){var ml=Bo.indexOf(Is);ml!==-1&&Bo.splice(ml,1),so(),ps.contains(document.activeElement)||ko.current.focus()});Bo.push(Is)}if(Ti){for(var es=arguments.length,Ls=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Ls[Ps-1]=arguments[Ps];Ti.apply(void 0,[yo].concat(Ls))}},As=Object(e.useState)(0),$o=Object(b.a)(As,2),Do=$o[0],vo=$o[1],Ms=xo!==void 0?xo:Hi!=="combobox",rl=function(yo,qo){var ps=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Is=ps.source,es=Is===void 0?"keyboard":Is;vo(qo),Uo&&Hi==="combobox"&&yo!==null&&es==="keyboard"&&Sn(String(yo))},gs=Object(e.useState)(null),Ra=Object(b.a)(gs,2),dl=Ra[0],fl=Ra[1],Us=Object(e.useState)({}),Os=Object(b.a)(Us,2),Xs=Os[1];function Ql(){Xs({})}re(function(){if(cr){var jo=Math.ceil(Da.current.offsetWidth);dl!==jo&&fl(jo)}},[cr]);var Ul=e.createElement(On,{ref:ro,prefixCls:Fi,id:Rs,open:Je,childrenAsData:!Xi,options:Ss,flattenOptions:Bs,multiple:co,values:zo,height:Oo,itemHeight:os,onSelect:ur,onToggleOpen:Zr,onActiveValue:rl,defaultActiveFirstOption:Ms,notFoundContent:to,onScroll:ii,searchValue:ds,menuItemSelectedIcon:mo,virtual:Ho!==!1&&Ha!==!1,onMouseEnter:Ql}),wl,Cs=function(){Sa&&fa.onClear&&fa.onClear(),ia&&ia(),go([]),vn("",!1,!1)};!Co&&Bi&&(Eo.length||ds)&&(wl=e.createElement(U,{className:"".concat(Fi,"-clear"),onMouseDown:Cs,customizeIcon:io},"\xD7"));var Ws=oo!==void 0?oo:ao||!co&&Hi!=="combobox",Cl;Ws&&(Cl=e.createElement(U,{className:w()("".concat(Fi,"-arrow"),Object(E.a)({},"".concat(Fi,"-arrow-loading"),ao)),customizeIcon:Qo,customizeIconProps:{loading:ao,searchValue:ds,open:Je,focused:Ka,showSearch:Ao}}));var pl=w()(Fi,wi,(Wn={},Object(E.a)(Wn,"".concat(Fi,"-focused"),Ka),Object(E.a)(Wn,"".concat(Fi,"-multiple"),co),Object(E.a)(Wn,"".concat(Fi,"-single"),!co),Object(E.a)(Wn,"".concat(Fi,"-allow-clear"),Bi),Object(E.a)(Wn,"".concat(Fi,"-show-arrow"),Ws),Object(E.a)(Wn,"".concat(Fi,"-disabled"),Co),Object(E.a)(Wn,"".concat(Fi,"-loading"),ao),Object(E.a)(Wn,"".concat(Fi,"-open"),Je),Object(E.a)(Wn,"".concat(Fi,"-customize-input"),fi),Object(E.a)(Wn,"".concat(Fi,"-show-search"),Ao),Wn));return e.createElement("div",Object.assign({className:pl},wa,{ref:Da,onMouseDown:Es,onKeyDown:sa,onKeyUp:Ua,onFocus:Wo,onBlur:Zo}),Ka&&!Je&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Eo.join(", "))),e.createElement(de,{ref:ja,disabled:Co,prefixCls:Fi,visible:cr,popupElement:Ul,containerWidth:dl,animation:So,transitionName:rs,dropdownStyle:_o,dropdownClassName:uo,direction:Jn,dropdownMatchSelectWidth:Ha,dropdownRender:vt,dropdownAlign:_r,getPopupContainer:ts,empty:!ks.length,getTriggerDOMNode:function(){return $a.current}},e.createElement(et,Object.assign({},En,{domRef:$a,prefixCls:Fi,inputElement:fi,ref:ko,id:Rs,showSearch:Ao,mode:Hi,accessibilityIndex:Do,multiple:co,tagRender:Yr,values:al,open:Je,onToggleOpen:Zr,searchValue:ds,activeValue:hs,onSearch:vn,onSearchSubmit:kn,onSelect:Dn,tokenWithEnter:pa}))),Cl,wl)}var Nn=e.forwardRef(Cn);return Nn}var ct=n("Zm9Q"),qe=n("JX7q"),me=e.createContext(null),Kt=function(Er){var On=Er.prefixCls,gr=Er.level,Pr=Er.isStart,Xr=Er.isEnd;if(!gr)return null;for(var cn="".concat(On,"-indent-unit"),Un=[],Nt=0;Nt<gr;Nt+=1){var Lr;Un.push(e.createElement("span",{key:Nt,className:w()(cn,(Lr={},Object(E.a)(Lr,"".concat(cn,"-start"),Pr[Nt]),Object(E.a)(Lr,"".concat(cn,"-end"),Xr[Nt]),Lr))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(On,"-indent")},Un)},vr=Kt,bt="open",or="close",_t="---",jt=function(Nr){Object(c.a)(On,Nr);var Er=Object(h.a)(On);function On(){var gr;return Object(r.a)(this,On),gr=Er.apply(this,arguments),gr.state={dragNodeHighlight:!1},gr.onSelectorClick=function(Pr){var Xr=gr.props.context.onNodeClick;Xr(Pr,Vt(gr.props)),gr.isSelectable()?gr.onSelect(Pr):gr.onCheck(Pr)},gr.onSelectorDoubleClick=function(Pr){var Xr=gr.props.context.onNodeDoubleClick;Xr(Pr,Vt(gr.props))},gr.onSelect=function(Pr){if(gr.isDisabled())return;var Xr=gr.props.context.onNodeSelect;Pr.preventDefault(),Xr(Pr,Vt(gr.props))},gr.onCheck=function(Pr){if(gr.isDisabled())return;var Xr=gr.props,cn=Xr.disableCheckbox,Un=Xr.checked,Nt=gr.props.context.onNodeCheck;if(!gr.isCheckable()||cn)return;Pr.preventDefault();var Lr=!Un;Nt(Pr,Vt(gr.props),Lr)},gr.onMouseEnter=function(Pr){var Xr=gr.props.context.onNodeMouseEnter;Xr(Pr,Vt(gr.props))},gr.onMouseLeave=function(Pr){var Xr=gr.props.context.onNodeMouseLeave;Xr(Pr,Vt(gr.props))},gr.onContextMenu=function(Pr){var Xr=gr.props.context.onNodeContextMenu;Xr(Pr,Vt(gr.props))},gr.onDragStart=function(Pr){var Xr=gr.props.context.onNodeDragStart;Pr.stopPropagation(),gr.setState({dragNodeHighlight:!0}),Xr(Pr,Object(qe.a)(gr));try{Pr.dataTransfer.setData("text/plain","")}catch(cn){}},gr.onDragEnter=function(Pr){var Xr=gr.props.context.onNodeDragEnter;Pr.preventDefault(),Pr.stopPropagation(),Xr(Pr,Object(qe.a)(gr))},gr.onDragOver=function(Pr){var Xr=gr.props.context.onNodeDragOver;Pr.preventDefault(),Pr.stopPropagation(),Xr(Pr,Object(qe.a)(gr))},gr.onDragLeave=function(Pr){var Xr=gr.props.context.onNodeDragLeave;Pr.stopPropagation(),Xr(Pr,Object(qe.a)(gr))},gr.onDragEnd=function(Pr){var Xr=gr.props.context.onNodeDragEnd;Pr.stopPropagation(),gr.setState({dragNodeHighlight:!1}),Xr(Pr,Object(qe.a)(gr))},gr.onDrop=function(Pr){var Xr=gr.props.context.onNodeDrop;Pr.preventDefault(),Pr.stopPropagation(),gr.setState({dragNodeHighlight:!1}),Xr(Pr,Object(qe.a)(gr))},gr.onExpand=function(Pr){var Xr=gr.props.context.onNodeExpand;Xr(Pr,Vt(gr.props))},gr.setSelectHandle=function(Pr){gr.selectHandle=Pr},gr.getNodeState=function(){var Pr=gr.props.expanded;return gr.isLeaf()?null:Pr?bt:or},gr.hasChildren=function(){var Pr=gr.props.eventKey,Xr=gr.props.context.keyEntities,cn=Xr[Pr]||{},Un=cn.children;return!!(Un||[]).length},gr.isLeaf=function(){var Pr=gr.props,Xr=Pr.isLeaf,cn=Pr.loaded,Un=gr.props.context.loadData,Nt=gr.hasChildren();return Xr===!1?!1:Xr||!Un&&!Nt||Un&&cn&&!Nt},gr.isDisabled=function(){var Pr=gr.props.disabled,Xr=gr.props.context.disabled;return!!(Xr||Pr)},gr.isCheckable=function(){var Pr=gr.props.checkable,Xr=gr.props.context.checkable;return!Xr||Pr===!1?!1:Xr},gr.syncLoadData=function(Pr){var Xr=Pr.expanded,cn=Pr.loading,Un=Pr.loaded,Nt=gr.props.context,Lr=Nt.loadData,Dr=Nt.onNodeLoad;if(cn)return;Lr&&Xr&&!gr.isLeaf()&&(!gr.hasChildren()&&!Un&&Dr(Vt(gr.props)))},gr.renderSwitcher=function(){var Pr=gr.props,Xr=Pr.expanded,cn=Pr.switcherIcon,Un=gr.props.context,Nt=Un.prefixCls,Lr=Un.switcherIcon,Dr=cn||Lr;if(gr.isLeaf())return e.createElement("span",{className:w()("".concat(Nt,"-switcher"),"".concat(Nt,"-switcher-noop"))},typeof Dr=="function"?Dr(Object(x.a)(Object(x.a)({},gr.props),{},{isLeaf:!0})):Dr);var an=w()("".concat(Nt,"-switcher"),"".concat(Nt,"-switcher_").concat(Xr?bt:or));return e.createElement("span",{onClick:gr.onExpand,className:an},typeof Dr=="function"?Dr(Object(x.a)(Object(x.a)({},gr.props),{},{isLeaf:!1})):Dr)},gr.renderCheckbox=function(){var Pr=gr.props,Xr=Pr.checked,cn=Pr.halfChecked,Un=Pr.disableCheckbox,Nt=gr.props.context.prefixCls,Lr=gr.isDisabled(),Dr=gr.isCheckable();if(!Dr)return null;var an=typeof Dr!="boolean"?Dr:null;return e.createElement("span",{className:w()("".concat(Nt,"-checkbox"),Xr&&"".concat(Nt,"-checkbox-checked"),!Xr&&cn&&"".concat(Nt,"-checkbox-indeterminate"),(Lr||Un)&&"".concat(Nt,"-checkbox-disabled")),onClick:gr.onCheck},an)},gr.renderIcon=function(){var Pr=gr.props.loading,Xr=gr.props.context.prefixCls;return e.createElement("span",{className:w()("".concat(Xr,"-iconEle"),"".concat(Xr,"-icon__").concat(gr.getNodeState()||"docu"),Pr&&"".concat(Xr,"-icon_loading"))})},gr.renderSelector=function(){var Pr=gr.state.dragNodeHighlight,Xr=gr.props,cn=Xr.title,Un=Xr.selected,Nt=Xr.icon,Lr=Xr.loading,Dr=Xr.data,an=gr.props.context,Cn=an.prefixCls,Nn=an.showIcon,En=an.icon,ei=an.draggable,Wn=an.loadData,gi=an.titleRender,Fi=gr.isDisabled(),wi="".concat(Cn,"-node-content-wrapper"),Ii;if(Nn){var Vi=Nt||En;Ii=Vi?e.createElement("span",{className:w()("".concat(Cn,"-iconEle"),"".concat(Cn,"-icon__customize"))},typeof Vi=="function"?Vi(gr.props):Vi):gr.renderIcon()}else Wn&&Lr&&(Ii=gr.renderIcon());var ea;typeof cn=="function"?ea=cn(Dr):gi?ea=gi(Dr):ea=cn;var Xi=e.createElement("span",{className:"".concat(Cn,"-title")},ea);return e.createElement("span",{ref:gr.setSelectHandle,title:typeof cn=="string"?cn:"",className:w()("".concat(wi),"".concat(wi,"-").concat(gr.getNodeState()||"normal"),!Fi&&(Un||Pr)&&"".concat(Cn,"-node-selected"),!Fi&&ei&&"draggable"),draggable:!Fi&&ei||void 0,"aria-grabbed":!Fi&&ei||void 0,onMouseEnter:gr.onMouseEnter,onMouseLeave:gr.onMouseLeave,onContextMenu:gr.onContextMenu,onClick:gr.onSelectorClick,onDoubleClick:gr.onSelectorDoubleClick,onDragStart:ei?gr.onDragStart:void 0},Ii,Xi)},gr}return Object(s.a)(On,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Pr=this.props.selectable,Xr=this.props.context.selectable;return typeof Pr=="boolean"?Pr:Xr}},{key:"render",value:function(){var Pr,Xr=this.props,cn=Xr.eventKey,Un=Xr.className,Nt=Xr.style,Lr=Xr.dragOver,Dr=Xr.dragOverGapTop,an=Xr.dragOverGapBottom,Cn=Xr.isLeaf,Nn=Xr.isStart,En=Xr.isEnd,ei=Xr.expanded,Wn=Xr.selected,gi=Xr.checked,Fi=Xr.halfChecked,wi=Xr.loading,Ii=Xr.domRef,Vi=Xr.active,ea=Xr.onMouseMove,Xi=Object(T.a)(Xr,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),zi=this.props.context,Hi=zi.prefixCls,Ji=zi.filterTreeNode,ca=zi.draggable,Ta=zi.keyEntities,na=this.isDisabled(),Pa=Pe(Xi),La=Ta[cn]||{},va=La.level,ga=En[En.length-1];return e.createElement("div",Object.assign({ref:Ii,className:w()(Un,"".concat(Hi,"-treenode"),(Pr={},Object(E.a)(Pr,"".concat(Hi,"-treenode-disabled"),na),Object(E.a)(Pr,"".concat(Hi,"-treenode-switcher-").concat(ei?"open":"close"),!Cn),Object(E.a)(Pr,"".concat(Hi,"-treenode-checkbox-checked"),gi),Object(E.a)(Pr,"".concat(Hi,"-treenode-checkbox-indeterminate"),Fi),Object(E.a)(Pr,"".concat(Hi,"-treenode-selected"),Wn),Object(E.a)(Pr,"".concat(Hi,"-treenode-loading"),wi),Object(E.a)(Pr,"".concat(Hi,"-treenode-active"),Vi),Object(E.a)(Pr,"".concat(Hi,"-treenode-leaf-last"),ga),Object(E.a)(Pr,"drag-over",!na&&Lr),Object(E.a)(Pr,"drag-over-gap-top",!na&&Dr),Object(E.a)(Pr,"drag-over-gap-bottom",!na&&an),Object(E.a)(Pr,"filter-node",Ji&&Ji(Vt(this.props))),Pr)),style:Nt,onDragEnter:ca?this.onDragEnter:void 0,onDragOver:ca?this.onDragOver:void 0,onDragLeave:ca?this.onDragLeave:void 0,onDrop:ca?this.onDrop:void 0,onDragEnd:ca?this.onDragEnd:void 0,onMouseMove:ea},Pa),e.createElement(vr,{prefixCls:Hi,level:va,isStart:Nn,isEnd:En}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),On}(e.Component),ut=function(Er){return e.createElement(me.Consumer,null,function(On){return e.createElement(jt,Object.assign({},Er,{context:On}))})};ut.displayName="TreeNode",ut.defaultProps={title:_t},ut.isTreeNode=1;var St=ut,mt=.25,lt=2;function tt(Nr,Er){var On=Nr.slice(),gr=On.indexOf(Er);return gr>=0&&On.splice(gr,1),On}function Cr(Nr,Er){var On=Nr.slice();return On.indexOf(Er)===-1&&On.push(Er),On}function nn(Nr){return Nr.split("-")}function mn(Nr,Er){return"".concat(Nr,"-").concat(Er)}function Bn(Nr){return Nr&&Nr.type&&Nr.type.isTreeNode}function oi(Nr,Er){var On=[Nr],gr=Er[Nr];function Pr(){var Xr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Xr.forEach(function(cn){var Un=cn.key,Nt=cn.children;On.push(Un),Pr(Nt)})}return Pr(gr.children),On}function wn(Nr,Er){var On=Nr.clientY,gr=Er.selectHandle.getBoundingClientRect(),Pr=gr.top,Xr=gr.bottom,cn=gr.height,Un=Math.max(cn*mt,lt);return On<=Pr+Un?-1:On>=Xr-Un?1:0}function Rn(Nr,Er){if(!Nr)return;var On=Er.multiple;return On?Nr.slice():Nr.length?[Nr[0]]:Nr}var Zt=function(Er){return Er};function Tt(Nr,Er){if(!Nr)return[];var On=Er||{},gr=On.processProps,Pr=gr===void 0?Zt:gr,Xr=Array.isArray(Nr)?Nr:[Nr];return Xr.map(function(cn){var Un=cn.children,Nt=Object(T.a)(cn,["children"]),Lr=Tt(Un,Er);return u.a.createElement(St,Object.assign({},Pr(Nt)),Lr)})}function De(Nr){if(!Nr)return null;var Er;if(Array.isArray(Nr))Er={checkedKeys:Nr,halfCheckedKeys:void 0};else if(Object(A.a)(Nr)==="object")Er={checkedKeys:Nr.checked||void 0,halfCheckedKeys:Nr.halfChecked||void 0};else return Object(fe.a)(!1,"`checkedKeys` is not an array or an object"),null;return Er}function Re(Nr,Er){var On=new Set;function gr(Pr){if(On.has(Pr))return;var Xr=Er[Pr];if(!Xr)return;On.add(Pr);var cn=Xr.parent,Un=Xr.node;if(Un.disabled)return;cn&&gr(cn.key)}return(Nr||[]).forEach(function(Pr){gr(Pr)}),Object(v.a)(On)}function Pe(Nr){var Er={};return Object.keys(Nr).forEach(function(On){(On.startsWith("data-")||On.startsWith("aria-"))&&(Er[On]=Nr[On])}),Er}function rt(Nr,Er){return Nr!=null?Nr:Er}function wt(){var Nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Er=new Map;function On(gr){var Pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(gr||[]).forEach(function(Xr){var cn=Xr.key,Un=Xr.children;Object(fe.a)(cn!=null,"Tree node must have a certain key: [".concat(Pr).concat(cn,"]"));var Nt=String(cn);Object(fe.a)(!Er.has(Nt)||cn===null||cn===void 0,"Same 'key' exist in the Tree: ".concat(Nt)),Er.set(Nt,!0),On(Un,"".concat(Pr).concat(Nt," > "))})}On(Nr)}function Ot(Nr){function Er(On){var gr=Object(ct.a)(On);return gr.map(function(Pr){if(!Bn(Pr))return Object(fe.a)(!Pr,"Tree/TreeNode can only accept TreeNode as children."),null;var Xr=Pr.key,cn=Pr.props,Un=cn.children,Nt=Object(T.a)(cn,["children"]),Lr=Object(x.a)({key:Xr},Nt),Dr=Er(Un);return Dr.length&&(Lr.children=Dr),Lr}).filter(function(Pr){return Pr})}return Er(Nr)}function $t(){var Nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],On=new Set(Er===!0?[]:Er),gr=[];function Pr(Xr){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Xr.map(function(Un,Nt){var Lr=mn(cn?cn.pos:"0",Nt),Dr=rt(Un.key,Lr),an=Object(x.a)(Object(x.a)({},Un),{},{parent:cn,pos:Lr,children:null,data:Un,isStart:[].concat(Object(v.a)(cn?cn.isStart:[]),[Nt===0]),isEnd:[].concat(Object(v.a)(cn?cn.isEnd:[]),[Nt===Xr.length-1])});return gr.push(an),Er===!0||On.has(Dr)?an.children=Pr(Un.children||[],an):an.children=[],an})}return Pr(Nr),gr}function Mr(Nr,Er,On){var gr;On?typeof On=="string"?gr=function(cn){return cn[On]}:typeof On=="function"&&(gr=function(cn){return On(cn)}):gr=function(cn,Un){return rt(cn.key,Un)};function Pr(Xr,cn,Un){var Nt=Xr?Xr.children:Nr,Lr=Xr?mn(Un.pos,cn):"0";if(Xr){var Dr=gr(Xr,Lr),an={node:Xr,index:cn,pos:Lr,key:Dr,parentPos:Un.node?Un.pos:null,level:Un.level+1};Er(an)}Nt&&Nt.forEach(function(Cn,Nn){Pr(Cn,Nn,{node:Xr,pos:Lr,level:Un?Un.level+1:-1})})}Pr(null)}function Vr(Nr){var Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},On=Er.initWrapper,gr=Er.processEntity,Pr=Er.onProcessFinished,Xr=arguments.length>2?arguments[2]:void 0,cn={},Un={},Nt={posEntities:cn,keyEntities:Un};return On&&(Nt=On(Nt)||Nt),Mr(Nr,function(Lr){var Dr=Lr.node,an=Lr.index,Cn=Lr.pos,Nn=Lr.key,En=Lr.parentPos,ei=Lr.level,Wn={node:Dr,index:an,key:Nn,pos:Cn,level:ei},gi=rt(Nn,Cn);cn[Cn]=Wn,Un[gi]=Wn,Wn.parent=cn[En],Wn.parent&&(Wn.parent.children=Wn.parent.children||[],Wn.parent.children.push(Wn)),gr&&gr(Wn,Nt)},Xr),Pr&&Pr(Nt),Nt}function hn(Nr,Er){var On=Er.expandedKeys,gr=Er.selectedKeys,Pr=Er.loadedKeys,Xr=Er.loadingKeys,cn=Er.checkedKeys,Un=Er.halfCheckedKeys,Nt=Er.dragOverNodeKey,Lr=Er.dropPosition,Dr=Er.keyEntities,an=Dr[Nr],Cn={eventKey:Nr,expanded:On.indexOf(Nr)!==-1,selected:gr.indexOf(Nr)!==-1,loaded:Pr.indexOf(Nr)!==-1,loading:Xr.indexOf(Nr)!==-1,checked:cn.indexOf(Nr)!==-1,halfChecked:Un.indexOf(Nr)!==-1,pos:String(an?an.pos:""),dragOver:Nt===Nr&&Lr===0,dragOverGapTop:Nt===Nr&&Lr===-1,dragOverGapBottom:Nt===Nr&&Lr===1};return Cn}function Vt(Nr){var Er=Nr.data,On=Nr.expanded,gr=Nr.selected,Pr=Nr.checked,Xr=Nr.loaded,cn=Nr.loading,Un=Nr.halfChecked,Nt=Nr.dragOver,Lr=Nr.dragOverGapTop,Dr=Nr.dragOverGapBottom,an=Nr.pos,Cn=Nr.active,Nn=Object(x.a)(Object(x.a)({},Er),{},{expanded:On,selected:gr,checked:Pr,loaded:Xr,loading:cn,halfChecked:Un,dragOver:Nt,dragOverGapTop:Lr,dragOverGapBottom:Dr,pos:an,active:Cn});return"props"in Nn||Object.defineProperty(Nn,"props",{get:function(){return Object(fe.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Nr}}),Nn}function yt(Nr,Er){var On=new Set;return Nr.forEach(function(gr){Er.has(gr)||On.add(gr)}),On}function xt(Nr){var Er=Nr||{},On=Er.disabled,gr=Er.disableCheckbox,Pr=Er.checkable;return!!(On||gr)||Pr===!1}function dr(Nr,Er,On,gr){for(var Pr=new Set(Nr),Xr=new Set,cn=0;cn<=On;cn+=1){var Un=Er.get(cn)||new Set;Un.forEach(function(an){var Cn=an.key,Nn=an.node,En=an.children,ei=En===void 0?[]:En;Pr.has(Cn)&&!gr(Nn)&&ei.filter(function(Wn){return!gr(Wn.node)}).forEach(function(Wn){Pr.add(Wn.key)})})}for(var Nt=new Set,Lr=On;Lr>=0;Lr-=1){var Dr=Er.get(Lr)||new Set;Dr.forEach(function(an){var Cn=an.parent,Nn=an.node;if(gr(Nn)||!an.parent||Nt.has(an.parent.key))return;if(gr(an.parent.node)){Nt.add(Cn.key);return}var En=!0,ei=!1;(Cn.children||[]).filter(function(Wn){return!gr(Wn.node)}).forEach(function(Wn){var gi=Wn.key,Fi=Pr.has(gi);En&&!Fi&&(En=!1),!ei&&(Fi||Xr.has(gi))&&(ei=!0)}),En&&Pr.add(Cn.key),ei&&Xr.add(Cn.key),Nt.add(Cn.key)})}return{checkedKeys:Array.from(Pr),halfCheckedKeys:Array.from(yt(Xr,Pr))}}function er(Nr,Er,On,gr,Pr){for(var Xr=new Set(Nr),cn=new Set(Er),Un=0;Un<=gr;Un+=1){var Nt=On.get(Un)||new Set;Nt.forEach(function(Cn){var Nn=Cn.key,En=Cn.node,ei=Cn.children,Wn=ei===void 0?[]:ei;!Xr.has(Nn)&&!cn.has(Nn)&&!Pr(En)&&Wn.filter(function(gi){return!Pr(gi.node)}).forEach(function(gi){Xr.delete(gi.key)})})}cn=new Set;for(var Lr=new Set,Dr=gr;Dr>=0;Dr-=1){var an=On.get(Dr)||new Set;an.forEach(function(Cn){var Nn=Cn.parent,En=Cn.node;if(Pr(En)||!Cn.parent||Lr.has(Cn.parent.key))return;if(Pr(Cn.parent.node)){Lr.add(Nn.key);return}var ei=!0,Wn=!1;(Nn.children||[]).filter(function(gi){return!Pr(gi.node)}).forEach(function(gi){var Fi=gi.key,wi=Xr.has(Fi);ei&&!wi&&(ei=!1),!Wn&&(wi||cn.has(Fi))&&(Wn=!0)}),ei||Xr.delete(Nn.key),Wn&&cn.add(Nn.key),Lr.add(Nn.key)})}return{checkedKeys:Array.from(Xr),halfCheckedKeys:Array.from(yt(cn,Xr))}}function Ut(Nr,Er,On,gr){var Pr=[],Xr;gr?Xr=gr:Xr=xt;var cn=new Set(Nr.filter(function(Dr){var an=!!On[Dr];return an||Pr.push(Dr),an})),Un=new Map,Nt=0;Object.keys(On).forEach(function(Dr){var an=On[Dr],Cn=an.level,Nn=Un.get(Cn);Nn||(Nn=new Set,Un.set(Cn,Nn)),Nn.add(an),Nt=Math.max(Nt,Cn)}),Object(fe.a)(!Pr.length,"Tree missing follow keys: ".concat(Pr.slice(0,100).map(function(Dr){return"'".concat(Dr,"'")}).join(", ")));var Lr;return Er===!0?Lr=dr(cn,Un,Nt,Xr):Lr=er(cn,Er.halfCheckedKeys,Un,Nt,Xr),Lr}var ir=n("YrtM"),Ft=n("+nKL"),rr=function(Er,On){var gr=Er.className,Pr=Er.style,Xr=Er.motion,cn=Er.motionNodes,Un=Er.motionType,Nt=Er.onMotionStart,Lr=Er.onMotionEnd,Dr=Er.active,an=Er.treeNodeRequiredProps,Cn=Object(T.a)(Er,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),Nn=e.useState(!0),En=Object(b.a)(Nn,2),ei=En[0],Wn=En[1],gi=e.useContext(me),Fi=gi.prefixCls,wi=e.useRef(!1),Ii=function(){wi.current||Lr(),wi.current=!0};return Object(e.useEffect)(function(){cn&&Un==="hide"&&ei&&Wn(!1)},[cn]),Object(e.useEffect)(function(){return cn&&Nt(),function(){cn&&Ii()}},[]),cn?e.createElement(k.b,Object.assign({ref:On,visible:ei},Xr,{motionAppear:Un==="show",onAppearEnd:Ii,onLeaveEnd:Ii}),function(Vi,ea){var Xi=Vi.className,zi=Vi.style;return e.createElement("div",{ref:ea,className:w()("".concat(Fi,"-treenode-motion"),Xi),style:zi},cn.map(function(Hi){var Ji=Hi.data,ca=Ji.key,Ta=Object(T.a)(Ji,["key"]),na=Hi.isStart,Pa=Hi.isEnd;delete Ta.children;var La=hn(ca,an);return e.createElement(St,Object.assign({},Ta,La,{active:Dr,data:Hi.data,key:ca,isStart:na,isEnd:Pa}))}))}):e.createElement(St,Object.assign({domRef:On,className:gr,style:Pr},Cn,{active:Dr}))};rr.displayName="MotionTreeNode";var Kr=e.forwardRef(rr),Rr=Kr;function kr(){var Nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],On=Nr.length,gr=Er.length;if(Math.abs(On-gr)!==1)return{add:!1,key:null};function Pr(Xr,cn){var Un=new Map;Xr.forEach(function(Lr){Un.set(Lr,!0)});var Nt=cn.filter(function(Lr){return!Un.has(Lr)});return Nt.length===1?Nt[0]:null}return On<gr?{add:!0,key:Pr(Nr,Er)}:{add:!1,key:Pr(Er,Nr)}}function dn(Nr,Er,On){var gr=Nr.findIndex(function(Un){var Nt=Un.data;return Nt.key===On}),Pr=Nr[gr+1],Xr=Er.findIndex(function(Un){var Nt=Un.data;return Nt.key===On});if(Pr){var cn=Er.findIndex(function(Un){var Nt=Un.data;return Nt.key===Pr.data.key});return Er.slice(Xr+1,cn)}return Er.slice(Xr+1)}var yn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ri=function(){},$n="RC_TREE_MOTION_".concat(Math.random()),pi={key:$n},_i={key:$n,level:0,index:0,pos:"0",node:pi},Di={parent:null,children:[],pos:_i.pos,data:pi,isStart:[],isEnd:[]};function Wi(Nr,Er,On,gr){return Er===!1||!On?Nr:Nr.slice(0,Math.ceil(On/gr)+1)}function at(Nr){var Er=Nr.data.key,On=Nr.pos;return rt(Er,On)}function Le(Nr){for(var Er=String(Nr.data.key),On=Nr;On.parent;)On=On.parent,Er="".concat(On.data.key," > ").concat(Er);return Er}var je=function(Er,On){var gr=Er.prefixCls,Pr=Er.data,Xr=Er.selectable,cn=Er.checkable,Un=Er.expandedKeys,Nt=Er.selectedKeys,Lr=Er.checkedKeys,Dr=Er.loadedKeys,an=Er.loadingKeys,Cn=Er.halfCheckedKeys,Nn=Er.keyEntities,En=Er.disabled,ei=Er.dragging,Wn=Er.dragOverNodeKey,gi=Er.dropPosition,Fi=Er.motion,wi=Er.height,Ii=Er.itemHeight,Vi=Er.virtual,ea=Er.focusable,Xi=Er.activeItem,zi=Er.focused,Hi=Er.tabIndex,Ji=Er.onKeyDown,ca=Er.onFocus,Ta=Er.onBlur,na=Er.onActiveChange,Pa=Er.onListChangeStart,La=Er.onListChangeEnd,va=Object(T.a)(Er,["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"]),ga=e.useRef(null);e.useImperativeHandle(On,function(){return{scrollTo:function(rs){ga.current.scrollTo(rs)}}});var Oa=e.useState(Un),Aa=Object(b.a)(Oa,2),Xa=Aa[0],_a=Aa[1],Va=e.useState(Pr),Bi=Object(b.a)(Va,2),io=Bi[0],oo=Bi[1],Qo=e.useState(Pr),mo=Object(b.a)(Qo,2),Co=mo[0],ao=mo[1],xo=e.useState([]),bo=Object(b.a)(xo,2),to=bo[0],Jo=bo[1],Uo=e.useState(null),wo=Object(b.a)(Uo,2),ts=wo[0],Ia=wo[1];function Oo(){oo(Pr),ao(Pr),Jo([]),Ia(null),La()}e.useEffect(function(){_a(Un);var So=kr(Xa,Un);if(So.key!==null)if(So.add){var rs=io.findIndex(function(_r){var rn=_r.data.key;return rn===So.key}),Ho=Wi(dn(io,Pr,So.key),Vi,wi,Ii),_o=io.slice();_o.splice(rs+1,0,Di),ao(_o),Jo(Ho),Ia("show")}else{var uo=Pr.findIndex(function(_r){var rn=_r.data.key;return rn===So.key}),Ha=Wi(dn(Pr,io,So.key),Vi,wi,Ii),vt=Pr.slice();vt.splice(uo+1,0,Di),ao(vt),Jo(Ha),Ia("hide")}else io!==Pr&&(oo(Pr),ao(Pr))},[Un,Pr]),e.useEffect(function(){ei||Oo()},[ei]);var Io=Fi?Co:Pr,os={expandedKeys:Un,selectedKeys:Nt,loadedKeys:Dr,loadingKeys:an,checkedKeys:Lr,halfCheckedKeys:Cn,dragOverNodeKey:Wn,dropPosition:gi,keyEntities:Nn};return e.createElement(e.Fragment,null,zi&&Xi&&e.createElement("span",{style:yn,"aria-live":"assertive"},Le(Xi)),e.createElement("div",{role:"tree"},e.createElement("input",{style:yn,disabled:ea===!1||En,tabIndex:ea!==!1?Hi:null,onKeyDown:Ji,onFocus:ca,onBlur:Ta,value:"",onChange:ri})),e.createElement(Ft.a,Object.assign({},va,{data:Io,itemKey:at,height:wi,fullHeight:!1,virtual:Vi,itemHeight:Ii,prefixCls:"".concat(gr,"-list"),ref:ga}),function(So){var rs=So.pos,Ho=So.data,_o=Ho.key,uo=Object(T.a)(Ho,["key"]),Ha=So.isStart,vt=So.isEnd,_r=rt(_o,rs);delete uo.children;var rn=hn(_r,os);return e.createElement(Rr,Object.assign({},uo,rn,{active:Xi&&_o===Xi.data.key,pos:rs,data:So.data,isStart:Ha,isEnd:vt,motion:Fi,motionNodes:_o===$n?to:null,motionType:ts,onMotionStart:Pa,onMotionEnd:Oo,treeNodeRequiredProps:os,onMouseMove:function(){na(null)}}))}))},Xe=e.forwardRef(je);Xe.displayName="NodeList";var it=Xe,Ze=function(Nr){Object(c.a)(On,Nr);var Er=Object(h.a)(On);function On(){var gr;return Object(r.a)(this,On),gr=Er.apply(this,arguments),gr.destroyed=!1,gr.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},gr.listRef=e.createRef(),gr.onNodeDragStart=function(Pr,Xr){var cn=gr.state,Un=cn.expandedKeys,Nt=cn.keyEntities,Lr=gr.props.onDragStart,Dr=Xr.props.eventKey;gr.dragNode=Xr;var an=tt(Un,Dr);gr.setState({dragging:!0,dragNodesKeys:oi(Dr,Nt)}),gr.setExpandedKeys(an),Lr&&Lr({event:Pr,node:Vt(Xr.props)})},gr.onNodeDragEnter=function(Pr,Xr){var cn=gr.state,Un=cn.expandedKeys,Nt=cn.keyEntities,Lr=cn.dragNodesKeys,Dr=gr.props.onDragEnter,an=Xr.props,Cn=an.pos,Nn=an.eventKey;if(!gr.dragNode||Lr.indexOf(Nn)!==-1)return;var En=wn(Pr,Xr);if(gr.dragNode.props.eventKey===Nn&&En===0){gr.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){gr.setState({dragOverNodeKey:Nn,dropPosition:En}),gr.delayedDragEnterLogic||(gr.delayedDragEnterLogic={}),Object.keys(gr.delayedDragEnterLogic).forEach(function(ei){clearTimeout(gr.delayedDragEnterLogic[ei])}),gr.delayedDragEnterLogic[Cn]=window.setTimeout(function(){if(!gr.state.dragging)return;var ei=Object(v.a)(Un),Wn=Nt[Nn];Wn&&(Wn.children||[]).length&&(ei=Cr(Un,Nn)),"expandedKeys"in gr.props||gr.setExpandedKeys(ei),Dr&&Dr({event:Pr,node:Vt(Xr.props),expandedKeys:ei})},400)},0)},gr.onNodeDragOver=function(Pr,Xr){var cn=gr.state.dragNodesKeys,Un=gr.props.onDragOver,Nt=Xr.props.eventKey;if(cn.indexOf(Nt)!==-1)return;if(gr.dragNode&&Nt===gr.state.dragOverNodeKey){var Lr=wn(Pr,Xr);if(Lr===gr.state.dropPosition)return;gr.setState({dropPosition:Lr})}Un&&Un({event:Pr,node:Vt(Xr.props)})},gr.onNodeDragLeave=function(Pr,Xr){var cn=gr.props.onDragLeave;gr.setState({dragOverNodeKey:""}),cn&&cn({event:Pr,node:Vt(Xr.props)})},gr.onNodeDragEnd=function(Pr,Xr){var cn=gr.props.onDragEnd;gr.setState({dragOverNodeKey:""}),gr.cleanDragState(),cn&&cn({event:Pr,node:Vt(Xr.props)}),gr.dragNode=null},gr.onNodeDrop=function(Pr,Xr){var cn=gr.state,Un=cn.dragNodesKeys,Nt=Un===void 0?[]:Un,Lr=cn.dropPosition,Dr=gr.props.onDrop,an=Xr.props,Cn=an.eventKey,Nn=an.pos;if(gr.setState({dragOverNodeKey:""}),gr.cleanDragState(),Nt.indexOf(Cn)!==-1){Object(fe.a)(!1,"Can not drop to dragNode(include it's children node)");return}var En=nn(Nn),ei={event:Pr,node:Vt(Xr.props),dragNode:gr.dragNode?Vt(gr.dragNode.props):null,dragNodesKeys:Nt.slice(),dropPosition:Lr+Number(En[En.length-1]),dropToGap:!1};Lr!==0&&(ei.dropToGap=!0),Dr&&Dr(ei),gr.dragNode=null},gr.cleanDragState=function(){var Pr=gr.state.dragging;Pr&&gr.setState({dragging:!1})},gr.onNodeClick=function(Pr,Xr){var cn=gr.props.onClick;cn&&cn(Pr,Xr)},gr.onNodeDoubleClick=function(Pr,Xr){var cn=gr.props.onDoubleClick;cn&&cn(Pr,Xr)},gr.onNodeSelect=function(Pr,Xr){var cn=gr.state.selectedKeys,Un=gr.state.keyEntities,Nt=gr.props,Lr=Nt.onSelect,Dr=Nt.multiple,an=Xr.selected,Cn=Xr.key,Nn=!an;Nn?Dr?cn=Cr(cn,Cn):cn=[Cn]:cn=tt(cn,Cn);var En=cn.map(function(ei){var Wn=Un[ei];return Wn?Wn.node:null}).filter(function(ei){return ei});gr.setUncontrolledState({selectedKeys:cn}),Lr&&Lr(cn,{event:"select",selected:Nn,node:Xr,selectedNodes:En,nativeEvent:Pr.nativeEvent})},gr.onNodeCheck=function(Pr,Xr,cn){var Un=gr.state,Nt=Un.keyEntities,Lr=Un.checkedKeys,Dr=Un.halfCheckedKeys,an=gr.props,Cn=an.checkStrictly,Nn=an.onCheck,En=Xr.key,ei,Wn={event:"check",node:Xr,checked:cn,nativeEvent:Pr.nativeEvent};if(Cn){var gi=cn?Cr(Lr,En):tt(Lr,En),Fi=tt(Dr,En);ei={checked:gi,halfChecked:Fi},Wn.checkedNodes=gi.map(function(zi){return Nt[zi]}).filter(function(zi){return zi}).map(function(zi){return zi.node}),gr.setUncontrolledState({checkedKeys:gi})}else{var wi=Ut([].concat(Object(v.a)(Lr),[En]),!0,Nt),Ii=wi.checkedKeys,Vi=wi.halfCheckedKeys;if(!cn){var ea=new Set(Ii);ea.delete(En);var Xi=Ut(Array.from(ea),{checked:!1,halfCheckedKeys:Vi},Nt);Ii=Xi.checkedKeys,Vi=Xi.halfCheckedKeys}ei=Ii,Wn.checkedNodes=[],Wn.checkedNodesPositions=[],Wn.halfCheckedKeys=Vi,Ii.forEach(function(zi){var Hi=Nt[zi];if(!Hi)return;var Ji=Hi.node,ca=Hi.pos;Wn.checkedNodes.push(Ji),Wn.checkedNodesPositions.push({node:Ji,pos:ca})}),gr.setUncontrolledState({checkedKeys:Ii},!1,{halfCheckedKeys:Vi})}Nn&&Nn(ei,Wn)},gr.onNodeLoad=function(Pr){return new Promise(function(Xr){gr.setState(function(cn){var Un=cn.loadedKeys,Nt=Un===void 0?[]:Un,Lr=cn.loadingKeys,Dr=Lr===void 0?[]:Lr,an=gr.props,Cn=an.loadData,Nn=an.onLoad,En=Pr.key;if(!Cn||Nt.indexOf(En)!==-1||Dr.indexOf(En)!==-1)return{};var ei=Cn(Pr);return ei.then(function(){var Wn=gr.state,gi=Wn.loadedKeys,Fi=Wn.loadingKeys,wi=Cr(gi,En),Ii=tt(Fi,En);Nn&&Nn(wi,{event:"load",node:Pr}),gr.setUncontrolledState({loadedKeys:wi}),gr.setState({loadingKeys:Ii}),Xr()}),{loadingKeys:Cr(Dr,En)}})})},gr.onNodeMouseEnter=function(Pr,Xr){var cn=gr.props.onMouseEnter;cn&&cn({event:Pr,node:Xr})},gr.onNodeMouseLeave=function(Pr,Xr){var cn=gr.props.onMouseLeave;cn&&cn({event:Pr,node:Xr})},gr.onNodeContextMenu=function(Pr,Xr){var cn=gr.props.onRightClick;cn&&(Pr.preventDefault(),cn({event:Pr,node:Xr}))},gr.onFocus=function(){var Pr=gr.props.onFocus;gr.setState({focused:!0}),Pr&&Pr.apply(void 0,arguments)},gr.onBlur=function(){var Pr=gr.props.onBlur;gr.setState({focused:!1}),gr.onActiveChange(null),Pr&&Pr.apply(void 0,arguments)},gr.getTreeNodeRequiredProps=function(){var Pr=gr.state,Xr=Pr.expandedKeys,cn=Pr.selectedKeys,Un=Pr.loadedKeys,Nt=Pr.loadingKeys,Lr=Pr.checkedKeys,Dr=Pr.halfCheckedKeys,an=Pr.dragOverNodeKey,Cn=Pr.dropPosition,Nn=Pr.keyEntities;return{expandedKeys:Xr||[],selectedKeys:cn||[],loadedKeys:Un||[],loadingKeys:Nt||[],checkedKeys:Lr||[],halfCheckedKeys:Dr||[],dragOverNodeKey:an,dropPosition:Cn,keyEntities:Nn}},gr.setExpandedKeys=function(Pr){var Xr=gr.state.treeData,cn=$t(Xr,Pr);gr.setUncontrolledState({expandedKeys:Pr,flattenNodes:cn},!0)},gr.onNodeExpand=function(Pr,Xr){var cn=gr.state.expandedKeys,Un=gr.state.listChanging,Nt=gr.props,Lr=Nt.onExpand,Dr=Nt.loadData,an=Xr.key,Cn=Xr.expanded;if(Un)return;var Nn=cn.indexOf(an),En=!Cn;if(Object(fe.a)(Cn&&Nn!==-1||!Cn&&Nn===-1,"Expand state not sync with index check"),En?cn=Cr(cn,an):cn=tt(cn,an),gr.setExpandedKeys(cn),Lr&&Lr(cn,{node:Xr,expanded:En,nativeEvent:Pr.nativeEvent}),En&&Dr){var ei=gr.onNodeLoad(Xr);ei&&ei.then(function(){var Wn=$t(gr.state.treeData,cn);gr.setUncontrolledState({flattenNodes:Wn})})}},gr.onListChangeStart=function(){gr.setUncontrolledState({listChanging:!0})},gr.onListChangeEnd=function(){setTimeout(function(){gr.setUncontrolledState({listChanging:!1})})},gr.onActiveChange=function(Pr){var Xr=gr.state.activeKey,cn=gr.props.onActiveChange;if(Xr===Pr)return;gr.setState({activeKey:Pr}),Pr!==null&&gr.scrollTo({key:Pr}),cn&&cn(Pr)},gr.getActiveItem=function(){var Pr=gr.state,Xr=Pr.activeKey,cn=Pr.flattenNodes;return Xr===null?null:cn.find(function(Un){var Nt=Un.data.key;return Nt===Xr})||null},gr.offsetActiveKey=function(Pr){var Xr=gr.state,cn=Xr.flattenNodes,Un=Xr.activeKey,Nt=cn.findIndex(function(an){var Cn=an.data.key;return Cn===Un});Nt===-1&&Pr<0&&(Nt=cn.length),Nt=(Nt+Pr+cn.length)%cn.length;var Lr=cn[Nt];if(Lr){var Dr=Lr.data.key;gr.onActiveChange(Dr)}else gr.onActiveChange(null)},gr.onKeyDown=function(Pr){var Xr=gr.state,cn=Xr.activeKey,Un=Xr.expandedKeys,Nt=Xr.checkedKeys,Lr=gr.props,Dr=Lr.onKeyDown,an=Lr.checkable,Cn=Lr.selectable;switch(Pr.which){case _.a.UP:{gr.offsetActiveKey(-1),Pr.preventDefault();break}case _.a.DOWN:{gr.offsetActiveKey(1),Pr.preventDefault();break}}var Nn=gr.getActiveItem();if(Nn&&Nn.data){var En=gr.getTreeNodeRequiredProps(),ei=Nn.data.isLeaf===!1||!!(Nn.data.children||[]).length,Wn=Vt(Object(x.a)(Object(x.a)({},hn(cn,En)),{},{data:Nn.data,active:!0}));switch(Pr.which){case _.a.LEFT:{ei&&Un.includes(cn)?gr.onNodeExpand({},Wn):Nn.parent&&gr.onActiveChange(Nn.parent.data.key),Pr.preventDefault();break}case _.a.RIGHT:{ei&&!Un.includes(cn)?gr.onNodeExpand({},Wn):Nn.children&&Nn.children.length&&gr.onActiveChange(Nn.children[0].data.key),Pr.preventDefault();break}case _.a.ENTER:case _.a.SPACE:{an&&!Wn.disabled&&Wn.checkable!==!1&&!Wn.disableCheckbox?gr.onNodeCheck({},Wn,!Nt.includes(cn)):!an&&Cn&&!Wn.disabled&&Wn.selectable!==!1&&gr.onNodeSelect({},Wn);break}}}Dr&&Dr(Pr)},gr.setUncontrolledState=function(Pr){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(gr.destroyed)return;var Un=!1,Nt=!0,Lr={};Object.keys(Pr).forEach(function(Dr){if(Dr in gr.props){Nt=!1;return}Un=!0,Lr[Dr]=Pr[Dr]}),Un&&(!Xr||Nt)&&gr.setState(Object(x.a)(Object(x.a)({},Lr),cn))},gr.scrollTo=function(Pr){gr.listRef.current.scrollTo(Pr)},gr}return Object(s.a)(On,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Pr,Xr=this.state,cn=Xr.focused,Un=Xr.flattenNodes,Nt=Xr.keyEntities,Lr=Xr.dragging,Dr=Xr.activeKey,an=this.props,Cn=an.prefixCls,Nn=an.className,En=an.style,ei=an.showLine,Wn=an.focusable,gi=an.tabIndex,Fi=gi===void 0?0:gi,wi=an.selectable,Ii=an.showIcon,Vi=an.icon,ea=an.switcherIcon,Xi=an.draggable,zi=an.checkable,Hi=an.checkStrictly,Ji=an.disabled,ca=an.motion,Ta=an.loadData,na=an.filterTreeNode,Pa=an.height,La=an.itemHeight,va=an.virtual,ga=an.titleRender,Oa=an.onContextMenu,Aa=Pe(this.props);return e.createElement(me.Provider,{value:{prefixCls:Cn,selectable:wi,showIcon:Ii,icon:Vi,switcherIcon:ea,draggable:Xi,checkable:zi,checkStrictly:Hi,disabled:Ji,keyEntities:Nt,loadData:Ta,filterTreeNode:na,titleRender:ga,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:w()(Cn,Nn,(Pr={},Object(E.a)(Pr,"".concat(Cn,"-show-line"),ei),Object(E.a)(Pr,"".concat(Cn,"-focused"),cn),Object(E.a)(Pr,"".concat(Cn,"-active-focused"),Dr!==null),Pr))},e.createElement(it,Object.assign({ref:this.listRef,prefixCls:Cn,style:En,data:Un,disabled:Ji,selectable:wi,checkable:!!zi,motion:ca,dragging:Lr,height:Pa,itemHeight:La,virtual:va,focusable:Wn,focused:cn,tabIndex:Fi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Oa},this.getTreeNodeRequiredProps(),Aa))))}}],[{key:"getDerivedStateFromProps",value:function(Pr,Xr){var cn=Xr.prevProps,Un={prevProps:Pr};function Nt(Vi){return!cn&&Vi in Pr||cn&&cn[Vi]!==Pr[Vi]}var Lr;if(Nt("treeData")?Lr=Pr.treeData:Nt("children")&&(Object(fe.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Lr=Ot(Pr.children)),Lr){Un.treeData=Lr;var Dr=Vr(Lr);Un.keyEntities=Object(x.a)(Object(E.a)({},$n,_i),Dr.keyEntities)}var an=Un.keyEntities||Xr.keyEntities;if(Nt("expandedKeys")||cn&&Nt("autoExpandParent"))Un.expandedKeys=Pr.autoExpandParent||!cn&&Pr.defaultExpandParent?Re(Pr.expandedKeys,an):Pr.expandedKeys;else if(!cn&&Pr.defaultExpandAll){var Cn=Object(x.a)({},an);delete Cn[$n],Un.expandedKeys=Object.keys(Cn).map(function(Vi){return Cn[Vi].key})}else!cn&&Pr.defaultExpandedKeys&&(Un.expandedKeys=Pr.autoExpandParent||Pr.defaultExpandParent?Re(Pr.defaultExpandedKeys,an):Pr.defaultExpandedKeys);if(Un.expandedKeys||delete Un.expandedKeys,Lr||Un.expandedKeys){var Nn=$t(Lr||Xr.treeData,Un.expandedKeys||Xr.expandedKeys);Un.flattenNodes=Nn}if(Pr.selectable&&(Nt("selectedKeys")?Un.selectedKeys=Rn(Pr.selectedKeys,Pr):!cn&&Pr.defaultSelectedKeys&&(Un.selectedKeys=Rn(Pr.defaultSelectedKeys,Pr))),Pr.checkable){var En;if(Nt("checkedKeys")?En=De(Pr.checkedKeys)||{}:!cn&&Pr.defaultCheckedKeys?En=De(Pr.defaultCheckedKeys)||{}:Lr&&(En=De(Pr.checkedKeys)||{checkedKeys:Xr.checkedKeys,halfCheckedKeys:Xr.halfCheckedKeys}),En){var ei=En,Wn=ei.checkedKeys,gi=Wn===void 0?[]:Wn,Fi=ei.halfCheckedKeys,wi=Fi===void 0?[]:Fi;if(!Pr.checkStrictly){var Ii=Ut(gi,!0,an);gi=Ii.checkedKeys,wi=Ii.halfCheckedKeys}Un.checkedKeys=gi,Un.halfCheckedKeys=wi}}return Nt("loadedKeys")&&(Un.loadedKeys=Pr.loadedKeys),Un}}]),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=St;var ot=Ze,Lt=ot,At=e.createContext(null);function mr(Nr,Er){if(!Nr)return!0;var On=Nr.data,gr=On.disabled,Pr=On.disableCheckbox;switch(Er){case"select":return gr;case"checkbox":return gr||Pr}return!1}function qr(Nr,Er){var On=e.useCallback(function(Pr){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",cn=arguments.length>2?arguments[2]:void 0,Un=Nr.get(Pr);return!cn&&mr(Un,Xr)?null:Un},[Nr]),gr=e.useCallback(function(Pr){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",cn=arguments.length>2?arguments[2]:void 0,Un=Er.get(Pr);return!cn&&mr(Un,Xr)?null:Un},[Er]);return[On,gr]}function Qr(Nr){return e.useMemo(function(){var Er=new Map,On=new Map;return Nr.forEach(function(gr){Er.set(gr.key,gr),On.set(gr.data.value,gr)}),[Er,On]},[Nr])}var gn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},yr=function(Er,On){var gr=Er.prefixCls,Pr=Er.height,Xr=Er.itemHeight,cn=Er.virtual,Un=Er.options,Nt=Er.flattenOptions,Lr=Er.multiple,Dr=Er.searchValue,an=Er.onSelect,Cn=Er.onToggleOpen,Nn=Er.open,En=Er.notFoundContent,ei=Er.onMouseEnter,Wn=e.useContext(At),gi=Wn.checkable,Fi=Wn.checkedKeys,wi=Wn.halfCheckedKeys,Ii=Wn.treeExpandedKeys,Vi=Wn.treeDefaultExpandAll,ea=Wn.treeDefaultExpandedKeys,Xi=Wn.onTreeExpand,zi=Wn.treeIcon,Hi=Wn.showTreeIcon,Ji=Wn.switcherIcon,ca=Wn.treeLine,Ta=Wn.treeNodeFilterProp,na=Wn.loadData,Pa=Wn.treeLoadedKeys,La=Wn.treeMotion,va=Wn.onTreeLoad,ga=e.useRef(),Oa=Object(ir.a)(function(){return Un},[Nn,Un],function(rn,Jr){return Jr[0]&&rn[1]!==Jr[1]}),Aa=Qr(Nt),Xa=Object(b.a)(Aa,2),_a=Xa[0],Va=Xa[1],Bi=qr(_a,Va),io=Object(b.a)(Bi,2),oo=io[0],Qo=io[1],mo=e.useMemo(function(){return Fi.map(function(rn){var Jr=Qo(rn);return Jr?Jr.key:null})},[Fi]),Co=e.useMemo(function(){return gi?{checked:mo,halfChecked:wi}:null},[mo,wi,gi]);e.useEffect(function(){if(Nn&&!Lr&&mo.length){var rn;(rn=ga.current)===null||rn===void 0||rn.scrollTo({key:mo[0]})}},[Nn]);var ao=String(Dr).toLowerCase(),xo=function(Jr){return ao?String(Jr[Ta]).toLowerCase().includes(ao):!1},bo=e.useState(ea),to=Object(b.a)(bo,2),Jo=to[0],Uo=to[1],wo=e.useState(null),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=e.useMemo(function(){return Ii?Object(v.a)(Ii):Dr?Ia:Jo},[Jo,Ia,ao,Ii]);e.useEffect(function(){Dr&&Oo(Nt.map(function(rn){return rn.key}))},[Dr]);var os=function(Jr){Uo(Jr),Oo(Jr),Xi&&Xi(Jr)},So=function(Jr){Jr.preventDefault()},rs=function(Jr,Jn){var fn=Jn.node.key,Yr=oo(fn,gi?"checkbox":"select");Yr!==null&&an(Yr.data.value,{selected:!Fi.includes(Yr.data.value)}),Lr||Cn(!1)},Ho=e.useState(null),_o=Object(b.a)(Ho,2),uo=_o[0],Ha=_o[1],vt=oo(uo);if(e.useImperativeHandle(On,function(){return{onKeyDown:function(Jr){var Jn,fn=Jr.which;switch(fn){case _.a.UP:case _.a.DOWN:case _.a.LEFT:case _.a.RIGHT:(Jn=ga.current)===null||Jn===void 0||Jn.onKeyDown(Jr);break;case _.a.ENTER:{vt!==null&&rs(null,{node:{key:uo},selected:!Fi.includes(vt.data.value)});break}case _.a.ESC:Cn(!1)}},onKeyUp:function(){}}}),Oa.length===0)return e.createElement("div",{role:"listbox",className:"".concat(gr,"-empty"),onMouseDown:So},En);var _r={};return Pa&&(_r.loadedKeys=Pa),Io&&(_r.expandedKeys=Io),e.createElement("div",{onMouseDown:So,onMouseEnter:ei},vt&&Nn&&e.createElement("span",{style:gn,"aria-live":"assertive"},vt.data.value),e.createElement(Lt,Object.assign({ref:ga,focusable:!1,prefixCls:"".concat(gr,"-tree"),treeData:Oa,height:Pr,itemHeight:Xr,virtual:cn,multiple:Lr,icon:zi,showIcon:Hi,switcherIcon:Ji,showLine:ca,loadData:Dr?null:na,motion:La,checkable:gi,checkStrictly:!0,checkedKeys:Co,selectedKeys:gi?[]:mo,defaultExpandAll:Vi},_r,{onActiveChange:Ha,onSelect:rs,onCheck:rs,onExpand:os,onLoad:va,filterTreeNode:xo})))},Vn=e.forwardRef(yr);Vn.displayName="OptionList";var Br=Vn,jn=function(){return null},xn=jn;function tn(Nr){return Object(ct.a)(Nr).map(function(Er){if(!e.isValidElement(Er)||!Er.type)return null;var On=Er.key,gr=Er.props,Pr=gr.children,Xr=gr.value,cn=Object(T.a)(gr,["children","value"]),Un=Object(x.a)({key:On,value:Xr},cn),Nt=tn(Pr);return Nt.length&&(Un.children=Nt),Un}).filter(function(Er){return Er})}function ti(Nr){if(!Nr)return Nr;var Er=Object(x.a)({},Nr);return"props"in Er||Object.defineProperty(Er,"props",{get:function(){return Object(fe.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Er}}),Er}function mi(Nr,Er,On,gr,Pr){var Xr=null,cn=null;function Un(){function Nt(Lr){var Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Lr.map(function(Cn,Nn){var En="".concat(Dr,"-").concat(Nn),ei=On.includes(Cn.value),Wn=Nt(Cn.children||[],En,ei),gi=e.createElement(xn,Object.assign({},Cn),Wn.map(function(wi){return wi.node}));if(Er===Cn.value&&(Xr=gi),ei){var Fi={pos:En,node:gi,children:Wn};return an||cn.push(Fi),Fi}return null}).filter(function(Cn){return Cn})}cn||(cn=[],Nt(gr),cn.sort(function(Lr,Dr){var an=Lr.node.props.value,Cn=Dr.node.props.value,Nn=On.indexOf(an),En=On.indexOf(Cn);return Nn-En}))}Object.defineProperty(Nr,"triggerNode",{get:function(){return Object(fe.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Un(),Xr}}),Object.defineProperty(Nr,"allCheckedNodes",{get:function(){return Object(fe.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Un(),Pr?cn:cn.map(function(Lr){var Dr=Lr.node;return Dr})}})}function Pi(Nr){return Array.isArray(Nr)?Nr:Nr!==void 0?[Nr]:[]}function en(Nr,Er){var On=new Map;return Er.forEach(function(gr){var Pr=gr.data;On.set(Pr.value,Pr)}),Nr.map(function(gr){return ti(On.get(gr))})}function Tn(Nr,Er){var On=en([Nr],Er)[0];return On?On.disabled:!1}function Yn(Nr){return Nr.disabled||Nr.disableCheckbox||Nr.checkable===!1}function Yt(Nr){for(var Er=Nr.parent,On=0,gr=Er;gr;)gr=gr.parent,On+=1;return On}function Dt(Nr){function Er(gr){return(gr||[]).map(function(Pr){var Xr=Pr.value,cn=Pr.key,Un=Pr.children,Nt=Object(x.a)(Object(x.a)({},Pr),{},{key:"key"in Pr?cn:Xr});return Un&&(Nt.children=Er(Un)),Nt})}var On=$t(Er(Nr),!0);return On.map(function(gr){return{key:gr.data.key,data:gr.data,level:Yt(gr)}})}function Bt(Nr){return function(Er,On){var gr=On[Nr];return String(gr).toLowerCase().includes(String(Er).toLowerCase())}}function Wt(Nr,Er,On){var gr=On.optionFilterProp,Pr=On.filterOption;if(Pr===!1)return Er;var Xr;typeof Pr=="function"?Xr=Pr:Xr=Bt(gr);function cn(Un){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Un.map(function(Lr){var Dr=Lr.children,an=Nt||Xr(Nr,ti(Lr)),Cn=cn(Dr||[],an);return an||Cn.length?Object(x.a)(Object(x.a)({},Lr),{},{children:Cn}):null}).filter(function(Lr){return Lr})}return cn(Er)}function Xt(Nr,Er,On,gr){var Pr=new Map;return Pi(Er).forEach(function(Xr){Xr&&Object(A.a)(Xr)==="object"&&"value"in Xr&&Pr.set(Xr.value,Xr)}),Nr.map(function(Xr){var cn={value:Xr},Un=On(Xr,"select",!0),Nt=Un?gr(Un.data):Xr;if(Pr.has(Xr)){var Lr=Pr.get(Xr);cn.label="label"in Lr?Lr.label:Nt,"halfChecked"in Lr&&(cn.halfChecked=Lr.halfChecked)}else cn.label=Nt;return cn})}function kt(Nr,Er){var On=new Set(Nr);return On.add(Er),Array.from(On)}function hr(Nr,Er){var On=new Set(Nr);return On.delete(Er),Array.from(On)}function br(Nr){var Er=Nr.searchPlaceholder,On=Nr.treeCheckStrictly,gr=Nr.treeCheckable,Pr=Nr.labelInValue,Xr=Nr.value,cn=Nr.multiple;Object(fe.a)(!Er,"`searchPlaceholder` has been removed."),On&&Pr===!1&&Object(fe.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Pr||On)&&Object(fe.a)(Pi(Xr).every(function(Un){return Un&&Object(A.a)(Un)==="object"&&"value"in Un}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),On||cn||gr?Object(fe.a)(!Xr||Array.isArray(Xr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(fe.a)(!Array.isArray(Xr),"`value` should not be array when `TreeSelect` is single mode.")}var wr=br,Fr=10;function Xn(Nr,Er){var On=Er.id,gr=Er.pId,Pr=Er.rootPId,Xr={},cn=[],Un=Nr.map(function(Nt){var Lr=Object(x.a)({},Nt),Dr=Lr[On];return Xr[Dr]=Lr,Lr.key=Lr.key||Dr,Lr});return Un.forEach(function(Nt){var Lr=Nt[gr],Dr=Xr[Lr];Dr&&(Dr.children=Dr.children||[],Dr.children.push(Nt)),(Lr===Pr||!Dr&&Pr===null)&&cn.push(Nt)}),cn}function Fn(Nr,Er){var On=0,gr=new Set;function Pr(Xr){return(Xr||[]).map(function(cn){var Un=cn.key,Nt=cn.value,Lr=cn.children,Dr=Object(T.a)(cn,["key","value","children"]),an="value"in cn?Nt:Un,Cn=Object(x.a)(Object(x.a)({},Dr),{},{key:Un!=null?Un:an,value:an,title:Er(cn)});return"children"in cn&&(Cn.children=Pr(Lr)),Cn})}return Pr(Nr)}function hi(Nr,Er,On){var gr=On.getLabelProp,Pr=On.simpleMode,Xr=e.useRef({});return Nr?(Xr.current.formatTreeData=Xr.current.treeData===Nr?Xr.current.formatTreeData:Fn(Pr?Xn(Nr,Object(x.a)({id:"id",pId:"pId",rootPId:null},Pr!==!0?Pr:{})):Nr,gr),Xr.current.treeData=Nr):Xr.current.formatTreeData=Xr.current.children===Er?Xr.current.formatTreeData:Fn(tn(Er),gr),Xr.current.formatTreeData}var An="SHOW_ALL",jr="SHOW_PARENT",In="SHOW_CHILD";function Qn(Nr,Er,On){var gr=new Set(Nr);return Er===In?Nr.filter(function(Pr){var Xr=On[Pr];return!(Xr&&Xr.children&&Xr.children.every(function(cn){var Un=cn.node;return Yn(Un)||gr.has(Un.key)}))}):Er===jr?Nr.filter(function(Pr){var Xr=On[Pr],cn=Xr?Xr.parent:null;return!(cn&&!Yn(cn.node)&&gr.has(cn.node.key))}):Nr}function qn(Nr,Er){var On=Er.value,gr=Er.getEntityByValue,Pr=Er.getEntityByKey,Xr=Er.treeConduction,cn=Er.showCheckedStrategy,Un=Er.conductKeyEntities,Nt=Er.getLabelProp;return e.useMemo(function(){var Lr=Nr;if(Xr){var Dr=Qn(Nr.map(function(an){var Cn=gr(an);return Cn?Cn.key:an}),cn,Un);Lr=Dr.map(function(an){var Cn=Pr(an);return Cn?Cn.data.value:an})}return Xt(Lr,On,gr,Nt)},[Nr,On,Xr,cn,gr])}var si=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ci=oe({prefixCls:"rc-tree-select",components:{optionList:Br},convertChildrenToData:function(){return null},flattenOptions:Dt,getLabeledValue:pt,filterOptions:Wt,isValueDisabled:Tn,findValueOption:en,omitDOMProps:function(Er){var On=Object(x.a)({},Er);return si.forEach(function(gr){delete On[gr]}),On}});Ci.displayName="Select";var ki=e.forwardRef(function(Nr,Er){var On=Nr.multiple,gr=Nr.treeCheckable,Pr=Nr.treeCheckStrictly,Xr=Nr.showCheckedStrategy,cn=Xr===void 0?"SHOW_CHILD":Xr,Un=Nr.labelInValue,Nt=Nr.loadData,Lr=Nr.treeLoadedKeys,Dr=Nr.treeNodeFilterProp,an=Dr===void 0?"value":Dr,Cn=Nr.treeNodeLabelProp,Nn=Nr.treeDataSimpleMode,En=Nr.treeData,ei=Nr.treeExpandedKeys,Wn=Nr.treeDefaultExpandedKeys,gi=Nr.treeDefaultExpandAll,Fi=Nr.children,wi=Nr.treeIcon,Ii=Nr.showTreeIcon,Vi=Nr.switcherIcon,ea=Nr.treeLine,Xi=Nr.treeMotion,zi=Nr.filterTreeNode,Hi=Nr.dropdownPopupAlign,Ji=Nr.onChange,ca=Nr.onTreeExpand,Ta=Nr.onTreeLoad,na=Nr.onDropdownVisibleChange,Pa=Nr.onSelect,La=Nr.onDeselect,va=gr||Pr,ga=On||va,Oa=gr&&!Pr,Aa=Pr||Un,Xa=e.useRef(null);e.useImperativeHandle(Er,function(){return{focus:Xa.current.focus,blur:Xa.current.blur}});var _a=function(fn){return En&&fn.label||fn.title},Va=function(fn){return Cn?fn[Cn]:_a(fn)},Bi=hi(En,Fi,{getLabelProp:_a,simpleMode:Nn}),io=Object(e.useMemo)(function(){return Dt(Bi)},[Bi]),oo=Qr(io),Qo=Object(b.a)(oo,2),mo=Qo[0],Co=Qo[1],ao=qr(mo,Co),xo=Object(b.a)(ao,2),bo=xo[0],to=xo[1],Jo=Object(e.useMemo)(function(){return Oa?Vr(Bi):{keyEntities:null}},[Bi,gr,Pr]),Uo=Jo.keyEntities,wo=Object(O.a)(Nr.defaultValue,{value:Nr.value}),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=function(fn){var Yr=[],ii=[];return fn.forEach(function(on){to(on)?ii.push(on):Yr.push(on)}),{missingRawValues:Yr,existRawValues:ii}},os=Object(e.useMemo)(function(){var Jn=[],fn=[];if(Pi(Ia).forEach(function(Ti){if(Ti&&Object(A.a)(Ti)==="object"&&"value"in Ti)if(Ti.halfChecked&&Pr){var vi=to(Ti.value);Jn.push(vi?vi.key:Ti.value)}else fn.push(Ti.value);else fn.push(Ti)}),Oa){var Yr=Io(fn),ii=Yr.missingRawValues,on=Yr.existRawValues,zn=on.map(function(Ti){return to(Ti).key}),ui=Ut(zn,!0,Uo),di=ui.checkedKeys,li=ui.halfCheckedKeys;return[[].concat(Object(v.a)(ii),Object(v.a)(di.map(function(Ti){return bo(Ti).data.value}))),li]}return[fn,Jn]},[Ia,ga,Aa,gr,Pr]),So=Object(b.a)(os,2),rs=So[0],Ho=So[1],_o=qn(rs,{treeConduction:Oa,value:Ia,showCheckedStrategy:cn,conductKeyEntities:Uo,getEntityByValue:to,getEntityByKey:bo,getLabelProp:Va}),uo=function(fn,Yr,ii){if(Oo(ga?fn:fn[0]),Ji){var on=fn;if(Oa&&cn!=="SHOW_ALL"){var zn=fn.map(function(Ki){var fa=to(Ki);return fa?fa.key:Ki}),ui=Qn(zn,cn,Uo);on=ui.map(function(Ki){var fa=bo(Ki);return fa?fa.data.value:Ki})}var di=Yr||{triggerValue:void 0,selected:void 0},li=di.triggerValue,Ti=di.selected,vi=Aa?Xt(on,Ia,to,Va):on;if(Pr){var yi=Ho.map(function(Ki){var fa=bo(Ki);return fa?fa.data.value:Ki}).filter(function(Ki){return!on.includes(Ki)});vi=[].concat(Object(v.a)(vi),Object(v.a)(Xt(yi,Ia,to,Va)))}var Ni={preValue:_o,triggerValue:li},ia=!0;(Pr||ii==="selection"&&!Ti)&&(ia=!1),mi(Ni,li,fn,Bi,ia),va?Ni.checked=Ti:Ni.selected=Ti,Ji(ga?vi:vi[0],Aa?null:on.map(function(Ki){var fa=to(Ki);return fa?Va(fa.data):null}),Ni)}},Ha=function(fn,Yr,ii){var on=fn;if(!ga)uo([fn],{selected:!0,triggerValue:fn},ii);else{var zn=kt(rs,fn);if(Oa){var ui=Io(zn),di=ui.missingRawValues,li=ui.existRawValues,Ti=li.map(function(Ni){return to(Ni).key}),vi=Ut(Ti,!0,Uo),yi=vi.checkedKeys;zn=[].concat(Object(v.a)(di),Object(v.a)(yi.map(function(Ni){return bo(Ni).data.value})))}uo(zn,{selected:!0,triggerValue:fn},ii)}Pa&&Pa(on,Yr)},vt=function(fn,Yr,ii){var on=fn,zn=hr(rs,fn);if(Oa){var ui=Io(zn),di=ui.missingRawValues,li=ui.existRawValues,Ti=li.map(function(Ni){return to(Ni).key}),vi=Ut(Ti,{checked:!1,halfCheckedKeys:Ho},Uo),yi=vi.checkedKeys;zn=[].concat(Object(v.a)(di),Object(v.a)(yi.map(function(Ni){return bo(Ni).data.value})))}uo(zn,{selected:!1,triggerValue:fn},ii),La&&La(on,Yr)},_r=function(){uo([],null,"clear")},rn=e.useCallback(function(Jn){if(na){var fn={};Object.defineProperty(fn,"documentClickClose",{get:function(){return Object(fe.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),na(Jn,fn)}},[na]),Jr={optionLabelProp:null,optionFilterProp:an,dropdownAlign:Hi,internalProps:{mark:be,onClear:_r,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Ha,onRawDeselect:vt}};return"filterTreeNode"in Nr&&(Jr.filterOption=zi),e.createElement(At.Provider,{value:{checkable:va,loadData:Nt,treeLoadedKeys:Lr,onTreeLoad:Ta,checkedKeys:rs,halfCheckedKeys:Ho,treeDefaultExpandAll:gi,treeExpandedKeys:ei,treeDefaultExpandedKeys:Wn,onTreeExpand:ca,treeIcon:wi,treeMotion:Xi,showTreeIcon:Ii,switcherIcon:Vi,treeLine:ea,treeNodeFilterProp:an}},e.createElement(Ci,Object.assign({ref:Xa,mode:ga?"multiple":null},Nr,Jr,{value:_o,labelInValue:!0,options:Bi,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:rn})))}),Ri=function(Nr){Object(c.a)(On,Nr);var Er=Object(h.a)(On);function On(){var gr;return Object(r.a)(this,On),gr=Er.apply(this,arguments),gr.selectRef=e.createRef(),gr.focus=function(){gr.selectRef.current.focus()},gr.blur=function(){gr.selectRef.current.blur()},gr}return Object(s.a)(On,[{key:"render",value:function(){return e.createElement(ki,Object.assign({ref:this.selectRef},this.props))}}]),On}(e.Component);Ri.TreeNode=xn,Ri.SHOW_ALL=An,Ri.SHOW_PARENT=jr,Ri.SHOW_CHILD=In;var oa=Ri,ma=oa,aa=n("BGR+"),ba=n("H84U"),bi=n("uaoM"),Pn=n("1vzs"),ji=n("2jpz"),ha=n("3Nzz"),ta=function(Nr){i()(On,Nr);var Er=o()(On);function On(gr){var Pr;return f()(this,On),Pr=Er.call(this,gr),Pr.selectRef=e.createRef(),Pr.renderTreeSelect=function(Xr){var cn=Xr.getPopupContainer,Un=Xr.getPrefixCls,Nt=Xr.renderEmpty,Lr=Xr.direction,Dr=Xr.virtual,an=Xr.dropdownMatchSelectWidth,Cn=Pr.props,Nn=Cn.prefixCls,En=Cn.size,ei=Cn.className,Wn=Cn.treeCheckable,gi=Cn.multiple,Fi=Cn.listHeight,wi=Fi===void 0?256:Fi,Ii=Cn.listItemHeight,Vi=Ii===void 0?26:Ii,ea=Cn.notFoundContent,Xi=Cn.switcherIcon,zi=Cn.treeLine,Hi=Cn.getPopupContainer,Ji=Cn.dropdownClassName,ca=Cn.bordered,Ta=Cn.treeIcon,na=Ta===void 0?!1:Ta,Pa=Un("select",Nn),La=Un("select-tree",Nn),va=Un("tree-select",Nn),ga=w()(Ji,"".concat(va,"-dropdown"),m()({},"".concat(va,"-dropdown-rtl"),Lr==="rtl")),Oa=!!(Wn||gi),Aa=Object(Pn.a)(g()(g()({},Pr.props),{multiple:Oa,prefixCls:Pa})),Xa=Aa.suffixIcon,_a=Aa.itemIcon,Va=Aa.removeIcon,Bi=Aa.clearIcon,io;ea!==void 0?io=ea:io=Nt("Select");var oo=Object(aa.default)(Pr.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(ha.b.Consumer,null,function(Qo){var mo,Co=En||Qo,ao=w()(!Nn&&va,(mo={},m()(mo,"".concat(Pa,"-lg"),Co==="large"),m()(mo,"".concat(Pa,"-sm"),Co==="small"),m()(mo,"".concat(Pa,"-rtl"),Lr==="rtl"),m()(mo,"".concat(Pa,"-borderless"),!ca),mo),ei);return e.createElement(ma,g()({virtual:Dr,dropdownMatchSelectWidth:an},oo,{ref:Pr.selectRef,prefixCls:Pa,className:ao,listHeight:wi,listItemHeight:Vi,treeCheckable:Wn&&e.createElement("span",{className:"".concat(Pa,"-tree-checkbox-inner")}),inputIcon:Xa,menuItemSelectedIcon:_a,removeIcon:Va,clearIcon:Bi,switcherIcon:function(bo){return Object(ji.a)(La,Xi,zi,bo)},showTreeIcon:na,notFoundContent:io,getPopupContainer:Hi||cn,treeMotion:null,dropdownClassName:ga}))})},Object(bi.a)(gr.multiple!==!1||!gr.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),Pr}return l()(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(ba.a,null,this.renderTreeSelect)}}]),On}(e.Component);ta.TreeNode=xn,ta.SHOW_ALL=An,ta.SHOW_PARENT=jr,ta.SHOW_CHILD=In,ta.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var ra=D.a=ta},"5Uyt":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("KmBX"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},"5YOS":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("xb2K"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},"5YgA":function(R,D,n){},"5bA4":function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="LeftOutlined";var d=D.a=g.forwardRef(f)},"5hvy":function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("MlIO"))})(this,function(y){return function(g){var S=y,m=S.lib,p=m.WordArray,f=m.Hasher,d=S.x64,l=d.Word,a=S.algo,i=[],t=[],o=[];(function(){for(var r=1,s=0,c=0;c<24;c++){i[r+5*s]=(c+1)*(c+2)/2%64;var h=s%5,v=(2*r+3*s)%5;r=h,s=v}for(var r=0;r<5;r++)for(var s=0;s<5;s++)t[r+5*s]=s+(2*r+3*s)%5*5;for(var A=1,b=0;b<24;b++){for(var x=0,E=0,T=0;T<7;T++){if(A&1){var _=(1<<T)-1;_<32?E^=1<<_:x^=1<<_-32}A&128?A=A<<1^113:A<<=1}o[b]=l.create(x,E)}})();var e=[];(function(){for(var r=0;r<25;r++)e[r]=l.create()})();var u=a.SHA3=f.extend({cfg:f.cfg.extend({outputLength:512}),_doReset:function(){for(var s=this._state=[],c=0;c<25;c++)s[c]=new l.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(s,c){for(var h=this._state,v=this.blockSize/2,A=0;A<v;A++){var b=s[c+2*A],x=s[c+2*A+1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360;var E=h[A];E.high^=x,E.low^=b}for(var T=0;T<24;T++){for(var _=0;_<5;_++){for(var C=0,w=0,O=0;O<5;O++){var E=h[_+5*O];C^=E.high,w^=E.low}var I=e[_];I.high=C,I.low=w}for(var _=0;_<5;_++)for(var k=e[(_+4)%5],M=e[(_+1)%5],U=M.high,P=M.low,C=k.high^(U<<1|P>>>31),w=k.low^(P<<1|U>>>31),O=0;O<5;O++){var E=h[_+5*O];E.high^=C,E.low^=w}for(var X=1;X<25;X++){var C,w,E=h[X],F=E.high,j=E.low,K=i[X];K<32?(C=F<<K|j>>>32-K,w=j<<K|F>>>32-K):(C=j<<K-32|F>>>64-K,w=F<<K-32|j>>>64-K);var z=e[t[X]];z.high=C,z.low=w}var V=e[0],Q=h[0];V.high=Q.high,V.low=Q.low;for(var _=0;_<5;_++)for(var O=0;O<5;O++){var X=_+5*O,E=h[X],G=e[X],te=e[(_+1)%5+5*O],q=e[(_+2)%5+5*O];E.high=G.high^~te.high&q.high,E.low=G.low^~te.low&q.low}var E=h[0],se=o[T];E.high^=se.high,E.low^=se.low}},_doFinalize:function(){var s=this._data,c=s.words,h=this._nDataBytes*8,v=s.sigBytes*8,A=this.blockSize*32;c[v>>>5]|=1<<24-v%32,c[(g.ceil((v+1)/A)*A>>>5)-1]|=128,s.sigBytes=c.length*4,this._process();for(var b=this._state,x=this.cfg.outputLength/8,E=x/8,T=[],_=0;_<E;_++){var C=b[_],w=C.high,O=C.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,T.push(O),T.push(w)}return new p.init(T,x)},clone:function(){for(var s=f.clone.call(this),c=s._state=this._state.slice(0),h=0;h<25;h++)c[h]=c[h].clone();return s}});S.SHA3=f._createHelper(u),S.HmacSHA3=f._createHmacHelper(u)}(Math),y.SHA3})},"5nXd":function(R,D,n){var y=n("MFOe"),g=y.slice,S=y.pluck,m=y.each,p=y.bind,f=y.create,d=y.isList,l=y.isFunction,a=y.isObject;R.exports={createStore:o};var i={version:"2.0.12",enabled:!1,get:function(u,r){var s=this.storage.read(this._namespacePrefix+u);return this._deserialize(s,r)},set:function(u,r){return r===void 0?this.remove(u):(this.storage.write(this._namespacePrefix+u,this._serialize(r)),r)},remove:function(u){this.storage.remove(this._namespacePrefix+u)},each:function(u){var r=this;this.storage.each(function(s,c){u.call(r,r._deserialize(s),(c||"").replace(r._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(u){return this._namespacePrefix=="__storejs_"+u+"_"},createStore:function(){return o.apply(this,arguments)},addPlugin:function(u){this._addPlugin(u)},namespace:function(u){return o(this.storage,this.plugins,u)}};function t(){var e=typeof console=="undefined"?null:console;if(!e)return;var u=e.warn?e.warn:e.log;u.apply(e,arguments)}function o(e,u,r){r||(r=""),e&&!d(e)&&(e=[e]),u&&!d(u)&&(u=[u]);var s=r?"__storejs_"+r+"_":"",c=r?new RegExp("^"+s):null,h=/^[a-zA-Z0-9_\-]*$/;if(!h.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var v={_namespacePrefix:s,_namespaceRegexp:c,_testStorage:function(x){try{var E="__storejs__test__";x.write(E,E);var T=x.read(E)===E;return x.remove(E),T}catch(_){return!1}},_assignPluginFnProp:function(x,E){var T=this[E];this[E]=function(){var C=g(arguments,0),w=this;function O(){return T?(m(arguments,function(k,M){C[M]=k}),T.apply(w,C)):void 0}var I=[O].concat(C);return x.apply(w,I)}},_serialize:function(x){return JSON.stringify(x)},_deserialize:function(x,E){if(!x)return E;var T="";try{T=JSON.parse(x)}catch(_){T=x}return T!==void 0?T:E},_addStorage:function(x){if(this.enabled)return;this._testStorage(x)&&(this.storage=x,this.enabled=!0)},_addPlugin:function(x){var E=this;if(d(x)){m(x,function(C){E._addPlugin(C)});return}var T=S(this.plugins,function(C){return x===C});if(T)return;if(this.plugins.push(x),!l(x))throw new Error("Plugins must be function values that return objects");var _=x.call(this);if(!a(_))throw new Error("Plugins must return an object of function properties");m(_,function(C,w){if(!l(C))throw new Error("Bad plugin property: "+w+" from plugin "+x.name+". Plugins should only return functions.");E._assignPluginFnProp(C,w)})},addStorage:function(x){t("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(x)}},A=f(v,i,{plugins:[]});return A.raw={},m(A,function(b,x){l(b)&&(A.raw[x]=p(A,b))}),m(e,function(b){A._addStorage(b)}),m(u,function(b){A._addPlugin(b)}),A}},"5rEg":function(R,D,n){"use strict";var y=n("mh/l"),g=n("lSNA"),S=n.n(g),m=n("q1tI"),p=n("TSYQ"),f=n.n(p),d=n("H84U"),l=function(K){return m.createElement(d.a,null,function(z){var V,Q=z.getPrefixCls,G=z.direction,te=K.prefixCls,q=K.className,se=q===void 0?"":q,re=Q("input-group",te),we=f()(re,(V={},S()(V,"".concat(re,"-lg"),K.size==="large"),S()(V,"".concat(re,"-sm"),K.size==="small"),S()(V,"".concat(re,"-compact"),K.compact),S()(V,"".concat(re,"-rtl"),G==="rtl"),V),se);return m.createElement("span",{className:we,style:K.style,onMouseEnter:K.onMouseEnter,onMouseLeave:K.onMouseLeave,onFocus:K.onFocus,onBlur:K.onBlur},K.children)})},a=l,i=n("pVnL"),t=n.n(i),o=n("c+Xe"),e=n("w6Tc"),u=n.n(e),r=n("gZBC"),s=n.n(r),c=n("2/Rp"),h=n("3Nzz"),v=n("0n0R"),A=function(j,K){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&K.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},b=m.forwardRef(function(j,K){var z=m.useRef(null),V=function(Oe){var Me=j.onChange,Qe=j.onSearch;Oe&&Oe.target&&Oe.type==="click"&&Qe&&Qe(Oe.target.value,Oe),Me&&Me(Oe)},Q=function(Oe){var Me;document.activeElement===((Me=z.current)===null||Me===void 0?void 0:Me.input)&&Oe.preventDefault()},G=function(Oe){var Me,Qe=j.onSearch,Ve=j.loading,dt=j.disabled;if(Ve||dt)return;Qe&&Qe((Me=z.current)===null||Me===void 0?void 0:Me.input.value,Oe)},te=function(Oe){var Me=j.enterButton,Qe=j.size;return Me?m.createElement(h.b.Consumer,{key:"enterButton"},function(Ve){return m.createElement(c.a,{className:"".concat(Oe,"-button"),type:"primary",size:Qe||Ve},m.createElement(s.a,null))}):m.createElement(s.a,{className:"".concat(Oe,"-icon"),key:"loadingIcon"})},q=function(Oe){var Me=j.suffix,Qe=j.enterButton,Ve=j.loading;if(Ve&&!Qe)return[Me,te(Oe)];if(Qe)return Me;var dt=m.createElement(u.a,{className:"".concat(Oe,"-icon"),key:"searchIcon",onClick:G});return Me?[Object(v.c)(Me,null,{key:"suffix"}),dt]:dt},se=function(Oe,Me){var Qe=j.enterButton,Ve=j.disabled,dt=j.addonAfter,Fe=j.loading,ue="".concat(Oe,"-button");if(Fe&&Qe)return[te(Oe),dt];if(!Qe)return dt;var et,he=Qe,J=he.type&&he.type.__ANT_BUTTON===!0;return J||he.type==="button"?et=Object(v.a)(he,t()({onMouseDown:Q,onClick:G,key:"enterButton"},J?{className:ue,size:Me}:{})):et=m.createElement(c.a,{className:ue,type:"primary",size:Me,disabled:Ve,key:"enterButton",onMouseDown:Q,onClick:G},Qe===!0?m.createElement(u.a,null):Qe),dt?[et,Object(v.c)(dt,null,{key:"addonAfter"})]:et},re=function(Oe){var Me=Oe.getPrefixCls,Qe=Oe.direction,Ve=j.prefixCls,dt=j.inputPrefixCls,Fe=j.enterButton,ue=j.className,et=j.size,he=A(j,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete he.onSearch,delete he.loading;var J=Me("input-search",Ve),Y=Me("input",dt),$=function(be){var Te;if(Fe){var Be;Te=f()(J,ue,(Be={},S()(Be,"".concat(J,"-rtl"),Qe==="rtl"),S()(Be,"".concat(J,"-enter-button"),!!Fe),S()(Be,"".concat(J,"-").concat(be),!!be),Be))}else Te=f()(J,ue,S()({},"".concat(J,"-rtl"),Qe==="rtl"));return Te};return m.createElement(h.b.Consumer,null,function(de){return m.createElement(y.a,t()({ref:Object(o.a)(z,K),onPressEnter:G},he,{size:et||de,prefixCls:Y,addonAfter:se(J,et||de),suffix:q(J),onChange:V,className:$(et||de)}))})};return m.createElement(d.a,null,re)});b.defaultProps={enterButton:!1},b.displayName="Search";var x=b,E=n("whJP"),T=n("J4zp"),_=n.n(T),C=n("BGR+"),w=n("qPY4"),O=n.n(w),I=n("fUL4"),k=n.n(I),M=function(j,K){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&K.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},U={click:"onClick",hover:"onMouseOver"},P=m.forwardRef(function(j,K){var z=Object(m.useState)(!1),V=_()(z,2),Q=V[0],G=V[1],te=function(){var we=j.disabled;if(we)return;G(!Q)},q=function(we){var Oe,Me=j.action,Qe=j.iconRender,Ve=Qe===void 0?function(){return null}:Qe,dt=U[Me]||"",Fe=Ve(Q),ue=(Oe={},S()(Oe,dt,te),S()(Oe,"className","".concat(we,"-icon")),S()(Oe,"key","passwordIcon"),S()(Oe,"onMouseDown",function(he){he.preventDefault()}),S()(Oe,"onMouseUp",function(he){he.preventDefault()}),Oe);return m.cloneElement(m.isValidElement(Fe)?Fe:m.createElement("span",null,Fe),ue)},se=function(we){var Oe=we.getPrefixCls,Me=j.className,Qe=j.prefixCls,Ve=j.inputPrefixCls,dt=j.size,Fe=j.visibilityToggle,ue=M(j,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),et=Oe("input",Ve),he=Oe("input-password",Qe),J=Fe&&q(he),Y=f()(he,Me,S()({},"".concat(he,"-").concat(dt),!!dt)),$=t()(t()({},Object(C.default)(ue,["suffix","iconRender"])),{type:Q?"text":"password",className:Y,prefixCls:et,suffix:J});return dt&&($.size=dt),m.createElement(y.a,t()({ref:K},$))};return m.createElement(d.a,null,se)});P.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(K){return K?m.createElement(O.a,null):m.createElement(k.a,null)}},P.displayName="Password";var X=P;y.a.Group=a,y.a.Search=x,y.a.TextArea=E.a,y.a.Password=X;var F=D.a=y.a},"5s0K":function(R,D,n){var y=n("bYtY");function g(){var S=[],m={},p;return{add:function(f,d,l,a,i){return y.isString(a)&&(i=a,a=0),m[f.id]?!1:(m[f.id]=1,S.push({el:f,target:d,time:l,delay:a,easing:i}),!0)},done:function(f){return p=f,this},start:function(){for(var f=S.length,d=0,l=S.length;d<l;d++){var a=S[d];a.el.animateTo(a.target,a.time,a.delay,a.easing,i)}return this;function i(){f--,f||(S.length=0,m={},p&&p())}}}}D.createWrap=g},"5yev":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},"6/nd":function(R,D,n){var y=n("ProS");y.registerAction("legendScroll","legendscroll",function(g,S){var m=g.scrollDataIndex;m!=null&&S.eachComponent({mainType:"legend",subType:"scroll",query:g},function(p){p.setScrollDataIndex(m)})})},"62sa":function(R,D,n){var y=n("bYtY"),g=n("4NO4"),S=g.makeInner,m=n("zTMp"),p=n("Ez2D"),f=y.each,d=y.curry,l=S();function a(A,b,x){var E=A.currTrigger,T=[A.x,A.y],_=A,C=A.dispatchAction||y.bind(x.dispatchAction,x),w=b.getComponent("axisPointer").coordSysAxesInfo;if(!w)return;v(T)&&(T=p({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},b).point);var O=v(T),I=_.axesInfo,k=w.axesInfo,M=E==="leave"||v(T),U={},P={},X={list:[],map:{}},F={showPointer:d(o,P),showTooltip:d(e,X)};f(w.coordSysMap,function(K,z){var V=O||K.containPoint(T);f(w.coordSysAxesInfo[z],function(Q,G){var te=Q.axis,q=c(I,Q);if(!M&&V&&(!I||q)){var se=q&&q.value;se==null&&!O&&(se=te.pointToData(T)),se!=null&&i(Q,se,F,!1,U)}})});var j={};return f(k,function(K,z){var V=K.linkGroup;V&&!P[z]&&f(V.axesInfo,function(Q,G){var te=P[G];if(Q!==K&&te){var q=te.value;V.mapper&&(q=K.axis.scale.parse(V.mapper(q,h(Q),h(K)))),j[K.key]=q}})}),f(j,function(K,z){i(k[z],K,F,!0,U)}),u(P,k,U),r(X,T,A,C),s(k,C,x),U}function i(A,b,x,E,T){var _=A.axis;if(_.scale.isBlank()||!_.containData(b))return;if(!A.involveSeries){x.showPointer(A,b);return}var C=t(b,A),w=C.payloadBatch,O=C.snapToValue;w[0]&&T.seriesIndex==null&&y.extend(T,w[0]),!E&&A.snap&&(_.containData(O)&&O!=null&&(b=O)),x.showPointer(A,b,w,T),x.showTooltip(A,C,O)}function t(A,b){var x=b.axis,E=x.dim,T=A,_=[],C=Number.MAX_VALUE,w=-1;return f(b.seriesModels,function(O,I){var k=O.getData().mapDimension(E,!0),M,U;if(O.getAxisTooltipData){var P=O.getAxisTooltipData(k,A,x);U=P.dataIndices,M=P.nestestValue}else{if(U=O.getData().indicesOfNearest(k[0],A,x.type==="category"?.5:null),!U.length)return;M=O.getData().get(k[0],U[0])}if(M==null||!isFinite(M))return;var X=A-M,F=Math.abs(X);F<=C&&((F<C||X>=0&&w<0)&&(C=F,w=X,T=M,_.length=0),f(U,function(j){_.push({seriesIndex:O.seriesIndex,dataIndexInside:j,dataIndex:O.getData().getRawIndex(j)})}))}),{payloadBatch:_,snapToValue:T}}function o(A,b,x,E){A[b.key]={value:x,payloadBatch:E}}function e(A,b,x,E){var T=x.payloadBatch,_=b.axis,C=_.model,w=b.axisPointerModel;if(!b.triggerTooltip||!T.length)return;var O=b.coordSys.model,I=m.makeKey(O),k=A.map[I];k||(k=A.map[I]={coordSysId:O.id,coordSysIndex:O.componentIndex,coordSysType:O.type,coordSysMainType:O.mainType,dataByAxis:[]},A.list.push(k)),k.dataByAxis.push({axisDim:_.dim,axisIndex:C.componentIndex,axisType:C.type,axisId:C.id,value:E,valueLabelOpt:{precision:w.get("label.precision"),formatter:w.get("label.formatter")},seriesDataIndices:T.slice()})}function u(A,b,x){var E=x.axesInfo=[];f(b,function(T,_){var C=T.axisPointerModel.option,w=A[_];w?(!T.useHandle&&(C.status="show"),C.value=w.value,C.seriesDataIndices=(w.payloadBatch||[]).slice()):!T.useHandle&&(C.status="hide"),C.status==="show"&&E.push({axisDim:T.axis.dim,axisIndex:T.axis.model.componentIndex,value:C.value})})}function r(A,b,x,E){if(v(b)||!A.list.length){E({type:"hideTip"});return}var T=((A.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};E({type:"showTip",escapeConnect:!0,x:b[0],y:b[1],tooltipOption:x.tooltipOption,position:x.position,dataIndexInside:T.dataIndexInside,dataIndex:T.dataIndex,seriesIndex:T.seriesIndex,dataByCoordSys:A.list})}function s(A,b,x){var E=x.getZr(),T="axisPointerLastHighlights",_=l(E)[T]||{},C=l(E)[T]={};f(A,function(I,k){var M=I.axisPointerModel.option;M.status==="show"&&f(M.seriesDataIndices,function(U){var P=U.seriesIndex+" | "+U.dataIndex;C[P]=U})});var w=[],O=[];y.each(_,function(I,k){!C[k]&&O.push(I)}),y.each(C,function(I,k){!_[k]&&w.push(I)}),O.length&&x.dispatchAction({type:"downplay",escapeConnect:!0,batch:O}),w.length&&x.dispatchAction({type:"highlight",escapeConnect:!0,batch:w})}function c(A,b){for(var x=0;x<(A||[]).length;x++){var E=A[x];if(b.axis.dim===E.axisDim&&b.axis.model.componentIndex===E.axisIndex)return E}}function h(A){var b=A.axis.model,x={},E=x.axisDim=A.axis.dim;return x.axisIndex=x[E+"AxisIndex"]=b.componentIndex,x.axisName=x[E+"AxisName"]=b.name,x.axisId=x[E+"AxisId"]=b.id,x}function v(A){return!A||A[0]==null||isNaN(A[0])||A[1]==null||isNaN(A[1])}R.exports=a},"6BzB":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.shrinkBuf=y,D.arraySet=g,D.flattenChunks=S,D.Buf32=D.Buf16=D.Buf8=void 0;function y(d,l){return d.length===l?d:d.subarray?d.subarray(0,l):(d.length=l,d)}function g(d,l,a,i,t){if(l.subarray&&d.subarray){d.set(l.subarray(a,a+i),t);return}for(var o=0;o<i;o++)d[t+o]=l[a+o]}function S(d){var l,a,i,t,o,e;for(i=0,l=0,a=d.length;l<a;l++)i+=d[l].length;for(e=new Uint8Array(i),t=0,l=0,a=d.length;l<a;l++)o=d[l],e.set(o,t),t+=o.length;return e}var m=Uint8Array;D.Buf8=m;var p=Uint16Array;D.Buf16=p;var f=Int32Array;D.Buf32=f},"6D9b":function(R,D,n){},"6GrX":function(R,D,n){var y=n("mFDi"),g=n("Xnb7"),S=n("bYtY"),m=S.getContext,p=S.extend,f=S.retrieve2,d=S.retrieve3,l=S.trim,a={},i=0,t=5e3,o=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",u={};function r(X,F){u[X]=F}function s(X,F){F=F||e;var j=X+":"+F;if(a[j])return a[j];for(var K=(X+"").split(`
`),z=0,V=0,Q=K.length;V<Q;V++)z=Math.max(I(K[V],F).width,z);return i>t&&(i=0,a={}),i++,a[j]=z,z}function c(X,F,j,K,z,V,Q,G){return Q?v(X,F,j,K,z,V,Q,G):h(X,F,j,K,z,V,G)}function h(X,F,j,K,z,V,Q){var G=k(X,F,z,V,Q),te=s(X,F);z&&(te+=z[1]+z[3]);var q=G.outerHeight,se=A(0,te,j),re=b(0,q,K),we=new y(se,re,te,q);return we.lineHeight=G.lineHeight,we}function v(X,F,j,K,z,V,Q,G){var te=M(X,{rich:Q,truncate:G,font:F,textAlign:j,textPadding:z,textLineHeight:V}),q=te.outerWidth,se=te.outerHeight,re=A(0,q,j),we=b(0,se,K);return new y(re,we,q,se)}function A(X,F,j){return j==="right"?X-=F:j==="center"&&(X-=F/2),X}function b(X,F,j){return j==="middle"?X-=F/2:j==="bottom"&&(X-=F),X}function x(X,F,j){var K=F.textPosition,z=F.textDistance,V=j.x,Q=j.y;z=z||0;var G=j.height,te=j.width,q=G/2,se="left",re="top";switch(K){case"left":V-=z,Q+=q,se="right",re="middle";break;case"right":V+=z+te,Q+=q,re="middle";break;case"top":V+=te/2,Q-=z,se="center",re="bottom";break;case"bottom":V+=te/2,Q+=G+z,se="center";break;case"inside":V+=te/2,Q+=q,se="center",re="middle";break;case"insideLeft":V+=z,Q+=q,re="middle";break;case"insideRight":V+=te-z,Q+=q,se="right",re="middle";break;case"insideTop":V+=te/2,Q+=z,se="center";break;case"insideBottom":V+=te/2,Q+=G-z,se="center",re="bottom";break;case"insideTopLeft":V+=z,Q+=z;break;case"insideTopRight":V+=te-z,Q+=z,se="right";break;case"insideBottomLeft":V+=z,Q+=G-z,re="bottom";break;case"insideBottomRight":V+=te-z,Q+=G-z,se="right",re="bottom";break}return X=X||{},X.x=V,X.y=Q,X.textAlign=se,X.textVerticalAlign=re,X}function E(X,F,j){var K={textPosition:X,textDistance:j};return x({},K,F)}function T(X,F,j,K,z){if(!F)return"";var V=(X+"").split(`
`);z=_(F,j,K,z);for(var Q=0,G=V.length;Q<G;Q++)V[Q]=C(V[Q],z);return V.join(`
`)}function _(X,F,j,K){K=p({},K),K.font=F;var j=f(j,"...");K.maxIterations=f(K.maxIterations,2);var z=K.minChar=f(K.minChar,0);K.cnCharWidth=s("\u56FD",F);var V=K.ascCharWidth=s("a",F);K.placeholder=f(K.placeholder,"");for(var Q=X=Math.max(0,X-1),G=0;G<z&&Q>=V;G++)Q-=V;var te=s(j,F);return te>Q&&(j="",te=0),Q=X-te,K.ellipsis=j,K.ellipsisWidth=te,K.contentWidth=Q,K.containerWidth=X,K}function C(X,F){var j=F.containerWidth,K=F.font,z=F.contentWidth;if(!j)return"";var V=s(X,K);if(V<=j)return X;for(var Q=0;;Q++){if(V<=z||Q>=F.maxIterations){X+=F.ellipsis;break}var G=Q===0?w(X,z,F.ascCharWidth,F.cnCharWidth):V>0?Math.floor(X.length*z/V):0;X=X.substr(0,G),V=s(X,K)}return X===""&&(X=F.placeholder),X}function w(X,F,j,K){for(var z=0,V=0,Q=X.length;V<Q&&z<F;V++){var G=X.charCodeAt(V);z+=0<=G&&G<=127?j:K}return V}function O(X){return s("\u56FD",X)}function I(X,F){return u.measureText(X,F)}u.measureText=function(X,F){var j=m();return j.font=F||e,j.measureText(X)};function k(X,F,j,K,z){X!=null&&(X+="");var V=f(K,O(F)),Q=X?X.split(`
`):[],G=Q.length*V,te=G,q=!0;if(j&&(te+=j[0]+j[2]),X&&z){q=!1;var se=z.outerHeight,re=z.outerWidth;if(se!=null&&te>se)X="",Q=[];else if(re!=null)for(var we=_(re-(j?j[1]+j[3]:0),F,z.ellipsis,{minChar:z.minChar,placeholder:z.placeholder}),Oe=0,Me=Q.length;Oe<Me;Oe++)Q[Oe]=C(Q[Oe],we)}return{lines:Q,height:G,outerHeight:te,lineHeight:V,canCacheByTextString:q}}function M(X,F){var j={lines:[],width:0,height:0};if(X!=null&&(X+=""),!X)return j;for(var K=o.lastIndex=0,z;(z=o.exec(X))!=null;){var V=z.index;V>K&&U(j,X.substring(K,V)),U(j,z[2],z[1]),K=o.lastIndex}K<X.length&&U(j,X.substring(K,X.length));var Q=j.lines,G=0,te=0,q=[],se=F.textPadding,re=F.truncate,we=re&&re.outerWidth,Oe=re&&re.outerHeight;se&&(we!=null&&(we-=se[1]+se[3]),Oe!=null&&(Oe-=se[0]+se[2]));for(var Me=0;Me<Q.length;Me++){for(var Qe=Q[Me],Ve=0,dt=0,Fe=0;Fe<Qe.tokens.length;Fe++){var ue=Qe.tokens[Fe],et=ue.styleName&&F.rich[ue.styleName]||{},he=ue.textPadding=et.textPadding,J=ue.font=et.font||F.font,Y=ue.textHeight=f(et.textHeight,O(J));if(he&&(Y+=he[0]+he[2]),ue.height=Y,ue.lineHeight=d(et.textLineHeight,F.textLineHeight,Y),ue.textAlign=et&&et.textAlign||F.textAlign,ue.textVerticalAlign=et&&et.textVerticalAlign||"middle",Oe!=null&&G+ue.lineHeight>Oe)return{lines:[],width:0,height:0};ue.textWidth=s(ue.text,J);var $=et.textWidth,de=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")ue.percentWidth=$,q.push(ue),$=0;else{if(de){$=ue.textWidth;var be=et.textBackgroundColor,Te=be&&be.image;Te&&(Te=g.findExistImage(Te),g.isImageReady(Te)&&($=Math.max($,Te.width*Y/Te.height)))}var Be=he?he[1]+he[3]:0;$+=Be;var fe=we!=null?we-dt:null;fe!=null&&fe<$&&(!de||fe<Be?(ue.text="",ue.textWidth=$=0):(ue.text=T(ue.text,fe-Be,J,re.ellipsis,{minChar:re.minChar}),ue.textWidth=s(ue.text,J),$=ue.textWidth+Be))}dt+=ue.width=$,et&&(Ve=Math.max(Ve,ue.lineHeight))}Qe.width=dt,Qe.lineHeight=Ve,G+=Ve,te=Math.max(te,dt)}j.outerWidth=j.width=f(F.textWidth,te),j.outerHeight=j.height=f(F.textHeight,G),se&&(j.outerWidth+=se[1]+se[3],j.outerHeight+=se[0]+se[2]);for(var Me=0;Me<q.length;Me++){var ue=q[Me],xe=ue.percentWidth;ue.width=parseInt(xe,10)/100*te}return j}function U(X,F,j){for(var K=F==="",z=F.split(`
`),V=X.lines,Q=0;Q<z.length;Q++){var G=z[Q],te={styleName:j,text:G,isLineHolder:!G&&!K};if(Q)V.push({tokens:[te]});else{var q=(V[V.length-1]||(V[0]={tokens:[]})).tokens,se=q.length;se===1&&q[0].isLineHolder?q[0]=te:(G||!se||K)&&q.push(te)}}}function P(X){var F=(X.fontSize||X.fontFamily)&&[X.fontStyle,X.fontWeight,(X.fontSize||12)+"px",X.fontFamily||"sans-serif"].join(" ");return F&&l(F)||X.textFont||X.font}D.DEFAULT_FONT=e,D.$override=r,D.getWidth=s,D.getBoundingRect=c,D.adjustTextX=A,D.adjustTextY=b,D.calculateTextPosition=x,D.adjustTextPositionOnRect=E,D.truncateText=T,D.getLineHeight=O,D.measureText=I,D.parsePlainText=k,D.parseRichText=M,D.makeFont=P},"6Hfg":function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("FhB9")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="SwapRightOutlined";var i=m.forwardRef(a);D.default=i},"6Ic6":function(R,D,n){var y=n("bYtY"),g=y.each,S=n("4fz+"),m=n("iRjW"),p=n("Yl7c"),f=n("4NO4"),d=n("IwbS"),l=n("9H2F"),a=l.createTask,i=n("zM3Q"),t=f.makeInner(),o=i();function e(){this.group=new S,this.uid=m.getUID("viewChart"),this.renderTask=a({plan:c,reset:h}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(b,x){},render:function(b,x,E,T){},highlight:function(b,x,E,T){s(b.getData(),T,"emphasis")},downplay:function(b,x,E,T){s(b.getData(),T,"normal")},remove:function(b,x){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var u=e.prototype;u.updateView=u.updateLayout=u.updateVisual=function(b,x,E,T){this.render(b,x,E,T)};function r(b,x,E){if(b&&(b.trigger(x,E),b.isGroup&&!d.isHighDownDispatcher(b)))for(var T=0,_=b.childCount();T<_;T++)r(b.childAt(T),x,E)}function s(b,x,E){var T=f.queryDataIndex(b,x),_=x&&x.highlightKey!=null?d.getHighlightDigit(x.highlightKey):null;T!=null?g(f.normalizeToArray(T),function(C){r(b.getItemGraphicEl(C),E,_)}):b.eachItemGraphicEl(function(C){r(C,E,_)})}p.enableClassExtend(e,["dispose"]),p.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(b,x){t(b).updateMethod=x};function c(b){return o(b.model)}function h(b){var x=b.model,E=b.ecModel,T=b.api,_=b.payload,C=x.pipelineContext.progressiveRender,w=b.view,O=_&&t(_).updateMethod,I=C?"incrementalPrepareRender":O&&w[O]?O:"render";return I!=="render"&&w[I](x,E,T,_),v[I]}var v={incrementalPrepareRender:{progress:function(b,x){x.view.incrementalRender(b,x.model,x.ecModel,x.api,x.payload)}},render:{forceFirstProgress:!0,progress:function(b,x){x.view.render(x.model,x.ecModel,x.api,x.payload)}}},A=e;R.exports=A},"6MrE":function(R,D,n){},"6Qwc":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={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"};D.default=y},"6SEX":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("qWUW"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},"6UJt":function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("v56E"),m=n.n(S),p=n("R9oj"),f=n("5NDa")},"6VBw":function(R,D,n){"use strict";var y=n("VTBJ"),g=n("ODXe"),S=n("rePB"),m=n("Ff2n"),p=n("q1tI"),f=n("TSYQ"),d=n.n(f),l=n("Pw59"),a=n("Qi1f"),i=["icon","className","onClick","style","primaryColor","secondaryColor"],t={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function o(b){var x=b.primaryColor,E=b.secondaryColor;t.primaryColor=x,t.secondaryColor=E||Object(a.b)(x),t.calculated=!!E}function e(){return Object(y.a)({},t)}var u=function(x){var E=x.icon,T=x.className,_=x.onClick,C=x.style,w=x.primaryColor,O=x.secondaryColor,I=Object(m.a)(x,i),k=t;if(w&&(k={primaryColor:w,secondaryColor:O||Object(a.b)(w)}),Object(a.f)(),Object(a.g)(Object(a.c)(E),"icon should be icon definiton, but got ".concat(E)),!Object(a.c)(E))return null;var M=E;return M&&typeof M.icon=="function"&&(M=Object(y.a)(Object(y.a)({},M),{},{icon:M.icon(k.primaryColor,k.secondaryColor)})),Object(a.a)(M.icon,"svg-".concat(M.name),Object(y.a)({className:T,onClick:_,style:C,"data-icon":M.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};u.displayName="IconReact",u.getTwoToneColors=e,u.setTwoToneColors=o;var r=u;function s(b){var x=Object(a.d)(b),E=Object(g.a)(x,2),T=E[0],_=E[1];return r.setTwoToneColors({primaryColor:T,secondaryColor:_})}function c(){var b=r.getTwoToneColors();return b.calculated?[b.primaryColor,b.secondaryColor]:b.primaryColor}var h=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];s("#1890ff");var v=p.forwardRef(function(b,x){var E,T=b.className,_=b.icon,C=b.spin,w=b.rotate,O=b.tabIndex,I=b.onClick,k=b.twoToneColor,M=Object(m.a)(b,h),U=p.useContext(l.a),P=U.prefixCls,X=P===void 0?"anticon":P,F=U.rootClassName,j=d()(F,X,(E={},Object(S.a)(E,"".concat(X,"-").concat(_.name),!!_.name),Object(S.a)(E,"".concat(X,"-spin"),!!C||_.name==="loading"),E),T),K=O;K===void 0&&I&&(K=-1);var z=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,V=Object(a.d)(k),Q=Object(g.a)(V,2),G=Q[0],te=Q[1];return p.createElement("span",Object(y.a)(Object(y.a)({role:"img","aria-label":_.name},M),{},{ref:x,tabIndex:K,onClick:I,className:j}),p.createElement(r,{icon:_,primaryColor:G,secondaryColor:te,style:z}))});v.displayName="AntdIcon",v.getTwoToneColor=c,v.setTwoToneColor=s;var A=D.a=v},"6cGi":function(R,D,n){"use strict";n.d(D,"a",function(){return f});var y=n("ODXe"),g=n("mBDr"),S=n("TNol"),m=n("dm2S");function p(d){return d!==void 0}function f(d,l){var a=l||{},i=a.defaultValue,t=a.value,o=a.onChange,e=a.postState,u=Object(m.a)(function(){return p(t)?t:p(i)?typeof i=="function"?i():i:typeof d=="function"?d():d}),r=Object(y.a)(u,2),s=r[0],c=r[1],h=t!==void 0?t:s,v=e?e(h):h,A=Object(g.a)(o),b=Object(m.a)([h]),x=Object(y.a)(b,2),E=x[0],T=x[1];Object(S.b)(function(){var C=E[0];s!==C&&A(s,C)},[E]),Object(S.b)(function(){p(t)||c(t)},[t]);var _=Object(g.a)(function(C,w){c(C,w),T([h],w)});return[v,_]}},"6fms":function(R,D,n){var y=n("SUKs"),g=n("06Qe"),S=n("bYtY"),m=S.each;function p(a){return parseInt(a,10)}function f(a,i){g.initVML(),this.root=a,this.storage=i;var t=document.createElement("div"),o=document.createElement("div");t.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",o.style.cssText="position:absolute;left:0;top:0;",a.appendChild(t),this._vmlRoot=o,this._vmlViewport=t,this.resize();var e=i.delFromStorage,u=i.addToStorage;i.delFromStorage=function(r){e.call(i,r),r&&(r.onRemove&&r.onRemove(o))},i.addToStorage=function(r){r.onAdd&&r.onAdd(o),u.call(i,r)},this._firstPaint=!0}f.prototype={constructor:f,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},refresh:function(){var i=this.storage.getDisplayList(!0,!0);this._paintList(i)},_paintList:function(i){for(var t=this._vmlRoot,o=0;o<i.length;o++){var e=i[o];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(t),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(t),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,t),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(i,t){var i=i==null?this._getWidth():i,t=t==null?this._getHeight():t;if(this._width!==i||this._height!==t){this._width=i,this._height=t;var o=this._vmlViewport.style;o.width=i+"px",o.height=t+"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 i=this.root,t=i.currentStyle;return(i.clientWidth||p(t.width))-p(t.paddingLeft)-p(t.paddingRight)|0},_getHeight:function(){var i=this.root,t=i.currentStyle;return(i.clientHeight||p(t.height))-p(t.paddingTop)-p(t.paddingBottom)|0}};function d(a){return function(){y('In IE8.0 VML mode painter not support method "'+a+'"')}}m(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(a){f.prototype[a]=d(a)});var l=f;R.exports=l},"6ner":function(R,D,n){"use strict";var y=n("VTBJ"),g=n("1OyB"),S=n("vuIU"),m=n("Ji7U"),p=n("LK+K"),f=n("q1tI"),d=n.n(f),l=n("m+aA"),a=n("Zm9Q"),i=n("Kwbf"),t=n("c+Xe"),o=n("bdgK"),e="rc-observer-key",u=function(r){Object(m.a)(c,r);var s=Object(p.a)(c);function c(){var h;return Object(g.a)(this,c),h=s.apply(this,arguments),h.resizeObserver=null,h.childNode=null,h.currentElement=null,h.state={width:0,height:0,offsetHeight:0,offsetWidth:0},h.onResize=function(v){var A=h.props.onResize,b=v[0].target,x=b.getBoundingClientRect(),E=x.width,T=x.height,_=b.offsetWidth,C=b.offsetHeight,w=Math.floor(E),O=Math.floor(T);if(h.state.width!==w||h.state.height!==O||h.state.offsetWidth!==_||h.state.offsetHeight!==C){var I={width:w,height:O,offsetWidth:_,offsetHeight:C};h.setState(I),A&&Promise.resolve().then(function(){A(Object(y.a)(Object(y.a)({},I),{},{offsetWidth:_,offsetHeight:C}))})}},h.setChildNode=function(v){h.childNode=v},h}return Object(S.a)(c,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var v=this.props.disabled;if(v){this.destroyObserver();return}var A=Object(l.a)(this.childNode||this),b=A!==this.currentElement;b&&(this.destroyObserver(),this.currentElement=A),!this.resizeObserver&&A&&(this.resizeObserver=new o.default(this.onResize),this.resizeObserver.observe(A))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var v=this.props.children,A=Object(a.a)(v);if(A.length>1)Object(i.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(A.length===0)return Object(i.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var b=A[0];if(f.isValidElement(b)&&Object(t.c)(b)){var x=b.ref;A[0]=f.cloneElement(b,{ref:Object(t.a)(x,this.setChildNode)})}return A.length===1?A[0]:A.map(function(E,T){return!f.isValidElement(E)||"key"in E&&E.key!==null?E:f.cloneElement(E,{key:"".concat(e,"-").concat(T)})})}}]),c}(f.Component);u.displayName="ResizeObserver",D.a=u},"6r85":function(R,D,n){var y=n("bYtY");function g(S){if(!S||!y.isArray(S.series))return;y.each(S.series,function(m){y.isObject(m)&&m.type==="k"&&(m.type="candlestick")})}R.exports=g},"6sVZ":function(R,D){var n=Object.prototype;function y(g){var S=g&&g.constructor,m=typeof S=="function"&&S.prototype||n;return g===m}R.exports=y},"6uqw":function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("ItGF"),m=n("YOMW"),p=n("XxSj"),f=n("K4ya"),d=n("4NO4"),l=n("OELB"),a=p.mapVisual,i=p.eachVisual,t=g.isArray,o=g.each,e=l.asc,u=l.linearMap,r=g.noop,s=y.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(h,v,A){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(h,A)},optionUpdated:function(h,v){var A=this.option;S.canvasSupported||(A.realtime=!1),!v&&f.replaceVisualOption(A,h,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(h){var v=this.stateList;h=g.bind(h,this),this.controllerVisuals=f.createVisualMappings(this.option.controller,v,h),this.targetVisuals=f.createVisualMappings(this.option.target,v,h)},getTargetSeriesIndices:function(){var h=this.option.seriesIndex,v=[];return h==null||h==="all"?this.ecModel.eachSeries(function(A,b){v.push(b)}):v=d.normalizeToArray(h),v},eachTargetSeries:function(h,v){g.each(this.getTargetSeriesIndices(),function(A){h.call(v,this.ecModel.getSeriesByIndex(A))},this)},isTargetSeries:function(h){var v=!1;return this.eachTargetSeries(function(A){A===h&&(v=!0)}),v},formatValueText:function(h,v,A){var b=this.option,x=b.precision,E=this.dataBound,T=b.formatter,_,C;if(A=A||["<",">"],g.isArray(h)&&(h=h.slice(),_=!0),C=v?h:_?[w(h[0]),w(h[1])]:w(h),g.isString(T))return T.replace("{value}",_?C[0]:C).replace("{value2}",_?C[1]:C);if(g.isFunction(T))return _?T(h[0],h[1]):T(h);if(_)return h[0]===E[0]?A[0]+" "+C[1]:h[1]===E[1]?A[1]+" "+C[0]:C[0]+" - "+C[1];return C;function w(O){return O===E[0]?"min":O===E[1]?"max":(+O).toFixed(Math.min(x,20))}},resetExtent:function(){var h=this.option,v=e([h.min,h.max]);this._dataExtent=v},getDataDimension:function(h){var v=this.option.dimension,A=h.dimensions;if(v==null&&!A.length)return;if(v!=null)return h.getDimension(v);for(var b=h.dimensions,x=b.length-1;x>=0;x--){var E=b[x],T=h.getDimensionInfo(E);if(!T.isCalculationCoord)return E}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var h=this.ecModel,v=this.option,A={inRange:v.inRange,outOfRange:v.outOfRange},b=v.target||(v.target={}),x=v.controller||(v.controller={});g.merge(b,A),g.merge(x,A);var E=this.isCategory();T.call(this,b),T.call(this,x),_.call(this,b,"inRange","outOfRange"),C.call(this,x);function T(w){t(v.color)&&!w.inRange&&(w.inRange={color:v.color.slice().reverse()}),w.inRange=w.inRange||{color:h.get("gradientColor")},o(this.stateList,function(O){var I=w[O];if(g.isString(I)){var k=m.get(I,"active",E);k?(w[O]={},w[O][I]=k):delete w[O]}},this)}function _(w,O,I){var k=w[O],M=w[I];k&&!M&&(M=w[I]={},o(k,function(U,P){if(!p.isValidType(P))return;var X=m.get(P,"inactive",E);X!=null&&(M[P]=X,P==="color"&&!M.hasOwnProperty("opacity")&&!M.hasOwnProperty("colorAlpha")&&(M.opacity=[0,0]))}))}function C(w){var O=(w.inRange||{}).symbol||(w.outOfRange||{}).symbol,I=(w.inRange||{}).symbolSize||(w.outOfRange||{}).symbolSize,k=this.get("inactiveColor");o(this.stateList,function(M){var U=this.itemSize,P=w[M];P||(P=w[M]={color:E?k:[k]}),P.symbol==null&&(P.symbol=O&&g.clone(O)||(E?"roundRect":["roundRect"])),P.symbolSize==null&&(P.symbolSize=I&&g.clone(I)||(E?U[0]:[U[0],U[0]])),P.symbol=a(P.symbol,function(j){return j==="none"||j==="square"?"roundRect":j});var X=P.symbolSize;if(X!=null){var F=-Infinity;i(X,function(j){j>F&&(F=j)}),P.symbolSize=a(X,function(j){return u(j,[0,F],[0,U[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:r,getValueState:r,getVisualMeta:r}),c=s;R.exports=c},"6usn":function(R,D,n){var y=n("bYtY");function g(m,p){return y.map(["Radius","Angle"],function(f,d){var l=this["get"+f+"Axis"](),a=p[d],i=m[d]/2,t="dataTo"+f,o=l.type==="category"?l.getBandWidth():Math.abs(l[t](a-i)-l[t](a+i));return f==="Angle"&&(o=o*Math.PI/180),o},this)}function S(m){var p=m.getRadiusAxis(),f=m.getAngleAxis(),d=p.getExtent();return d[0]>d[1]&&d.reverse(),{coordSys:{type:"polar",cx:m.cx,cy:m.cy,r:d[1],r0:d[0]},api:{coord:y.bind(function(l){var a=p.dataToRadius(l[0]),i=f.dataToAngle(l[1]),t=m.coordToPoint([a,i]);return t.push(a,i*Math.PI/180),t}),size:y.bind(g,m)}}}R.exports=S},"6xvX":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("V7ic"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},"711d":function(R,D){function n(y){return function(g){return g==null?void 0:g[y]}}R.exports=n},"72pK":function(R,D){function n(S,m,p,f,d,l){S=S||0;var a=p[1]-p[0];if(d!=null&&(d=g(d,[0,a])),l!=null&&(l=Math.max(l,d!=null?d:0)),f==="all"){var i=Math.abs(m[1]-m[0]);i=g(i,[0,a]),d=l=g(i,[d,l]),f=0}m[0]=g(m[0],p),m[1]=g(m[1],p);var t=y(m,f);m[f]+=S;var o=d||0,e=p.slice();t.sign<0?e[0]+=o:e[1]-=o,m[f]=g(m[f],e);var u=y(m,f);d!=null&&(u.sign!==t.sign||u.span<d)&&(m[1-f]=m[f]+t.sign*d);var u=y(m,f);return l!=null&&u.span>l&&(m[1-f]=m[f]+u.sign*l),m}function y(S,m){var p=S[m]-S[1-m];return{span:Math.abs(p),sign:p>0?-1:p<0?1:m?-1:1}}function g(S,m){return Math.min(m[1]!=null?m[1]:Infinity,Math.max(m[0]!=null?m[0]:-Infinity,S))}R.exports=n},"75ce":function(R,D,n){var y=n("ProS");n("IXuL"),n("8X+K");var g=n("f5Yq"),S=n("h8O9"),m=n("/d5a");n("Ae16"),y.registerVisual(g("line","circle","line")),y.registerLayout(S("line")),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,m("line"))},"75ev":function(R,D,n){var y=n("ProS");n("IWNH"),n("bNin"),n("v5uJ");var g=n("f5Yq"),S=n("yik8");y.registerVisual(g("tree","circle")),y.registerLayout(S)},"77Zs":function(R,D,n){var y=n("Xi7e");function g(){this.__data__=new y,this.size=0}R.exports=g},"7AJT":function(R,D,n){var y=n("bYtY"),g=n("hM6l"),S=function(p,f,d,l,a){g.call(this,p,f,d),this.type=l||"value",this.position=a||"bottom"};S.prototype={constructor:S,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var p=this.position;return p==="top"||p==="bottom"},getGlobalExtent:function(p){var f=this.getExtent();return f[0]=this.toGlobalCoord(f[0]),f[1]=this.toGlobalCoord(f[1]),p&&f[0]>f[1]&&f.reverse(),f},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(p,f){return this.coordToData(this.toLocalCoord(p[this.dim==="x"?0:1]),f)},toLocalCoord:null,toGlobalCoord:null},y.inherits(S,g);var m=S;R.exports=m},"7Cbv":function(R,D,n){"use strict";var y=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),g=new Uint8Array(16);function S(){if(!y)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(g)}var m=/^(?:[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 p(e){return typeof e=="string"&&m.test(e)}for(var f=p,d=[],l=0;l<256;++l)d.push((l+256).toString(16).substr(1));function a(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(d[e[u+0]]+d[e[u+1]]+d[e[u+2]]+d[e[u+3]]+"-"+d[e[u+4]]+d[e[u+5]]+"-"+d[e[u+6]]+d[e[u+7]]+"-"+d[e[u+8]]+d[e[u+9]]+"-"+d[e[u+10]]+d[e[u+11]]+d[e[u+12]]+d[e[u+13]]+d[e[u+14]]+d[e[u+15]]).toLowerCase();if(!f(r))throw TypeError("Stringified UUID is invalid");return r}var i=a;function t(e,u,r){e=e||{};var s=e.random||(e.rng||S)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,u){r=r||0;for(var c=0;c<16;++c)u[r+c]=s[c];return u}return i(s)}var o=D.a=t},"7DRL":function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=S.createHashMap,p=S.isString,f=S.isArray,d=S.each,l=S.assert,a=n("MEGo"),i=a.parseXML,t=m(),o={registerMap:function(u,r,s){var c;return f(r)?c=r:r.svg?c=[{type:"svg",source:r.svg,specialAreas:r.specialAreas}]:(r.geoJson&&!r.features&&(s=r.specialAreas,r=r.geoJson),c=[{type:"geoJSON",source:r,specialAreas:s}]),d(c,function(h){var v=h.type;v==="geoJson"&&(v=h.type="geoJSON");var A=e[v];A(h)}),t.set(u,c)},retrieveMap:function(u){return t.get(u)}},e={geoJSON:function(u){var r=u.source;u.geoJSON=p(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r},svg:function(u){u.svgXML=i(u.source)}};R.exports=o},"7G+c":function(R,D,n){var y=n("bYtY"),g=y.createHashMap,S=y.isTypedArray,m=n("Yl7c"),p=m.enableClassCheck,f=n("k9D9"),d=f.SOURCE_FORMAT_ORIGINAL,l=f.SERIES_LAYOUT_BY_COLUMN,a=f.SOURCE_FORMAT_UNKNOWN,i=f.SOURCE_FORMAT_TYPED_ARRAY,t=f.SOURCE_FORMAT_KEYED_COLUMNS;function o(u){this.fromDataset=u.fromDataset,this.data=u.data||(u.sourceFormat===t?{}:[]),this.sourceFormat=u.sourceFormat||a,this.seriesLayoutBy=u.seriesLayoutBy||l,this.dimensionsDefine=u.dimensionsDefine,this.encodeDefine=u.encodeDefine&&g(u.encodeDefine),this.startIndex=u.startIndex||0,this.dimensionsDetectCount=u.dimensionsDetectCount}o.seriesDataToSource=function(u){return new o({data:u,sourceFormat:S(u)?i:d,fromDataset:!1})},p(o);var e=o;R.exports=e},"7GkX":function(R,D,n){var y=n("b80T"),g=n("A90E"),S=n("MMmD");function m(p){return S(p)?y(p):g(p)}R.exports=m},"7Kak":function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("KPFz"),m=n.n(S)},"7Phj":function(R,D,n){var y=n("bYtY"),g=n("OELB"),S=g.parsePercent,m=y.each;function p(a){var i=f(a);m(i,function(t){var o=t.seriesModels;if(!o.length)return;d(t),m(o,function(e,u){l(e,t.boxOffsetList[u],t.boxWidthList[u])})})}function f(a){var i=[],t=[];return a.eachSeriesByType("boxplot",function(o){var e=o.getBaseAxis(),u=y.indexOf(t,e);u<0&&(u=t.length,t[u]=e,i[u]={axis:e,seriesModels:[]}),i[u].seriesModels.push(o)}),i}function d(a){var i,t=a.axis,o=a.seriesModels,e=o.length,u=a.boxWidthList=[],r=a.boxOffsetList=[],s=[],c;if(t.type==="category")c=t.getBandWidth();else{var h=0;m(o,function(E){h=Math.max(h,E.getData().count())}),i=t.getExtent(),Math.abs(i[1]-i[0])/h}m(o,function(E){var T=E.get("boxWidth");y.isArray(T)||(T=[T,T]),s.push([S(T[0],c)||0,S(T[1],c)||0])});var v=c*.8-2,A=v/e*.3,b=(v-A*(e-1))/e,x=b/2-v/2;m(o,function(E,T){r.push(x),x+=A+b,u.push(Math.min(Math.max(b,s[T][0]),s[T][1]))})}function l(a,i,t){var o=a.coordinateSystem,e=a.getData(),u=t/2,r=a.get("layout")==="horizontal"?0:1,s=1-r,c=["x","y"],h=e.mapDimension(c[r]),v=e.mapDimension(c[s],!0);if(h==null||v.length<5)return;for(var A=0;A<e.count();A++){var b=e.get(h,A),x=O(b,v[2],A),E=O(b,v[0],A),T=O(b,v[1],A),_=O(b,v[3],A),C=O(b,v[4],A),w=[];I(w,T,0),I(w,_,1),w.push(E,T,C,_),k(w,E),k(w,C),k(w,x),e.setItemLayout(A,{initBaseline:x[s],ends:w})}function O(M,U,P){var X=e.get(U,P),F=[];F[r]=M,F[s]=X;var j;return isNaN(M)||isNaN(X)?j=[NaN,NaN]:(j=o.dataToPoint(F),j[r]+=i),j}function I(M,U,P){var X=U.slice(),F=U.slice();X[r]+=u,F[r]-=u,P?M.push(X,F):M.push(F,X)}function k(M,U){var P=U.slice(),X=U.slice();P[r]-=u,X[r]+=u,M.push(P,X)}}R.exports=p},"7SHv":function(R,D,n){var y=n("LPTA"),g=y.devicePixelRatio,S=n("bYtY"),m=n("SUKs"),p=n("mFDi"),f=n("BPZU"),d=n("Xmg4"),l=n("mLcG"),a=n("Dagg"),i=n("ItGF"),t=1e5,o=314159,e=.01,u=.001;function r(_){return parseInt(_,10)}function s(_){return _?_.__builtin__?!0:!(typeof _.resize!="function"||typeof _.refresh!="function"):!1}var c=new p(0,0,0,0),h=new p(0,0,0,0);function v(_,C,w){return c.copy(_.getBoundingRect()),_.transform&&c.applyTransform(_.transform),h.width=C,h.height=w,!c.intersect(h)}function A(_,C){if(_===C)return!1;if(!_||!C||_.length!==C.length)return!0;for(var w=0;w<_.length;w++)if(_[w]!==C[w])return!0;return!1}function b(_,C){for(var w=0;w<_.length;w++){var O=_[w];O.setTransform(C),C.beginPath(),O.buildPath(C,O.shape),C.clip(),O.restoreTransform(C)}}function x(_,C){var w=document.createElement("div");return w.style.cssText=["position:relative","width:"+_+"px","height:"+C+"px","padding:0","margin:0","border-width:0"].join(";")+";",w}var E=function(C,w,O){this.type="canvas";var I=!C.nodeName||C.nodeName.toUpperCase()==="CANVAS";this._opts=O=S.extend({},O||{}),this.dpr=O.devicePixelRatio||g,this._singleCanvas=I,this.root=C;var k=C.style;k&&(k["-webkit-tap-highlight-color"]="transparent",k["-webkit-user-select"]=k["user-select"]=k["-webkit-touch-callout"]="none",C.innerHTML=""),this.storage=w;var M=this._zlevelList=[],U=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,I){var X=C.width,F=C.height;O.width!=null&&(X=O.width),O.height!=null&&(F=O.height),this.dpr=O.devicePixelRatio||1,C.width=X*this.dpr,C.height=F*this.dpr,this._width=X,this._height=F;var j=new d(C,this,this.dpr);j.__builtin__=!0,j.initContext(),U[o]=j,j.zlevel=o,M.push(o),this._domRoot=C}else{this._width=this._getSize(0),this._height=this._getSize(1);var P=this._domRoot=x(this._width,this._height);C.appendChild(P)}this._hoverlayer=null,this._hoverElements=[]};E.prototype={constructor:E,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var C=this.getViewportRoot();if(C)return{offsetLeft:C.offsetLeft||0,offsetTop:C.offsetTop||0}},refresh:function(C){var w=this.storage.getDisplayList(!0),O=this._zlevelList;this._redrawId=Math.random(),this._paintList(w,C,this._redrawId);for(var I=0;I<O.length;I++){var k=O[I],M=this._layers[k];if(!M.__builtin__&&M.refresh){var U=I===0?this._backgroundColor:null;M.refresh(U)}}return this.refreshHover(),this},addHover:function(C,w){if(C.__hoverMir)return;var O=new C.constructor({style:C.style,shape:C.shape,z:C.z,z2:C.z2,silent:C.silent});return O.__from=C,C.__hoverMir=O,w&&O.setStyle(w),this._hoverElements.push(O),O},removeHover:function(C){var w=C.__hoverMir,O=this._hoverElements,I=S.indexOf(O,w);I>=0&&O.splice(I,1),C.__hoverMir=null},clearHover:function(C){for(var w=this._hoverElements,O=0;O<w.length;O++){var I=w[O].__from;I&&(I.__hoverMir=null)}w.length=0},refreshHover:function(){var C=this._hoverElements,w=C.length,O=this._hoverlayer;if(O&&O.clear(),!w)return;f(C,this.storage.displayableSortFunc),O||(O=this._hoverlayer=this.getLayer(t));var I={};O.ctx.save();for(var k=0;k<w;){var M=C[k],U=M.__from;if(!(U&&U.__zr)){C.splice(k,1),U.__hoverMir=null,w--;continue}k++,U.invisible||(M.transform=U.transform,M.invTransform=U.invTransform,M.__clipPaths=U.__clipPaths,this._doPaintEl(M,O,!0,I))}O.ctx.restore()},getHoverLayer:function(){return this.getLayer(t)},_paintList:function(C,w,O){if(this._redrawId!==O)return;w=w||!1,this._updateLayerStatus(C);var I=this._doPaintList(C,w);if(this._needsManuallyCompositing&&this._compositeManually(),!I){var k=this;l(function(){k._paintList(C,w,O)})}},_compositeManually:function(){var C=this.getLayer(o).ctx,w=this._domRoot.width,O=this._domRoot.height;C.clearRect(0,0,w,O),this.eachBuiltinLayer(function(I){I.virtual&&C.drawImage(I.dom,0,0,w,O)})},_doPaintList:function(C,w){for(var O=[],I=0;I<this._zlevelList.length;I++){var k=this._zlevelList[I],M=this._layers[k];M.__builtin__&&M!==this._hoverlayer&&(M.__dirty||w)&&O.push(M)}for(var U=!0,P=0;P<O.length;P++){var M=O[P],X=M.ctx,F={};X.save();var j=w?M.__startIndex:M.__drawIndex,K=!w&&M.incremental&&Date.now,z=K&&Date.now(),V=M.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(M.__startIndex===M.__endIndex)M.clear(!1,V);else if(j===M.__startIndex){var Q=C[j];(!Q.incremental||!Q.notClear||w)&&M.clear(!1,V)}j===-1&&(console.error("For some unknown reason. drawIndex is -1"),j=M.__startIndex);for(var G=j;G<M.__endIndex;G++){var te=C[G];if(this._doPaintEl(te,M,w,F),te.__dirty=te.__dirtyText=!1,K){var q=Date.now()-z;if(q>15)break}}M.__drawIndex=G,M.__drawIndex<M.__endIndex&&(U=!1),F.prevElClipPaths&&X.restore(),X.restore()}return i.wxa&&S.each(this._layers,function(se){se&&se.ctx&&se.ctx.draw&&se.ctx.draw()}),U},_doPaintEl:function(C,w,O,I){var k=w.ctx,M=C.transform;if((w.__dirty||O)&&!C.invisible&&C.style.opacity!==0&&!(M&&!M[0]&&!M[3])&&!(C.culling&&v(C,this._width,this._height))){var U=C.__clipPaths,P=I.prevElClipPaths;(!P||A(U,P))&&(P&&(k.restore(),I.prevElClipPaths=null,I.prevEl=null),U&&(k.save(),b(U,k),I.prevElClipPaths=U)),C.beforeBrush&&C.beforeBrush(k),C.brush(k,I.prevEl||null),I.prevEl=C,C.afterBrush&&C.afterBrush(k)}},getLayer:function(C,w){this._singleCanvas&&!this._needsManuallyCompositing&&(C=o);var O=this._layers[C];return O||(O=new d("zr_"+C,this,this.dpr),O.zlevel=C,O.__builtin__=!0,this._layerConfig[C]?S.merge(O,this._layerConfig[C],!0):this._layerConfig[C-e]&&S.merge(O,this._layerConfig[C-e],!0),w&&(O.virtual=w),this.insertLayer(C,O),O.initContext()),O},insertLayer:function(C,w){var O=this._layers,I=this._zlevelList,k=I.length,M=null,U=-1,P=this._domRoot;if(O[C]){m("ZLevel "+C+" has been used already");return}if(!s(w)){m("Layer of zlevel "+C+" is not valid");return}if(k>0&&C>I[0]){for(U=0;U<k-1&&!(I[U]<C&&I[U+1]>C);U++);M=O[I[U]]}if(I.splice(U+1,0,C),O[C]=w,!w.virtual)if(M){var X=M.dom;X.nextSibling?P.insertBefore(w.dom,X.nextSibling):P.appendChild(w.dom)}else P.firstChild?P.insertBefore(w.dom,P.firstChild):P.appendChild(w.dom)},eachLayer:function(C,w){var O=this._zlevelList,I,k;for(k=0;k<O.length;k++)I=O[k],C.call(w,this._layers[I],I)},eachBuiltinLayer:function(C,w){var O=this._zlevelList,I,k,M;for(M=0;M<O.length;M++)k=O[M],I=this._layers[k],I.__builtin__&&C.call(w,I,k)},eachOtherLayer:function(C,w){var O=this._zlevelList,I,k,M;for(M=0;M<O.length;M++)k=O[M],I=this._layers[k],I.__builtin__||C.call(w,I,k)},getLayers:function(){return this._layers},_updateLayerStatus:function(C){this.eachBuiltinLayer(function(F,j){F.__dirty=F.__used=!1});function w(F){k&&(k.__endIndex!==F&&(k.__dirty=!0),k.__endIndex=F)}if(this._singleCanvas)for(var O=1;O<C.length;O++){var I=C[O];if(I.zlevel!==C[O-1].zlevel||I.incremental){this._needsManuallyCompositing=!0;break}}for(var k=null,M=0,U,O=0;O<C.length;O++){var I=C[O],P=I.zlevel,X;U!==P&&(U=P,M=0),I.incremental?(X=this.getLayer(P+u,this._needsManuallyCompositing),X.incremental=!0,M=1):X=this.getLayer(P+(M>0?e:0),this._needsManuallyCompositing),X.__builtin__||m("ZLevel "+P+" has been used by unkown layer "+X.id),X!==k&&(X.__used=!0,X.__startIndex!==O&&(X.__dirty=!0),X.__startIndex=O,X.incremental?X.__drawIndex=-1:X.__drawIndex=O,w(O),k=X),I.__dirty&&(X.__dirty=!0,X.incremental&&X.__drawIndex<0&&(X.__drawIndex=O))}w(O),this.eachBuiltinLayer(function(F,j){!F.__used&&F.getElementCount()>0&&(F.__dirty=!0,F.__startIndex=F.__endIndex=F.__drawIndex=0),F.__dirty&&F.__drawIndex<0&&(F.__drawIndex=F.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(C){C.clear()},setBackgroundColor:function(C){this._backgroundColor=C},configLayer:function(C,w){if(w){var O=this._layerConfig;O[C]?S.merge(O[C],w,!0):O[C]=w;for(var I=0;I<this._zlevelList.length;I++){var k=this._zlevelList[I];if(k===C||k===C+e){var M=this._layers[k];S.merge(M,O[C],!0)}}}},delLayer:function(C){var w=this._layers,O=this._zlevelList,I=w[C];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete w[C],O.splice(S.indexOf(O,C),1)},resize:function(C,w){if(this._domRoot.style){var O=this._domRoot;O.style.display="none";var I=this._opts;if(C!=null&&(I.width=C),w!=null&&(I.height=w),C=this._getSize(0),w=this._getSize(1),O.style.display="",this._width!==C||w!==this._height){O.style.width=C+"px",O.style.height=w+"px";for(var k in this._layers)this._layers.hasOwnProperty(k)&&this._layers[k].resize(C,w);S.each(this._progressiveLayers,function(M){M.resize(C,w)}),this.refresh(!0)}this._width=C,this._height=w}else{if(C==null||w==null)return;this._width=C,this._height=w,this.getLayer(o).resize(C,w)}return this},clearLayer:function(C){var w=this._layers[C];w&&w.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(C){if(C=C||{},this._singleCanvas&&!this._compositeManually)return this._layers[o].dom;var w=new d("image",this,C.pixelRatio||this.dpr);if(w.initContext(),w.clear(!1,C.backgroundColor||this._backgroundColor),C.pixelRatio<=this.dpr){this.refresh();var O=w.dom.width,I=w.dom.height,k=w.ctx;this.eachLayer(function(F){F.__builtin__?k.drawImage(F.dom,0,0,O,I):F.renderToCanvas&&(w.ctx.save(),F.renderToCanvas(w.ctx),w.ctx.restore())})}else for(var M={},U=this.storage.getDisplayList(!0),P=0;P<U.length;P++){var X=U[P];this._doPaintEl(X,w,!0,M)}return w.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(C){var w=this._opts,O=["width","height"][C],I=["clientWidth","clientHeight"][C],k=["paddingLeft","paddingTop"][C],M=["paddingRight","paddingBottom"][C];if(w[O]!=null&&w[O]!=="auto")return parseFloat(w[O]);var U=this.root,P=document.defaultView.getComputedStyle(U);return(U[I]||r(P[O])||r(U.style[O]))-(r(P[k])||0)-(r(P[M])||0)|0},pathToImage:function(C,w){w=w||this.dpr;var O=document.createElement("canvas"),I=O.getContext("2d"),k=C.getBoundingRect(),M=C.style,U=M.shadowBlur*w,P=M.shadowOffsetX*w,X=M.shadowOffsetY*w,F=M.hasStroke()?M.lineWidth:0,j=Math.max(F/2,-P+U),K=Math.max(F/2,P+U),z=Math.max(F/2,-X+U),V=Math.max(F/2,X+U),Q=k.width+j+K,G=k.height+z+V;O.width=Q*w,O.height=G*w,I.scale(w,w),I.clearRect(0,0,Q,G),I.dpr=w;var te={position:C.position,rotation:C.rotation,scale:C.scale};C.position=[j-k.x,z-k.y],C.rotation=0,C.scale=[1,1],C.updateTransform(),C&&C.brush(I);var q=a,se=new q({style:{x:0,y:0,image:O}});return te.position!=null&&(se.position=C.position=te.position),te.rotation!=null&&(se.rotation=C.rotation=te.rotation),te.scale!=null&&(se.scale=C.scale=te.scale),se}};var T=E;R.exports=T},"7a+S":function(R,D,n){var y=n("bYtY"),g=n("bLfw"),S=n("YXkt"),m=n("4NO4"),p=g.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(d,l,a){this._data,this._names,this.mergeDefaultAndTheme(d,a),this._initData()},mergeOption:function(d){p.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(d){d==null&&(d=this.option.currentIndex);var l=this._data.count();this.option.loop?d=(d%l+l)%l:(d>=l&&(d=l-1),d<0&&(d=0)),this.option.currentIndex=d},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(d){this.option.autoPlay=!!d},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var d=this.option,l=d.data||[],a=d.axisType,i=this._names=[];if(a==="category"){var t=[];y.each(l,function(u,r){var s=m.getDataItemValue(u),c;y.isObject(u)?(c=y.clone(u),c.value=r):c=r,t.push(c),!y.isString(s)&&(s==null||isNaN(s))&&(s=""),i.push(s+"")}),l=t}var o={category:"ordinal",time:"time"}[a]||"number",e=this._data=new S([{name:"value",type:o}],this);e.initData(l,i)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),f=p;R.exports=f},"7aKB":function(R,D,n){var y=n("bYtY"),g=n("6GrX"),S=n("OELB");function m(x){return isNaN(x)?"-":(x=(x+"").split("."),x[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(x.length>1?"."+x[1]:""))}function p(x,E){return x=(x||"").toLowerCase().replace(/-(.)/g,function(T,_){return _.toUpperCase()}),E&&x&&(x=x.charAt(0).toUpperCase()+x.slice(1)),x}var f=y.normalizeCssArray,d=/([&<>"'])/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function a(x){return x==null?"":(x+"").replace(d,function(E,T){return l[T]})}var i=["a","b","c","d","e","f","g"],t=function(x,E){return"{"+x+(E==null?"":E)+"}"};function o(x,E,T){y.isArray(E)||(E=[E]);var _=E.length;if(!_)return"";for(var C=E[0].$vars||[],w=0;w<C.length;w++){var O=i[w];x=x.replace(t(O),t(O,0))}for(var I=0;I<_;I++)for(var k=0;k<C.length;k++){var M=E[I][C[k]];x=x.replace(t(i[k],I),T?a(M):M)}return x}function e(x,E,T){return y.each(E,function(_,C){x=x.replace("{"+C+"}",T?a(_):_)}),x}function u(x,E){x=y.isString(x)?{color:x,extraCssText:E}:x||{};var T=x.color,_=x.type,E=x.extraCssText,C=x.renderMode||"html",w=x.markerId||"X";return T?C==="html"?_==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+a(T)+";"+(E||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+a(T)+";"+(E||"")+'"></span>':{renderMode:C,content:"{marker"+w+"|} ",style:{color:T}}:""}function r(x,E){return x+="","0000".substr(0,E-x.length)+x}function s(x,E,T){(x==="week"||x==="month"||x==="quarter"||x==="half-year"||x==="year")&&(x=`MM-dd
yyyy`);var _=S.parseDate(E),C=T?"UTC":"",w=_["get"+C+"FullYear"](),O=_["get"+C+"Month"]()+1,I=_["get"+C+"Date"](),k=_["get"+C+"Hours"](),M=_["get"+C+"Minutes"](),U=_["get"+C+"Seconds"](),P=_["get"+C+"Milliseconds"]();return x=x.replace("MM",r(O,2)).replace("M",O).replace("yyyy",w).replace("yy",w%100).replace("dd",r(I,2)).replace("d",I).replace("hh",r(k,2)).replace("h",k).replace("mm",r(M,2)).replace("m",M).replace("ss",r(U,2)).replace("s",U).replace("SSS",r(P,3)),x}function c(x){return x&&x.charAt(0).toUpperCase()+x.substr(1)}var h=g.truncateText;function v(x){return g.getBoundingRect(x.text,x.font,x.textAlign,x.textVerticalAlign,x.textPadding,x.textLineHeight,x.rich,x.truncate)}function A(x,E,T,_,C,w,O,I){return g.getBoundingRect(x,E,T,_,C,I,w,O)}function b(x,E){if(E==="_blank"||E==="blank"){var T=window.open();T.opener=null,T.location=x}else window.open(x,E)}D.addCommas=m,D.toCamelCase=p,D.normalizeCssArray=f,D.encodeHTML=a,D.formatTpl=o,D.formatTplSimple=e,D.getTooltipMarker=u,D.formatTime=s,D.capitalFirst=c,D.truncateText=h,D.getTextBoundingRect=v,D.getTextRect=A,D.windowOpen=b},"7bkD":function(R,D,n){var y=n("bYtY");function g(S,m){m=m||{};var p=S.coordinateSystem,f=S.axis,d={},l=f.position,a=f.orient,i=p.getRect(),t=[i.x,i.x+i.width,i.y,i.y+i.height],o={horizontal:{top:t[2],bottom:t[3]},vertical:{left:t[0],right:t[1]}};d.position=[a==="vertical"?o.vertical[l]:t[0],a==="horizontal"?o.horizontal[l]:t[3]];var e={horizontal:0,vertical:1};d.rotation=Math.PI/2*e[a];var u={top:-1,bottom:1,right:1,left:-1};d.labelDirection=d.tickDirection=d.nameDirection=u[l],S.get("axisTick.inside")&&(d.tickDirection=-d.tickDirection),y.retrieve(m.labelInside,S.get("axisLabel.inside"))&&(d.labelDirection=-d.labelDirection);var r=m.rotate;return r==null&&(r=S.get("axisLabel.rotate")),d.labelRotation=l==="top"?-r:r,d.z2=1,d}D.layout=g},"7fqy":function(R,D){function n(y){var g=-1,S=Array(y.size);return y.forEach(function(m,p){S[++g]=[p,m]}),S}R.exports=n},"7hqr":function(R,D,n){var y=n("bYtY"),g=y.each,S=y.isString;function m(d,l,a){a=a||{};var i=a.byIndex,t=a.stackedCoordDimension,o=!!(d&&d.get("stack")),e,u,r,s;if(g(l,function(A,b){S(A)&&(l[b]=A={name:A}),o&&!A.isExtraCoord&&(!i&&!e&&A.ordinalMeta&&(e=A),!u&&A.type!=="ordinal"&&A.type!=="time"&&(!t||t===A.coordDim)&&(u=A))}),u&&!i&&!e&&(i=!0),u){r="__\0ecstackresult",s="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var c=u.coordDim,h=u.type,v=0;g(l,function(A){A.coordDim===c&&v++}),l.push({name:r,coordDim:c,coordDimIndex:v,type:h,isExtraCoord:!0,isCalculationCoord:!0}),v++,l.push({name:s,coordDim:s,coordDimIndex:v,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:u&&u.name,stackedByDimension:e&&e.name,isStackedByIndex:i,stackedOverDimension:s,stackResultDimension:r}}function p(d,l){return!!l&&l===d.getCalculationInfo("stackedDimension")}function f(d,l){return p(d,l)?d.getCalculationInfo("stackResultDimension"):l}D.enableDataStack=m,D.isDimensionStacked=p,D.getStackedDimension=f},"7mYs":function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("IwbS"),m=n("7aKB"),p=n("OELB"),f={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"]},d={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},l=y.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(a,i,t){var o=this.group;o.removeAll();var e=a.coordinateSystem,u=e.getRangeInfo(),r=e.getOrient();this._renderDayRect(a,u,o),this._renderLines(a,u,r,o),this._renderYearText(a,u,r,o),this._renderMonthText(a,r,o),this._renderWeekText(a,u,r,o)},_renderDayRect:function(a,i,t){for(var o=a.coordinateSystem,e=a.getModel("itemStyle").getItemStyle(),u=o.getCellWidth(),r=o.getCellHeight(),s=i.start.time;s<=i.end.time;s=o.getNextNDay(s,1).time){var c=o.dataToRect([s],!1).tl,h=new S.Rect({shape:{x:c[0],y:c[1],width:u,height:r},cursor:"default",style:e});t.add(h)}},_renderLines:function(a,i,t,o){var e=this,u=a.coordinateSystem,r=a.getModel("splitLine.lineStyle").getLineStyle(),s=a.get("splitLine.show"),c=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=i.start,v=0;h.time<=i.end.time;v++){b(h.formatedDate),v===0&&(h=u.getDateInfo(i.start.y+"-"+i.start.m));var A=h.date;A.setMonth(A.getMonth()+1),h=u.getDateInfo(A)}b(u.getNextNDay(i.end.time,1).formatedDate);function b(x){e._firstDayOfMonth.push(u.getDateInfo(x)),e._firstDayPoints.push(u.dataToRect([x],!1).tl);var E=e._getLinePointsOfOneWeek(a,x,t);e._tlpoints.push(E[0]),e._blpoints.push(E[E.length-1]),s&&e._drawSplitline(E,r,o)}s&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,c,t),r,o),s&&this._drawSplitline(e._getEdgesPoints(e._blpoints,c,t),r,o)},_getEdgesPoints:function(a,i,t){var o=[a[0].slice(),a[a.length-1].slice()],e=t==="horizontal"?0:1;return o[0][e]=o[0][e]-i/2,o[1][e]=o[1][e]+i/2,o},_drawSplitline:function(a,i,t){var o=new S.Polyline({z2:20,shape:{points:a},style:i});t.add(o)},_getLinePointsOfOneWeek:function(a,i,t){var o=a.coordinateSystem;i=o.getDateInfo(i);for(var e=[],u=0;u<7;u++){var r=o.getNextNDay(i.time,u),s=o.dataToRect([r.time],!1);e[2*r.day]=s.tl,e[2*r.day+1]=s[t==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(a,i){return typeof a=="string"&&a?m.formatTplSimple(a,i):typeof a=="function"?a(i):i.nameMap},_yearTextPositionControl:function(a,i,t,o,e){i=i.slice();var u=["center","bottom"];o==="bottom"?(i[1]+=e,u=["center","top"]):o==="left"?i[0]-=e:o==="right"?(i[0]+=e,u=["center","top"]):i[1]-=e;var r=0;return(o==="left"||o==="right")&&(r=Math.PI/2),{rotation:r,position:i,style:{textAlign:u[0],textVerticalAlign:u[1]}}},_renderYearText:function(a,i,t,o){var e=a.getModel("yearLabel");if(!e.get("show"))return;var u=e.get("margin"),r=e.get("position");r||(r=t!=="horizontal"?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,h=(s[0][1]+s[1][1])/2,v=t==="horizontal"?0:1,A={top:[c,s[v][1]],bottom:[c,s[1-v][1]],left:[s[1-v][0],h],right:[s[v][0],h]},b=i.start.y;+i.end.y>+i.start.y&&(b=b+"-"+i.end.y);var x=e.get("formatter"),E={start:i.start.y,end:i.end.y,nameMap:b},T=this._formatterLabel(x,E),_=new S.Text({z2:30});S.setTextStyle(_.style,e,{text:T}),_.attr(this._yearTextPositionControl(_,A[r],t,r,u)),o.add(_)},_monthTextPositionControl:function(a,i,t,o,e){var u="left",r="top",s=a[0],c=a[1];return t==="horizontal"?(c=c+e,i&&(u="center"),o==="start"&&(r="bottom")):(s=s+e,i&&(r="middle"),o==="start"&&(u="right")),{x:s,y:c,textAlign:u,textVerticalAlign:r}},_renderMonthText:function(a,i,t){var o=a.getModel("monthLabel");if(!o.get("show"))return;var e=o.get("nameMap"),u=o.get("margin"),r=o.get("position"),s=o.get("align"),c=[this._tlpoints,this._blpoints];g.isString(e)&&(e=f[e.toUpperCase()]||[]);var h=r==="start"?0:1,v=i==="horizontal"?0:1;u=r==="start"?-u:u;for(var A=s==="center",b=0;b<c[h].length-1;b++){var x=c[h][b].slice(),E=this._firstDayOfMonth[b];if(A){var T=this._firstDayPoints[b];x[v]=(T[v]+c[0][b+1][v])/2}var _=o.get("formatter"),C=e[+E.m-1],w={yyyy:E.y,yy:(E.y+"").slice(2),MM:E.m,M:+E.m,nameMap:C},O=this._formatterLabel(_,w),I=new S.Text({z2:30});g.extend(S.setTextStyle(I.style,o,{text:O}),this._monthTextPositionControl(x,A,i,r,u)),t.add(I)}},_weekTextPositionControl:function(a,i,t,o,e){var u="center",r="middle",s=a[0],c=a[1],h=t==="start";return i==="horizontal"?(s=s+o+(h?1:-1)*e[0]/2,u=h?"right":"left"):(c=c+o+(h?1:-1)*e[1]/2,r=h?"bottom":"top"),{x:s,y:c,textAlign:u,textVerticalAlign:r}},_renderWeekText:function(a,i,t,o){var e=a.getModel("dayLabel");if(!e.get("show"))return;var u=a.coordinateSystem,r=e.get("position"),s=e.get("nameMap"),c=e.get("margin"),h=u.getFirstDayOfWeek();g.isString(s)&&(s=d[s.toUpperCase()]||[]);var v=u.getNextNDay(i.end.time,7-i.lweek).time,A=[u.getCellWidth(),u.getCellHeight()];c=p.parsePercent(c,A[t==="horizontal"?0:1]),r==="start"&&(v=u.getNextNDay(i.start.time,-(7+i.fweek)).time,c=-c);for(var b=0;b<7;b++){var x=u.getNextNDay(v,b),E=u.dataToRect([x.time],!1).center,T=b;T=Math.abs((b+h)%7);var _=new S.Text({z2:30});g.extend(S.setTextStyle(_.style,e,{text:s[T]}),this._weekTextPositionControl(E,t,r,c,A)),o.add(_)}}});R.exports=l},"7oTu":function(R,D,n){var y=n("IMiH"),g=n("QBsz"),S=g.applyTransform,m=y.CMD,p=[[],[],[]],f=Math.sqrt,d=Math.atan2;function l(a,i){var t=a.data,o,e,u,r,s,c,h=m.M,v=m.C,A=m.L,b=m.R,x=m.A,E=m.Q;for(u=0,r=0;u<t.length;){o=t[u++],r=u,e=0;switch(o){case h:e=1;break;case A:e=1;break;case v:e=3;break;case E:e=2;break;case x:var T=i[4],_=i[5],C=f(i[0]*i[0]+i[1]*i[1]),w=f(i[2]*i[2]+i[3]*i[3]),O=d(-i[1]/w,i[0]/C);t[u]*=C,t[u++]+=T,t[u]*=w,t[u++]+=_,t[u++]*=C,t[u++]*=w,t[u++]+=O,t[u++]+=O,u+=2,r=u;break;case b:c[0]=t[u++],c[1]=t[u++],S(c,c,i),t[r++]=c[0],t[r++]=c[1],c[0]+=t[u++],c[1]+=t[u++],S(c,c,i),t[r++]=c[0],t[r++]=c[1]}for(s=0;s<e;s++){var c=p[s];c[0]=t[u++],c[1]=t[u++],S(c,c,i),t[r++]=c[0],t[r++]=c[1]}}}R.exports=l},"7pVf":function(R,D,n){var y=n("ProS"),g=n("ZqQs");n("oE7X"),n("OUJF"),n("3X6L"),n("NH9N"),y.registerPreprocessor(g)},"7ph2":function(R,D){function n(S){return S instanceof Array||(S=[S,S]),S}var y="lineStyle.opacity".split("."),g={seriesType:"lines",reset:function(S,m,p){var f=n(S.get("symbol")),d=n(S.get("symbolSize")),l=S.getData();l.setVisual("fromSymbol",f&&f[0]),l.setVisual("toSymbol",f&&f[1]),l.setVisual("fromSymbolSize",d&&d[0]),l.setVisual("toSymbolSize",d&&d[1]),l.setVisual("opacity",S.get(y));function a(i,t){var o=i.getItemModel(t),e=n(o.getShallow("symbol",!0)),u=n(o.getShallow("symbolSize",!0)),r=o.get(y);e[0]&&i.setItemVisual(t,"fromSymbol",e[0]),e[1]&&i.setItemVisual(t,"toSymbol",e[1]),u[0]&&i.setItemVisual(t,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(t,"toSymbolSize",u[1]),i.setItemVisual(t,"opacity",r)}return{dataEach:l.hasItemOption?a:null}}};R.exports=g},"7uqq":function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("ProS"),m=n("bYtY"),p=n("AUH6"),f=n("+TT/"),d=n("OELB"),l=n("W4dC"),a=n("7DRL");function i(u,r){var s=u.get("boundingCoords");if(s!=null){var c=s[0],h=s[1];isNaN(c[0])||isNaN(c[1])||isNaN(h[0])||isNaN(h[1])||this.setBoundingRect(c[0],c[1],h[0]-c[0],h[1]-c[1])}var v=this.getBoundingRect(),A,b=u.get("layoutCenter"),x=u.get("layoutSize"),E=r.getWidth(),T=r.getHeight(),_=v.width/v.height*this.aspectScale,C=!1;b&&x&&(b=[d.parsePercent(b[0],E),d.parsePercent(b[1],T)],x=d.parsePercent(x,Math.min(E,T)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(x)&&(C=!0));var w;if(C){var w={};_>1?(w.width=x,w.height=x/_):(w.height=x,w.width=x*_),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2}else A=u.getBoxLayoutParams(),A.aspect=_,w=f.getLayoutRect(A,{width:E,height:T});this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(u.get("center")),this.setZoom(u.get("zoom"))}function t(u,r){m.each(r.get("geoCoord"),function(s,c){u.addGeoCoord(c,s)})}var o={dimensions:p.prototype.dimensions,create:function(u,r){var s=[];u.eachComponent("geo",function(h,v){var A=h.get("map"),b=h.get("aspectScale"),x=!0,E=a.retrieveMap(A);E&&E[0]&&E[0].type==="svg"?(b==null&&(b=1),x=!1):b==null&&(b=.75);var T=new p(A+v,A,h.get("nameMap"),x);T.aspectScale=b,T.zoomLimit=h.get("scaleLimit"),s.push(T),t(T,h),h.coordinateSystem=T,T.model=h,T.resize=i,T.resize(h,r)}),u.eachSeries(function(h){var v=h.get("coordinateSystem");if(v==="geo"){var A=h.get("geoIndex")||0;h.coordinateSystem=s[A]}});var c={};return u.eachSeriesByType("map",function(h){if(!h.getHostGeoModel()){var v=h.getMapType();c[v]=c[v]||[],c[v].push(h)}}),m.each(c,function(h,v){var A=m.map(h,function(x){return x.get("nameMap")}),b=new p(v,v,m.mergeAll(A));b.zoomLimit=m.retrieve.apply(null,m.map(h,function(x){return x.get("scaleLimit")})),s.push(b),b.resize=i,b.aspectScale=h[0].get("aspectScale"),b.resize(h[0],r),m.each(h,function(x){x.coordinateSystem=b,t(b,x)})}),s},getFilledRegions:function(u,r,s){for(var c=(u||[]).slice(),h=m.createHashMap(),v=0;v<c.length;v++)h.set(c[v].name,c[v]);var A=l.load(r,s);return m.each(A.regions,function(b){var x=b.name;!h.get(x)&&c.push({name:x})}),c}};S.registerCoordinateSystem("geo",o);var e=o;R.exports=e},"7yuC":function(R,D,n){var y=n("QBsz"),g=y.scaleAndAdd;function S(m,p,f){for(var d=f.rect,l=d.width,a=d.height,i=[d.x+l/2,d.y+a/2],t=f.gravity==null?.1:f.gravity,o=0;o<m.length;o++){var e=m[o];e.p||(e.p=y.create(l*(Math.random()-.5)+i[0],a*(Math.random()-.5)+i[1])),e.pp=y.clone(e.p),e.edges=null}var u=f.friction==null?.6:f.friction,r=u;return{warmUp:function(){r=u*.8},setFixed:function(s){m[s].fixed=!0},setUnfixed:function(s){m[s].fixed=!1},step:function(s){for(var c=[],h=m.length,v=0;v<p.length;v++){var A=p[v];if(A.ignoreForceLayout)continue;var b=A.n1,x=A.n2;y.sub(c,x.p,b.p);var E=y.len(c)-A.d,T=x.w/(b.w+x.w);isNaN(T)&&(T=0),y.normalize(c,c),!b.fixed&&g(b.p,b.p,c,T*E*r),!x.fixed&&g(x.p,x.p,c,-(1-T)*E*r)}for(var v=0;v<h;v++){var _=m[v];_.fixed||(y.sub(c,i,_.p),g(_.p,_.p,c,t*r))}for(var v=0;v<h;v++)for(var b=m[v],C=v+1;C<h;C++){var x=m[C];y.sub(c,x.p,b.p);var E=y.len(c);E===0&&(y.set(c,Math.random()-.5,Math.random()-.5),E=1);var w=(b.rep+x.rep)/E/E;!b.fixed&&g(b.pp,b.pp,c,w),!x.fixed&&g(x.pp,x.pp,c,-w)}for(var O=[],v=0;v<h;v++){var _=m[v];_.fixed||(y.sub(O,_.p,_.pp),g(_.p,_.p,O,r),y.copy(_.pp,_.p))}r=r*.992,s&&s(m,p,r<.01)}}}D.forceLayout=S},"8+yF":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={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},g={lookup:function(m){if(m>=32&&m<=255)return m;var p=y[m];return p!==void 0?p:16777216|m}};D.default=g},"8CQX":function(R,D,n){"use strict";function y(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(s){return typeof s}:y=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},y(u)}Object.defineProperty(D,"__esModule",{value:!0}),D.getKeycode=t,D.getKey=o,D.getKeysym=e;var g=i(n("mHUz")),S=i(n("8+yF")),m=i(n("6Qwc")),p=i(n("gIYZ")),f=i(n("mTgk")),d=a(n("GdRQ"));function l(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return l=function(){return u},u}function a(u){if(u&&u.__esModule)return u;if(u===null||y(u)!=="object"&&typeof u!="function")return{default:u};var r=l();if(r&&r.has(u))return r.get(u);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(Object.prototype.hasOwnProperty.call(u,h)){var v=c?Object.getOwnPropertyDescriptor(u,h):null;v&&(v.get||v.set)?Object.defineProperty(s,h,v):s[h]=u[h]}return s.default=u,r&&r.set(u,s),s}function i(u){return u&&u.__esModule?u:{default:u}}function t(u){if(u.code){switch(u.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return u.code}if(u.type!=="keypress"&&u.keyCode in m.default){var r=m.default[u.keyCode];if(d.isMac()&&r==="ContextMenu"&&(r="MetaRight"),u.location===2)switch(r){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(u.location===3)switch(r){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 r}return"Unidentified"}function o(u){if(u.key!==void 0){switch(u.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 u.char}switch(u.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(u.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(u.key==="\0"&&u.code==="NumpadDecimal")return"Delete";if(!d.isIE()&&!d.isEdge())return u.key;if(u.key.length!==1&&u.key!=="Unidentified")return u.key}var r=t(u);return r in p.default?p.default[r]:u.charCode?String.fromCharCode(u.charCode):"Unidentified"}function e(u){var r=o(u);if(r==="Unidentified")return null;if(r in f.default){var s=u.location;if(r==="Meta"&&s===0&&(s=2),r==="Clear"&&s===3){var c=t(u);c==="NumLock"&&(s=0)}if((s===void 0||s>3)&&(s=0),r==="Meta"){var h=t(u);if(h==="AltLeft")return g.default.XK_Meta_L;if(h==="AltRight")return g.default.XK_Meta_R}if(r==="Clear"){var v=t(u);if(v==="NumLock")return g.default.XK_Num_Lock}return f.default[r][s]}if(r.length!==1)return null;var A=r.charCodeAt();return A?S.default.lookup(A):null}},"8EBN":function(R,D,n){(function(y){y(n("VrN/"))})(function(y){"use strict";y.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 g=0;g<y.modeInfo.length;g++){var S=y.modeInfo[g];S.mimes&&(S.mime=S.mimes[0])}y.findModeByMIME=function(m){m=m.toLowerCase();for(var p=0;p<y.modeInfo.length;p++){var f=y.modeInfo[p];if(f.mime==m)return f;if(f.mimes){for(var d=0;d<f.mimes.length;d++)if(f.mimes[d]==m)return f}}if(/\+xml$/.test(m))return y.findModeByMIME("application/xml");if(/\+json$/.test(m))return y.findModeByMIME("application/json")},y.findModeByExtension=function(m){m=m.toLowerCase();for(var p=0;p<y.modeInfo.length;p++){var f=y.modeInfo[p];if(f.ext){for(var d=0;d<f.ext.length;d++)if(f.ext[d]==m)return f}}},y.findModeByFileName=function(m){for(var p=0;p<y.modeInfo.length;p++){var f=y.modeInfo[p];if(f.file&&f.file.test(m))return f}var d=m.lastIndexOf("."),l=d>-1&&m.substring(d+1,m.length);if(l)return y.findModeByExtension(l)},y.findModeByName=function(m){m=m.toLowerCase();for(var p=0;p<y.modeInfo.length;p++){var f=y.modeInfo[p];if(f.name.toLowerCase()==m)return f;if(f.alias){for(var d=0;d<f.alias.length;d++)if(f.alias[d].toLowerCase()==m)return f}}}})},"8IMR":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},"8ISB":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("6Hfg"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},"8K/p":function(R,D,n){"use strict";function y(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(e){return typeof e}:y=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(t)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var g=f(n("Lo0S")),S=m(n("ItS6"));function m(t){return t&&t.__esModule?t:{default:t}}function p(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return p=function(){return t},t}function f(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var o=p();if(o&&o.has(t))return o.get(t);var e={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var s=u?Object.getOwnPropertyDescriptor(t,r):null;s&&(s.get||s.set)?Object.defineProperty(e,r,s):e[r]=t[r]}return e.default=t,o&&o.set(t,e),e}function d(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function l(t,o){for(var e=0;e<o.length;e++){var u=o[e];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function a(t,o,e){return o&&l(t.prototype,o),e&&l(t,e),t}var i=function(){function t(){d(this,t),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var o=0;o<4;o++)this._zlibs[o]=new S.default}return a(t,[{key:"decodeRect",value:function(e,u,r,s,c,h,v){if(this._ctl===null){if(c.rQwait("TIGHT compression-control",1))return!1;this._ctl=c.rQshift8();for(var A=0;A<4;A++)this._ctl>>A&1&&(this._zlibs[A].reset(),g.Info("Reset zlib stream "+A));this._ctl=this._ctl>>4}var b;if(this._ctl===8)b=this._fillRect(e,u,r,s,c,h,v);else if(this._ctl===9)b=this._jpegRect(e,u,r,s,c,h,v);else if(this._ctl===10)b=this._pngRect(e,u,r,s,c,h,v);else if((this._ctl&128)==0)b=this._basicRect(this._ctl,e,u,r,s,c,h,v);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return b&&(this._ctl=null),b}},{key:"_fillRect",value:function(e,u,r,s,c,h,v){if(c.rQwait("TIGHT",3))return!1;var A=c.rQi,b=c.rQ;return h.fillRect(e,u,r,s,[b[A+2],b[A+1],b[A]],!1),c.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,u,r,s,c,h,v){var A=this._readData(c);return A===null?!1:(h.imageRect(e,u,r,s,"image/jpeg",A),!0)}},{key:"_pngRect",value:function(e,u,r,s,c,h,v){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,u,r,s,c,h,v,A){if(this._filter===null)if(e&4){if(h.rQwait("TIGHT",1))return!1;this._filter=h.rQshift8()}else this._filter=0;var b=e&3,x;switch(this._filter){case 0:x=this._copyFilter(b,u,r,s,c,h,v,A);break;case 1:x=this._paletteFilter(b,u,r,s,c,h,v,A);break;case 2:x=this._gradientFilter(b,u,r,s,c,h,v,A);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return x&&(this._filter=null),x}},{key:"_copyFilter",value:function(e,u,r,s,c,h,v,A){var b=s*c*3,x;if(b<12){if(h.rQwait("TIGHT",b))return!1;x=h.rQshiftBytes(b)}else{if(x=this._readData(h),x===null)return!1;this._zlibs[e].setInput(x),x=this._zlibs[e].inflate(b),this._zlibs[e].setInput(null)}return v.blitRgbImage(u,r,s,c,x,0,!1),!0}},{key:"_paletteFilter",value:function(e,u,r,s,c,h,v,A){if(this._numColors===0){if(h.rQwait("TIGHT palette",1))return!1;var b=h.rQpeek8()+1,x=b*3;if(h.rQwait("TIGHT palette",1+x))return!1;this._numColors=b,h.rQskipBytes(1),h.rQshiftTo(this._palette,x)}var E=this._numColors<=2?1:8,T=Math.floor((s*E+7)/8),_=T*c,C;if(_<12){if(h.rQwait("TIGHT",_))return!1;C=h.rQshiftBytes(_)}else{if(C=this._readData(h),C===null)return!1;this._zlibs[e].setInput(C),C=this._zlibs[e].inflate(_),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(u,r,s,c,C,this._palette,v):this._paletteRect(u,r,s,c,C,this._palette,v),this._numColors=0,!0}},{key:"_monoRect",value:function(e,u,r,s,c,h,v){for(var A=this._getScratchBuffer(r*s*4),b=Math.floor((r+7)/8),x=Math.floor(r/8),E=0;E<s;E++){var T=void 0,_=void 0,C=void 0;for(C=0;C<x;C++)for(var w=7;w>=0;w--)T=(E*r+C*8+7-w)*4,_=(c[E*b+C]>>w&1)*3,A[T]=h[_],A[T+1]=h[_+1],A[T+2]=h[_+2],A[T+3]=255;for(var O=7;O>=8-r%8;O--)T=(E*r+C*8+7-O)*4,_=(c[E*b+C]>>O&1)*3,A[T]=h[_],A[T+1]=h[_+1],A[T+2]=h[_+2],A[T+3]=255}v.blitRgbxImage(e,u,r,s,A,0,!1)}},{key:"_paletteRect",value:function(e,u,r,s,c,h,v){for(var A=this._getScratchBuffer(r*s*4),b=r*s*4,x=0,E=0;x<b;x+=4,E++){var T=c[E]*3;A[x]=h[T],A[x+1]=h[T+1],A[x+2]=h[T+2],A[x+3]=255}v.blitRgbxImage(e,u,r,s,A,0,!1)}},{key:"_gradientFilter",value:function(e,u,r,s,c,h,v,A){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(e){if(this._len===0){if(e.rQwait("TIGHT",3))return null;var u;u=e.rQshift8(),this._len=u&127,u&128&&(u=e.rQshift8(),this._len|=(u&127)<<7,u&128&&(u=e.rQshift8(),this._len|=u<<14))}if(e.rQwait("TIGHT",this._len))return null;var r=e.rQshiftBytes(this._len);return this._len=0,r}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),t}();D.default=i},"8SMY":function(R,D,n){var y=n("n4Lv"),g=y.prepareDataCoordInfo,S=y.getStackedOnPoint;function m(f,d){var l=[];return d.diff(f).add(function(a){l.push({cmd:"+",idx:a})}).update(function(a,i){l.push({cmd:"=",idx:i,idx1:a})}).remove(function(a){l.push({cmd:"-",idx:a})}).execute(),l}function p(f,d,l,a,i,t,o,e){for(var u=m(f,d),r=[],s=[],c=[],h=[],v=[],A=[],b=[],x=g(i,d,o),E=g(t,f,e),T=0;T<u.length;T++){var _=u[T],C=!0;switch(_.cmd){case"=":var w=f.getItemLayout(_.idx),O=d.getItemLayout(_.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=O.slice()),r.push(w),s.push(O),c.push(l[_.idx]),h.push(a[_.idx1]),b.push(d.getRawIndex(_.idx1));break;case"+":var I=_.idx;r.push(i.dataToPoint([d.get(x.dataDimsForPoint[0],I),d.get(x.dataDimsForPoint[1],I)])),s.push(d.getItemLayout(I).slice()),c.push(S(x,i,d,I)),h.push(a[I]),b.push(d.getRawIndex(I));break;case"-":var I=_.idx,k=f.getRawIndex(I);k!==I?(r.push(f.getItemLayout(I)),s.push(t.dataToPoint([f.get(E.dataDimsForPoint[0],I),f.get(E.dataDimsForPoint[1],I)])),c.push(l[I]),h.push(S(E,t,f,I)),b.push(k)):C=!1}C&&(v.push(_),A.push(A.length))}A.sort(function(j,K){return b[j]-b[K]});for(var M=[],U=[],P=[],X=[],F=[],T=0;T<A.length;T++){var I=A[T];M[T]=r[I],U[T]=s[I],P[T]=c[I],X[T]=h[I],F[T]=v[I]}return{current:M,next:U,stackedOnCurrent:P,stackedOnNext:X,status:F}}R.exports=p},"8Skl":function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="DownOutlined";var d=D.a=g.forwardRef(f)},"8Th4":function(R,D,n){var y=n("3LNs"),g=n("/y7N"),S=n("7bkD"),m=n("Znkb"),p=["x","y"],f=["width","height"],d=y.extend({makeElOption:function(o,e,u,r,s){var c=u.axis,h=c.coordinateSystem,v=i(h,1-a(c)),A=h.dataToPoint(e)[0],b=r.get("type");if(b&&b!=="none"){var x=g.buildElStyle(r),E=l[b](c,A,v);E.style=x,o.graphicKey=E.type,o.pointer=E}var T=S.layout(u);g.buildCartesianSingleLabelElOption(e,o,T,u,r,s)},getHandleTransform:function(o,e,u){var r=S.layout(e,{labelInside:!1});return r.labelMargin=u.get("handle.margin"),{position:g.getTransformedPosition(e.axis,o,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(o,e,u,r){var s=u.axis,c=s.coordinateSystem,h=a(s),v=i(c,h),A=o.position;A[h]+=e[h],A[h]=Math.min(v[1],A[h]),A[h]=Math.max(v[0],A[h]);var b=i(c,1-h),x=(b[1]+b[0])/2,E=[x,x];return E[h]=A[h],{position:A,rotation:o.rotation,cursorPoint:E,tooltipOption:{verticalAlign:"middle"}}}}),l={line:function(o,e,u){var r=g.makeLineShape([e,u[0]],[e,u[1]],a(o));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(o,e,u){var r=o.getBandWidth(),s=u[1]-u[0];return{type:"Rect",shape:g.makeRectShape([e-r/2,u[0]],[r,s],a(o))}}};function a(o){return o.isHorizontal()?0:1}function i(o,e){var u=o.getRect();return[u[p[e]],u[p[e]]+u[f[e]]]}m.registerAxisPointerClass("SingleAxisPointer",d);var t=d;R.exports=t},"8Uz6":function(R,D,n){var y=n("hNWo"),g=n("+TT/"),S=g.mergeLayoutParam,m=g.getLayoutParams,p=y.extend({type:"legend.scroll",setScrollDataIndex:function(l){this.option.scrollDataIndex=l},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(l,a,i,t){var o=m(l);p.superCall(this,"init",l,a,i,t),f(this,l,o)},mergeOption:function(l,a){p.superCall(this,"mergeOption",l,a),f(this,this.option,l)}});function f(l,a,i){var t=l.getOrient(),o=[1,1];o[t.index]=0,S(a,i,{type:"box",ignoreSize:o})}var d=p;R.exports=d},"8X+K":function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=n("4mN7"),p=m.fromPoints,f=n("9wZj"),d=n("FBjb"),l=n("8SMY"),a=n("IwbS"),i=n("4NO4"),t=n("1NG9"),o=t.Polyline,e=t.Polygon,u=n("6Ic6"),r=n("n4Lv"),s=r.prepareDataCoordInfo,c=r.getStackedOnPoint,h=n("sK/D"),v=h.createGridClipPath,A=h.createPolarClipPath;function b(M,U){if(M.length!==U.length)return;for(var P=0;P<M.length;P++){var X=M[P],F=U[P];if(X[0]!==F[0]||X[1]!==F[1])return}return!0}function x(M,U){var P=[],X=[],F=[],j=[];return p(M,P,X),p(U,F,j),Math.max(Math.abs(P[0]-F[0]),Math.abs(P[1]-F[1]),Math.abs(X[0]-j[0]),Math.abs(X[1]-j[1]))}function E(M){return typeof M=="number"?M:M?.5:0}function T(M,U,P){if(!P.valueDim)return[];for(var X=[],F=0,j=U.count();F<j;F++)X.push(c(P,M,U,F));return X}function _(M,U,P){for(var X=U.getBaseAxis(),F=X.dim==="x"||X.dim==="radius"?0:1,j=[],K=0;K<M.length-1;K++){var z=M[K+1],V=M[K];j.push(V);var Q=[];switch(P){case"end":Q[F]=z[F],Q[1-F]=V[1-F],j.push(Q);break;case"middle":var G=(V[F]+z[F])/2,te=[];Q[F]=te[F]=G,Q[1-F]=V[1-F],te[1-F]=z[1-F],j.push(Q),j.push(te);break;default:Q[F]=V[F],Q[1-F]=z[1-F],j.push(Q)}}return M[K]&&j.push(M[K]),j}function C(M,U){var P=M.getVisual("visualMeta");if(!P||!P.length||!M.count())return;if(U.type!=="cartesian2d")return;for(var X,F,j=P.length-1;j>=0;j--){var K=P[j].dimension,z=M.dimensions[K],V=M.getDimensionInfo(z);if(X=V&&V.coordDim,X==="x"||X==="y"){F=P[j];break}}if(!F)return;var Q=U.getAxis(X),G=S.map(F.stops,function(Qe){return{coord:Q.toGlobalCoord(Q.dataToCoord(Qe.value)),color:Qe.color}}),te=G.length,q=F.outerColors.slice();te&&G[0].coord>G[te-1].coord&&(G.reverse(),q.reverse());var se=10,re=G[0].coord-se,we=G[te-1].coord+se,Oe=we-re;if(Oe<.001)return"transparent";S.each(G,function(Qe){Qe.offset=(Qe.coord-re)/Oe}),G.push({offset:te?G[te-1].offset:.5,color:q[1]||"transparent"}),G.unshift({offset:te?G[0].offset:.5,color:q[0]||"transparent"});var Me=new a.LinearGradient(0,0,0,0,G,!0);return Me[X]=re,Me[X+"2"]=we,Me}function w(M,U,P){var X=M.get("showAllSymbol"),F=X==="auto";if(X&&!F)return;var j=P.getAxesByScale("ordinal")[0];if(!j)return;if(F&&O(j,U))return;var K=U.mapDimension(j.dim),z={};return S.each(j.getViewLabels(),function(V){z[V.tickValue]=1}),function(V){return!z.hasOwnProperty(U.get(K,V))}}function O(M,U){var P=M.getExtent(),X=Math.abs(P[1]-P[0])/M.scale.count();isNaN(X)&&(X=0);for(var F=U.count(),j=Math.max(1,Math.round(F/5)),K=0;K<F;K+=j)if(d.getSymbolSize(U,K)[M.isHorizontal()?1:0]*1.5>X)return!1;return!0}function I(M,U,P){if(M.type==="cartesian2d"){var X=M.getBaseAxis().isHorizontal(),F=v(M,U,P);if(!P.get("clip",!0)){var j=F.shape,K=Math.max(j.width,j.height);X?(j.y-=K,j.height+=K*2):(j.x-=K,j.width+=K*2)}return F}else return A(M,U,P)}var k=u.extend({type:"line",init:function(){var M=new a.Group,U=new f;this.group.add(U.group),this._symbolDraw=U,this._lineGroup=M},render:function(M,U,P){var X=M.coordinateSystem,F=this.group,j=M.getData(),K=M.getModel("lineStyle"),z=M.getModel("areaStyle"),V=j.mapArray(j.getItemLayout),Q=X.type==="polar",G=this._coordSys,te=this._symbolDraw,q=this._polyline,se=this._polygon,re=this._lineGroup,we=M.get("animation"),Oe=!z.isEmpty(),Me=z.get("origin"),Qe=s(X,j,Me),Ve=T(X,j,Qe),dt=M.get("showSymbol"),Fe=dt&&!Q&&w(M,j,X),ue=this._data;ue&&ue.eachItemGraphicEl(function(be,Te){be.__temp&&(F.remove(be),ue.setItemGraphicEl(Te,null))}),dt||te.remove(),F.add(re);var et=!Q&&M.get("step"),he;X&&X.getArea&&M.get("clip",!0)&&(he=X.getArea(),he.width!=null?(he.x-=.1,he.y-=.1,he.width+=.2,he.height+=.2):he.r0&&(he.r0-=.5,he.r1+=.5)),this._clipShapeForSymbol=he,q&&G.type===X.type&&et===this._step?(Oe&&!se?se=this._newPolygon(V,Ve,X,we):se&&!Oe&&(re.remove(se),se=this._polygon=null),re.setClipPath(I(X,!1,M)),dt&&te.updateData(j,{isIgnore:Fe,clipShape:he}),j.eachItemGraphicEl(function(be){be.stopAnimation(!0)}),(!b(this._stackedOnPoints,Ve)||!b(this._points,V))&&(we?this._updateAnimation(j,Ve,X,P,et,Me):(et&&(V=_(V,X,et),Ve=_(Ve,X,et)),q.setShape({points:V}),se&&se.setShape({points:V,stackedOnPoints:Ve})))):(dt&&te.updateData(j,{isIgnore:Fe,clipShape:he}),et&&(V=_(V,X,et),Ve=_(Ve,X,et)),q=this._newPolyline(V,X,we),Oe&&(se=this._newPolygon(V,Ve,X,we)),re.setClipPath(I(X,!0,M)));var J=C(j,X)||j.getVisual("color");q.useStyle(S.defaults(K.getLineStyle(),{fill:"none",stroke:J,lineJoin:"bevel"}));var Y=M.get("smooth");if(Y=E(M.get("smooth")),q.setShape({smooth:Y,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")}),se){var $=j.getCalculationInfo("stackedOnSeries"),de=0;se.useStyle(S.defaults(z.getAreaStyle(),{fill:J,opacity:.7,lineJoin:"bevel"})),$&&(de=E($.get("smooth"))),se.setShape({smooth:Y,stackedOnSmooth:de,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")})}this._data=j,this._coordSys=X,this._stackedOnPoints=Ve,this._points=V,this._step=et,this._valueOrigin=Me},dispose:function(){},highlight:function(M,U,P,X){var F=M.getData(),j=i.queryDataIndex(F,X);if(!(j instanceof Array)&&j!=null&&j>=0){var K=F.getItemGraphicEl(j);if(!K){var z=F.getItemLayout(j);if(!z)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(z[0],z[1]))return;K=new d(F,j),K.position=z,K.setZ(M.get("zlevel"),M.get("z")),K.ignore=isNaN(z[0])||isNaN(z[1]),K.__temp=!0,F.setItemGraphicEl(j,K),K.stopSymbolAnimation(!0),this.group.add(K)}K.highlight()}else u.prototype.highlight.call(this,M,U,P,X)},downplay:function(M,U,P,X){var F=M.getData(),j=i.queryDataIndex(F,X);if(j!=null&&j>=0){var K=F.getItemGraphicEl(j);K&&(K.__temp?(F.setItemGraphicEl(j,null),this.group.remove(K)):K.downplay())}else u.prototype.downplay.call(this,M,U,P,X)},_newPolyline:function(M){var U=this._polyline;return U&&this._lineGroup.remove(U),U=new o({shape:{points:M},silent:!0,z2:10}),this._lineGroup.add(U),this._polyline=U,U},_newPolygon:function(M,U){var P=this._polygon;return P&&this._lineGroup.remove(P),P=new e({shape:{points:M,stackedOnPoints:U},silent:!0}),this._lineGroup.add(P),this._polygon=P,P},_updateAnimation:function(M,U,P,X,F,j){var K=this._polyline,z=this._polygon,V=M.hostModel,Q=l(this._data,M,this._stackedOnPoints,U,this._coordSys,P,this._valueOrigin,j),G=Q.current,te=Q.stackedOnCurrent,q=Q.next,se=Q.stackedOnNext;if(F&&(G=_(Q.current,P,F),te=_(Q.stackedOnCurrent,P,F),q=_(Q.next,P,F),se=_(Q.stackedOnNext,P,F)),x(G,q)>3e3||z&&x(te,se)>3e3){K.setShape({points:q}),z&&z.setShape({points:q,stackedOnPoints:se});return}K.shape.__points=Q.current,K.shape.points=G,a.updateProps(K,{shape:{points:q}},V),z&&(z.setShape({points:G,stackedOnPoints:te}),a.updateProps(z,{shape:{points:q,stackedOnPoints:se}},V));for(var re=[],we=Q.status,Oe=0;Oe<we.length;Oe++){var Me=we[Oe].cmd;if(Me==="="){var Qe=M.getItemGraphicEl(we[Oe].idx1);Qe&&re.push({el:Qe,ptIdx:Oe})}}K.animators&&K.animators.length&&K.animators[0].during(function(){for(var Ve=0;Ve<re.length;Ve++){var dt=re[Ve].el;dt.attr("position",K.shape.__points[re[Ve].ptIdx])}})},remove:function(M){var U=this.group,P=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),P&&P.eachItemGraphicEl(function(X,F){X.__temp&&(U.remove(X),P.setItemGraphicEl(F,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});R.exports=k},"8XDt":function(R,D,n){n("qH13");var y=n("aX58"),g=y.registerPainter,S=n("6fms");g("vml",S)},"8XRh":function(R,D,n){"use strict";n.d(D,"a",function(){return Gt});var y=n("rePB"),g=n("VTBJ"),S=n("ODXe"),m=n("U8pU"),p=n("TSYQ"),f=n.n(p),d=n("m+aA"),l=n("c+Xe"),a=n("q1tI"),i=n("Ff2n"),t=["children"],o=a.createContext({});function e(Qt){var Ht=Qt.children,Jt=Object(i.a)(Qt,t);return a.createElement(o.Provider,{value:Jt},Ht)}var u=n("1OyB"),r=n("vuIU"),s=n("Ji7U"),c=n("LK+K"),h=function(Qt){Object(s.a)(Jt,Qt);var Ht=Object(c.a)(Jt);function Jt(){return Object(u.a)(this,Jt),Ht.apply(this,arguments)}return Object(r.a)(Jt,[{key:"render",value:function(){return this.props.children}}]),Jt}(a.Component),v=h,A=n("dm2S"),b="none",x="appear",E="enter",T="leave",_="none",C="prepare",w="start",O="active",I="end",k="prepared",M=n("MNnm");function U(Qt,Ht){var Jt={};return Jt[Qt.toLowerCase()]=Ht.toLowerCase(),Jt["Webkit".concat(Qt)]="webkit".concat(Ht),Jt["Moz".concat(Qt)]="moz".concat(Ht),Jt["ms".concat(Qt)]="MS".concat(Ht),Jt["O".concat(Qt)]="o".concat(Ht.toLowerCase()),Jt}function P(Qt,Ht){var Jt={animationend:U("Animation","AnimationEnd"),transitionend:U("Transition","TransitionEnd")};return Qt&&("AnimationEvent"in Ht||delete Jt.animationend.animation,"TransitionEvent"in Ht||delete Jt.transitionend.transition),Jt}var X=P(Object(M.a)(),typeof window!="undefined"?window:{}),F={};if(Object(M.a)()){var j=document.createElement("div");F=j.style}var K={};function z(Qt){if(K[Qt])return K[Qt];var Ht=X[Qt];if(Ht)for(var Jt=Object.keys(Ht),Ge=Jt.length,pe=0;pe<Ge;pe+=1){var oe=Jt[pe];if(Object.prototype.hasOwnProperty.call(Ht,oe)&&oe in F)return K[Qt]=Ht[oe],K[Qt]}return""}var V=z("animationend"),Q=z("transitionend"),G=!!(V&&Q),te=V||"animationend",q=Q||"transitionend";function se(Qt,Ht){if(!Qt)return null;if(Object(m.a)(Qt)==="object"){var Jt=Ht.replace(/-\w/g,function(Ge){return Ge[1].toUpperCase()});return Qt[Jt]}return"".concat(Qt,"-").concat(Ht)}var re=function(Qt){var Ht=Object(a.useRef)(),Jt=Object(a.useRef)(Qt);Jt.current=Qt;var Ge=a.useCallback(function(ct){Jt.current(ct)},[]);function pe(ct){ct&&(ct.removeEventListener(q,Ge),ct.removeEventListener(te,Ge))}function oe(ct){Ht.current&&Ht.current!==ct&&pe(Ht.current),ct&&ct!==Ht.current&&(ct.addEventListener(q,Ge),ct.addEventListener(te,Ge),Ht.current=ct)}return a.useEffect(function(){return function(){pe(Ht.current)}},[]),[oe,pe]},we=Object(M.a)()?a.useLayoutEffect:a.useEffect,Oe=we,Me=n("wgJM"),Qe=function(){var Qt=a.useRef(null);function Ht(){Me.a.cancel(Qt.current)}function Jt(Ge){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Ht();var oe=Object(Me.a)(function(){pe<=1?Ge({isCanceled:function(){return oe!==Qt.current}}):Jt(Ge,pe-1)});Qt.current=oe}return a.useEffect(function(){return function(){Ht()}},[]),[Jt,Ht]},Ve=[C,w,O,I],dt=[C,k],Fe=!1,ue=!0;function et(Qt){return Qt===O||Qt===I}var he=function(Qt,Ht,Jt){var Ge=Object(A.a)(_),pe=Object(S.a)(Ge,2),oe=pe[0],ct=pe[1],qe=Qe(),me=Object(S.a)(qe,2),Kt=me[0],vr=me[1];function bt(){ct(C,!0)}var or=Ht?dt:Ve;return Oe(function(){if(oe!==_&&oe!==I){var _t=or.indexOf(oe),jt=or[_t+1],ut=Jt(oe);ut===Fe?ct(jt,!0):jt&&Kt(function(St){function mt(){if(St.isCanceled())return;ct(jt,!0)}ut===!0?mt():Promise.resolve(ut).then(mt)})}},[Qt,oe]),a.useEffect(function(){return function(){vr()}},[]),[bt,oe]};function J(Qt,Ht,Jt,Ge){var pe=Ge.motionEnter,oe=pe===void 0?!0:pe,ct=Ge.motionAppear,qe=ct===void 0?!0:ct,me=Ge.motionLeave,Kt=me===void 0?!0:me,vr=Ge.motionDeadline,bt=Ge.motionLeaveImmediately,or=Ge.onAppearPrepare,_t=Ge.onEnterPrepare,jt=Ge.onLeavePrepare,ut=Ge.onAppearStart,St=Ge.onEnterStart,mt=Ge.onLeaveStart,lt=Ge.onAppearActive,tt=Ge.onEnterActive,Cr=Ge.onLeaveActive,nn=Ge.onAppearEnd,mn=Ge.onEnterEnd,Bn=Ge.onLeaveEnd,oi=Ge.onVisibleChanged,wn=Object(A.a)(),Rn=Object(S.a)(wn,2),Zt=Rn[0],Tt=Rn[1],De=Object(A.a)(b),Re=Object(S.a)(De,2),Pe=Re[0],rt=Re[1],wt=Object(A.a)(null),Ot=Object(S.a)(wt,2),$t=Ot[0],Mr=Ot[1],Vr=Object(a.useRef)(!1),hn=Object(a.useRef)(null);function Vt(){return Jt()}var yt=Object(a.useRef)(!1);function xt(){rt(b,!0),Mr(null,!0)}function dr(pi){var _i=Vt();if(pi&&!pi.deadline&&pi.target!==_i)return;var Di=yt.current,Wi;Pe===x&&Di?Wi=nn==null?void 0:nn(_i,pi):Pe===E&&Di?Wi=mn==null?void 0:mn(_i,pi):Pe===T&&Di&&(Wi=Bn==null?void 0:Bn(_i,pi)),Pe!==b&&Di&&Wi!==!1&&xt()}var er=re(dr),Ut=Object(S.a)(er,1),ir=Ut[0],Ft=function(_i){var Di,Wi,at;switch(_i){case x:return Di={},Object(y.a)(Di,C,or),Object(y.a)(Di,w,ut),Object(y.a)(Di,O,lt),Di;case E:return Wi={},Object(y.a)(Wi,C,_t),Object(y.a)(Wi,w,St),Object(y.a)(Wi,O,tt),Wi;case T:return at={},Object(y.a)(at,C,jt),Object(y.a)(at,w,mt),Object(y.a)(at,O,Cr),at;default:return{}}},rr=a.useMemo(function(){return Ft(Pe)},[Pe]),Kr=he(Pe,!Qt,function(pi){if(pi===C){var _i=rr[C];return _i?_i(Vt()):Fe}if(dn in rr){var Di;Mr(((Di=rr[dn])===null||Di===void 0?void 0:Di.call(rr,Vt(),null))||null)}return dn===O&&(ir(Vt()),vr>0&&(clearTimeout(hn.current),hn.current=setTimeout(function(){dr({deadline:!0})},vr))),dn===k&&xt(),ue}),Rr=Object(S.a)(Kr,2),kr=Rr[0],dn=Rr[1],yn=et(dn);yt.current=yn,Oe(function(){Tt(Ht);var pi=Vr.current;Vr.current=!0;var _i;!pi&&Ht&&qe&&(_i=x),pi&&Ht&&oe&&(_i=E),(pi&&!Ht&&Kt||!pi&&bt&&!Ht&&Kt)&&(_i=T);var Di=Ft(_i);_i&&(Qt||Di[C])?(rt(_i),kr()):rt(b)},[Ht]),Object(a.useEffect)(function(){(Pe===x&&!qe||Pe===E&&!oe||Pe===T&&!Kt)&&rt(b)},[qe,oe,Kt]),Object(a.useEffect)(function(){return function(){Vr.current=!1,clearTimeout(hn.current)}},[]);var ri=a.useRef(!1);Object(a.useEffect)(function(){Zt&&(ri.current=!0),Zt!==void 0&&Pe===b&&((ri.current||Zt)&&(oi==null||oi(Zt)),ri.current=!0)},[Zt,Pe]);var $n=$t;return rr[C]&&dn===w&&($n=Object(g.a)({transition:"none"},$n)),[Pe,dn,$n,Zt!=null?Zt:Ht]}function Y(Qt){var Ht=Qt;Object(m.a)(Qt)==="object"&&(Ht=Qt.transitionSupport);function Jt(pe,oe){return!!(pe.motionName&&Ht&&oe!==!1)}var Ge=a.forwardRef(function(pe,oe){var ct=pe.visible,qe=ct===void 0?!0:ct,me=pe.removeOnLeave,Kt=me===void 0?!0:me,vr=pe.forceRender,bt=pe.children,or=pe.motionName,_t=pe.leavedClassName,jt=pe.eventProps,ut=a.useContext(o),St=ut.motion,mt=Jt(pe,St),lt=Object(a.useRef)(),tt=Object(a.useRef)();function Cr(){try{return lt.current instanceof HTMLElement?lt.current:Object(d.a)(tt.current)}catch(Mr){return null}}var nn=J(mt,qe,Cr,pe),mn=Object(S.a)(nn,4),Bn=mn[0],oi=mn[1],wn=mn[2],Rn=mn[3],Zt=a.useRef(Rn);Rn&&(Zt.current=!0);var Tt=a.useCallback(function(Mr){lt.current=Mr,Object(l.b)(oe,Mr)},[oe]),De,Re=Object(g.a)(Object(g.a)({},jt),{},{visible:qe});if(!bt)De=null;else if(Bn===b)Rn?De=bt(Object(g.a)({},Re),Tt):!Kt&&Zt.current&&_t?De=bt(Object(g.a)(Object(g.a)({},Re),{},{className:_t}),Tt):vr||!Kt&&!_t?De=bt(Object(g.a)(Object(g.a)({},Re),{},{style:{display:"none"}}),Tt):De=null;else{var Pe,rt;oi===C?rt="prepare":et(oi)?rt="active":oi===w&&(rt="start");var wt=se(or,"".concat(Bn,"-").concat(rt));De=bt(Object(g.a)(Object(g.a)({},Re),{},{className:f()(se(or,Bn),(Pe={},Object(y.a)(Pe,wt,wt&&rt),Object(y.a)(Pe,or,typeof or=="string"),Pe)),style:wn}),Tt)}if(a.isValidElement(De)&&Object(l.c)(De)){var Ot=De,$t=Ot.ref;$t||(De=a.cloneElement(De,{ref:Tt}))}return a.createElement(v,{ref:tt},De)});return Ge.displayName="CSSMotion",Ge}var $=Y(G),de=n("wx14"),be=n("JX7q"),Te="add",Be="keep",fe="remove",xe="removed";function ke(Qt){var Ht;return Qt&&Object(m.a)(Qt)==="object"&&"key"in Qt?Ht=Qt:Ht={key:Qt},Object(g.a)(Object(g.a)({},Ht),{},{key:String(Ht.key)})}function nt(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Qt.map(ke)}function Ct(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Jt=[],Ge=0,pe=Ht.length,oe=nt(Qt),ct=nt(Ht);oe.forEach(function(Kt){for(var vr=!1,bt=Ge;bt<pe;bt+=1){var or=ct[bt];if(or.key===Kt.key){Ge<bt&&(Jt=Jt.concat(ct.slice(Ge,bt).map(function(_t){return Object(g.a)(Object(g.a)({},_t),{},{status:Te})})),Ge=bt),Jt.push(Object(g.a)(Object(g.a)({},or),{},{status:Be})),Ge+=1,vr=!0;break}}vr||Jt.push(Object(g.a)(Object(g.a)({},Kt),{},{status:fe}))}),Ge<pe&&(Jt=Jt.concat(ct.slice(Ge).map(function(Kt){return Object(g.a)(Object(g.a)({},Kt),{},{status:Te})})));var qe={};Jt.forEach(function(Kt){var vr=Kt.key;qe[vr]=(qe[vr]||0)+1});var me=Object.keys(qe).filter(function(Kt){return qe[Kt]>1});return me.forEach(function(Kt){Jt=Jt.filter(function(vr){var bt=vr.key,or=vr.status;return bt!==Kt||or!==fe}),Jt.forEach(function(vr){vr.key===Kt&&(vr.status=Be)})}),Jt}var pt=["component","children","onVisibleChanged","onAllRemoved"],He=["status"],nr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ht(Qt){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,Jt=function(Ge){Object(s.a)(oe,Ge);var pe=Object(c.a)(oe);function oe(){var ct;Object(u.a)(this,oe);for(var qe=arguments.length,me=new Array(qe),Kt=0;Kt<qe;Kt++)me[Kt]=arguments[Kt];return ct=pe.call.apply(pe,[this].concat(me)),Object(y.a)(Object(be.a)(ct),"state",{keyEntities:[]}),Object(y.a)(Object(be.a)(ct),"removeKey",function(vr){var bt=ct.state.keyEntities,or=bt.map(function(_t){return _t.key!==vr?_t:Object(g.a)(Object(g.a)({},_t),{},{status:xe})});return ct.setState({keyEntities:or}),or.filter(function(_t){var jt=_t.status;return jt!==xe}).length}),ct}return Object(r.a)(oe,[{key:"render",value:function(){var qe=this,me=this.state.keyEntities,Kt=this.props,vr=Kt.component,bt=Kt.children,or=Kt.onVisibleChanged,_t=Kt.onAllRemoved,jt=Object(i.a)(Kt,pt),ut=vr||a.Fragment,St={};return nr.forEach(function(mt){St[mt]=jt[mt],delete jt[mt]}),delete jt.keys,a.createElement(ut,jt,me.map(function(mt,lt){var tt=mt.status,Cr=Object(i.a)(mt,He),nn=tt===Te||tt===Be;return a.createElement(Ht,Object(de.a)({},St,{key:Cr.key,visible:nn,eventProps:Cr,onVisibleChanged:function(Bn){if(or==null||or(Bn,{key:Cr.key}),!Bn){var oi=qe.removeKey(Cr.key);oi===0&&_t&&_t()}}}),function(mn,Bn){return bt(Object(g.a)(Object(g.a)({},mn),{},{index:lt}),Bn)})}))}}],[{key:"getDerivedStateFromProps",value:function(qe,me){var Kt=qe.keys,vr=me.keyEntities,bt=nt(Kt),or=Ct(vr,bt);return{keyEntities:or.filter(function(_t){var jt=vr.find(function(ut){var St=ut.key;return _t.key===St});return!(jt&&jt.status===xe&&_t.status===fe)})}}}]),oe}(a.Component);return Object(y.a)(Jt,"defaultProps",{component:"div"}),Jt}var Gt=ht(G),pr=D.b=$},"8hn6":function(R,D){var n="#eee",y=function(){return{axisLine:{lineStyle:{color:n}},axisTick:{lineStyle:{color:n}},axisLabel:{textStyle:{color:n}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:n}}}},g=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],S={color:g,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:n},crossStyle:{color:n},label:{color:"#000"}}},legend:{textStyle:{color:n}},textStyle:{color:n},title:{textStyle:{color:n}},toolbox:{iconStyle:{normal:{borderColor:n}}},dataZoom:{textStyle:{color:n}},visualMap:{textStyle:{color:n}},timeline:{lineStyle:{color:n},itemStyle:{normal:{color:g[1]}},label:{normal:{textStyle:{color:n}}},controlStyle:{normal:{color:n,borderColor:n}}},timeAxis:y(),logAxis:y(),valueAxis:y(),categoryAxis:y(),line:{symbol:"circle"},graph:{color:g},gauge:{title:{textStyle:{color:n}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};S.categoryAxis.splitLine.show=!1;var m=S;R.exports=m},"8nMs":function(R,D,n){var y=n("bYtY"),g=n("IwbS"),S=n("+rIm"),m=n("Znkb"),p=n("AVZG"),f=n("WN+l"),d=f.rectCoordAxisBuildSplitArea,l=f.rectCoordAxisHandleRemove,a=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine","minorSplitLine"],t=m.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(o,e,u,r){this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new g.Group,this.group.add(this._axisGroup),!o.get("show"))return;var c=o.getCoordSysModel(),h=p.layout(c,o),v=new S(o,h);y.each(a,v.add,v),this._axisGroup.add(v.getGroup()),y.each(i,function(A){o.get(A+".show")&&this["_"+A](o,c)},this),g.groupTransition(s,this._axisGroup,o),t.superCall(this,"render",o,e,u,r)},remove:function(){l(this)},_splitLine:function(o,e){var u=o.axis;if(u.scale.isBlank())return;var r=o.getModel("splitLine"),s=r.getModel("lineStyle"),c=s.get("color");c=y.isArray(c)?c:[c];for(var h=e.coordinateSystem.getRect(),v=u.isHorizontal(),A=0,b=u.getTicksCoords({tickModel:r}),x=[],E=[],T=s.getLineStyle(),_=0;_<b.length;_++){var C=u.toGlobalCoord(b[_].coord);v?(x[0]=C,x[1]=h.y,E[0]=C,E[1]=h.y+h.height):(x[0]=h.x,x[1]=C,E[0]=h.x+h.width,E[1]=C);var w=A++%c.length,O=b[_].tickValue;this._axisGroup.add(new g.Line({anid:O!=null?"line_"+b[_].tickValue:null,subPixelOptimize:!0,shape:{x1:x[0],y1:x[1],x2:E[0],y2:E[1]},style:y.defaults({stroke:c[w]},T),silent:!0}))}},_minorSplitLine:function(o,e){var u=o.axis,r=o.getModel("minorSplitLine"),s=r.getModel("lineStyle"),c=e.coordinateSystem.getRect(),h=u.isHorizontal(),v=u.getMinorTicksCoords();if(!v.length)return;for(var A=[],b=[],x=s.getLineStyle(),E=0;E<v.length;E++)for(var T=0;T<v[E].length;T++){var _=u.toGlobalCoord(v[E][T].coord);h?(A[0]=_,A[1]=c.y,b[0]=_,b[1]=c.y+c.height):(A[0]=c.x,A[1]=_,b[0]=c.x+c.width,b[1]=_),this._axisGroup.add(new g.Line({anid:"minor_line_"+v[E][T].tickValue,subPixelOptimize:!0,shape:{x1:A[0],y1:A[1],x2:b[0],y2:b[1]},style:x,silent:!0}))}},_splitArea:function(o,e){d(this,this._axisGroup,o,e)}});t.extend({type:"xAxis"}),t.extend({type:"yAxis"})},"8nly":function(R,D,n){var y=n("mFDi"),g=n("4mN7"),S=n("QBsz"),m=n("BlVb");function p(d,l,a){if(this.name=d,this.geometries=l,a)a=[a[0],a[1]];else{var i=this.getBoundingRect();a=[i.x+i.width/2,i.y+i.height/2]}this.center=a}p.prototype={constructor:p,properties:null,getBoundingRect:function(){var d=this._rect;if(d)return d;for(var l=Number.MAX_VALUE,a=[l,l],i=[-l,-l],t=[],o=[],e=this.geometries,u=0;u<e.length;u++){if(e[u].type!=="polygon")continue;var r=e[u].exterior;g.fromPoints(r,t,o),S.min(a,a,t),S.max(i,i,o)}return u===0&&(a[0]=a[1]=i[0]=i[1]=0),this._rect=new y(a[0],a[1],i[0]-a[0],i[1]-a[1])},contain:function(d){var l=this.getBoundingRect(),a=this.geometries;if(!l.contain(d[0],d[1]))return!1;e:for(var i=0,t=a.length;i<t;i++){if(a[i].type!=="polygon")continue;var o=a[i].exterior,e=a[i].interiors;if(m.contain(o,d[0],d[1])){for(var u=0;u<(e?e.length:0);u++)if(m.contain(e[u]))continue e;return!0}}return!1},transformTo:function(d,l,a,i){var t=this.getBoundingRect(),o=t.width/t.height;a?i||(i=a/o):a=o*i;for(var e=new y(d,l,a,i),u=t.calculateTransform(e),r=this.geometries,s=0;s<r.length;s++){if(r[s].type!=="polygon")continue;for(var c=r[s].exterior,h=r[s].interiors,v=0;v<c.length;v++)S.applyTransform(c[v],c[v],u);for(var A=0;A<(h?h.length:0);A++)for(var v=0;v<h[A].length;v++)S.applyTransform(h[A][v],h[A][v],u)}t=this._rect,t.copy(e),this.center=[t.x+t.width/2,t.y+t.height/2]},cloneShallow:function(d){d==null&&(d=this.name);var l=new p(d,this.geometries,this.center);return l._rect=this._rect,l.transformTo=null,l}};var f=p;R.exports=f},"8txm":function(R,D,n){},"8waO":function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("iLNv"),m=n("ZWlE");n("hJvP"),n("IXyC"),n("xRUu");var p=5;y.extendComponentView({type:"parallel",render:function(l,a,i){this._model=l,this._api=i,this._handlers||(this._handlers={},g.each(f,function(t,o){i.getZr().on(o,this._handlers[o]=g.bind(t,this))},this)),S.createOrUpdate(this,"_throttledDispatchExpand",l.get("axisExpandRate"),"fixRate")},dispose:function(l,a){g.each(this._handlers,function(i,t){a.getZr().off(t,i)}),this._handlers=null},_throttledDispatchExpand:function(l){this._dispatchExpand(l)},_dispatchExpand:function(l){l&&this._api.dispatchAction(g.extend({type:"parallelAxisExpand"},l))}});var f={mousedown:function(l){d(this,"click")&&(this._mouseDownPoint=[l.offsetX,l.offsetY])},mouseup:function(l){var a=this._mouseDownPoint;if(d(this,"click")&&a){var i=[l.offsetX,l.offsetY],t=Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2);if(t>p)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([l.offsetX,l.offsetY]);o.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(l){if(this._mouseDownPoint||!d(this,"mousemove"))return;var a=this._model,i=a.coordinateSystem.getSlidedAxisExpandWindow([l.offsetX,l.offsetY]),t=i.behavior;t==="jump"&&this._throttledDispatchExpand.debounceNextCall(a.get("axisExpandDebounce")),this._throttledDispatchExpand(t==="none"?null:{axisExpandWindow:i.axisExpandWindow,animation:t==="jump"?null:!1})}};function d(l,a){var i=l._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===a}y.registerPreprocessor(m)},"8x+h":function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("ProS"),m=n("bYtY"),p=n("K4ya"),f=n("Qxkt"),d=["#ddd"],l=S.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(t,o){var e=this.option;!o&&p.replaceVisualOption(e,t,["inBrush","outOfBrush"]);var u=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:d},u.hasOwnProperty("liftZ")||(u.liftZ=5)},setAreas:function(t){if(!t)return;this.areas=m.map(t,function(o){return a(this.option,o)},this)},setBrushOption:function(t){this.brushOption=a(this.option,t),this.brushType=this.brushOption.brushType}});function a(t,o){return m.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new f(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},o,!0)}var i=l;R.exports=i},"8z0m":function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("RIqP"),m=n.n(S),p=n("pVnL"),f=n.n(p),d=n("J4zp"),l=n.n(d),a=n("q1tI"),i=n.n(a),t=n("TSYQ"),o=n.n(t);function e(ut,St){var mt="cannot "+ut.method+" "+ut.action+" "+St.status+"'",lt=new Error(mt);return lt.status=St.status,lt.method=ut.method,lt.url=ut.action,lt}function u(ut){var St=ut.responseText||ut.response;if(!St)return St;try{return JSON.parse(St)}catch(mt){return St}}function r(ut){var St=new XMLHttpRequest;ut.onProgress&&St.upload&&(St.upload.onprogress=function(Cr){Cr.total>0&&(Cr.percent=Cr.loaded/Cr.total*100),ut.onProgress(Cr)});var mt=new FormData;ut.data&&Object.keys(ut.data).forEach(function(tt){var Cr=ut.data[tt];if(Array.isArray(Cr)){Cr.forEach(function(nn){mt.append(tt+"[]",nn)});return}mt.append(tt,ut.data[tt])}),ut.file instanceof Blob?mt.append(ut.filename,ut.file,ut.file.name):mt.append(ut.filename,ut.file),St.onerror=function(Cr){ut.onError(Cr)},St.onload=function(){return St.status<200||St.status>=300?ut.onError(e(ut,St),u(St)):ut.onSuccess(u(St),St)},St.open(ut.method,ut.action,!0),ut.withCredentials&&"withCredentials"in St&&(St.withCredentials=!0);var lt=ut.headers||{};return lt["X-Requested-With"]!==null&&St.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(lt).forEach(function(tt){lt[tt]!==null&&St.setRequestHeader(tt,lt[tt])}),St.send(mt),{abort:function(){St.abort()}}}var s=+new Date,c=0;function h(){return"rc-upload-"+s+"-"+ ++c}function v(ut,St){return ut.indexOf(St,ut.length-St.length)!==-1}var A=function(ut,St){if(ut&&St){var mt=Array.isArray(St)?St:St.split(","),lt=ut.name||"",tt=ut.type||"",Cr=tt.replace(/\/.*$/,"");return mt.some(function(nn){var mn=nn.trim();return mn.charAt(0)==="."?v(lt.toLowerCase(),mn.toLowerCase()):/\/\*$/.test(mn)?Cr===mn.replace(/\/.*$/,""):tt===mn})}return!0};function b(ut,St){var mt=ut.createReader(),lt=[];function tt(){mt.readEntries(function(Cr){var nn=Array.prototype.slice.apply(Cr);lt=lt.concat(nn);var mn=!nn.length;mn?St(lt):tt()})}tt()}var x=function(St,mt,lt){var tt=function Cr(nn,mn){mn=mn||"",nn.isFile?nn.file(function(Bn){lt(Bn)&&(nn.fullPath&&!Bn.webkitRelativePath&&(Object.defineProperties(Bn,{webkitRelativePath:{writable:!0}}),Bn.webkitRelativePath=nn.fullPath.replace(/^\//,""),Object.defineProperties(Bn,{webkitRelativePath:{writable:!1}})),mt([Bn]))}):nn.isDirectory&&b(nn,function(Bn){Bn.forEach(function(oi){Cr(oi,""+mn+nn.name+"/")})})};St.forEach(function(Cr){tt(Cr.webkitGetAsEntry())})},E=x,T=Object.assign||function(ut){for(var St=1;St<arguments.length;St++){var mt=arguments[St];for(var lt in mt)Object.prototype.hasOwnProperty.call(mt,lt)&&(ut[lt]=mt[lt])}return ut},_=function(){function ut(St,mt){var lt=[],tt=!0,Cr=!1,nn=void 0;try{for(var mn=St[Symbol.iterator](),Bn;!(tt=(Bn=mn.next()).done)&&!(lt.push(Bn.value),mt&&lt.length===mt);tt=!0);}catch(oi){Cr=!0,nn=oi}finally{try{!tt&&mn.return&&mn.return()}finally{if(Cr)throw nn}}return lt}return function(St,mt){if(Array.isArray(St))return St;if(Symbol.iterator in Object(St))return ut(St,mt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),C=function(){function ut(St,mt){for(var lt=0;lt<mt.length;lt++){var tt=mt[lt];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(St,tt.key,tt)}}return function(St,mt,lt){return mt&&ut(St.prototype,mt),lt&&ut(St,lt),St}}();function w(ut,St,mt){return St in ut?Object.defineProperty(ut,St,{value:mt,enumerable:!0,configurable:!0,writable:!0}):ut[St]=mt,ut}function O(ut,St){var mt={};for(var lt in ut){if(St.indexOf(lt)>=0)continue;if(!Object.prototype.hasOwnProperty.call(ut,lt))continue;mt[lt]=ut[lt]}return mt}function I(ut,St){if(!(ut instanceof St))throw new TypeError("Cannot call a class as a function")}function k(ut,St){if(!ut)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:ut}function M(ut,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);ut.prototype=Object.create(St&&St.prototype,{constructor:{value:ut,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(ut,St):ut.__proto__=St)}var U=function(St){return Object.keys(St).reduce(function(mt,lt){return(lt.substr(0,5)==="data-"||lt.substr(0,5)==="aria-"||lt==="role")&&(mt[lt]=St[lt]),mt},{})},P=function(ut){M(St,ut);function St(){var mt,lt,tt,Cr;I(this,St);for(var nn=arguments.length,mn=Array(nn),Bn=0;Bn<nn;Bn++)mn[Bn]=arguments[Bn];return Cr=(lt=(tt=k(this,(mt=St.__proto__||Object.getPrototypeOf(St)).call.apply(mt,[this].concat(mn))),tt),tt.state={uid:h()},tt.reqs={},tt.onChange=function(oi){var wn=oi.target.files;tt.uploadFiles(wn),tt.reset()},tt.onClick=function(oi){var wn=tt.fileInput;if(!wn)return;var Rn=tt.props,Zt=Rn.children,Tt=Rn.onClick;Zt&&Zt.type==="button"&&(wn.parentNode.focus(),wn.parentNode.querySelector("button").blur()),wn.click(),Tt&&Tt(oi)},tt.onKeyDown=function(oi){oi.key==="Enter"&&tt.onClick()},tt.onFileDrop=function(oi){var wn=tt.props.multiple;if(oi.preventDefault(),oi.type==="dragover")return;if(tt.props.directory)E(Array.prototype.slice.call(oi.dataTransfer.items),tt.uploadFiles,function(Zt){return A(Zt,tt.props.accept)});else{var Rn=Array.prototype.slice.call(oi.dataTransfer.files).filter(function(Zt){return A(Zt,tt.props.accept)});wn===!1&&(Rn=Rn.slice(0,1)),tt.uploadFiles(Rn)}},tt.uploadFiles=function(oi){var wn=Array.prototype.slice.call(oi);wn.map(function(Rn){return Rn.uid=h(),Rn}).forEach(function(Rn){tt.upload(Rn,wn)})},tt.saveFileInput=function(oi){tt.fileInput=oi},lt),k(tt,Cr)}return C(St,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(lt,tt){var Cr=this,nn=this.props;if(!nn.beforeUpload)return setTimeout(function(){return Cr.post(lt)},0);var mn=nn.beforeUpload(lt,tt);mn&&mn.then?mn.then(function(Bn){var oi=Object.prototype.toString.call(Bn);return oi==="[object File]"||oi==="[object Blob]"?Cr.post(Bn):Cr.post(lt)}).catch(function(Bn){console.log(Bn)}):mn!==!1&&setTimeout(function(){return Cr.post(lt)},0);return}},{key:"post",value:function(lt){var tt=this;if(!this._isMounted)return;var Cr=this.props,nn=Cr.onStart,mn=Cr.onProgress,Bn=Cr.transformFile,oi=Bn===void 0?function(wn){return wn}:Bn;new Promise(function(wn){var Rn=Cr.action;return typeof Rn=="function"&&(Rn=Rn(lt)),wn(Rn)}).then(function(wn){var Rn=lt.uid,Zt=Cr.customRequest||r,Tt=Promise.resolve(oi(lt)).then(function(De){var Re=Cr.data;return typeof Re=="function"&&(Re=Re(De)),Promise.all([De,Re])}).catch(function(De){console.error(De)});Tt.then(function(De){var Re=_(De,2),Pe=Re[0],rt=Re[1],wt={action:wn,filename:Cr.name,data:rt,file:Pe,headers:Cr.headers,withCredentials:Cr.withCredentials,method:Cr.method||"post",onProgress:mn?function(Ot){mn(Ot,lt)}:null,onSuccess:function($t,Mr){delete tt.reqs[Rn],Cr.onSuccess($t,lt,Mr)},onError:function($t,Mr){delete tt.reqs[Rn],Cr.onError($t,Mr,lt)}};nn(lt),tt.reqs[Rn]=Zt(wt)})})}},{key:"reset",value:function(){this.setState({uid:h()})}},{key:"abort",value:function(lt){var tt=this.reqs;if(lt){var Cr=lt;lt&&lt.uid&&(Cr=lt.uid),tt[Cr]&&tt[Cr].abort&&tt[Cr].abort(),delete tt[Cr]}else Object.keys(tt).forEach(function(nn){tt[nn]&&tt[nn].abort&&tt[nn].abort(),delete tt[nn]})}},{key:"render",value:function(){var lt,tt=this.props,Cr=tt.component,nn=tt.prefixCls,mn=tt.className,Bn=tt.disabled,oi=tt.id,wn=tt.style,Rn=tt.multiple,Zt=tt.accept,Tt=tt.children,De=tt.directory,Re=tt.openFileDialogOnClick,Pe=tt.onMouseEnter,rt=tt.onMouseLeave,wt=O(tt,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),Ot=o()((lt={},w(lt,nn,!0),w(lt,nn+"-disabled",Bn),w(lt,mn,mn),lt)),$t=Bn?{}:{onClick:Re?this.onClick:function(){},onKeyDown:Re?this.onKeyDown:function(){},onMouseEnter:Pe,onMouseLeave:rt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return i.a.createElement(Cr,T({},$t,{className:Ot,role:"button",style:wn}),i.a.createElement("input",T({},U(wt),{id:oi,type:"file",ref:this.saveFileInput,onClick:function(Vr){return Vr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Zt,directory:De?"directory":null,webkitdirectory:De?"webkitdirectory":null,multiple:Rn,onChange:this.onChange})),Tt)}}]),St}(a.Component),X=P,F=Object.assign||function(ut){for(var St=1;St<arguments.length;St++){var mt=arguments[St];for(var lt in mt)Object.prototype.hasOwnProperty.call(mt,lt)&&(ut[lt]=mt[lt])}return ut},j=function(){function ut(St,mt){for(var lt=0;lt<mt.length;lt++){var tt=mt[lt];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(St,tt.key,tt)}}return function(St,mt,lt){return mt&&ut(St.prototype,mt),lt&&ut(St,lt),St}}();function K(ut,St){if(!(ut instanceof St))throw new TypeError("Cannot call a class as a function")}function z(ut,St){if(!ut)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:ut}function V(ut,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);ut.prototype=Object.create(St&&St.prototype,{constructor:{value:ut,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(ut,St):ut.__proto__=St)}function Q(){}var G=function(ut){V(St,ut);function St(){var mt,lt,tt,Cr;K(this,St);for(var nn=arguments.length,mn=Array(nn),Bn=0;Bn<nn;Bn++)mn[Bn]=arguments[Bn];return Cr=(lt=(tt=z(this,(mt=St.__proto__||Object.getPrototypeOf(St)).call.apply(mt,[this].concat(mn))),tt),tt.saveUploader=function(oi){tt.uploader=oi},lt),z(tt,Cr)}return j(St,[{key:"abort",value:function(lt){this.uploader.abort(lt)}},{key:"render",value:function(){return i.a.createElement(X,F({},this.props,{ref:this.saveUploader}))}}]),St}(a.Component);G.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Q,onError:Q,onSuccess:Q,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var te=G,q=te,se=function(ut,St){var mt={};for(var lt in ut)Object.prototype.hasOwnProperty.call(ut,lt)&&St.indexOf(lt)<0&&(mt[lt]=ut[lt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,lt=Object.getOwnPropertySymbols(ut);tt<lt.length;tt++)St.indexOf(lt[tt])<0&&Object.prototype.propertyIsEnumerable.call(ut,lt[tt])&&(mt[lt[tt]]=ut[lt[tt]]);return mt},re=function(St,mt){var lt=St.style,tt=St.height,Cr=se(St,["style","height"]);return a.createElement(_t,f()({ref:mt},Cr,{type:"drag",style:f()(f()({},lt),{height:tt})}))},we=a.forwardRef(re);we.displayName="Dragger";var Oe=we,Me=n("UmKh"),Qe=n("gZBC"),Ve=n.n(Qe),dt=n("+d4F"),Fe=n.n(dt),ue=n("XAae"),et=n.n(ue),he=n("6xvX"),J=n.n(he),Y=n("qPY4"),$=n.n(Y),de=n("QB+1"),be=n.n(de),Te=n("Qs3X"),Be=n.n(Te),fe=n("0n0R");function xe(){return!0}function ke(ut){return f()(f()({},ut),{lastModified:ut.lastModified,lastModifiedDate:ut.lastModifiedDate,name:ut.name,size:ut.size,type:ut.type,uid:ut.uid,percent:0,originFileObj:ut})}function nt(ut,St){var mt=ut.uid!==void 0?"uid":"name";return St.filter(function(lt){return lt[mt]===ut[mt]})[0]}function Ct(ut,St){var mt=ut.uid!==void 0?"uid":"name",lt=St.filter(function(tt){return tt[mt]!==ut[mt]});return lt.length===St.length?null:lt}var pt=function(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",mt=St.split("/"),lt=mt[mt.length-1],tt=lt.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(tt)||[""])[0]},He=function(St){return St.indexOf("image/")===0},nr=function(St){if(St.type&&!St.thumbUrl)return He(St.type);var mt=St.thumbUrl||St.url,lt=pt(mt);return/^data:image\//.test(mt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(lt)?!0:/^data:/.test(mt)?!1:!lt},ht=200;function Gt(ut){return new Promise(function(St){if(!ut.type||!He(ut.type)){St("");return}var mt=document.createElement("canvas");mt.width=ht,mt.height=ht,mt.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ht,"px; height: ").concat(ht,"px; z-index: 9999; display: none;"),document.body.appendChild(mt);var lt=mt.getContext("2d"),tt=new Image;tt.onload=function(){var Cr=tt.width,nn=tt.height,mn=ht,Bn=ht,oi=0,wn=0;Cr<nn?(Bn=nn*(ht/Cr),wn=-(Bn-mn)/2):(mn=Cr*(ht/nn),oi=-(mn-Bn)/2),lt.drawImage(tt,oi,wn,mn,Bn);var Rn=mt.toDataURL();document.body.removeChild(mt),St(Rn)},tt.src=window.URL.createObjectURL(ut)})}var pr=n("3S7+"),Qt=n("CFYs"),Ht=n("H84U"),Jt=n("2/Rp"),Ge=n("hkKa"),pe=function(St,mt){var lt,tt=St.listType,Cr=St.previewFile,nn=St.onPreview,mn=St.onDownload,Bn=St.onRemove,oi=St.locale,wn=St.iconRender,Rn=St.isImageUrl,Zt=St.prefixCls,Tt=St.items,De=Tt===void 0?[]:Tt,Re=St.showPreviewIcon,Pe=St.showRemoveIcon,rt=St.showDownloadIcon,wt=St.removeIcon,Ot=St.downloadIcon,$t=St.progress,Mr=Object(Ge.a)();a.useEffect(function(){if(tt!=="picture"&&tt!=="picture-card")return;(De||[]).forEach(function(Rr){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Rr.originFileObj instanceof File||Rr.originFileObj instanceof Blob)||Rr.thumbUrl!==void 0)return;Rr.thumbUrl="",Cr&&Cr(Rr.originFileObj).then(function(kr){Rr.thumbUrl=kr||"",Mr()})})},[tt,De,Cr]);var Vr=function(kr,dn){return nn?(dn.preventDefault(),nn(kr)):void 0},hn=function(kr){typeof mn=="function"?mn(kr):kr.url&&window.open(kr.url)},Vt=function(kr){Bn&&Bn(kr)},yt=function(kr){if(wn)return wn(kr,tt);var dn=kr.status==="uploading",yn=Rn&&Rn(kr)?a.createElement(et.a,null):a.createElement(J.a,null),ri=dn?a.createElement(Ve.a,null):a.createElement(Fe.a,null);return tt==="picture"?ri=dn?a.createElement(Ve.a,null):yn:tt==="picture-card"&&(ri=dn?oi.uploading:yn),ri},xt=function(kr,dn,yn,ri){var $n={type:"text",size:"small",title:ri,onClick:function(Di){dn(),Object(fe.b)(kr)&&kr.props.onClick&&kr.props.onClick(Di)},className:"".concat(yn,"-list-item-card-actions-btn")};if(Object(fe.b)(kr)){var pi=Object(fe.a)(kr,f()(f()({},kr.props),{onClick:function(){}}));return a.createElement(Jt.a,f()({},$n,{icon:pi}))}return a.createElement(Jt.a,$n,a.createElement("span",null,kr))};a.useImperativeHandle(mt,function(){return{handlePreview:Vr,handleDownload:hn}});var dr=a.useContext(Ht.b),er=dr.getPrefixCls,Ut=dr.direction,ir=er("upload",Zt),Ft=De.map(function(Rr){var kr,dn,yn,ri=yt(Rr),$n=a.createElement("div",{className:"".concat(ir,"-text-icon")},ri);if(tt==="picture"||tt==="picture-card")if(Rr.status==="uploading"||!Rr.thumbUrl&&!Rr.url){var pi,_i=o()((pi={},g()(pi,"".concat(ir,"-list-item-thumbnail"),!0),g()(pi,"".concat(ir,"-list-item-file"),Rr.status!=="uploading"),pi));$n=a.createElement("div",{className:_i},ri)}else{var Di,Wi=Rn&&Rn(Rr)?a.createElement("img",{src:Rr.thumbUrl||Rr.url,alt:Rr.name,className:"".concat(ir,"-list-item-image")}):ri,at=o()((Di={},g()(Di,"".concat(ir,"-list-item-thumbnail"),!0),g()(Di,"".concat(ir,"-list-item-file"),Rn&&!Rn(Rr)),Di));$n=a.createElement("a",{className:at,onClick:function(xn){return Vr(Rr,xn)},href:Rr.url||Rr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Wi)}if(Rr.status==="uploading"){var Le="percent"in Rr?a.createElement(Qt.a,f()({},$t,{type:"line",percent:Rr.percent})):null;yn=a.createElement("div",{className:"".concat(ir,"-list-item-progress"),key:"progress"},Le)}var je=o()((kr={},g()(kr,"".concat(ir,"-list-item"),!0),g()(kr,"".concat(ir,"-list-item-").concat(Rr.status),!0),g()(kr,"".concat(ir,"-list-item-list-type-").concat(tt),!0),kr)),Xe=typeof Rr.linkProps=="string"?JSON.parse(Rr.linkProps):Rr.linkProps,it=Pe?xt(wt||a.createElement(be.a,null),function(){return Vt(Rr)},ir,oi.removeFile):null,Ze=rt&&Rr.status==="done"?xt(Ot||a.createElement(Be.a,null),function(){return hn(Rr)},ir,oi.downloadFile):null,ot=tt!=="picture-card"&&a.createElement("span",{key:"download-delete",className:"".concat(ir,"-list-item-card-actions ").concat(tt==="picture"?"picture":"")},Ze,it),Lt=o()((dn={},g()(dn,"".concat(ir,"-list-item-name"),!0),g()(dn,"".concat(ir,"-list-item-name-icon-count-").concat([Ze,it].filter(function(jn){return jn}).length),!0),dn)),At=Rr.url?[a.createElement("a",f()({key:"view",target:"_blank",rel:"noopener noreferrer",className:Lt,title:Rr.name},Xe,{href:Rr.url,onClick:function(xn){return Vr(Rr,xn)}}),Rr.name),ot]:[a.createElement("span",{key:"view",className:Lt,onClick:function(xn){return Vr(Rr,xn)},title:Rr.name},Rr.name),ot],mr={pointerEvents:"none",opacity:.5},qr=Re?a.createElement("a",{href:Rr.url||Rr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Rr.url||Rr.thumbUrl?void 0:mr,onClick:function(xn){return Vr(Rr,xn)},title:oi.previewFile},a.createElement($.a,null)):null,Qr=tt==="picture-card"&&Rr.status!=="uploading"&&a.createElement("span",{className:"".concat(ir,"-list-item-actions")},qr,Rr.status==="done"&&Ze,it),gn;Rr.response&&typeof Rr.response=="string"?gn=Rr.response:gn=Rr.error&&Rr.error.statusText||oi.uploadError;var yr=a.createElement("span",null,$n,At),Vn=a.createElement("div",{className:je},a.createElement("div",{className:"".concat(ir,"-list-item-info")},yr),Qr,a.createElement(Me.a,{transitionName:"fade",component:""},yn)),Br=o()(g()({},"".concat(ir,"-list-picture-card-container"),tt==="picture-card"));return a.createElement("div",{key:Rr.uid,className:Br},Rr.status==="error"?a.createElement(pr.a,{title:gn,getPopupContainer:function(xn){return xn.parentNode}},Vn):a.createElement("span",null,Vn))}),rr=o()((lt={},g()(lt,"".concat(ir,"-list"),!0),g()(lt,"".concat(ir,"-list-").concat(tt),!0),g()(lt,"".concat(ir,"-list-rtl"),Ut==="rtl"),lt)),Kr=tt==="picture-card"?"animate-inline":"animate";return a.createElement(Me.a,{transitionName:"".concat(ir,"-").concat(Kr),component:"div",className:rr},Ft)},oe=a.forwardRef(pe);oe.displayName="UploadList",oe.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:Gt,isImageUrl:nr};var ct=oe,qe=n("YMnH"),me=n("ZvpZ"),Kt=n("uaoM"),vr=n("sPtV"),bt=function(St,mt){var lt,tt=St.fileList,Cr=St.defaultFileList,nn=St.onRemove,mn=St.showUploadList,Bn=St.listType,oi=St.onPreview,wn=St.onDownload,Rn=St.previewFile,Zt=St.disabled,Tt=St.locale,De=St.iconRender,Re=St.isImageUrl,Pe=St.progress,rt=St.prefixCls,wt=St.className,Ot=St.type,$t=St.children,Mr=St.style,Vr=Object(vr.a)(tt||Cr||[]),hn=l()(Vr,2),Vt=hn[0],yt=hn[1],xt=a.useState("drop"),dr=l()(xt,2),er=dr[0],Ut=dr[1],ir=a.useRef();a.useEffect(function(){yt(tt||Cr||[]),Object(Kt.a)("fileList"in St||!("value"in St),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),a.useEffect(function(){"fileList"in St&&yt(tt||[])},[tt]);var Ft=function(At){"fileList"in St||yt(At.fileList);var mr=St.onChange;mr&&mr(f()(f()({},At),{fileList:m()(At.fileList)}))},rr=function(At){var mr=ke(At);mr.status="uploading";var qr=Vt().concat(),Qr=qr.findIndex(function(gn){var yr=gn.uid;return yr===mr.uid});Qr===-1?qr.push(mr):qr[Qr]=mr,Ft({file:mr,fileList:qr})},Kr=function(At,mr,qr){try{typeof At=="string"&&(At=JSON.parse(At))}catch(gn){}var Qr=nt(mr,Vt());if(!Qr)return;Qr.status="done",Qr.response=At,Qr.xhr=qr,Ft({file:f()({},Qr),fileList:Vt().concat()})},Rr=function(At,mr){var qr=nt(mr,Vt());if(!qr)return;qr.percent=At.percent,Ft({event:At,file:f()({},qr),fileList:Vt().concat()})},kr=function(At,mr,qr){var Qr=nt(qr,Vt());if(!Qr)return;Qr.error=At,Qr.response=mr,Qr.status="error",Ft({file:f()({},Qr),fileList:Vt().concat()})},dn=function(At){Promise.resolve(typeof nn=="function"?nn(At):nn).then(function(mr){if(mr===!1)return;var qr=Ct(At,Vt());qr&&(At.status="removed",ir.current&&ir.current.abort(At),Ft({file:At,fileList:qr}))})},yn=function(At){Ut(At.type)},ri=function(At,mr){var qr=St.beforeUpload;if(!qr)return!0;var Qr=qr(At,mr);if(Qr===!1){var gn=[];return Vt().concat(mr.map(ke)).forEach(function(yr){gn.every(function(Vn){return Vn.uid!==yr.uid})&&gn.push(yr)}),Ft({file:At,fileList:gn}),!1}return Qr&&Qr.then?Qr:!0},$n=Object(Ge.a)();a.useImperativeHandle(mt,function(){return{onStart:rr,onSuccess:Kr,onProgress:Rr,onError:kr,fileList:Vt(),upload:ir.current,forceUpdate:$n}});var pi=function(At){var mr=mn.showRemoveIcon,qr=mn.showPreviewIcon,Qr=mn.showDownloadIcon,gn=mn.removeIcon,yr=mn.downloadIcon;return a.createElement(ct,{listType:Bn,items:Vt(),previewFile:Rn,onPreview:oi,onDownload:wn,onRemove:dn,showRemoveIcon:!Zt&&mr,showPreviewIcon:qr,showDownloadIcon:Qr,removeIcon:gn,downloadIcon:yr,iconRender:De,locale:f()(f()({},At),Tt),isImageUrl:Re,progress:Pe})},_i=a.useContext(Ht.b),Di=_i.getPrefixCls,Wi=_i.direction,at=Di("upload",rt),Le=f()(f()({onStart:rr,onError:kr,onProgress:Rr,onSuccess:Kr},St),{prefixCls:at,beforeUpload:ri});delete Le.className,delete Le.style,(!$t||Zt)&&delete Le.id;var je=mn?a.createElement(qe.a,{componentName:"Upload",defaultLocale:me.a.Upload},pi):null;if(Ot==="drag"){var Xe,it=o()(at,(Xe={},g()(Xe,"".concat(at,"-drag"),!0),g()(Xe,"".concat(at,"-drag-uploading"),Vt().some(function(Lt){return Lt.status==="uploading"})),g()(Xe,"".concat(at,"-drag-hover"),er==="dragover"),g()(Xe,"".concat(at,"-disabled"),Zt),g()(Xe,"".concat(at,"-rtl"),Wi==="rtl"),Xe),wt);return a.createElement("span",null,a.createElement("div",{className:it,onDrop:yn,onDragOver:yn,onDragLeave:yn,style:Mr},a.createElement(q,f()({},Le,{ref:ir,className:"".concat(at,"-btn")}),a.createElement("div",{className:"".concat(at,"-drag-container")},$t))),je)}var Ze=o()(at,(lt={},g()(lt,"".concat(at,"-select"),!0),g()(lt,"".concat(at,"-select-").concat(Bn),!0),g()(lt,"".concat(at,"-disabled"),Zt),g()(lt,"".concat(at,"-rtl"),Wi==="rtl"),lt)),ot=a.createElement("div",{className:Ze,style:$t?void 0:{display:"none"}},a.createElement(q,f()({},Le,{ref:ir})));return Bn==="picture-card"?a.createElement("span",{className:o()(wt,"".concat(at,"-picture-card-wrapper"))},je,ot):a.createElement("span",{className:wt},ot,je)},or=a.forwardRef(bt);or.Dragger=Oe,or.displayName="Upload",or.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:xe,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var _t=or;_t.Dragger=Oe;var jt=D.a=_t},"98bh":function(R,D,n){var y=n("ProS"),g=n("5GtS"),S=n("bYtY"),m=n("4NO4"),p=n("OELB"),f=p.getPercentWithPrecision,d=n("cCMj"),l=n("KxfA"),a=l.retrieveRawAttr,i=n("D5nY"),t=i.makeSeriesEncodeForNameBased,o=n("xKMd"),e=y.extendSeriesModel({type:"series.pie",init:function(r){e.superApply(this,"init",arguments),this.legendVisualProvider=new o(S.bind(this.getData,this),S.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(r)},mergeOption:function(r){e.superCall(this,"mergeOption",r),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(r,s){return g(this,{coordDimensions:["value"],encodeDefaulter:S.curry(t,this)})},_createSelectableList:function(){for(var r=this.getRawData(),s=r.mapDimension("value"),c=[],h=0,v=r.count();h<v;h++)c.push({name:r.getName(h),value:r.get(s,h),selected:a(r,h,"selected")});return c},getDataParams:function(r){var s=this.getData(),c=e.superCall(this,"getDataParams",r),h=[];return s.each(s.mapDimension("value"),function(v){h.push(v)}),c.percent=f(h,r,s.hostModel.get("percentPrecision")),c.$vars.push("percent"),c},_defaultLabelLine:function(r){m.defaultEmphasis(r,"labelLine",["show"]);var s=r.labelLine,c=r.emphasis.labelLine;s.show=s.show&&r.label.show,c.show=c.show&&r.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"}});S.mixin(e,d);var u=e;R.exports=u},"9H2F":function(R,D,n){var y=n("bYtY"),g=y.assert,S=y.isArray,m=n("Tghj"),p=m.__DEV__;function f(o){return new d(o)}function d(o){o=o||{},this._reset=o.reset,this._plan=o.plan,this._count=o.count,this._onDirty=o.onDirty,this._dirty=!0,this.context}var l=d.prototype;l.perform=function(o){var e=this._upstream,u=o&&o.skip;if(this._dirty&&e){var r=this.context;r.data=r.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var s;this._plan&&!u&&(s=this._plan(this.context));var c=b(this._modBy),h=this._modDataCount||0,v=b(o&&o.modBy),A=o&&o.modDataCount||0;(c!==v||h!==A)&&(s="reset");function b(I){return!(I>=1)&&(I=1),I}var x;(this._dirty||s==="reset")&&(this._dirty=!1,x=t(this,u)),this._modBy=v,this._modDataCount=A;var E=o&&o.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var T=this._dueIndex,_=Math.min(E!=null?this._dueIndex+E:Infinity,this._dueEnd);if(!u&&(x||T<_)){var C=this._progress;if(S(C))for(var w=0;w<C.length;w++)i(this,C[w],T,_,v,A);else i(this,C,T,_,v,A)}this._dueIndex=_;var O=this._settedOutputEnd!=null?this._settedOutputEnd:_;this._outputDueEnd=O}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var a=function(){var o,e,u,r,s,c={reset:function(A,b,x,E){e=A,o=b,u=x,r=E,s=Math.ceil(r/u),c.next=u>1&&r>0?v:h}};return c;function h(){return e<o?e++:null}function v(){var A=e%s*u+Math.ceil(e/s),b=e>=o?null:A<r?A:e;return e++,b}}();l.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function i(o,e,u,r,s,c){a.reset(u,r,s,c),o._callingProgress=e,o._callingProgress({start:u,end:r,count:r-u,next:a.next},o.context)}function t(o,e){o._dueIndex=o._outputDueEnd=o._dueEnd=0,o._settedOutputEnd=null;var u,r;!e&&o._reset&&(u=o._reset(o.context),u&&u.progress&&(r=u.forceFirstProgress,u=u.progress),S(u)&&!u.length&&(u=null)),o._progress=u,o._modBy=o._modDataCount=null;var s=o._downstream;return s&&s.dirty(),r}l.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},l.pipe=function(o){(this._downstream!==o||this._dirty)&&(this._downstream=o,o._upstream=this,o.dirty())},l.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},l.getUpstream=function(){return this._upstream},l.getDownstream=function(){return this._downstream},l.setOutputEnd=function(o){this._outputDueEnd=this._settedOutputEnd=o},D.createTask=f},"9KIM":function(R,D,n){var y=n("mFDi"),g=n("xSat"),S=g.onIrrelevantElement,m=n("IwbS");function p(a){return a=l(a),function(i,t){return m.clipPointsByRect(i,a)}}function f(a,i){return a=l(a),function(t){var o=i!=null?i:t,e=o?a.width:a.height,u=o?a.x:a.y;return[u,u+(e||0)]}}function d(a,i,t){return a=l(a),function(o,e,u){return a.contain(e[0],e[1])&&!S(o,i,t)}}function l(a){return y.create(a)}D.makeRectPanelClipPath=p,D.makeLinearBrushOtherExtent=f,D.makeRectIsTargetByCursor=d},"9OqN":function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.CTR=function(){var g=y.lib.BlockCipherMode.extend(),S=g.Encryptor=g.extend({processBlock:function(p,f){var d=this._cipher,l=d.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0);var t=i.slice(0);d.encryptBlock(t,0),i[l-1]=i[l-1]+1|0;for(var o=0;o<l;o++)p[f+o]^=t[o]}});return g.Decryptor=S,g}(),y.mode.CTR})},"9ama":function(R,D,n){},"9eas":function(R,D,n){n("HM/N"),n("tBnm")},"9hCq":function(R,D,n){var y=n("IwbS"),g=n("+TT/"),S=n("bYtY"),m=n("VaxA"),p=m.wrapTreePathInfo,f=8,d=8,l=5;function a(e){this.group=new y.Group,e.add(this.group)}a.prototype={constructor:a,render:function(e,u,r,s){var c=e.getModel("breadcrumb"),h=this.group;if(h.removeAll(),!c.get("show")||!r)return;var v=c.getModel("itemStyle"),A=v.getModel("textStyle"),b={pos:{left:c.get("left"),right:c.get("right"),top:c.get("top"),bottom:c.get("bottom")},box:{width:u.getWidth(),height:u.getHeight()},emptyItemWidth:c.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,b,A),this._renderContent(e,b,v,A,s),g.positionElement(h,b.pos,b.box)},_prepare:function(e,u,r){for(var s=e;s;s=s.parentNode){var c=s.getModel().get("name"),h=r.getTextRect(c),v=Math.max(h.width+f*2,u.emptyItemWidth);u.totalWidth+=v+d,u.renderList.push({node:s,text:c,width:v})}},_renderContent:function(e,u,r,s,c){for(var h=0,v=u.emptyItemWidth,A=e.get("breadcrumb.height"),b=g.getAvailableSize(u.pos,u.box),x=u.totalWidth,E=u.renderList,T=E.length-1;T>=0;T--){var _=E[T],C=_.node,w=_.width,O=_.text;x>b.width&&(x-=w-v,w=v,O=null);var I=new y.Polygon({shape:{points:i(h,0,w,A,T===E.length-1,T===0)},style:S.defaults(r.getItemStyle(),{lineJoin:"bevel",text:O,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:S.curry(c,C)});this.group.add(I),t(I,e,C),h+=w+d}},remove:function(){this.group.removeAll()}};function i(e,u,r,s,c,h){var v=[[c?e:e-l,u],[e+r,u],[e+r,u+s],[c?e:e-l,u+s]];return!h&&v.splice(2,0,[e+r+l,u+s/2]),!c&&v.push([e,u+s/2]),v}function t(e,u,r){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:u.componentIndex,seriesIndex:u.componentIndex,seriesName:u.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&p(r,u)}}var o=a;R.exports=o},"9u0u":function(R,D,n){var y=n("bYtY");function g(m,p){var f={};return y.each(m,function(d){d.each(d.mapDimension("value"),function(l,a){var i="ec-"+d.getName(a);f[i]=f[i]||[],isNaN(l)||f[i].push(l)})}),m[0].map(m[0].mapDimension("value"),function(d,l){for(var a="ec-"+m[0].getName(l),i=0,t=Infinity,o=-Infinity,e=f[a].length,u=0;u<e;u++)t=Math.min(t,f[a][u]),o=Math.max(o,f[a][u]),i+=f[a][u];var r;return p==="min"?r=t:p==="max"?r=o:p==="average"?r=i/e:r=i,e===0?NaN:r})}function S(m){var p={};m.eachSeriesByType("map",function(f){var d=f.getHostGeoModel(),l=d?"o"+d.id:"i"+f.getMapType();(p[l]=p[l]||[]).push(f)}),y.each(p,function(f,d){for(var l=g(y.map(f,function(i){return i.getData()}),f[0].get("mapValueCalculation")),a=0;a<f.length;a++)f[a].originalData=f[a].getData();for(var a=0;a<f.length;a++)f[a].seriesGroup=f,f[a].needsDrawMap=a===0&&!f[a].getHostGeoModel(),f[a].setData(l.cloneShallow()),f[a].mainSeries=f[0]})}R.exports=S},"9wZj":function(R,D,n){var y=n("IwbS"),g=n("FBjb"),S=n("bYtY"),m=S.isObject;function p(t){this.group=new y.Group,this._symbolCtor=t||g}var f=p.prototype;function d(t,o,e,u){return o&&!isNaN(o[0])&&!isNaN(o[1])&&!(u.isIgnore&&u.isIgnore(e))&&!(u.clipShape&&!u.clipShape.contain(o[0],o[1]))&&t.getItemVisual(e,"symbol")!=="none"}f.updateData=function(t,o){o=l(o);var e=this.group,u=t.hostModel,r=this._data,s=this._symbolCtor,c=a(t);r||e.removeAll(),t.diff(r).add(function(h){var v=t.getItemLayout(h);if(d(t,v,h,o)){var A=new s(t,h,c);A.attr("position",v),t.setItemGraphicEl(h,A),e.add(A)}}).update(function(h,v){var A=r.getItemGraphicEl(v),b=t.getItemLayout(h);if(!d(t,b,h,o)){e.remove(A);return}A?(A.updateData(t,h,c),y.updateProps(A,{position:b},u)):(A=new s(t,h),A.attr("position",b)),e.add(A),t.setItemGraphicEl(h,A)}).remove(function(h){var v=r.getItemGraphicEl(h);v&&v.fadeOut(function(){e.remove(v)})}).execute(),this._data=t},f.isPersistent=function(){return!0},f.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(o,e){var u=t.getItemLayout(e);o.attr("position",u)})},f.incrementalPrepareUpdate=function(t){this._seriesScope=a(t),this._data=null,this.group.removeAll()},f.incrementalUpdate=function(t,o,e){e=l(e);function u(h){h.isGroup||(h.incremental=h.useHoverLayer=!0)}for(var r=t.start;r<t.end;r++){var s=o.getItemLayout(r);if(d(o,s,r,e)){var c=new this._symbolCtor(o,r,this._seriesScope);c.traverse(u),c.attr("position",s),this.group.add(c),o.setItemGraphicEl(r,c)}}};function l(t){return t!=null&&!m(t)&&(t={isIgnore:t}),t||{}}f.remove=function(t){var o=this.group,e=this._data;e&&t?e.eachItemGraphicEl(function(u){u.fadeOut(function(){o.remove(u)})}):o.removeAll()};function a(t){var o=t.hostModel;return{itemStyle:o.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:o.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:o.get("symbolRotate"),symbolOffset:o.get("symbolOffset"),hoverAnimation:o.get("hoverAnimation"),labelModel:o.getModel("label"),hoverLabelModel:o.getModel("emphasis.label"),cursorStyle:o.get("cursor")}}var i=p;R.exports=i},"9yH6":function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("pVnL"),m=n.n(S),p=n("q1tI"),f=n("x1Ya"),d=n("TSYQ"),l=n.n(d),a=n("H84U"),i=p.createContext(null),t=i.Provider,o=i,e=n("ID/q"),u=n("uaoM"),r=function(k,M){var U={};for(var P in k)Object.prototype.hasOwnProperty.call(k,P)&&M.indexOf(P)<0&&(U[P]=k[P]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(k);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(k,P[X])&&(U[P[X]]=k[P[X]]);return U},s=function(M,U){var P,X=p.useContext(o),F=p.useContext(a.b),j=F.getPrefixCls,K=F.direction,z=p.useRef(),V=Object(e.a)(U,z);p.useEffect(function(){Object(u.a)(!("optionType"in M),"Radio","`optionType` is only support in Radio.Group.")},[]);var Q=function(Ve){M.onChange&&M.onChange(Ve),(X==null?void 0:X.onChange)&&X.onChange(Ve)},G=M.prefixCls,te=M.className,q=M.children,se=M.style,re=r(M,["prefixCls","className","children","style"]),we=j("radio",G),Oe=m()({},re);X&&(Oe.name=X.name,Oe.onChange=Q,Oe.checked=M.value===X.value,Oe.disabled=M.disabled||X.disabled);var Me=l()(te,(P={},g()(P,"".concat(we,"-wrapper"),!0),g()(P,"".concat(we,"-wrapper-checked"),Oe.checked),g()(P,"".concat(we,"-wrapper-disabled"),Oe.disabled),g()(P,"".concat(we,"-wrapper-rtl"),K==="rtl"),P));return p.createElement("label",{className:Me,style:se,onMouseEnter:M.onMouseEnter,onMouseLeave:M.onMouseLeave},p.createElement(f.a,m()({},Oe,{prefixCls:we,ref:V})),q!==void 0?p.createElement("span",null,q):null)},c=p.forwardRef(s);c.displayName="Radio",c.defaultProps={type:"radio"};var h=c,v=n("J4zp"),A=n.n(v),b=n("6cGi"),x=n("3Nzz"),E=p.forwardRef(function(k,M){var U=p.useContext(a.b),P=U.getPrefixCls,X=U.direction,F=p.useContext(x.b),j=Object(b.a)(k.defaultValue,{value:k.value}),K=A()(j,2),z=K[0],V=K[1],Q=function(q){var se=z,re=q.target.value;"value"in k||V(re);var we=k.onChange;we&&re!==se&&we(q)},G=function(){var q,se=k.prefixCls,re=k.className,we=re===void 0?"":re,Oe=k.options,Me=k.optionType,Qe=k.buttonStyle,Ve=k.disabled,dt=k.children,Fe=k.size,ue=k.style,et=k.id,he=k.onMouseEnter,J=k.onMouseLeave,Y=P("radio",se),$="".concat(Y,"-group"),de=dt;if(Oe&&Oe.length>0){var be=Me==="button"?"".concat(Y,"-button"):Y;de=Oe.map(function(fe){return typeof fe=="string"?p.createElement(h,{ref:M,key:fe,prefixCls:be,disabled:Ve,value:fe,checked:z===fe},fe):p.createElement(h,{ref:M,key:"radio-group-value-options-".concat(fe.value),prefixCls:be,disabled:fe.disabled||Ve,value:fe.value,checked:z===fe.value,style:fe.style},fe.label)})}var Te=Fe||F,Be=l()($,"".concat($,"-").concat(Qe),(q={},g()(q,"".concat($,"-").concat(Te),Te),g()(q,"".concat($,"-rtl"),X==="rtl"),q),we);return p.createElement("div",{className:Be,style:ue,onMouseEnter:he,onMouseLeave:J,id:et},de)};return p.createElement(t,{value:{onChange:Q,value:z,disabled:k.disabled,name:k.name}},G())});E.defaultProps={buttonStyle:"outline"};var T=p.memo(E),_=function(k,M){var U={};for(var P in k)Object.prototype.hasOwnProperty.call(k,P)&&M.indexOf(P)<0&&(U[P]=k[P]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(k);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(k,P[X])&&(U[P[X]]=k[P[X]]);return U},C=function(M,U){var P=p.useContext(o),X=p.useContext(a.b),F=X.getPrefixCls,j=M.prefixCls,K=_(M,["prefixCls"]),z=F("radio-button",j);return P&&(K.checked=M.value===P.value,K.disabled=M.disabled||P.disabled),p.createElement(h,m()({prefixCls:z},K,{type:"radio",ref:U}))},w=p.forwardRef(C),O=h;O.Button=w,O.Group=T;var I=D.a=O},A1Ka:function(R,D,n){var y=n("bLfw"),g=n("sS/r"),S=n("D5nY"),m=S.detectSourceFormat,p=n("k9D9"),f=p.SERIES_LAYOUT_BY_COLUMN;y.extend({type:"dataset",defaultOption:{seriesLayoutBy:f,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){m(this)}}),g.extend({type:"dataset"})},A90E:function(R,D,n){var y=n("6sVZ"),g=n("V6Ve"),S=Object.prototype,m=S.hasOwnProperty;function p(f){if(!y(f))return g(f);var d=[];for(var l in Object(f))m.call(f,l)&&l!="constructor"&&d.push(l);return d}R.exports=p},ABKa:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("Qs9O")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="FolderOutlined";var i=m.forwardRef(a);D.default=i},AE9C:function(R,D,n){var y=n("bYtY"),g=n("crZl"),S=n("IwbS"),m=n("oVpE"),p=m.createSymbol,f=n("+TT/"),d=n("y7Aq"),l=g.extend({type:"visualMap.piecewise",doRender:function(){var i=this.group;i.removeAll();var t=this.visualMapModel,o=t.get("textGap"),e=t.textStyleModel,u=e.getFont(),r=e.getTextColor(),s=this._getItemAlign(),c=t.itemSize,h=this._getViewData(),v=h.endsText,A=y.retrieve(t.get("showLabel",!0),!v);v&&this._renderEndsText(i,v[0],c,A,s),y.each(h.viewPieceList,b,this),v&&this._renderEndsText(i,v[1],c,A,s),f.box(t.get("orient"),i,t.get("itemGap")),this.renderBackground(i),this.positionGroup(i);function b(x){var E=x.piece,T=new S.Group;T.onclick=y.bind(this._onItemClick,this,E),this._enableHoverLink(T,x.indexInModelPieceList);var _=t.getRepresentValue(E);if(this._createItemSymbol(T,_,[0,0,c[0],c[1]]),A){var C=this.visualMapModel.getValueState(_);T.add(new S.Text({style:{x:s==="right"?-o:c[0]+o,y:c[1]/2,text:E.text,textVerticalAlign:"middle",textAlign:s,textFont:u,textFill:r,opacity:C==="outOfRange"?.5:1}}))}i.add(T)}},_enableHoverLink:function(i,t){i.on("mouseover",y.bind(o,this,"highlight")).on("mouseout",y.bind(o,this,"downplay"));function o(e){var u=this.visualMapModel;u.option.hoverLink&&this.api.dispatchAction({type:e,batch:d.makeHighDownBatch(u.findTargetDataIndices(t),u)})}},_getItemAlign:function(){var i=this.visualMapModel,t=i.option;if(t.orient==="vertical")return d.getItemAlign(i,this.api,i.itemSize);var o=t.align;return(!o||o==="auto")&&(o="left"),o},_renderEndsText:function(i,t,o,e,u){if(!t)return;var r=new S.Group,s=this.visualMapModel.textStyleModel;r.add(new S.Text({style:{x:e?u==="right"?o[0]:0:o[0]/2,y:o[1]/2,textVerticalAlign:"middle",textAlign:e?u:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),i.add(r)},_getViewData:function(){var i=this.visualMapModel,t=y.map(i.getPieceList(),function(r,s){return{piece:r,indexInModelPieceList:s}}),o=i.get("text"),e=i.get("orient"),u=i.get("inverse");return(e==="horizontal"?u:!u)?t.reverse():o&&(o=o.slice().reverse()),{viewPieceList:t,endsText:o}},_createItemSymbol:function(i,t,o){i.add(p(this.getControllerVisual(t,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(t,"color")))},_onItemClick:function(i){var t=this.visualMapModel,o=t.option,e=y.clone(o.selected),u=t.getSelectedMapKey(i);o.selectedMode==="single"?(e[u]=!0,y.each(e,function(r,s){e[s]=s===u})):e[u]=!e[u],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),a=l;R.exports=a},AEZ6:function(R,D,n){var y=n("bYtY"),g=y.each,S=y.createHashMap,m=n("T4UG"),p=n("MwEJ"),f=m.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(a,i){var t=this.getSource();return d(t,this),p(t,this)},getRawIndicesByActiveState:function(a){var i=this.coordinateSystem,t=this.getData(),o=[];return i.eachActiveState(t,function(e,u){a===e&&o.push(t.getRawIndex(u))}),o},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 d(a,i){if(a.encodeDefine)return;var t=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(!t)return;var o=a.encodeDefine=S();g(t.dimensions,function(e){var u=l(e);o.set(e,u)})}function l(a){return+a.replace("dim","")}R.exports=f},AH3D:function(R,D,n){var y=n("ProS");n("y4/Y"),n("qWt2"),n("Qvb6"),y.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),y.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},ALo7:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("5GtS"),m=n("4NO4"),p=m.defaultEmphasis,f=n("D5nY"),d=f.makeSeriesEncodeForNameBased,l=n("xKMd"),a=y.extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendVisualProvider=new l(g.bind(this.getData,this),g.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,o){return S(this,{coordDimensions:["value"],encodeDefaulter:g.curry(d,this)})},_defaultLabelLine:function(t){p(t,"labelLine",["show"]);var o=t.labelLine,e=t.emphasis.labelLine;o.show=o.show&&t.label.show,e.show=e.show&&t.emphasis.label.show},getDataParams:function(t){var o=this.getData(),e=a.superCall(this,"getDataParams",t),u=o.mapDimension("value"),r=o.getSum(u);return e.percent=r?+(o.get(u,t)/r*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}}}}),i=a;R.exports=i},ALsQ:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.CFB=function(){var g=y.lib.BlockCipherMode.extend();g.Encryptor=g.extend({processBlock:function(p,f){var d=this._cipher,l=d.blockSize;S.call(this,p,f,l,d),this._prevBlock=p.slice(f,f+l)}}),g.Decryptor=g.extend({processBlock:function(p,f){var d=this._cipher,l=d.blockSize,a=p.slice(f,f+l);S.call(this,p,f,l,d),this._prevBlock=a}});function S(m,p,f,d){var l,a=this._iv;a?(l=a.slice(0),this._iv=void 0):l=this._prevBlock,d.encryptBlock(l,0);for(var i=0;i<f;i++)m[p+i]^=l[i]}return g}(),y.mode.CFB})},ANjR:function(R,D,n){var y=n("bYtY");function g(m,p){return p=p||[0,0],y.map([0,1],function(f){var d=p[f],l=m[f]/2,a=[],i=[];return a[f]=d-l,i[f]=d+l,a[1-f]=i[1-f]=p[1-f],Math.abs(this.dataToPoint(a)[f]-this.dataToPoint(i)[f])},this)}function S(m){var p=m.getBoundingRect();return{coordSys:{type:"geo",x:p.x,y:p.y,width:p.width,height:p.height,zoom:m.getZoom()},api:{coord:function(f){return m.dataToPoint(f)},size:y.bind(g,m)}}}R.exports=S},AOa7:function(R,D,n){},AUH6:function(R,D,n){var y=n("bYtY"),g=n("mFDi"),S=n("bMXI"),m=n("W4dC");function p(l,a,i,t){S.call(this,l),this.map=a;var o=m.load(a,i);this._nameCoordMap=o.nameCoordMap,this._regionsMap=o.regionsMap,this._invertLongitute=t==null?!0:t,this.regions=o.regions,this._rect=o.boundingRect}p.prototype={constructor:p,type:"geo",dimensions:["lng","lat"],containCoord:function(l){for(var a=this.regions,i=0;i<a.length;i++)if(a[i].contain(l))return!0;return!1},transformTo:function(l,a,i,t){var o=this.getBoundingRect(),e=this._invertLongitute;o=o.clone(),e&&(o.y=-o.y-o.height);var u=this._rawTransformable;if(u.transform=o.calculateTransform(new g(l,a,i,t)),u.decomposeTransform(),e){var r=u.scale;r[1]=-r[1]}u.updateTransform(),this._updateTransform()},getRegion:function(l){return this._regionsMap.get(l)},getRegionByCoord:function(l){for(var a=this.regions,i=0;i<a.length;i++)if(a[i].contain(l))return a[i]},addGeoCoord:function(l,a){this._nameCoordMap.set(l,a)},getGeoCoord:function(l){return this._nameCoordMap.get(l)},getBoundingRect:function(){return this._rect},dataToPoint:function(l,a,i){if(typeof l=="string"&&(l=this.getGeoCoord(l)),l)return S.prototype.dataToPoint.call(this,l,a,i)},convertToPixel:y.curry(f,"dataToPoint"),convertFromPixel:y.curry(f,"pointToData")},y.mixin(p,S);function f(l,a,i,t){var o=i.geoModel,e=i.seriesModel,u=o?o.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return u===this?u[l](t):null}var d=p;R.exports=d},AVZG:function(R,D,n){var y=n("bYtY");function g(S,m,p){p=p||{};var f=S.coordinateSystem,d=m.axis,l={},a=d.getAxesOnZeroOf()[0],i=d.position,t=a?"onZero":i,o=d.dim,e=f.getRect(),u=[e.x,e.x+e.width,e.y,e.y+e.height],r={left:0,right:1,top:0,bottom:1,onZero:2},s=m.get("offset")||0,c=o==="x"?[u[2]-s,u[3]+s]:[u[0]-s,u[1]+s];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));c[r.onZero]=Math.max(Math.min(h,c[1]),c[0])}l.position=[o==="y"?c[r[t]]:u[0],o==="x"?c[r[t]]:u[3]],l.rotation=Math.PI/2*(o==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};l.labelDirection=l.tickDirection=l.nameDirection=v[i],l.labelOffset=a?c[r[i]]-c[r.onZero]:0,m.get("axisTick.inside")&&(l.tickDirection=-l.tickDirection),y.retrieve(p.labelInside,m.get("axisLabel.inside"))&&(l.labelDirection=-l.labelDirection);var A=m.get("axisLabel.rotate");return l.labelRotate=t==="top"?-A:A,l.z2=1,l}D.layout=g},"Ae+d":function(R,D){function n(g,S,m){var p=g.target,f=p.position;f[0]+=S,f[1]+=m,p.dirty()}function y(g,S,m,p){var f=g.target,d=g.zoomLimit,l=f.position,a=f.scale,i=g.zoom=g.zoom||1;if(i*=S,d){var t=d.min||0,o=d.max||Infinity;i=Math.max(Math.min(o,i),t)}var e=i/g.zoom;g.zoom=i,l[0]-=(m-l[0])*(e-1),l[1]-=(p-l[1])*(e-1),a[0]*=e,a[1]*=e,f.dirty()}D.updateViewOnPan=n,D.updateViewOnZoom=y},Ae16:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("IwbS");n("Wqna"),n("rySg"),y.extendComponentView({type:"grid",render:function(m,p){this.group.removeAll(),m.get("show")&&this.group.add(new S.Rect({shape:m.coordinateSystem.getRect(),style:g.defaults({fill:m.get("backgroundColor")},m.getItemStyle()),silent:!0,z2:-1}))}}),y.registerPreprocessor(function(m){m.xAxis&&m.yAxis&&!m.grid&&(m.grid={})})},Awhp:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("PQMj"),m=n.n(S)},"B+YJ":function(R,D,n){n("TYVI"),n("p1MT")},"B6l+":function(R,D,n){var y=n("Sq3C"),g=n("Z1HP"),S=n("Sxd8"),m=n("dt0z");function p(f,d,l){f=m(f),d=S(d);var a=d?g(f):0;return d&&a<d?f+y(d-a,l):f}R.exports=p},B8du:function(R,D){function n(){return!1}R.exports=n},B9cy:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("0XgM"),m=n.n(S)},B9fm:function(R,D,n){var y=n("bYtY"),g=n("Qe9p"),S=n("YH21"),m=n("Ze12"),p=n("ItGF"),f=n("7aKB"),d=y.each,l=f.toCamelCase,a=["","-webkit-","-moz-","-o-"],i="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function t(c){var h="cubic-bezier(0.23, 1, 0.32, 1)",v="left "+c+"s "+h+",top "+c+"s "+h;return y.map(a,function(A){return A+"transition:"+v}).join(";")}function o(c){var h=[],v=c.get("fontSize"),A=c.getTextColor();return A&&h.push("color:"+A),h.push("font:"+c.getFont()),v&&h.push("line-height:"+Math.round(v*3/2)+"px"),d(["decoration","align"],function(b){var x=c.get(b);x&&h.push("text-"+b+":"+x)}),h.join(";")}function e(c){var h=[],v=c.get("transitionDuration"),A=c.get("backgroundColor"),b=c.getModel("textStyle"),x=c.get("padding");return v&&h.push(t(v)),A&&(p.canvasSupported?h.push("background-Color:"+A):(h.push("background-Color:#"+g.toHex(A)),h.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(E){var T="border-"+E,_=l(T),C=c.get(_);C!=null&&h.push(T+":"+C+(E==="color"?"":"px"))}),h.push(o(b)),x!=null&&h.push("padding:"+f.normalizeCssArray(x).join("px ")+"px"),h.join(";")+";"}function u(c,h,v,A,b){var x=h&&h.painter;if(v){var E=x&&x.getViewportRoot();E&&m.transformLocalCoord(c,E,document.body,A,b)}else{c[0]=A,c[1]=b;var T=x&&x.getViewportRootOffset();T&&(c[0]+=T.offsetLeft,c[1]+=T.offsetTop)}}function r(c,h,v){if(p.wxa)return null;var A=document.createElement("div");A.domBelongToZr=!0,this.el=A;var b=this._zr=h.getZr(),x=this._appendToBody=v&&v.appendToBody;this._styleCoord=[0,0],u(this._styleCoord,b,x,h.getWidth()/2,h.getHeight()/2),x?document.body.appendChild(A):c.appendChild(A),this._container=c,this._show=!1,this._hideTimeout;var E=this;A.onmouseenter=function(){E._enterable&&(clearTimeout(E._hideTimeout),E._show=!0),E._inContent=!0},A.onmousemove=function(T){if(T=T||window.event,!E._enterable){var _=b.handler,C=b.painter.getViewportRoot();S.normalizeEvent(C,T,!0),_.dispatch("mousemove",T)}},A.onmouseleave=function(){E._enterable&&(E._show&&E.hideLater(E._hideDelay)),E._inContent=!1}}r.prototype={constructor:r,_enterable:!0,update:function(){var c=this._container,h=c.currentStyle||document.defaultView.getComputedStyle(c),v=c.style;v.position!=="absolute"&&h.position!=="absolute"&&(v.position="relative")},show:function(c){clearTimeout(this._hideTimeout);var h=this.el,v=this._styleCoord;h.style.cssText=i+e(c)+";left:"+v[0]+"px;top:"+v[1]+"px;"+(c.get("extraCssText")||""),h.style.display=h.innerHTML?"block":"none",h.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(c){this.el.innerHTML=c==null?"":c},setEnterable:function(c){this._enterable=c},getSize:function(){var c=this.el;return[c.clientWidth,c.clientHeight]},moveTo:function(c,h){var v=this._styleCoord;u(v,this._zr,this._appendToBody,c,h);var A=this.el.style;A.left=v[0]+"px",A.top=v[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(c){this._show&&!(this._inContent&&this._enterable)&&(c?(this._hideDelay=c,this._show=!1,this._hideTimeout=setTimeout(y.bind(this.hide,this),c)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var c=this.el.clientWidth,h=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var v=document.defaultView.getComputedStyle(this.el);v&&(c+=parseInt(v.borderLeftWidth,10)+parseInt(v.borderRightWidth,10),h+=parseInt(v.borderTopWidth,10)+parseInt(v.borderBottomWidth,10))}return{width:c,height:h}}};var s=r;R.exports=s},BPZU:function(R,D){var n=32,y=7,g=256;function S(t){for(var o=0;t>=n;)o|=t&1,t>>=1;return t+o}function m(t,o,e,u){var r=o+1;if(r===e)return 1;if(u(t[r++],t[o])<0){for(;r<e&&u(t[r],t[r-1])<0;)r++;p(t,o,r)}else for(;r<e&&u(t[r],t[r-1])>=0;)r++;return r-o}function p(t,o,e){for(e--;o<e;){var u=t[o];t[o++]=t[e],t[e--]=u}}function f(t,o,e,u,r){for(u===o&&u++;u<e;u++){for(var s=t[u],c=o,h=u,v;c<h;)v=c+h>>>1,r(s,t[v])<0?h=v:c=v+1;var A=u-c;switch(A){case 3:t[c+3]=t[c+2];case 2:t[c+2]=t[c+1];case 1:t[c+1]=t[c];break;default:for(;A>0;)t[c+A]=t[c+A-1],A--}t[c]=s}}function d(t,o,e,u,r,s){var c=0,h=0,v=1;if(s(t,o[e+r])>0){for(h=u-r;v<h&&s(t,o[e+r+v])>0;)c=v,v=(v<<1)+1,v<=0&&(v=h);v>h&&(v=h),c+=r,v+=r}else{for(h=r+1;v<h&&s(t,o[e+r-v])<=0;)c=v,v=(v<<1)+1,v<=0&&(v=h);v>h&&(v=h);var A=c;c=r-v,v=r-A}for(c++;c<v;){var b=c+(v-c>>>1);s(t,o[e+b])>0?c=b+1:v=b}return v}function l(t,o,e,u,r,s){var c=0,h=0,v=1;if(s(t,o[e+r])<0){for(h=r+1;v<h&&s(t,o[e+r-v])<0;)c=v,v=(v<<1)+1,v<=0&&(v=h);v>h&&(v=h);var A=c;c=r-v,v=r-A}else{for(h=u-r;v<h&&s(t,o[e+r+v])>=0;)c=v,v=(v<<1)+1,v<=0&&(v=h);v>h&&(v=h),c+=r,v+=r}for(c++;c<v;){var b=c+(v-c>>>1);s(t,o[e+b])<0?v=b:c=b+1}return v}function a(t,o){var e=y,u=0,r=g,s=0,c,h,v=0;u=t.length,u<2*g&&(r=u>>>1);var A=[];s=u<120?5:u<1542?10:u<119151?19:40,c=[],h=[];function b(w,O){c[v]=w,h[v]=O,v+=1}function x(){for(;v>1;){var w=v-2;if(w>=1&&h[w-1]<=h[w]+h[w+1]||w>=2&&h[w-2]<=h[w]+h[w-1])h[w-1]<h[w+1]&&w--;else if(h[w]>h[w+1])break;T(w)}}function E(){for(;v>1;){var w=v-2;w>0&&h[w-1]<h[w+1]&&w--,T(w)}}function T(w){var O=c[w],I=h[w],k=c[w+1],M=h[w+1];h[w]=I+M,w===v-3&&(c[w+1]=c[w+2],h[w+1]=h[w+2]),v--;var U=l(t[k],t,O,I,0,o);if(O+=U,I-=U,I===0)return;if(M=d(t[O+I-1],t,k,M,M-1,o),M===0)return;I<=M?_(O,I,k,M):C(O,I,k,M)}function _(w,O,I,k){var M=0;for(M=0;M<O;M++)A[M]=t[w+M];var U=0,P=I,X=w;if(t[X++]=t[P++],--k===0){for(M=0;M<O;M++)t[X+M]=A[U+M];return}if(O===1){for(M=0;M<k;M++)t[X+M]=t[P+M];t[X+k]=A[U];return}for(var F=e,j,K,z;;){j=0,K=0,z=!1;do if(o(t[P],A[U])<0){if(t[X++]=t[P++],K++,j=0,--k===0){z=!0;break}}else if(t[X++]=A[U++],j++,K=0,--O===1){z=!0;break}while((j|K)<F);if(z)break;do{if(j=l(t[P],A,U,O,0,o),j!==0){for(M=0;M<j;M++)t[X+M]=A[U+M];if(X+=j,U+=j,O-=j,O<=1){z=!0;break}}if(t[X++]=t[P++],--k===0){z=!0;break}if(K=d(A[U],t,P,k,0,o),K!==0){for(M=0;M<K;M++)t[X+M]=t[P+M];if(X+=K,P+=K,k-=K,k===0){z=!0;break}}if(t[X++]=A[U++],--O===1){z=!0;break}F--}while(j>=y||K>=y);if(z)break;F<0&&(F=0),F+=2}if(e=F,e<1&&(e=1),O===1){for(M=0;M<k;M++)t[X+M]=t[P+M];t[X+k]=A[U]}else{if(O===0)throw new Error;for(M=0;M<O;M++)t[X+M]=A[U+M]}}function C(w,O,I,k){var M=0;for(M=0;M<k;M++)A[M]=t[I+M];var U=w+O-1,P=k-1,X=I+k-1,F=0,j=0;if(t[X--]=t[U--],--O===0){for(F=X-(k-1),M=0;M<k;M++)t[F+M]=A[M];return}if(k===1){for(X-=O,U-=O,j=X+1,F=U+1,M=O-1;M>=0;M--)t[j+M]=t[F+M];t[X]=A[P];return}for(var K=e;;){var z=0,V=0,Q=!1;do if(o(A[P],t[U])<0){if(t[X--]=t[U--],z++,V=0,--O===0){Q=!0;break}}else if(t[X--]=A[P--],V++,z=0,--k===1){Q=!0;break}while((z|V)<K);if(Q)break;do{if(z=O-l(A[P],t,w,O,O-1,o),z!==0){for(X-=z,U-=z,O-=z,j=X+1,F=U+1,M=z-1;M>=0;M--)t[j+M]=t[F+M];if(O===0){Q=!0;break}}if(t[X--]=A[P--],--k===1){Q=!0;break}if(V=k-d(t[U],A,0,k,k-1,o),V!==0){for(X-=V,P-=V,k-=V,j=X+1,F=P+1,M=0;M<V;M++)t[j+M]=A[F+M];if(k<=1){Q=!0;break}}if(t[X--]=t[U--],--O===0){Q=!0;break}K--}while(z>=y||V>=y);if(Q)break;K<0&&(K=0),K+=2}if(e=K,e<1&&(e=1),k===1){for(X-=O,U-=O,j=X+1,F=U+1,M=O-1;M>=0;M--)t[j+M]=t[F+M];t[X]=A[P]}else{if(k===0)throw new Error;for(F=X-(k-1),M=0;M<k;M++)t[F+M]=A[M]}}this.mergeRuns=x,this.forceMergeRuns=E,this.pushRun=b}function i(t,o,e,u){e||(e=0),u||(u=t.length);var r=u-e;if(r<2)return;var s=0;if(r<n){s=m(t,e,u,o),f(t,e,u,e+s,o);return}var c=new a(t,o),h=S(r);do{if(s=m(t,e,u,o),s<h){var v=r;v>h&&(v=h),f(t,e,e+v,e+s,o),s=v}c.pushRun(e,s),c.mergeRuns(),r-=s,e+=s}while(r!==0);c.forceMergeRuns()}R.exports=i},Bd2K:function(R,D,n){(function(y){y(n("VrN/"),n("osHv"))})(function(y){y.defineOption("autoCloseTags",!1,function(a,i,t){if(t!=y.Init&&t&&a.removeKeyMap("autoCloseTags"),!i)return;var o={name:"autoCloseTags"};(typeof i!="object"||i.whenClosing!==!1)&&(o["'/'"]=function(e){return f(e)}),(typeof i!="object"||i.whenOpening!==!1)&&(o["'>'"]=function(e){return m(e)}),a.addKeyMap(o)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],S=["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 m(a){if(a.getOption("disableInput"))return y.Pass;for(var i=a.listSelections(),t=[],o=a.getOption("autoCloseTags"),e=0;e<i.length;e++){if(!i[e].empty())return y.Pass;var u=i[e].head,r=a.getTokenAt(u),s=y.innerMode(a.getMode(),r.state),c=s.state,h=s.mode.xmlCurrentTag&&s.mode.xmlCurrentTag(c),v=h&&h.name;if(!v)return y.Pass;var A=s.mode.configuration=="html",b=typeof o=="object"&&o.dontCloseTags||A&&g,x=typeof o=="object"&&o.indentTags||A&&S;r.end>u.ch&&(v=v.slice(0,v.length-r.end+u.ch));var E=v.toLowerCase();if(!v||r.type=="string"&&(r.end!=u.ch||!/[\"\']/.test(r.string.charAt(r.string.length-1))||r.string.length==1)||r.type=="tag"&&h.close||r.string.indexOf("/")==u.ch-r.start-1||b&&d(b,E)>-1||l(a,s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(c)||[],v,u,!0))return y.Pass;var T=typeof o=="object"&&o.emptyTags;if(T&&d(T,v)>-1){t[e]={text:"/>",newPos:y.Pos(u.line,u.ch+2)};continue}var _=x&&d(x,E)>-1;t[e]={indent:_,text:">"+(_?`
`:"")+"</"+v+">",newPos:_?y.Pos(u.line+1,0):y.Pos(u.line,u.ch+1)}}for(var C=typeof o=="object"&&o.dontIndentOnAutoClose,e=i.length-1;e>=0;e--){var w=t[e];a.replaceRange(w.text,i[e].head,i[e].anchor,"+insert");var O=a.listSelections().slice(0);O[e]={head:w.newPos,anchor:w.newPos},a.setSelections(O),!C&&w.indent&&(a.indentLine(w.newPos.line,null,!0),a.indentLine(w.newPos.line+1,null,!0))}}function p(a,i){for(var t=a.listSelections(),o=[],e=i?"/":"</",u=a.getOption("autoCloseTags"),r=typeof u=="object"&&u.dontIndentOnSlash,s=0;s<t.length;s++){if(!t[s].empty())return y.Pass;var c=t[s].head,h=a.getTokenAt(c),v=y.innerMode(a.getMode(),h.state),A=v.state;if(i&&(h.type=="string"||h.string.charAt(0)!="<"||h.start!=c.ch-1))return y.Pass;var b,x=v.mode.name!="xml"&&a.getMode().name=="htmlmixed";if(x&&v.mode.name=="javascript")b=e+"script";else if(x&&v.mode.name=="css")b=e+"style";else{var E=v.mode.xmlCurrentContext&&v.mode.xmlCurrentContext(A);if(!E||E.length&&l(a,E,E[E.length-1],c))return y.Pass;b=e+E[E.length-1]}a.getLine(c.line).charAt(h.end)!=">"&&(b+=">"),o[s]=b}if(a.replaceSelections(o),t=a.listSelections(),!r)for(var s=0;s<t.length;s++)(s==t.length-1||t[s].head.line<t[s+1].head.line)&&a.indentLine(t[s].head.line)}function f(a){return a.getOption("disableInput")?y.Pass:p(a,!0)}y.commands.closeTag=function(a){return p(a)};function d(a,i){if(a.indexOf)return a.indexOf(i);for(var t=0,o=a.length;t<o;++t)if(a[t]==i)return t;return-1}function l(a,i,t,o,e){if(!y.scanForClosingTag)return!1;var u=Math.min(a.lastLine()+1,o.line+500),r=y.scanForClosingTag(a,o,null,u);if(!r||r.tag!=t)return!1;for(var s=e?1:0,c=i.length-1;c>=0&&i[c]==t;c--)++s;o=r.to;for(var c=1;c<s;c++){var h=y.scanForClosingTag(a,o,null,u);if(!h||h.tag!=t)return!1;o=h.to}return!0}})},BlVb:function(R,D,n){var y=n("hyiK"),g=1e-8;function S(p,f){return Math.abs(p-f)<g}function m(p,f,d){var l=0,a=p[0];if(!a)return!1;for(var i=1;i<p.length;i++){var t=p[i];l+=y(a[0],a[1],t[0],t[1],f,d),a=t}var o=p[0];return(!S(a[0],o[0])||!S(a[1],o[1]))&&(l+=y(a[0],a[1],o[0],o[1],f,d)),l!==0}D.contain=m},BoS7:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("czTT"),m=n.n(S)},Bq2U:function(R,D,n){var y=n("RDYZ"),g=n("Qe9p"),S=n("bYtY"),m=S.isArrayLike,p=Array.prototype.slice;function f(b,x){return b[x]}function d(b,x,E){b[x]=E}function l(b,x,E){return(x-b)*E+b}function a(b,x,E){return E>.5?x:b}function i(b,x,E,T,_){var C=b.length;if(_===1)for(var w=0;w<C;w++)T[w]=l(b[w],x[w],E);else for(var O=C&&b[0].length,w=0;w<C;w++)for(var I=0;I<O;I++)T[w][I]=l(b[w][I],x[w][I],E)}function t(b,x,E){var T=b.length,_=x.length;if(T!==_){var C=T>_;if(C)b.length=_;else for(var w=T;w<_;w++)b.push(E===1?x[w]:p.call(x[w]))}for(var O=b[0]&&b[0].length,w=0;w<b.length;w++)if(E===1)isNaN(b[w])&&(b[w]=x[w]);else for(var I=0;I<O;I++)isNaN(b[w][I])&&(b[w][I]=x[w][I])}function o(b,x,E){if(b===x)return!0;var T=b.length;if(T!==x.length)return!1;if(E===1){for(var _=0;_<T;_++)if(b[_]!==x[_])return!1}else for(var C=b[0].length,_=0;_<T;_++)for(var w=0;w<C;w++)if(b[_][w]!==x[_][w])return!1;return!0}function e(b,x,E,T,_,C,w,O,I){var k=b.length;if(I===1)for(var M=0;M<k;M++)O[M]=u(b[M],x[M],E[M],T[M],_,C,w);else for(var U=b[0].length,M=0;M<k;M++)for(var P=0;P<U;P++)O[M][P]=u(b[M][P],x[M][P],E[M][P],T[M][P],_,C,w)}function u(b,x,E,T,_,C,w){var O=(E-b)*.5,I=(T-x)*.5;return(2*(x-E)+O+I)*w+(-3*(x-E)-2*O-I)*C+O*_+x}function r(b){if(m(b)){var x=b.length;if(m(b[0])){for(var E=[],T=0;T<x;T++)E.push(p.call(b[T]));return E}return p.call(b)}return b}function s(b){return b[0]=Math.floor(b[0]),b[1]=Math.floor(b[1]),b[2]=Math.floor(b[2]),"rgba("+b.join(",")+")"}function c(b){var x=b[b.length-1].value;return m(x&&x[0])?2:1}function h(b,x,E,T,_,C){var w=b._getter,O=b._setter,I=x==="spline",k=T.length;if(!k)return;var M=T[0].value,U=m(M),P=!1,X=!1,F=U?c(T):0,j;T.sort(function(J,Y){return J.time-Y.time}),j=T[k-1].time;for(var K=[],z=[],V=T[0].value,Q=!0,G=0;G<k;G++){K.push(T[G].time/j);var te=T[G].value;if(U&&o(te,V,F)||!U&&te===V||(Q=!1),V=te,typeof te=="string"){var q=g.parse(te);q?(te=q,P=!0):X=!0}z.push(te)}if(!C&&Q)return;for(var se=z[k-1],G=0;G<k-1;G++)U?t(z[G],se,F):isNaN(z[G])&&!isNaN(se)&&!X&&!P&&(z[G]=se);U&&t(w(b._target,_),se,F);var re=0,we=0,Oe,Me,Qe,Ve,dt,Fe;if(P)var ue=[0,0,0,0];var et=function(Y,$){var de;if($<0)de=0;else if($<we){for(Oe=Math.min(re+1,k-1),de=Oe;de>=0&&!(K[de]<=$);de--);de=Math.min(de,k-2)}else{for(de=re;de<k&&!(K[de]>$);de++);de=Math.min(de-1,k-2)}re=de,we=$;var be=K[de+1]-K[de];if(be===0)return;if(Me=($-K[de])/be,I)if(Ve=z[de],Qe=z[de===0?de:de-1],dt=z[de>k-2?k-1:de+1],Fe=z[de>k-3?k-1:de+2],U)e(Qe,Ve,dt,Fe,Me,Me*Me,Me*Me*Me,w(Y,_),F);else{var Te;if(P)Te=e(Qe,Ve,dt,Fe,Me,Me*Me,Me*Me*Me,ue,1),Te=s(ue);else{if(X)return a(Ve,dt,Me);Te=u(Qe,Ve,dt,Fe,Me,Me*Me,Me*Me*Me)}O(Y,_,Te)}else if(U)i(z[de],z[de+1],Me,w(Y,_),F);else{var Te;if(P)i(z[de],z[de+1],Me,ue,1),Te=s(ue);else{if(X)return a(z[de],z[de+1],Me);Te=l(z[de],z[de+1],Me)}O(Y,_,Te)}},he=new y({target:b._target,life:j,loop:b._loop,delay:b._delay,onframe:et,ondestroy:E});return x&&x!=="spline"&&(he.easing=x),he}var v=function(x,E,T,_){this._tracks={},this._target=x,this._loop=E||!1,this._getter=T||f,this._setter=_||d,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};v.prototype={when:function(x,E){var T=this._tracks;for(var _ in E){if(!E.hasOwnProperty(_))continue;if(!T[_]){T[_]=[];var C=this._getter(this._target,_);if(C==null)continue;x!==0&&T[_].push({time:0,value:r(C)})}T[_].push({time:x,value:E[_]})}return this},during:function(x){return this._onframeList.push(x),this},pause:function(){for(var x=0;x<this._clipList.length;x++)this._clipList[x].pause();this._paused=!0},resume:function(){for(var x=0;x<this._clipList.length;x++)this._clipList[x].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var x=this._doneList,E=x.length,T=0;T<E;T++)x[T].call(this)},start:function(x,E){var T=this,_=0,C=function(){_--,_||T._doneCallback()},w;for(var O in this._tracks){if(!this._tracks.hasOwnProperty(O))continue;var I=h(this,x,C,this._tracks[O],O,E);I&&(this._clipList.push(I),_++,this.animation&&this.animation.addClip(I),w=I)}if(w){var k=w.onframe;w.onframe=function(M,U){k(M,U);for(var P=0;P<T._onframeList.length;P++)T._onframeList[P](M,U)}}return _||this._doneCallback(),this},stop:function(x){for(var E=this._clipList,T=this.animation,_=0;_<E.length;_++){var C=E[_];x&&C.onframe(this._target,1),T&&T.removeClip(C)}E.length=0},delay:function(x){return this._delay=x,this},done:function(x){return x&&this._doneList.push(x),this},getClips:function(){return this._clipList}};var A=v;R.exports=A},Bqw1:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},Bsck:function(R,D,n){var y=n("bYtY"),g=n("Qxkt"),S=n("Mdki"),m=n("YXkt"),p=n("sdST"),f=function(i,t){this.name=i||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};f.prototype={constructor:f,isRemoved:function(){return this.dataIndex<0},eachNode:function(i,t,o){typeof i=="function"&&(o=t,t=i,i=null),i=i||{},y.isString(i)&&(i={order:i});var e=i.order||"preorder",u=this[i.attr||"children"],r;e==="preorder"&&(r=t.call(o,this));for(var s=0;!r&&s<u.length;s++)u[s].eachNode(i,t,o);e==="postorder"&&t.call(o,this)},updateDepthAndHeight:function(i){var t=0;this.depth=i;for(var o=0;o<this.children.length;o++){var e=this.children[o];e.updateDepthAndHeight(i+1),e.height>t&&(t=e.height)}this.height=t+1},getNodeById:function(i){if(this.getId()===i)return this;for(var t=0,o=this.children,e=o.length;t<e;t++){var u=o[t].getNodeById(i);if(u)return u}},contains:function(i){if(i===this)return!0;for(var t=0,o=this.children,e=o.length;t<e;t++){var u=o[t].contains(i);if(u)return u}},getAncestors:function(i){for(var t=[],o=i?this:this.parentNode;o;)t.push(o),o=o.parentNode;return t.reverse(),t},getValue:function(i){var t=this.hostTree.data;return t.get(t.getDimension(i||"value"),this.dataIndex)},setLayout:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(i){if(this.dataIndex<0)return;var t=this.hostTree,o=t.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?o.getModel(i,e.getModel(i)):o.getModel(i)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,t)},getVisual:function(i,t){return this.hostTree.data.getItemVisual(this.dataIndex,i,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(i){for(var t=i.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(i){return i!==this&&i.isAncestorOf(this)}};function d(i,t){this.root,this.data,this._nodes=[],this.hostModel=i,this.levelModels=y.map(t||[],function(o){return new g(o,i,i.ecModel)})}d.prototype={constructor:d,type:"tree",eachNode:function(i,t,o){this.root.eachNode(i,t,o)},getNodeByDataIndex:function(i){var t=this.data.getRawIndex(i);return this._nodes[t]},getNodeByName:function(i){return this.root.getNodeByName(i)},update:function(){for(var i=this.data,t=this._nodes,o=0,e=t.length;o<e;o++)t[o].dataIndex=-1;for(var o=0,e=i.count();o<e;o++)t[i.getRawIndex(o)].dataIndex=o},clearLayouts:function(){this.data.clearItemLayouts()}},d.createTree=function(i,t,o,e){var u=new d(t,o&&o.levels),r=[],s=1;c(i);function c(A,b){var x=A.value;s=Math.max(s,y.isArray(x)?x.length:1),r.push(A);var E=new f(A.name,u);b?l(E,b):u.root=E,u._nodes.push(E);var T=A.children;if(T)for(var _=0;_<T.length;_++)c(T[_],E)}u.root.updateDepthAndHeight(0);var h=p(r,{coordDimensions:["value"],dimensionsCount:s}),v=new m(h,t);return v.initData(r),e&&e(v),S({mainData:v,struct:u,structAttr:"tree"}),u.update(),u};function l(i,t){var o=t.children;if(i.parentNode===t)return;o.push(i),i.parentNode=t}var a=d;R.exports=a},BtR2:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="LikeOutlined";var d=D.a=g.forwardRef(f)},BuqR:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=n("6uqw"),p=n("XxSj"),f=n("YOMW"),d=n("OELB"),l=d.reformIntervals,a=m.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,u){a.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var r=this._mode=this._determineMode();i[this._mode].call(this),this._resetSelected(e,u);var s=this.option.categories;this.resetVisual(function(c,h){r==="categories"?(c.mappingMethod="category",c.categories=S.clone(s)):(c.dataExtent=this.getExtent(),c.mappingMethod="piecewise",c.pieceList=S.map(this._pieceList,function(v){var v=S.clone(v);return h!=="inRange"&&(v.visual=null),v}))})},completeVisualOption:function(){var e=this.option,u={},r=p.listVisualTypes(),s=this.isCategory();S.each(e.pieces,function(h){S.each(r,function(v){h.hasOwnProperty(v)&&(u[v]=1)})}),S.each(u,function(h,v){var A=0;S.each(this.stateList,function(b){A|=c(e,b,v)||c(e.target,b,v)},this),!A&&S.each(this.stateList,function(b){(e[b]||(e[b]={}))[v]=f.get(v,b==="inRange"?"active":"inactive",s)})},this);function c(h,v,A){return h&&h[v]&&(S.isObject(h[v])?h[v].hasOwnProperty(A):h[v]===A)}m.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,u){var r=this.option,s=this._pieceList,c=(u?r:e).selected||{};if(r.selected=c,S.each(s,function(v,A){var b=this.getSelectedMapKey(v);c.hasOwnProperty(b)||(c[b]=!0)},this),r.selectedMode==="single"){var h=!1;S.each(s,function(v,A){var b=this.getSelectedMapKey(v);c[b]&&(h?c[b]=!1:h=!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=S.clone(e)},getValueState:function(e){var u=p.findPieceIndex(e,this._pieceList);return u!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[u])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var u=[];return this.eachTargetSeries(function(r){var s=[],c=r.getData();c.each(this.getDataDimension(c),function(h,v){var A=p.findPieceIndex(h,this._pieceList);A===e&&s.push(v)},this),u.push({seriesId:r.id,dataIndex:s})},this),u},getRepresentValue:function(e){var u;if(this.isCategory())u=e.value;else if(e.value!=null)u=e.value;else{var r=e.interval||[];u=r[0]===-Infinity&&r[1]===Infinity?0:(r[0]+r[1])/2}return u},getVisualMeta:function(e){if(this.isCategory())return;var u=[],r=[],s=this;function c(b,x){var E=s.getRepresentValue({interval:b});x||(x=s.getValueState(E));var T=e(E,x);b[0]===-Infinity?r[0]=T:b[1]===Infinity?r[1]=T:u.push({value:b[0],color:T},{value:b[1],color:T})}var h=this._pieceList.slice();if(!h.length)h.push({interval:[-Infinity,Infinity]});else{var v=h[0].interval[0];v!==-Infinity&&h.unshift({interval:[-Infinity,v]}),v=h[h.length-1].interval[1],v!==Infinity&&h.push({interval:[v,Infinity]})}var A=-Infinity;return S.each(h,function(b){var x=b.interval;x&&(x[0]>A&&c([A,x[0]],"outOfRange"),c(x.slice()),A=x[1])},this),{stops:u,outerColors:r}}}),i={splitNumber:function(){var e=this.option,u=this._pieceList,r=Math.min(e.precision,20),s=this.getExtent(),c=e.splitNumber;c=Math.max(parseInt(c,10),1),e.splitNumber=c;for(var h=(s[1]-s[0])/c;+h.toFixed(r)!==h&&r<5;)r++;e.precision=r,h=+h.toFixed(r),e.minOpen&&u.push({interval:[-Infinity,s[0]],close:[0,0]});for(var v=0,A=s[0];v<c;A+=h,v++){var b=v===c-1?s[1]:A+h;u.push({interval:[A,b],close:[1,1]})}e.maxOpen&&u.push({interval:[s[1],Infinity],close:[0,0]}),l(u),S.each(u,function(x,E){x.index=E,x.text=this.formatValueText(x.interval)},this)},categories:function(){var e=this.option;S.each(e.categories,function(u){this._pieceList.push({text:this.formatValueText(u,!0),value:u})},this),t(e,this._pieceList)},pieces:function(){var e=this.option,u=this._pieceList;S.each(e.pieces,function(r,s){S.isObject(r)||(r={value:r});var c={text:"",index:s};if(r.label!=null&&(c.text=r.label),r.hasOwnProperty("value")){var h=c.value=r.value;c.interval=[h,h],c.close=[1,1]}else{for(var v=c.interval=[],A=c.close=[0,0],b=[1,0,1],x=[-Infinity,Infinity],E=[],T=0;T<2;T++){for(var _=[["gte","gt","min"],["lte","lt","max"]][T],C=0;C<3&&v[T]==null;C++)v[T]=r[_[C]],A[T]=b[C],E[T]=C===2;v[T]==null&&(v[T]=x[T])}E[0]&&v[1]===Infinity&&(A[0]=0),E[1]&&v[0]===-Infinity&&(A[1]=0),v[0]===v[1]&&A[0]&&A[1]&&(c.value=v[0])}c.visual=p.retrieveVisuals(r),u.push(c)},this),t(e,u),l(u),S.each(u,function(r){var s=r.close,c=[["<","\u2264"][s[1]],[">","\u2265"][s[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,c)},this)}};function t(e,u){var r=e.inverse;(e.orient==="vertical"?!r:r)&&u.reverse()}var o=a;R.exports=o},BvKs:function(R,D,n){"use strict";n.d(D,"a",function(){return Vt});var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("lwsE"),f=n.n(p),d=n("W8MJ"),l=n.n(d),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),u=n("VTBJ"),r=n("1OyB"),s=n("vuIU"),c=n("JX7q"),h=n("Ji7U"),v=n("LK+K"),A=n("I8Z2"),b=n("BGR+"),x=n("wx14"),E=n("rePB"),T=n("4IlW"),_=n("2GS6"),C=n("Gytx"),w=n.n(C),O=n("TSYQ"),I=n.n(O),k=n("U8pU"),M=n("ODXe"),U=/iPhone/i,P=/iPod/i,X=/iPad/i,F=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,K=/\bAndroid(?:.+)SD4930UR\b/i,z=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,V=/Windows Phone/i,Q=/\bWindows(?:.+)ARM\b/i,G=/BlackBerry/i,te=/BB10/i,q=/Opera Mini/i,se=/\b(CriOS|Chrome)(?:.+)Mobile/i,re=/Mobile(?:.+)Firefox\b/i;function we(yt,xt){return yt.test(xt)}function Oe(yt){var xt=yt||(typeof navigator!="undefined"?navigator.userAgent:""),dr=xt.split("[FBAN");if(typeof dr[1]!="undefined"){var er=dr,Ut=Object(M.a)(er,1);xt=Ut[0]}if(dr=xt.split("Twitter"),typeof dr[1]!="undefined"){var ir=dr,Ft=Object(M.a)(ir,1);xt=Ft[0]}var rr={apple:{phone:we(U,xt)&&!we(V,xt),ipod:we(P,xt),tablet:!we(U,xt)&&we(X,xt)&&!we(V,xt),device:(we(U,xt)||we(P,xt)||we(X,xt))&&!we(V,xt)},amazon:{phone:we(K,xt),tablet:!we(K,xt)&&we(z,xt),device:we(K,xt)||we(z,xt)},android:{phone:!we(V,xt)&&we(K,xt)||!we(V,xt)&&we(F,xt),tablet:!we(V,xt)&&!we(K,xt)&&!we(F,xt)&&(we(z,xt)||we(j,xt)),device:!we(V,xt)&&(we(K,xt)||we(z,xt)||we(F,xt)||we(j,xt))||we(/\bokhttp\b/i,xt)},windows:{phone:we(V,xt),tablet:we(Q,xt),device:we(V,xt)||we(Q,xt)},other:{blackberry:we(G,xt),blackberry10:we(te,xt),opera:we(q,xt),firefox:we(re,xt),chrome:we(se,xt),device:we(G,xt)||we(te,xt)||we(q,xt)||we(re,xt)||we(se,xt)},any:null,phone:null,tablet:null};return rr.any=rr.apple.device||rr.android.device||rr.windows.device||rr.other.device,rr.phone=rr.apple.phone||rr.android.phone||rr.windows.phone,rr.tablet=rr.apple.tablet||rr.android.tablet||rr.windows.tablet,rr}var Me=Object(u.a)(Object(u.a)({},Oe()),{},{isMobile:Oe}),Qe=Me;function Ve(){}function dt(yt,xt,dr){var er=xt||"";return yt.key||"".concat(er,"item_").concat(dr)}function Fe(yt){return"".concat(yt,"-menu-")}function ue(yt,xt){var dr=-1;e.Children.forEach(yt,function(er){dr+=1,er&&er.type&&er.type.isMenuItemGroup?e.Children.forEach(er.props.children,function(Ut){dr+=1,xt(Ut,dr)}):xt(er,dr)})}function et(yt,xt,dr){if(!yt||dr.find)return;e.Children.forEach(yt,function(er){if(er){var Ut=er.type;if(!Ut||!(Ut.isSubMenu||Ut.isMenuItem||Ut.isMenuItemGroup))return;xt.indexOf(er.key)!==-1?dr.find=!0:er.props.children&&et(er.props.children,xt,dr)}})}var he=["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"],J=function(xt){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,er=xt&&typeof xt.getBoundingClientRect=="function"&&xt.getBoundingClientRect().width;if(er){if(dr){var Ut=getComputedStyle(xt),ir=Ut.marginLeft,Ft=Ut.marginRight;er+=+ir.replace("px","")+ +Ft.replace("px","")}er=+er.toFixed(6)}return er||0},Y=function(xt,dr,er){xt&&Object(k.a)(xt.style)==="object"&&(xt.style[dr]=er)},$=function(){return Qe.any},de=n("KQm4"),be=n("Ff2n"),Te=n("i8i4"),Be=n("bdgK"),fe=n("Uaa1"),xe=n("HTfv"),ke={adjustX:1,adjustY:1},nt={topLeft:{points:["bl","tl"],overflow:ke,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ke,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ke,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ke,offset:[4,0]}},Ct={topLeft:{points:["bl","tl"],overflow:ke,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ke,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ke,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ke,offset:[4,0]}},pt=nt,He=0,nr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ht=function(xt,dr,er){var Ut=Fe(dr),ir=xt.getState();xt.setState({defaultActiveFirst:Object(u.a)(Object(u.a)({},ir.defaultActiveFirst),{},Object(E.a)({},Ut,er))})},Gt=function(yt){Object(h.a)(dr,yt);var xt=Object(v.a)(dr);function dr(er){var Ut;Object(r.a)(this,dr),Ut=xt.call(this,er),Ut.onDestroy=function(kr){Ut.props.onDestroy(kr)},Ut.onKeyDown=function(kr){var dn=kr.keyCode,yn=Ut.menuInstance,ri=Ut.props,$n=ri.isOpen,pi=ri.store;if(dn===T.a.ENTER)return Ut.onTitleClick(kr),ht(pi,Ut.props.eventKey,!0),!0;if(dn===T.a.RIGHT)return $n?yn.onKeyDown(kr):(Ut.triggerOpenChange(!0),ht(pi,Ut.props.eventKey,!0)),!0;if(dn===T.a.LEFT){var _i;if($n)_i=yn.onKeyDown(kr);else return;return _i||(Ut.triggerOpenChange(!1),_i=!0),_i}return $n&&(dn===T.a.UP||dn===T.a.DOWN)?yn.onKeyDown(kr):void 0},Ut.onOpenChange=function(kr){Ut.props.onOpenChange(kr)},Ut.onPopupVisibleChange=function(kr){Ut.triggerOpenChange(kr,kr?"mouseenter":"mouseleave")},Ut.onMouseEnter=function(kr){var dn=Ut.props,yn=dn.eventKey,ri=dn.onMouseEnter,$n=dn.store;ht($n,Ut.props.eventKey,!1),ri({key:yn,domEvent:kr})},Ut.onMouseLeave=function(kr){var dn=Ut.props,yn=dn.parentMenu,ri=dn.eventKey,$n=dn.onMouseLeave;yn.subMenuInstance=Object(c.a)(Ut),$n({key:ri,domEvent:kr})},Ut.onTitleMouseEnter=function(kr){var dn=Ut.props,yn=dn.eventKey,ri=dn.onItemHover,$n=dn.onTitleMouseEnter;ri({key:yn,hover:!0}),$n({key:yn,domEvent:kr})},Ut.onTitleMouseLeave=function(kr){var dn=Ut.props,yn=dn.parentMenu,ri=dn.eventKey,$n=dn.onItemHover,pi=dn.onTitleMouseLeave;yn.subMenuInstance=Object(c.a)(Ut),$n({key:ri,hover:!1}),pi({key:ri,domEvent:kr})},Ut.onTitleClick=function(kr){var dn=Object(c.a)(Ut),yn=dn.props;if(yn.onTitleClick({key:yn.eventKey,domEvent:kr}),yn.triggerSubMenuAction==="hover")return;Ut.triggerOpenChange(!yn.isOpen,"click"),ht(yn.store,Ut.props.eventKey,!1)},Ut.onSubMenuClick=function(kr){typeof Ut.props.onClick=="function"&&Ut.props.onClick(Ut.addKeyPath(kr))},Ut.onSelect=function(kr){Ut.props.onSelect(kr)},Ut.onDeselect=function(kr){Ut.props.onDeselect(kr)},Ut.getPrefixCls=function(){return"".concat(Ut.props.rootPrefixCls,"-submenu")},Ut.getActiveClassName=function(){return"".concat(Ut.getPrefixCls(),"-active")},Ut.getDisabledClassName=function(){return"".concat(Ut.getPrefixCls(),"-disabled")},Ut.getSelectedClassName=function(){return"".concat(Ut.getPrefixCls(),"-selected")},Ut.getOpenClassName=function(){return"".concat(Ut.props.rootPrefixCls,"-submenu-open")},Ut.saveMenuInstance=function(kr){Ut.menuInstance=kr},Ut.addKeyPath=function(kr){return Object(u.a)(Object(u.a)({},kr),{},{keyPath:(kr.keyPath||[]).concat(Ut.props.eventKey)})},Ut.triggerOpenChange=function(kr,dn){var yn=Ut.props.eventKey,ri=function(){Ut.onOpenChange({key:yn,item:Object(c.a)(Ut),trigger:dn,open:kr})};dn==="mouseenter"?Ut.mouseenterTimeout=setTimeout(function(){ri()},0):ri()},Ut.isChildrenSelected=function(){var kr={find:!1};return et(Ut.props.children,Ut.props.selectedKeys,kr),kr.find},Ut.isOpen=function(){return Ut.props.openKeys.indexOf(Ut.props.eventKey)!==-1},Ut.adjustWidth=function(){if(!Ut.subMenuTitle||!Ut.menuInstance)return;var kr=Te.findDOMNode(Ut.menuInstance);if(kr.offsetWidth>=Ut.subMenuTitle.offsetWidth)return;kr.style.minWidth="".concat(Ut.subMenuTitle.offsetWidth,"px")},Ut.saveSubMenuTitle=function(kr){Ut.subMenuTitle=kr},Ut.getBaseProps=function(){var kr=Object(c.a)(Ut),dn=kr.props;return{mode:dn.mode==="horizontal"?"vertical":dn.mode,visible:Ut.props.isOpen,level:dn.level+1,inlineIndent:dn.inlineIndent,focusable:!1,onClick:Ut.onSubMenuClick,onSelect:Ut.onSelect,onDeselect:Ut.onDeselect,onDestroy:Ut.onDestroy,selectedKeys:dn.selectedKeys,eventKey:"".concat(dn.eventKey,"-menu-"),openKeys:dn.openKeys,motion:dn.motion,onOpenChange:Ut.onOpenChange,subMenuOpenDelay:dn.subMenuOpenDelay,parentMenu:Object(c.a)(Ut),subMenuCloseDelay:dn.subMenuCloseDelay,forceSubMenuRender:dn.forceSubMenuRender,triggerSubMenuAction:dn.triggerSubMenuAction,builtinPlacements:dn.builtinPlacements,defaultActiveFirst:dn.store.getState().defaultActiveFirst[Fe(dn.eventKey)],multiple:dn.multiple,prefixCls:dn.rootPrefixCls,id:Ut.internalMenuId,manualRef:Ut.saveMenuInstance,itemIcon:dn.itemIcon,expandIcon:dn.expandIcon,direction:dn.direction}},Ut.getMotion=function(kr,dn){var yn=Object(c.a)(Ut),ri=yn.haveRendered,$n=Ut.props,pi=$n.motion,_i=$n.rootPrefixCls,Di=Object(u.a)(Object(u.a)({},pi),{},{leavedClassName:"".concat(_i,"-hidden"),removeOnLeave:!1,motionAppear:ri||!dn||kr!=="inline"});return Di};var ir=er.store,Ft=er.eventKey,rr=ir.getState(),Kr=rr.defaultActiveFirst;Ut.isRootMenu=!1;var Rr=!1;return Kr&&(Rr=Kr[Ft]),ht(ir,Ft,Rr),Ut}return Object(s.a)(dr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ut=this,ir=this.props,Ft=ir.mode,rr=ir.parentMenu,Kr=ir.manualRef;if(Kr&&Kr(this),Ft!=="horizontal"||!rr.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Ut.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ut=this.props,ir=Ut.onDestroy,Ft=Ut.eventKey;ir&&ir(Ft),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Ut){var ir=this,Ft=this.getBaseProps(),rr=this.getMotion(Ft.mode,Ft.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ft.visible||Ft.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Kr=Ft.direction;return e.createElement(xe.default,Object.assign({visible:Ft.visible},rr),function(Rr){var kr=Rr.className,dn=Rr.style,yn=I()("".concat(Ft.prefixCls,"-sub"),kr,Object(E.a)({},"".concat(Ft.prefixCls,"-rtl"),Kr==="rtl"));return e.createElement(or,Object.assign({},Ft,{id:ir.internalMenuId,className:yn,style:dn}),Ut)})}},{key:"render",value:function(){var Ut,ir=Object(u.a)({},this.props),Ft=ir.isOpen,rr=this.getPrefixCls(),Kr=ir.mode==="inline",Rr=I()(rr,"".concat(rr,"-").concat(ir.mode),(Ut={},Object(E.a)(Ut,ir.className,!!ir.className),Object(E.a)(Ut,this.getOpenClassName(),Ft),Object(E.a)(Ut,this.getActiveClassName(),ir.active||Ft&&!Kr),Object(E.a)(Ut,this.getDisabledClassName(),ir.disabled),Object(E.a)(Ut,this.getSelectedClassName(),this.isChildrenSelected()),Ut));this.internalMenuId||(ir.eventKey?this.internalMenuId="".concat(ir.eventKey,"$Menu"):(He+=1,this.internalMenuId="$__$".concat(He,"$Menu")));var kr={},dn={},yn={};ir.disabled||(kr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},dn={onClick:this.onTitleClick},yn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ri={},$n=ir.direction;Kr&&($n==="rtl"?ri.paddingRight=ir.inlineIndent*ir.level:ri.paddingLeft=ir.inlineIndent*ir.level);var pi={};this.props.isOpen&&(pi={"aria-owns":this.internalMenuId});var _i=null;ir.mode!=="horizontal"&&(_i=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(_i=e.createElement(this.props.expandIcon,Object(u.a)({},this.props))));var Di=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ri,className:"".concat(rr,"-title"),role:"button"},yn,dn,{"aria-expanded":Ft},pi,{"aria-haspopup":"true",title:typeof ir.title=="string"?ir.title:void 0}),ir.title,_i||e.createElement("i",{className:"".concat(rr,"-arrow")})),Wi=this.renderChildren(ir.children),at=ir.parentMenu.isRootMenu?ir.parentMenu.props.getPopupContainer:function(Qr){return Qr.parentNode},Le=nr[ir.mode],je=ir.popupOffset?{offset:ir.popupOffset}:{},Xe=ir.mode==="inline"?"":ir.popupClassName;Xe+=$n==="rtl"?" ".concat(rr,"-rtl"):"";var it=ir.disabled,Ze=ir.triggerSubMenuAction,ot=ir.subMenuOpenDelay,Lt=ir.forceSubMenuRender,At=ir.subMenuCloseDelay,mr=ir.builtinPlacements;he.forEach(function(Qr){return delete ir[Qr]}),delete ir.onClick;var qr=$n==="rtl"?Object.assign({},Ct,mr):Object.assign({},nt,mr);return delete ir.direction,e.createElement("li",Object.assign({},ir,kr,{className:Rr,role:"menuitem"}),Kr&&Di,Kr&&Wi,!Kr&&e.createElement(fe.a,{prefixCls:rr,popupClassName:I()("".concat(rr,"-popup"),Xe),getPopupContainer:at,builtinPlacements:qr,popupPlacement:Le,popupVisible:Ft,popupAlign:je,popup:Wi,action:it?[]:[Ze],mouseEnterDelay:ot,mouseLeaveDelay:At,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Lt},Di))}}]),dr}(e.Component);Gt.defaultProps={onMouseEnter:Ve,onMouseLeave:Ve,onTitleMouseEnter:Ve,onTitleMouseLeave:Ve,onTitleClick:Ve,manualRef:Ve,mode:"vertical",title:""};var pr=Object(A.b)(function(yt,xt){var dr=yt.openKeys,er=yt.activeKey,Ut=yt.selectedKeys,ir=xt.eventKey,Ft=xt.subMenuKey;return{isOpen:dr.indexOf(ir)>-1,active:er[Ft]===ir,selectedKeys:Ut}})(Gt);pr.isSubMenu=!0;var Qt=pr,Ht="menuitem-overflowed",Jt=.5,Ge=function(yt){Object(h.a)(dr,yt);var xt=Object(v.a)(dr);function dr(){var er;return Object(r.a)(this,dr),er=xt.apply(this,arguments),er.resizeObserver=null,er.mutationObserver=null,er.originalTotalWidth=0,er.overflowedItems=[],er.menuItemSizes=[],er.cancelFrameId=null,er.state={lastVisibleIndex:void 0},er.getMenuItemNodes=function(){var Ut=er.props.prefixCls,ir=Te.findDOMNode(Object(c.a)(er));return ir?[].slice.call(ir.children).filter(function(Ft){return Ft.className.split(" ").indexOf("".concat(Ut,"-overflowed-submenu"))<0}):[]},er.getOverflowedSubMenuItem=function(Ut,ir,Ft){var rr=er.props,Kr=rr.overflowedIndicator,Rr=rr.level,kr=rr.mode,dn=rr.prefixCls,yn=rr.theme;if(Rr!==1||kr!=="horizontal")return null;var ri=er.props.children[0],$n=ri.props,pi=$n.children,_i=$n.title,Di=$n.style,Wi=Object(be.a)($n,["children","title","style"]),at=Object(u.a)({},Di),Le="".concat(Ut,"-overflowed-indicator"),je="".concat(Ut,"-overflowed-indicator");ir.length===0&&Ft!==!0?at=Object(u.a)(Object(u.a)({},at),{},{display:"none"}):Ft&&(at=Object(u.a)(Object(u.a)({},at),{},{visibility:"hidden",position:"absolute"}),Le="".concat(Le,"-placeholder"),je="".concat(je,"-placeholder"));var Xe=yn?"".concat(dn,"-").concat(yn):"",it={};return he.forEach(function(Ze){Wi[Ze]!==void 0&&(it[Ze]=Wi[Ze])}),e.createElement(Qt,Object.assign({title:Kr,className:"".concat(dn,"-overflowed-submenu"),popupClassName:Xe},it,{key:Le,eventKey:je,disabled:!1,style:at}),ir)},er.setChildrenWidthAndResize=function(){if(er.props.mode!=="horizontal")return;var Ut=Te.findDOMNode(Object(c.a)(er));if(!Ut)return;var ir=Ut.children;if(!ir||ir.length===0)return;var Ft=Ut.children[ir.length-1];Y(Ft,"display","inline-block");var rr=er.getMenuItemNodes(),Kr=rr.filter(function(Rr){return Rr.className.split(" ").indexOf(Ht)>=0});Kr.forEach(function(Rr){Y(Rr,"display","inline-block")}),er.menuItemSizes=rr.map(function(Rr){return J(Rr,!0)}),Kr.forEach(function(Rr){Y(Rr,"display","none")}),er.overflowedIndicatorWidth=J(Ut.children[Ut.children.length-1],!0),er.originalTotalWidth=er.menuItemSizes.reduce(function(Rr,kr){return Rr+kr},0),er.handleResize(),Y(Ft,"display","none")},er.handleResize=function(){if(er.props.mode!=="horizontal")return;var Ut=Te.findDOMNode(Object(c.a)(er));if(!Ut)return;var ir=J(Ut);er.overflowedItems=[];var Ft=0,rr;er.originalTotalWidth>ir+Jt&&(rr=-1,er.menuItemSizes.forEach(function(Kr){Ft+=Kr,Ft+er.overflowedIndicatorWidth<=ir&&(rr+=1)})),er.setState({lastVisibleIndex:rr})},er}return Object(s.a)(dr,[{key:"componentDidMount",value:function(){var Ut=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ir=Te.findDOMNode(this);if(!ir)return;this.resizeObserver=new Be.default(function(Ft){Ft.forEach(function(){var rr=Ut.cancelFrameId;cancelAnimationFrame(rr),Ut.cancelFrameId=requestAnimationFrame(Ut.setChildrenWidthAndResize)})}),[].slice.call(ir.children).concat(ir).forEach(function(Ft){Ut.resizeObserver.observe(Ft)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ut.resizeObserver.disconnect(),[].slice.call(ir.children).concat(ir).forEach(function(Ft){Ut.resizeObserver.observe(Ft)}),Ut.setChildrenWidthAndResize()}),this.mutationObserver.observe(ir,{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(Ut){var ir=this,Ft=this.state.lastVisibleIndex;return(Ut||[]).reduce(function(rr,Kr,Rr){var kr=Kr;if(ir.props.mode==="horizontal"){var dn=ir.getOverflowedSubMenuItem(Kr.props.eventKey,[]);Ft!==void 0&&ir.props.className.indexOf("".concat(ir.props.prefixCls,"-root"))!==-1&&(Rr>Ft&&(kr=e.cloneElement(Kr,{style:{display:"none"},eventKey:"".concat(Kr.props.eventKey,"-hidden"),className:"".concat(Ht)})),Rr===Ft+1&&(ir.overflowedItems=Ut.slice(Ft+1).map(function(ri){return e.cloneElement(ri,{key:ri.props.eventKey,mode:"vertical-left"})}),dn=ir.getOverflowedSubMenuItem(Kr.props.eventKey,ir.overflowedItems)));var yn=[].concat(Object(de.a)(rr),[dn,kr]);return Rr===Ut.length-1&&yn.push(ir.getOverflowedSubMenuItem(Kr.props.eventKey,[],!0)),yn}return[].concat(Object(de.a)(rr),[kr])},[])}},{key:"render",value:function(){var Ut=this.props,ir=Ut.visible,Ft=Ut.prefixCls,rr=Ut.overflowedIndicator,Kr=Ut.mode,Rr=Ut.level,kr=Ut.tag,dn=Ut.children,yn=Ut.theme,ri=Object(be.a)(Ut,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),$n=kr;return e.createElement($n,Object.assign({},ri),this.renderChildren(dn))}}]),dr}(e.Component);Ge.defaultProps={tag:"div",className:""};var pe=Ge;function oe(yt){return yt.length?yt.every(function(xt){return!!xt.props.disabled}):!0}function ct(yt,xt,dr){var er=yt.getState();yt.setState({activeKey:Object(u.a)(Object(u.a)({},er.activeKey),{},Object(E.a)({},xt,dr))})}function qe(yt){return yt.eventKey||"0-menu-"}function me(yt,xt){var dr=xt,er=yt.children,Ut=yt.eventKey;if(dr){var ir;if(ue(er,function(Ft,rr){Ft&&Ft.props&&!Ft.props.disabled&&dr===dt(Ft,Ut,rr)&&(ir=!0)}),ir)return dr}return dr=null,yt.defaultActiveFirst&&ue(er,function(Ft,rr){!dr&&Ft&&!Ft.props.disabled&&(dr=dt(Ft,Ut,rr))}),dr}function Kt(yt){if(yt){var xt=this.instanceArray.indexOf(yt);xt!==-1?this.instanceArray[xt]=yt:this.instanceArray.push(yt)}}var vr=function(yt){Object(h.a)(dr,yt);var xt=Object(v.a)(dr);function dr(er){var Ut;return Object(r.a)(this,dr),Ut=xt.call(this,er),Ut.onKeyDown=function(ir,Ft){var rr=ir.keyCode,Kr;if(Ut.getFlatInstanceArray().forEach(function(kr){kr&&kr.props.active&&kr.onKeyDown&&(Kr=kr.onKeyDown(ir))}),Kr)return 1;var Rr=null;return(rr===T.a.UP||rr===T.a.DOWN)&&(Rr=Ut.step(rr===T.a.UP?-1:1)),Rr?(ir.preventDefault(),ct(Ut.props.store,qe(Ut.props),Rr.props.eventKey),typeof Ft=="function"&&Ft(Rr),1):void 0},Ut.onItemHover=function(ir){var Ft=ir.key,rr=ir.hover;ct(Ut.props.store,qe(Ut.props),rr?Ft:null)},Ut.onDeselect=function(ir){Ut.props.onDeselect(ir)},Ut.onSelect=function(ir){Ut.props.onSelect(ir)},Ut.onClick=function(ir){Ut.props.onClick(ir)},Ut.onOpenChange=function(ir){Ut.props.onOpenChange(ir)},Ut.onDestroy=function(ir){Ut.props.onDestroy(ir)},Ut.getFlatInstanceArray=function(){return Ut.instanceArray},Ut.step=function(ir){var Ft=Ut.getFlatInstanceArray(),rr=Ut.props.store.getState().activeKey[qe(Ut.props)],Kr=Ft.length;if(!Kr)return null;ir<0&&(Ft=Ft.concat().reverse());var Rr=-1;if(Ft.every(function(ri,$n){return ri&&ri.props.eventKey===rr?(Rr=$n,!1):!0}),!Ut.props.defaultActiveFirst&&Rr!==-1&&oe(Ft.slice(Rr,Kr-1)))return;var kr=(Rr+1)%Kr,dn=kr;do{var yn=Ft[dn];if(!yn||yn.props.disabled)dn=(dn+1)%Kr;else return yn}while(dn!==kr);return null},Ut.renderCommonMenuItem=function(ir,Ft,rr){var Kr=Ut.props.store.getState(),Rr=Object(c.a)(Ut),kr=Rr.props,dn=dt(ir,kr.eventKey,Ft),yn=ir.props;if(!yn||typeof ir.type=="string")return ir;var ri=dn===Kr.activeKey,$n=Object(u.a)(Object(u.a)({mode:yn.mode||kr.mode,level:kr.level,inlineIndent:kr.inlineIndent,renderMenuItem:Ut.renderMenuItem,rootPrefixCls:kr.prefixCls,index:Ft,parentMenu:kr.parentMenu,manualRef:yn.disabled?void 0:Object(_.a)(ir.ref,Kt.bind(Object(c.a)(Ut))),eventKey:dn,active:!yn.disabled&&ri,multiple:kr.multiple,onClick:function(_i){(yn.onClick||Ve)(_i),Ut.onClick(_i)},onItemHover:Ut.onItemHover,motion:kr.motion,subMenuOpenDelay:kr.subMenuOpenDelay,subMenuCloseDelay:kr.subMenuCloseDelay,forceSubMenuRender:kr.forceSubMenuRender,onOpenChange:Ut.onOpenChange,onDeselect:Ut.onDeselect,onSelect:Ut.onSelect,builtinPlacements:kr.builtinPlacements,itemIcon:yn.itemIcon||Ut.props.itemIcon,expandIcon:yn.expandIcon||Ut.props.expandIcon},rr),{},{direction:kr.direction});return(kr.mode==="inline"||$())&&($n.triggerSubMenuAction="click"),e.cloneElement(ir,$n)},Ut.renderMenuItem=function(ir,Ft,rr){if(!ir)return null;var Kr=Ut.props.store.getState(),Rr={openKeys:Kr.openKeys,selectedKeys:Kr.selectedKeys,triggerSubMenuAction:Ut.props.triggerSubMenuAction,subMenuKey:rr};return Ut.renderCommonMenuItem(ir,Ft,Rr)},er.store.setState({activeKey:Object(u.a)(Object(u.a)({},er.store.getState().activeKey),{},Object(E.a)({},er.eventKey,me(er,er.activeKey)))}),Ut.instanceArray=[],Ut}return Object(s.a)(dr,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ut){return this.props.visible||Ut.visible||this.props.className!==Ut.className||!w()(this.props.style,Ut.style)}},{key:"componentDidUpdate",value:function(Ut){var ir=this.props,Ft="activeKey"in ir?ir.activeKey:ir.store.getState().activeKey[qe(ir)],rr=me(ir,Ft);if(rr!==Ft)ct(ir.store,qe(ir),rr);else if("activeKey"in Ut){var Kr=me(Ut,Ut.activeKey);rr!==Kr&&ct(ir.store,qe(ir),rr)}}},{key:"render",value:function(){var Ut=this,ir=Object(x.a)({},this.props);this.instanceArray=[];var Ft=I()(ir.prefixCls,ir.className,"".concat(ir.prefixCls,"-").concat(ir.mode)),rr={className:Ft,role:ir.role||"menu"};ir.id&&(rr.id=ir.id),ir.focusable&&(rr.tabIndex=0,rr.onKeyDown=this.onKeyDown);var Kr=ir.prefixCls,Rr=ir.eventKey,kr=ir.visible,dn=ir.level,yn=ir.mode,ri=ir.overflowedIndicator,$n=ir.theme;return he.forEach(function(pi){return delete ir[pi]}),delete ir.onClick,e.createElement(pe,Object.assign({},ir,{prefixCls:Kr,mode:yn,tag:"ul",level:dn,theme:$n,visible:kr,overflowedIndicator:ri},rr),e.Children.map(ir.children,function(pi,_i){return Ut.renderMenuItem(pi,_i,Rr||"0-menu-")}))}}]),dr}(e.Component);vr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ve};var bt=Object(A.b)()(vr),or=bt,_t=n("Kwbf");function jt(yt,xt,dr){var er=yt.prefixCls,Ut=yt.motion,ir=yt.defaultMotions,Ft=ir===void 0?{}:ir,rr=yt.openAnimation,Kr=yt.openTransitionName,Rr=xt.switchingModeFromInline;if(Ut)return Ut;if(Object(k.a)(rr)==="object"&&rr)Object(_t.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof rr=="string")return{motionName:"".concat(er,"-open-").concat(rr)};if(Kr)return{motionName:Kr};var kr=Ft[dr];return kr||(Rr?null:Ft.other)}var ut=function(yt){Object(h.a)(dr,yt);var xt=Object(v.a)(dr);function dr(er){var Ut;Object(r.a)(this,dr),Ut=xt.call(this,er),Ut.inlineOpenKeys=[],Ut.onSelect=function(rr){var Kr=Object(c.a)(Ut),Rr=Kr.props;if(Rr.selectable){var kr=Ut.store.getState(),dn=kr.selectedKeys,yn=rr.key;Rr.multiple?dn=dn.concat([yn]):dn=[yn],"selectedKeys"in Rr||Ut.store.setState({selectedKeys:dn}),Rr.onSelect(Object(u.a)(Object(u.a)({},rr),{},{selectedKeys:dn}))}},Ut.onClick=function(rr){var Kr=Ut.getRealMenuMode(),Rr=Object(c.a)(Ut),kr=Rr.store,dn=Rr.props.onOpenChange;Kr!=="inline"&&!("openKeys"in Ut.props)&&(kr.setState({openKeys:[]}),dn([])),Ut.props.onClick(rr)},Ut.onKeyDown=function(rr,Kr){Ut.innerMenu.getWrappedInstance().onKeyDown(rr,Kr)},Ut.onOpenChange=function(rr){var Kr=Object(c.a)(Ut),Rr=Kr.props,kr=Ut.store.getState().openKeys.concat(),dn=!1,yn=function($n){var pi=!1;if($n.open)pi=kr.indexOf($n.key)===-1,pi&&kr.push($n.key);else{var _i=kr.indexOf($n.key);pi=_i!==-1,pi&&kr.splice(_i,1)}dn=dn||pi};Array.isArray(rr)?rr.forEach(yn):yn(rr),dn&&("openKeys"in Ut.props||Ut.store.setState({openKeys:kr}),Rr.onOpenChange(kr))},Ut.onDeselect=function(rr){var Kr=Object(c.a)(Ut),Rr=Kr.props;if(Rr.selectable){var kr=Ut.store.getState().selectedKeys.concat(),dn=rr.key,yn=kr.indexOf(dn);yn!==-1&&kr.splice(yn,1),"selectedKeys"in Rr||Ut.store.setState({selectedKeys:kr}),Rr.onDeselect(Object(u.a)(Object(u.a)({},rr),{},{selectedKeys:kr}))}},Ut.onMouseEnter=function(rr){Ut.restoreModeVerticalFromInline();var Kr=Ut.props.onMouseEnter;Kr&&Kr(rr)},Ut.onTransitionEnd=function(rr){var Kr=rr.propertyName==="width"&&rr.target===rr.currentTarget,Rr=rr.target.className,kr=Object.prototype.toString.call(Rr)==="[object SVGAnimatedString]"?Rr.animVal:Rr,dn=rr.propertyName==="font-size"&&kr.indexOf("anticon")>=0;(Kr||dn)&&Ut.restoreModeVerticalFromInline()},Ut.setInnerMenu=function(rr){Ut.innerMenu=rr},Ut.isRootMenu=!0;var ir=er.defaultSelectedKeys,Ft=er.defaultOpenKeys;return"selectedKeys"in er&&(ir=er.selectedKeys||[]),"openKeys"in er&&(Ft=er.openKeys||[]),Ut.store=Object(A.c)({selectedKeys:ir,openKeys:Ft,activeKey:{"0-menu-":me(er,er.activeKey)}}),Ut.state={switchingModeFromInline:!1},Ut}return Object(s.a)(dr,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ut){this.updateOpentKeysWhenSwitchMode(Ut),this.updateMiniStore();var ir=this.props,Ft=ir.siderCollapsed,rr=ir.inlineCollapsed,Kr=ir.onOpenChange;(!Ut.inlineCollapsed&&rr||!Ut.siderCollapsed&&Ft)&&Kr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Ut){var ir=this.props,Ft=this.store,rr=this.inlineOpenKeys,Kr=Ft.getState(),Rr={};Ut.mode==="inline"&&ir.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in ir||((ir.inlineCollapsed&&!Ut.inlineCollapsed||ir.siderCollapsed&&!Ut.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Kr.openKeys.concat(),Rr.openKeys=[]),(!ir.inlineCollapsed&&Ut.inlineCollapsed||!ir.siderCollapsed&&Ut.siderCollapsed)&&(Rr.openKeys=rr,this.inlineOpenKeys=[])),Object.keys(Rr).length&&Ft.setState(Rr)}},{key:"updateMenuDisplay",value:function(){var Ut=this.props.collapsedWidth,ir=this.store,Ft=this.prevOpenKeys,rr=this.getInlineCollapsed()&&(Ut===0||Ut==="0"||Ut==="0px");rr?(this.prevOpenKeys=ir.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ft&&(this.store.setState({openKeys:Ft}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ut=this.props.mode,ir=this.state.switchingModeFromInline,Ft=this.getInlineCollapsed();return ir&&Ft?"inline":Ft?"vertical":Ut}},{key:"getInlineCollapsed",value:function(){var Ut=this.props,ir=Ut.inlineCollapsed,Ft=Ut.siderCollapsed;return Ft!==void 0?Ft:ir}},{key:"restoreModeVerticalFromInline",value:function(){var Ut=this.state.switchingModeFromInline;Ut&&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 Ut=Object(u.a)({},Object(b.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ir=this.getRealMenuMode();return Ut.className+=" ".concat(Ut.prefixCls,"-root"),Ut.direction==="rtl"&&(Ut.className+=" ".concat(Ut.prefixCls,"-rtl")),Ut=Object(u.a)(Object(u.a)({},Ut),{},{mode:ir,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:jt(this.props,this.state,ir)}),delete Ut.openAnimation,delete Ut.openTransitionName,e.createElement(A.a,{store:this.store},e.createElement(or,Object.assign({},Ut,{ref:this.setInnerMenu}),this.props.children))}}]),dr}(e.Component);ut.defaultProps={selectable:!0,onClick:Ve,onSelect:Ve,onOpenChange:Ve,onDeselect:Ve,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 St=ut,mt=function(yt){Object(h.a)(dr,yt);var xt=Object(v.a)(dr);function dr(){var er;return Object(r.a)(this,dr),er=xt.apply(this,arguments),er.onKeyDown=function(Ut){var ir=Ut.keyCode;return ir===T.a.ENTER?(er.onClick(Ut),!0):void 0},er.onMouseLeave=function(Ut){var ir=er.props,Ft=ir.eventKey,rr=ir.onItemHover,Kr=ir.onMouseLeave;rr({key:Ft,hover:!1}),Kr({key:Ft,domEvent:Ut})},er.onMouseEnter=function(Ut){var ir=er.props,Ft=ir.eventKey,rr=ir.onItemHover,Kr=ir.onMouseEnter;rr({key:Ft,hover:!0}),Kr({key:Ft,domEvent:Ut})},er.onClick=function(Ut){var ir=er.props,Ft=ir.eventKey,rr=ir.multiple,Kr=ir.onClick,Rr=ir.onSelect,kr=ir.onDeselect,dn=ir.isSelected,yn={key:Ft,keyPath:[Ft],item:Object(c.a)(er),domEvent:Ut};Kr(yn),rr?dn?kr(yn):Rr(yn):dn||Rr(yn)},er.saveNode=function(Ut){er.node=Ut},er}return Object(s.a)(dr,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ut=this.props;Ut.onDestroy&&Ut.onDestroy(Ut.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 Ut,ir=Object(u.a)({},this.props),Ft=I()(this.getPrefixCls(),ir.className,(Ut={},Object(E.a)(Ut,this.getActiveClassName(),!ir.disabled&&ir.active),Object(E.a)(Ut,this.getSelectedClassName(),ir.isSelected),Object(E.a)(Ut,this.getDisabledClassName(),ir.disabled),Ut)),rr=Object(u.a)(Object(u.a)({},ir.attribute),{},{title:typeof ir.title=="string"?ir.title:void 0,className:Ft,role:ir.role||"menuitem","aria-disabled":ir.disabled});ir.role==="option"?rr=Object(u.a)(Object(u.a)({},rr),{},{role:"option","aria-selected":ir.isSelected}):(ir.role===null||ir.role==="none")&&(rr.role="none");var Kr={onClick:ir.disabled?null:this.onClick,onMouseLeave:ir.disabled?null:this.onMouseLeave,onMouseEnter:ir.disabled?null:this.onMouseEnter},Rr=Object(u.a)({},ir.style);ir.mode==="inline"&&(ir.direction==="rtl"?Rr.paddingRight=ir.inlineIndent*ir.level:Rr.paddingLeft=ir.inlineIndent*ir.level),he.forEach(function(dn){return delete ir[dn]}),delete ir.direction;var kr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(kr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(b.default)(ir,["onClick","onMouseEnter","onMouseLeave","onSelect"]),rr,Kr,{style:Rr,ref:this.saveNode}),ir.children,kr)}}]),dr}(e.Component);mt.isMenuItem=!0,mt.defaultProps={onSelect:Ve,onMouseEnter:Ve,onMouseLeave:Ve,manualRef:Ve};var lt=Object(A.b)(function(yt,xt){var dr=yt.activeKey,er=yt.selectedKeys,Ut=xt.eventKey,ir=xt.subMenuKey;return{active:dr[ir]===Ut,isSelected:er.indexOf(Ut)!==-1}})(mt),tt=lt,Cr=function(yt){Object(h.a)(dr,yt);var xt=Object(v.a)(dr);function dr(){var er;return Object(r.a)(this,dr),er=xt.apply(this,arguments),er.renderInnerMenuItem=function(Ut){var ir=er.props,Ft=ir.renderMenuItem,rr=ir.index;return Ft(Ut,rr,er.props.subMenuKey)},er}return Object(s.a)(dr,[{key:"render",value:function(){var Ut=Object(x.a)({},this.props),ir=Ut.className,Ft=ir===void 0?"":ir,rr=Ut.rootPrefixCls,Kr="".concat(rr,"-item-group-title"),Rr="".concat(rr,"-item-group-list"),kr=Ut.title,dn=Ut.children;return he.forEach(function(yn){return delete Ut[yn]}),delete Ut.onClick,delete Ut.direction,e.createElement("li",Object.assign({},Ut,{className:"".concat(Ft," ").concat(rr,"-item-group")}),e.createElement("div",{className:Kr,title:typeof kr=="string"?kr:void 0},kr),e.createElement("ul",{className:Rr},e.Children.map(dn,this.renderInnerMenuItem)))}}]),dr}(e.Component);Cr.isMenuItemGroup=!0,Cr.defaultProps={disabled:!0};var nn=Cr,mn=function(xt){var dr=xt.className,er=xt.rootPrefixCls,Ut=xt.style;return e.createElement("li",{className:"".concat(dr," ").concat(er,"-item-divider"),style:Ut})};mn.defaultProps={disabled:!0,className:"",style:{}};var Bn=mn,oi=St,wn=Object(e.createContext)({inlineCollapsed:!1}),Rn=wn,Zt=n("0n0R"),Tt=function(yt){i()(dr,yt);var xt=o()(dr);function dr(){return f()(this,dr),xt.apply(this,arguments)}return l()(dr,[{key:"renderTitle",value:function(Ut){var ir=this.props,Ft=ir.icon,rr=ir.title,Kr=ir.level,Rr=ir.rootPrefixCls;if(!Ft)return Ut&&Kr===1&&rr&&typeof rr=="string"?e.createElement("div",{className:"".concat(Rr,"-inline-collapsed-noicon")},rr.charAt(0)):rr;var kr=Object(Zt.b)(rr)&&rr.type==="span";return e.createElement(e.Fragment,null,Ft,kr?rr:e.createElement("span",null,rr))}},{key:"render",value:function(){var Ut=this,ir=this.props,Ft=ir.rootPrefixCls,rr=ir.popupClassName;return e.createElement(Rn.Consumer,null,function(Kr){var Rr=Kr.inlineCollapsed,kr=Kr.antdMenuTheme;return e.createElement(Qt,g()({},Object(b.default)(Ut.props,["icon"]),{title:Ut.renderTitle(Rr),popupClassName:I()(Ft,"".concat(Ft,"-").concat(kr),rr)}))})}}]),dr}(e.Component);Tt.contextType=Rn,Tt.isSubMenu=1;var De=Tt,Re=n("Zm9Q"),Pe=n("3S7+"),rt=n("ZX9x"),wt=function(yt,xt){var dr={};for(var er in yt)Object.prototype.hasOwnProperty.call(yt,er)&&xt.indexOf(er)<0&&(dr[er]=yt[er]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,er=Object.getOwnPropertySymbols(yt);Ut<er.length;Ut++)xt.indexOf(er[Ut])<0&&Object.prototype.propertyIsEnumerable.call(yt,er[Ut])&&(dr[er[Ut]]=yt[er[Ut]]);return dr},Ot=function(yt){i()(dr,yt);var xt=o()(dr);function dr(){var er;return f()(this,dr),er=xt.apply(this,arguments),er.renderItem=function(Ut){var ir=Ut.siderCollapsed,Ft=er.props,rr=Ft.level,Kr=Ft.className,Rr=Ft.children,kr=Ft.rootPrefixCls,dn=er.props,yn=dn.title,ri=dn.icon,$n=dn.danger,pi=wt(dn,["title","icon","danger"]);return e.createElement(Rn.Consumer,null,function(_i){var Di,Wi=_i.inlineCollapsed,at=_i.direction,Le=yn;typeof yn=="undefined"?Le=rr===1?Rr:"":yn===!1&&(Le="");var je={title:Le};!ir&&!Wi&&(je.title=null,je.visible=!1);var Xe=Object(Re.a)(Rr).length;return e.createElement(Pe.a,g()({},je,{placement:at==="rtl"?"left":"right",overlayClassName:"".concat(kr,"-inline-collapsed-tooltip")}),e.createElement(tt,g()({},pi,{className:I()(Kr,(Di={},m()(Di,"".concat(kr,"-item-danger"),$n),m()(Di,"".concat(kr,"-item-only-child"),(ri?Xe+1:Xe)===1),Di)),title:yn}),ri,er.renderItemChildren(Wi)))})},er}return l()(dr,[{key:"renderItemChildren",value:function(Ut){var ir=this.props,Ft=ir.icon,rr=ir.children,Kr=ir.level,Rr=ir.rootPrefixCls;return!Ft||Object(Zt.b)(rr)&&rr.type==="span"?rr&&Ut&&Kr===1&&typeof rr=="string"?e.createElement("div",{className:"".concat(Rr,"-inline-collapsed-noicon")},rr.charAt(0)):rr:e.createElement("span",null,rr)}},{key:"render",value:function(){return e.createElement(rt.a.Consumer,null,this.renderItem)}}]),dr}(e.Component);Ot.isMenuItem=!0;var $t=n("H84U"),Mr=n("uaoM"),Vr=n("EXcs"),hn=function(yt){i()(dr,yt);var xt=o()(dr);function dr(er){var Ut;return f()(this,dr),Ut=xt.call(this,er),Ut.renderMenu=function(ir){var Ft=ir.getPopupContainer,rr=ir.getPrefixCls,Kr=ir.direction,Rr=Ut.props,kr=Rr.prefixCls,dn=Rr.className,yn=Rr.theme,ri={horizontal:{motionName:"slide-up"},inline:Vr.a,other:{motionName:"zoom-big"}},$n=rr("menu",kr),pi=I()(dn,"".concat($n,"-").concat(yn),m()({},"".concat($n,"-inline-collapsed"),Ut.getInlineCollapsed()));return e.createElement(Rn.Provider,{value:{inlineCollapsed:Ut.getInlineCollapsed()||!1,antdMenuTheme:yn,direction:Kr}},e.createElement(oi,g()({getPopupContainer:Ft},Ut.props,{className:pi,prefixCls:$n,direction:Kr,defaultMotions:ri})))},Object(Mr.a)(!("inlineCollapsed"in er&&er.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(Mr.a)(!(er.siderCollapsed!==void 0&&"inlineCollapsed"in er),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),Ut}return l()(dr,[{key:"getInlineCollapsed",value:function(){var Ut=this.props,ir=Ut.inlineCollapsed,Ft=Ut.siderCollapsed;return Ft!==void 0?Ft:ir}},{key:"render",value:function(){return e.createElement($t.a,null,this.renderMenu)}}]),dr}(e.Component);hn.defaultProps={className:"",theme:"light",focusable:!1};var Vt=function(yt){i()(dr,yt);var xt=o()(dr);function dr(){return f()(this,dr),xt.apply(this,arguments)}return l()(dr,[{key:"render",value:function(){var Ut=this;return e.createElement(rt.a.Consumer,null,function(ir){return e.createElement(hn,g()({},Ut.props,ir))})}}]),dr}(e.Component);Vt.Divider=Bn,Vt.Item=Ot,Vt.SubMenu=De,Vt.ItemGroup=nn},C0SR:function(R,D,n){var y=n("YH21"),g=function(){this._track=[]};g.prototype={constructor:g,recognize:function(l,a,i){return this._doTrack(l,a,i),this._recognize(l)},clear:function(){return this._track.length=0,this},_doTrack:function(l,a,i){var t=l.touches;if(!t)return;for(var o={points:[],touches:[],target:a,event:l},e=0,u=t.length;e<u;e++){var r=t[e],s=y.clientToLocal(i,r,{});o.points.push([s.zrX,s.zrY]),o.touches.push(r)}this._track.push(o)},_recognize:function(l){for(var a in p)if(p.hasOwnProperty(a)){var i=p[a](this._track,l);if(i)return i}}};function S(d){var l=d[1][0]-d[0][0],a=d[1][1]-d[0][1];return Math.sqrt(l*l+a*a)}function m(d){return[(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2]}var p={pinch:function(l,a){var i=l.length;if(!i)return;var t=(l[i-1]||{}).points,o=(l[i-2]||{}).points||t;if(o&&o.length>1&&t&&t.length>1){var e=S(t)/S(o);!isFinite(e)&&(e=1),a.pinchScale=e;var u=m(t);return a.pinchX=u[0],a.pinchY=u[1],{type:"pinch",target:l[0].target,event:a}}}},f=g;R.exports=f},C0tN:function(R,D,n){n("0o9m"),n("8Uz6"),n("Ducp"),n("6/nd")},CBdT:function(R,D,n){var y=n("ProS");n("8waO"),n("AEZ6"),n("YNf1");var g=n("q3GZ");y.registerVisual(g)},CF2D:function(R,D,n){var y=n("ProS");n("vZI5"),n("GeKi");var g=n("6r85"),S=n("TJmX"),m=n("CbHG");y.registerPreprocessor(g),y.registerVisual(S),y.registerLayout(m)},CFYs:function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("pVnL"),m=n.n(S),p=n("lwsE"),f=n.n(p),d=n("W8MJ"),l=n.n(d),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),u=n.n(e),r=n("q1tI"),s=n.n(r),c=n("TSYQ"),h=n.n(c),v=n("BGR+"),A=n("V/uB"),b=n.n(A),x=n("NAnI"),E=n.n(x),T=n("J84W"),_=n.n(T),C=n("kbBi"),w=n.n(C),O=n("H84U"),I=n("CWQg"),k=n("uaoM"),M=n("lMfh"),U=n.n(M),P=2,X=.16,F=.05,j=.05,K=.15,z=5,V=4,Q=[{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 G(Ot,$t,Mr){var Vr;return Math.round(Ot.h)>=60&&Math.round(Ot.h)<=240?Vr=Mr?Math.round(Ot.h)-P*$t:Math.round(Ot.h)+P*$t:Vr=Mr?Math.round(Ot.h)+P*$t:Math.round(Ot.h)-P*$t,Vr<0?Vr+=360:Vr>=360&&(Vr-=360),Vr}function te(Ot,$t,Mr){if(Ot.h===0&&Ot.s===0)return Ot.s;var Vr;return Mr?Vr=Ot.s-X*$t:$t===V?Vr=Ot.s+X:Vr=Ot.s+F*$t,Vr>1&&(Vr=1),Mr&&$t===z&&Vr>.1&&(Vr=.1),Vr<.06&&(Vr=.06),Number(Vr.toFixed(2))}function q(Ot,$t,Mr){var Vr;return Mr?Vr=Ot.v+j*$t:Vr=Ot.v-K*$t,Vr>1&&(Vr=1),Number(Vr.toFixed(2))}function se(Ot){for(var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Mr=[],Vr=U()(Ot),hn=z;hn>0;hn-=1){var Vt=Vr.toHsv(),yt=U()({h:G(Vt,hn,!0),s:te(Vt,hn,!0),v:q(Vt,hn,!0)}).toHexString();Mr.push(yt)}Mr.push(Vr.toHexString());for(var xt=1;xt<=V;xt+=1){var dr=Vr.toHsv(),er=U()({h:G(dr,xt),s:te(dr,xt),v:q(dr,xt)}).toHexString();Mr.push(er)}return $t.theme==="dark"?Q.map(function(Ut){var ir=Ut.index,Ft=Ut.opacity,rr=U.a.mix($t.backgroundColor||"#141414",Mr[ir],Ft*100).toHexString();return rr}):Mr}var re={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"},we={},Oe={};Object.keys(re).forEach(function(Ot){we[Ot]=se(re[Ot]),we[Ot].primary=we[Ot][5],Oe[Ot]=se(re[Ot],{theme:"dark",backgroundColor:"#141414"}),Oe[Ot].primary=Oe[Ot][5]});var Me=we.red,Qe=we.volcano,Ve=we.gold,dt=we.orange,Fe=we.yellow,ue=we.lime,et=we.green,he=we.cyan,J=we.blue,Y=we.geekblue,$=we.purple,de=we.magenta,be=we.grey;function Te(Ot){return!Ot||Ot<0?0:Ot>100?100:Ot}function Be(Ot){var $t=Ot.success,Mr=Ot.successPercent,Vr=Mr;return $t&&"progress"in $t&&(Object(k.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),Vr=$t.progress),$t&&"percent"in $t&&(Vr=$t.percent),Vr}var fe=function(Ot,$t){var Mr={};for(var Vr in Ot)Object.prototype.hasOwnProperty.call(Ot,Vr)&&$t.indexOf(Vr)<0&&(Mr[Vr]=Ot[Vr]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Vr=Object.getOwnPropertySymbols(Ot);hn<Vr.length;hn++)$t.indexOf(Vr[hn])<0&&Object.prototype.propertyIsEnumerable.call(Ot,Vr[hn])&&(Mr[Vr[hn]]=Ot[Vr[hn]]);return Mr},xe=function($t){var Mr=[];return Object.keys($t).forEach(function(Vr){var hn=parseFloat(Vr.replace(/%/g,""));isNaN(hn)||Mr.push({key:hn,value:$t[Vr]})}),Mr=Mr.sort(function(Vr,hn){return Vr.key-hn.key}),Mr.map(function(Vr){var hn=Vr.key,Vt=Vr.value;return"".concat(Vt," ").concat(hn,"%")}).join(", ")},ke=function($t){var Mr=$t.from,Vr=Mr===void 0?re.blue:Mr,hn=$t.to,Vt=hn===void 0?re.blue:hn,yt=$t.direction,xt=yt===void 0?"to right":yt,dr=fe($t,["from","to","direction"]);if(Object.keys(dr).length!==0){var er=xe(dr);return{backgroundImage:"linear-gradient(".concat(xt,", ").concat(er,")")}}return{backgroundImage:"linear-gradient(".concat(xt,", ").concat(Vr,", ").concat(Vt,")")}},nt=function($t){var Mr=$t.prefixCls,Vr=$t.percent,hn=$t.strokeWidth,Vt=$t.size,yt=$t.strokeColor,xt=$t.strokeLinecap,dr=$t.children,er=$t.trailColor,Ut=$t.success,ir=yt&&typeof yt!="string"?ke(yt):{background:yt},Ft=er?{backgroundColor:er}:void 0,rr=m()({width:"".concat(Te(Vr),"%"),height:hn||(Vt==="small"?6:8),borderRadius:xt==="square"?0:""},ir),Kr=Be($t),Rr={width:"".concat(Te(Kr),"%"),height:hn||(Vt==="small"?6:8),borderRadius:xt==="square"?0:"",backgroundColor:Ut==null?void 0:Ut.strokeColor},kr=Kr!==void 0?r.createElement("div",{className:"".concat(Mr,"-success-bg"),style:Rr}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(Mr,"-outer")},r.createElement("div",{className:"".concat(Mr,"-inner"),style:Ft},r.createElement("div",{className:"".concat(Mr,"-bg"),style:rr}),kr)),dr)},Ct=nt,pt={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},He=function($t){var Mr=$t.map(function(){return Object(r.useRef)()}),Vr=Object(r.useRef)();return Object(r.useEffect)(function(){var hn=Date.now(),Vt=!1;Object.keys(Mr).forEach(function(yt){var xt=Mr[yt].current;if(!xt)return;Vt=!0;var dr=xt.style;dr.transitionDuration=".3s, .3s, .3s, .06s",Vr.current&&hn-Vr.current<100&&(dr.transitionDuration="0s, 0s")}),Vt&&(Vr.current=Date.now())}),[Mr]};function nr(){return nr=Object.assign||function(Ot){for(var $t=1;$t<arguments.length;$t++){var Mr=arguments[$t];for(var Vr in Mr)Object.prototype.hasOwnProperty.call(Mr,Vr)&&(Ot[Vr]=Mr[Vr])}return Ot},nr.apply(this,arguments)}function ht(Ot,$t){return Jt(Ot)||Ht(Ot,$t)||pr(Ot,$t)||Gt()}function Gt(){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 pr(Ot,$t){if(!Ot)return;if(typeof Ot=="string")return Qt(Ot,$t);var Mr=Object.prototype.toString.call(Ot).slice(8,-1);if(Mr==="Object"&&Ot.constructor&&(Mr=Ot.constructor.name),Mr==="Map"||Mr==="Set")return Array.from(Ot);if(Mr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Mr))return Qt(Ot,$t)}function Qt(Ot,$t){($t==null||$t>Ot.length)&&($t=Ot.length);for(var Mr=0,Vr=new Array($t);Mr<$t;Mr++)Vr[Mr]=Ot[Mr];return Vr}function Ht(Ot,$t){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Ot)))return;var Mr=[],Vr=!0,hn=!1,Vt=void 0;try{for(var yt=Ot[Symbol.iterator](),xt;!(Vr=(xt=yt.next()).done)&&!(Mr.push(xt.value),$t&&Mr.length===$t);Vr=!0);}catch(dr){hn=!0,Vt=dr}finally{try{!Vr&&yt.return!=null&&yt.return()}finally{if(hn)throw Vt}}return Mr}function Jt(Ot){if(Array.isArray(Ot))return Ot}function Ge(Ot,$t){if(Ot==null)return{};var Mr=pe(Ot,$t),Vr,hn;if(Object.getOwnPropertySymbols){var Vt=Object.getOwnPropertySymbols(Ot);for(hn=0;hn<Vt.length;hn++){if(Vr=Vt[hn],$t.indexOf(Vr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Ot,Vr))continue;Mr[Vr]=Ot[Vr]}}return Mr}function pe(Ot,$t){if(Ot==null)return{};var Mr={},Vr=Object.keys(Ot),hn,Vt;for(Vt=0;Vt<Vr.length;Vt++){if(hn=Vr[Vt],$t.indexOf(hn)>=0)continue;Mr[hn]=Ot[hn]}return Mr}var oe=function($t){var Mr=$t.className,Vr=$t.percent,hn=$t.prefixCls,Vt=$t.strokeColor,yt=$t.strokeLinecap,xt=$t.strokeWidth,dr=$t.style,er=$t.trailColor,Ut=$t.trailWidth,ir=$t.transition,Ft=Ge($t,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Ft.gapPosition;var rr=Array.isArray(Vr)?Vr:[Vr],Kr=Array.isArray(Vt)?Vt:[Vt],Rr=He(rr),kr=ht(Rr,1),dn=kr[0],yn=xt/2,ri=100-xt/2,$n="M ".concat(yt==="round"?yn:0,",").concat(yn,`
L `).concat(yt==="round"?ri:100,",").concat(yn),pi="0 0 100 ".concat(xt),_i=0;return s.a.createElement("svg",nr({className:h()("".concat(hn,"-line"),Mr),viewBox:pi,preserveAspectRatio:"none",style:dr},Ft),s.a.createElement("path",{className:"".concat(hn,"-line-trail"),d:$n,strokeLinecap:yt,stroke:er,strokeWidth:Ut||xt,fillOpacity:"0"}),rr.map(function(Di,Wi){var at={strokeDasharray:"".concat(Di,"px, 100px"),strokeDashoffset:"-".concat(_i,"px"),transition:ir||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Le=Kr[Wi]||Kr[Kr.length-1];return _i+=Di,s.a.createElement("path",{key:Wi,className:"".concat(hn,"-line-path"),d:$n,strokeLinecap:yt,stroke:Le,strokeWidth:xt,fillOpacity:"0",ref:dn[Wi],style:at})}))};oe.defaultProps=pt;var ct=oe;function qe(){return qe=Object.assign||function(Ot){for(var $t=1;$t<arguments.length;$t++){var Mr=arguments[$t];for(var Vr in Mr)Object.prototype.hasOwnProperty.call(Mr,Vr)&&(Ot[Vr]=Mr[Vr])}return Ot},qe.apply(this,arguments)}function me(Ot,$t){return _t(Ot)||or(Ot,$t)||vr(Ot,$t)||Kt()}function Kt(){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 vr(Ot,$t){if(!Ot)return;if(typeof Ot=="string")return bt(Ot,$t);var Mr=Object.prototype.toString.call(Ot).slice(8,-1);if(Mr==="Object"&&Ot.constructor&&(Mr=Ot.constructor.name),Mr==="Map"||Mr==="Set")return Array.from(Ot);if(Mr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Mr))return bt(Ot,$t)}function bt(Ot,$t){($t==null||$t>Ot.length)&&($t=Ot.length);for(var Mr=0,Vr=new Array($t);Mr<$t;Mr++)Vr[Mr]=Ot[Mr];return Vr}function or(Ot,$t){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Ot)))return;var Mr=[],Vr=!0,hn=!1,Vt=void 0;try{for(var yt=Ot[Symbol.iterator](),xt;!(Vr=(xt=yt.next()).done)&&!(Mr.push(xt.value),$t&&Mr.length===$t);Vr=!0);}catch(dr){hn=!0,Vt=dr}finally{try{!Vr&&yt.return!=null&&yt.return()}finally{if(hn)throw Vt}}return Mr}function _t(Ot){if(Array.isArray(Ot))return Ot}function jt(Ot,$t){if(Ot==null)return{};var Mr=ut(Ot,$t),Vr,hn;if(Object.getOwnPropertySymbols){var Vt=Object.getOwnPropertySymbols(Ot);for(hn=0;hn<Vt.length;hn++){if(Vr=Vt[hn],$t.indexOf(Vr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Ot,Vr))continue;Mr[Vr]=Ot[Vr]}}return Mr}function ut(Ot,$t){if(Ot==null)return{};var Mr={},Vr=Object.keys(Ot),hn,Vt;for(Vt=0;Vt<Vr.length;Vt++){if(hn=Vr[Vt],$t.indexOf(hn)>=0)continue;Mr[hn]=Ot[hn]}return Mr}var St=0;function mt(Ot){return+Ot.replace("%","")}function lt(Ot){return Array.isArray(Ot)?Ot:[Ot]}function tt(Ot,$t,Mr,Vr){var hn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Vt=arguments.length>5?arguments[5]:void 0,yt=50-Vr/2,xt=0,dr=-yt,er=0,Ut=-2*yt;switch(Vt){case"left":xt=-yt,dr=0,er=2*yt,Ut=0;break;case"right":xt=yt,dr=0,er=-2*yt,Ut=0;break;case"bottom":dr=yt,Ut=2*yt;break;default:}var ir="M 50,50 m ".concat(xt,",").concat(dr,`
a `).concat(yt,",").concat(yt," 0 1 1 ").concat(er,",").concat(-Ut,`
a `).concat(yt,",").concat(yt," 0 1 1 ").concat(-er,",").concat(Ut),Ft=Math.PI*2*yt,rr={stroke:Mr,strokeDasharray:"".concat($t/100*(Ft-hn),"px ").concat(Ft,"px"),strokeDashoffset:"-".concat(hn/2+Ot/100*(Ft-hn),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ir,pathStyle:rr}}var Cr=function($t){var Mr=$t.prefixCls,Vr=$t.strokeWidth,hn=$t.trailWidth,Vt=$t.gapDegree,yt=$t.gapPosition,xt=$t.trailColor,dr=$t.strokeLinecap,er=$t.style,Ut=$t.className,ir=$t.strokeColor,Ft=$t.percent,rr=jt($t,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Kr=Object(r.useMemo)(function(){return St+=1,St},[]),Rr=tt(0,100,xt,Vr,Vt,yt),kr=Rr.pathString,dn=Rr.pathStyle,yn=lt(Ft),ri=lt(ir),$n=ri.find(function(at){return Object.prototype.toString.call(at)==="[object Object]"}),pi=He(yn),_i=me(pi,1),Di=_i[0],Wi=function(){var Le=0;return yn.map(function(je,Xe){var it=ri[Xe]||ri[ri.length-1],Ze=Object.prototype.toString.call(it)==="[object Object]"?"url(#".concat(Mr,"-gradient-").concat(Kr,")"):"",ot=tt(Le,je,it,Vr,Vt,yt);return Le+=je,s.a.createElement("path",{key:Xe,className:"".concat(Mr,"-circle-path"),d:ot.pathString,stroke:Ze,strokeLinecap:dr,strokeWidth:Vr,opacity:je===0?0:1,fillOpacity:"0",style:ot.pathStyle,ref:Di[Xe]})})};return s.a.createElement("svg",qe({className:h()("".concat(Mr,"-circle"),Ut),viewBox:"0 0 100 100",style:er},rr),$n&&s.a.createElement("defs",null,s.a.createElement("linearGradient",{id:"".concat(Mr,"-gradient-").concat(Kr),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys($n).sort(function(at,Le){return mt(at)-mt(Le)}).map(function(at,Le){return s.a.createElement("stop",{key:Le,offset:at,stopColor:$n[at]})}))),s.a.createElement("path",{className:"".concat(Mr,"-circle-trail"),d:kr,stroke:xt,strokeLinecap:dr,strokeWidth:hn||Vr,fillOpacity:"0",style:dn}),Wi().reverse())};Cr.defaultProps=pt;var nn=Cr,mn={Line:ct,Circle:nn};function Bn(Ot){var $t=Ot.percent,Mr=Ot.success,Vr=Ot.successPercent,hn=Te($t),Vt=Be({success:Mr,successPercent:Vr});return Vt?[Te(Vt),Te(hn-Te(Vt))]:hn}function oi(Ot){var $t=Ot.success,Mr=Ot.strokeColor,Vr=Ot.successPercent,hn=Mr||null,Vt=Be({success:$t,successPercent:Vr});return Vt?[re.green,hn]:hn}var wn=function($t){var Mr=$t.prefixCls,Vr=$t.width,hn=$t.strokeWidth,Vt=$t.trailColor,yt=$t.strokeLinecap,xt=$t.gapPosition,dr=$t.gapDegree,er=$t.type,Ut=$t.children,ir=Vr||120,Ft={width:ir,height:ir,fontSize:ir*.15+6},rr=hn||6,Kr=xt||er==="dashboard"&&"bottom"||"top",Rr=function(){return dr||dr===0?dr:er==="dashboard"?75:void 0},kr=oi($t),dn=Object.prototype.toString.call(kr)==="[object Object]",yn=h()("".concat(Mr,"-inner"),g()({},"".concat(Mr,"-circle-gradient"),dn));return r.createElement("div",{className:yn,style:Ft},r.createElement(nn,{percent:Bn($t),strokeWidth:rr,trailWidth:rr,strokeColor:kr,strokeLinecap:yt,trailColor:Vt,prefixCls:Mr,gapDegree:Rr(),gapPosition:Kr}),Ut)},Rn=wn,Zt=function($t){for(var Mr=$t.size,Vr=$t.steps,hn=$t.percent,Vt=hn===void 0?0:hn,yt=$t.strokeWidth,xt=yt===void 0?8:yt,dr=$t.strokeColor,er=$t.trailColor,Ut=$t.prefixCls,ir=$t.children,Ft=Math.floor(Vr*(Vt/100)),rr=Mr==="small"?2:14,Kr=[],Rr=0;Rr<Vr;Rr+=1)Kr.push(r.createElement("div",{key:Rr,className:h()("".concat(Ut,"-steps-item"),g()({},"".concat(Ut,"-steps-item-active"),Rr<=Ft-1)),style:{backgroundColor:Rr<=Ft-1?dr:er,width:rr,height:xt}}));return r.createElement("div",{className:"".concat(Ut,"-steps-outer")},Kr,ir)},Tt=Zt,De=function(Ot,$t){var Mr={};for(var Vr in Ot)Object.prototype.hasOwnProperty.call(Ot,Vr)&&$t.indexOf(Vr)<0&&(Mr[Vr]=Ot[Vr]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Vr=Object.getOwnPropertySymbols(Ot);hn<Vr.length;hn++)$t.indexOf(Vr[hn])<0&&Object.prototype.propertyIsEnumerable.call(Ot,Vr[hn])&&(Mr[Vr[hn]]=Ot[Vr[hn]]);return Mr},Re=Object(I.a)("line","circle","dashboard"),Pe=Object(I.a)("normal","exception","active","success"),rt=function(Ot){o()(Mr,Ot);var $t=u()(Mr);function Mr(){var Vr;return f()(this,Mr),Vr=$t.apply(this,arguments),Vr.renderProgress=function(hn){var Vt,yt=hn.getPrefixCls,xt=hn.direction,dr=i()(Vr),er=dr.props,Ut=er.prefixCls,ir=er.className,Ft=er.size,rr=er.type,Kr=er.steps,Rr=er.showInfo,kr=er.strokeColor,dn=De(er,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),yn=yt("progress",Ut),ri=Vr.getProgressStatus(),$n=Vr.renderProcessInfo(yn,ri);Object(k.a)(!("successPercent"in er),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var pi;rr==="line"?pi=Kr?r.createElement(Tt,m()({},Vr.props,{strokeColor:typeof kr=="string"?kr:void 0,prefixCls:yn,steps:Kr}),$n):r.createElement(Ct,m()({},Vr.props,{prefixCls:yn}),$n):(rr==="circle"||rr==="dashboard")&&(pi=r.createElement(Rn,m()({},Vr.props,{prefixCls:yn,progressStatus:ri}),$n));var _i=h()(yn,(Vt={},g()(Vt,"".concat(yn,"-").concat(rr==="dashboard"&&"circle"||Kr&&"steps"||rr),!0),g()(Vt,"".concat(yn,"-status-").concat(ri),!0),g()(Vt,"".concat(yn,"-show-info"),Rr),g()(Vt,"".concat(yn,"-").concat(Ft),Ft),g()(Vt,"".concat(yn,"-rtl"),xt==="rtl"),Vt),ir);return r.createElement("div",m()({},Object(v.default)(dn,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:_i}),pi)},Vr}return l()(Mr,[{key:"getPercentNumber",value:function(){var hn=this.props.percent,Vt=hn===void 0?0:hn,yt=Be(this.props);return parseInt(yt!==void 0?yt.toString():Vt.toString(),10)}},{key:"getProgressStatus",value:function(){var hn=this.props.status;return Pe.indexOf(hn)<0&&this.getPercentNumber()>=100?"success":hn||"normal"}},{key:"renderProcessInfo",value:function(hn,Vt){var yt=this.props,xt=yt.showInfo,dr=yt.format,er=yt.type,Ut=yt.percent,ir=Be(this.props);if(!xt)return null;var Ft,rr=dr||function(Rr){return"".concat(Rr,"%")},Kr=er==="line";return dr||Vt!=="exception"&&Vt!=="success"?Ft=rr(Te(Ut),Te(ir)):Vt==="exception"?Ft=Kr?r.createElement(w.a,null):r.createElement(b.a,null):Vt==="success"&&(Ft=Kr?r.createElement(_.a,null):r.createElement(E.a,null)),r.createElement("span",{className:"".concat(hn,"-text"),title:typeof Ft=="string"?Ft:void 0},Ft)}},{key:"render",value:function(){return r.createElement(O.a,null,this.renderProgress)}}]),Mr}(r.Component);rt.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var wt=D.a=rt},CH3K:function(R,D){function n(y,g){for(var S=-1,m=g.length,p=y.length;++S<m;)y[p+S]=g[S];return y}R.exports=n},"CMP+":function(R,D,n){var y=n("bYtY"),g=n("hM6l"),S=function(p,f,d,l){g.call(this,p,f,d),this.type=l||"value",this.model=null};S.prototype={constructor:S,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},y.inherits(S,g);var m=S;R.exports=m},CP8R:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},"CWI+":function(R,D,n){},CbHG:function(R,D,n){var y=n("IwbS"),g=y.subPixelOptimize,S=n("zM3Q"),m=n("OELB"),p=m.parsePercent,f=n("bYtY"),d=f.retrieve2,l=typeof Float32Array!="undefined"?Float32Array:Array,a={seriesType:"candlestick",plan:S(),reset:function(o){var e=o.coordinateSystem,u=o.getData(),r=t(o,u),s=0,c=1,h=["x","y"],v=u.mapDimension(h[s]),A=u.mapDimension(h[c],!0),b=A[0],x=A[1],E=A[2],T=A[3];if(u.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),v==null||A.length<4)return;return{progress:o.pipelineContext.large?C:_};function _(w,O){for(var I;(I=w.next())!=null;){var k=O.get(v,I),M=O.get(b,I),U=O.get(x,I),P=O.get(E,I),X=O.get(T,I),F=Math.min(M,U),j=Math.max(M,U),K=te(F,k),z=te(j,k),V=te(P,k),Q=te(X,k),G=[];q(G,z,0),q(G,K,1),G.push(re(Q),re(z),re(V),re(K)),O.setItemLayout(I,{sign:i(O,I,M,U,x),initBaseline:M>U?z[c]:K[c],ends:G,brushRect:se(P,X,k)})}function te(we,Oe){var Me=[];return Me[s]=Oe,Me[c]=we,isNaN(Oe)||isNaN(we)?[NaN,NaN]:e.dataToPoint(Me)}function q(we,Oe,Me){var Qe=Oe.slice(),Ve=Oe.slice();Qe[s]=g(Qe[s]+r/2,1,!1),Ve[s]=g(Ve[s]-r/2,1,!0),Me?we.push(Qe,Ve):we.push(Ve,Qe)}function se(we,Oe,Me){var Qe=te(we,Me),Ve=te(Oe,Me);return Qe[s]-=r/2,Ve[s]-=r/2,{x:Qe[0],y:Qe[1],width:c?r:Ve[0]-Qe[0],height:c?Ve[1]-Qe[1]:r}}function re(we){return we[s]=g(we[s],1),we}}function C(w,O){for(var I=new l(w.count*4),k=0,M,U=[],P=[],X;(X=w.next())!=null;){var F=O.get(v,X),j=O.get(b,X),K=O.get(x,X),z=O.get(E,X),V=O.get(T,X);if(isNaN(F)||isNaN(z)||isNaN(V)){I[k++]=NaN,k+=3;continue}I[k++]=i(O,X,j,K,x),U[s]=F,U[c]=z,M=e.dataToPoint(U,null,P),I[k++]=M?M[0]:NaN,I[k++]=M?M[1]:NaN,U[c]=V,M=e.dataToPoint(U,null,P),I[k++]=M?M[1]:NaN}O.setLayout("largePoints",I)}}};function i(o,e,u,r,s){var c;return u>r?c=-1:u<r?c=1:c=e>0?o.get(s,e-1)<=r?1:-1:1,c}function t(o,e){var u=o.getBaseAxis(),r,s=u.type==="category"?u.getBandWidth():(r=u.getExtent(),Math.abs(r[1]-r[0])/e.count()),c=p(d(o.get("barMaxWidth"),s),s),h=p(d(o.get("barMinWidth"),1),s),v=o.get("barWidth");return v!=null?p(v,s):Math.max(Math.min(s/2,c),h)}R.exports=a},CiB2:function(R,D,n){"use strict";n.d(D,"a",function(){return y});function y(g){if(g==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(R,D,n){n("5NHt"),n("f3JH")},CrYA:function(R,D,n){var y=n("MFOe"),g=y.Global;R.exports={name:"sessionStorage",read:m,write:p,each:f,remove:d,clearAll:l};function S(){return g.sessionStorage}function m(a){return S().getItem(a)}function p(a,i){return S().setItem(a,i)}function f(a){for(var i=S().length-1;i>=0;i--){var t=S().key(i);a(m(t),t)}}function d(a){return S().removeItem(a)}function l(){return S().clear()}},Csr3:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("4vCz"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},Cwc5:function(R,D,n){var y=n("NKxu"),g=n("Npjl");function S(m,p){var f=g(m,p);return y(f)?f:void 0}R.exports=S},D1WM:function(R,D,n){var y=n("bYtY"),g=n("hM6l"),S=function(p,f,d,l,a){g.call(this,p,f,d),this.type=l||"value",this.axisIndex=a};S.prototype={constructor:S,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},y.inherits(S,g);var m=S;R.exports=m},D5nY:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("4NO4"),m=S.makeInner,p=S.getDataItemValue,f=n("bYtY"),d=f.createHashMap,l=f.each,a=f.map,i=f.isArray,t=f.isString,o=f.isObject,e=f.isTypedArray,u=f.isArrayLike,r=f.extend,s=f.assert,c=n("7G+c"),h=n("k9D9"),v=h.SOURCE_FORMAT_ORIGINAL,A=h.SOURCE_FORMAT_ARRAY_ROWS,b=h.SOURCE_FORMAT_OBJECT_ROWS,x=h.SOURCE_FORMAT_KEYED_COLUMNS,E=h.SOURCE_FORMAT_UNKNOWN,T=h.SOURCE_FORMAT_TYPED_ARRAY,_=h.SERIES_LAYOUT_BY_ROW,C={Must:1,Might:2,Not:3},w=m();function O(G){var te=G.option.source,q=E;if(e(te))q=T;else if(i(te)){te.length===0&&(q=A);for(var se=0,re=te.length;se<re;se++){var we=te[se];if(we==null)continue;if(i(we)){q=A;break}else if(o(we)){q=b;break}}}else if(o(te)){for(var Oe in te)if(te.hasOwnProperty(Oe)&&u(te[Oe])){q=x;break}}else if(te!=null)throw new Error("Invalid data");w(G).sourceFormat=q}function I(G){return w(G).source}function k(G){w(G).datasetMap=d()}function M(G){var te=G.option,q=te.data,se=e(q)?T:v,re=!1,we=te.seriesLayoutBy,Oe=te.sourceHeader,Me=te.dimensions,Qe=z(G);if(Qe){var Ve=Qe.option;q=Ve.source,se=w(Qe).sourceFormat,re=!0,we=we||Ve.seriesLayoutBy,Oe==null&&(Oe=Ve.sourceHeader),Me=Me||Ve.dimensions}var dt=U(q,se,we,Oe,Me);w(G).source=new c({data:q,fromDataset:re,seriesLayoutBy:we,sourceFormat:se,dimensionsDefine:dt.dimensionsDefine,startIndex:dt.startIndex,dimensionsDetectCount:dt.dimensionsDetectCount,encodeDefine:te.encode})}function U(G,te,q,se,re){if(!G)return{dimensionsDefine:P(re)};var we,Oe;if(te===A)se==="auto"||se==null?X(function(Qe){Qe!=null&&Qe!=="-"&&(t(Qe)?Oe==null&&(Oe=1):Oe=0)},q,G,10):Oe=se?1:0,!re&&Oe===1&&(re=[],X(function(Qe,Ve){re[Ve]=Qe!=null?Qe:""},q,G)),we=re?re.length:q===_?G.length:G[0]?G[0].length:null;else if(te===b)re||(re=F(G));else if(te===x)re||(re=[],l(G,function(Qe,Ve){re.push(Ve)}));else if(te===v){var Me=p(G[0]);we=i(Me)&&Me.length||1}else te===T;return{startIndex:Oe,dimensionsDefine:P(re),dimensionsDetectCount:we}}function P(G){if(!G)return;var te=d();return a(G,function(q,se){if(q=r({},o(q)?q:{name:q}),q.name==null)return q;q.name+="",q.displayName==null&&(q.displayName=q.name);var re=te.get(q.name);return re?q.name+="-"+re.count++:te.set(q.name,{count:1}),q})}function X(G,te,q,se){if(se==null&&(se=Infinity),te===_)for(var re=0;re<q.length&&re<se;re++)G(q[re]?q[re][0]:null,re);else for(var we=q[0]||[],re=0;re<we.length&&re<se;re++)G(we[re],re)}function F(G){for(var te=0,q;te<G.length&&!(q=G[te++]););if(q){var se=[];return l(q,function(re,we){se.push(we)}),se}}function j(G,te,q){var se={},re=z(te);if(!re||!G)return se;var we=[],Oe=[],Me=te.ecModel,Qe=w(Me).datasetMap,Ve=re.uid+"_"+q.seriesLayoutBy,dt,Fe;G=G.slice(),l(G,function(J,Y){!o(J)&&(G[Y]={name:J}),J.type==="ordinal"&&dt==null&&(dt=Y,Fe=he(G[Y])),se[J.name]=[]});var ue=Qe.get(Ve)||Qe.set(Ve,{categoryWayDim:Fe,valueWayDim:0});l(G,function(J,Y){var $=J.name,de=he(J);if(dt==null){var be=ue.valueWayDim;et(se[$],be,de),et(Oe,be,de),ue.valueWayDim+=de}else if(dt===Y)et(se[$],0,de),et(we,0,de);else{var be=ue.categoryWayDim;et(se[$],be,de),et(Oe,be,de),ue.categoryWayDim+=de}});function et(J,Y,$){for(var de=0;de<$;de++)J.push(Y+de)}function he(J){var Y=J.dimsDef;return Y?Y.length:1}return we.length&&(se.itemName=we),Oe.length&&(se.seriesName=Oe),se}function K(G,te,q){var se={},re=z(G);if(!re)return se;var we=te.sourceFormat,Oe=te.dimensionsDefine,Me;(we===b||we===x)&&l(Oe,function(dt,Fe){(o(dt)?dt.name:dt)==="name"&&(Me=Fe)});var Qe=function(){for(var dt={},Fe={},ue=[],et=0,he=Math.min(5,q);et<he;et++){var J=Q(te.data,we,te.seriesLayoutBy,Oe,te.startIndex,et);ue.push(J);var Y=J===C.Not;if(Y&&dt.v==null&&et!==Me&&(dt.v=et),(dt.n==null||dt.n===dt.v||!Y&&ue[dt.n]===C.Not)&&(dt.n=et),$(dt)&&ue[dt.n]!==C.Not)return dt;Y||(J===C.Might&&Fe.v==null&&et!==Me&&(Fe.v=et),(Fe.n==null||Fe.n===Fe.v)&&(Fe.n=et))}function $(de){return de.v!=null&&de.n!=null}return $(dt)?dt:$(Fe)?Fe:null}();if(Qe){se.value=Qe.v;var Ve=Me!=null?Me:Qe.n;se.itemName=[Ve],se.seriesName=[Ve]}return se}function z(G){var te=G.option,q=te.data;if(!q)return G.ecModel.getComponent("dataset",te.datasetIndex||0)}function V(G,te){return Q(G.data,G.sourceFormat,G.seriesLayoutBy,G.dimensionsDefine,G.startIndex,te)}function Q(G,te,q,se,re,we){var Oe,Me=5;if(e(G))return C.Not;var Qe,Ve;if(se){var dt=se[we];o(dt)?(Qe=dt.name,Ve=dt.type):t(dt)&&(Qe=dt)}if(Ve!=null)return Ve==="ordinal"?C.Must:C.Not;if(te===A)if(q===_){for(var Fe=G[we],ue=0;ue<(Fe||[]).length&&ue<Me;ue++)if((Oe=Y(Fe[re+ue]))!=null)return Oe}else for(var ue=0;ue<G.length&&ue<Me;ue++){var et=G[re+ue];if(et&&(Oe=Y(et[we]))!=null)return Oe}else if(te===b){if(!Qe)return C.Not;for(var ue=0;ue<G.length&&ue<Me;ue++){var he=G[ue];if(he&&(Oe=Y(he[Qe]))!=null)return Oe}}else if(te===x){if(!Qe)return C.Not;var Fe=G[Qe];if(!Fe||e(Fe))return C.Not;for(var ue=0;ue<Fe.length&&ue<Me;ue++)if((Oe=Y(Fe[ue]))!=null)return Oe}else if(te===v)for(var ue=0;ue<G.length&&ue<Me;ue++){var he=G[ue],J=p(he);if(!i(J))return C.Not;if((Oe=Y(J[we]))!=null)return Oe}function Y($){var de=t($);if($!=null&&isFinite($)&&$!=="")return de?C.Might:C.Not;if(de&&$!=="-")return C.Must}return C.Not}D.BE_ORDINAL=C,D.detectSourceFormat=O,D.getSource=I,D.resetSourceDefaulter=k,D.prepareSource=M,D.makeSeriesEncodeForAxisCoordSys=j,D.makeSeriesEncodeForNameBased=K,D.guessOrdinal=V},D9ME:function(R,D,n){var y=n("IwbS"),g=n("fls0"),S=n("bYtY"),m=n("oVpE"),p=m.createSymbol,f=n("QBsz"),d=n("Sj9i");function l(t,o,e){y.Group.call(this),this.add(this.createLine(t,o,e)),this._updateEffectSymbol(t,o)}var a=l.prototype;a.createLine=function(t,o,e){return new g(t,o,e)},a._updateEffectSymbol=function(t,o){var e=t.getItemModel(o),u=e.getModel("effect"),r=u.get("symbolSize"),s=u.get("symbol");S.isArray(r)||(r=[r,r]);var c=u.get("color")||t.getItemVisual(o,"color"),h=this.childAt(1);if(this._symbolType!==s&&(this.remove(h),h=p(s,-.5,-.5,1,1,c),h.z2=100,h.culling=!0,this.add(h)),!h)return;h.setStyle("shadowColor",c),h.setStyle(u.getItemStyle(["color"])),h.attr("scale",r),h.setColor(c),h.attr("scale",r),this._symbolType=s,this._symbolScale=r,this._updateEffectAnimation(t,u,o)},a._updateEffectAnimation=function(t,o,e){var u=this.childAt(1);if(!u)return;var r=this,s=t.getItemLayout(e),c=o.get("period")*1e3,h=o.get("loop"),v=o.get("constantSpeed"),A=S.retrieve(o.get("delay"),function(T){return T/t.count()*c/3}),b=typeof A=="function";if(u.ignore=!0,this.updateAnimationPoints(u,s),v>0&&(c=this.getLineLength(u)/v*1e3),c!==this._period||h!==this._loop){u.stopAnimation();var x=A;b&&(x=A(e)),u.__t>0&&(x=-c*u.__t),u.__t=0;var E=u.animate("",h).when(c,{__t:1}).delay(x).during(function(){r.updateSymbolPosition(u)});h||E.done(function(){r.remove(u)}),E.start()}this._period=c,this._loop=h},a.getLineLength=function(t){return f.dist(t.__p1,t.__cp1)+f.dist(t.__cp1,t.__p2)},a.updateAnimationPoints=function(t,o){t.__p1=o[0],t.__p2=o[1],t.__cp1=o[2]||[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]},a.updateData=function(t,o,e){this.childAt(0).updateData(t,o,e),this._updateEffectSymbol(t,o)},a.updateSymbolPosition=function(t){var o=t.__p1,e=t.__p2,u=t.__cp1,r=t.__t,s=t.position,c=[s[0],s[1]],h=d.quadraticAt,v=d.quadraticDerivativeAt;s[0]=h(o[0],u[0],e[0],r),s[1]=h(o[1],u[1],e[1],r);var A=v(o[0],u[0],e[0],r),b=v(o[1],u[1],e[1],r);if(t.rotation=-Math.atan2(b,A)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(t.__lastT!==void 0&&t.__lastT<t.__t){var x=f.dist(c,s)*1.05;t.attr("scale",[t.scale[0],x]),r===1&&(s[0]=c[0]+(s[0]-c[0])/2,s[1]=c[1]+(s[1]-c[1])/2)}else if(t.__lastT===1){var x=2*f.dist(o,s);t.attr("scale",[t.scale[0],x])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},a.updateLayout=function(t,o){this.childAt(0).updateLayout(t,o);var e=t.getItemModel(o).getModel("effect");this._updateEffectAnimation(t,e,o)},S.inherits(l,y.Group);var i=l;R.exports=i},DBLp:function(R,D){function n(){}n.prototype={diff:function(f,d,l){l||(l=function(b,x){return b===x}),this.equals=l;var a=this;f=f.slice(),d=d.slice();var i=d.length,t=f.length,o=1,e=i+t,u=[{newPos:-1,components:[]}],r=this.extractCommon(u[0],d,f,0);if(u[0].newPos+1>=i&&r+1>=t){for(var s=[],c=0;c<d.length;c++)s.push(c);return[{indices:s,count:d.length}]}function h(){for(var A=-1*o;A<=o;A+=2){var b,x=u[A-1],E=u[A+1],T=(E?E.newPos:0)-A;x&&(u[A-1]=void 0);var _=x&&x.newPos+1<i,C=E&&0<=T&&T<t;if(!_&&!C){u[A]=void 0;continue}if(!_||C&&x.newPos<E.newPos?(b=g(E),a.pushComponent(b.components,void 0,!0)):(b=x,b.newPos++,a.pushComponent(b.components,!0,void 0)),T=a.extractCommon(b,d,f,A),b.newPos+1>=i&&T+1>=t)return y(a,b.components,d,f);u[A]=b}o++}for(;o<=e;){var v=h();if(v)return v}},pushComponent:function(f,d,l){var a=f[f.length-1];a&&a.added===d&&a.removed===l?f[f.length-1]={count:a.count+1,added:d,removed:l}:f.push({count:1,added:d,removed:l})},extractCommon:function(f,d,l,a){for(var i=d.length,t=l.length,o=f.newPos,e=o-a,u=0;o+1<i&&e+1<t&&this.equals(d[o+1],l[e+1]);)o++,e++,u++;return u&&f.components.push({count:u}),f.newPos=o,e},tokenize:function(f){return f.slice()},join:function(f){return f.slice()}};function y(p,f,d,l){for(var a=0,i=f.length,t=0,o=0;a<i;a++){var e=f[a];if(e.removed){for(var u=[],r=o;r<o+e.count;r++)u.push(r);e.indices=u,o+=e.count}else{for(var u=[],r=t;r<t+e.count;r++)u.push(r);e.indices=u,t+=e.count,e.added||(o+=e.count)}}return f}function g(p){return{newPos:p.newPos,components:p.components.slice(0)}}var S=new n;function m(p,f,d){return S.diff(p,f,d)}R.exports=m},DEFe:function(R,D,n){var y=n("bYtY"),g=n("SgGq"),S=n("Ae+d"),m=n("xSat"),p=m.onIrrelevantElement,f=n("IwbS"),d=n("W4dC"),l=n("iRjW"),a=l.getUID,i=n("DN4a");function t(s){var c=s.getItemStyle(),h=s.get("areaColor");return h!=null&&(c.fill=h),c}function o(s,c,h,v,A){h.off("click"),h.off("mousedown"),c.get("selectedMode")&&(h.on("mousedown",function(){s._mouseDownFlag=!0}),h.on("click",function(b){if(!s._mouseDownFlag)return;s._mouseDownFlag=!1;for(var x=b.target;!x.__regions;)x=x.parent;if(!x)return;var E={type:(c.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:y.map(x.__regions,function(T){return{name:T.name,from:A.uid}})};E[c.mainType+"Id"]=c.id,v.dispatchAction(E),e(c,h)}))}function e(s,c){c.eachChild(function(h){y.each(h.__regions,function(v){h.trigger(s.isSelected(v.name)?"emphasis":"normal")})})}function u(s,c){var h=new f.Group;this.uid=a("ec_map_draw"),this._controller=new g(s.getZr()),this._controllerHost={target:c?h:null},this.group=h,this._updateGroup=c,this._mouseDownFlag,this._mapName,this._initialized,h.add(this._regionsGroup=new f.Group),h.add(this._backgroundGroup=new f.Group)}u.prototype={constructor:u,draw:function(s,c,h,v,A){var b=s.mainType==="geo",x=s.getData&&s.getData();b&&c.eachComponent({mainType:"series",subType:"map"},function(z){!x&&z.getHostGeoModel()===s&&(x=z.getData())});var E=s.coordinateSystem;this._updateBackground(E);var T=this._regionsGroup,_=this.group,C=E.getTransformInfo(),w=!T.childAt(0)||A,O;if(w)_.transform=C.roamTransform,_.decomposeTransform(),_.dirty();else{var I=new i;I.transform=C.roamTransform,I.decomposeTransform();var k={scale:I.scale,position:I.position};O=I.scale,f.updateProps(_,k,s)}var M=C.rawScale,U=C.rawPosition;T.removeAll();var P=["itemStyle"],X=["emphasis","itemStyle"],F=["label"],j=["emphasis","label"],K=y.createHashMap();y.each(E.regions,function(z){var V=K.get(z.name)||K.set(z.name,new f.Group),Q=new f.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});V.add(Q);var G=s.getRegionModel(z.name)||s,te=G.getModel(P),q=G.getModel(X),se=t(te),re=t(q),we=G.getModel(F),Oe=G.getModel(j),Me;if(x){Me=x.indexOfName(z.name);var Qe=x.getItemVisual(Me,"color",!0);Qe&&(se.fill=Qe)}var Ve=function(be){return[be[0]*M[0]+U[0],be[1]*M[1]+U[1]]};y.each(z.geometries,function(be){if(be.type!=="polygon")return;for(var Te=[],Be=0;Be<be.exterior.length;++Be)Te.push(Ve(be.exterior[Be]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Te}}));for(var Be=0;Be<(be.interiors?be.interiors.length:0);++Be){for(var fe=be.interiors[Be],Te=[],xe=0;xe<fe.length;++xe)Te.push(Ve(fe[xe]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Te}}))}}),Q.setStyle(se),Q.style.strokeNoScale=!0,Q.culling=!0;var dt=we.get("show"),Fe=Oe.get("show"),ue=x&&isNaN(x.get(x.mapDimension("value"),Me)),et=x&&x.getItemLayout(Me);if(b||ue&&(dt||Fe)||et&&et.showLabel){var he=b?z.name:Me,J;(!x||Me>=0)&&(J=s);var Y=new f.Text({position:Ve(z.center.slice()),scale:[1/_.scale[0],1/_.scale[1]],z2:10,silent:!0});if(f.setLabelStyle(Y.style,Y.hoverStyle={},we,Oe,{labelFetcher:J,labelDataIndex:he,defaultText:z.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!w){var $=[1/O[0],1/O[1]];f.updateProps(Y,{scale:$},s)}V.add(Y)}if(x)x.setItemGraphicEl(Me,V);else{var G=s.getRegionModel(z.name);Q.eventData={componentType:"geo",componentIndex:s.componentIndex,geoIndex:s.componentIndex,name:z.name,region:G&&G.option||{}}}var de=V.__regions||(V.__regions=[]);de.push(z),V.highDownSilentOnTouch=!!s.get("selectedMode"),f.setHoverStyle(V,re),T.add(V)}),this._updateController(s,c,h),o(this,s,T,h,v),e(s,T)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&d.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(s){var c=s.map;this._mapName!==c&&y.each(d.makeGraphic(c,this.uid),function(h){this._backgroundGroup.add(h)},this),this._mapName=c},_updateController:function(s,c,h){var v=s.coordinateSystem,A=this._controller,b=this._controllerHost;b.zoomLimit=s.get("scaleLimit"),b.zoom=v.getZoom(),A.enable(s.get("roam")||!1);var x=s.mainType;function E(){var T={type:"geoRoam",componentType:x};return T[x+"Id"]=s.id,T}A.off("pan").on("pan",function(T){this._mouseDownFlag=!1,S.updateViewOnPan(b,T.dx,T.dy),h.dispatchAction(y.extend(E(),{dx:T.dx,dy:T.dy}))},this),A.off("zoom").on("zoom",function(T){if(this._mouseDownFlag=!1,S.updateViewOnZoom(b,T.scale,T.originX,T.originY),h.dispatchAction(y.extend(E(),{zoom:T.scale,originX:T.originX,originY:T.originY})),this._updateGroup){var _=this.group.scale;this._regionsGroup.traverse(function(C){C.type==="text"&&C.attr("scale",[1/_[0],1/_[1]])})}},this),A.setPointerChecker(function(T,_,C){return v.getViewRectAfterRoam().contain(_,C)&&!p(T,h,s)})}};var r=u;R.exports=r},DFOY:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("lwsE"),f=n.n(p),d=n("W8MJ"),l=n.n(d),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),u=n.n(e),r=n("q1tI"),s=n.n(r),c=n("VTBJ"),h=n("1OyB"),v=n("vuIU"),A=n("JX7q"),b=n("Ji7U"),x=n("LK+K"),E=n("i8i4"),T=n.n(E),_=n("l4aY"),C=n("m+aA"),w=n("c+Xe"),O=n("zT1h"),I=n("QC+M"),k=n("TSYQ"),M=n.n(k);function U(Yt,Dt,Bt){return Bt?Yt[0]===Dt[0]:Yt[0]===Dt[0]&&Yt[1]===Dt[1]}function P(Yt,Dt,Bt){var Wt=Yt[Dt]||{};return Object(c.a)(Object(c.a)({},Wt),Bt)}function X(Yt,Dt,Bt,Wt){for(var Xt=Bt.points,kt=Object.keys(Yt),hr=0;hr<kt.length;hr+=1){var br=kt[hr];if(U(Yt[br].points,Xt,Wt))return"".concat(Dt,"-placement-").concat(br)}return""}var F=n("Ff2n"),j=n("xEkU"),K=n.n(j),z=n("9mu1"),V=n("rePB"),Q=n("U8pU"),G=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function te(Yt,Dt){var Bt={};return Bt[Yt.toLowerCase()]=Dt.toLowerCase(),Bt["Webkit".concat(Yt)]="webkit".concat(Dt),Bt["Moz".concat(Yt)]="moz".concat(Dt),Bt["ms".concat(Yt)]="MS".concat(Dt),Bt["O".concat(Yt)]="o".concat(Dt.toLowerCase()),Bt}function q(Yt,Dt){var Bt={animationend:te("Animation","AnimationEnd"),transitionend:te("Transition","TransitionEnd")};return Yt&&("AnimationEvent"in Dt||delete Bt.animationend.animation,"TransitionEvent"in Dt||delete Bt.transitionend.transition),Bt}var se=q(G,typeof window!="undefined"?window:{}),re={};if(G){var we=document.createElement("div");re=we.style}var Oe={};function Me(Yt){if(Oe[Yt])return Oe[Yt];var Dt=se[Yt];if(Dt)for(var Bt=Object.keys(Dt),Wt=Bt.length,Xt=0;Xt<Wt;Xt+=1){var kt=Bt[Xt];if(Object.prototype.hasOwnProperty.call(Dt,kt)&&kt in re)return Oe[Yt]=Dt[kt],Oe[Yt]}return""}var Qe=Me("animationend"),Ve=Me("transitionend"),dt=!!(Qe&&Ve);function Fe(Yt,Dt){if(!Yt)return null;if(Object(Q.a)(Yt)==="object"){var Bt=Dt.replace(/-\w/g,function(Wt){return Wt[1].toUpperCase()});return Yt[Bt]}return"".concat(Yt,"-").concat(Dt)}var ue="none",et="appear",he="enter",J="leave";function Y(Yt){var Dt=Yt,Bt=!!r.forwardRef;Object(Q.a)(Yt)==="object"&&(Dt=Yt.transitionSupport,Bt="forwardRef"in Yt?Yt.forwardRef:Bt);function Wt(kt){return!!(kt.motionName&&Dt)}var Xt=function(kt){Object(b.a)(br,kt);var hr=Object(x.a)(br);function br(){var wr;return Object(h.a)(this,br),wr=hr.apply(this,arguments),wr.$cacheEle=null,wr.node=null,wr.raf=null,wr.destroyed=!1,wr.deadlineId=null,wr.state={status:ue,statusActive:!1,newStatus:!1,statusStyle:null},wr.onDomUpdate=function(){var Fr=wr.state,Xn=Fr.status,Fn=Fr.newStatus,hi=wr.props,An=hi.onAppearStart,jr=hi.onEnterStart,In=hi.onLeaveStart,Qn=hi.onAppearActive,qn=hi.onEnterActive,si=hi.onLeaveActive,Ci=hi.motionAppear,ki=hi.motionEnter,Ri=hi.motionLeave;if(!Wt(wr.props))return;var oa=wr.getElement();wr.$cacheEle!==oa&&(wr.removeEventListener(wr.$cacheEle),wr.addEventListener(oa),wr.$cacheEle=oa),Fn&&Xn===et&&Ci?wr.updateStatus(An,null,null,function(){wr.updateActiveStatus(Qn,et)}):Fn&&Xn===he&&ki?wr.updateStatus(jr,null,null,function(){wr.updateActiveStatus(qn,he)}):Fn&&Xn===J&&Ri&&wr.updateStatus(In,null,null,function(){wr.updateActiveStatus(si,J)})},wr.onMotionEnd=function(Fr){if(Fr&&!Fr.deadline&&Fr.target!==wr.getElement())return;var Xn=wr.state,Fn=Xn.status,hi=Xn.statusActive,An=wr.props,jr=An.onAppearEnd,In=An.onEnterEnd,Qn=An.onLeaveEnd;Fn===et&&hi?wr.updateStatus(jr,{status:ue},Fr):Fn===he&&hi?wr.updateStatus(In,{status:ue},Fr):Fn===J&&hi&&wr.updateStatus(Qn,{status:ue},Fr)},wr.setNodeRef=function(Fr){var Xn=wr.props.internalRef;wr.node=Fr,Object(w.b)(Xn,Fr)},wr.getElement=function(){try{return Object(C.a)(wr.node||Object(A.a)(wr))}catch(Fr){return wr.$cacheEle}},wr.addEventListener=function(Fr){if(!Fr)return;Fr.addEventListener(Ve,wr.onMotionEnd),Fr.addEventListener(Qe,wr.onMotionEnd)},wr.removeEventListener=function(Fr){if(!Fr)return;Fr.removeEventListener(Ve,wr.onMotionEnd),Fr.removeEventListener(Qe,wr.onMotionEnd)},wr.updateStatus=function(Fr,Xn,Fn,hi){var An=Fr?Fr(wr.getElement(),Fn):null;if(An===!1||wr.destroyed)return;var jr;hi&&(jr=function(){wr.nextFrame(hi)}),wr.setState(Object(c.a)({statusStyle:Object(Q.a)(An)==="object"?An:null,newStatus:!1},Xn),jr)},wr.updateActiveStatus=function(Fr,Xn){wr.nextFrame(function(){var Fn=wr.state.status;if(Fn!==Xn)return;var hi=wr.props.motionDeadline;wr.updateStatus(Fr,{statusActive:!0}),hi>0&&(wr.deadlineId=setTimeout(function(){wr.onMotionEnd({deadline:!0})},hi))})},wr.nextFrame=function(Fr){wr.cancelNextFrame(),wr.raf=K()(Fr)},wr.cancelNextFrame=function(){wr.raf&&(K.a.cancel(wr.raf),wr.raf=null)},wr}return Object(v.a)(br,[{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 Fr,Xn=this.state,Fn=Xn.status,hi=Xn.statusActive,An=Xn.statusStyle,jr=this.props,In=jr.children,Qn=jr.motionName,qn=jr.visible,si=jr.removeOnLeave,Ci=jr.leavedClassName,ki=jr.eventProps;return In?Fn===ue||!Wt(this.props)?qn?In(Object(c.a)({},ki),this.setNodeRef):si?null:In(Object(c.a)(Object(c.a)({},ki),{},{className:Ci}),this.setNodeRef):In(Object(c.a)(Object(c.a)({},ki),{},{className:M()(Fe(Qn,Fn),(Fr={},Object(V.a)(Fr,Fe(Qn,"".concat(Fn,"-active")),hi),Object(V.a)(Fr,Qn,typeof Qn=="string"),Fr)),style:An}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Fr,Xn){var Fn=Xn.prevProps,hi=Xn.status;if(!Wt(Fr))return{};var An=Fr.visible,jr=Fr.motionAppear,In=Fr.motionEnter,Qn=Fr.motionLeave,qn=Fr.motionLeaveImmediately,si={prevProps:Fr};return(hi===et&&!jr||hi===he&&!In||hi===J&&!Qn)&&(si.status=ue,si.statusActive=!1,si.newStatus=!1),!Fn&&An&&jr&&(si.status=et,si.statusActive=!1,si.newStatus=!0),Fn&&!Fn.visible&&An&&In&&(si.status=he,si.statusActive=!1,si.newStatus=!0),(Fn&&Fn.visible&&!An&&Qn||!Fn&&qn&&!An&&Qn)&&(si.status=J,si.statusActive=!1,si.newStatus=!0),si}}]),br}(r.Component);return Xt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Bt?r.forwardRef(function(kt,hr){return r.createElement(Xt,Object.assign({internalRef:hr},kt))}):Xt}var $=Y(dt),de="add",be="keep",Te="remove",Be="removed";function fe(Yt){var Dt;return Yt&&Object(Q.a)(Yt)==="object"&&"key"in Yt?Dt=Yt:Dt={key:Yt},Object(c.a)(Object(c.a)({},Dt),{},{key:String(Dt.key)})}function xe(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Yt.map(fe)}function ke(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Bt=[],Wt=0,Xt=Dt.length,kt=xe(Yt),hr=xe(Dt);kt.forEach(function(Fr){for(var Xn=!1,Fn=Wt;Fn<Xt;Fn+=1){var hi=hr[Fn];if(hi.key===Fr.key){Wt<Fn&&(Bt=Bt.concat(hr.slice(Wt,Fn).map(function(An){return Object(c.a)(Object(c.a)({},An),{},{status:de})})),Wt=Fn),Bt.push(Object(c.a)(Object(c.a)({},hi),{},{status:be})),Wt+=1,Xn=!0;break}}Xn||Bt.push(Object(c.a)(Object(c.a)({},Fr),{},{status:Te}))}),Wt<Xt&&(Bt=Bt.concat(hr.slice(Wt).map(function(Fr){return Object(c.a)(Object(c.a)({},Fr),{},{status:de})})));var br={};Bt.forEach(function(Fr){var Xn=Fr.key;br[Xn]=(br[Xn]||0)+1});var wr=Object.keys(br).filter(function(Fr){return br[Fr]>1});return wr.forEach(function(Fr){Bt=Bt.filter(function(Xn){var Fn=Xn.key,hi=Xn.status;return Fn!==Fr||hi!==Te}),Bt.forEach(function(Xn){Xn.key===Fr&&(Xn.status=be)})}),Bt}var nt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ct(Yt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,Bt=function(Wt){Object(b.a)(kt,Wt);var Xt=Object(x.a)(kt);function kt(){var hr;return Object(h.a)(this,kt),hr=Xt.apply(this,arguments),hr.state={keyEntities:[]},hr.removeKey=function(br){hr.setState(function(wr){var Fr=wr.keyEntities;return{keyEntities:Fr.map(function(Xn){return Xn.key!==br?Xn:Object(c.a)(Object(c.a)({},Xn),{},{status:Be})})}})},hr}return Object(v.a)(kt,[{key:"render",value:function(){var br=this,wr=this.state.keyEntities,Fr=this.props,Xn=Fr.component,Fn=Fr.children,hi=Object(F.a)(Fr,["component","children"]),An=Xn||r.Fragment,jr={};return nt.forEach(function(In){jr[In]=hi[In],delete hi[In]}),delete hi.keys,r.createElement(An,Object.assign({},hi),wr.map(function(In){var Qn=In.status,qn=Object(F.a)(In,["status"]),si=Qn===de||Qn===be;return r.createElement(Dt,Object.assign({},jr,{key:qn.key,visible:si,eventProps:qn,onLeaveEnd:function(){jr.onLeaveEnd&&jr.onLeaveEnd.apply(jr,arguments),br.removeKey(qn.key)}}),Fn)}))}}],[{key:"getDerivedStateFromProps",value:function(br,wr){var Fr=br.keys,Xn=wr.keyEntities,Fn=xe(Fr);if(!Yt)return{keyEntities:Fn.map(function(jr){return Object(c.a)(Object(c.a)({},jr),{},{status:be})})};var hi=ke(Xn,Fn),An=Xn.length;return{keyEntities:hi.filter(function(jr){for(var In=null,Qn=0;Qn<An;Qn+=1){var qn=Xn[Qn];if(qn.key===jr.key){In=qn;break}}return!(In&&In.status===Be&&jr.status===Te)})}}}]),kt}(r.Component);return Bt.defaultProps={component:"div"},Bt}var pt=Ct(dt),He=$,nr=function(Dt,Bt){var Wt=Dt.prefixCls,Xt=Dt.className,kt=Dt.style,hr=Dt.children,br=Dt.onMouseEnter,wr=Dt.onMouseLeave,Fr=Dt.onMouseDown,Xn=Dt.onTouchStart,Fn=hr;return r.Children.count(hr)>1&&(Fn=r.createElement("div",{className:"".concat(Wt,"-content")},hr)),r.createElement("div",{ref:Bt,className:Xt,onMouseEnter:br,onMouseLeave:wr,onMouseDown:Fr,onTouchStart:Xn,style:kt},Fn)},ht=r.forwardRef(nr);ht.displayName="PopupInner";var Gt=ht;function pr(Yt){var Dt=Yt.prefixCls,Bt=Yt.motion,Wt=Yt.animation,Xt=Yt.transitionName;return Bt||(Wt?{motionName:"".concat(Dt,"-").concat(Wt)}:Xt?{motionName:Xt}:null)}function Qt(Yt){return Yt&&Yt.motionName}var Ht=function(Yt){Object(b.a)(Bt,Yt);var Dt=Object(x.a)(Bt);function Bt(){var Wt;return Object(h.a)(this,Bt),Wt=Dt.apply(this,arguments),Wt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Wt.popupRef=s.a.createRef(),Wt.alignRef=s.a.createRef(),Wt.nextFrameState=null,Wt.nextFrameId=null,Wt.onAlign=function(Xt,kt){var hr=Wt.state.status,br=Wt.props,wr=br.getClassNameFromAlign,Fr=br.onAlign,Xn=wr(kt);hr==="align"?Wt.setState({alignClassName:Xn,status:"aligned"},function(){Wt.alignRef.current.forceAlign()}):hr==="aligned"?(Wt.setState({alignClassName:Xn,status:"afterAlign"}),Fr(Xt,kt)):Wt.setState({alignClassName:Xn})},Wt.onMotionEnd=function(){var Xt=Wt.props.visible;Wt.setState({status:Xt?"AfterMotion":"stable",inMotion:!1})},Wt.setStateOnNextFrame=function(Xt){Wt.cancelFrameState(),Wt.nextFrameState=Object(c.a)(Object(c.a)({},Wt.nextFrameState),Xt),Wt.nextFrameId=K()(function(){var kt=Object(c.a)({},Wt.nextFrameState);Wt.nextFrameState=null,Wt.setState(kt)})},Wt.getMotion=function(){return Object(c.a)({},pr(Wt.props))},Wt.getAlignTarget=function(){var Xt=Wt.props,kt=Xt.point,hr=Xt.getRootDomNode;return kt||hr},Wt.cancelFrameState=function(){K.a.cancel(Wt.nextFrameId)},Wt.renderPopupElement=function(){var Xt=Wt.state,kt=Xt.status,hr=Xt.targetHeight,br=Xt.targetWidth,wr=Xt.alignClassName,Fr=Wt.props,Xn=Fr.prefixCls,Fn=Fr.className,hi=Fr.style,An=Fr.stretch,jr=Fr.visible,In=Fr.align,Qn=Fr.destroyPopupOnHide,qn=Fr.onMouseEnter,si=Fr.onMouseLeave,Ci=Fr.onMouseDown,ki=Fr.onTouchStart,Ri=Fr.children,oa=M()(Xn,Fn,wr),ma="".concat(Xn,"-hidden"),aa={};An&&(An.indexOf("height")!==-1?aa.height=hr:An.indexOf("minHeight")!==-1&&(aa.minHeight=hr),An.indexOf("width")!==-1?aa.width=br:An.indexOf("minWidth")!==-1&&(aa.minWidth=br));var ba=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},aa),Wt.getZIndexStyle()),hi),{},{opacity:kt==="stable"||!jr?void 0:0,pointerEvents:kt==="stable"||!jr?void 0:"none"}),bi=Wt.getMotion(),Pn=jr;jr&&kt!=="beforeMotion"&&kt!=="motion"&&kt!=="stable"&&(bi.motionAppear=!1,bi.motionEnter=!1,bi.motionLeave=!1),(kt==="afterAlign"||kt==="beforeMotion")&&(Pn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ta){var ra=bi==null?void 0:bi[ta];bi[ta]=function(){for(var Nr=arguments.length,Er=new Array(Nr),On=0;On<Nr;On++)Er[On]=arguments[On];ra==null||ra.apply(void 0,Er),Wt.setState({inMotion:!0})}});var ji=!jr||kt!=="align"&&kt!=="aligned"&&kt!=="stable",ha=!0;return kt==="stable"&&(ha=jr),Qn&&!ha?null:s.a.createElement(He,Object.assign({visible:Pn},bi,{removeOnLeave:!1,onEnterEnd:Wt.onMotionEnd,onLeaveEnd:Wt.onMotionEnd,leavedClassName:ma}),function(ta,ra){var Nr=ta.style,Er=ta.className;return s.a.createElement(z.a,{target:Wt.getAlignTarget(),key:"popup",ref:Wt.alignRef,monitorWindowResize:!0,disabled:ji,align:In,onAlign:Wt.onAlign},s.a.createElement(Gt,{prefixCls:Xn,className:M()(oa,Er),ref:Object(w.a)(ra,Wt.popupRef),onMouseEnter:qn,onMouseLeave:si,onMouseDown:Ci,onTouchStart:ki,style:Object(c.a)(Object(c.a)({},ba),Nr)},Ri))})},Wt.renderMaskElement=function(){var Xt=Wt.props,kt=Xt.mask,hr=Xt.maskMotion,br=Xt.maskTransitionName,wr=Xt.maskAnimation,Fr=Xt.prefixCls,Xn=Xt.visible;if(!kt)return null;var Fn={};return hr&&hr.motionName&&(Fn=Object(c.a)({motionAppear:!0},pr({motion:hr,prefixCls:Fr,transitionName:br,animation:wr}))),s.a.createElement(He,Object.assign({},Fn,{visible:Xn,removeOnLeave:!0}),function(hi){var An=hi.className;return s.a.createElement("div",{style:Wt.getZIndexStyle(),key:"mask",className:M()("".concat(Fr,"-mask"),An)})})},Wt}return Object(v.a)(Bt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Xt=this.state.status,kt=this.props,hr=kt.getRootDomNode,br=kt.visible,wr=kt.stretch;if(this.cancelFrameState(),br&&Xt!=="stable")switch(Xt){case null:{this.setStateOnNextFrame({status:wr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Qt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Fr=["measure","align",null,"beforeMotion","motion"],Xn=Fr.indexOf(Xt),Fn=Fr[Xn+1];Xn!==-1&&Fn&&this.setStateOnNextFrame({status:Fn})}}if(Xt==="measure"){var hi=hr();hi&&this.setStateOnNextFrame({targetHeight:hi.offsetHeight,targetWidth:hi.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Xt=this.props.zIndex;return{zIndex:Xt}}},{key:"render",value:function(){return s.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Xt,kt){var hr=Xt.visible,br=Object(F.a)(Xt,["visible"]),wr=kt.prevVisible,Fr=kt.status,Xn=kt.inMotion,Fn={prevVisible:hr,status:Fr},hi=pr(br);return wr===null&&hr===!1?(Fn.status="stable",Fn.inMotion=!1):hr!==wr&&(Fn.inMotion=!1,hr||Qt(hi)&&Xn?Fn.status=null:Fn.status="stable",hr&&(Fn.alignClassName=null)),Fn}}]),Bt}(r.Component),Jt=Ht,Ge=r.createContext(null),pe=Ge;function oe(){}function ct(){return""}function qe(){return window.document}var me=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Kt(Yt){var Dt=function(Bt){Object(b.a)(Xt,Bt);var Wt=Object(x.a)(Xt);function Xt(kt){var hr;Object(h.a)(this,Xt),hr=Wt.call(this,kt),hr.popupRef=s.a.createRef(),hr.triggerRef=s.a.createRef(),hr.onMouseEnter=function(wr){var Fr=hr.props.mouseEnterDelay;hr.fireEvents("onMouseEnter",wr),hr.delaySetPopupVisible(!0,Fr,Fr?null:wr)},hr.onMouseMove=function(wr){hr.fireEvents("onMouseMove",wr),hr.setPoint(wr)},hr.onMouseLeave=function(wr){hr.fireEvents("onMouseLeave",wr),hr.delaySetPopupVisible(!1,hr.props.mouseLeaveDelay)},hr.onPopupMouseEnter=function(){hr.clearDelayTimer()},hr.onPopupMouseLeave=function(wr){if(wr.relatedTarget&&!wr.relatedTarget.setTimeout&&hr.popupRef.current&&hr.popupRef.current.popupRef.current&&Object(_.a)(hr.popupRef.current.popupRef.current,wr.relatedTarget))return;hr.delaySetPopupVisible(!1,hr.props.mouseLeaveDelay)},hr.onFocus=function(wr){hr.fireEvents("onFocus",wr),hr.clearDelayTimer(),hr.isFocusToShow()&&(hr.focusTime=Date.now(),hr.delaySetPopupVisible(!0,hr.props.focusDelay))},hr.onMouseDown=function(wr){hr.fireEvents("onMouseDown",wr),hr.preClickTime=Date.now()},hr.onTouchStart=function(wr){hr.fireEvents("onTouchStart",wr),hr.preTouchTime=Date.now()},hr.onBlur=function(wr){hr.fireEvents("onBlur",wr),hr.clearDelayTimer(),hr.isBlurToHide()&&hr.delaySetPopupVisible(!1,hr.props.blurDelay)},hr.onContextMenu=function(wr){wr.preventDefault(),hr.fireEvents("onContextMenu",wr),hr.setPopupVisible(!0,wr)},hr.onContextMenuClose=function(){hr.isContextMenuToShow()&&hr.close()},hr.onClick=function(wr){if(hr.fireEvents("onClick",wr),hr.focusTime){var Fr;if(hr.preClickTime&&hr.preTouchTime?Fr=Math.min(hr.preClickTime,hr.preTouchTime):hr.preClickTime?Fr=hr.preClickTime:hr.preTouchTime&&(Fr=hr.preTouchTime),Math.abs(Fr-hr.focusTime)<20)return;hr.focusTime=0}hr.preClickTime=0,hr.preTouchTime=0,hr.isClickToShow()&&(hr.isClickToHide()||hr.isBlurToHide())&&wr&&wr.preventDefault&&wr.preventDefault();var Xn=!hr.state.popupVisible;(hr.isClickToHide()&&!Xn||Xn&&hr.isClickToShow())&&hr.setPopupVisible(!hr.state.popupVisible,wr)},hr.onPopupMouseDown=function(){if(hr.hasPopupMouseDown=!0,clearTimeout(hr.mouseDownTimeout),hr.mouseDownTimeout=window.setTimeout(function(){hr.hasPopupMouseDown=!1},0),hr.context){var wr;(wr=hr.context).onPopupMouseDown.apply(wr,arguments)}},hr.onDocumentClick=function(wr){if(hr.props.mask&&!hr.props.maskClosable)return;var Fr=wr.target,Xn=hr.getRootDomNode(),Fn=hr.getPopupDomNode();!Object(_.a)(Xn,Fr)&&!Object(_.a)(Fn,Fr)&&!hr.hasPopupMouseDown&&hr.close()},hr.getRootDomNode=function(){var wr=hr.props.getTriggerDOMNode;if(wr)return wr(hr.triggerRef.current);try{var Fr=Object(C.a)(hr.triggerRef.current);if(Fr)return Fr}catch(Xn){}return T.a.findDOMNode(Object(A.a)(hr))},hr.getPopupClassNameFromAlign=function(wr){var Fr=[],Xn=hr.props,Fn=Xn.popupPlacement,hi=Xn.builtinPlacements,An=Xn.prefixCls,jr=Xn.alignPoint,In=Xn.getPopupClassNameFromAlign;return Fn&&hi&&Fr.push(X(hi,An,wr,jr)),In&&Fr.push(In(wr)),Fr.join(" ")},hr.getComponent=function(){var wr=hr.props,Fr=wr.prefixCls,Xn=wr.destroyPopupOnHide,Fn=wr.popupClassName,hi=wr.onPopupAlign,An=wr.popupMotion,jr=wr.popupAnimation,In=wr.popupTransitionName,Qn=wr.popupStyle,qn=wr.mask,si=wr.maskAnimation,Ci=wr.maskTransitionName,ki=wr.maskMotion,Ri=wr.zIndex,oa=wr.popup,ma=wr.stretch,aa=wr.alignPoint,ba=hr.state,bi=ba.popupVisible,Pn=ba.point,ji=hr.getPopupAlign(),ha={};return hr.isMouseEnterToShow()&&(ha.onMouseEnter=hr.onPopupMouseEnter),hr.isMouseLeaveToHide()&&(ha.onMouseLeave=hr.onPopupMouseLeave),ha.onMouseDown=hr.onPopupMouseDown,ha.onTouchStart=hr.onPopupMouseDown,s.a.createElement(Jt,Object.assign({prefixCls:Fr,destroyPopupOnHide:Xn,visible:bi,point:aa&&Pn,className:Fn,align:ji,onAlign:hi,animation:jr,getClassNameFromAlign:hr.getPopupClassNameFromAlign},ha,{stretch:ma,getRootDomNode:hr.getRootDomNode,style:Qn,mask:qn,zIndex:Ri,transitionName:In,maskAnimation:si,maskTransitionName:Ci,maskMotion:ki,ref:hr.popupRef,motion:An}),typeof oa=="function"?oa():oa)},hr.getContainer=function(){var wr=Object(A.a)(hr),Fr=wr.props,Xn=document.createElement("div");Xn.style.position="absolute",Xn.style.top="0",Xn.style.left="0",Xn.style.width="100%";var Fn=Fr.getPopupContainer?Fr.getPopupContainer(hr.getRootDomNode()):Fr.getDocument().body;return Fn.appendChild(Xn),Xn},hr.setPoint=function(wr){var Fr=hr.props.alignPoint;if(!Fr||!wr)return;hr.setState({point:{pageX:wr.pageX,pageY:wr.pageY}})},hr.handlePortalUpdate=function(){hr.state.prevPopupVisible!==hr.state.popupVisible&&hr.props.afterPopupVisibleChange(hr.state.popupVisible)};var br;return"popupVisible"in kt?br=!!kt.popupVisible:br=!!kt.defaultPopupVisible,hr.state={prevPopupVisible:br,popupVisible:br},me.forEach(function(wr){hr["fire".concat(wr)]=function(Fr){hr.fireEvents(wr,Fr)}}),hr}return Object(v.a)(Xt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var hr=this.props,br=this.state;if(br.popupVisible){var wr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(wr=hr.getDocument(),this.clickOutsideHandler=Object(O.a)(wr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(wr=wr||hr.getDocument(),this.touchOutsideHandler=Object(O.a)(wr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(wr=wr||hr.getDocument(),this.contextMenuOutsideHandler1=Object(O.a)(wr,"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 hr=this.props,br=hr.popupPlacement,wr=hr.popupAlign,Fr=hr.builtinPlacements;return br&&Fr?P(Fr,br,wr):wr}},{key:"setPopupVisible",value:function(hr,br){var wr=this.props.alignPoint,Fr=this.state.popupVisible;this.clearDelayTimer(),Fr!==hr&&("popupVisible"in this.props||this.setState({popupVisible:hr,prevPopupVisible:Fr}),this.props.onPopupVisibleChange(hr)),wr&&br&&this.setPoint(br)}},{key:"delaySetPopupVisible",value:function(hr,br,wr){var Fr=this,Xn=br*1e3;if(this.clearDelayTimer(),Xn){var Fn=wr?{pageX:wr.pageX,pageY:wr.pageY}:null;this.delayTimer=window.setTimeout(function(){Fr.setPopupVisible(hr,Fn),Fr.clearDelayTimer()},Xn)}else this.setPopupVisible(hr,wr)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(hr){var br=this.props.children.props,wr=this.props;return br[hr]&&wr[hr]?this["fire".concat(hr)]:br[hr]||wr[hr]}},{key:"isClickToShow",value:function(){var hr=this.props,br=hr.action,wr=hr.showAction;return br.indexOf("click")!==-1||wr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var hr=this.props,br=hr.action,wr=hr.showAction;return br.indexOf("contextMenu")!==-1||wr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var hr=this.props,br=hr.action,wr=hr.hideAction;return br.indexOf("click")!==-1||wr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var hr=this.props,br=hr.action,wr=hr.showAction;return br.indexOf("hover")!==-1||wr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var hr=this.props,br=hr.action,wr=hr.hideAction;return br.indexOf("hover")!==-1||wr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var hr=this.props,br=hr.action,wr=hr.showAction;return br.indexOf("focus")!==-1||wr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var hr=this.props,br=hr.action,wr=hr.hideAction;return br.indexOf("focus")!==-1||wr.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(hr,br){var wr=this.props.children.props[hr];wr&&wr(br);var Fr=this.props[hr];Fr&&Fr(br)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var hr=this.state.popupVisible,br=this.props,wr=br.children,Fr=br.forceRender,Xn=br.alignPoint,Fn=br.className,hi=br.autoDestroy,An=s.a.Children.only(wr),jr={key:"trigger"};this.isContextMenuToShow()?jr.onContextMenu=this.onContextMenu:jr.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(jr.onClick=this.onClick,jr.onMouseDown=this.onMouseDown,jr.onTouchStart=this.onTouchStart):(jr.onClick=this.createTwoChains("onClick"),jr.onMouseDown=this.createTwoChains("onMouseDown"),jr.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(jr.onMouseEnter=this.onMouseEnter,Xn&&(jr.onMouseMove=this.onMouseMove)):jr.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?jr.onMouseLeave=this.onMouseLeave:jr.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(jr.onFocus=this.onFocus,jr.onBlur=this.onBlur):(jr.onFocus=this.createTwoChains("onFocus"),jr.onBlur=this.createTwoChains("onBlur"));var In=M()(An&&An.props&&An.props.className,Fn);In&&(jr.className=In);var Qn=Object(c.a)({},jr);Object(w.c)(An)&&(Qn.ref=Object(w.a)(this.triggerRef,An.ref));var qn=s.a.cloneElement(An,Qn),si;return(hr||this.popupRef.current||Fr)&&(si=s.a.createElement(Yt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!hr&&hi&&(si=null),s.a.createElement(pe.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},qn,si)}}],[{key:"getDerivedStateFromProps",value:function(hr,br){var wr=hr.popupVisible,Fr={};return wr!==void 0&&br.popupVisible!==wr&&(Fr.popupVisible=wr,Fr.prevPopupVisible=br.popupVisible),Fr}}]),Xt}(s.a.Component);return Dt.contextType=pe,Dt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ct,getDocument:qe,onPopupVisibleChange:oe,afterPopupVisibleChange:oe,onPopupAlign:oe,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Dt}var vr=Kt(I.a),bt=n("2W6z"),or=n.n(bt),_t=n("4IlW"),jt=n("uK0f"),ut=n.n(jt);function St(Yt,Dt){if(Yt===Dt)return!0;if(!Yt||!Dt)return!1;var Bt=Yt.length;if(Dt.length!==Bt)return!1;for(var Wt=0;Wt<Bt;Wt++)if(Yt[Wt]!==Dt[Wt])return!1;return!0}function mt(Yt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mt=function(Bt){return typeof Bt}:mt=function(Bt){return Bt&&typeof Symbol=="function"&&Bt.constructor===Symbol&&Bt!==Symbol.prototype?"symbol":typeof Bt},mt(Yt)}function lt(Yt,Dt){if(!(Yt instanceof Dt))throw new TypeError("Cannot call a class as a function")}function tt(Yt,Dt){for(var Bt=0;Bt<Dt.length;Bt++){var Wt=Dt[Bt];Wt.enumerable=Wt.enumerable||!1,Wt.configurable=!0,"value"in Wt&&(Wt.writable=!0),Object.defineProperty(Yt,Wt.key,Wt)}}function Cr(Yt,Dt,Bt){return Dt&&tt(Yt.prototype,Dt),Bt&&tt(Yt,Bt),Yt}function nn(Yt,Dt){if(typeof Dt!="function"&&Dt!==null)throw new TypeError("Super expression must either be null or a function");Yt.prototype=Object.create(Dt&&Dt.prototype,{constructor:{value:Yt,writable:!0,configurable:!0}}),Dt&&mn(Yt,Dt)}function mn(Yt,Dt){return mn=Object.setPrototypeOf||function(Wt,Xt){return Wt.__proto__=Xt,Wt},mn(Yt,Dt)}function Bn(Yt){var Dt=Rn();return function(){var Bt=Zt(Yt),Wt;if(Dt){var Xt=Zt(this).constructor;Wt=Reflect.construct(Bt,arguments,Xt)}else Wt=Bt.apply(this,arguments);return oi(this,Wt)}}function oi(Yt,Dt){return Dt&&(mt(Dt)==="object"||typeof Dt=="function")?Dt:wn(Yt)}function wn(Yt){if(Yt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Yt}function Rn(){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(Yt){return!1}}function Zt(Yt){return Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(Bt){return Bt.__proto__||Object.getPrototypeOf(Bt)},Zt(Yt)}var Tt=function(){var Yt=function(Dt){nn(Wt,Dt);var Bt=Bn(Wt);function Wt(){var Xt;return lt(this,Wt),Xt=Bt.apply(this,arguments),Xt.menuItems={},Xt.saveMenuItem=function(kt){return function(hr){Xt.menuItems[kt]=hr}},Xt}return Cr(Wt,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(kt){!kt.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(kt){var hr=this.props,br=hr.fieldNames,wr=hr.defaultFieldNames;return br[kt]||wr[kt]}},{key:"getOption",value:function(kt,hr){var br=this.props,wr=br.prefixCls,Fr=br.expandTrigger,Xn=br.expandIcon,Fn=br.loadingIcon,hi=this.props.onSelect.bind(this,kt,hr),An=this.props.onItemDoubleClick.bind(this,kt,hr),jr={onClick:hi,onDoubleClick:An},In="".concat(wr,"-menu-item"),Qn=null,qn=kt[this.getFieldName("children")]&&kt[this.getFieldName("children")].length>0;(qn||kt.isLeaf===!1)&&(In+=" ".concat(wr,"-menu-item-expand"),kt.loading||(Qn=r.createElement("span",{className:"".concat(wr,"-menu-item-expand-icon")},Xn))),Fr==="hover"&&(qn||kt.isLeaf===!1)&&(jr={onMouseEnter:this.delayOnSelect.bind(this,hi),onMouseLeave:this.delayOnSelect.bind(this),onClick:hi}),this.isActiveOption(kt,hr)&&(In+=" ".concat(wr,"-menu-item-active"),jr.ref=this.saveMenuItem(hr)),kt.disabled&&(In+=" ".concat(wr,"-menu-item-disabled"));var si=null;kt.loading&&(In+=" ".concat(wr,"-menu-item-loading"),si=Fn||null);var Ci="";return"title"in kt?Ci=kt.title:typeof kt[this.getFieldName("label")]=="string"&&(Ci=kt[this.getFieldName("label")]),r.createElement("li",Object.assign({key:kt[this.getFieldName("value")],className:In,title:Ci},jr,{role:"menuitem",onMouseDown:function(Ri){return Ri.preventDefault()}}),kt[this.getFieldName("label")],Qn,si)}},{key:"getActiveOptions",value:function(kt){var hr=this,br=this.props.options,wr=kt||this.props.activeValue;return ut()(br,function(Fr,Xn){return Fr[hr.getFieldName("value")]===wr[Xn]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var kt=this,hr=this.props.options,br=this.getActiveOptions().map(function(wr){return wr[kt.getFieldName("children")]}).filter(function(wr){return!!wr});return br.unshift(hr),br}},{key:"delayOnSelect",value:function(kt){for(var hr=this,br=arguments.length,wr=new Array(br>1?br-1:0),Fr=1;Fr<br;Fr++)wr[Fr-1]=arguments[Fr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof kt=="function"&&(this.delayTimer=window.setTimeout(function(){kt(wr),hr.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var kt=this.getShowOptions().length,hr=0;hr<kt;hr++){var br=this.menuItems[hr];br&&br.parentElement&&(br.parentElement.scrollTop=br.offsetTop)}}},{key:"isActiveOption",value:function(kt,hr){var br=this.props.activeValue,wr=br===void 0?[]:br;return wr[hr]===kt[this.getFieldName("value")]}},{key:"render",value:function(){var kt=this,hr=this.props,br=hr.prefixCls,wr=hr.dropdownMenuColumnStyle;return r.createElement("div",null,this.getShowOptions().map(function(Fr,Xn){return r.createElement("ul",{className:"".concat(br,"-menu"),key:Xn,style:wr},Fr.map(function(Fn){return kt.getOption(Fn,Xn)}))}))}}]),Wt}(r.Component);return Yt.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Yt}(),De=Tt,Re={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},Pe=Re;function rt(Yt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rt=function(Bt){return typeof Bt}:rt=function(Bt){return Bt&&typeof Symbol=="function"&&Bt.constructor===Symbol&&Bt!==Symbol.prototype?"symbol":typeof Bt},rt(Yt)}function wt(Yt,Dt){if(Yt==null)return{};var Bt=Ot(Yt,Dt),Wt,Xt;if(Object.getOwnPropertySymbols){var kt=Object.getOwnPropertySymbols(Yt);for(Xt=0;Xt<kt.length;Xt++){if(Wt=kt[Xt],Dt.indexOf(Wt)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Yt,Wt))continue;Bt[Wt]=Yt[Wt]}}return Bt}function Ot(Yt,Dt){if(Yt==null)return{};var Bt={},Wt=Object.keys(Yt),Xt,kt;for(kt=0;kt<Wt.length;kt++){if(Xt=Wt[kt],Dt.indexOf(Xt)>=0)continue;Bt[Xt]=Yt[Xt]}return Bt}function $t(Yt){return Vt(Yt)||hn(Yt)||Vr(Yt)||Mr()}function Mr(){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 Vr(Yt,Dt){if(!Yt)return;if(typeof Yt=="string")return yt(Yt,Dt);var Bt=Object.prototype.toString.call(Yt).slice(8,-1);if(Bt==="Object"&&Yt.constructor&&(Bt=Yt.constructor.name),Bt==="Map"||Bt==="Set")return Array.from(Yt);if(Bt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Bt))return yt(Yt,Dt)}function hn(Yt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Yt))return Array.from(Yt)}function Vt(Yt){if(Array.isArray(Yt))return yt(Yt)}function yt(Yt,Dt){(Dt==null||Dt>Yt.length)&&(Dt=Yt.length);for(var Bt=0,Wt=new Array(Dt);Bt<Dt;Bt++)Wt[Bt]=Yt[Bt];return Wt}function xt(Yt,Dt){if(!(Yt instanceof Dt))throw new TypeError("Cannot call a class as a function")}function dr(Yt,Dt){for(var Bt=0;Bt<Dt.length;Bt++){var Wt=Dt[Bt];Wt.enumerable=Wt.enumerable||!1,Wt.configurable=!0,"value"in Wt&&(Wt.writable=!0),Object.defineProperty(Yt,Wt.key,Wt)}}function er(Yt,Dt,Bt){return Dt&&dr(Yt.prototype,Dt),Bt&&dr(Yt,Bt),Yt}function Ut(Yt,Dt){if(typeof Dt!="function"&&Dt!==null)throw new TypeError("Super expression must either be null or a function");Yt.prototype=Object.create(Dt&&Dt.prototype,{constructor:{value:Yt,writable:!0,configurable:!0}}),Dt&&ir(Yt,Dt)}function ir(Yt,Dt){return ir=Object.setPrototypeOf||function(Wt,Xt){return Wt.__proto__=Xt,Wt},ir(Yt,Dt)}function Ft(Yt){var Dt=Rr();return function(){var Bt=kr(Yt),Wt;if(Dt){var Xt=kr(this).constructor;Wt=Reflect.construct(Bt,arguments,Xt)}else Wt=Bt.apply(this,arguments);return rr(this,Wt)}}function rr(Yt,Dt){return Dt&&(rt(Dt)==="object"||typeof Dt=="function")?Dt:Kr(Yt)}function Kr(Yt){if(Yt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Yt}function Rr(){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(Yt){return!1}}function kr(Yt){return kr=Object.setPrototypeOf?Object.getPrototypeOf:function(Bt){return Bt.__proto__||Object.getPrototypeOf(Bt)},kr(Yt)}var dn=function(){var Yt=function(Dt){Ut(Wt,Dt);var Bt=Ft(Wt);function Wt(Xt){var kt;xt(this,Wt),kt=Bt.call(this,Xt),kt.setPopupVisible=function(br){var wr=kt.state.value;"popupVisible"in kt.props||kt.setState({popupVisible:br}),br&&!kt.state.popupVisible&&kt.setState({activeValue:wr}),kt.props.onPopupVisibleChange(br)},kt.handleChange=function(br,wr,Fr){var Xn=wr.visible;(Fr.type!=="keydown"||Fr.keyCode===_t.a.ENTER)&&(kt.props.onChange(br.map(function(Fn){return Fn[kt.getFieldName("value")]}),br),kt.setPopupVisible(Xn))},kt.handlePopupVisibleChange=function(br){kt.setPopupVisible(br)},kt.handleMenuSelect=function(br,wr,Fr){var Xn=kt.trigger.getRootDomNode();Xn&&Xn.focus&&Xn.focus();var Fn=kt.props,hi=Fn.changeOnSelect,An=Fn.loadData,jr=Fn.expandTrigger;if(!br||br.disabled)return;var In=kt.state.activeValue;In=In.slice(0,wr+1),In[wr]=br[kt.getFieldName("value")];var Qn=kt.getActiveOptions(In);if(br.isLeaf===!1&&!br[kt.getFieldName("children")]&&An){hi&&kt.handleChange(Qn,{visible:!0},Fr),kt.setState({activeValue:In}),An(Qn);return}var qn={};!br[kt.getFieldName("children")]||!br[kt.getFieldName("children")].length?(kt.handleChange(Qn,{visible:!1},Fr),qn.value=In):hi&&(Fr.type==="click"||Fr.type==="keydown")&&(jr==="hover"?kt.handleChange(Qn,{visible:!1},Fr):kt.handleChange(Qn,{visible:!0},Fr),qn.value=In),qn.activeValue=In,("value"in kt.props||Fr.type==="keydown"&&Fr.keyCode!==_t.a.ENTER)&&delete qn.value,kt.setState(qn)},kt.handleItemDoubleClick=function(){var br=kt.props.changeOnSelect;br&&kt.setPopupVisible(!1)},kt.handleKeyDown=function(br){var wr=kt.props.children;if(wr&&wr.props.onKeyDown){wr.props.onKeyDown(br);return}var Fr=$t(kt.state.activeValue),Xn=Fr.length-1<0?0:Fr.length-1,Fn=kt.getCurrentLevelOptions(),hi=Fn.map(function(Qn){return Qn[kt.getFieldName("value")]}).indexOf(Fr[Xn]);if(br.keyCode!==_t.a.DOWN&&br.keyCode!==_t.a.UP&&br.keyCode!==_t.a.LEFT&&br.keyCode!==_t.a.RIGHT&&br.keyCode!==_t.a.ENTER&&br.keyCode!==_t.a.SPACE&&br.keyCode!==_t.a.BACKSPACE&&br.keyCode!==_t.a.ESC&&br.keyCode!==_t.a.TAB)return;if(!kt.state.popupVisible&&br.keyCode!==_t.a.BACKSPACE&&br.keyCode!==_t.a.LEFT&&br.keyCode!==_t.a.RIGHT&&br.keyCode!==_t.a.ESC&&br.keyCode!==_t.a.TAB){kt.setPopupVisible(!0);return}if(br.keyCode===_t.a.DOWN||br.keyCode===_t.a.UP){br.preventDefault();var An=hi;An!==-1?br.keyCode===_t.a.DOWN?(An+=1,An=An>=Fn.length?0:An):(An-=1,An=An<0?Fn.length-1:An):An=0,Fr[Xn]=Fn[An][kt.getFieldName("value")]}else if(br.keyCode===_t.a.LEFT||br.keyCode===_t.a.BACKSPACE)br.preventDefault(),Fr.splice(Fr.length-1,1);else if(br.keyCode===_t.a.RIGHT)br.preventDefault(),Fn[hi]&&Fn[hi][kt.getFieldName("children")]&&Fr.push(Fn[hi][kt.getFieldName("children")][0][kt.getFieldName("value")]);else if(br.keyCode===_t.a.ESC||br.keyCode===_t.a.TAB){kt.setPopupVisible(!1);return}(!Fr||Fr.length===0)&&kt.setPopupVisible(!1);var jr=kt.getActiveOptions(Fr),In=jr[jr.length-1];kt.handleMenuSelect(In,jr.length-1,br),kt.props.onKeyDown&&kt.props.onKeyDown(br)},kt.saveTrigger=function(br){kt.trigger=br};var hr=[];return"value"in Xt?hr=Xt.value||[]:"defaultValue"in Xt&&(hr=Xt.defaultValue||[]),or()(!("filedNames"in Xt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),kt.state={popupVisible:Xt.popupVisible,activeValue:hr,value:hr,prevProps:Xt},kt.defaultFieldNames={label:"label",value:"value",children:"children"},kt}return er(Wt,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(kt){var hr=this.defaultFieldNames,br=this.props,wr=br.fieldNames,Fr=br.filedNames;return"filedNames"in this.props?Fr[kt]||hr[kt]:wr[kt]||hr[kt]}},{key:"getFieldNames",value:function(){var kt=this.props,hr=kt.fieldNames,br=kt.filedNames;return"filedNames"in this.props?br:hr}},{key:"getCurrentLevelOptions",value:function(){var kt=this,hr=this.props.options,br=hr===void 0?[]:hr,wr=this.state.activeValue,Fr=wr===void 0?[]:wr,Xn=ut()(br,function(Fn,hi){return Fn[kt.getFieldName("value")]===Fr[hi]},{childrenKeyName:this.getFieldName("children")});return Xn[Xn.length-2]?Xn[Xn.length-2][this.getFieldName("children")]:$t(br).filter(function(Fn){return!Fn.disabled})}},{key:"getActiveOptions",value:function(kt){var hr=this;return ut()(this.props.options||[],function(br,wr){return br[hr.getFieldName("value")]===kt[wr]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var kt=this.props,hr=kt.prefixCls,br=kt.transitionName,wr=kt.popupClassName,Fr=kt.options,Xn=Fr===void 0?[]:Fr,Fn=kt.disabled,hi=kt.builtinPlacements,An=kt.popupPlacement,jr=kt.children,In=kt.dropdownRender,Qn=wt(kt,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),qn=r.createElement("div",null),si="";Xn&&Xn.length>0?qn=r.createElement(De,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):si=" ".concat(hr,"-menus-empty");var Ci=qn;return In&&(Ci=In(qn)),r.createElement(vr,Object.assign({ref:this.saveTrigger},Qn,{popupPlacement:An,builtinPlacements:hi,popupTransitionName:br,action:Fn?[]:["click"],popupVisible:Fn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(hr,"-menus"),popupClassName:wr+si,popup:Ci}),r.cloneElement(jr,{onKeyDown:this.handleKeyDown,tabIndex:Fn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(kt,hr){var br=hr.prevProps,wr=br===void 0?{}:br,Fr={prevProps:kt};return"value"in kt&&!St(wr.value,kt.value)&&(Fr.value=kt.value||[],"loadData"in kt||(Fr.activeValue=kt.value||[])),"popupVisible"in kt&&(Fr.popupVisible=kt.popupVisible),Fr}}]),Wt}(r.Component);return Yt.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Pe,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Yt}(),yn=dn,ri=yn,$n=n("BGR+"),pi=n("kbBi"),_i=n.n(pi),Di=n("HQEm"),Wi=n.n(Di),at=n("fEPi"),Le=n.n(at),je=n("5YOS"),Xe=n.n(je),it=n("DFhj"),Ze=n.n(it),ot=n("5rEg"),Lt=n("H84U"),At=n("YMnH"),mr=n("uaoM"),qr=n("3Nzz"),Qr=n("0n0R"),gn=function(Yt,Dt){var Bt={};for(var Wt in Yt)Object.prototype.hasOwnProperty.call(Yt,Wt)&&Dt.indexOf(Wt)<0&&(Bt[Wt]=Yt[Wt]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Wt=Object.getOwnPropertySymbols(Yt);Xt<Wt.length;Xt++)Dt.indexOf(Wt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Wt[Xt])&&(Bt[Wt[Xt]]=Yt[Wt[Xt]]);return Bt},yr=50;function Vn(Yt,Dt,Bt){return Yt.split(Dt).map(function(Wt,Xt){return Xt===0?Wt:[r.createElement("span",{className:"".concat(Bt,"-menu-item-keyword"),key:"seperator"},Dt),Wt]})}function Br(Yt,Dt,Bt){return Dt.some(function(Wt){return Wt[Bt.label].indexOf(Yt)>-1})}function jn(Yt,Dt,Bt,Wt){return Dt.map(function(Xt,kt){var hr=Xt[Wt.label],br=hr.indexOf(Yt)>-1?Vn(hr,Yt,Bt):hr;return kt===0?br:[" / ",br]})}function xn(Yt,Dt,Bt,Wt){function Xt(kt){return kt[Wt.label].indexOf(Bt)>-1}return Yt.findIndex(Xt)-Dt.findIndex(Xt)}function tn(Yt){var Dt=Yt.fieldNames;return Dt}function ti(Yt){var Dt=tn(Yt)||{},Bt={children:Dt.children||"children",label:Dt.label||"label",value:Dt.value||"value"};return Bt}function mi(Yt,Dt){var Bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Wt=ti(Dt),Xt=[],kt=Wt.children;return Yt.forEach(function(hr){var br=Bt.concat(hr);(Dt.changeOnSelect||!hr[kt]||!hr[kt].length)&&Xt.push(br),hr[kt]&&(Xt=Xt.concat(mi(hr[kt],Dt,br)))}),Xt}var Pi=function(Dt){return Dt.join(" / ")};function en(Yt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(Yt||[]).forEach(function(Bt){var Wt=Dt.value||"value";Object(mr.a)(Wt in Bt,"Cascader","Not found `value` in `options`."),en(Bt[Dt.children||"children"],Dt)})}var Tn=function(Yt){o()(Bt,Yt);var Dt=u()(Bt);function Bt(Wt){var Xt;return f()(this,Bt),Xt=Dt.call(this,Wt),Xt.cachedOptions=[],Xt.setValue=function(kt){var hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Xt.props||Xt.setState({value:kt});var br=Xt.props.onChange;br&&br(kt,hr)},Xt.saveInput=function(kt){Xt.input=kt},Xt.handleChange=function(kt,hr){if(Xt.setState({inputValue:""}),hr[0].__IS_FILTERED_OPTION){var br=kt[0],wr=hr[0].path;Xt.setValue(br,wr);return}Xt.setValue(kt,hr)},Xt.handlePopupVisibleChange=function(kt){"popupVisible"in Xt.props||Xt.setState(function(br){return{popupVisible:kt,inputFocused:kt,inputValue:kt?br.inputValue:""}});var hr=Xt.props.onPopupVisibleChange;hr&&hr(kt)},Xt.handleInputBlur=function(){Xt.setState({inputFocused:!1})},Xt.handleInputClick=function(kt){var hr=Xt.state,br=hr.inputFocused,wr=hr.popupVisible;(br||wr)&&kt.stopPropagation()},Xt.handleKeyDown=function(kt){(kt.keyCode===_t.a.BACKSPACE||kt.keyCode===_t.a.SPACE)&&kt.stopPropagation()},Xt.handleInputChange=function(kt){var hr=Xt.state.popupVisible,br=kt.target.value;hr||Xt.handlePopupVisibleChange(!0),Xt.setState({inputValue:br})},Xt.clearSelection=function(kt){var hr=Xt.state.inputValue;kt.preventDefault(),kt.stopPropagation(),hr?Xt.setState({inputValue:""}):(Xt.handlePopupVisibleChange(!1),Xt.clearSelectionTimeout=setTimeout(function(){Xt.setValue([])},200))},Xt.renderCascader=function(kt,hr){var br=kt.getPopupContainer,wr=kt.getPrefixCls,Fr=kt.renderEmpty,Xn=kt.direction;return r.createElement(qr.b.Consumer,null,function(Fn){var hi,An,jr,In,Qn=i()(Xt),qn=Qn.props,si=Qn.state,Ci=qn.prefixCls,ki=qn.inputPrefixCls,Ri=qn.children,oa=qn.placeholder,ma=oa===void 0?hr.placeholder||"Please select":oa,aa=qn.size,ba=qn.disabled,bi=qn.className,Pn=qn.style,ji=qn.allowClear,ha=qn.showSearch,ta=ha===void 0?!1:ha,ra=qn.suffixIcon,Nr=qn.expandIcon,Er=qn.notFoundContent,On=qn.popupClassName,gr=qn.bordered,Pr=qn.dropdownRender,Xr=gn(qn,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),cn=aa||Fn,Un=si.value,Nt=si.inputFocused,Lr=Xn==="rtl",Dr=wr("cascader",Ci),an=wr("input",ki),Cn=M()((hi={},m()(hi,"".concat(an,"-lg"),cn==="large"),m()(hi,"".concat(an,"-sm"),cn==="small"),hi)),Nn=ji&&!ba&&Un.length>0||si.inputValue?r.createElement(_i.a,{className:"".concat(Dr,"-picker-clear"),onClick:Xt.clearSelection}):null,En=M()((An={},m()(An,"".concat(Dr,"-picker-arrow"),!0),m()(An,"".concat(Dr,"-picker-arrow-expand"),si.popupVisible),An)),ei=M()(bi,"".concat(Dr,"-picker"),(jr={},m()(jr,"".concat(Dr,"-picker-rtl"),Lr),m()(jr,"".concat(Dr,"-picker-with-value"),si.inputValue),m()(jr,"".concat(Dr,"-picker-disabled"),ba),m()(jr,"".concat(Dr,"-picker-").concat(cn),!!cn),m()(jr,"".concat(Dr,"-picker-show-search"),!!ta),m()(jr,"".concat(Dr,"-picker-focused"),Nt),m()(jr,"".concat(Dr,"-picker-borderless"),!gr),jr)),Wn=Object($n.default)(Xr,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),gi=qn.options,Fi=ti(Xt.props);if(gi&&gi.length>0)si.inputValue&&(gi=Xt.generateFilteredOptions(Dr,Fr));else{var wi;gi=[(wi={},m()(wi,Fi.label,Er||Fr("Cascader")),m()(wi,Fi.value,"ANT_CASCADER_NOT_FOUND"),wi)]}si.popupVisible?Xt.cachedOptions=gi:gi=Xt.cachedOptions;var Ii={},Vi=(gi||[]).length===1&&gi[0].isEmptyNode;Vi&&(Ii.height="auto");var ea=ta.matchInputWidth!==!1;ea&&(si.inputValue||Vi)&&Xt.input&&(Ii.width=Xt.input.input.offsetWidth);var Xi;ra?Xi=Object(Qr.c)(ra,r.createElement("span",{className:"".concat(Dr,"-picker-arrow")},ra),function(){var Pa;return{className:M()((Pa={},m()(Pa,ra.props.className,ra.props.className),m()(Pa,"".concat(Dr,"-picker-arrow"),!0),Pa))}}):Xi=r.createElement(Wi.a,{className:En});var zi=Ri||r.createElement("span",{style:Pn,className:ei},r.createElement("span",{className:"".concat(Dr,"-picker-label")},Xt.getLabel()),r.createElement(ot.a,g()({},Wn,{tabIndex:"-1",ref:Xt.saveInput,prefixCls:an,placeholder:Un&&Un.length>0?void 0:ma,className:"".concat(Dr,"-input ").concat(Cn),value:si.inputValue,disabled:ba,readOnly:!ta,autoComplete:Wn.autoComplete||"off",onClick:ta?Xt.handleInputClick:void 0,onBlur:ta?Xt.handleInputBlur:void 0,onKeyDown:Xt.handleKeyDown,onChange:ta?Xt.handleInputChange:void 0})),Nn,Xi),Hi;Nr?Hi=Nr:Hi=Lr?r.createElement(Ze.a,null):r.createElement(Le.a,null);var Ji=r.createElement("span",{className:"".concat(Dr,"-menu-item-loading-icon")},r.createElement(Xe.a,{spin:!0})),ca=qn.getPopupContainer||br,Ta=Object($n.default)(qn,["inputIcon","expandIcon","loadingIcon","bordered"]),na=M()(On,(In={},m()(In,"".concat(Dr,"-menu-").concat(Xn),Xn==="rtl"),m()(In,"".concat(Dr,"-menu-empty"),gi.length===1&&gi[0].value==="ANT_CASCADER_NOT_FOUND"),In));return r.createElement(ri,g()({},Ta,{prefixCls:Dr,getPopupContainer:ca,options:gi,value:Un,popupVisible:si.popupVisible,onPopupVisibleChange:Xt.handlePopupVisibleChange,onChange:Xt.handleChange,dropdownMenuColumnStyle:Ii,expandIcon:Hi,loadingIcon:Ji,popupClassName:na,popupPlacement:Xt.getPopupPlacement(Xn),dropdownRender:Pr}),zi)})},Xt.state={value:Wt.value||Wt.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Wt.popupVisible,flattenOptions:Wt.showSearch?mi(Wt.options,Wt):void 0,prevProps:Wt},Xt}return l()(Bt,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Xt=this.props,kt=Xt.options,hr=Xt.displayRender,br=hr===void 0?Pi:hr,wr=ti(this.props),Fr=this.state.value,Xn=Array.isArray(Fr[0])?Fr[0]:Fr,Fn=ut()(kt,function(An,jr){return An[wr.value]===Xn[jr]},{childrenKeyName:wr.children}),hi=Fn.length?Fn.map(function(An){return An[wr.label]}):Fr;return br(hi,Fn)}},{key:"generateFilteredOptions",value:function(Xt,kt){var hr=this,br,wr=this.props,Fr=wr.showSearch,Xn=wr.notFoundContent,Fn=ti(this.props),hi=Fr.filter,An=hi===void 0?Br:hi,jr=Fr.render,In=jr===void 0?jn:jr,Qn=Fr.sort,qn=Qn===void 0?xn:Qn,si=Fr.limit,Ci=si===void 0?yr:si,ki=this.state,Ri=ki.flattenOptions,oa=Ri===void 0?[]:Ri,ma=ki.inputValue,aa;if(Ci>0){aa=[];var ba=0;oa.some(function(bi){var Pn=An(hr.state.inputValue,bi,Fn);return Pn&&(aa.push(bi),ba+=1),ba>=Ci})}else Object(mr.a)(typeof Ci!="number","Cascader","'limit' of showSearch should be positive number or false."),aa=oa.filter(function(bi){return An(hr.state.inputValue,bi,Fn)});return aa=aa.sort(function(bi,Pn){return qn(bi,Pn,ma,Fn)}),aa.length>0?aa.map(function(bi){var Pn;return Pn={__IS_FILTERED_OPTION:!0,path:bi},m()(Pn,Fn.value,bi.map(function(ji){return ji[Fn.value]})),m()(Pn,Fn.label,In(ma,bi,Xt,Fn)),m()(Pn,"disabled",bi.some(function(ji){return!!ji.disabled})),m()(Pn,"isEmptyNode",!0),Pn}):[(br={},m()(br,Fn.value,"ANT_CASCADER_NOT_FOUND"),m()(br,Fn.label,Xn||kt("Cascader")),m()(br,"disabled",!0),m()(br,"isEmptyNode",!0),br)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",kt=this.props.popupPlacement;return kt!==void 0?kt:Xt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Xt=this;return r.createElement(Lt.a,null,function(kt){return r.createElement(At.a,null,function(hr){return Xt.renderCascader(kt,hr)})})}}],[{key:"getDerivedStateFromProps",value:function(Xt,kt){var hr=kt.prevProps,br={prevProps:Xt};return"value"in Xt&&(br.value=Xt.value||[]),"popupVisible"in Xt&&(br.popupVisible=Xt.popupVisible),Xt.showSearch&&hr.options!==Xt.options&&(br.flattenOptions=mi(Xt.options,Xt)),br}}]),Bt}(r.Component);Tn.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Yn=D.a=Tn},DFhj:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("GGyF"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},DL4k:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},DN4a:function(R,D,n){var y=n("Fofx"),g=n("QBsz"),S=y.identity,m=5e-5;function p(o){return o>m||o<-m}var f=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},d=f.prototype;d.transform=null,d.needLocalTransform=function(){return p(this.rotation)||p(this.position[0])||p(this.position[1])||p(this.scale[0]-1)||p(this.scale[1]-1)};var l=[];d.updateTransform=function(){var o=this.parent,e=o&&o.transform,u=this.needLocalTransform(),r=this.transform;if(!(u||e)){r&&S(r);return}r=r||y.create(),u?this.getLocalTransform(r):S(r),e&&(u?y.mul(r,o.transform,r):y.copy(r,o.transform)),this.transform=r;var s=this.globalScaleRatio;if(s!=null&&s!==1){this.getGlobalScale(l);var c=l[0]<0?-1:1,h=l[1]<0?-1:1,v=((l[0]-c)*s+c)/l[0]||0,A=((l[1]-h)*s+h)/l[1]||0;r[0]*=v,r[1]*=v,r[2]*=A,r[3]*=A}this.invTransform=this.invTransform||y.create(),y.invert(this.invTransform,r)},d.getLocalTransform=function(o){return f.getLocalTransform(this,o)},d.setTransform=function(o){var e=this.transform,u=o.dpr||1;e?o.setTransform(u*e[0],u*e[1],u*e[2],u*e[3],u*e[4],u*e[5]):o.setTransform(u,0,0,u,0,0)},d.restoreTransform=function(o){var e=o.dpr||1;o.setTransform(e,0,0,e,0,0)};var a=[],i=y.create();d.setLocalTransform=function(o){if(!o)return;var e=o[0]*o[0]+o[1]*o[1],u=o[2]*o[2]+o[3]*o[3],r=this.position,s=this.scale;p(e-1)&&(e=Math.sqrt(e)),p(u-1)&&(u=Math.sqrt(u)),o[0]<0&&(e=-e),o[3]<0&&(u=-u),r[0]=o[4],r[1]=o[5],s[0]=e,s[1]=u,this.rotation=Math.atan2(-o[1]/u,o[0]/e)},d.decomposeTransform=function(){if(!this.transform)return;var o=this.parent,e=this.transform;o&&o.transform&&(y.mul(a,o.invTransform,e),e=a);var u=this.origin;u&&(u[0]||u[1])&&(i[4]=u[0],i[5]=u[1],y.mul(a,e,i),a[4]-=u[0],a[5]-=u[1],e=a),this.setLocalTransform(e)},d.getGlobalScale=function(o){var e=this.transform;return o=o||[],e?(o[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),o[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(o[0]=-o[0]),e[3]<0&&(o[1]=-o[1]),o):(o[0]=1,o[1]=1,o)},d.transformCoordToLocal=function(o,e){var u=[o,e],r=this.invTransform;return r&&g.applyTransform(u,u,r),u},d.transformCoordToGlobal=function(o,e){var u=[o,e],r=this.transform;return r&&g.applyTransform(u,u,r),u},f.getLocalTransform=function(o,e){e=e||[],S(e);var u=o.origin,r=o.scale||[1,1],s=o.rotation||0,c=o.position||[0,0];return u&&(e[4]-=u[0],e[5]-=u[1]),y.scale(e,e,r),s&&y.rotate(e,e,s),u&&(e[4]+=u[0],e[5]+=u[1]),e[4]+=c[0],e[5]+=c[1],e};var t=f;R.exports=t},DO2E:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},DSRE:function(R,D,n){(function(y){var g=n("Kz5y"),S=n("B8du"),m=D&&!D.nodeType&&D,p=m&&typeof y=="object"&&y&&!y.nodeType&&y,f=p&&p.exports===m,d=f?g.Buffer:void 0,l=d?d.isBuffer:void 0,a=l||S;y.exports=a}).call(this,n("YuTi")(R))},DYRE:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("OPEp"),m=n.n(S)},DZo9:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("JGo8"),m=n.n(S),p=n("+L6B"),f=n("MXD1"),d=n("5Dmo")},Dagg:function(R,D,n){var y=n("Gev7"),g=n("mFDi"),S=n("bYtY"),m=n("Xnb7");function p(d){y.call(this,d)}p.prototype={constructor:p,type:"image",brush:function(l,a){var i=this.style,t=i.image;i.bind(l,this,a);var o=this._image=m.createOrUpdateImage(t,this._image,this,this.onload);if(!o||!m.isImageReady(o))return;var e=i.x||0,u=i.y||0,r=i.width,s=i.height,c=o.width/o.height;if(r==null&&s!=null?r=s*c:s==null&&r!=null?s=r/c:r==null&&s==null&&(r=o.width,s=o.height),this.setTransform(l),i.sWidth&&i.sHeight){var h=i.sx||0,v=i.sy||0;l.drawImage(o,h,v,i.sWidth,i.sHeight,e,u,r,s)}else if(i.sx&&i.sy){var h=i.sx,v=i.sy,A=r-h,b=s-v;l.drawImage(o,h,v,A,b,e,u,r,s)}else l.drawImage(o,e,u,r,s);i.text!=null&&(this.restoreTransform(l),this.drawRectText(l,this.getBoundingRect()))},getBoundingRect:function(){var l=this.style;return this._rect||(this._rect=new g(l.x||0,l.y||0,l.width||0,l.height||0)),this._rect}},S.inherits(p,y);var f=p;R.exports=f},Dg8C:function(R,D,n){var y=n("XxSj"),g=n("bYtY");function S(m,p){m.eachSeriesByType("sankey",function(f){var d=f.getGraph(),l=d.nodes;if(l.length){var a=Infinity,i=-Infinity;g.each(l,function(t){var o=t.getLayout().value;o<a&&(a=o),o>i&&(i=o)}),g.each(l,function(t){var o=new y({type:"color",mappingMethod:"linear",dataExtent:[a,i],visual:f.get("color")}),e=o.mapValueToVisual(t.getLayout().value),u=t.getModel().get("itemStyle.color");u!=null?t.setVisual("color",u):t.setVisual("color",e)})}})}R.exports=S},DjyN:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("Urep"),m=n.n(S),p=n("OaEy")},DlQD:function(R,D,n){(function(y,g){R.exports=g()})(this,function(){"use strict";function y(Qt,Ht){for(var Jt=0;Jt<Ht.length;Jt++){var Ge=Ht[Jt];Ge.enumerable=Ge.enumerable||!1,Ge.configurable=!0,"value"in Ge&&(Ge.writable=!0),Object.defineProperty(Qt,Ge.key,Ge)}}function g(Qt,Ht,Jt){return Ht&&y(Qt.prototype,Ht),Jt&&y(Qt,Jt),Qt}function S(Qt,Ht){if(!Qt)return;if(typeof Qt=="string")return m(Qt,Ht);var Jt=Object.prototype.toString.call(Qt).slice(8,-1);if(Jt==="Object"&&Qt.constructor&&(Jt=Qt.constructor.name),Jt==="Map"||Jt==="Set")return Array.from(Qt);if(Jt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Jt))return m(Qt,Ht)}function m(Qt,Ht){(Ht==null||Ht>Qt.length)&&(Ht=Qt.length);for(var Jt=0,Ge=new Array(Ht);Jt<Ht;Jt++)Ge[Jt]=Qt[Jt];return Ge}function p(Qt,Ht){var Jt;if(typeof Symbol=="undefined"||Qt[Symbol.iterator]==null){if(Array.isArray(Qt)||(Jt=S(Qt))||Ht&&Qt&&typeof Qt.length=="number"){Jt&&(Qt=Jt);var Ge=0;return function(){return Ge>=Qt.length?{done:!0}:{done:!1,value:Qt[Ge++]}}}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=Qt[Symbol.iterator](),Jt.next.bind(Jt)}function f(Qt,Ht){return Ht={exports:{}},Qt(Ht,Ht.exports),Ht.exports}var d=f(function(Qt){function Ht(){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(Ge){Qt.exports.defaults=Ge}Qt.exports={defaults:Ht(),getDefaults:Ht,changeDefaults:Jt}}),l=d.defaults,a=d.getDefaults,i=d.changeDefaults,t=/[&<>"']/,o=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=function(Ht){return r[Ht]};function c(Qt,Ht){if(Ht){if(t.test(Qt))return Qt.replace(o,s)}else if(e.test(Qt))return Qt.replace(u,s);return Qt}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function v(Qt){return Qt.replace(h,function(Ht,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 A=/(^|[^\[])\^/g;function b(Qt,Ht){Qt=Qt.source||Qt,Ht=Ht||"";var Jt={replace:function(pe,oe){return oe=oe.source||oe,oe=oe.replace(A,"$1"),Qt=Qt.replace(pe,oe),Jt},getRegex:function(){return new RegExp(Qt,Ht)}};return Jt}var x=/[^\w:]/g,E=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function T(Qt,Ht,Jt){if(Qt){var Ge;try{Ge=decodeURIComponent(v(Jt)).replace(x,"").toLowerCase()}catch(pe){return null}if(Ge.indexOf("javascript:")===0||Ge.indexOf("vbscript:")===0||Ge.indexOf("data:")===0)return null}Ht&&!E.test(Jt)&&(Jt=I(Ht,Jt));try{Jt=encodeURI(Jt).replace(/%25/g,"%")}catch(pe){return null}return Jt}var _={},C=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(Qt,Ht){_[" "+Qt]||(C.test(Qt)?_[" "+Qt]=Qt+"/":_[" "+Qt]=P(Qt,"/",!0)),Qt=_[" "+Qt];var Jt=Qt.indexOf(":")===-1;return Ht.substring(0,2)==="//"?Jt?Ht:Qt.replace(w,"$1")+Ht:Ht.charAt(0)==="/"?Jt?Ht:Qt.replace(O,"$1")+Ht:Qt+Ht}var k={exec:function(){}};function M(Qt){for(var Ht=1,Jt,Ge;Ht<arguments.length;Ht++){Jt=arguments[Ht];for(Ge in Jt)Object.prototype.hasOwnProperty.call(Jt,Ge)&&(Qt[Ge]=Jt[Ge])}return Qt}function U(Qt,Ht){var Jt=Qt.replace(/\|/g,function(oe,ct,qe){for(var me=!1,Kt=ct;--Kt>=0&&qe[Kt]==="\\";)me=!me;return me?"|":" |"}),Ge=Jt.split(/ \|/),pe=0;if(Ge.length>Ht)Ge.splice(Ht);else for(;Ge.length<Ht;)Ge.push("");for(;pe<Ge.length;pe++)Ge[pe]=Ge[pe].trim().replace(/\\\|/g,"|");return Ge}function P(Qt,Ht,Jt){var Ge=Qt.length;if(Ge===0)return"";for(var pe=0;pe<Ge;){var oe=Qt.charAt(Ge-pe-1);if(oe===Ht&&!Jt)pe++;else if(oe!==Ht&&Jt)pe++;else break}return Qt.substr(0,Ge-pe)}function X(Qt,Ht){if(Qt.indexOf(Ht[1])===-1)return-1;for(var Jt=Qt.length,Ge=0,pe=0;pe<Jt;pe++)if(Qt[pe]==="\\")pe++;else if(Qt[pe]===Ht[0])Ge++;else if(Qt[pe]===Ht[1]&&(Ge--,Ge<0))return pe;return-1}function F(Qt){Qt&&Qt.sanitize&&!Qt.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:c,unescape:v,edit:b,cleanUrl:T,resolveUrl:I,noopTest:k,merge:M,splitCells:U,rtrim:P,findClosingBracket:X,checkSanitizeDeprecation:F},K=d.defaults,z=j.rtrim,V=j.splitCells,Q=j.escape,G=j.findClosingBracket;function te(Qt,Ht,Jt){var Ge=Ht.href,pe=Ht.title?Q(Ht.title):null,oe=Qt[1].replace(/\\([\[\]])/g,"$1");return Qt[0].charAt(0)!=="!"?{type:"link",raw:Jt,href:Ge,title:pe,text:oe}:{type:"image",raw:Jt,href:Ge,title:pe,text:Q(oe)}}function q(Qt,Ht){var Jt=Qt.match(/^(\s+)(?:```)/);if(Jt===null)return Ht;var Ge=Jt[1];return Ht.split(`
`).map(function(pe){var oe=pe.match(/^\s+/);if(oe===null)return pe;var ct=oe[0];return ct.length>=Ge.length?pe.slice(Ge.length):pe}).join(`
`)}var se=function(){function Qt(Jt){this.options=Jt||K}var Ht=Qt.prototype;return Ht.space=function(Ge){var pe=this.rules.block.newline.exec(Ge);if(pe)return pe[0].length>1?{type:"space",raw:pe[0]}:{raw:`
`}},Ht.code=function(Ge,pe){var oe=this.rules.block.code.exec(Ge);if(oe){var ct=pe[pe.length-1];if(ct&&ct.type==="paragraph")return{raw:oe[0],text:oe[0].trimRight()};var qe=oe[0].replace(/^ {4}/gm,"");return{type:"code",raw:oe[0],codeBlockStyle:"indented",text:this.options.pedantic?qe:z(qe,`
`)}}},Ht.fences=function(Ge){var pe=this.rules.block.fences.exec(Ge);if(pe){var oe=pe[0],ct=q(oe,pe[3]||"");return{type:"code",raw:oe,lang:pe[2]?pe[2].trim():pe[2],text:ct}}},Ht.heading=function(Ge){var pe=this.rules.block.heading.exec(Ge);if(pe)return{type:"heading",raw:pe[0],depth:pe[1].length,text:pe[2]}},Ht.nptable=function(Ge){var pe=this.rules.block.nptable.exec(Ge);if(pe){var oe={type:"table",header:V(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
`):[],raw:pe[0]};if(oe.header.length===oe.align.length){var ct=oe.align.length,qe;for(qe=0;qe<ct;qe++)/^ *-+: *$/.test(oe.align[qe])?oe.align[qe]="right":/^ *:-+: *$/.test(oe.align[qe])?oe.align[qe]="center":/^ *:-+ *$/.test(oe.align[qe])?oe.align[qe]="left":oe.align[qe]=null;for(ct=oe.cells.length,qe=0;qe<ct;qe++)oe.cells[qe]=V(oe.cells[qe],oe.header.length);return oe}}},Ht.hr=function(Ge){var pe=this.rules.block.hr.exec(Ge);if(pe)return{type:"hr",raw:pe[0]}},Ht.blockquote=function(Ge){var pe=this.rules.block.blockquote.exec(Ge);if(pe){var oe=pe[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:pe[0],text:oe}}},Ht.list=function(Ge){var pe=this.rules.block.list.exec(Ge);if(pe){for(var oe=pe[0],ct=pe[2],qe=ct.length>1,me=ct[ct.length-1]===")",Kt={type:"list",raw:oe,ordered:qe,start:qe?+ct.slice(0,-1):"",loose:!1,items:[]},vr=pe[0].match(this.rules.block.item),bt=!1,or,_t,jt,ut,St,mt,lt,tt=vr.length,Cr=0;Cr<tt;Cr++)or=vr[Cr],oe=or,_t=or.length,or=or.replace(/^ *([*+-]|\d+[.)]) */,""),~or.indexOf(`
`)&&(_t-=or.length,or=this.options.pedantic?or.replace(/^ {1,4}/gm,""):or.replace(new RegExp("^ {1,"+_t+"}","gm"),"")),Cr!==tt-1&&(jt=this.rules.block.bullet.exec(vr[Cr+1])[0],(qe?jt.length===1||!me&&jt[jt.length-1]===")":jt.length>1||this.options.smartLists&&jt!==ct)&&(ut=vr.slice(Cr+1).join(`
`),Kt.raw=Kt.raw.substring(0,Kt.raw.length-ut.length),Cr=tt-1)),St=bt||/\n\n(?!\s*$)/.test(or),Cr!==tt-1&&(bt=or.charAt(or.length-1)===`
`,St||(St=bt)),St&&(Kt.loose=!0),mt=/^\[[ xX]\] /.test(or),lt=void 0,mt&&(lt=or[1]!==" ",or=or.replace(/^\[[ xX]\] +/,"")),Kt.items.push({type:"list_item",raw:oe,task:mt,checked:lt,loose:St,text:or});return Kt}},Ht.html=function(Ge){var pe=this.rules.block.html.exec(Ge);if(pe)return{type:this.options.sanitize?"paragraph":"html",raw:pe[0],pre:!this.options.sanitizer&&(pe[1]==="pre"||pe[1]==="script"||pe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(pe[0]):Q(pe[0]):pe[0]}},Ht.def=function(Ge){var pe=this.rules.block.def.exec(Ge);if(pe){pe[3]&&(pe[3]=pe[3].substring(1,pe[3].length-1));var oe=pe[1].toLowerCase().replace(/\s+/g," ");return{tag:oe,raw:pe[0],href:pe[2],title:pe[3]}}},Ht.table=function(Ge){var pe=this.rules.block.table.exec(Ge);if(pe){var oe={type:"table",header:V(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
`):[]};if(oe.header.length===oe.align.length){oe.raw=pe[0];var ct=oe.align.length,qe;for(qe=0;qe<ct;qe++)/^ *-+: *$/.test(oe.align[qe])?oe.align[qe]="right":/^ *:-+: *$/.test(oe.align[qe])?oe.align[qe]="center":/^ *:-+ *$/.test(oe.align[qe])?oe.align[qe]="left":oe.align[qe]=null;for(ct=oe.cells.length,qe=0;qe<ct;qe++)oe.cells[qe]=V(oe.cells[qe].replace(/^ *\| *| *\| *$/g,""),oe.header.length);return oe}}},Ht.lheading=function(Ge){var pe=this.rules.block.lheading.exec(Ge);if(pe)return{type:"heading",raw:pe[0],depth:pe[2].charAt(0)==="="?1:2,text:pe[1]}},Ht.paragraph=function(Ge){var pe=this.rules.block.paragraph.exec(Ge);if(pe)return{type:"paragraph",raw:pe[0],text:pe[1].charAt(pe[1].length-1)===`
`?pe[1].slice(0,-1):pe[1]}},Ht.text=function(Ge,pe){var oe=this.rules.block.text.exec(Ge);if(oe){var ct=pe[pe.length-1];return ct&&ct.type==="text"?{raw:oe[0],text:oe[0]}:{type:"text",raw:oe[0],text:oe[0]}}},Ht.escape=function(Ge){var pe=this.rules.inline.escape.exec(Ge);if(pe)return{type:"escape",raw:pe[0],text:Q(pe[1])}},Ht.tag=function(Ge,pe,oe){var ct=this.rules.inline.tag.exec(Ge);if(ct)return!pe&&/^<a /i.test(ct[0])?pe=!0:pe&&/^<\/a>/i.test(ct[0])&&(pe=!1),!oe&&/^<(pre|code|kbd|script)(\s|>)/i.test(ct[0])?oe=!0:oe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ct[0])&&(oe=!1),{type:this.options.sanitize?"text":"html",raw:ct[0],inLink:pe,inRawBlock:oe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ct[0]):Q(ct[0]):ct[0]}},Ht.link=function(Ge){var pe=this.rules.inline.link.exec(Ge);if(pe){var oe=G(pe[2],"()");if(oe>-1){var ct=pe[0].indexOf("!")===0?5:4,qe=ct+pe[1].length+oe;pe[2]=pe[2].substring(0,oe),pe[0]=pe[0].substring(0,qe).trim(),pe[3]=""}var me=pe[2],Kt="";if(this.options.pedantic){var vr=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(me);vr?(me=vr[1],Kt=vr[3]):Kt=""}else Kt=pe[3]?pe[3].slice(1,-1):"";me=me.trim().replace(/^<([\s\S]*)>$/,"$1");var bt=te(pe,{href:me&&me.replace(this.rules.inline._escapes,"$1"),title:Kt&&Kt.replace(this.rules.inline._escapes,"$1")},pe[0]);return bt}},Ht.reflink=function(Ge,pe){var oe;if((oe=this.rules.inline.reflink.exec(Ge))||(oe=this.rules.inline.nolink.exec(Ge))){var ct=(oe[2]||oe[1]).replace(/\s+/g," ");if(ct=pe[ct.toLowerCase()],!ct||!ct.href){var qe=oe[0].charAt(0);return{type:"text",raw:qe,text:qe}}var me=te(oe,ct,oe[0]);return me}},Ht.strong=function(Ge,pe,oe){oe===void 0&&(oe="");var ct=this.rules.inline.strong.start.exec(Ge);if(ct&&(!ct[1]||ct[1]&&(oe===""||this.rules.inline.punctuation.exec(oe)))){pe=pe.slice(-1*Ge.length);var qe=ct[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;qe.lastIndex=0;for(var me;(ct=qe.exec(pe))!=null;)if(me=this.rules.inline.strong.middle.exec(pe.slice(0,ct.index+3)),me)return{type:"strong",raw:Ge.slice(0,me[0].length),text:Ge.slice(2,me[0].length-2)}}},Ht.em=function(Ge,pe,oe){oe===void 0&&(oe="");var ct=this.rules.inline.em.start.exec(Ge);if(ct&&(!ct[1]||ct[1]&&(oe===""||this.rules.inline.punctuation.exec(oe)))){pe=pe.slice(-1*Ge.length);var qe=ct[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;qe.lastIndex=0;for(var me;(ct=qe.exec(pe))!=null;)if(me=this.rules.inline.em.middle.exec(pe.slice(0,ct.index+2)),me)return{type:"em",raw:Ge.slice(0,me[0].length),text:Ge.slice(1,me[0].length-1)}}},Ht.codespan=function(Ge){var pe=this.rules.inline.code.exec(Ge);if(pe){var oe=pe[2].replace(/\n/g," "),ct=/[^ ]/.test(oe),qe=oe.startsWith(" ")&&oe.endsWith(" ");return ct&&qe&&(oe=oe.substring(1,oe.length-1)),oe=Q(oe,!0),{type:"codespan",raw:pe[0],text:oe}}},Ht.br=function(Ge){var pe=this.rules.inline.br.exec(Ge);if(pe)return{type:"br",raw:pe[0]}},Ht.del=function(Ge){var pe=this.rules.inline.del.exec(Ge);if(pe)return{type:"del",raw:pe[0],text:pe[1]}},Ht.autolink=function(Ge,pe){var oe=this.rules.inline.autolink.exec(Ge);if(oe){var ct,qe;return oe[2]==="@"?(ct=Q(this.options.mangle?pe(oe[1]):oe[1]),qe="mailto:"+ct):(ct=Q(oe[1]),qe=ct),{type:"link",raw:oe[0],text:ct,href:qe,tokens:[{type:"text",raw:ct,text:ct}]}}},Ht.url=function(Ge,pe){var oe;if(oe=this.rules.inline.url.exec(Ge)){var ct,qe;if(oe[2]==="@")ct=Q(this.options.mangle?pe(oe[0]):oe[0]),qe="mailto:"+ct;else{var me;do me=oe[0],oe[0]=this.rules.inline._backpedal.exec(oe[0])[0];while(me!==oe[0]);ct=Q(oe[0]),oe[1]==="www."?qe="http://"+ct:qe=ct}return{type:"link",raw:oe[0],text:ct,href:qe,tokens:[{type:"text",raw:ct,text:ct}]}}},Ht.inlineText=function(Ge,pe,oe){var ct=this.rules.inline.text.exec(Ge);if(ct){var qe;return pe?qe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ct[0]):Q(ct[0]):ct[0]:qe=Q(this.options.smartypants?oe(ct[0]):ct[0]),{type:"text",raw:ct[0],text:qe}}},Qt}(),re=j.noopTest,we=j.edit,Oe=j.merge,Me={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:re,table:re,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Me._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Me._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Me.def=we(Me.def).replace("label",Me._label).replace("title",Me._title).getRegex(),Me.bullet=/(?:[*+-]|\d{1,9}[.)])/,Me.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Me.item=we(Me.item,"gm").replace(/bull/g,Me.bullet).getRegex(),Me.list=we(Me.list).replace(/bull/g,Me.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Me.def.source+")").getRegex(),Me._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",Me._comment=/<!--(?!-?>)[\s\S]*?-->/,Me.html=we(Me.html,"i").replace("comment",Me._comment).replace("tag",Me._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Me.paragraph=we(Me._paragraph).replace("hr",Me.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",Me._tag).getRegex(),Me.blockquote=we(Me.blockquote).replace("paragraph",Me.paragraph).getRegex(),Me.normal=Oe({},Me),Me.gfm=Oe({},Me.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*|$)"}),Me.gfm.nptable=we(Me.gfm.nptable).replace("hr",Me.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",Me._tag).getRegex(),Me.gfm.table=we(Me.gfm.table).replace("hr",Me.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",Me._tag).getRegex(),Me.pedantic=Oe({},Me.normal,{html:we(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Me._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:re,paragraph:we(Me.normal._paragraph).replace("hr",Me.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Me.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Qe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:re,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:re,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};Qe._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Qe.punctuation=we(Qe.punctuation).replace(/punctuation/g,Qe._punctuation).getRegex(),Qe._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Qe._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Qe.em.start=we(Qe.em.start).replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.em.middle=we(Qe.em.middle).replace(/punctuation/g,Qe._punctuation).replace(/overlapSkip/g,Qe._overlapSkip).getRegex(),Qe.em.endAst=we(Qe.em.endAst,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.em.endUnd=we(Qe.em.endUnd,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.strong.start=we(Qe.strong.start).replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.strong.middle=we(Qe.strong.middle).replace(/punctuation/g,Qe._punctuation).replace(/blockSkip/g,Qe._blockSkip).getRegex(),Qe.strong.endAst=we(Qe.strong.endAst,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.strong.endUnd=we(Qe.strong.endUnd,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.blockSkip=we(Qe._blockSkip,"g").getRegex(),Qe.overlapSkip=we(Qe._overlapSkip,"g").getRegex(),Qe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Qe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Qe._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])?)+(?![-_])/,Qe.autolink=we(Qe.autolink).replace("scheme",Qe._scheme).replace("email",Qe._email).getRegex(),Qe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Qe.tag=we(Qe.tag).replace("comment",Me._comment).replace("attribute",Qe._attribute).getRegex(),Qe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qe._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Qe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Qe.link=we(Qe.link).replace("label",Qe._label).replace("href",Qe._href).replace("title",Qe._title).getRegex(),Qe.reflink=we(Qe.reflink).replace("label",Qe._label).getRegex(),Qe.reflinkSearch=we(Qe.reflinkSearch,"g").replace("reflink",Qe.reflink).replace("nolink",Qe.nolink).getRegex(),Qe.normal=Oe({},Qe),Qe.pedantic=Oe({},Qe.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:we(/^!?\[(label)\]\((.*?)\)/).replace("label",Qe._label).getRegex(),reflink:we(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Qe._label).getRegex()}),Qe.gfm=Oe({},Qe.normal,{escape:we(Qe.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),Qe.gfm.url=we(Qe.gfm.url,"i").replace("email",Qe.gfm._extended_email).getRegex(),Qe.breaks=Oe({},Qe.gfm,{br:we(Qe.br).replace("{2,}","*").getRegex(),text:we(Qe.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ve={block:Me,inline:Qe},dt=d.defaults,Fe=Ve.block,ue=Ve.inline;function et(Qt){return Qt.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 he(Qt){var Ht="",Jt,Ge,pe=Qt.length;for(Jt=0;Jt<pe;Jt++)Ge=Qt.charCodeAt(Jt),Math.random()>.5&&(Ge="x"+Ge.toString(16)),Ht+="&#"+Ge+";";return Ht}var J=function(){function Qt(Jt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Jt||dt,this.options.tokenizer=this.options.tokenizer||new se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ge={block:Fe.normal,inline:ue.normal};this.options.pedantic?(Ge.block=Fe.pedantic,Ge.inline=ue.pedantic):this.options.gfm&&(Ge.block=Fe.gfm,this.options.breaks?Ge.inline=ue.breaks:Ge.inline=ue.gfm),this.tokenizer.rules=Ge}Qt.lex=function(Ge,pe){var oe=new Qt(pe);return oe.lex(Ge)};var Ht=Qt.prototype;return Ht.lex=function(Ge){return Ge=Ge.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ge,this.tokens,!0),this.inline(this.tokens),this.tokens},Ht.blockTokens=function(Ge,pe,oe){pe===void 0&&(pe=[]),oe===void 0&&(oe=!0),Ge=Ge.replace(/^ +$/gm,"");for(var ct,qe,me,Kt;Ge;){if(ct=this.tokenizer.space(Ge)){Ge=Ge.substring(ct.raw.length),ct.type&&pe.push(ct);continue}if(ct=this.tokenizer.code(Ge,pe)){Ge=Ge.substring(ct.raw.length),ct.type?pe.push(ct):(Kt=pe[pe.length-1],Kt.raw+=`
`+ct.raw,Kt.text+=`
`+ct.text);continue}if(ct=this.tokenizer.fences(Ge)){Ge=Ge.substring(ct.raw.length),pe.push(ct);continue}if(ct=this.tokenizer.heading(Ge)){Ge=Ge.substring(ct.raw.length),pe.push(ct);continue}if(ct=this.tokenizer.nptable(Ge)){Ge=Ge.substring(ct.raw.length),pe.push(ct);continue}if(ct=this.tokenizer.hr(Ge)){Ge=Ge.substring(ct.raw.length),pe.push(ct);continue}if(ct=this.tokenizer.blockquote(Ge)){Ge=Ge.substring(ct.raw.length),ct.tokens=this.blockTokens(ct.text,[],oe),pe.push(ct);continue}if(ct=this.tokenizer.list(Ge)){for(Ge=Ge.substring(ct.raw.length),me=ct.items.length,qe=0;qe<me;qe++)ct.items[qe].tokens=this.blockTokens(ct.items[qe].text,[],!1);pe.push(ct);continue}if(ct=this.tokenizer.html(Ge)){Ge=Ge.substring(ct.raw.length),pe.push(ct);continue}if(oe&&(ct=this.tokenizer.def(Ge))){Ge=Ge.substring(ct.raw.length),this.tokens.links[ct.tag]||(this.tokens.links[ct.tag]={href:ct.href,title:ct.title});continue}if(ct=this.tokenizer.table(Ge)){Ge=Ge.substring(ct.raw.length),pe.push(ct);continue}if(ct=this.tokenizer.lheading(Ge)){Ge=Ge.substring(ct.raw.length),pe.push(ct);continue}if(oe&&(ct=this.tokenizer.paragraph(Ge))){Ge=Ge.substring(ct.raw.length),pe.push(ct);continue}if(ct=this.tokenizer.text(Ge,pe)){Ge=Ge.substring(ct.raw.length),ct.type?pe.push(ct):(Kt=pe[pe.length-1],Kt.raw+=`
`+ct.raw,Kt.text+=`
`+ct.text);continue}if(Ge){var vr="Infinite loop on byte: "+Ge.charCodeAt(0);if(this.options.silent){console.error(vr);break}else throw new Error(vr)}}return pe},Ht.inline=function(Ge){var pe,oe,ct,qe,me,Kt,vr=Ge.length;for(pe=0;pe<vr;pe++){Kt=Ge[pe];switch(Kt.type){case"paragraph":case"text":case"heading":{Kt.tokens=[],this.inlineTokens(Kt.text,Kt.tokens);break}case"table":{for(Kt.tokens={header:[],cells:[]},qe=Kt.header.length,oe=0;oe<qe;oe++)Kt.tokens.header[oe]=[],this.inlineTokens(Kt.header[oe],Kt.tokens.header[oe]);for(qe=Kt.cells.length,oe=0;oe<qe;oe++)for(me=Kt.cells[oe],Kt.tokens.cells[oe]=[],ct=0;ct<me.length;ct++)Kt.tokens.cells[oe][ct]=[],this.inlineTokens(me[ct],Kt.tokens.cells[oe][ct]);break}case"blockquote":{this.inline(Kt.tokens);break}case"list":{for(qe=Kt.items.length,oe=0;oe<qe;oe++)this.inline(Kt.items[oe].tokens);break}}}return Ge},Ht.inlineTokens=function(Ge,pe,oe,ct,qe){pe===void 0&&(pe=[]),oe===void 0&&(oe=!1),ct===void 0&&(ct=!1),qe===void 0&&(qe="");var me,Kt=Ge,vr;if(this.tokens.links){var bt=Object.keys(this.tokens.links);if(bt.length>0)for(;(vr=this.tokenizer.rules.inline.reflinkSearch.exec(Kt))!=null;)bt.includes(vr[0].slice(vr[0].lastIndexOf("[")+1,-1))&&(Kt=Kt.slice(0,vr.index)+"["+"a".repeat(vr[0].length-2)+"]"+Kt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(vr=this.tokenizer.rules.inline.blockSkip.exec(Kt))!=null;)Kt=Kt.slice(0,vr.index)+"["+"a".repeat(vr[0].length-2)+"]"+Kt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ge;){if(me=this.tokenizer.escape(Ge)){Ge=Ge.substring(me.raw.length),pe.push(me);continue}if(me=this.tokenizer.tag(Ge,oe,ct)){Ge=Ge.substring(me.raw.length),oe=me.inLink,ct=me.inRawBlock,pe.push(me);continue}if(me=this.tokenizer.link(Ge)){Ge=Ge.substring(me.raw.length),me.type==="link"&&(me.tokens=this.inlineTokens(me.text,[],!0,ct)),pe.push(me);continue}if(me=this.tokenizer.reflink(Ge,this.tokens.links)){Ge=Ge.substring(me.raw.length),me.type==="link"&&(me.tokens=this.inlineTokens(me.text,[],!0,ct)),pe.push(me);continue}if(me=this.tokenizer.strong(Ge,Kt,qe)){Ge=Ge.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],oe,ct),pe.push(me);continue}if(me=this.tokenizer.em(Ge,Kt,qe)){Ge=Ge.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],oe,ct),pe.push(me);continue}if(me=this.tokenizer.codespan(Ge)){Ge=Ge.substring(me.raw.length),pe.push(me);continue}if(me=this.tokenizer.br(Ge)){Ge=Ge.substring(me.raw.length),pe.push(me);continue}if(me=this.tokenizer.del(Ge)){Ge=Ge.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],oe,ct),pe.push(me);continue}if(me=this.tokenizer.autolink(Ge,he)){Ge=Ge.substring(me.raw.length),pe.push(me);continue}if(!oe&&(me=this.tokenizer.url(Ge,he))){Ge=Ge.substring(me.raw.length),pe.push(me);continue}if(me=this.tokenizer.inlineText(Ge,ct,et)){Ge=Ge.substring(me.raw.length),qe=me.raw.slice(-1),pe.push(me);continue}if(Ge){var or="Infinite loop on byte: "+Ge.charCodeAt(0);if(this.options.silent){console.error(or);break}else throw new Error(or)}}return pe},g(Qt,null,[{key:"rules",get:function(){return{block:Fe,inline:ue}}}]),Qt}(),Y=d.defaults,$=j.cleanUrl,de=j.escape,be=function(){function Qt(Jt){this.options=Jt||Y}var Ht=Qt.prototype;return Ht.code=function(Ge,pe,oe){var ct=(pe||"").match(/\S*/)[0];if(this.options.highlight){var qe=this.options.highlight(Ge,ct);qe!=null&&qe!==Ge&&(oe=!0,Ge=qe)}return ct?'<pre><code class="'+this.options.langPrefix+de(ct,!0)+'">'+(oe?Ge:de(Ge,!0))+`</code></pre>
`:"<pre><code>"+(oe?Ge:de(Ge,!0))+`</code></pre>
`},Ht.blockquote=function(Ge){return`<blockquote>
`+Ge+`</blockquote>
`},Ht.html=function(Ge){return Ge},Ht.heading=function(Ge,pe,oe,ct){return this.options.headerIds?"<h"+pe+' id="'+this.options.headerPrefix+ct.slug(oe)+'">'+Ge+"</h"+pe+`>
`:"<h"+pe+">"+Ge+"</h"+pe+`>
`},Ht.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Ht.list=function(Ge,pe,oe){var ct=pe?"ol":"ul",qe=pe&&oe!==1?' start="'+oe+'"':"";return"<"+ct+qe+`>
`+Ge+"</"+ct+`>
`},Ht.listitem=function(Ge){return"<li>"+Ge+`</li>
`},Ht.checkbox=function(Ge){return"<input "+(Ge?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Ht.paragraph=function(Ge){return"<p>"+Ge+`</p>
`},Ht.table=function(Ge,pe){return pe&&(pe="<tbody>"+pe+"</tbody>"),`<table>
<thead>
`+Ge+`</thead>
`+pe+`</table>
`},Ht.tablerow=function(Ge){return`<tr>
`+Ge+`</tr>
`},Ht.tablecell=function(Ge,pe){var oe=pe.header?"th":"td",ct=pe.align?"<"+oe+' align="'+pe.align+'">':"<"+oe+">";return ct+Ge+"</"+oe+`>
`},Ht.strong=function(Ge){return"<strong>"+Ge+"</strong>"},Ht.em=function(Ge){return"<em>"+Ge+"</em>"},Ht.codespan=function(Ge){return"<code>"+Ge+"</code>"},Ht.br=function(){return this.options.xhtml?"<br/>":"<br>"},Ht.del=function(Ge){return"<del>"+Ge+"</del>"},Ht.link=function(Ge,pe,oe){if(Ge=$(this.options.sanitize,this.options.baseUrl,Ge),Ge===null)return oe;var ct='<a href="'+de(Ge)+'"';return pe&&(ct+=' title="'+pe+'"'),ct+=">"+oe+"</a>",ct},Ht.image=function(Ge,pe,oe){if(Ge=$(this.options.sanitize,this.options.baseUrl,Ge),Ge===null)return oe;var ct='<img src="'+Ge+'" alt="'+oe+'"';return pe&&(ct+=' title="'+pe+'"'),ct+=this.options.xhtml?"/>":">",ct},Ht.text=function(Ge){return Ge},Qt}(),Te=function(){function Qt(){}var Ht=Qt.prototype;return Ht.strong=function(Ge){return Ge},Ht.em=function(Ge){return Ge},Ht.codespan=function(Ge){return Ge},Ht.del=function(Ge){return Ge},Ht.html=function(Ge){return Ge},Ht.text=function(Ge){return Ge},Ht.link=function(Ge,pe,oe){return""+oe},Ht.image=function(Ge,pe,oe){return""+oe},Ht.br=function(){return""},Qt}(),Be=function(){function Qt(){this.seen={}}var Ht=Qt.prototype;return Ht.slug=function(Ge){var pe=Ge.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(pe)){var oe=pe;do this.seen[oe]++,pe=oe+"-"+this.seen[oe];while(this.seen.hasOwnProperty(pe))}return this.seen[pe]=0,pe},Qt}(),fe=d.defaults,xe=j.unescape,ke=function(){function Qt(Jt){this.options=Jt||fe,this.options.renderer=this.options.renderer||new be,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Te,this.slugger=new Be}Qt.parse=function(Ge,pe){var oe=new Qt(pe);return oe.parse(Ge)};var Ht=Qt.prototype;return Ht.parse=function(Ge,pe){pe===void 0&&(pe=!0);var oe="",ct,qe,me,Kt,vr,bt,or,_t,jt,ut,St,mt,lt,tt,Cr,nn,mn,Bn,oi=Ge.length;for(ct=0;ct<oi;ct++){ut=Ge[ct];switch(ut.type){case"space":continue;case"hr":{oe+=this.renderer.hr();continue}case"heading":{oe+=this.renderer.heading(this.parseInline(ut.tokens),ut.depth,xe(this.parseInline(ut.tokens,this.textRenderer)),this.slugger);continue}case"code":{oe+=this.renderer.code(ut.text,ut.lang,ut.escaped);continue}case"table":{for(_t="",or="",Kt=ut.header.length,qe=0;qe<Kt;qe++)or+=this.renderer.tablecell(this.parseInline(ut.tokens.header[qe]),{header:!0,align:ut.align[qe]});for(_t+=this.renderer.tablerow(or),jt="",Kt=ut.cells.length,qe=0;qe<Kt;qe++){for(bt=ut.tokens.cells[qe],or="",vr=bt.length,me=0;me<vr;me++)or+=this.renderer.tablecell(this.parseInline(bt[me]),{header:!1,align:ut.align[me]});jt+=this.renderer.tablerow(or)}oe+=this.renderer.table(_t,jt);continue}case"blockquote":{jt=this.parse(ut.tokens),oe+=this.renderer.blockquote(jt);continue}case"list":{for(St=ut.ordered,mt=ut.start,lt=ut.loose,Kt=ut.items.length,jt="",qe=0;qe<Kt;qe++)Cr=ut.items[qe],nn=Cr.checked,mn=Cr.task,tt="",Cr.task&&(Bn=this.renderer.checkbox(nn),lt?Cr.tokens.length>0&&Cr.tokens[0].type==="text"?(Cr.tokens[0].text=Bn+" "+Cr.tokens[0].text,Cr.tokens[0].tokens&&Cr.tokens[0].tokens.length>0&&Cr.tokens[0].tokens[0].type==="text"&&(Cr.tokens[0].tokens[0].text=Bn+" "+Cr.tokens[0].tokens[0].text)):Cr.tokens.unshift({type:"text",text:Bn}):tt+=Bn),tt+=this.parse(Cr.tokens,lt),jt+=this.renderer.listitem(tt,mn,nn);oe+=this.renderer.list(jt,St,mt);continue}case"html":{oe+=this.renderer.html(ut.text);continue}case"paragraph":{oe+=this.renderer.paragraph(this.parseInline(ut.tokens));continue}case"text":{for(jt=ut.tokens?this.parseInline(ut.tokens):ut.text;ct+1<oi&&Ge[ct+1].type==="text";)ut=Ge[++ct],jt+=`
`+(ut.tokens?this.parseInline(ut.tokens):ut.text);oe+=pe?this.renderer.paragraph(jt):jt;continue}default:{var wn='Token with "'+ut.type+'" type was not found.';if(this.options.silent){console.error(wn);return}else throw new Error(wn)}}}return oe},Ht.parseInline=function(Ge,pe){pe=pe||this.renderer;var oe="",ct,qe,me=Ge.length;for(ct=0;ct<me;ct++){qe=Ge[ct];switch(qe.type){case"escape":{oe+=pe.text(qe.text);break}case"html":{oe+=pe.html(qe.text);break}case"link":{oe+=pe.link(qe.href,qe.title,this.parseInline(qe.tokens,pe));break}case"image":{oe+=pe.image(qe.href,qe.title,qe.text);break}case"strong":{oe+=pe.strong(this.parseInline(qe.tokens,pe));break}case"em":{oe+=pe.em(this.parseInline(qe.tokens,pe));break}case"codespan":{oe+=pe.codespan(qe.text);break}case"br":{oe+=pe.br();break}case"del":{oe+=pe.del(this.parseInline(qe.tokens,pe));break}case"text":{oe+=pe.text(qe.text);break}default:{var Kt='Token with "'+qe.type+'" type was not found.';if(this.options.silent){console.error(Kt);return}else throw new Error(Kt)}}}return oe},Qt}(),nt=j.merge,Ct=j.checkSanitizeDeprecation,pt=j.escape,He=d.getDefaults,nr=d.changeDefaults,ht=d.defaults;function Gt(Qt,Ht,Jt){if(typeof Qt=="undefined"||Qt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Qt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Qt)+", string expected");if(typeof Ht=="function"&&(Jt=Ht,Ht=null),Ht=nt({},Gt.defaults,Ht||{}),Ct(Ht),Jt){var Ge=Ht.highlight,pe;try{pe=J.lex(Qt,Ht)}catch(me){return Jt(me)}var oe=function(Kt){var vr;if(!Kt)try{vr=ke.parse(pe,Ht)}catch(bt){Kt=bt}return Ht.highlight=Ge,Kt?Jt(Kt):Jt(null,vr)};if(!Ge||Ge.length<3)return oe();if(delete Ht.highlight,!pe.length)return oe();var ct=0;Gt.walkTokens(pe,function(me){me.type==="code"&&(ct++,setTimeout(function(){Ge(me.text,me.lang,function(Kt,vr){if(Kt)return oe(Kt);vr!=null&&vr!==me.text&&(me.text=vr,me.escaped=!0),ct--,ct===0&&oe()})},0))}),ct===0&&oe();return}try{var qe=J.lex(Qt,Ht);return Ht.walkTokens&&Gt.walkTokens(qe,Ht.walkTokens),ke.parse(qe,Ht)}catch(me){if(me.message+=`
Please report this to https://github.com/markedjs/marked.`,Ht.silent)return"<p>An error occurred:</p><pre>"+pt(me.message+"",!0)+"</pre>";throw me}}Gt.options=Gt.setOptions=function(Qt){return nt(Gt.defaults,Qt),nr(Gt.defaults),Gt},Gt.getDefaults=He,Gt.defaults=ht,Gt.use=function(Qt){var Ht=nt({},Qt);if(Qt.renderer&&function(){var Ge=Gt.defaults.renderer||new be,pe=function(qe){var me=Ge[qe];Ge[qe]=function(){for(var Kt=arguments.length,vr=new Array(Kt),bt=0;bt<Kt;bt++)vr[bt]=arguments[bt];var or=Qt.renderer[qe].apply(Ge,vr);return or===!1&&(or=me.apply(Ge,vr)),or}};for(var oe in Qt.renderer)pe(oe);Ht.renderer=Ge}(),Qt.tokenizer&&function(){var Ge=Gt.defaults.tokenizer||new se,pe=function(qe){var me=Ge[qe];Ge[qe]=function(){for(var Kt=arguments.length,vr=new Array(Kt),bt=0;bt<Kt;bt++)vr[bt]=arguments[bt];var or=Qt.tokenizer[qe].apply(Ge,vr);return or===!1&&(or=me.apply(Ge,vr)),or}};for(var oe in Qt.tokenizer)pe(oe);Ht.tokenizer=Ge}(),Qt.walkTokens){var Jt=Gt.defaults.walkTokens;Ht.walkTokens=function(Ge){Qt.walkTokens(Ge),Jt&&Jt(Ge)}}Gt.setOptions(Ht)},Gt.walkTokens=function(Qt,Ht){for(var Jt=p(Qt),Ge;!(Ge=Jt()).done;){var pe=Ge.value;Ht(pe);switch(pe.type){case"table":{for(var oe=p(pe.tokens.header),ct;!(ct=oe()).done;){var qe=ct.value;Gt.walkTokens(qe,Ht)}for(var me=p(pe.tokens.cells),Kt;!(Kt=me()).done;)for(var vr=Kt.value,bt=p(vr),or;!(or=bt()).done;){var _t=or.value;Gt.walkTokens(_t,Ht)}break}case"list":{Gt.walkTokens(pe.items,Ht);break}default:pe.tokens&&Gt.walkTokens(pe.tokens,Ht)}}},Gt.Parser=ke,Gt.parser=ke.parse,Gt.Renderer=be,Gt.TextRenderer=Te,Gt.Lexer=J,Gt.lexer=J.lex,Gt.Tokenizer=se,Gt.Slugger=Be,Gt.parse=Gt;var pr=Gt;return pr})},"DlR+":function(R,D,n){var y=n("MFOe"),g=y.Global,S=y.trim;R.exports={name:"cookieStorage",read:p,write:d,each:f,remove:l,clearAll:a};var m=g.document;function p(t){if(!t||!i(t))return null;var o="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(m.cookie.replace(new RegExp(o),"$1"))}function f(t){for(var o=m.cookie.split(/; ?/g),e=o.length-1;e>=0;e--){if(!S(o[e]))continue;var u=o[e].split("="),r=unescape(u[0]),s=unescape(u[1]);t(s,r)}}function d(t,o){if(!t)return;m.cookie=escape(t)+"="+escape(o)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function l(t){if(!t||!i(t))return;m.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function a(){f(function(t,o){l(o)})}function i(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(m.cookie)}},Ducp:function(R,D,n){var y=n("bYtY"),g=n("IwbS"),S=n("+TT/"),m=n("XpcN"),p=g.Group,f=["width","height"],d=["x","y"],l=m.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){l.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new p),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new p),this._showController},resetInner:function(){l.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(i,t,o,e,u,r,s){var c=this;l.superCall(this,"renderInner",i,t,o,e,u,r,s);var h=this._controllerGroup,v=t.get("pageIconSize",!0);y.isArray(v)||(v=[v,v]),b("pagePrev",0);var A=t.getModel("pageTextStyle");h.add(new g.Text({name:"pageText",style:{textFill:A.getTextColor(),font:A.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),b("pageNext",1);function b(x,E){var T=x+"DataIndex",_=g.createIcon(t.get("pageIcons",!0)[t.getOrient().name][E],{onclick:y.bind(c._pageGo,c,T,t,e)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});_.name=x,h.add(_)}},layoutInner:function(i,t,o,e,u,r){var s=this.getSelectorGroup(),c=i.getOrient().index,h=f[c],v=d[c],A=f[1-c],b=d[1-c];u&&S.box("horizontal",s,i.get("selectorItemGap",!0));var x=i.get("selectorButtonGap",!0),E=s.getBoundingRect(),T=[-E.x,-E.y],_=y.clone(o);u&&(_[h]=o[h]-E[h]-x);var C=this._layoutContentAndController(i,e,_,c,h,A,b);if(u){if(r==="end")T[c]+=C[h]+x;else{var w=E[h]+x;T[c]-=w,C[v]-=w}C[h]+=E[h]+x,T[1-c]+=C[b]+C[A]/2-E[A]/2,C[A]=Math.max(C[A],E[A]),C[b]=Math.min(C[b],E[b]+T[1-c]),s.attr("position",T)}return C},_layoutContentAndController:function(i,t,o,e,u,r,s){var c=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;S.box(i.get("orient"),c,i.get("itemGap"),e?o.width:null,e?null:o.height),S.box("horizontal",v,i.get("pageButtonItemGap",!0));var A=c.getBoundingRect(),b=v.getBoundingRect(),x=this._showController=A[u]>o[u],E=[-A.x,-A.y];t||(E[e]=c.position[e]);var T=[0,0],_=[-b.x,-b.y],C=y.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));if(x){var w=i.get("pageButtonPosition",!0);w==="end"?_[e]+=o[u]-b[u]:T[e]+=b[u]+C}_[1-e]+=A[r]/2-b[r]/2,c.attr("position",E),h.attr("position",T),v.attr("position",_);var O={x:0,y:0};if(O[u]=x?o[u]:A[u],O[r]=Math.max(A[r],b[r]),O[s]=Math.min(0,b[s]+_[1-e]),h.__rectSize=o[u],x){var I={x:0,y:0};I[u]=Math.max(o[u]-b[u]-C,0),I[r]=O[r],h.setClipPath(new g.Rect({shape:I})),h.__rectSize=I[u]}else v.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var k=this._getPageInfo(i);return k.pageIndex!=null&&g.updateProps(c,{position:k.contentPosition},x?i:!1),this._updatePageInfoView(i,k),O},_pageGo:function(i,t,o){var e=this._getPageInfo(t)[i];e!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:t.id})},_updatePageInfoView:function(i,t){var o=this._controllerGroup;y.each(["pagePrev","pageNext"],function(h){var v=t[h+"DataIndex"]!=null,A=o.childOfName(h);A&&(A.setStyle("fill",v?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),A.cursor=v?"pointer":"default")});var e=o.childOfName("pageText"),u=i.get("pageFormatter"),r=t.pageIndex,s=r!=null?r+1:0,c=t.pageCount;e&&u&&e.setStyle("text",y.isString(u)?u.replace("{current}",s).replace("{total}",c):u({current:s,total:c}))},_getPageInfo:function(i){var t=i.get("scrollDataIndex",!0),o=this.getContentGroup(),e=this._containerGroup.__rectSize,u=i.getOrient().index,r=f[u],s=d[u],c=this._findTargetItemIndex(t),h=o.children(),v=h[c],A=h.length,b=A?1:0,x={contentPosition:o.position.slice(),pageCount:b,pageIndex:b-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return x;var E=O(v);x.contentPosition[u]=-E.s;for(var T=c+1,_=E,C=E,w=null;T<=A;++T)w=O(h[T]),(!w&&C.e>_.s+e||w&&!I(w,_.s))&&(C.i>_.i?_=C:_=w,_&&(x.pageNextDataIndex==null&&(x.pageNextDataIndex=_.i),++x.pageCount)),C=w;for(var T=c-1,_=E,C=E,w=null;T>=-1;--T)w=O(h[T]),(!w||!I(C,w.s))&&_.i<C.i&&(C=_,x.pagePrevDataIndex==null&&(x.pagePrevDataIndex=_.i),++x.pageCount,++x.pageIndex),_=w;return x;function O(k){if(k){var M=k.getBoundingRect(),U=M[s]+k.position[u];return{s:U,e:U+M[r],i:k.__legendDataIndex}}}function I(k,M){return k.e>=M&&k.s<=M+e}},_findTargetItemIndex:function(i){if(!this._showController)return 0;var t,o=this.getContentGroup(),e;return o.eachChild(function(u,r){var s=u.__legendDataIndex;e==null&&s!=null&&(e=r),s===i&&(t=r)}),t!=null?t:e}}),a=l;R.exports=a},"E/ki":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},E2g8:function(R,D,n){(function(y,g){/*!
* @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(S,m){R.exports=m()})(this,function(){"use strict";function S(be){var Te=typeof be;return be!==null&&(Te==="object"||Te==="function")}function m(be){return typeof be=="function"}var p=void 0;Array.isArray?p=Array.isArray:p=function(Te){return Object.prototype.toString.call(Te)==="[object Array]"};var f=p,d=0,l=void 0,a=void 0,i=function(Te,Be){E[d]=Te,E[d+1]=Be,d+=2,d===2&&(a?a(T):C())};function t(be){a=be}function o(be){i=be}var e=typeof window!="undefined"?window:void 0,u=e||{},r=u.MutationObserver||u.WebKitMutationObserver,s=typeof self=="undefined"&&typeof y!="undefined"&&{}.toString.call(y)==="[object process]",c=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function h(){return function(){return y.nextTick(T)}}function v(){return typeof l!="undefined"?function(){l(T)}:x()}function A(){var be=0,Te=new r(T),Be=document.createTextNode("");return Te.observe(Be,{characterData:!0}),function(){Be.data=be=++be%2}}function b(){var be=new MessageChannel;return be.port1.onmessage=T,function(){return be.port2.postMessage(0)}}function x(){var be=setTimeout;return function(){return be(T,1)}}var E=new Array(1e3);function T(){for(var be=0;be<d;be+=2){var Te=E[be],Be=E[be+1];Te(Be),E[be]=void 0,E[be+1]=void 0}d=0}function _(){try{var be=Function("return this")().require("vertx");return l=be.runOnLoop||be.runOnContext,v()}catch(Te){return x()}}var C=void 0;s?C=h():r?C=A():c?C=b():e===void 0&&!0?C=_():C=x();function w(be,Te){var Be=this,fe=new this.constructor(k);fe[I]===void 0&&Ve(fe);var xe=Be._state;if(xe){var ke=arguments[xe-1];i(function(){return we(xe,fe,ke,Be._result)})}else se(Be,fe,be,Te);return fe}function O(be){var Te=this;if(be&&typeof be=="object"&&be.constructor===Te)return be;var Be=new Te(k);return Q(Be,be),Be}var I=Math.random().toString(36).substring(2);function k(){}var M=void 0,U=1,P=2;function X(){return new TypeError("You cannot resolve a promise with itself")}function F(){return new TypeError("A promises callback cannot return that same promise.")}function j(be,Te,Be,fe){try{be.call(Te,Be,fe)}catch(xe){return xe}}function K(be,Te,Be){i(function(fe){var xe=!1,ke=j(Be,Te,function(nt){if(xe)return;xe=!0,Te!==nt?Q(fe,nt):te(fe,nt)},function(nt){if(xe)return;xe=!0,q(fe,nt)},"Settle: "+(fe._label||" unknown promise"));!xe&&ke&&(xe=!0,q(fe,ke))},be)}function z(be,Te){Te._state===U?te(be,Te._result):Te._state===P?q(be,Te._result):se(Te,void 0,function(Be){return Q(be,Be)},function(Be){return q(be,Be)})}function V(be,Te,Be){Te.constructor===be.constructor&&Be===w&&Te.constructor.resolve===O?z(be,Te):Be===void 0?te(be,Te):m(Be)?K(be,Te,Be):te(be,Te)}function Q(be,Te){if(be===Te)q(be,X());else if(S(Te)){var Be=void 0;try{Be=Te.then}catch(fe){q(be,fe);return}V(be,Te,Be)}else te(be,Te)}function G(be){be._onerror&&be._onerror(be._result),re(be)}function te(be,Te){if(be._state!==M)return;be._result=Te,be._state=U,be._subscribers.length!==0&&i(re,be)}function q(be,Te){if(be._state!==M)return;be._state=P,be._result=Te,i(G,be)}function se(be,Te,Be,fe){var xe=be._subscribers,ke=xe.length;be._onerror=null,xe[ke]=Te,xe[ke+U]=Be,xe[ke+P]=fe,ke===0&&be._state&&i(re,be)}function re(be){var Te=be._subscribers,Be=be._state;if(Te.length===0)return;for(var fe=void 0,xe=void 0,ke=be._result,nt=0;nt<Te.length;nt+=3)fe=Te[nt],xe=Te[nt+Be],fe?we(Be,fe,xe,ke):xe(ke);be._subscribers.length=0}function we(be,Te,Be,fe){var xe=m(Be),ke=void 0,nt=void 0,Ct=!0;if(xe){try{ke=Be(fe)}catch(pt){Ct=!1,nt=pt}if(Te===ke){q(Te,F());return}}else ke=fe;Te._state!==M||(xe&&Ct?Q(Te,ke):Ct===!1?q(Te,nt):be===U?te(Te,ke):be===P&&q(Te,ke))}function Oe(be,Te){try{Te(function(fe){Q(be,fe)},function(fe){q(be,fe)})}catch(Be){q(be,Be)}}var Me=0;function Qe(){return Me++}function Ve(be){be[I]=Me++,be._state=void 0,be._result=void 0,be._subscribers=[]}function dt(){return new Error("Array Methods must be provided an Array")}var Fe=function(){function be(Te,Be){this._instanceConstructor=Te,this.promise=new Te(k),this.promise[I]||Ve(this.promise),f(Be)?(this.length=Be.length,this._remaining=Be.length,this._result=new Array(this.length),this.length===0?te(this.promise,this._result):(this.length=this.length||0,this._enumerate(Be),this._remaining===0&&te(this.promise,this._result))):q(this.promise,dt())}return be.prototype._enumerate=function(Be){for(var fe=0;this._state===M&&fe<Be.length;fe++)this._eachEntry(Be[fe],fe)},be.prototype._eachEntry=function(Be,fe){var xe=this._instanceConstructor,ke=xe.resolve;if(ke===O){var nt=void 0,Ct=void 0,pt=!1;try{nt=Be.then}catch(nr){pt=!0,Ct=nr}if(nt===w&&Be._state!==M)this._settledAt(Be._state,fe,Be._result);else if(typeof nt!="function")this._remaining--,this._result[fe]=Be;else if(xe===$){var He=new xe(k);pt?q(He,Ct):V(He,Be,nt),this._willSettleAt(He,fe)}else this._willSettleAt(new xe(function(nr){return nr(Be)}),fe)}else this._willSettleAt(ke(Be),fe)},be.prototype._settledAt=function(Be,fe,xe){var ke=this.promise;ke._state===M&&(this._remaining--,Be===P?q(ke,xe):this._result[fe]=xe),this._remaining===0&&te(ke,this._result)},be.prototype._willSettleAt=function(Be,fe){var xe=this;se(Be,void 0,function(ke){return xe._settledAt(U,fe,ke)},function(ke){return xe._settledAt(P,fe,ke)})},be}();function ue(be){return new Fe(this,be).promise}function et(be){var Te=this;return f(be)?new Te(function(Be,fe){for(var xe=be.length,ke=0;ke<xe;ke++)Te.resolve(be[ke]).then(Be,fe)}):new Te(function(Be,fe){return fe(new TypeError("You must pass an array to race."))})}function he(be){var Te=this,Be=new Te(k);return q(Be,be),Be}function J(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Y(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var $=function(){function be(Te){this[I]=Qe(),this._result=this._state=void 0,this._subscribers=[],k!==Te&&(typeof Te!="function"&&J(),this instanceof be?Oe(this,Te):Y())}return be.prototype.catch=function(Be){return this.then(null,Be)},be.prototype.finally=function(Be){var fe=this,xe=fe.constructor;return m(Be)?fe.then(function(ke){return xe.resolve(Be()).then(function(){return ke})},function(ke){return xe.resolve(Be()).then(function(){throw ke})}):fe.then(Be,Be)},be}();$.prototype.then=w,$.all=ue,$.race=et,$.resolve=O,$.reject=he,$._setScheduler=t,$._setAsap=o,$._asap=i;function de(){var be=void 0;if(typeof g!="undefined")be=g;else if(typeof self!="undefined")be=self;else try{be=Function("return this")()}catch(fe){throw new Error("polyfill failed because global object is unavailable in this environment")}var Te=be.Promise;if(Te){var Be=null;try{Be=Object.prototype.toString.call(Te.resolve())}catch(fe){}if(Be==="[object Promise]"&&!Te.cast)return}be.Promise=$}return $.polyfill=de,$.Promise=$,$})}).call(this,n("Q2Ig"),n("yLpj"))},E2jh:function(R,D,n){var y=n("2gN3"),g=function(){var m=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}();function S(m){return!!g&&g in m}R.exports=S},E4JC:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.StreamCipher,p=g.algo,f=[],d=[],l=[],a=p.Rabbit=m.extend({_doReset:function(){for(var o=this._key.words,e=this.cfg.iv,u=0;u<4;u++)o[u]=(o[u]<<8|o[u]>>>24)&16711935|(o[u]<<24|o[u]>>>8)&4278255360;var r=this._X=[o[0],o[3]<<16|o[2]>>>16,o[1],o[0]<<16|o[3]>>>16,o[2],o[1]<<16|o[0]>>>16,o[3],o[2]<<16|o[1]>>>16],s=this._C=[o[2]<<16|o[2]>>>16,o[0]&4294901760|o[1]&65535,o[3]<<16|o[3]>>>16,o[1]&4294901760|o[2]&65535,o[0]<<16|o[0]>>>16,o[2]&4294901760|o[3]&65535,o[1]<<16|o[1]>>>16,o[3]&4294901760|o[0]&65535];this._b=0;for(var u=0;u<4;u++)i.call(this);for(var u=0;u<8;u++)s[u]^=r[u+4&7];if(e){var c=e.words,h=c[0],v=c[1],A=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,x=A>>>16|b&4294901760,E=b<<16|A&65535;s[0]^=A,s[1]^=x,s[2]^=b,s[3]^=E,s[4]^=A,s[5]^=x,s[6]^=b,s[7]^=E;for(var u=0;u<4;u++)i.call(this)}},_doProcessBlock:function(o,e){var u=this._X;i.call(this),f[0]=u[0]^u[5]>>>16^u[3]<<16,f[1]=u[2]^u[7]>>>16^u[5]<<16,f[2]=u[4]^u[1]>>>16^u[7]<<16,f[3]=u[6]^u[3]>>>16^u[1]<<16;for(var r=0;r<4;r++)f[r]=(f[r]<<8|f[r]>>>24)&16711935|(f[r]<<24|f[r]>>>8)&4278255360,o[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,o=this._C,e=0;e<8;e++)d[e]=o[e];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0<d[0]>>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0<d[1]>>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0<d[2]>>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0<d[3]>>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0<d[4]>>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0<d[5]>>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0<d[6]>>>0?1:0)|0,this._b=o[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var u=t[e]+o[e],r=u&65535,s=u>>>16,c=((r*r>>>17)+r*s>>>15)+s*s,h=((u&4294901760)*u|0)+((u&65535)*u|0);l[e]=c^h}t[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,t[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,t[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,t[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,t[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,t[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,t[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,t[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}g.Rabbit=m._createHelper(a)}(),y.Rabbit})},E9nw:function(R,D){R.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var y=document.activeElement,g=[],S=0;S<n.rangeCount;S++)g.push(n.getRangeAt(S));switch(y.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":y.blur();break;default:y=null;break}return n.removeAllRanges(),function(){n.type==="Caret"&&n.removeAllRanges(),n.rangeCount||g.forEach(function(m){n.addRange(m)}),y&&y.focus()}}},ELLl:function(R,D,n){(function(y){y(n("VrN/"))})(function(y){var g={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},S=y.Pos;y.defineOption("autoCloseBrackets",!1,function(r,s,c){c&&c!=y.Init&&(r.removeKeyMap(p),r.state.closeBrackets=null),s&&(f(m(s,"pairs")),r.state.closeBrackets=s,r.addKeyMap(p))});function m(r,s){return s=="pairs"&&typeof r=="string"?r:typeof r=="object"&&r[s]!=null?r[s]:g[s]}var p={Backspace:a,Enter:i};function f(r){for(var s=0;s<r.length;s++){var c=r.charAt(s),h="'"+c+"'";p[h]||(p[h]=d(c))}}f(g.pairs+"`");function d(r){return function(s){return o(s,r)}}function l(r){var s=r.state.closeBrackets;if(!s||s.override)return s;var c=r.getModeAt(r.getCursor());return c.closeBrackets||s}function a(r){var s=l(r);if(!s||r.getOption("disableInput"))return y.Pass;for(var c=m(s,"pairs"),h=r.listSelections(),v=0;v<h.length;v++){if(!h[v].empty())return y.Pass;var A=e(r,h[v].head);if(!A||c.indexOf(A)%2!=0)return y.Pass}for(var v=h.length-1;v>=0;v--){var b=h[v].head;r.replaceRange("",S(b.line,b.ch-1),S(b.line,b.ch+1),"+delete")}}function i(r){var s=l(r),c=s&&m(s,"explode");if(!c||r.getOption("disableInput"))return y.Pass;for(var h=r.listSelections(),v=0;v<h.length;v++){if(!h[v].empty())return y.Pass;var A=e(r,h[v].head);if(!A||c.indexOf(A)%2!=0)return y.Pass}r.operation(function(){var b=r.lineSeparator()||`
`;r.replaceSelection(b+b,null),r.execCommand("goCharLeft"),h=r.listSelections();for(var x=0;x<h.length;x++){var E=h[x].head.line;r.indentLine(E,null,!0),r.indentLine(E+1,null,!0)}})}function t(r){var s=y.cmpPos(r.anchor,r.head)>0;return{anchor:new S(r.anchor.line,r.anchor.ch+(s?-1:1)),head:new S(r.head.line,r.head.ch+(s?1:-1))}}function o(r,s){var c=l(r);if(!c||r.getOption("disableInput"))return y.Pass;var h=m(c,"pairs"),v=h.indexOf(s);if(v==-1)return y.Pass;for(var A=m(c,"closeBefore"),b=m(c,"triples"),x=h.charAt(v+1)==s,E=r.listSelections(),T=v%2==0,_,C=0;C<E.length;C++){var w=E[C],O=w.head,I,k=r.getRange(O,S(O.line,O.ch+1));if(T&&!w.empty())I="surround";else if((x||!T)&&k==s)x&&u(r,O)?I="both":b.indexOf(s)>=0&&r.getRange(O,S(O.line,O.ch+3))==s+s+s?I="skipThree":I="skip";else if(x&&O.ch>1&&b.indexOf(s)>=0&&r.getRange(S(O.line,O.ch-2),O)==s+s){if(O.ch>2&&/\bstring/.test(r.getTokenTypeAt(S(O.line,O.ch-2))))return y.Pass;I="addFour"}else if(x){var M=O.ch==0?" ":r.getRange(S(O.line,O.ch-1),O);if(!y.isWordChar(k)&&M!=s&&!y.isWordChar(M))I="both";else return y.Pass}else if(T&&(k.length===0||/\s/.test(k)||A.indexOf(k)>-1))I="both";else return y.Pass;if(!_)_=I;else if(_!=I)return y.Pass}var U=v%2?h.charAt(v-1):s,P=v%2?s:h.charAt(v+1);r.operation(function(){if(_=="skip")r.execCommand("goCharRight");else if(_=="skipThree")for(var X=0;X<3;X++)r.execCommand("goCharRight");else if(_=="surround"){for(var F=r.getSelections(),X=0;X<F.length;X++)F[X]=U+F[X]+P;r.replaceSelections(F,"around"),F=r.listSelections().slice();for(var X=0;X<F.length;X++)F[X]=t(F[X]);r.setSelections(F)}else _=="both"?(r.replaceSelection(U+P,null),r.triggerElectric(U+P),r.execCommand("goCharLeft")):_=="addFour"&&(r.replaceSelection(U+U+U+U,"before"),r.execCommand("goCharRight"))})}function e(r,s){var c=r.getRange(S(s.line,s.ch-1),S(s.line,s.ch+1));return c.length==2?c:null}function u(r,s){var c=r.getTokenAt(S(s.line,s.ch+1));return/\bstring/.test(c.type)&&c.start==s.ch&&(s.ch==0||!/\bstring/.test(r.getTokenTypeAt(s)))}})},ELcG:function(R,D,n){(function(y,g){R.exports=D=g(n("Ib8C"))})(this,function(y){/** @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(g){var S=y,m=S.lib,p=m.WordArray,f=m.Hasher,d=S.algo,l=p.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=p.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]),i=p.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]),t=p.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]),o=p.create([0,1518500249,1859775393,2400959708,2840853838]),e=p.create([1352829926,1548603684,1836072691,2053994217,0]),u=d.RIPEMD160=f.extend({_doReset:function(){this._hash=p.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,E){for(var T=0;T<16;T++){var _=E+T,C=x[_];x[_]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var w=this._hash.words,O=o.words,I=e.words,k=l.words,M=a.words,U=i.words,P=t.words,X,F,j,K,z,V,Q,G,te,q;V=X=w[0],Q=F=w[1],G=j=w[2],te=K=w[3],q=z=w[4];for(var se,T=0;T<80;T+=1)se=X+x[E+k[T]]|0,T<16?se+=r(F,j,K)+O[0]:T<32?se+=s(F,j,K)+O[1]:T<48?se+=c(F,j,K)+O[2]:T<64?se+=h(F,j,K)+O[3]:se+=v(F,j,K)+O[4],se=se|0,se=A(se,U[T]),se=se+z|0,X=z,z=K,K=A(j,10),j=F,F=se,se=V+x[E+M[T]]|0,T<16?se+=v(Q,G,te)+I[0]:T<32?se+=h(Q,G,te)+I[1]:T<48?se+=c(Q,G,te)+I[2]:T<64?se+=s(Q,G,te)+I[3]:se+=r(Q,G,te)+I[4],se=se|0,se=A(se,P[T]),se=se+q|0,V=q,q=te,te=A(G,10),G=Q,Q=se;se=w[1]+j+te|0,w[1]=w[2]+K+q|0,w[2]=w[3]+z+V|0,w[3]=w[4]+X+Q|0,w[4]=w[0]+F+G|0,w[0]=se},_doFinalize:function(){var x=this._data,E=x.words,T=this._nDataBytes*8,_=x.sigBytes*8;E[_>>>5]|=128<<24-_%32,E[(_+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,x.sigBytes=(E.length+1)*4,this._process();for(var C=this._hash,w=C.words,O=0;O<5;O++){var I=w[O];w[O]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return C},clone:function(){var x=f.clone.call(this);return x._hash=this._hash.clone(),x}});function r(b,x,E){return b^x^E}function s(b,x,E){return b&x|~b&E}function c(b,x,E){return(b|~x)^E}function h(b,x,E){return b&E|x&~E}function v(b,x,E){return b^(x|~E)}function A(b,x){return b<<x|b>>>32-x}S.RIPEMD160=f._createHelper(u),S.HmacRIPEMD160=f._createHmacHelper(u)}(Math),y.RIPEMD160})},EMyp:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("mFDi"),m=n("K4ya"),p=n("qJCg"),f=n("iLNv"),d=n("vZ6x"),l=["inBrush","outOfBrush"],a="__ecBrushSelect",i="__ecInBrushSelectEvent",t=y.PRIORITY.VISUAL.BRUSH;y.registerLayout(t,function(b,x,E){b.eachComponent({mainType:"brush"},function(T){E&&E.type==="takeGlobalCursor"&&T.setBrushOption(E.key==="brush"?E.brushOption:{brushType:!1})}),o(b)});function o(b){b.eachComponent({mainType:"brush"},function(x){var E=x.brushTargetManager=new d(x.option,b);E.setInputRanges(x.areas,b)})}y.registerVisual(t,function(b,x,E){var T=[],_,C;b.eachComponent({mainType:"brush"},function(w,O){var I={brushId:w.id,brushIndex:O,brushName:w.name,areas:g.clone(w.areas),selected:[]};T.push(I);var k=w.option,M=k.brushLink,U=[],P=[],X=[],F=0;O||(_=k.throttleType,C=k.throttleDelay);var j=g.map(w.areas,function(te){return h(g.defaults({boundingRect:v[te.brushType](te)},te))}),K=m.createVisualMappings(w.option,l,function(te){te.mappingMethod="fixed"});g.isArray(M)&&g.each(M,function(te){U[te]=1});function z(te){return M==="all"||U[te]}function V(te){return!!te.length}b.eachSeries(function(te,q){var se=X[q]=[];te.subType==="parallel"?Q(te,q,se):G(te,q,se)});function Q(te,q){var se=te.coordinateSystem;F|=se.hasAxisBrushed(),z(q)&&se.eachActiveState(te.getData(),function(re,we){re==="active"&&(P[we]=1)})}function G(te,q,se){var re=s(te);if(!re||c(w,q))return;if(g.each(j,function(Oe){re[Oe.brushType]&&w.brushTargetManager.controlSeries(Oe,te,b)&&se.push(Oe),F|=V(se)}),z(q)&&V(se)){var we=te.getData();we.each(function(Oe){r(re,se,we,Oe)&&(P[Oe]=1)})}}b.eachSeries(function(te,q){var se={seriesId:te.id,seriesIndex:q,seriesName:te.name,dataIndex:[]};I.selected.push(se);var re=s(te),we=X[q],Oe=te.getData(),Me=z(q)?function(Qe){return P[Qe]?(se.dataIndex.push(Oe.getRawIndex(Qe)),"inBrush"):"outOfBrush"}:function(Qe){return r(re,we,Oe,Qe)?(se.dataIndex.push(Oe.getRawIndex(Qe)),"inBrush"):"outOfBrush"};(z(q)?F:V(we))&&m.applyVisual(l,K,Oe,Me)})}),e(x,_,C,T,E)});function e(b,x,E,T,_){if(!_)return;var C=b.getZr();if(C[i])return;C[a]||(C[a]=u);var w=f.createOrUpdate(C,a,E,x);w(b,T)}function u(b,x){if(!b.isDisposed()){var E=b.getZr();E[i]=!0,b.dispatchAction({type:"brushSelect",batch:x}),E[i]=!1}}function r(b,x,E,T){for(var _=0,C=x.length;_<C;_++){var w=x[_];if(b[w.brushType](T,E,w.selectors,w))return!0}}function s(b){var x=b.brushSelector;if(g.isString(x)){var E=[];return g.each(p,function(_,C){E[C]=function(w,O,I,k){var M=O.getItemLayout(w);return _[x](M,I,k)}}),E}else if(g.isFunction(x)){var T={};return g.each(p,function(_,C){T[C]=x}),T}return x}function c(b,x){var E=b.option.seriesIndex;return E!=null&&E!=="all"&&(g.isArray(E)?g.indexOf(E,x)<0:x!==E)}function h(b){var x=b.selectors={};return g.each(p[b.brushType],function(E,T){x[T]=function(_){return E(_,x,b)}}),b}var v={lineX:g.noop,lineY:g.noop,rect:function(b){return A(b.range)},polygon:function(b){for(var x,E=b.range,T=0,_=E.length;T<_;T++){x=x||[[Infinity,-Infinity],[Infinity,-Infinity]];var C=E[T];C[0]<x[0][0]&&(x[0][0]=C[0]),C[0]>x[0][1]&&(x[0][1]=C[0]),C[1]<x[1][0]&&(x[1][0]=C[1]),C[1]>x[1][1]&&(x[1][1]=C[1])}return x&&A(x)}};function A(b){return new S(b[0][0],b[1][0],b[0][1]-b[0][0],b[1][1]-b[1][0])}D.layoutCovers=o},ERHi:function(R,D,n){var y=n("ProS");n("Z6js"),n("R4Th");var g=n("f5Yq"),S=n("h8O9");y.registerVisual(g("effectScatter","circle")),y.registerLayout(S("effectScatter"))},ETIr:function(R,D,n){(function(y,g){R.exports=D=g(n("Ib8C"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.WordArray,p=g.enc,f=p.Base64={stringify:function(a){var i=a.words,t=a.sigBytes,o=this._map;a.clamp();for(var e=[],u=0;u<t;u+=3)for(var r=i[u>>>2]>>>24-u%4*8&255,s=i[u+1>>>2]>>>24-(u+1)%4*8&255,c=i[u+2>>>2]>>>24-(u+2)%4*8&255,h=r<<16|s<<8|c,v=0;v<4&&u+v*.75<t;v++)e.push(o.charAt(h>>>6*(3-v)&63));var A=o.charAt(64);if(A)for(;e.length%4;)e.push(A);return e.join("")},parse:function(a){var i=a.length,t=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var e=0;e<t.length;e++)o[t.charCodeAt(e)]=e}var u=t.charAt(64);if(u){var r=a.indexOf(u);r!==-1&&(i=r)}return d(a,i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(l,a,i){for(var t=[],o=0,e=0;e<a;e++)if(e%4){var u=i[l.charCodeAt(e-1)]<<e%4*2,r=i[l.charCodeAt(e)]>>>6-e%4*2,s=u|r;t[o>>>2]|=s<<24-o%4*8,o++}return m.create(t,o)}}(),y.enc.Base64})},EXcs:function(R,D,n){"use strict";var y=function(){return{height:0,opacity:0}},g=function(d){return{height:d.scrollHeight,opacity:1}},S=function(d){return{height:d.offsetHeight}},m=function(d,l){return l.propertyName==="height"},p={motionName:"ant-motion-collapse",onAppearStart:y,onEnterStart:y,onAppearActive:g,onEnterActive:g,onLeaveStart:S,onLeaveActive:y,onAppearEnd:m,onEnterEnd:m,onLeaveEnd:m,motionDeadline:500};D.a=p},EpBk:function(R,D){function n(y){var g=typeof y;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?y!=="__proto__":y===null}R.exports=n},Ez2D:function(R,D,n){var y=n("bYtY"),g=n("4NO4");function S(m,p){var f=[],d=m.seriesIndex,l;if(d==null||!(l=p.getSeriesByIndex(d)))return{point:[]};var a=l.getData(),i=g.queryDataIndex(a,m);if(i==null||i<0||y.isArray(i))return{point:[]};var t=a.getItemGraphicEl(i),o=l.coordinateSystem;if(l.getTooltipPosition)f=l.getTooltipPosition(i)||[];else if(o&&o.dataToPoint)f=o.dataToPoint(a.getValues(y.map(o.dimensions,function(u){return a.mapDimension(u)}),i,!0))||[];else if(t){var e=t.getBoundingRect().clone();e.applyTransform(t.transform),f=[e.x+e.width/2,e.y+e.height/2]}return{point:f,el:t}}R.exports=S},"F+F2":function(R,D,n){(function(y,g){R.exports=D=g(n("Ib8C"))})(this,function(y){return function(){if(typeof ArrayBuffer!="function")return;var g=y,S=g.lib,m=S.WordArray,p=m.init,f=m.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var l=d.byteLength,a=[],i=0;i<l;i++)a[i>>>2]|=d[i]<<24-i%4*8;p.call(this,a,l)}else p.apply(this,arguments)};f.prototype=m}(),y.lib.WordArray})},F0hE:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("ca2m"),m=n("Qxkt"),p=n("ICMv"),f=S.valueAxis;function d(i,t){return g.defaults({show:t},i)}var l=y.extendComponentModel({type:"radar",optionUpdated:function(){var i=this.get("boundaryGap"),t=this.get("splitNumber"),o=this.get("scale"),e=this.get("axisLine"),u=this.get("axisTick"),r=this.get("axisType"),s=this.get("axisLabel"),c=this.get("name"),h=this.get("name.show"),v=this.get("name.formatter"),A=this.get("nameGap"),b=this.get("triggerEvent"),x=g.map(this.get("indicator")||[],function(E){E.max!=null&&E.max>0&&!E.min?E.min=0:E.min!=null&&E.min<0&&!E.max&&(E.max=0);var T=c;if(E.color!=null&&(T=g.defaults({color:E.color},c)),E=g.merge(g.clone(E),{boundaryGap:i,splitNumber:t,scale:o,axisLine:e,axisTick:u,axisType:r,axisLabel:s,name:E.text,nameLocation:"end",nameGap:A,nameTextStyle:T,triggerEvent:b},!1),h||(E.name=""),typeof v=="string"){var _=E.name;E.name=v.replace("{value}",_!=null?_:"")}else typeof v=="function"&&(E.name=v(E.name,E));var C=g.extend(new m(E,null,this.ecModel),p);return C.mainType="radar",C.componentIndex=this.componentIndex,C},this);this.getIndicatorModels=function(){return x}},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:g.merge({lineStyle:{color:"#bbb"}},f.axisLine),axisLabel:d(f.axisLabel,!1),axisTick:d(f.axisTick,!1),axisType:"interval",splitLine:d(f.splitLine,!0),splitArea:d(f.splitArea,!0),indicator:[]}}),a=l;R.exports=a},F5Ls:function(R,D){var n={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function y(g,S){if(g==="china"){var m=n[S.name];if(m){var p=S.center;p[0]+=m[0]/10.5,p[1]+=-m[1]/(10.5/.75)}}}R.exports=y},F7hV:function(R,D,n){var y=n("MBQ8"),g=y.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var S=this.get("progressiveThreshold"),m=this.get("largeThreshold");return m>S&&(S=m),S},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}}});R.exports=g},F9bG:function(R,D,n){var y=n("bYtY"),g=n("ItGF"),S=n("4NO4"),m=S.makeInner,p=m(),f=y.each;function d(u,r,s){if(g.node)return;var c=r.getZr();p(c).records||(p(c).records={}),l(c,r);var h=p(c).records[u]||(p(c).records[u]={});h.handler=s}function l(u,r){if(p(u).initialized)return;p(u).initialized=!0,s("click",y.curry(t,"click")),s("mousemove",y.curry(t,"mousemove")),s("globalout",i);function s(c,h){u.on(c,function(v){var A=o(r);f(p(u).records,function(b){b&&h(b,v,A.dispatchAction)}),a(A.pendings,r)})}}function a(u,r){var s=u.showTip.length,c=u.hideTip.length,h;s?h=u.showTip[s-1]:c&&(h=u.hideTip[c-1]),h&&(h.dispatchAction=null,r.dispatchAction(h))}function i(u,r,s){u.handler("leave",null,s)}function t(u,r,s,c){r.handler(u,s,c)}function o(u){var r={showTip:[],hideTip:[]},s=function(c){var h=r[c.type];h?h.push(c):(c.dispatchAction=s,u.dispatchAction(c))};return{dispatchAction:s,pendings:r}}function e(u,r){if(g.node)return;var s=r.getZr(),c=(p(s).records||{})[u];c&&(p(s).records[u]=null)}D.register=d,D.unregister=e},FBjb:function(R,D,n){var y=n("bYtY"),g=n("oVpE"),S=g.createSymbol,m=n("IwbS"),p=n("OELB"),f=p.parsePercent,d=n("x3X8"),l=d.getDefaultLabel;function a(A,b,x){m.Group.call(this),this.updateData(A,b,x)}var i=a.prototype,t=a.getSymbolSize=function(A,b){var x=A.getItemVisual(b,"symbolSize");return x instanceof Array?x.slice():[+x,+x]};function o(A){return[A[0]/2,A[1]/2]}function e(A,b){this.parent.drift(A,b)}i._createSymbol=function(A,b,x,E,T){this.removeAll();var _=b.getItemVisual(x,"color"),C=S(A,-1,-1,2,2,_,T);C.attr({z2:100,culling:!0,scale:o(E)}),C.drift=e,this._symbolType=A,this.add(C)},i.stopSymbolAnimation=function(A){this.childAt(0).stopAnimation(A)},i.getSymbolPath=function(){return this.childAt(0)},i.getScale=function(){return this.childAt(0).scale},i.highlight=function(){this.childAt(0).trigger("emphasis")},i.downplay=function(){this.childAt(0).trigger("normal")},i.setZ=function(A,b){var x=this.childAt(0);x.zlevel=A,x.z=b},i.setDraggable=function(A){var b=this.childAt(0);b.draggable=A,b.cursor=A?"move":b.cursor},i.updateData=function(A,b,x){this.silent=!1;var E=A.getItemVisual(b,"symbol")||"circle",T=A.hostModel,_=t(A,b),C=E!==this._symbolType;if(C){var w=A.getItemVisual(b,"symbolKeepAspect");this._createSymbol(E,A,b,_,w)}else{var O=this.childAt(0);O.silent=!1,m.updateProps(O,{scale:o(_)},T,b)}if(this._updateCommon(A,b,_,x),C){var O=this.childAt(0),I=x&&x.fadeIn,k={scale:O.scale.slice()};I&&(k.style={opacity:O.style.opacity}),O.scale=[0,0],I&&(O.style.opacity=0),m.initProps(O,k,T,b)}this._seriesModel=T};var u=["itemStyle"],r=["emphasis","itemStyle"],s=["label"],c=["emphasis","label"];i._updateCommon=function(A,b,x,E){var T=this.childAt(0),_=A.hostModel,C=A.getItemVisual(b,"color");T.type!=="image"?T.useStyle({strokeNoScale:!0}):T.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var w=E&&E.itemStyle,O=E&&E.hoverItemStyle,I=E&&E.symbolOffset,k=E&&E.labelModel,M=E&&E.hoverLabelModel,U=E&&E.hoverAnimation,P=E&&E.cursorStyle;if(!E||A.hasItemOption){var X=E&&E.itemModel?E.itemModel:A.getItemModel(b);w=X.getModel(u).getItemStyle(["color"]),O=X.getModel(r).getItemStyle(),I=X.getShallow("symbolOffset"),k=X.getModel(s),M=X.getModel(c),U=X.getShallow("hoverAnimation"),P=X.getShallow("cursor")}else O=y.extend({},O);var F=T.style,j=A.getItemVisual(b,"symbolRotate");T.attr("rotation",(j||0)*Math.PI/180||0),I&&T.attr("position",[f(I[0],x[0]),f(I[1],x[1])]),P&&T.attr("cursor",P),T.setColor(C,E&&E.symbolInnerColor),T.setStyle(w);var K=A.getItemVisual(b,"opacity");K!=null&&(F.opacity=K);var z=A.getItemVisual(b,"liftZ"),V=T.__z2Origin;z!=null?V==null&&(T.__z2Origin=T.z2,T.z2+=z):V!=null&&(T.z2=V,T.__z2Origin=null);var Q=E&&E.useNameLabel;m.setLabelStyle(F,O,k,M,{labelFetcher:_,labelDataIndex:b,defaultText:G,isRectText:!0,autoColor:C});function G(te,q){return Q?A.getName(te):l(A,te)}T.__symbolOriginalScale=o(x),T.hoverStyle=O,T.highDownOnUpdate=U&&_.isAnimationEnabled()?h:null,m.setHoverStyle(T)};function h(A,b){if(this.incremental||this.useHoverLayer)return;if(b==="emphasis"){var x=this.__symbolOriginalScale,E=x[1]/x[0],T={scale:[Math.max(x[0]*1.1,x[0]+3),Math.max(x[1]*1.1,x[1]+3*E)]};this.animateTo(T,400,"elasticOut")}else b==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}i.fadeOut=function(A,b){var x=this.childAt(0);this.silent=x.silent=!0,!(b&&b.keepLabel)&&(x.style.text=null),m.updateProps(x,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,A)},y.inherits(a,m.Group);var v=a;R.exports=v},FGaS:function(R,D,n){var y=n("ProS"),g=n("IwbS"),S=n("bYtY"),m=n("oVpE");function p(d){return S.isArray(d)||(d=[+d,+d]),d}var f=y.extendChartView({type:"radar",render:function(d,l,a){var i=d.coordinateSystem,t=this.group,o=d.getData(),e=this._data;function u(c,h){var v=c.getItemVisual(h,"symbol")||"circle",A=c.getItemVisual(h,"color");if(v==="none")return;var b=p(c.getItemVisual(h,"symbolSize")),x=m.createSymbol(v,-1,-1,2,2,A);return x.attr({style:{strokeNoScale:!0},z2:100,scale:[b[0]/2,b[1]/2]}),x}function r(c,h,v,A,b,x){v.removeAll();for(var E=0;E<h.length-1;E++){var T=u(A,b);T&&(T.__dimIdx=E,c[E]?(T.attr("position",c[E]),g[x?"initProps":"updateProps"](T,{position:h[E]},d,b)):T.attr("position",h[E]),v.add(T))}}function s(c){return S.map(c,function(h){return[i.cx,i.cy]})}o.diff(e).add(function(c){var h=o.getItemLayout(c);if(!h)return;var v=new g.Polygon,A=new g.Polyline,b={shape:{points:h}};v.shape.points=s(h),A.shape.points=s(h),g.initProps(v,b,d,c),g.initProps(A,b,d,c);var x=new g.Group,E=new g.Group;x.add(A),x.add(v),x.add(E),r(A.shape.points,h,E,o,c,!0),o.setItemGraphicEl(c,x)}).update(function(c,h){var v=e.getItemGraphicEl(h),A=v.childAt(0),b=v.childAt(1),x=v.childAt(2),E={shape:{points:o.getItemLayout(c)}};if(!E.shape.points)return;r(A.shape.points,E.shape.points,x,o,c,!1),g.updateProps(A,E,d),g.updateProps(b,E,d),o.setItemGraphicEl(c,v)}).remove(function(c){t.remove(e.getItemGraphicEl(c))}).execute(),o.eachItemGraphicEl(function(c,h){var v=o.getItemModel(h),A=c.childAt(0),b=c.childAt(1),x=c.childAt(2),E=o.getItemVisual(h,"color");t.add(c),A.useStyle(S.defaults(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:E})),A.hoverStyle=v.getModel("emphasis.lineStyle").getLineStyle();var T=v.getModel("areaStyle"),_=v.getModel("emphasis.areaStyle"),C=T.isEmpty()&&T.parentModel.isEmpty(),w=_.isEmpty()&&_.parentModel.isEmpty();w=w&&C,b.ignore=C,b.useStyle(S.defaults(T.getAreaStyle(),{fill:E,opacity:.7})),b.hoverStyle=_.getAreaStyle();var O=v.getModel("itemStyle").getItemStyle(["color"]),I=v.getModel("emphasis.itemStyle").getItemStyle(),k=v.getModel("label"),M=v.getModel("emphasis.label");x.eachChild(function(U){U.setStyle(O),U.hoverStyle=S.clone(I);var P=o.get(o.dimensions[U.__dimIdx],h);(P==null||isNaN(P))&&(P=""),g.setLabelStyle(U.style,U.hoverStyle,k,M,{labelFetcher:o.hostModel,labelDataIndex:h,labelDimIndex:U.__dimIdx,defaultText:P,autoColor:E,isRectText:!0})}),c.highDownOnUpdate=function(U,P){b.attr("ignore",P==="emphasis"?w:C)},g.setHoverStyle(c)}),this._data=o},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});R.exports=f},FH2Y:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("ZMnZ"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},FJo9:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("8txm"),m=n.n(S),p=n("MXD1")},FMes:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("/thR"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},FNN5:function(R,D,n){var y=n("bYtY"),g=n("IwbS"),S=n("+rIm"),m=n("Znkb"),p=["axisLine","axisTickLabel","axisName"],f=["splitLine","splitArea","minorSplitLine"],d=m.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(a,i){if(this.group.removeAll(),!a.get("show"))return;var t=a.axis,o=t.polar,e=o.getAngleAxis(),u=t.getTicksCoords(),r=t.getMinorTicksCoords(),s=e.getExtent()[0],c=t.getExtent(),h=l(o,a,s),v=new S(a,h);y.each(p,v.add,v),this.group.add(v.getGroup()),y.each(f,function(A){a.get(A+".show")&&!t.scale.isBlank()&&this["_"+A](a,o,s,c,u,r)},this)},_splitLine:function(a,i,t,o,e){var u=a.getModel("splitLine"),r=u.getModel("lineStyle"),s=r.get("color"),c=0;s=s instanceof Array?s:[s];for(var h=[],v=0;v<e.length;v++){var A=c++%s.length;h[A]=h[A]||[],h[A].push(new g.Circle({shape:{cx:i.cx,cy:i.cy,r:e[v].coord}}))}for(var v=0;v<h.length;v++)this.group.add(g.mergePath(h[v],{style:y.defaults({stroke:s[v%s.length],fill:null},r.getLineStyle()),silent:!0}))},_minorSplitLine:function(a,i,t,o,e,u){if(!u.length)return;for(var r=a.getModel("minorSplitLine"),s=r.getModel("lineStyle"),c=[],h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++)c.push(new g.Circle({shape:{cx:i.cx,cy:i.cy,r:u[h][v].coord}}));this.group.add(g.mergePath(c,{style:y.defaults({fill:null},s.getLineStyle()),silent:!0}))},_splitArea:function(a,i,t,o,e){if(!e.length)return;var u=a.getModel("splitArea"),r=u.getModel("areaStyle"),s=r.get("color"),c=0;s=s instanceof Array?s:[s];for(var h=[],v=e[0].coord,A=1;A<e.length;A++){var b=c++%s.length;h[b]=h[b]||[],h[b].push(new g.Sector({shape:{cx:i.cx,cy:i.cy,r0:v,r:e[A].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),v=e[A].coord}for(var A=0;A<h.length;A++)this.group.add(g.mergePath(h[A],{style:y.defaults({fill:s[A%s.length]},r.getAreaStyle()),silent:!0}))}});function l(a,i,t){return{position:[a.cx,a.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:i.getModel("axisLabel").get("rotate"),z2:1}}R.exports=d},FTAc:function(R,D,n){"use strict";n.d(D,"a",function(){return S});var y=n("q1tI"),g=n.n(y),S=y.createContext(null)},FUi9:function(R,D,n){var y=n("bYtY"),g=n("MwEJ"),S=n("aX7z"),m=n("ICMv"),p=n("Qxkt"),f=n("+TT/"),d=f.getLayoutRect;D.getLayoutRect=f.getLayoutRect;var l=n("7hqr"),a=l.enableDataStack,i=l.isDimensionStacked,t=l.getStackedDimension,o=n("hi0g");D.completeDimensions=o;var e=n("sdST");D.createDimensions=e;var u=n("oVpE");D.createSymbol=u.createSymbol;function r(v){return g(v.getSource(),v)}var s={isDimensionStacked:i,enableDataStack:a,getStackedDimension:t};function c(v,A){var b=A;p.isInstance(A)||(b=new p(A),y.mixin(b,m));var x=S.createScaleByModel(b);return x.setExtent(v[0],v[1]),S.niceScaleExtent(x,b),x}function h(v){y.mixin(v,m)}D.createList=r,D.dataStack=s,D.createScale=c,D.mixinAxisModelCommonMethods=h},"Fa/5":function(R,D,n){var y=n("ProS");n("y2l5"),n("q/+u");var g=n("f5Yq"),S=n("h8O9");n("Ae16"),y.registerVisual(g("scatter","circle")),y.registerLayout(S("scatter"))},FhB9:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},"Fm1+":function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("a7Wl")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="CaretUpOutlined";var i=m.forwardRef(a);D.default=i},Fofx:function(R,D){var n=typeof Float32Array=="undefined"?Array:Float32Array;function y(){var i=new n(6);return g(i),i}function g(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=1,i[4]=0,i[5]=0,i}function S(i,t){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i}function m(i,t,o){var e=t[0]*o[0]+t[2]*o[1],u=t[1]*o[0]+t[3]*o[1],r=t[0]*o[2]+t[2]*o[3],s=t[1]*o[2]+t[3]*o[3],c=t[0]*o[4]+t[2]*o[5]+t[4],h=t[1]*o[4]+t[3]*o[5]+t[5];return i[0]=e,i[1]=u,i[2]=r,i[3]=s,i[4]=c,i[5]=h,i}function p(i,t,o){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4]+o[0],i[5]=t[5]+o[1],i}function f(i,t,o){var e=t[0],u=t[2],r=t[4],s=t[1],c=t[3],h=t[5],v=Math.sin(o),A=Math.cos(o);return i[0]=e*A+s*v,i[1]=-e*v+s*A,i[2]=u*A+c*v,i[3]=-u*v+A*c,i[4]=A*r+v*h,i[5]=A*h-v*r,i}function d(i,t,o){var e=o[0],u=o[1];return i[0]=t[0]*e,i[1]=t[1]*u,i[2]=t[2]*e,i[3]=t[3]*u,i[4]=t[4]*e,i[5]=t[5]*u,i}function l(i,t){var o=t[0],e=t[2],u=t[4],r=t[1],s=t[3],c=t[5],h=o*s-r*e;return h?(h=1/h,i[0]=s*h,i[1]=-r*h,i[2]=-e*h,i[3]=o*h,i[4]=(e*c-s*u)*h,i[5]=(r*u-o*c)*h,i):null}function a(i){var t=y();return S(t,i),t}D.create=y,D.identity=g,D.copy=S,D.mul=m,D.translate=p,D.rotate=f,D.scale=d,D.invert=l,D.clone=a},Fv0C:function(R,D,n){"use strict";function y(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(s){return typeof s}:y=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},y(u)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var g=a(n("Lo0S")),S=n("vewr"),m=a(n("8CQX")),p=d(n("mHUz")),f=a(n("GdRQ"));function d(u){return u&&u.__esModule?u:{default:u}}function l(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return l=function(){return u},u}function a(u){if(u&&u.__esModule)return u;if(u===null||y(u)!=="object"&&typeof u!="function")return{default:u};var r=l();if(r&&r.has(u))return r.get(u);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(Object.prototype.hasOwnProperty.call(u,h)){var v=c?Object.getOwnPropertyDescriptor(u,h):null;v&&(v.get||v.set)?Object.defineProperty(s,h,v):s[h]=u[h]}return s.default=u,r&&r.set(u,s),s}function i(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function t(u,r){for(var s=0;s<r.length;s++){var c=r[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,c.key,c)}}function o(u,r,s){return r&&t(u.prototype,r),s&&t(u,s),u}var e=function(){function u(r){i(this,u),this._target=r||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 o(u,[{key:"_sendKeyEvent",value:function(s,c,h){if(h)this._keyDownList[c]=s;else{if(!(c in this._keyDownList))return;delete this._keyDownList[c]}g.Debug("onkeyevent "+(h?"down":"up")+", keysym: "+s,", code: "+c),this.onkeyevent(s,c,h)}},{key:"_getKeyCode",value:function(s){var c=m.getKeycode(s);if(c!=="Unidentified")return c;if(s.keyCode&&s.type!=="keypress"&&s.keyCode!==229)return"Platform"+s.keyCode;if(s.keyIdentifier){if(s.keyIdentifier.substr(0,2)!=="U+")return s.keyIdentifier;var h=parseInt(s.keyIdentifier.substr(2),16),v=String.fromCharCode(h).toUpperCase();return"Platform"+v.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(s){var c=this._getKeyCode(s),h=m.getKeysym(s);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),c==="AltRight"&&s.timeStamp-this._altGrCtrlTime<50?h=p.default.XK_ISO_Level3_Shift:this._sendKeyEvent(p.default.XK_Control_L,"ControlLeft",!0)),c==="Unidentified"){h&&(this._sendKeyEvent(h,c,!0),this._sendKeyEvent(h,c,!1)),(0,S.stopEvent)(s);return}if(f.isMac()||f.isIOS())switch(h){case p.default.XK_Super_L:h=p.default.XK_Alt_L;break;case p.default.XK_Super_R:h=p.default.XK_Super_L;break;case p.default.XK_Alt_L:h=p.default.XK_Mode_switch;break;case p.default.XK_Alt_R:h=p.default.XK_ISO_Level3_Shift;break}if(c in this._keyDownList&&(h=this._keyDownList[c]),(f.isMac()||f.isIOS())&&c==="CapsLock"){this._sendKeyEvent(p.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(p.default.XK_Caps_Lock,"CapsLock",!1),(0,S.stopEvent)(s);return}if(!h&&(!s.key||f.isIE()||f.isEdge())){this._pendingKey=c,setTimeout(this._handleKeyPressTimeout.bind(this),10,s);return}if(this._pendingKey=null,(0,S.stopEvent)(s),c==="ControlLeft"&&f.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=s.timeStamp;return}this._sendKeyEvent(h,c,!0)}},{key:"_handleKeyPress",value:function(s){if((0,S.stopEvent)(s),this._pendingKey===null)return;var c=this._getKeyCode(s),h=m.getKeysym(s);if(c!=="Unidentified"&&c!=this._pendingKey)return;if(c=this._pendingKey,this._pendingKey=null,!h){g.Info("keypress with no keysym:",s);return}this._sendKeyEvent(h,c,!0)}},{key:"_handleKeyPressTimeout",value:function(s){if(this._pendingKey===null)return;var c,h=this._pendingKey;if(this._pendingKey=null,s.keyCode>=48&&s.keyCode<=57)c=s.keyCode;else if(s.keyCode>=65&&s.keyCode<=90){var v=String.fromCharCode(s.keyCode);s.shiftKey?v=v.toUpperCase():v=v.toLowerCase(),c=v.charCodeAt()}else c=0;this._sendKeyEvent(c,h,!0)}},{key:"_handleKeyUp",value:function(s){(0,S.stopEvent)(s);var c=this._getKeyCode(s);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(p.default.XK_Control_L,"ControlLeft",!0)),(f.isMac()||f.isIOS())&&c==="CapsLock"){this._sendKeyEvent(p.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(p.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[c],c,!1),f.isWindows()&&(c==="ShiftLeft"||c==="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(p.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){g.Debug(">> Keyboard.allKeysUp");for(var s in this._keyDownList)this._sendKeyEvent(this._keyDownList[s],s,!1);g.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(s){if(s.skipCheckAlt)return;if(s.altKey)return;var c=this._target,h=this._keyDownList;["AltLeft","AltRight"].forEach(function(v){if(!(v in h))return;var A=new KeyboardEvent("keyup",{key:h[v],code:v});A.skipCheckAlt=!0,c.dispatchEvent(A)})}},{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),f.isWindows()&&f.isFirefox()){var s=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.addEventListener(c,s,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(f.isWindows()&&f.isFirefox()){var s=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.removeEventListener(c,s)})}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()}}]),u}();D.default=e},FxDU:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=n("QO+J"),g=n("j5sG"),S=typeof ResizeObserver!="undefined"?g.createSensor:y.createSensor;D.createSensor=S},GGyF:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("wgjA")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="LeftOutlined";var i=m.forwardRef(a);D.default=i},GIiI:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="PoweroffOutlined";var d=D.a=g.forwardRef(f)},GMDS:function(R,D,n){var y=n("bYtY"),g=n("4NgU"),S=n("jkPA"),m=g.prototype,p=g.extend({type:"ordinal",init:function(d,l){(!d||y.isArray(d))&&(d=new S({categories:d})),this._ordinalMeta=d,this._extent=l||[0,d.categories.length-1]},parse:function(d){return typeof d=="string"?this._ordinalMeta.getOrdinal(d):Math.round(d)},contain:function(d){return d=this.parse(d),m.contain.call(this,d)&&this._ordinalMeta.categories[d]!=null},normalize:function(d){return m.normalize.call(this,this.parse(d))},scale:function(d){return Math.round(m.scale.call(this,d))},getTicks:function(){for(var d=[],l=this._extent,a=l[0];a<=l[1];)d.push(a),a++;return d},getLabel:function(d){if(!this.isBlank())return this._ordinalMeta.categories[d]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(d,l){this.unionExtent(d.getApproximateExtent(l))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:y.noop,niceExtent:y.noop});p.create=function(){return new p};var f=p;R.exports=f},GQ8N:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.toUnsigned32bit=y,D.toSigned32bit=g;function y(S){return S>>>0}function g(S){return S|0}},GRuw:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("lPiR"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.WordArray,p=g.algo,f=p.SHA256,d=p.SHA224=f.extend({_doReset:function(){this._hash=new m.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=f._doFinalize.call(this);return a.sigBytes-=4,a}});g.SHA224=f._createHelper(d),g.HmacSHA224=f._createHmacHelper(d)}(),y.SHA224})},GUcZ:function(R,D,n){"use strict";var y=n("fWQN"),g=n("mtLc"),S=function(){function Zt(){Object(y.a)(this,Zt)}return Object(g.a)(Zt,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(De,Re){return De.__proto__=Re,De},Object.assign=Object.assign||function(De){if(De==null)throw new TypeError("Cannot convert undefined or null to object");for(var Re=Object(De),Pe=1;Pe<arguments.length;Pe++){var rt=arguments[Pe];if(rt!=null)for(var wt in rt)rt.hasOwnProperty(wt)&&(Re[wt]=rt[wt])}return Re},typeof self.Promise!="function"&&n("E2g8").polyfill()}}]),Zt}();S.install();var m=S,p=n("+qE3"),f=n.n(p),d=function(){function Zt(){Object(y.a)(this,Zt)}return Object(g.a)(Zt,null,[{key:"e",value:function(De,Re){(!De||Zt.FORCE_GLOBAL_TAG)&&(De=Zt.GLOBAL_TAG);var Pe="[".concat(De,"] > ").concat(Re);if(Zt.ENABLE_CALLBACK&&Zt.emitter.emit("log","error",Pe),!Zt.ENABLE_ERROR)return;console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe)}},{key:"i",value:function(De,Re){(!De||Zt.FORCE_GLOBAL_TAG)&&(De=Zt.GLOBAL_TAG);var Pe="[".concat(De,"] > ").concat(Re);if(Zt.ENABLE_CALLBACK&&Zt.emitter.emit("log","info",Pe),!Zt.ENABLE_INFO)return;console.info?console.info(Pe):console.log(Pe)}},{key:"w",value:function(De,Re){(!De||Zt.FORCE_GLOBAL_TAG)&&(De=Zt.GLOBAL_TAG);var Pe="[".concat(De,"] > ").concat(Re);if(Zt.ENABLE_CALLBACK&&Zt.emitter.emit("log","warn",Pe),!Zt.ENABLE_WARN)return;console.warn?console.warn(Pe):console.log(Pe)}},{key:"d",value:function(De,Re){(!De||Zt.FORCE_GLOBAL_TAG)&&(De=Zt.GLOBAL_TAG);var Pe="[".concat(De,"] > ").concat(Re);if(Zt.ENABLE_CALLBACK&&Zt.emitter.emit("log","debug",Pe),!Zt.ENABLE_DEBUG)return;console.debug?console.debug(Pe):console.log(Pe)}},{key:"v",value:function(De,Re){(!De||Zt.FORCE_GLOBAL_TAG)&&(De=Zt.GLOBAL_TAG);var Pe="[".concat(De,"] > ").concat(Re);if(Zt.ENABLE_CALLBACK&&Zt.emitter.emit("log","verbose",Pe),!Zt.ENABLE_VERBOSE)return;console.log(Pe)}}]),Zt}();d.GLOBAL_TAG="flv.js",d.FORCE_GLOBAL_TAG=!1,d.ENABLE_ERROR=!0,d.ENABLE_INFO=!0,d.ENABLE_WARN=!0,d.ENABLE_DEBUG=!0,d.ENABLE_VERBOSE=!0,d.ENABLE_CALLBACK=!1,d.emitter=new f.a;var l=d,a=function(){function Zt(){Object(y.a)(this,Zt),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(g.a)(Zt,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(De){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=De,this._totalBytes+=De):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=De,this._totalBytes+=De):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=De,this._totalBytes+=De,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var De=(this._now()-this._lastCheckpoint)/1e3;return De==0&&(De=1),this._intervalBytes/De/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 De=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/De/1024}}]),Zt}(),i=a,t=n("yKVA"),o=n("879j"),e=function(){function Zt(Tt){Object(y.a)(this,Zt),this._message=Tt}return Object(g.a)(Zt,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),Zt}(),u=function(Zt){Object(t.a)(De,Zt);var Tt=Object(o.a)(De);function De(Re){return Object(y.a)(this,De),Tt.call(this,Re)}return Object(g.a)(De,[{key:"name",get:function(){return"IllegalStateException"}}]),De}(e),r=function(Zt){Object(t.a)(De,Zt);var Tt=Object(o.a)(De);function De(Re){return Object(y.a)(this,De),Tt.call(this,Re)}return Object(g.a)(De,[{key:"name",get:function(){return"InvalidArgumentException"}}]),De}(e),s=function(Zt){Object(t.a)(De,Zt);var Tt=Object(o.a)(De);function De(Re){return Object(y.a)(this,De),Tt.call(this,Re)}return Object(g.a)(De,[{key:"name",get:function(){return"NotImplementedException"}}]),De}(e),c={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},h={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},v=function(){function Zt(Tt){Object(y.a)(this,Zt),this._type=Tt||"undefined",this._status=c.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(g.a)(Zt,[{key:"destroy",value:function(){this._status=c.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===c.kConnecting||this._status===c.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(De){this._onContentLengthKnown=De}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(De){this._onURLRedirect=De}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(De){this._onDataArrival=De}},{key:"onError",get:function(){return this._onError},set:function(De){this._onError=De}},{key:"onComplete",get:function(){return this._onComplete},set:function(De){this._onComplete=De}},{key:"open",value:function(De,Re){throw new s("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new s("Unimplemented abstract function!")}}]),Zt}(),A=n("w4Tj"),b=n("oZsa"),x={};function E(){var Zt=self.navigator.userAgent.toLowerCase(),Tt=/(edge)\/([\w.]+)/.exec(Zt)||/(opr)[\/]([\w.]+)/.exec(Zt)||/(chrome)[ \/]([\w.]+)/.exec(Zt)||/(iemobile)[\/]([\w.]+)/.exec(Zt)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Zt)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Zt)||/(webkit)[ \/]([\w.]+)/.exec(Zt)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Zt)||/(msie) ([\w.]+)/.exec(Zt)||Zt.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Zt)||Zt.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Zt)||[],De=/(ipad)/.exec(Zt)||/(ipod)/.exec(Zt)||/(windows phone)/.exec(Zt)||/(iphone)/.exec(Zt)||/(kindle)/.exec(Zt)||/(android)/.exec(Zt)||/(windows)/.exec(Zt)||/(mac)/.exec(Zt)||/(linux)/.exec(Zt)||/(cros)/.exec(Zt)||[],Re={browser:Tt[5]||Tt[3]||Tt[1]||"",version:Tt[2]||Tt[4]||"0",majorVersion:Tt[4]||Tt[2]||"0",platform:De[0]||""},Pe={};if(Re.browser){Pe[Re.browser]=!0;var rt=Re.majorVersion.split(".");Pe.version={major:parseInt(Re.majorVersion,10),string:Re.version},rt.length>1&&(Pe.version.minor=parseInt(rt[1],10)),rt.length>2&&(Pe.version.build=parseInt(rt[2],10))}if(Re.platform&&(Pe[Re.platform]=!0),(Pe.chrome||Pe.opr||Pe.safari)&&(Pe.webkit=!0),Pe.rv||Pe.iemobile){Pe.rv&&delete Pe.rv;var wt="msie";Re.browser=wt,Pe[wt]=!0}if(Pe.edge){delete Pe.edge;var Ot="msedge";Re.browser=Ot,Pe[Ot]=!0}if(Pe.opr){var $t="opera";Re.browser=$t,Pe[$t]=!0}if(Pe.safari&&Pe.android){var Mr="android";Re.browser=Mr,Pe[Mr]=!0}Pe.name=Re.browser,Pe.platform=Re.platform;for(var Vr in x)x.hasOwnProperty(Vr)&&delete x[Vr];Object.assign(x,Pe)}E();var T=x,_=function(Zt){Object(t.a)(De,Zt);var Tt=Object(o.a)(De);function De(Re,Pe){var rt;return Object(y.a)(this,De),rt=Tt.call(this,"fetch-stream-loader"),rt.TAG="FetchStreamLoader",rt._seekHandler=Re,rt._config=Pe,rt._needStash=!0,rt._requestAbort=!1,rt._contentLength=null,rt._receivedLength=0,rt}return Object(g.a)(De,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(A.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,rt){var wt=this;this._dataSource=Pe,this._range=rt;var Ot=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(Ot=Pe.redirectedURL);var $t=this._seekHandler.getConfig(Ot,rt),Mr=new self.Headers;if(typeof $t.headers=="object"){var Vr=$t.headers;for(var hn in Vr)Vr.hasOwnProperty(hn)&&Mr.append(hn,Vr[hn])}var Vt={method:"GET",headers:Mr,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var yt in this._config.headers)Mr.append(yt,this._config.headers[yt]);Pe.cors===!1&&(Vt.mode="same-origin"),Pe.withCredentials&&(Vt.credentials="include"),Pe.referrerPolicy&&(Vt.referrerPolicy=Pe.referrerPolicy),this._status=c.kConnecting,self.fetch($t.url,Vt).then(function(xt){if(wt._requestAbort){wt._requestAbort=!1,wt._status=c.kIdle;return}if(xt.ok&&xt.status>=200&&xt.status<=299){if(xt.url!==$t.url&&wt._onURLRedirect){var dr=wt._seekHandler.removeURLParameters(xt.url);wt._onURLRedirect(dr)}var er=xt.headers.get("Content-Length");return er!=null&&(wt._contentLength=parseInt(er),wt._contentLength!==0&&(wt._onContentLengthKnown&&wt._onContentLengthKnown(wt._contentLength))),wt._pump.call(wt,xt.body.getReader())}else if(wt._status=c.kError,wt._onError)wt._onError(h.HTTP_STATUS_CODE_INVALID,{code:xt.status,msg:xt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+xt.status+" "+xt.statusText)}).catch(function(xt){if(wt._status=c.kError,wt._onError)wt._onError(h.EXCEPTION,{code:-1,msg:xt.message});else throw xt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Pe){var rt=this;return Pe.read().then(function(wt){if(wt.done)if(rt._contentLength!==null&&rt._receivedLength<rt._contentLength){rt._status=c.kError;var Ot=h.EARLY_EOF,$t={code:-1,msg:"Fetch stream meet Early-EOF"};if(rt._onError)rt._onError(Ot,$t);else throw new e($t.msg)}else rt._status=c.kComplete,rt._onComplete&&rt._onComplete(rt._range.from,rt._range.from+rt._receivedLength-1);else{if(rt._requestAbort===!0)return rt._requestAbort=!1,rt._status=c.kComplete,Pe.cancel();rt._status=c.kBuffering;var Mr=wt.value.buffer,Vr=rt._range.from+rt._receivedLength;rt._receivedLength+=Mr.byteLength,rt._onDataArrival&&rt._onDataArrival(Mr,Vr,rt._receivedLength),rt._pump(Pe)}}).catch(function(wt){if(wt.code===11&&T.msedge)return;rt._status=c.kError;var Ot=0,$t=null;if((wt.code===19||wt.message==="network error")&&(rt._contentLength===null||rt._contentLength!==null&&rt._receivedLength<rt._contentLength)?(Ot=h.EARLY_EOF,$t={code:wt.code,msg:"Fetch stream meet Early-EOF"}):(Ot=h.EXCEPTION,$t={code:wt.code,msg:wt.message}),rt._onError)rt._onError(Ot,$t);else throw new e($t.msg)})}}],[{key:"isSupported",value:function(){try{var Pe=T.msedge&&T.version.minor>=15048,rt=T.msedge?Pe:!0;return self.fetch&&self.ReadableStream&&rt}catch(wt){return!1}}}]),De}(v),C=_,w=function(Zt){Object(t.a)(De,Zt);var Tt=Object(o.a)(De);function De(Re,Pe){var rt;return Object(y.a)(this,De),rt=Tt.call(this,"xhr-moz-chunked-loader"),rt.TAG="MozChunkedLoader",rt._seekHandler=Re,rt._config=Pe,rt._needStash=!0,rt._xhr=null,rt._requestAbort=!1,rt._contentLength=null,rt._receivedLength=0,rt}return Object(g.a)(De,[{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(A.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,rt){this._dataSource=Pe,this._range=rt;var wt=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(wt=Pe.redirectedURL);var Ot=this._seekHandler.getConfig(wt,rt);this._requestURL=Ot.url;var $t=this._xhr=new XMLHttpRequest;if($t.open("GET",Ot.url,!0),$t.responseType="moz-chunked-arraybuffer",$t.onreadystatechange=this._onReadyStateChange.bind(this),$t.onprogress=this._onProgress.bind(this),$t.onloadend=this._onLoadEnd.bind(this),$t.onerror=this._onXhrError.bind(this),Pe.withCredentials&&($t.withCredentials=!0),typeof Ot.headers=="object"){var Mr=Ot.headers;for(var Vr in Mr)Mr.hasOwnProperty(Vr)&&$t.setRequestHeader(Vr,Mr[Vr])}if(typeof this._config.headers=="object"){var hn=this._config.headers;for(var Vt in hn)hn.hasOwnProperty(Vt)&&$t.setRequestHeader(Vt,hn[Vt])}this._status=c.kConnecting,$t.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=c.kComplete}},{key:"_onReadyStateChange",value:function(Pe){var rt=Pe.target;if(rt.readyState===2){if(rt.responseURL!=null&&rt.responseURL!==this._requestURL&&this._onURLRedirect){var wt=this._seekHandler.removeURLParameters(rt.responseURL);this._onURLRedirect(wt)}if(rt.status!==0&&(rt.status<200||rt.status>299))if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:rt.status,msg:rt.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+rt.status+" "+rt.statusText);else this._status=c.kBuffering}}},{key:"_onProgress",value:function(Pe){if(this._status===c.kError)return;this._contentLength===null&&(Pe.total!==null&&Pe.total!==0&&(this._contentLength=Pe.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var rt=Pe.target.response,wt=this._range.from+this._receivedLength;this._receivedLength+=rt.byteLength,this._onDataArrival&&this._onDataArrival(rt,wt,this._receivedLength)}},{key:"_onLoadEnd",value:function(Pe){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===c.kError)return;this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Pe){this._status=c.kError;var rt=0,wt=null;if(this._contentLength&&Pe.loaded<this._contentLength?(rt=h.EARLY_EOF,wt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(rt=h.EXCEPTION,wt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(rt,wt);else throw new e(wt.msg)}}],[{key:"isSupported",value:function(){try{var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="moz-chunked-arraybuffer",Pe.responseType==="moz-chunked-arraybuffer"}catch(rt){return l.w("MozChunkedLoader",rt.message),!1}}}]),De}(v),O=w,I=function(Zt){Object(t.a)(De,Zt);var Tt=Object(o.a)(De);function De(Re,Pe){var rt;return Object(y.a)(this,De),rt=Tt.call(this,"xhr-msstream-loader"),rt.TAG="MSStreamLoader",rt._seekHandler=Re,rt._config=Pe,rt._needStash=!0,rt._xhr=null,rt._reader=null,rt._totalRange=null,rt._currentRange=null,rt._currentRequestURL=null,rt._currentRedirectedURL=null,rt._contentLength=null,rt._receivedLength=0,rt._bufferLimit=16*1024*1024,rt._lastTimeBufferSize=0,rt._isReconnecting=!1,rt}return Object(g.a)(De,[{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(A.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,rt){this._internalOpen(Pe,rt,!1)}},{key:"_internalOpen",value:function(Pe,rt,wt){this._dataSource=Pe,wt?this._currentRange=rt:this._totalRange=rt;var Ot=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Ot=this._currentRedirectedURL:Pe.redirectedURL!=null&&(Ot=Pe.redirectedURL));var $t=this._seekHandler.getConfig(Ot,rt);this._currentRequestURL=$t.url;var Mr=this._reader=new self.MSStreamReader;Mr.onprogress=this._msrOnProgress.bind(this),Mr.onload=this._msrOnLoad.bind(this),Mr.onerror=this._msrOnError.bind(this);var Vr=this._xhr=new XMLHttpRequest;if(Vr.open("GET",$t.url,!0),Vr.responseType="ms-stream",Vr.onreadystatechange=this._xhrOnReadyStateChange.bind(this),Vr.onerror=this._xhrOnError.bind(this),Pe.withCredentials&&(Vr.withCredentials=!0),typeof $t.headers=="object"){var hn=$t.headers;for(var Vt in hn)hn.hasOwnProperty(Vt)&&Vr.setRequestHeader(Vt,hn[Vt])}if(typeof this._config.headers=="object"){var yt=this._config.headers;for(var xt in yt)yt.hasOwnProperty(xt)&&Vr.setRequestHeader(xt,yt[xt])}this._isReconnecting?this._isReconnecting=!1:this._status=c.kConnecting,Vr.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=c.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(Pe){var rt=Pe.target;if(rt.readyState===2)if(rt.status>=200&&rt.status<=299){if(this._status=c.kBuffering,rt.responseURL!=null){var wt=this._seekHandler.removeURLParameters(rt.responseURL);rt.responseURL!==this._currentRequestURL&&wt!==this._currentRedirectedURL&&(this._currentRedirectedURL=wt,this._onURLRedirect&&this._onURLRedirect(wt))}var Ot=rt.getResponseHeader("Content-Length");if(Ot!=null&&this._contentLength==null){var $t=parseInt(Ot);$t>0&&(this._contentLength=$t,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:rt.status,msg:rt.statusText});else throw new e("MSStreamLoader: Http code invalid, "+rt.status+" "+rt.statusText);else if(rt.readyState===3&&(rt.status>=200&&rt.status<=299)){this._status=c.kBuffering;var Mr=rt.response;this._reader.readAsArrayBuffer(Mr)}}},{key:"_xhrOnError",value:function(Pe){this._status=c.kError;var rt=h.EXCEPTION,wt={code:-1,msg:Pe.constructor.name+" "+Pe.type};if(this._onError)this._onError(rt,wt);else throw new e(wt.msg)}},{key:"_msrOnProgress",value:function(Pe){var rt=Pe.target,wt=rt.result;if(wt==null){this._doReconnectIfNeeded();return}var Ot=wt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=wt.byteLength;var $t=this._totalRange.from+this._receivedLength;this._receivedLength+=Ot.byteLength,this._onDataArrival&&this._onDataArrival(Ot,$t,this._receivedLength),wt.byteLength>=this._bufferLimit&&(l.v(this.TAG,"MSStream buffer exceeded max size near ".concat($t+Ot.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();var Pe={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Pe,!0)}}},{key:"_msrOnLoad",value:function(Pe){this._status=c.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Pe){this._status=c.kError;var rt=0,wt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(rt=h.EARLY_EOF,wt={code:-1,msg:"MSStream meet Early-Eof"}):(rt=h.EARLY_EOF,wt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(rt,wt);else throw new e(wt.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="ms-stream",Pe.responseType==="ms-stream"}catch(rt){return l.w("MSStreamLoader",rt.message),!1}}}]),De}(v),k=I,M=function(Zt){Object(t.a)(De,Zt);var Tt=Object(o.a)(De);function De(Re,Pe){var rt;return Object(y.a)(this,De),rt=Tt.call(this,"xhr-range-loader"),rt.TAG="RangeLoader",rt._seekHandler=Re,rt._config=Pe,rt._needStash=!1,rt._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],rt._currentChunkSizeKB=384,rt._currentSpeedNormalized=0,rt._zeroSpeedChunkCount=0,rt._xhr=null,rt._speedSampler=new i,rt._requestAbort=!1,rt._waitForTotalLength=!1,rt._totalLengthReceived=!1,rt._currentRequestURL=null,rt._currentRedirectedURL=null,rt._currentRequestRange=null,rt._totalLength=null,rt._contentLength=null,rt._receivedLength=0,rt._lastTimeLoaded=0,rt}return Object(g.a)(De,[{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(A.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Pe,rt){this._dataSource=Pe,this._range=rt,this._status=c.kConnecting;var wt=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(wt=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!wt?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Pe=this._currentChunkSizeKB*1024,rt=this._range.from+this._receivedLength,wt=rt+Pe;this._contentLength!=null&&(wt-this._range.from>=this._contentLength&&(wt=this._range.from+this._contentLength-1)),this._currentRequestRange={from:rt,to:wt},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Pe,rt){this._lastTimeLoaded=0;var wt=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?wt=this._currentRedirectedURL:Pe.redirectedURL!=null&&(wt=Pe.redirectedURL));var Ot=this._seekHandler.getConfig(wt,rt);this._currentRequestURL=Ot.url;var $t=this._xhr=new XMLHttpRequest;if($t.open("GET",Ot.url,!0),$t.responseType="arraybuffer",$t.onreadystatechange=this._onReadyStateChange.bind(this),$t.onprogress=this._onProgress.bind(this),$t.onload=this._onLoad.bind(this),$t.onerror=this._onXhrError.bind(this),Pe.withCredentials&&($t.withCredentials=!0),typeof Ot.headers=="object"){var Mr=Ot.headers;for(var Vr in Mr)Mr.hasOwnProperty(Vr)&&$t.setRequestHeader(Vr,Mr[Vr])}if(typeof this._config.headers=="object"){var hn=this._config.headers;for(var Vt in hn)hn.hasOwnProperty(Vt)&&$t.setRequestHeader(Vt,hn[Vt])}$t.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=c.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(Pe){var rt=Pe.target;if(rt.readyState===2){if(rt.responseURL!=null){var wt=this._seekHandler.removeURLParameters(rt.responseURL);rt.responseURL!==this._currentRequestURL&&wt!==this._currentRedirectedURL&&(this._currentRedirectedURL=wt,this._onURLRedirect&&this._onURLRedirect(wt))}if(rt.status>=200&&rt.status<=299){if(this._waitForTotalLength)return;this._status=c.kBuffering}else if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:rt.status,msg:rt.statusText});else throw new e("RangeLoader: Http code invalid, "+rt.status+" "+rt.statusText)}}},{key:"_onProgress",value:function(Pe){if(this._status===c.kError)return;if(this._contentLength===null){var rt=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,rt=!0;var wt=Pe.total;this._internalAbort(),wt!=null&wt!==0&&(this._totalLength=wt)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,rt){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var Ot=Pe.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Pe.loaded,this._speedSampler.addBytes(Ot)}},{key:"_normalizeSpeed",value:function(Pe){var rt=this._chunkSizeKBList,wt=rt.length-1,Ot=0,$t=0,Mr=wt;if(Pe<rt[0])return rt[0];for(;$t<=Mr;){if(Ot=$t+Math.floor((Mr-$t)/2),Ot===wt||Pe>=rt[Ot]&&Pe<rt[Ot+1])return rt[Ot];rt[Ot]<Pe?$t=Ot+1:Mr=Ot-1}}},{key:"_onLoad",value:function(Pe){if(this._status===c.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var rt=this._speedSampler.lastSecondKBps;if(rt===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(rt=this._speedSampler.currentKBps)),rt!==0){var wt=this._normalizeSpeed(rt);this._currentSpeedNormalized!==wt&&(this._currentSpeedNormalized=wt,this._currentChunkSizeKB=wt)}var Ot=Pe.target.response,$t=this._range.from+this._receivedLength;this._receivedLength+=Ot.byteLength;var Mr=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Mr=!0,this._onDataArrival&&this._onDataArrival(Ot,$t,this._receivedLength),Mr&&(this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Pe){this._status=c.kError;var rt=0,wt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(rt=h.EARLY_EOF,wt={code:-1,msg:"RangeLoader meet Early-Eof"}):(rt=h.EXCEPTION,wt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(rt,wt);else throw new e(wt.msg)}}],[{key:"isSupported",value:function(){try{var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="arraybuffer",Pe.responseType==="arraybuffer"}catch(rt){return l.w("RangeLoader",rt.message),!1}}}]),De}(v),U=M,P=function(Zt){Object(t.a)(De,Zt);var Tt=Object(o.a)(De);function De(){var Re;return Object(y.a)(this,De),Re=Tt.call(this,"websocket-loader"),Re.TAG="WebSocketLoader",Re._needStash=!0,Re._ws=null,Re._requestAbort=!1,Re._receivedLength=0,Re}return Object(g.a)(De,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(A.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe){try{var rt=this._ws=new self.WebSocket(Pe.url);rt.binaryType="arraybuffer",rt.onopen=this._onWebSocketOpen.bind(this),rt.onclose=this._onWebSocketClose.bind(this),rt.onmessage=this._onWebSocketMessage.bind(this),rt.onerror=this._onWebSocketError.bind(this),this._status=c.kConnecting}catch(Ot){this._status=c.kError;var wt={code:Ot.code,msg:Ot.message};if(this._onError)this._onError(h.EXCEPTION,wt);else throw new e(wt.msg)}}},{key:"abort",value:function(){var Pe=this._ws;Pe&&(Pe.readyState===0||Pe.readyState===1)&&(this._requestAbort=!0,Pe.close()),this._ws=null,this._status=c.kComplete}},{key:"_onWebSocketOpen",value:function(Pe){this._status=c.kBuffering}},{key:"_onWebSocketClose",value:function(Pe){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=c.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Pe){var rt=this;if(Pe.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Pe.data);else if(Pe.data instanceof Blob){var wt=new FileReader;wt.onload=function(){rt._dispatchArrayBuffer(wt.result)},wt.readAsArrayBuffer(Pe.data)}else{this._status=c.kError;var Ot={code:-1,msg:"Unsupported WebSocket message type: "+Pe.data.constructor.name};if(this._onError)this._onError(h.EXCEPTION,Ot);else throw new e(Ot.msg)}}},{key:"_dispatchArrayBuffer",value:function(Pe){var rt=Pe,wt=this._receivedLength;this._receivedLength+=rt.byteLength,this._onDataArrival&&this._onDataArrival(rt,wt,this._receivedLength)}},{key:"_onWebSocketError",value:function(Pe){this._status=c.kError;var rt={code:Pe.code,msg:Pe.message};if(this._onError)this._onError(h.EXCEPTION,rt);else throw new e(rt.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Pe){return!1}}}]),De}(v),X=P,F=function(){function Zt(Tt){Object(y.a)(this,Zt),this._zeroStart=Tt||!1}return Object(g.a)(Zt,[{key:"getConfig",value:function(De,Re){var Pe={};if(Re.from!==0||Re.to!==-1){var rt;Re.to!==-1?rt="bytes=".concat(Re.from.toString(),"-").concat(Re.to.toString()):rt="bytes=".concat(Re.from.toString(),"-"),Pe.Range=rt}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:De,headers:Pe}}},{key:"removeURLParameters",value:function(De){return De}}]),Zt}(),j=F,K=function(){function Zt(Tt,De){Object(y.a)(this,Zt),this._startName=Tt,this._endName=De}return Object(g.a)(Zt,[{key:"getConfig",value:function(De,Re){var Pe=De;if(Re.from!==0||Re.to!==-1){var rt=!0;Pe.indexOf("?")===-1&&(Pe+="?",rt=!1),rt&&(Pe+="&"),Pe+="".concat(this._startName,"=").concat(Re.from.toString()),Re.to!==-1&&(Pe+="&".concat(this._endName,"=").concat(Re.to.toString()))}return{url:Pe,headers:{}}}},{key:"removeURLParameters",value:function(De){var Re=De.split("?")[0],Pe=void 0,rt=De.indexOf("?");rt!==-1&&(Pe=De.substring(rt+1));var wt="";if(Pe!=null&&Pe.length>0)for(var Ot=Pe.split("&"),$t=0;$t<Ot.length;$t++){var Mr=Ot[$t].split("="),Vr=$t>0;Mr[0]!==this._startName&&Mr[0]!==this._endName&&(Vr&&(wt+="&"),wt+=Ot[$t])}return wt.length===0?Re:Re+"?"+wt}}]),Zt}(),z=K,V=function(){function Zt(Tt,De,Re){Object(y.a)(this,Zt),this.TAG="IOController",this._config=De,this._extraData=Re,this._stashInitialSize=1024*384,De.stashInitialSize!=null&&De.stashInitialSize>0&&(this._stashInitialSize=De.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,De.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=Tt,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(Tt.url),this._refTotalLength=Tt.filesize?Tt.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new i,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(g.a)(Zt,[{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(De){this._extraData=De}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(De){this._onDataArrival=De}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(De){this._onSeeked=De}},{key:"onError",get:function(){return this._onError},set:function(De){this._onError=De}},{key:"onComplete",get:function(){return this._onComplete},set:function(De){this._onComplete=De}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(De){this._onRedirect=De}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(De){this._onRecoveredEarlyEof=De}},{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===U?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var De=this._config;if(De.seekType==="range")this._seekHandler=new j(this._config.rangeLoadZeroStart);else if(De.seekType==="param"){var Re=De.seekParamStart||"bstart",Pe=De.seekParamEnd||"bend";this._seekHandler=new z(Re,Pe)}else if(De.seekType==="custom"){if(typeof De.customSeekHandler!="function")throw new r("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new De.customSeekHandler}else throw new r("Invalid seekType in config: ".concat(De.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=X;else if(C.isSupported())this._loaderClass=C;else if(O.isSupported())this._loaderClass=O;else if(U.isSupported())this._loaderClass=U;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(De){this._currentRange={from:0,to:-1},De&&(this._currentRange.from=De),this._speedSampler.reset(),De||(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 De=this._resumeFrom;this._resumeFrom=0,this._internalSeek(De,!0)}}},{key:"seek",value:function(De){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(De,!0)}},{key:"_internalSeek",value:function(De,Re){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Re),this._loader.destroy(),this._loader=null;var Pe={from:De,to:-1};this._currentRange={from:Pe.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Pe),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(De){if(!De||typeof De!="string"||De.length===0)throw new r("Url must be a non-empty string!");this._dataSource.url=De}},{key:"_expandBuffer",value:function(De){for(var Re=this._stashSize;Re+1024*1024*1<De;)Re*=2;if(Re+=1024*1024*1,Re===this._bufferSize)return;var Pe=new ArrayBuffer(Re);if(this._stashUsed>0){var rt=new Uint8Array(this._stashBuffer,0,this._stashUsed),wt=new Uint8Array(Pe,0,Re);wt.set(rt,0)}this._stashBuffer=Pe,this._bufferSize=Re}},{key:"_normalizeSpeed",value:function(De){var Re=this._speedNormalizeList,Pe=Re.length-1,rt=0,wt=0,Ot=Pe;if(De<Re[0])return Re[0];for(;wt<=Ot;){if(rt=wt+Math.floor((Ot-wt)/2),rt===Pe||De>=Re[rt]&&De<Re[rt+1])return Re[rt];Re[rt]<De?wt=rt+1:Ot=rt-1}}},{key:"_adjustStashSize",value:function(De){var Re=0;this._config.isLive||De<512?Re=De:De>=512&&De<=1024?Re=Math.floor(De*1.5):Re=De*2,Re>8192&&(Re=8192);var Pe=Re*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=Re*1024}},{key:"_dispatchChunks",value:function(De,Re){return this._currentRange.to=Re+De.byteLength-1,this._onDataArrival(De,Re)}},{key:"_onURLRedirect",value:function(De){this._redirectedURL=De,this._onRedirect&&this._onRedirect(De)}},{key:"_onContentLengthKnown",value:function(De){De&&this._fullRequestFlag&&(this._totalLength=De,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(De,Re,Pe){if(!this._onDataArrival)throw new u("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(De.byteLength);var rt=this._speedSampler.lastSecondKBps;if(rt!==0){var wt=this._normalizeSpeed(rt);this._speedNormalized!==wt&&(this._speedNormalized=wt,this._adjustStashSize(wt))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Re),this._stashUsed+De.byteLength<=this._stashSize){var yt=new Uint8Array(this._stashBuffer,0,this._stashSize);yt.set(new Uint8Array(De),this._stashUsed),this._stashUsed+=De.byteLength}else{var xt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var dr=this._stashBuffer.slice(0,this._stashUsed),er=this._dispatchChunks(dr,this._stashByteStart);if(er<dr.byteLength){if(er>0){var Ut=new Uint8Array(dr,er);xt.set(Ut,0),this._stashUsed=Ut.byteLength,this._stashByteStart+=er}}else this._stashUsed=0,this._stashByteStart+=er;this._stashUsed+De.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+De.byteLength),xt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),xt.set(new Uint8Array(De),this._stashUsed),this._stashUsed+=De.byteLength}else{var ir=this._dispatchChunks(De,Re);if(ir<De.byteLength){var Ft=De.byteLength-ir;Ft>this._bufferSize&&(this._expandBuffer(Ft),xt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),xt.set(new Uint8Array(De,ir),0),this._stashUsed+=Ft,this._stashByteStart=Re+ir}}}else if(this._stashUsed===0){var Ot=this._dispatchChunks(De,Re);if(Ot<De.byteLength){var $t=De.byteLength-Ot;$t>this._bufferSize&&this._expandBuffer($t);var Mr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Mr.set(new Uint8Array(De,Ot),0),this._stashUsed+=$t,this._stashByteStart=Re+Ot}}else{this._stashUsed+De.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+De.byteLength);var Vr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Vr.set(new Uint8Array(De),this._stashUsed),this._stashUsed+=De.byteLength;var hn=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(hn<this._stashUsed&&hn>0){var Vt=new Uint8Array(this._stashBuffer,hn);Vr.set(Vt,0)}this._stashUsed-=hn,this._stashByteStart+=hn}}},{key:"_flushStashBuffer",value:function(De){if(this._stashUsed>0){var Re=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(Re,this._stashByteStart),rt=Re.byteLength-Pe;if(Pe<Re.byteLength)if(De)l.w(this.TAG,"".concat(rt," bytes unconsumed data remain when flush buffer, dropped"));else{if(Pe>0){var wt=new Uint8Array(this._stashBuffer,0,this._bufferSize),Ot=new Uint8Array(Re,Pe);wt.set(Ot,0),this._stashUsed=Ot.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,rt}return 0}},{key:"_onLoaderComplete",value:function(De,Re){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(De,Re){l.e(this.TAG,"Loader error, code = ".concat(Re.code,", msg = ").concat(Re.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,De=h.UNRECOVERABLE_EARLY_EOF);switch(De){case h.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Pe=this._currentRange.to+1;Pe<this._totalLength&&(l.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}De=h.UNRECOVERABLE_EARLY_EOF;break}case h.UNRECOVERABLE_EARLY_EOF:case h.CONNECTING_TIMEOUT:case h.HTTP_STATUS_CODE_INVALID:case h.EXCEPTION:break}if(this._onError)this._onError(De,Re);else throw new e("IOException: "+Re.msg)}}]),Zt}(),Q=V,G={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 te(){return Object.assign({},G)}var q=function(){function Zt(){Object(y.a)(this,Zt)}return Object(g.a)(Zt,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var De=new Q({},te()),Re=De.loaderType;return De.destroy(),Re=="fetch-stream-loader"||Re=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var De=new Q({},te()),Re=De.loaderType;return De.destroy(),Re}},{key:"supportNativeMediaPlayback",value:function(De){Zt.videoElement==null&&(Zt.videoElement=window.document.createElement("video"));var Re=Zt.videoElement.canPlayType(De);return Re==="probably"||Re=="maybe"}},{key:"getFeatureList",value:function(){var De={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return De.mseFlvPlayback=Zt.supportMSEH264Playback(),De.networkStreamIO=Zt.supportNetworkStreamIO(),De.networkLoaderName=Zt.getNetworkLoaderTypeName(),De.mseLiveFlvPlayback=De.mseFlvPlayback&&De.networkStreamIO,De.nativeMP4H264Playback=Zt.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),De.nativeWebmVP8Playback=Zt.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),De.nativeWebmVP9Playback=Zt.supportNativeMediaPlayback('video/webm; codecs="vp9"'),De}}]),Zt}(),se=q,re={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"},we=re,Oe=function(){function Zt(){Object(y.a)(this,Zt)}return Object(g.a)(Zt,null,[{key:"forceGlobalTag",get:function(){return l.FORCE_GLOBAL_TAG},set:function(De){l.FORCE_GLOBAL_TAG=De,Zt._notifyChange()}},{key:"globalTag",get:function(){return l.GLOBAL_TAG},set:function(De){l.GLOBAL_TAG=De,Zt._notifyChange()}},{key:"enableAll",get:function(){return l.ENABLE_VERBOSE&&l.ENABLE_DEBUG&&l.ENABLE_INFO&&l.ENABLE_WARN&&l.ENABLE_ERROR},set:function(De){l.ENABLE_VERBOSE=De,l.ENABLE_DEBUG=De,l.ENABLE_INFO=De,l.ENABLE_WARN=De,l.ENABLE_ERROR=De,Zt._notifyChange()}},{key:"enableDebug",get:function(){return l.ENABLE_DEBUG},set:function(De){l.ENABLE_DEBUG=De,Zt._notifyChange()}},{key:"enableVerbose",get:function(){return l.ENABLE_VERBOSE},set:function(De){l.ENABLE_VERBOSE=De,Zt._notifyChange()}},{key:"enableInfo",get:function(){return l.ENABLE_INFO},set:function(De){l.ENABLE_INFO=De,Zt._notifyChange()}},{key:"enableWarn",get:function(){return l.ENABLE_WARN},set:function(De){l.ENABLE_WARN=De,Zt._notifyChange()}},{key:"enableError",get:function(){return l.ENABLE_ERROR},set:function(De){l.ENABLE_ERROR=De,Zt._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:l.GLOBAL_TAG,forceGlobalTag:l.FORCE_GLOBAL_TAG,enableVerbose:l.ENABLE_VERBOSE,enableDebug:l.ENABLE_DEBUG,enableInfo:l.ENABLE_INFO,enableWarn:l.ENABLE_WARN,enableError:l.ENABLE_ERROR,enableCallback:l.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(De){l.GLOBAL_TAG=De.globalTag,l.FORCE_GLOBAL_TAG=De.forceGlobalTag,l.ENABLE_VERBOSE=De.enableVerbose,l.ENABLE_DEBUG=De.enableDebug,l.ENABLE_INFO=De.enableInfo,l.ENABLE_WARN=De.enableWarn,l.ENABLE_ERROR=De.enableError,l.ENABLE_CALLBACK=De.enableCallback}},{key:"_notifyChange",value:function(){var De=Zt.emitter;if(De.listenerCount("change")>0){var Re=Zt.getConfig();De.emit("change",Re)}}},{key:"registerListener",value:function(De){Zt.emitter.addListener("change",De)}},{key:"removeListener",value:function(De){Zt.emitter.removeListener("change",De)}},{key:"addLogListener",value:function(De){l.emitter.addListener("log",De),l.emitter.listenerCount("log")>0&&(l.ENABLE_CALLBACK=!0,Zt._notifyChange())}},{key:"removeLogListener",value:function(De){l.emitter.removeListener("log",De),l.emitter.listenerCount("log")===0&&(l.ENABLE_CALLBACK=!1,Zt._notifyChange())}}]),Zt}();Oe.emitter=new f.a;var Me=Oe,Qe=function(){function Zt(){Object(y.a)(this,Zt),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(g.a)(Zt,[{key:"isComplete",value:function(){var De=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Re=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&De&&Re}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(De){if(this.keyframesIndex==null)return null;var Re=this.keyframesIndex,Pe=this._search(Re.times,De);return{index:Pe,milliseconds:Re.times[Pe],fileposition:Re.filepositions[Pe]}}},{key:"_search",value:function(De,Re){var Pe=0,rt=De.length-1,wt=0,Ot=0,$t=rt;for(Re<De[0]&&(Pe=0,Ot=$t+1);Ot<=$t;)if(wt=Ot+Math.floor(($t-Ot)/2),wt===rt||Re>=De[wt]&&Re<De[wt+1]){Pe=wt;break}else De[wt]<Re?Ot=wt+1:$t=wt-1;return Pe}}]),Zt}(),Ve=Qe;function dt(Zt,Tt,De){var Re=Zt;if(Tt+De<Re.length){for(;De--;)if((Re[++Tt]&192)!==128)return!1;return!0}else return!1}function Fe(Zt){for(var Tt=[],De=Zt,Re=0,Pe=Zt.length;Re<Pe;){if(De[Re]<128){Tt.push(String.fromCharCode(De[Re])),++Re;continue}else if(!(De[Re]<192)){if(De[Re]<224){if(dt(De,Re,1)){var rt=(De[Re]&31)<<6|De[Re+1]&63;if(rt>=128){Tt.push(String.fromCharCode(rt&65535)),Re+=2;continue}}}else if(De[Re]<240){if(dt(De,Re,2)){var wt=(De[Re]&15)<<12|(De[Re+1]&63)<<6|De[Re+2]&63;if(wt>=2048&&(wt&63488)!==55296){Tt.push(String.fromCharCode(wt&65535)),Re+=3;continue}}}else if(De[Re]<248&&dt(De,Re,3)){var Ot=(De[Re]&7)<<18|(De[Re+1]&63)<<12|(De[Re+2]&63)<<6|De[Re+3]&63;if(Ot>65536&&Ot<1114112){Ot-=65536,Tt.push(String.fromCharCode(Ot>>>10|55296)),Tt.push(String.fromCharCode(Ot&1023|56320)),Re+=4;continue}}}Tt.push(String.fromCharCode(65533)),++Re}return Tt.join("")}var ue=Fe,et=function(){var Zt=new ArrayBuffer(2);return new DataView(Zt).setInt16(0,256,!0),new Int16Array(Zt)[0]===256}(),he=function(){function Zt(){Object(y.a)(this,Zt)}return Object(g.a)(Zt,null,[{key:"parseScriptData",value:function(De,Re,Pe){var rt={};try{var wt=Zt.parseValue(De,Re,Pe),Ot=Zt.parseValue(De,Re+wt.size,Pe-wt.size);rt[wt.data]=Ot.data}catch($t){l.e("AMF",$t.toString())}return rt}},{key:"parseObject",value:function(De,Re,Pe){if(Pe<3)throw new u("Data not enough when parse ScriptDataObject");var rt=Zt.parseString(De,Re,Pe),wt=Zt.parseValue(De,Re+rt.size,Pe-rt.size),Ot=wt.objectEnd;return{data:{name:rt.data,value:wt.data},size:rt.size+wt.size,objectEnd:Ot}}},{key:"parseVariable",value:function(De,Re,Pe){return Zt.parseObject(De,Re,Pe)}},{key:"parseString",value:function(De,Re,Pe){if(Pe<2)throw new u("Data not enough when parse String");var rt=new DataView(De,Re,Pe),wt=rt.getUint16(0,!et),Ot;return wt>0?Ot=ue(new Uint8Array(De,Re+2,wt)):Ot="",{data:Ot,size:2+wt}}},{key:"parseLongString",value:function(De,Re,Pe){if(Pe<4)throw new u("Data not enough when parse LongString");var rt=new DataView(De,Re,Pe),wt=rt.getUint32(0,!et),Ot;return wt>0?Ot=ue(new Uint8Array(De,Re+4,wt)):Ot="",{data:Ot,size:4+wt}}},{key:"parseDate",value:function(De,Re,Pe){if(Pe<10)throw new u("Data size invalid when parse Date");var rt=new DataView(De,Re,Pe),wt=rt.getFloat64(0,!et),Ot=rt.getInt16(8,!et);return wt+=Ot*60*1e3,{data:new Date(wt),size:8+2}}},{key:"parseValue",value:function(De,Re,Pe){if(Pe<1)throw new u("Data not enough when parse Value");var rt=new DataView(De,Re,Pe),wt=1,Ot=rt.getUint8(0),$t,Mr=!1;try{switch(Ot){case 0:$t=rt.getFloat64(1,!et),wt+=8;break;case 1:{var Vr=rt.getUint8(1);$t=!!Vr,wt+=1;break}case 2:{var hn=Zt.parseString(De,Re+1,Pe-1);$t=hn.data,wt+=hn.size;break}case 3:{$t={};var Vt=0;for((rt.getUint32(Pe-4,!et)&16777215)===9&&(Vt=3);wt<Pe-4;){var yt=Zt.parseObject(De,Re+wt,Pe-wt-Vt);if(yt.objectEnd)break;$t[yt.data.name]=yt.data.value,wt+=yt.size}if(wt<=Pe-3){var xt=rt.getUint32(wt-1,!et)&16777215;xt===9&&(wt+=3)}break}case 8:{$t={},wt+=4;var dr=0;for((rt.getUint32(Pe-4,!et)&16777215)===9&&(dr=3);wt<Pe-8;){var er=Zt.parseVariable(De,Re+wt,Pe-wt-dr);if(er.objectEnd)break;$t[er.data.name]=er.data.value,wt+=er.size}if(wt<=Pe-3){var Ut=rt.getUint32(wt-1,!et)&16777215;Ut===9&&(wt+=3)}break}case 9:$t=void 0,wt=1,Mr=!0;break;case 10:{$t=[];var ir=rt.getUint32(1,!et);wt+=4;for(var Ft=0;Ft<ir;Ft++){var rr=Zt.parseValue(De,Re+wt,Pe-wt);$t.push(rr.data),wt+=rr.size}break}case 11:{var Kr=Zt.parseDate(De,Re+1,Pe-1);$t=Kr.data,wt+=Kr.size;break}case 12:{var Rr=Zt.parseString(De,Re+1,Pe-1);$t=Rr.data,wt+=Rr.size;break}default:wt=Pe,l.w("AMF","Unsupported AMF value type "+Ot)}}catch(kr){l.e("AMF",kr.toString())}return{data:$t,size:wt,objectEnd:Mr}}}]),Zt}(),J=he,Y=function(){function Zt(Tt){Object(y.a)(this,Zt),this.TAG="ExpGolomb",this._buffer=Tt,this._buffer_index=0,this._total_bytes=Tt.byteLength,this._total_bits=Tt.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(g.a)(Zt,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var De=this._total_bytes-this._buffer_index;if(De<=0)throw new u("ExpGolomb: _fillCurrentWord() but no bytes available");var Re=Math.min(4,De),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Re)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=Re,this._current_word_bits_left=Re*8}},{key:"readBits",value:function(De){if(De>32)throw new r("ExpGolomb: readBits() bits exceeded max 32bits!");if(De<=this._current_word_bits_left){var Re=this._current_word>>>32-De;return this._current_word<<=De,this._current_word_bits_left-=De,Re}var Pe=this._current_word_bits_left?this._current_word:0;Pe=Pe>>>32-this._current_word_bits_left;var rt=De-this._current_word_bits_left;this._fillCurrentWord();var wt=Math.min(rt,this._current_word_bits_left),Ot=this._current_word>>>32-wt;return this._current_word<<=wt,this._current_word_bits_left-=wt,Pe=Pe<<wt|Ot,Pe}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var De;for(De=0;De<this._current_word_bits_left;De++)if((this._current_word&2147483648>>>De)!==0)return this._current_word<<=De,this._current_word_bits_left-=De,De;return this._fillCurrentWord(),De+this._skipLeadingZero()}},{key:"readUEG",value:function(){var De=this._skipLeadingZero();return this.readBits(De+1)-1}},{key:"readSEG",value:function(){var De=this.readUEG();return De&1?De+1>>>1:-1*(De>>>1)}}]),Zt}(),$=Y,de=function(){function Zt(){Object(y.a)(this,Zt)}return Object(g.a)(Zt,null,[{key:"_ebsp2rbsp",value:function(De){for(var Re=De,Pe=Re.byteLength,rt=new Uint8Array(Pe),wt=0,Ot=0;Ot<Pe;Ot++){if(Ot>=2&&(Re[Ot]===3&&Re[Ot-1]===0&&Re[Ot-2]===0))continue;rt[wt]=Re[Ot],wt++}return new Uint8Array(rt.buffer,0,wt)}},{key:"parseSPS",value:function(De){var Re=Zt._ebsp2rbsp(De),Pe=new $(Re);Pe.readByte();var rt=Pe.readByte();Pe.readByte();var wt=Pe.readByte();Pe.readUEG();var Ot=Zt.getProfileString(rt),$t=Zt.getLevelString(wt),Mr=1,Vr=420,hn=[0,420,422,444],Vt=8;if((rt===100||rt===110||rt===122||rt===244||rt===44||rt===83||rt===86||rt===118||rt===128||rt===138||rt===144)&&(Mr=Pe.readUEG(),Mr===3&&Pe.readBits(1),Mr<=3&&(Vr=hn[Mr]),Vt=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool()))for(var yt=Mr!==3?8:12,xt=0;xt<yt;xt++)Pe.readBool()&&(xt<6?Zt._skipScalingList(Pe,16):Zt._skipScalingList(Pe,64));Pe.readUEG();var dr=Pe.readUEG();if(dr===0)Pe.readUEG();else if(dr===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();for(var er=Pe.readUEG(),Ut=0;Ut<er;Ut++)Pe.readSEG()}var ir=Pe.readUEG();Pe.readBits(1);var Ft=Pe.readUEG(),rr=Pe.readUEG(),Kr=Pe.readBits(1);Kr===0&&Pe.readBits(1),Pe.readBits(1);var Rr=0,kr=0,dn=0,yn=0,ri=Pe.readBool();ri&&(Rr=Pe.readUEG(),kr=Pe.readUEG(),dn=Pe.readUEG(),yn=Pe.readUEG());var $n=1,pi=1,_i=0,Di=!0,Wi=0,at=0,Le=Pe.readBool();if(Le){if(Pe.readBool()){var je=Pe.readByte(),Xe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],it=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];je>0&&je<16?($n=Xe[je-1],pi=it[je-1]):je===255&&($n=Pe.readByte()<<8|Pe.readByte(),pi=Pe.readByte()<<8|Pe.readByte())}if(Pe.readBool()&&Pe.readBool(),Pe.readBool()&&(Pe.readBits(4),Pe.readBool()&&Pe.readBits(24)),Pe.readBool()&&(Pe.readUEG(),Pe.readUEG()),Pe.readBool()){var Ze=Pe.readBits(32),ot=Pe.readBits(32);Di=Pe.readBool(),Wi=ot,at=Ze*2,_i=Wi/at}}var Lt=1;($n!==1||pi!==1)&&(Lt=$n/pi);var At=0,mr=0;if(Mr===0)At=1,mr=2-Kr;else{var qr=Mr===3?1:2,Qr=Mr===1?2:1;At=qr,mr=Qr*(2-Kr)}var gn=(Ft+1)*16,yr=(2-Kr)*((rr+1)*16);gn-=(Rr+kr)*At,yr-=(dn+yn)*mr;var Vn=Math.ceil(gn*Lt);return Pe.destroy(),Pe=null,{profile_string:Ot,level_string:$t,bit_depth:Vt,ref_frames:ir,chroma_format:Vr,chroma_format_string:Zt.getChromaFormatString(Vr),frame_rate:{fixed:Di,fps:_i,fps_den:at,fps_num:Wi},sar_ratio:{width:$n,height:pi},codec_size:{width:gn,height:yr},present_size:{width:Vn,height:yr}}}},{key:"_skipScalingList",value:function(De,Re){for(var Pe=8,rt=8,wt=0,Ot=0;Ot<Re;Ot++)rt!==0&&(wt=De.readSEG(),rt=(Pe+wt+256)%256),Pe=rt===0?Pe:rt}},{key:"getProfileString",value:function(De){switch(De){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(De){return(De/10).toFixed(1)}},{key:"getChromaFormatString",value:function(De){switch(De){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),Zt}(),be=de,Te={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Be=Te;function fe(Zt){return Zt>>>8&255|(Zt&255)<<8}function xe(Zt){return(Zt&4278190080)>>>24|(Zt&16711680)>>>8|(Zt&65280)<<8|(Zt&255)<<24}function ke(Zt,Tt){return Zt[Tt]<<24|Zt[Tt+1]<<16|Zt[Tt+2]<<8|Zt[Tt+3]}var nt=function(){function Zt(Tt,De){Object(y.a)(this,Zt),this.TAG="FLVDemuxer",this._config=De,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=Tt.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=Tt.hasAudioTrack,this._hasVideo=Tt.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ve,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var Re=new ArrayBuffer(2);return new DataView(Re).setInt16(0,256,!0),new Int16Array(Re)[0]===256}()}return Object(g.a)(Zt,[{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(De){return De.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(De){this._onTrackMetadata=De}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(De){this._onMediaInfo=De}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(De){this._onMetaDataArrived=De}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(De){this._onScriptDataArrived=De}},{key:"onError",get:function(){return this._onError},set:function(De){this._onError=De}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(De){this._onDataAvailable=De}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(De){this._timestampBase=De}},{key:"overridedDuration",get:function(){return this._duration},set:function(De){this._durationOverrided=!0,this._duration=De,this._mediaInfo.duration=De}},{key:"overridedHasAudio",set:function(De){this._hasAudioFlagOverrided=!0,this._hasAudio=De,this._mediaInfo.hasAudio=De}},{key:"overridedHasVideo",set:function(De){this._hasVideoFlagOverrided=!0,this._hasVideo=De,this._mediaInfo.hasVideo=De}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Ve}},{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(De,Re){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new u("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Pe=0,rt=this._littleEndian;if(Re===0)if(De.byteLength>13){var wt=Zt.probe(De);Pe=wt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,Re+Pe!==this._dataOffset&&l.w(this.TAG,"First time parsing but chunk byteStart invalid!");var Ot=new DataView(De,Pe),$t=Ot.getUint32(0,!rt);$t!==0&&l.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4}for(;Pe<De.byteLength;){this._dispatch=!0;var Mr=new DataView(De,Pe);if(Pe+11+4>De.byteLength)break;var Vr=Mr.getUint8(0),hn=Mr.getUint32(0,!rt)&16777215;if(Pe+11+hn+4>De.byteLength)break;if(Vr!==8&&Vr!==9&&Vr!==18){l.w(this.TAG,"Unsupported tag type ".concat(Vr,", skipped")),Pe+=11+hn+4;continue}var Vt=Mr.getUint8(4),yt=Mr.getUint8(5),xt=Mr.getUint8(6),dr=Mr.getUint8(7),er=xt|yt<<8|Vt<<16|dr<<24,Ut=Mr.getUint32(7,!rt)&16777215;Ut!==0&&l.w(this.TAG,"Meet tag which has StreamID != 0!");var ir=Pe+11;switch(Vr){case 8:this._parseAudioData(De,ir,hn,er);break;case 9:this._parseVideoData(De,ir,hn,er,Re+Pe);break;case 18:this._parseScriptData(De,ir,hn);break}var Ft=Mr.getUint32(11+hn,!rt);Ft!==11+hn&&l.w(this.TAG,"Invalid PrevTagSize ".concat(Ft)),Pe+=11+hn+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Pe}},{key:"_parseScriptData",value:function(De,Re,Pe){var rt=J.parseScriptData(De,Re,Pe);if(rt.hasOwnProperty("onMetaData")){if(rt.onMetaData==null||typeof rt.onMetaData!="object"){l.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&l.w(this.TAG,"Found another onMetaData tag!"),this._metadata=rt;var wt=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},wt)),typeof wt.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=wt.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof wt.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=wt.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof wt.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=wt.audiodatarate),typeof wt.videodatarate=="number"&&(this._mediaInfo.videoDataRate=wt.videodatarate),typeof wt.width=="number"&&(this._mediaInfo.width=wt.width),typeof wt.height=="number"&&(this._mediaInfo.height=wt.height),typeof wt.duration=="number"){if(!this._durationOverrided){var Ot=Math.floor(wt.duration*this._timescale);this._duration=Ot,this._mediaInfo.duration=Ot}}else this._mediaInfo.duration=0;if(typeof wt.framerate=="number"){var $t=Math.floor(wt.framerate*1e3);if($t>0){var Mr=$t/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Mr,this._referenceFrameRate.fps_num=$t,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Mr}}if(typeof wt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var Vr=wt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Vr),wt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=wt,l.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(rt).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},rt)))}},{key:"_parseKeyframesIndex",value:function(De){for(var Re=[],Pe=[],rt=1;rt<De.times.length;rt++){var wt=this._timestampBase+Math.floor(De.times[rt]*1e3);Re.push(wt),Pe.push(De.filepositions[rt])}return{times:Re,filepositions:Pe}}},{key:"_parseAudioData",value:function(De,Re,Pe,rt){if(Pe<=1){l.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var wt=this._littleEndian,Ot=new DataView(De,Re,Pe),$t=Ot.getUint8(0),Mr=$t>>>4;if(Mr!==2&&Mr!==10){this._onError(Be.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Mr);return}var Vr=0,hn=($t&12)>>>2;if(hn>=0&&hn<=4)Vr=this._flvSoundRateTable[hn];else{this._onError(Be.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+hn);return}var Vt=($t&2)>>>1,yt=$t&1,xt=this._audioMetadata,dr=this._audioTrack;if(xt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),xt=this._audioMetadata={},xt.type="audio",xt.id=dr.id,xt.timescale=this._timescale,xt.duration=this._duration,xt.audioSampleRate=Vr,xt.channelCount=yt===0?1:2),Mr===10){var er=this._parseAACAudioData(De,Re+1,Pe-1);if(er==null)return;if(er.packetType===0){xt.config&&l.w(this.TAG,"Found another AudioSpecificConfig!");var Ut=er.data;xt.audioSampleRate=Ut.samplingRate,xt.channelCount=Ut.channelCount,xt.codec=Ut.codec,xt.originalCodec=Ut.originalCodec,xt.config=Ut.config,xt.refSampleDuration=1024/xt.audioSampleRate*xt.timescale,l.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",xt);var ir=this._mediaInfo;ir.audioCodec=xt.originalCodec,ir.audioSampleRate=xt.audioSampleRate,ir.audioChannelCount=xt.channelCount,ir.hasVideo?ir.videoCodec!=null&&(ir.mimeType='video/x-flv; codecs="'+ir.videoCodec+","+ir.audioCodec+'"'):ir.mimeType='video/x-flv; codecs="'+ir.audioCodec+'"',ir.isComplete()&&this._onMediaInfo(ir)}else if(er.packetType===1){var Ft=this._timestampBase+rt,rr={unit:er.data,length:er.data.byteLength,dts:Ft,pts:Ft};dr.samples.push(rr),dr.length+=er.data.length}else l.e(this.TAG,"Flv: Unsupported AAC data type ".concat(er.packetType))}else if(Mr===2){if(!xt.codec){var Kr=this._parseMP3AudioData(De,Re+1,Pe-1,!0);if(Kr==null)return;xt.audioSampleRate=Kr.samplingRate,xt.channelCount=Kr.channelCount,xt.codec=Kr.codec,xt.originalCodec=Kr.originalCodec,xt.refSampleDuration=1152/xt.audioSampleRate*xt.timescale,l.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",xt);var Rr=this._mediaInfo;Rr.audioCodec=xt.codec,Rr.audioSampleRate=xt.audioSampleRate,Rr.audioChannelCount=xt.channelCount,Rr.audioDataRate=Kr.bitRate,Rr.hasVideo?Rr.videoCodec!=null&&(Rr.mimeType='video/x-flv; codecs="'+Rr.videoCodec+","+Rr.audioCodec+'"'):Rr.mimeType='video/x-flv; codecs="'+Rr.audioCodec+'"',Rr.isComplete()&&this._onMediaInfo(Rr)}var kr=this._parseMP3AudioData(De,Re+1,Pe-1,!1);if(kr==null)return;var dn=this._timestampBase+rt,yn={unit:kr,length:kr.byteLength,dts:dn,pts:dn};dr.samples.push(yn),dr.length+=kr.length}}},{key:"_parseAACAudioData",value:function(De,Re,Pe){if(Pe<=1){l.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var rt={},wt=new Uint8Array(De,Re,Pe);return rt.packetType=wt[0],wt[0]===0?rt.data=this._parseAACAudioSpecificConfig(De,Re+1,Pe-1):rt.data=wt.subarray(1),rt}},{key:"_parseAACAudioSpecificConfig",value:function(De,Re,Pe){var rt=new Uint8Array(De,Re,Pe),wt=null,Ot=0,$t=0,Mr=null,Vr=0,hn=null;if(Ot=$t=rt[0]>>>3,Vr=(rt[0]&7)<<1|rt[1]>>>7,Vr<0||Vr>=this._mpegSamplingRates.length){this._onError(Be.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Vt=this._mpegSamplingRates[Vr],yt=(rt[1]&120)>>>3;if(yt<0||yt>=8){this._onError(Be.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Ot===5&&(hn=(rt[1]&7)<<1|rt[2]>>>7,Mr=(rt[2]&124)>>>2);var xt=self.navigator.userAgent.toLowerCase();return xt.indexOf("firefox")!==-1?Vr>=6?(Ot=5,wt=new Array(4),hn=Vr-3):(Ot=2,wt=new Array(2),hn=Vr):xt.indexOf("android")!==-1?(Ot=2,wt=new Array(2),hn=Vr):(Ot=5,hn=Vr,wt=new Array(4),Vr>=6?hn=Vr-3:yt===1&&(Ot=2,wt=new Array(2),hn=Vr)),wt[0]=Ot<<3,wt[0]|=(Vr&15)>>>1,wt[1]=(Vr&15)<<7,wt[1]|=(yt&15)<<3,Ot===5&&(wt[1]|=(hn&15)>>>1,wt[2]=(hn&1)<<7,wt[2]|=2<<2,wt[3]=0),{config:wt,samplingRate:Vt,channelCount:yt,codec:"mp4a.40."+Ot,originalCodec:"mp4a.40."+$t}}},{key:"_parseMP3AudioData",value:function(De,Re,Pe,rt){if(Pe<4){l.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var wt=this._littleEndian,Ot=new Uint8Array(De,Re,Pe),$t=null;if(rt){if(Ot[0]!==255)return;var Mr=Ot[1]>>>3&3,Vr=(Ot[1]&6)>>1,hn=(Ot[2]&240)>>>4,Vt=(Ot[2]&12)>>>2,yt=Ot[3]>>>6&3,xt=yt!==3?2:1,dr=0,er=0,Ut=34,ir="mp3";switch(Mr){case 0:dr=this._mpegAudioV25SampleRateTable[Vt];break;case 2:dr=this._mpegAudioV20SampleRateTable[Vt];break;case 3:dr=this._mpegAudioV10SampleRateTable[Vt];break}switch(Vr){case 1:Ut=34,hn<this._mpegAudioL3BitRateTable.length&&(er=this._mpegAudioL3BitRateTable[hn]);break;case 2:Ut=33,hn<this._mpegAudioL2BitRateTable.length&&(er=this._mpegAudioL2BitRateTable[hn]);break;case 3:Ut=32,hn<this._mpegAudioL1BitRateTable.length&&(er=this._mpegAudioL1BitRateTable[hn]);break}$t={bitRate:er,samplingRate:dr,channelCount:xt,codec:ir,originalCodec:ir}}else $t=Ot;return $t}},{key:"_parseVideoData",value:function(De,Re,Pe,rt,wt){if(Pe<=1){l.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var Ot=new Uint8Array(De,Re,Pe)[0],$t=(Ot&240)>>>4,Mr=Ot&15;if(Mr!==7){this._onError(Be.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Mr));return}this._parseAVCVideoPacket(De,Re+1,Pe-1,rt,wt,$t)}},{key:"_parseAVCVideoPacket",value:function(De,Re,Pe,rt,wt,Ot){if(Pe<4){l.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var $t=this._littleEndian,Mr=new DataView(De,Re,Pe),Vr=Mr.getUint8(0),hn=Mr.getUint32(0,!$t)&16777215,Vt=hn<<8>>8;if(Vr===0)this._parseAVCDecoderConfigurationRecord(De,Re+4,Pe-4);else if(Vr===1)this._parseAVCVideoData(De,Re+4,Pe-4,rt,wt,Ot,Vt);else if(!(Vr===2)){this._onError(Be.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Vr));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(De,Re,Pe){if(Pe<7){l.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var rt=this._videoMetadata,wt=this._videoTrack,Ot=this._littleEndian,$t=new DataView(De,Re,Pe);rt?typeof rt.avcc!="undefined"&&l.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),rt=this._videoMetadata={},rt.type="video",rt.id=wt.id,rt.timescale=this._timescale,rt.duration=this._duration);var Mr=$t.getUint8(0),Vr=$t.getUint8(1),hn=$t.getUint8(2),Vt=$t.getUint8(3);if(Mr!==1||Vr===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=($t.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Be.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var yt=$t.getUint8(5)&31;if(yt===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else yt>1&&l.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(yt));for(var xt=6,dr=0;dr<yt;dr++){var er=$t.getUint16(xt,!Ot);if(xt+=2,er===0)continue;var Ut=new Uint8Array(De,Re+xt,er);xt+=er;var ir=be.parseSPS(Ut);if(dr!==0)continue;rt.codecWidth=ir.codec_size.width,rt.codecHeight=ir.codec_size.height,rt.presentWidth=ir.present_size.width,rt.presentHeight=ir.present_size.height,rt.profile=ir.profile_string,rt.level=ir.level_string,rt.bitDepth=ir.bit_depth,rt.chromaFormat=ir.chroma_format,rt.sarRatio=ir.sar_ratio,rt.frameRate=ir.frame_rate,(ir.frame_rate.fixed===!1||ir.frame_rate.fps_num===0||ir.frame_rate.fps_den===0)&&(rt.frameRate=this._referenceFrameRate);var Ft=rt.frameRate.fps_den,rr=rt.frameRate.fps_num;rt.refSampleDuration=rt.timescale*(Ft/rr);for(var Kr=Ut.subarray(1,4),Rr="avc1.",kr=0;kr<3;kr++){var dn=Kr[kr].toString(16);dn.length<2&&(dn="0"+dn),Rr+=dn}rt.codec=Rr;var yn=this._mediaInfo;yn.width=rt.codecWidth,yn.height=rt.codecHeight,yn.fps=rt.frameRate.fps,yn.profile=rt.profile,yn.level=rt.level,yn.refFrames=ir.ref_frames,yn.chromaFormat=ir.chroma_format_string,yn.sarNum=rt.sarRatio.width,yn.sarDen=rt.sarRatio.height,yn.videoCodec=Rr,yn.hasAudio?yn.audioCodec!=null&&(yn.mimeType='video/x-flv; codecs="'+yn.videoCodec+","+yn.audioCodec+'"'):yn.mimeType='video/x-flv; codecs="'+yn.videoCodec+'"',yn.isComplete()&&this._onMediaInfo(yn)}var ri=$t.getUint8(xt);if(ri===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ri>1&&l.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(ri));xt++;for(var $n=0;$n<ri;$n++){var pi=$t.getUint16(xt,!Ot);if(xt+=2,pi===0)continue;xt+=pi}rt.avcc=new Uint8Array(Pe),rt.avcc.set(new Uint8Array(De,Re,Pe),0),l.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",rt)}},{key:"_parseAVCVideoData",value:function(De,Re,Pe,rt,wt,Ot,$t){for(var Mr=this._littleEndian,Vr=new DataView(De,Re,Pe),hn=[],Vt=0,yt=0,xt=this._naluLengthSize,dr=this._timestampBase+rt,er=Ot===1;yt<Pe;){if(yt+4>=Pe){l.w(this.TAG,"Malformed Nalu near timestamp ".concat(dr,", offset = ").concat(yt,", dataSize = ").concat(Pe));break}var Ut=Vr.getUint32(yt,!Mr);if(xt===3&&(Ut>>>=8),Ut>Pe-xt){l.w(this.TAG,"Malformed Nalus near timestamp ".concat(dr,", NaluSize > DataSize!"));return}var ir=Vr.getUint8(yt+xt)&31;ir===5&&(er=!0);var Ft=new Uint8Array(De,Re+yt,xt+Ut),rr={type:ir,data:Ft};hn.push(rr),Vt+=Ft.byteLength,yt+=xt+Ut}if(hn.length){var Kr=this._videoTrack,Rr={units:hn,length:Vt,isKeyframe:er,dts:dr,cts:$t,pts:dr+$t};er&&(Rr.fileposition=wt),Kr.samples.push(Rr),Kr.length+=Vt}}}],[{key:"probe",value:function(De){var Re=new Uint8Array(De),Pe={match:!1};if(Re[0]!==70||Re[1]!==76||Re[2]!==86||Re[3]!==1)return Pe;var rt=(Re[4]&4)>>>2!==0,wt=(Re[4]&1)!==0,Ot=ke(Re,5);return Ot<9?Pe:{match:!0,consumed:Ot,dataOffset:Ot,hasAudioTrack:rt,hasVideoTrack:wt}}}]),Zt}(),Ct=nt,pt=function(){function Zt(){Object(y.a)(this,Zt)}return Object(g.a)(Zt,null,[{key:"init",value:function(){Zt.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 De in Zt.types)Zt.types.hasOwnProperty(De)&&(Zt.types[De]=[De.charCodeAt(0),De.charCodeAt(1),De.charCodeAt(2),De.charCodeAt(3)]);var Re=Zt.constants={};Re.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Re.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Re.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Re.STSC=Re.STCO=Re.STTS,Re.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Re.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Re.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Re.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Re.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Re.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(De){for(var Re=8,Pe=null,rt=Array.prototype.slice.call(arguments,1),wt=rt.length,Ot=0;Ot<wt;Ot++)Re+=rt[Ot].byteLength;Pe=new Uint8Array(Re),Pe[0]=Re>>>24&255,Pe[1]=Re>>>16&255,Pe[2]=Re>>>8&255,Pe[3]=Re&255,Pe.set(De,4);for(var $t=8,Mr=0;Mr<wt;Mr++)Pe.set(rt[Mr],$t),$t+=rt[Mr].byteLength;return Pe}},{key:"generateInitSegment",value:function(De){var Re=Zt.box(Zt.types.ftyp,Zt.constants.FTYP),Pe=Zt.moov(De),rt=new Uint8Array(Re.byteLength+Pe.byteLength);return rt.set(Re,0),rt.set(Pe,Re.byteLength),rt}},{key:"moov",value:function(De){var Re=Zt.mvhd(De.timescale,De.duration),Pe=Zt.trak(De),rt=Zt.mvex(De);return Zt.box(Zt.types.moov,Re,Pe,rt)}},{key:"mvhd",value:function(De,Re){return Zt.box(Zt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(De){return Zt.box(Zt.types.trak,Zt.tkhd(De),Zt.mdia(De))}},{key:"tkhd",value:function(De){var Re=De.id,Pe=De.duration,rt=De.presentWidth,wt=De.presentHeight;return Zt.box(Zt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,rt>>>8&255,rt&255,0,0,wt>>>8&255,wt&255,0,0]))}},{key:"mdia",value:function(De){return Zt.box(Zt.types.mdia,Zt.mdhd(De),Zt.hdlr(De),Zt.minf(De))}},{key:"mdhd",value:function(De){var Re=De.timescale,Pe=De.duration;return Zt.box(Zt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}},{key:"hdlr",value:function(De){var Re=null;return De.type==="audio"?Re=Zt.constants.HDLR_AUDIO:Re=Zt.constants.HDLR_VIDEO,Zt.box(Zt.types.hdlr,Re)}},{key:"minf",value:function(De){var Re=null;return De.type==="audio"?Re=Zt.box(Zt.types.smhd,Zt.constants.SMHD):Re=Zt.box(Zt.types.vmhd,Zt.constants.VMHD),Zt.box(Zt.types.minf,Re,Zt.dinf(),Zt.stbl(De))}},{key:"dinf",value:function(){var De=Zt.box(Zt.types.dinf,Zt.box(Zt.types.dref,Zt.constants.DREF));return De}},{key:"stbl",value:function(De){var Re=Zt.box(Zt.types.stbl,Zt.stsd(De),Zt.box(Zt.types.stts,Zt.constants.STTS),Zt.box(Zt.types.stsc,Zt.constants.STSC),Zt.box(Zt.types.stsz,Zt.constants.STSZ),Zt.box(Zt.types.stco,Zt.constants.STCO));return Re}},{key:"stsd",value:function(De){return De.type==="audio"?De.codec==="mp3"?Zt.box(Zt.types.stsd,Zt.constants.STSD_PREFIX,Zt.mp3(De)):Zt.box(Zt.types.stsd,Zt.constants.STSD_PREFIX,Zt.mp4a(De)):Zt.box(Zt.types.stsd,Zt.constants.STSD_PREFIX,Zt.avc1(De))}},{key:"mp3",value:function(De){var Re=De.channelCount,Pe=De.audioSampleRate,rt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Re,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Zt.box(Zt.types[".mp3"],rt)}},{key:"mp4a",value:function(De){var Re=De.channelCount,Pe=De.audioSampleRate,rt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Re,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Zt.box(Zt.types.mp4a,rt,Zt.esds(De))}},{key:"esds",value:function(De){var Re=De.config||[],Pe=Re.length,rt=new Uint8Array([0,0,0,0,3,23+Pe,0,1,0,4,15+Pe,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Pe]).concat(Re).concat([6,1,2]));return Zt.box(Zt.types.esds,rt)}},{key:"avc1",value:function(De){var Re=De.avcc,Pe=De.codecWidth,rt=De.codecHeight,wt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Pe>>>8&255,Pe&255,rt>>>8&255,rt&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 Zt.box(Zt.types.avc1,wt,Zt.box(Zt.types.avcC,Re))}},{key:"mvex",value:function(De){return Zt.box(Zt.types.mvex,Zt.trex(De))}},{key:"trex",value:function(De){var Re=De.id,Pe=new Uint8Array([0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Zt.box(Zt.types.trex,Pe)}},{key:"moof",value:function(De,Re){return Zt.box(Zt.types.moof,Zt.mfhd(De.sequenceNumber),Zt.traf(De,Re))}},{key:"mfhd",value:function(De){var Re=new Uint8Array([0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255]);return Zt.box(Zt.types.mfhd,Re)}},{key:"traf",value:function(De,Re){var Pe=De.id,rt=Zt.box(Zt.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),wt=Zt.box(Zt.types.tfdt,new Uint8Array([0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255])),Ot=Zt.sdtp(De),$t=Zt.trun(De,Ot.byteLength+16+16+8+16+8+8);return Zt.box(Zt.types.traf,rt,wt,$t,Ot)}},{key:"sdtp",value:function(De){for(var Re=De.samples||[],Pe=Re.length,rt=new Uint8Array(4+Pe),wt=0;wt<Pe;wt++){var Ot=Re[wt].flags;rt[wt+4]=Ot.isLeading<<6|Ot.dependsOn<<4|Ot.isDependedOn<<2|Ot.hasRedundancy}return Zt.box(Zt.types.sdtp,rt)}},{key:"trun",value:function(De,Re){var Pe=De.samples||[],rt=Pe.length,wt=12+16*rt,Ot=new Uint8Array(wt);Re+=8+wt,Ot.set([0,0,15,1,rt>>>24&255,rt>>>16&255,rt>>>8&255,rt&255,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255],0);for(var $t=0;$t<rt;$t++){var Mr=Pe[$t].duration,Vr=Pe[$t].size,hn=Pe[$t].flags,Vt=Pe[$t].cts;Ot.set([Mr>>>24&255,Mr>>>16&255,Mr>>>8&255,Mr&255,Vr>>>24&255,Vr>>>16&255,Vr>>>8&255,Vr&255,hn.isLeading<<2|hn.dependsOn,hn.isDependedOn<<6|hn.hasRedundancy<<4|hn.isNonSync,0,0,Vt>>>24&255,Vt>>>16&255,Vt>>>8&255,Vt&255],12+16*$t)}return Zt.box(Zt.types.trun,Ot)}},{key:"mdat",value:function(De){return Zt.box(Zt.types.mdat,De)}}]),Zt}();pt.init();var He=pt,nr=function(){function Zt(){Object(y.a)(this,Zt)}return Object(g.a)(Zt,null,[{key:"getSilentFrame",value:function(De,Re){if(De==="mp4a.40.2"){if(Re===1)return new Uint8Array([0,200,0,128,35,128]);if(Re===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Re===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Re===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Re===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(Re===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(Re===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(Re===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(Re===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),Zt}(),ht=nr,Gt=Object(g.a)(function Zt(Tt,De,Re,Pe,rt){Object(y.a)(this,Zt),this.dts=Tt,this.pts=De,this.duration=Re,this.originalDts=Pe,this.isSyncPoint=rt,this.fileposition=null}),pr=function(){function Zt(){Object(y.a)(this,Zt),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(g.a)(Zt,[{key:"appendSyncPoint",value:function(De){De.isSyncPoint=!0,this.syncPoints.push(De)}}]),Zt}(),Qt=function(){function Zt(){Object(y.a)(this,Zt),this._list=[]}return Object(g.a)(Zt,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(De){var Re=this._list;if(De.length===0)return;Re.length>0&&De[0].originalDts<Re[Re.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Re,De)}},{key:"getLastSyncPointBeforeDts",value:function(De){if(this._list.length==0)return null;var Re=this._list,Pe=0,rt=Re.length-1,wt=0,Ot=0,$t=rt;for(De<Re[0].dts&&(Pe=0,Ot=$t+1);Ot<=$t;)if(wt=Ot+Math.floor(($t-Ot)/2),wt===rt||De>=Re[wt].dts&&De<Re[wt+1].dts){Pe=wt;break}else Re[wt].dts<De?Ot=wt+1:$t=wt-1;return this._list[Pe]}}]),Zt}(),Ht=function(){function Zt(Tt){Object(y.a)(this,Zt),this._type=Tt,this._list=[],this._lastAppendLocation=-1}return Object(g.a)(Zt,[{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(De){var Re=this._list;if(Re.length===0)return-2;var Pe=Re.length-1,rt=0,wt=0,Ot=Pe,$t=0;if(De<Re[0].originalBeginDts)return $t=-1,$t;for(;wt<=Ot;)if(rt=wt+Math.floor((Ot-wt)/2),rt===Pe||De>Re[rt].lastSample.originalDts&&De<Re[rt+1].originalBeginDts){$t=rt;break}else Re[rt].originalBeginDts<De?wt=rt+1:Ot=rt-1;return $t}},{key:"_searchNearestSegmentAfter",value:function(De){return this._searchNearestSegmentBefore(De)+1}},{key:"append",value:function(De){var Re=this._list,Pe=De,rt=this._lastAppendLocation,wt=0;rt!==-1&&rt<Re.length&&Pe.originalBeginDts>=Re[rt].lastSample.originalDts&&(rt===Re.length-1||rt<Re.length-1&&Pe.originalBeginDts<Re[rt+1].originalBeginDts)?wt=rt+1:Re.length>0&&(wt=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=wt,this._list.splice(wt,0,Pe)}},{key:"getLastSegmentBefore",value:function(De){var Re=this._searchNearestSegmentBefore(De);return Re>=0?this._list[Re]:null}},{key:"getLastSampleBefore",value:function(De){var Re=this.getLastSegmentBefore(De);return Re!=null?Re.lastSample:null}},{key:"getLastSyncPointBefore",value:function(De){for(var Re=this._searchNearestSegmentBefore(De),Pe=this._list[Re].syncPoints;Pe.length===0&&Re>0;)Re--,Pe=this._list[Re].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}]),Zt}(),Jt=function(){function Zt(Tt){Object(y.a)(this,Zt),this.TAG="MP4Remuxer",this._config=Tt,this._isLive=Tt.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Ht("audio"),this._videoSegmentInfoList=new Ht("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(T.chrome&&(T.version.major<50||T.version.major===50&&T.version.build<2661)),this._fillSilentAfterSeek=T.msedge||T.msie,this._mp3UseMpegAudio=!T.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(g.a)(Zt,[{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(De){return De.onDataAvailable=this.remux.bind(this),De.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(De){this._onInitSegment=De}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(De){this._onMediaSegment=De}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(De){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(De,Re){if(!this._onMediaSegment)throw new u("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(De,Re),this._remuxVideo(Re),this._remuxAudio(De)}},{key:"_onTrackMetadataReceived",value:function(De,Re){var Pe=null,rt="mp4",wt=Re.codec;if(De==="audio")this._audioMeta=Re,Re.codec==="mp3"&&this._mp3UseMpegAudio?(rt="mpeg",wt="",Pe=new Uint8Array):Pe=He.generateInitSegment(Re);else if(De==="video")this._videoMeta=Re,Pe=He.generateInitSegment(Re);else return;if(!this._onInitSegment)throw new u("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(De,{type:De,data:Pe.buffer,codec:wt,container:"".concat(De,"/").concat(rt),mediaDuration:Re.duration})}},{key:"_calculateDtsBase",value:function(De,Re){if(this._dtsBaseInited)return;De.samples&&De.samples.length&&(this._audioDtsBase=De.samples[0].dts),Re.samples&&Re.samples.length&&(this._videoDtsBase=Re.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var De=this._videoStashedLastSample,Re=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};De!=null&&(Pe.samples.push(De),Pe.length=De.length);var rt={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Re!=null&&(rt.samples.push(Re),rt.length=Re.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(rt,!0)}},{key:"_remuxAudio",value:function(De,Re){if(this._audioMeta==null)return;var Pe=De,rt=Pe.samples,wt=void 0,Ot=-1,$t=-1,Mr=-1,Vr=this._audioMeta.refSampleDuration,hn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Vt=this._dtsBaseInited&&this._audioNextDts===void 0,yt=!1;if(!rt||rt.length===0)return;if(rt.length===1&&!Re)return;var xt=0,dr=null,er=0;hn?(xt=0,er=Pe.length):(xt=8,er=8+Pe.length);var Ut=null;if(rt.length>1&&(Ut=rt.pop(),er-=Ut.length),this._audioStashedLastSample!=null){var ir=this._audioStashedLastSample;this._audioStashedLastSample=null,rt.unshift(ir),er+=ir.length}Ut!=null&&(this._audioStashedLastSample=Ut);var Ft=rt[0].dts-this._dtsBase;if(this._audioNextDts)wt=Ft-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())wt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(yt=!0));else{var rr=this._audioSegmentInfoList.getLastSampleBefore(Ft);if(rr!=null){var Kr=Ft-(rr.originalDts+rr.duration);Kr<=3&&(Kr=0);var Rr=rr.dts+rr.duration+Kr;wt=Ft-Rr}else wt=0}if(yt){var kr=Ft-wt,dn=this._videoSegmentInfoList.getLastSegmentBefore(Ft);if(dn!=null&&dn.beginDts<kr){var yn=ht.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(yn){var ri=dn.beginDts,$n=kr-dn.beginDts;l.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(ri,", duration: ").concat($n)),rt.unshift({unit:yn,dts:ri,pts:ri}),er+=yn.byteLength}}else yt=!1}for(var pi=[],_i=0;_i<rt.length;_i++){var Di=rt[_i],Wi=Di.unit,at=Di.dts-this._dtsBase,Le=at-wt;Ot===-1&&(Ot=Le);var je=0;if(_i!==rt.length-1){var Xe=rt[_i+1].dts-this._dtsBase-wt;je=Xe-Le}else if(Ut!=null){var it=Ut.dts-this._dtsBase-wt;je=it-Le}else pi.length>=1?je=pi[pi.length-1].duration:je=Math.floor(Vr);var Ze=!1,ot=null;if(je>Vr*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!T.safari){Ze=!0;var Lt=Math.abs(je-Vr),At=Math.ceil(Lt/Vr),mr=Le+Vr;l.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
`+"dts: ".concat(Le+je," ms, expected: ").concat(Le+Math.round(Vr)," ms, ")+"delta: ".concat(Math.round(Lt)," ms, generate: ").concat(At," frames"));var qr=ht.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);qr==null&&(l.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),qr=Wi),ot=[];for(var Qr=0;Qr<At;Qr++){var gn=Math.round(mr);if(ot.length>0){var yr=ot[ot.length-1];yr.duration=gn-yr.dts}var Vn={dts:gn,pts:gn,cts:0,unit:qr,size:qr.byteLength,duration:0,originalDts:at,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};ot.push(Vn),er+=Vn.size,mr+=Vr}var Br=ot[ot.length-1];Br.duration=Le+je-Br.dts,je=Math.round(Vr)}pi.push({dts:Le,pts:Le,cts:0,unit:Di.unit,size:Di.unit.byteLength,duration:je,originalDts:at,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ze&&pi.push.apply(pi,ot)}hn?dr=new Uint8Array(er):(dr=new Uint8Array(er),dr[0]=er>>>24&255,dr[1]=er>>>16&255,dr[2]=er>>>8&255,dr[3]=er&255,dr.set(He.types.mdat,4));for(var jn=0;jn<pi.length;jn++){var xn=pi[jn].unit;dr.set(xn,xt),xt+=xn.byteLength}var tn=pi[pi.length-1];$t=tn.dts+tn.duration,this._audioNextDts=$t;var ti=new pr;ti.beginDts=Ot,ti.endDts=$t,ti.beginPts=Ot,ti.endPts=$t,ti.originalBeginDts=pi[0].originalDts,ti.originalEndDts=tn.originalDts+tn.duration,ti.firstSample=new Gt(pi[0].dts,pi[0].pts,pi[0].duration,pi[0].originalDts,!1),ti.lastSample=new Gt(tn.dts,tn.pts,tn.duration,tn.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ti),Pe.samples=pi,Pe.sequenceNumber++;var mi=null;hn?mi=new Uint8Array:mi=He.moof(Pe,Ot),Pe.samples=[],Pe.length=0;var Pi={type:"audio",data:this._mergeBoxes(mi,dr).buffer,sampleCount:pi.length,info:ti};hn&&Vt&&(Pi.timestampOffset=Ot),this._onMediaSegment("audio",Pi)}},{key:"_remuxVideo",value:function(De,Re){if(this._videoMeta==null)return;var Pe=De,rt=Pe.samples,wt=void 0,Ot=-1,$t=-1,Mr=-1,Vr=-1;if(!rt||rt.length===0)return;if(rt.length===1&&!Re)return;var hn=8,Vt=null,yt=8+De.length,xt=null;if(rt.length>1&&(xt=rt.pop(),yt-=xt.length),this._videoStashedLastSample!=null){var dr=this._videoStashedLastSample;this._videoStashedLastSample=null,rt.unshift(dr),yt+=dr.length}xt!=null&&(this._videoStashedLastSample=xt);var er=rt[0].dts-this._dtsBase;if(this._videoNextDts)wt=er-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())wt=0;else{var Ut=this._videoSegmentInfoList.getLastSampleBefore(er);if(Ut!=null){var ir=er-(Ut.originalDts+Ut.duration);ir<=3&&(ir=0);var Ft=Ut.dts+Ut.duration+ir;wt=er-Ft}else wt=0}for(var rr=new pr,Kr=[],Rr=0;Rr<rt.length;Rr++){var kr=rt[Rr],dn=kr.dts-this._dtsBase,yn=kr.isKeyframe,ri=dn-wt,$n=kr.cts,pi=ri+$n;Ot===-1&&(Ot=ri,Mr=pi);var _i=0;if(Rr!==rt.length-1){var Di=rt[Rr+1].dts-this._dtsBase-wt;_i=Di-ri}else if(xt!=null){var Wi=xt.dts-this._dtsBase-wt;_i=Wi-ri}else Kr.length>=1?_i=Kr[Kr.length-1].duration:_i=Math.floor(this._videoMeta.refSampleDuration);if(yn){var at=new Gt(ri,pi,_i,kr.dts,!0);at.fileposition=kr.fileposition,rr.appendSyncPoint(at)}Kr.push({dts:ri,pts:pi,cts:$n,units:kr.units,size:kr.length,isKeyframe:yn,duration:_i,originalDts:dn,flags:{isLeading:0,dependsOn:yn?2:1,isDependedOn:yn?1:0,hasRedundancy:0,isNonSync:yn?0:1}})}Vt=new Uint8Array(yt),Vt[0]=yt>>>24&255,Vt[1]=yt>>>16&255,Vt[2]=yt>>>8&255,Vt[3]=yt&255,Vt.set(He.types.mdat,4);for(var Le=0;Le<Kr.length;Le++)for(var je=Kr[Le].units;je.length;){var Xe=je.shift(),it=Xe.data;Vt.set(it,hn),hn+=it.byteLength}var Ze=Kr[Kr.length-1];if($t=Ze.dts+Ze.duration,Vr=Ze.pts+Ze.duration,this._videoNextDts=$t,rr.beginDts=Ot,rr.endDts=$t,rr.beginPts=Mr,rr.endPts=Vr,rr.originalBeginDts=Kr[0].originalDts,rr.originalEndDts=Ze.originalDts+Ze.duration,rr.firstSample=new Gt(Kr[0].dts,Kr[0].pts,Kr[0].duration,Kr[0].originalDts,Kr[0].isKeyframe),rr.lastSample=new Gt(Ze.dts,Ze.pts,Ze.duration,Ze.originalDts,Ze.isKeyframe),this._isLive||this._videoSegmentInfoList.append(rr),Pe.samples=Kr,Pe.sequenceNumber++,this._forceFirstIDR){var ot=Kr[0].flags;ot.dependsOn=2,ot.isNonSync=0}var Lt=He.moof(Pe,Ot);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Lt,Vt).buffer,sampleCount:Kr.length,info:rr})}},{key:"_mergeBoxes",value:function(De,Re){var Pe=new Uint8Array(De.byteLength+Re.byteLength);return Pe.set(De,0),Pe.set(Re,De.byteLength),Pe}}]),Zt}(),Ge=Jt,pe={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"},oe=pe,ct=function(){function Zt(Tt,De){Object(y.a)(this,Zt),this.TAG="TransmuxingController",this._emitter=new f.a,this._config=De,Tt.segments||(Tt.segments=[{duration:Tt.duration,filesize:Tt.filesize,url:Tt.url}]),typeof Tt.cors!="boolean"&&(Tt.cors=!0),typeof Tt.withCredentials!="boolean"&&(Tt.withCredentials=!1),this._mediaDataSource=Tt,this._currentSegmentIndex=0;var Re=0;this._mediaDataSource.segments.forEach(function(Pe){Pe.timestampBase=Re,Re+=Pe.duration,Pe.cors=Tt.cors,Pe.withCredentials=Tt.withCredentials,De.referrerPolicy&&(Pe.referrerPolicy=De.referrerPolicy)}),!isNaN(Re)&&this._mediaDataSource.duration!==Re&&(this._mediaDataSource.duration=Re),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(g.a)(Zt,[{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(De,Re){this._emitter.addListener(De,Re)}},{key:"off",value:function(De,Re){this._emitter.removeListener(De,Re)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(De,Re){this._currentSegmentIndex=De;var Pe=this._mediaDataSource.segments[De],rt=this._ioctl=new Q(Pe,this._config,De);rt.onError=this._onIOException.bind(this),rt.onSeeked=this._onIOSeeked.bind(this),rt.onComplete=this._onIOComplete.bind(this),rt.onRedirect=this._onIORedirect.bind(this),rt.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Re?this._demuxer.bindDataSource(this._ioctl):rt.onDataArrival=this._onInitChunkArrival.bind(this),rt.open(Re)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(De){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var Re=this._searchSegmentIndexContains(De);if(Re===this._currentSegmentIndex){var Pe=this._mediaInfo.segments[Re];if(Pe==null)this._pendingSeekTime=De;else{var rt=Pe.getNearestKeyframe(De);this._remuxer.seek(rt.milliseconds),this._ioctl.seek(rt.fileposition),this._pendingResolveSeekPoint=rt.milliseconds}}else{var wt=this._mediaInfo.segments[Re];if(wt==null)this._pendingSeekTime=De,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Re);else{var Ot=wt.getNearestKeyframe(De);this._internalAbort(),this._remuxer.seek(De),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Re].timestampBase,this._loadSegment(Re,Ot.fileposition),this._pendingResolveSeekPoint=Ot.milliseconds,this._reportSegmentMediaInfo(Re)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(De){for(var Re=this._mediaDataSource.segments,Pe=Re.length-1,rt=0;rt<Re.length;rt++)if(De<Re[rt].timestampBase){Pe=rt-1;break}return Pe}},{key:"_onInitChunkArrival",value:function(De,Re){var Pe=this,rt=null,wt=0;if(Re>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,wt=this._demuxer.parseChunks(De,Re);else if((rt=Ct.probe(De)).match){this._demuxer=new Ct(rt,this._config),this._remuxer||(this._remuxer=new Ge(this._config));var Ot=this._mediaDataSource;Ot.duration!=null&&!isNaN(Ot.duration)&&(this._demuxer.overridedDuration=Ot.duration),typeof Ot.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Ot.hasAudio),typeof Ot.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Ot.hasVideo),this._demuxer.timestampBase=Ot.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),wt=this._demuxer.parseChunks(De,Re)}else rt=null,l.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Pe._internalAbort()}),this._emitter.emit(oe.DEMUX_ERROR,Be.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),wt=0;return wt}},{key:"_onMediaInfo",value:function(De){var Re=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},De),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ve.prototype));var Pe=Object.assign({},De);Object.setPrototypeOf(Pe,Ve.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Pe,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var rt=Re._pendingSeekTime;Re._pendingSeekTime=null,Re.seek(rt)})}},{key:"_onMetaDataArrived",value:function(De){this._emitter.emit(oe.METADATA_ARRIVED,De)}},{key:"_onScriptDataArrived",value:function(De){this._emitter.emit(oe.SCRIPTDATA_ARRIVED,De)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(De){var Re=De,Pe=Re+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(oe.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(De){var Re=this._ioctl.extraData;this._mediaDataSource.segments[Re].redirectedURL=De}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(oe.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(De,Re){l.e(this.TAG,"IOException: type = ".concat(De,", code = ").concat(Re.code,", msg = ").concat(Re.msg)),this._emitter.emit(oe.IO_ERROR,De,Re),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(De,Re){l.e(this.TAG,"DemuxException: type = ".concat(De,", info = ").concat(Re)),this._emitter.emit(oe.DEMUX_ERROR,De,Re)}},{key:"_onRemuxerInitSegmentArrival",value:function(De,Re){this._emitter.emit(oe.INIT_SEGMENT,De,Re)}},{key:"_onRemuxerMediaSegmentArrival",value:function(De,Re){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(oe.MEDIA_SEGMENT,De,Re),this._pendingResolveSeekPoint!=null&&De==="video"){var Pe=Re.info.syncPoints,rt=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,T.safari&&Pe.length>0&&Pe[0].originalDts===rt&&(rt=Pe[0].pts),this._emitter.emit(oe.RECOMMEND_SEEKPOINT,rt)}}},{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(De){var Re=this._mediaInfo.segments[De],Pe=Object.assign({},Re);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(oe.MEDIA_INFO,Pe)}},{key:"_reportStatisticsInfo",value:function(){var De={};De.url=this._ioctl.currentURL,De.hasRedirect=this._ioctl.hasRedirect,De.hasRedirect&&(De.redirectedURL=this._ioctl.currentRedirectedURL),De.speed=this._ioctl.currentSpeed,De.loaderType=this._ioctl.loaderType,De.currentSegmentIndex=this._currentSegmentIndex,De.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(oe.STATISTICS_INFO,De)}}]),Zt}(),qe=ct,me=function(Tt){var De="TransmuxingWorker",Re=null,Pe=er.bind(this);m.install(),Tt.addEventListener("message",function(Ut){switch(Ut.data.cmd){case"init":Re=new qe(Ut.data.param[0],Ut.data.param[1]),Re.on(oe.IO_ERROR,yt.bind(this)),Re.on(oe.DEMUX_ERROR,xt.bind(this)),Re.on(oe.INIT_SEGMENT,rt.bind(this)),Re.on(oe.MEDIA_SEGMENT,wt.bind(this)),Re.on(oe.LOADING_COMPLETE,Ot.bind(this)),Re.on(oe.RECOVERED_EARLY_EOF,$t.bind(this)),Re.on(oe.MEDIA_INFO,Mr.bind(this)),Re.on(oe.METADATA_ARRIVED,Vr.bind(this)),Re.on(oe.SCRIPTDATA_ARRIVED,hn.bind(this)),Re.on(oe.STATISTICS_INFO,Vt.bind(this)),Re.on(oe.RECOMMEND_SEEKPOINT,dr.bind(this));break;case"destroy":Re&&(Re.destroy(),Re=null),Tt.postMessage({msg:"destroyed"});break;case"start":Re.start();break;case"stop":Re.stop();break;case"seek":Re.seek(Ut.data.param);break;case"pause":Re.pause();break;case"resume":Re.resume();break;case"logging_config":{var ir=Ut.data.param;Me.applyConfig(ir),ir.enableCallback===!0?Me.addLogListener(Pe):Me.removeLogListener(Pe);break}}});function rt(Ut,ir){var Ft={msg:oe.INIT_SEGMENT,data:{type:Ut,data:ir}};Tt.postMessage(Ft,[ir.data])}function wt(Ut,ir){var Ft={msg:oe.MEDIA_SEGMENT,data:{type:Ut,data:ir}};Tt.postMessage(Ft,[ir.data])}function Ot(){var Ut={msg:oe.LOADING_COMPLETE};Tt.postMessage(Ut)}function $t(){var Ut={msg:oe.RECOVERED_EARLY_EOF};Tt.postMessage(Ut)}function Mr(Ut){var ir={msg:oe.MEDIA_INFO,data:Ut};Tt.postMessage(ir)}function Vr(Ut){var ir={msg:oe.METADATA_ARRIVED,data:Ut};Tt.postMessage(ir)}function hn(Ut){var ir={msg:oe.SCRIPTDATA_ARRIVED,data:Ut};Tt.postMessage(ir)}function Vt(Ut){var ir={msg:oe.STATISTICS_INFO,data:Ut};Tt.postMessage(ir)}function yt(Ut,ir){Tt.postMessage({msg:oe.IO_ERROR,data:{type:Ut,info:ir}})}function xt(Ut,ir){Tt.postMessage({msg:oe.DEMUX_ERROR,data:{type:Ut,info:ir}})}function dr(Ut){Tt.postMessage({msg:oe.RECOMMEND_SEEKPOINT,data:Ut})}function er(Ut,ir){Tt.postMessage({msg:"logcat_callback",data:{type:Ut,logcat:ir}})}},Kt=me,vr=function(){function Zt(Tt,De){if(Object(y.a)(this,Zt),this.TAG="Transmuxer",this._emitter=new f.a,De.enableWorker&&typeof Worker!="undefined")try{var Re=n("0r65");this._worker=Re(Kt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[Tt,De]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Me.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Me.getConfig()})}catch(rt){l.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new qe(Tt,De)}else this._controller=new qe(Tt,De);if(this._controller){var Pe=this._controller;Pe.on(oe.IO_ERROR,this._onIOError.bind(this)),Pe.on(oe.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(oe.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(oe.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(oe.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(oe.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(oe.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(oe.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(oe.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(oe.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(oe.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(g.a)(Zt,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Me.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,Re){this._emitter.addListener(De,Re)}},{key:"off",value:function(De,Re){this._emitter.removeListener(De,Re)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(De){this._worker?this._worker.postMessage({cmd:"seek",param:De}):this._controller.seek(De)}},{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(De,Re){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(oe.INIT_SEGMENT,De,Re)})}},{key:"_onMediaSegment",value:function(De,Re){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(oe.MEDIA_SEGMENT,De,Re)})}},{key:"_onLoadingComplete",value:function(){var De=this;Promise.resolve().then(function(){De._emitter.emit(oe.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var De=this;Promise.resolve().then(function(){De._emitter.emit(oe.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(De){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(oe.MEDIA_INFO,De)})}},{key:"_onMetaDataArrived",value:function(De){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(oe.METADATA_ARRIVED,De)})}},{key:"_onScriptDataArrived",value:function(De){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(oe.SCRIPTDATA_ARRIVED,De)})}},{key:"_onStatisticsInfo",value:function(De){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(oe.STATISTICS_INFO,De)})}},{key:"_onIOError",value:function(De,Re){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(oe.IO_ERROR,De,Re)})}},{key:"_onDemuxError",value:function(De,Re){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(oe.DEMUX_ERROR,De,Re)})}},{key:"_onRecommendSeekpoint",value:function(De){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(oe.RECOMMEND_SEEKPOINT,De)})}},{key:"_onLoggingConfigChanged",value:function(De){this._worker&&this._worker.postMessage({cmd:"logging_config",param:De})}},{key:"_onWorkerMessage",value:function(De){var Re=De.data,Pe=Re.data;if(Re.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Re.msg){case oe.INIT_SEGMENT:case oe.MEDIA_SEGMENT:this._emitter.emit(Re.msg,Pe.type,Pe.data);break;case oe.LOADING_COMPLETE:case oe.RECOVERED_EARLY_EOF:this._emitter.emit(Re.msg);break;case oe.MEDIA_INFO:Object.setPrototypeOf(Pe,Ve.prototype),this._emitter.emit(Re.msg,Pe);break;case oe.METADATA_ARRIVED:case oe.SCRIPTDATA_ARRIVED:case oe.STATISTICS_INFO:this._emitter.emit(Re.msg,Pe);break;case oe.IO_ERROR:case oe.DEMUX_ERROR:this._emitter.emit(Re.msg,Pe.type,Pe.info);break;case oe.RECOMMEND_SEEKPOINT:this._emitter.emit(Re.msg,Pe);break;case"logcat_callback":l.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}]),Zt}(),bt=vr,or={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},_t=or,jt=function(){function Zt(Tt){Object(y.a)(this,Zt),this.TAG="MSEController",this._config=Tt,this._emitter=new f.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 Qt}return Object(g.a)(Zt,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,Re){this._emitter.addListener(De,Re)}},{key:"off",value:function(De,Re){this._emitter.removeListener(De,Re)}},{key:"attachMediaElement",value:function(De){if(this._mediaSource)throw new u("MediaSource has been attached to an HTMLMediaElement!");var Re=this._mediaSource=new window.MediaSource;Re.addEventListener("sourceopen",this.e.onSourceOpen),Re.addEventListener("sourceended",this.e.onSourceEnded),Re.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=De,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),De.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var De=this._mediaSource;for(var Re in this._sourceBuffers){var Pe=this._pendingSegments[Re];Pe.splice(0,Pe.length),this._pendingSegments[Re]=null,this._pendingRemoveRanges[Re]=null,this._lastInitSegments[Re]=null;var rt=this._sourceBuffers[Re];if(rt){if(De.readyState!=="closed"){try{De.removeSourceBuffer(rt)}catch(wt){l.e(this.TAG,wt.message)}rt.removeEventListener("error",this.e.onSourceBufferError),rt.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Re]=null,this._sourceBuffers[Re]=null}}if(De.readyState==="open")try{De.endOfStream()}catch(wt){l.e(this.TAG,wt.message)}De.removeEventListener("sourceopen",this.e.onSourceOpen),De.removeEventListener("sourceended",this.e.onSourceEnded),De.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(De,Re){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(De),this._pendingSegments[De.type].push(De);return}var Pe=De,rt="".concat(Pe.container);Pe.codec&&Pe.codec.length>0&&(rt+=";codecs=".concat(Pe.codec));var wt=!1;if(l.v(this.TAG,"Received Initialization Segment, mimeType: "+rt),this._lastInitSegments[Pe.type]=Pe,rt!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])l.v(this.TAG,"Notice: ".concat(Pe.type," mimeType changed, origin: ").concat(this._mimeTypes[Pe.type],", target: ").concat(rt));else{wt=!0;try{var Ot=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(rt);Ot.addEventListener("error",this.e.onSourceBufferError),Ot.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch($t){l.e(this.TAG,$t.message),this._emitter.emit(_t.ERROR,{code:$t.code,msg:$t.message});return}}this._mimeTypes[Pe.type]=rt}Re||this._pendingSegments[Pe.type].push(Pe),wt||this._sourceBuffers[Pe.type]&&!this._sourceBuffers[Pe.type].updating&&this._doAppendSegments(),T.safari&&Pe.container==="audio/mpeg"&&Pe.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Pe.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(De){var Re=De;this._pendingSegments[Re.type].push(Re),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Pe=this._sourceBuffers[Re.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(De){for(var Re in this._sourceBuffers){if(!this._sourceBuffers[Re])continue;var Pe=this._sourceBuffers[Re];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(Vr){l.e(this.TAG,Vr.message)}this._idrList.clear();var rt=this._pendingSegments[Re];if(rt.splice(0,rt.length),this._mediaSource.readyState==="closed")continue;for(var wt=0;wt<Pe.buffered.length;wt++){var Ot=Pe.buffered.start(wt),$t=Pe.buffered.end(wt);this._pendingRemoveRanges[Re].push({start:Ot,end:$t})}if(Pe.updating||this._doRemoveRanges(),T.safari){var Mr=this._lastInitSegments[Re];Mr&&(this._pendingSegments[Re].push(Mr),Pe.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var De=this._mediaSource,Re=this._sourceBuffers;if(!De||De.readyState!=="open"){De&&De.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Re.video&&Re.video.updating||Re.audio&&Re.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,De.endOfStream())}},{key:"getNearestKeyframe",value:function(De){return this._idrList.getLastSyncPointBeforeDts(De)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var De=this._mediaElement.currentTime;for(var Re in this._sourceBuffers){var Pe=this._sourceBuffers[Re];if(Pe){var rt=Pe.buffered;if(rt.length>=1&&De-rt.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var De=this._mediaElement.currentTime;for(var Re in this._sourceBuffers){var Pe=this._sourceBuffers[Re];if(Pe){for(var rt=Pe.buffered,wt=!1,Ot=0;Ot<rt.length;Ot++){var $t=rt.start(Ot),Mr=rt.end(Ot);if($t<=De&&De<Mr+3){if(De-$t>=this._config.autoCleanupMaxBackwardDuration){wt=!0;var Vr=De-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Re].push({start:$t,end:Vr})}}else Mr<De&&(wt=!0,this._pendingRemoveRanges[Re].push({start:$t,end:Mr}))}wt&&!Pe.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var De=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(De.video&&De.video.updating||De.audio&&De.audio.updating)return;var Re=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(Re)||Pe>Re)&&(l.v(this.TAG,"Update MediaSource duration from ".concat(Re," to ").concat(Pe)),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var De in this._pendingRemoveRanges){if(!this._sourceBuffers[De]||this._sourceBuffers[De].updating)continue;for(var Re=this._sourceBuffers[De],Pe=this._pendingRemoveRanges[De];Pe.length&&!Re.updating;){var rt=Pe.shift();Re.remove(rt.start,rt.end)}}}},{key:"_doAppendSegments",value:function(){var De=this._pendingSegments;for(var Re in De){if(!this._sourceBuffers[Re]||this._sourceBuffers[Re].updating)continue;if(De[Re].length>0){var Pe=De[Re].shift();if(Pe.timestampOffset){var rt=this._sourceBuffers[Re].timestampOffset,wt=Pe.timestampOffset/1e3,Ot=Math.abs(rt-wt);Ot>.1&&(l.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(rt," to ").concat(wt)),this._sourceBuffers[Re].timestampOffset=wt),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[Re].appendBuffer(Pe.data),this._isBufferFull=!1,Re==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch($t){this._pendingSegments[Re].unshift(Pe),$t.code===22?(this._isBufferFull||this._emitter.emit(_t.BUFFER_FULL),this._isBufferFull=!0):(l.e(this.TAG,$t.message),this._emitter.emit(_t.ERROR,{code:$t.code,msg:$t.message}))}}}}},{key:"_onSourceOpen",value:function(){if(l.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var De=this._pendingSourceBufferInit;De.length;){var Re=De.shift();this.appendInitSegment(Re,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(_t.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){l.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){l.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 De=this._pendingSegments;return De.video.length>0||De.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var De=this._pendingRemoveRanges;return De.video.length>0||De.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(_t.UPDATE_END)}},{key:"_onSourceBufferError",value:function(De){l.e(this.TAG,"SourceBuffer Error: ".concat(De))}}]),Zt}(),ut=jt,St={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},mt={NETWORK_EXCEPTION:h.EXCEPTION,NETWORK_STATUS_CODE_INVALID:h.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:h.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:h.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Be.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Be.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Be.CODEC_UNSUPPORTED},lt=function(){function Zt(Tt,De){if(Object(y.a)(this,Zt),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new f.a,this._config=te(),typeof De=="object"&&Object.assign(this._config,De),Tt.type.toLowerCase()!=="flv")throw new r("FlvPlayer requires an flv MediaDataSource input!");Tt.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=Tt,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var Re=T.chrome&&(T.version.major<50||T.version.major===50&&T.version.build<2661);this._alwaysSeekKeyframe=!!(Re||T.msedge||T.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(g.a)(Zt,[{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(De,Re){var Pe=this;De===we.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(we.MEDIA_INFO,Pe.mediaInfo)}):De===we.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(we.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(De,Re)}},{key:"off",value:function(De,Re){this._emitter.removeListener(De,Re)}},{key:"attachMediaElement",value:function(De){var Re=this;if(this._mediaElement=De,De.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),De.addEventListener("seeking",this.e.onvSeeking),De.addEventListener("canplay",this.e.onvCanPlay),De.addEventListener("stalled",this.e.onvStalled),De.addEventListener("progress",this.e.onvProgress),this._msectl=new ut(this._config),this._msectl.on(_t.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(_t.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(_t.SOURCE_OPEN,function(){Re._mseSourceOpened=!0,Re._hasPendingLoad&&(Re._hasPendingLoad=!1,Re.load())}),this._msectl.on(_t.ERROR,function(Pe){Re._emitter.emit(we.ERROR,St.MEDIA_ERROR,mt.MEDIA_MSE_ERROR,Pe)}),this._msectl.attachMediaElement(De),this._pendingSeekTime!=null)try{De.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Pe){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var De=this;if(!this._mediaElement)throw new u("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new u("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 bt(this._mediaDataSource,this._config),this._transmuxer.on(oe.INIT_SEGMENT,function(Re,Pe){De._msectl.appendInitSegment(Pe)}),this._transmuxer.on(oe.MEDIA_SEGMENT,function(Re,Pe){if(De._msectl.appendMediaSegment(Pe),De._config.lazyLoad&&!De._config.isLive){var rt=De._mediaElement.currentTime;Pe.info.endDts>=(rt+De._config.lazyLoadMaxDuration)*1e3&&(De._progressChecker==null&&(l.v(De.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),De._suspendTransmuxer()))}}),this._transmuxer.on(oe.LOADING_COMPLETE,function(){De._msectl.endOfStream(),De._emitter.emit(we.LOADING_COMPLETE)}),this._transmuxer.on(oe.RECOVERED_EARLY_EOF,function(){De._emitter.emit(we.RECOVERED_EARLY_EOF)}),this._transmuxer.on(oe.IO_ERROR,function(Re,Pe){De._emitter.emit(we.ERROR,St.NETWORK_ERROR,Re,Pe)}),this._transmuxer.on(oe.DEMUX_ERROR,function(Re,Pe){De._emitter.emit(we.ERROR,St.MEDIA_ERROR,Re,{code:-1,msg:Pe})}),this._transmuxer.on(oe.MEDIA_INFO,function(Re){De._mediaInfo=Re,De._emitter.emit(we.MEDIA_INFO,Object.assign({},Re))}),this._transmuxer.on(oe.METADATA_ARRIVED,function(Re){De._emitter.emit(we.METADATA_ARRIVED,Re)}),this._transmuxer.on(oe.SCRIPTDATA_ARRIVED,function(Re){De._emitter.emit(we.SCRIPTDATA_ARRIVED,Re)}),this._transmuxer.on(oe.STATISTICS_INFO,function(Re){De._statisticsInfo=De._fillStatisticsInfo(Re),De._emitter.emit(we.STATISTICS_INFO,Object.assign({},De._statisticsInfo))}),this._transmuxer.on(oe.RECOMMEND_SEEKPOINT,function(Re){De._mediaElement&&!De._config.accurateSeek&&(De._requestSetTime=!0,De._mediaElement.currentTime=Re/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(De){this._mediaElement.volume=De}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(De){this._mediaElement.muted=De}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(De){this._mediaElement?this._internalSeek(De):this._pendingSeekTime=De}},{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(De){if(De.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return De;var Re=!0,Pe=0,rt=0;if(this._mediaElement.getVideoPlaybackQuality){var wt=this._mediaElement.getVideoPlaybackQuality();Pe=wt.totalVideoFrames,rt=wt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,rt=this._mediaElement.webkitDroppedFrameCount):Re=!1;return Re&&(De.decodedFrames=Pe,De.droppedFrames=rt),De}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var De=this._mediaElement.buffered,Re=this._mediaElement.currentTime,Pe=0,rt=0,wt=0;wt<De.length;wt++){var Ot=De.start(wt),$t=De.end(wt);if(Ot<=Re&&Re<$t){Pe=Ot,rt=$t;break}}rt>=Re+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(l.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){l.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 De=this._mediaElement.currentTime,Re=this._mediaElement.buffered,Pe=!1,rt=0;rt<Re.length;rt++){var wt=Re.start(rt),Ot=Re.end(rt);if(De>=wt&&De<Ot){De>=Ot-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(l.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(De){for(var Re=this._mediaElement.buffered,Pe=0;Pe<Re.length;Pe++){var rt=Re.start(Pe),wt=Re.end(Pe);if(De>=rt&&De<wt)return!0}return!1}},{key:"_internalSeek",value:function(De){var Re=this._isTimepointBuffered(De),Pe=!1,rt=0;if(De<1&&this._mediaElement.buffered.length>0){var wt=this._mediaElement.buffered.start(0);(wt<1&&De<wt||T.safari)&&(Pe=!0,rt=T.safari?.1:wt)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=rt;else if(Re){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=De;else{var Ot=this._msectl.getNearestKeyframe(Math.floor(De*1e3));this._requestSetTime=!0,Ot!=null?this._mediaElement.currentTime=Ot.dts/1e3:this._mediaElement.currentTime=De}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(De),this._transmuxer.seek(Math.floor(De*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=De)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var De=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(De)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(De),this._transmuxer.seek(Math.floor(De*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=De))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(De){var Re=this._mediaElement;if(De||!this._receivedCanPlay||Re.readyState<2){var Pe=Re.buffered;Pe.length>0&&Re.currentTime<Pe.start(0)&&(l.w(this.TAG,"Playback seems stuck at ".concat(Re.currentTime,", seek to ").concat(Pe.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Pe.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(De){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(De){var Re=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Re<1&&Pe.length>0){var rt=Pe.start(0);if(rt<1&&Re<rt||T.safari){this._requestSetTime=!0,this._mediaElement.currentTime=T.safari?.1:rt;return}}if(this._isTimepointBuffered(Re)){if(this._alwaysSeekKeyframe){var wt=this._msectl.getNearestKeyframe(Math.floor(Re*1e3));wt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=wt.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Re,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(De){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(De){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(De){this._checkAndResumeStuckPlayback()}}]),Zt}(),tt=lt,Cr=function(){function Zt(Tt,De){if(Object(y.a)(this,Zt),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new f.a,this._config=te(),typeof De=="object"&&Object.assign(this._config,De),Tt.type.toLowerCase()==="flv")throw new r("NativePlayer does't support flv MediaDataSource input!");if(Tt.hasOwnProperty("segments"))throw new r("NativePlayer(".concat(Tt.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=Tt,this._mediaElement=null}return Object(g.a)(Zt,[{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(De,Re){var Pe=this;De===we.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(we.MEDIA_INFO,Pe.mediaInfo)}):De===we.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(we.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(De,Re)}},{key:"off",value:function(De,Re){this._emitter.removeListener(De,Re)}},{key:"attachMediaElement",value:function(De){if(this._mediaElement=De,De.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{De.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Re){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new u("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(De){this._mediaElement.volume=De}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(De){this._mediaElement.muted=De}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(De){this._mediaElement?this._mediaElement.currentTime=De:this._pendingSeekTime=De}},{key:"mediaInfo",get:function(){var De=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",Re={mimeType:De+this._mediaDataSource.type};return this._mediaElement&&(Re.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Re.width=this._mediaElement.videoWidth,Re.height=this._mediaElement.videoHeight)),Re}},{key:"statisticsInfo",get:function(){var De={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return De;var Re=!0,Pe=0,rt=0;if(this._mediaElement.getVideoPlaybackQuality){var wt=this._mediaElement.getVideoPlaybackQuality();Pe=wt.totalVideoFrames,rt=wt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,rt=this._mediaElement.webkitDroppedFrameCount):Re=!1;return Re&&(De.decodedFrames=Pe,De.droppedFrames=rt),De}},{key:"_onvLoadedMetadata",value:function(De){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(we.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(we.STATISTICS_INFO,this.statisticsInfo)}}]),Zt}(),nn=Cr;m.install();function mn(Zt,Tt){var De=Zt;if(De==null||typeof De!="object")throw new r("MediaDataSource must be an javascript object!");if(!De.hasOwnProperty("type"))throw new r("MediaDataSource must has type field to indicate video file type!");switch(De.type){case"flv":return new tt(De,Tt);default:return new nn(De,Tt)}}function Bn(){return se.supportMSEH264Playback()}function oi(){return se.getFeatureList()}var wn={};wn.createPlayer=mn,wn.isSupported=Bn,wn.getFeatureList=oi,wn.BaseLoader=v,wn.LoaderStatus=c,wn.LoaderErrors=h,wn.Events=we,wn.ErrorTypes=St,wn.ErrorDetails=mt,wn.FlvPlayer=tt,wn.NativePlayer=nn,wn.LoggingControl=Me,Object.defineProperty(wn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Rn=D.a=wn},GVMX:function(R,D,n){var y=n("JEkh"),g=y.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"}});R.exports=g},GdRQ:function(R,D,n){"use strict";function y(T){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(C){return typeof C}:y=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},y(T)}Object.defineProperty(D,"__esModule",{value:!0}),D.isMac=c,D.isWindows=h,D.isIOS=v,D.isSafari=A,D.isIE=b,D.isEdge=x,D.isFirefox=E,D.hasScrollbarGutter=D.supportsImageMetadata=D.supportsCursorURIs=D.dragThreshold=D.isTouchDevice=void 0;var g=m(n("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var T=new WeakMap;return S=function(){return T},T}function m(T){if(T&&T.__esModule)return T;if(T===null||y(T)!=="object"&&typeof T!="function")return{default:T};var _=S();if(_&&_.has(T))return _.get(T);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in T)if(Object.prototype.hasOwnProperty.call(T,O)){var I=w?Object.getOwnPropertyDescriptor(T,O):null;I&&(I.get||I.set)?Object.defineProperty(C,O,I):C[O]=T[O]}return C.default=T,_&&_.set(T,C),C}var p="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;D.isTouchDevice=p,window.addEventListener("touchstart",function T(){D.isTouchDevice=p=!0,window.removeEventListener("touchstart",T,!1)},!1);var f=10*(window.devicePixelRatio||1);D.dragThreshold=f;var d=!1;try{var l=document.createElement("canvas");l.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',l.style.cursor.indexOf("url")===0?(g.Info("Data URI scheme cursor supported"),d=!0):g.Warn("Data URI scheme cursor not supported")}catch(T){g.Error("Data URI scheme cursor test exception: "+T)}var a=d;D.supportsCursorURIs=a;var i=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),i=!0}catch(T){}var t=i;D.supportsImageMetadata=t;var o=!0;try{var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var u=document.createElement("div");e.appendChild(u);var r=e.offsetWidth-u.offsetWidth;e.parentNode.removeChild(e),o=r!=0}catch(T){g.Error("Scrollbar test exception: "+T)}var s=o;D.hasScrollbarGutter=s;function c(){return navigator&&!!/mac/i.exec(navigator.platform)}function h(){return navigator&&!!/win/i.exec(navigator.platform)}function v(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function A(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function b(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function x(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function E(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(R,D,n){var y=n("bYtY"),g=n("6Ic6"),S=n("IwbS"),m=n("y+Vt"),p=n("sK/D"),f=p.createClipPath,d=["itemStyle"],l=["emphasis","itemStyle"],a=["color","color0","borderColor","borderColor0"],i=g.extend({type:"candlestick",render:function(A,b,x){this.group.removeClipPath(),this._updateDrawMode(A),this._isLargeDraw?this._renderLarge(A):this._renderNormal(A)},incrementalPrepareRender:function(A,b,x){this._clear(),this._updateDrawMode(A)},incrementalRender:function(A,b,x,E){this._isLargeDraw?this._incrementalRenderLarge(A,b):this._incrementalRenderNormal(A,b)},_updateDrawMode:function(A){var b=A.pipelineContext.large;(this._isLargeDraw==null||b^this._isLargeDraw)&&(this._isLargeDraw=b,this._clear())},_renderNormal:function(A){var b=A.getData(),x=this._data,E=this.group,T=b.getLayout("isSimpleBox"),_=A.get("clip",!0),C=A.coordinateSystem,w=C.getArea&&C.getArea();this._data||E.removeAll(),b.diff(x).add(function(O){if(b.hasValue(O)){var I,k=b.getItemLayout(O);if(_&&e(w,k))return;I=o(k,O,!0),S.initProps(I,{shape:{points:k.ends}},A,O),u(I,b,O,T),E.add(I),b.setItemGraphicEl(O,I)}}).update(function(O,I){var k=x.getItemGraphicEl(I);if(!b.hasValue(O)){E.remove(k);return}var M=b.getItemLayout(O);if(_&&e(w,M)){E.remove(k);return}k?S.updateProps(k,{shape:{points:M.ends}},A,O):k=o(M,O),u(k,b,O,T),E.add(k),b.setItemGraphicEl(O,k)}).remove(function(O){var I=x.getItemGraphicEl(O);I&&E.remove(I)}).execute(),this._data=b},_renderLarge:function(A){this._clear(),c(A,this.group);var b=A.get("clip",!0)?f(A.coordinateSystem,!1,A):null;b?this.group.setClipPath(b):this.group.removeClipPath()},_incrementalRenderNormal:function(A,b){for(var x=b.getData(),E=x.getLayout("isSimpleBox"),T;(T=A.next())!=null;){var _,C=x.getItemLayout(T);_=o(C,T),u(_,x,T,E),_.incremental=!0,this.group.add(_)}},_incrementalRenderLarge:function(A,b){c(b,this.group,!0)},remove:function(A){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:y.noop}),t=m.extend({type:"normalCandlestickBox",shape:{},buildPath:function(A,b){var x=b.points;this.__simpleBox?(A.moveTo(x[4][0],x[4][1]),A.lineTo(x[6][0],x[6][1])):(A.moveTo(x[0][0],x[0][1]),A.lineTo(x[1][0],x[1][1]),A.lineTo(x[2][0],x[2][1]),A.lineTo(x[3][0],x[3][1]),A.closePath(),A.moveTo(x[4][0],x[4][1]),A.lineTo(x[5][0],x[5][1]),A.moveTo(x[6][0],x[6][1]),A.lineTo(x[7][0],x[7][1]))}});function o(A,b,x){var E=A.ends;return new t({shape:{points:x?r(E,A):E},z2:100})}function e(A,b){for(var x=!0,E=0;E<b.ends.length;E++)if(A.contain(b.ends[E][0],b.ends[E][1])){x=!1;break}return x}function u(A,b,x,E){var T=b.getItemModel(x),_=T.getModel(d),C=b.getItemVisual(x,"color"),w=b.getItemVisual(x,"borderColor")||C,O=_.getItemStyle(a);A.useStyle(O),A.style.strokeNoScale=!0,A.style.fill=C,A.style.stroke=w,A.__simpleBox=E;var I=T.getModel(l).getItemStyle();S.setHoverStyle(A,I)}function r(A,b){return y.map(A,function(x){return x=x.slice(),x[1]=b.initBaseline,x})}var s=m.extend({type:"largeCandlestickBox",shape:{},buildPath:function(A,b){for(var x=b.points,E=0;E<x.length;)if(this.__sign===x[E++]){var T=x[E++];A.moveTo(T,x[E++]),A.lineTo(T,x[E++])}else E+=3}});function c(A,b,x){var E=A.getData(),T=E.getLayout("largePoints"),_=new s({shape:{points:T},__sign:1});b.add(_);var C=new s({shape:{points:T},__sign:-1});b.add(C),h(1,_,A,E),h(-1,C,A,E),x&&(_.incremental=!0,C.incremental=!0)}function h(A,b,x,E){var T=A>0?"P":"N",_=E.getVisual("borderColor"+T)||E.getVisual("color"+T),C=x.getModel(d).getItemStyle(a);b.useStyle(C),b.style.fill=null,b.style.stroke=_}var v=i;R.exports=v},Gev7:function(R,D,n){var y=n("bYtY"),g=n("K2GJ"),S=n("1bdT"),m=n("ni6a");function p(d){d=d||{},S.call(this,d);for(var l in d)d.hasOwnProperty(l)&&l!=="style"&&(this[l]=d[l]);this.style=new g(d.style,this),this._rect=null,this.__clipPaths=null}p.prototype={constructor:p,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(l){},afterBrush:function(l){},brush:function(l,a){},getBoundingRect:function(){},contain:function(l,a){return this.rectContain(l,a)},traverse:function(l,a){l.call(a,this)},rectContain:function(l,a){var i=this.transformCoordToLocal(l,a),t=this.getBoundingRect();return t.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(l){return this.animate("style",l)},attrKV:function(l,a){l!=="style"?S.prototype.attrKV.call(this,l,a):this.style.set(a)},setStyle:function(l,a){return this.style.set(l,a),this.dirty(!1),this},useStyle:function(l){return this.style=new g(l,this),this.dirty(!1),this},calculateTextPosition:null},y.inherits(p,S),y.mixin(p,m);var f=p;R.exports=f},GrNh:function(R,D,n){var y=n("bYtY"),g=n("IwbS"),S=n("6Ic6");function m(i,t,o,e){var u=t.getData(),r=this.dataIndex,s=u.getName(r),c=t.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:i,name:s,seriesId:t.id}),u.each(function(h){p(u.getItemGraphicEl(h),u.getItemLayout(h),t.isSelected(u.getName(h)),c,o)})}function p(i,t,o,e,u){var r=(t.startAngle+t.endAngle)/2,s=Math.cos(r),c=Math.sin(r),h=o?e:0,v=[s*h,c*h];u?i.animate().when(200,{position:v}).start("bounceOut"):i.attr("position",v)}function f(i,t){g.Group.call(this);var o=new g.Sector({z2:2}),e=new g.Polyline,u=new g.Text;this.add(o),this.add(e),this.add(u),this.updateData(i,t,!0)}var d=f.prototype;d.updateData=function(i,t,o){var e=this.childAt(0),u=this.childAt(1),r=this.childAt(2),s=i.hostModel,c=i.getItemModel(t),h=i.getItemLayout(t),v=y.extend({},h);v.label=null;var A=s.getShallow("animationTypeUpdate");if(o){e.setShape(v);var b=s.getShallow("animationType");b==="scale"?(e.shape.r=h.r0,g.initProps(e,{shape:{r:h.r}},s,t)):(e.shape.endAngle=h.startAngle,g.updateProps(e,{shape:{endAngle:h.endAngle}},s,t))}else A==="expansion"?e.setShape(v):g.updateProps(e,{shape:v},s,t);var x=i.getItemVisual(t,"color");e.useStyle(y.defaults({lineJoin:"bevel",fill:x},c.getModel("itemStyle").getItemStyle())),e.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var E=c.getShallow("cursor");E&&e.attr("cursor",E),p(this,i.getItemLayout(t),s.isSelected(i.getName(t)),s.get("selectedOffset"),s.get("animation"));var T=!o&&A==="transition";this._updateLabel(i,t,T),this.highDownOnUpdate=s.get("silent")?null:function(_,C){var w=s.isAnimationEnabled()&&c.get("hoverAnimation");C==="emphasis"?(u.ignore=u.hoverIgnore,r.ignore=r.hoverIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r+s.get("hoverOffset")}},300,"elasticOut"))):(u.ignore=u.normalIgnore,r.ignore=r.normalIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r}},300,"elasticOut")))},g.setHoverStyle(this)},d._updateLabel=function(i,t,o){var e=this.childAt(1),u=this.childAt(2),r=i.hostModel,s=i.getItemModel(t),c=i.getItemLayout(t),h=c.label,v=i.getItemVisual(t,"color");if(!h||isNaN(h.x)||isNaN(h.y)){u.ignore=u.normalIgnore=u.hoverIgnore=e.ignore=e.normalIgnore=e.hoverIgnore=!0;return}var A={points:h.linePoints||[[h.x,h.y],[h.x,h.y],[h.x,h.y]]},b={x:h.x,y:h.y};o?(g.updateProps(e,{shape:A},r,t),g.updateProps(u,{style:b},r,t)):(e.attr({shape:A}),u.attr({style:b})),u.attr({rotation:h.rotation,origin:[h.x,h.y],z2:10});var x=s.getModel("label"),E=s.getModel("emphasis.label"),T=s.getModel("labelLine"),_=s.getModel("emphasis.labelLine"),v=i.getItemVisual(t,"color");g.setLabelStyle(u.style,u.hoverStyle={},x,E,{labelFetcher:i.hostModel,labelDataIndex:t,defaultText:h.text,autoColor:v,useInsideStyle:!!h.inside},{textAlign:h.textAlign,textVerticalAlign:h.verticalAlign,opacity:i.getItemVisual(t,"opacity")}),u.ignore=u.normalIgnore=!x.get("show"),u.hoverIgnore=!E.get("show"),e.ignore=e.normalIgnore=!T.get("show"),e.hoverIgnore=!_.get("show"),e.setStyle({stroke:v,opacity:i.getItemVisual(t,"opacity")}),e.setStyle(T.getModel("lineStyle").getLineStyle()),e.hoverStyle=_.getModel("lineStyle").getLineStyle();var C=T.get("smooth");C&&C===!0&&(C=.4),e.setShape({smooth:C})},y.inherits(f,g.Group);var l=S.extend({type:"pie",init:function(){var i=new g.Group;this._sectorGroup=i},render:function(i,t,o,e){if(e&&e.from===this.uid)return;var u=i.getData(),r=this._data,s=this.group,c=t.get("animation"),h=!r,v=i.get("animationType"),A=i.get("animationTypeUpdate"),b=y.curry(m,this.uid,i,c,o),x=i.get("selectedMode");if(u.diff(r).add(function(w){var O=new f(u,w);h&&v!=="scale"&&O.eachChild(function(I){I.stopAnimation(!0)}),x&&O.on("click",b),u.setItemGraphicEl(w,O),s.add(O)}).update(function(w,O){var I=r.getItemGraphicEl(O);!h&&A!=="transition"&&I.eachChild(function(k){k.stopAnimation(!0)}),I.updateData(u,w),I.off("click"),x&&I.on("click",b),s.add(I),u.setItemGraphicEl(w,I)}).remove(function(w){var O=r.getItemGraphicEl(w);s.remove(O)}).execute(),c&&u.count()>0&&(h?v!=="scale":A!=="transition")){for(var E=u.getItemLayout(0),T=1;isNaN(E.startAngle)&&T<u.count();++T)E=u.getItemLayout(T);var _=Math.max(o.getWidth(),o.getHeight())/2,C=y.bind(s.removeClipPath,s);s.setClipPath(this._createClipPath(E.cx,E.cy,_,E.startAngle,E.clockwise,C,i,h))}else s.removeClipPath();this._data=u},dispose:function(){},_createClipPath:function(i,t,o,e,u,r,s,c){var h=new g.Sector({shape:{cx:i,cy:t,r0:0,r:o,startAngle:e,endAngle:e,clockwise:u}}),v=c?g.initProps:g.updateProps;return v(h,{shape:{endAngle:e+(u?1:-1)*Math.PI*2}},s,r),h},containPoint:function(i,t){var o=t.getData(),e=o.getItemLayout(0);if(e){var u=i[0]-e.cx,r=i[1]-e.cy,s=Math.sqrt(u*u+r*r);return s<=e.r&&s>=e.r0}}}),a=l;R.exports=a},Gytx:function(R,D){R.exports=function(y,g,S,m){var p=S?S.call(m,y,g):void 0;if(p!==void 0)return!!p;if(y===g)return!0;if(typeof y!="object"||!y||typeof g!="object"||!g)return!1;var f=Object.keys(y),d=Object.keys(g);if(f.length!==d.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(g),a=0;a<f.length;a++){var i=f[a];if(!l(i))return!1;var t=y[i],o=g[i];if(p=S?S.call(m,t,o,i):void 0,p===!1||p===void 0&&t!==o)return!1}return!0}},GzdX:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("q1tI"),m=n.n(S),p=n("rePB"),f=n("1OyB"),d=n("vuIU"),l=n("Ji7U"),a=n("md7G"),i=n("foSv"),t=n("m+aA"),o=n("TSYQ"),e=n.n(o),u=n("4IlW");function r(j){var K=j.pageXOffset,z="scrollLeft";if(typeof K!="number"){var V=j.document;K=V.documentElement[z],typeof K!="number"&&(K=V.body[z])}return K}function s(j){var K,z,V=j.ownerDocument,Q=V.body,G=V&&V.documentElement,te=j.getBoundingClientRect();return K=te.left,z=te.top,K-=G.clientLeft||Q.clientLeft||0,z-=G.clientTop||Q.clientTop||0,{left:K,top:z}}function c(j){var K=s(j),z=j.ownerDocument,V=z.defaultView||z.parentWindow;return K.left+=r(V),K.left}function h(j){var K=v();return function(){var V=Object(i.a)(j),Q;if(K){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(a.a)(this,Q)}}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(j){return!1}}var A=function(j){Object(l.a)(z,j);var K=h(z);function z(){var V;return Object(f.a)(this,z),V=K.apply(this,arguments),V.onHover=function(Q){var G=V.props,te=G.onHover,q=G.index;te(Q,q)},V.onClick=function(Q){var G=V.props,te=G.onClick,q=G.index;te(Q,q)},V.onKeyDown=function(Q){var G=V.props,te=G.onClick,q=G.index;Q.keyCode===13&&te(Q,q)},V}return Object(d.a)(z,[{key:"getClassName",value:function(){var Q=this.props,G=Q.prefixCls,te=Q.index,q=Q.value,se=Q.allowHalf,re=Q.focused,we=te+1,Oe=G;return q===0&&te===0&&re?Oe+=" ".concat(G,"-focused"):se&&q+.5>=we&&q<we?(Oe+=" ".concat(G,"-half ").concat(G,"-active"),re&&(Oe+=" ".concat(G,"-focused"))):(Oe+=we<=q?" ".concat(G,"-full"):" ".concat(G,"-zero"),we===q&&re&&(Oe+=" ".concat(G,"-focused"))),Oe}},{key:"render",value:function(){var Q=this.onHover,G=this.onClick,te=this.onKeyDown,q=this.props,se=q.disabled,re=q.prefixCls,we=q.character,Oe=q.characterRender,Me=q.index,Qe=q.count,Ve=q.value,dt=typeof we=="function"?we(this.props):we,Fe=m.a.createElement("li",{className:this.getClassName()},m.a.createElement("div",{onClick:se?null:G,onKeyDown:se?null:te,onMouseMove:se?null:Q,role:"radio","aria-checked":Ve>Me?"true":"false","aria-posinset":Me+1,"aria-setsize":Qe,tabIndex:se?-1:0},m.a.createElement("div",{className:"".concat(re,"-first")},dt),m.a.createElement("div",{className:"".concat(re,"-second")},dt)));return Oe&&(Fe=Oe(Fe,this.props)),Fe}}]),z}(m.a.Component);function b(j,K){var z=Object.keys(j);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(j);K&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(j,Q).enumerable})),z.push.apply(z,V)}return z}function x(j){for(var K=1;K<arguments.length;K++){var z=arguments[K]!=null?arguments[K]:{};K%2?b(Object(z),!0).forEach(function(V){Object(p.a)(j,V,z[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(z)):b(Object(z)).forEach(function(V){Object.defineProperty(j,V,Object.getOwnPropertyDescriptor(z,V))})}return j}function E(j){var K=T();return function(){var V=Object(i.a)(j),Q;if(K){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(a.a)(this,Q)}}function T(){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 _(){}var C=function(j){Object(l.a)(z,j);var K=E(z);function z(V){var Q;Object(f.a)(this,z),Q=K.call(this,V),Q.onHover=function(te,q){var se=Q.props.onHoverChange,re=Q.getStarValue(q,te.pageX),we=Q.state.cleanedValue;re!==we&&Q.setState({hoverValue:re,cleanedValue:null}),se(re)},Q.onMouseLeave=function(){var te=Q.props.onHoverChange;Q.setState({hoverValue:void 0,cleanedValue:null}),te(void 0)},Q.onClick=function(te,q){var se=Q.props.allowClear,re=Q.state.value,we=Q.getStarValue(q,te.pageX),Oe=!1;se&&(Oe=we===re),Q.onMouseLeave(),Q.changeValue(Oe?0:we),Q.setState({cleanedValue:Oe?we:null})},Q.onFocus=function(){var te=Q.props.onFocus;Q.setState({focused:!0}),te&&te()},Q.onBlur=function(){var te=Q.props.onBlur;Q.setState({focused:!1}),te&&te()},Q.onKeyDown=function(te){var q=te.keyCode,se=Q.props,re=se.count,we=se.allowHalf,Oe=se.onKeyDown,Me=se.direction,Qe=Me==="rtl",Ve=Q.state.value;q===u.a.RIGHT&&Ve<re&&!Qe?(we?Ve+=.5:Ve+=1,Q.changeValue(Ve),te.preventDefault()):q===u.a.LEFT&&Ve>0&&!Qe||q===u.a.RIGHT&&Ve>0&&Qe?(we?Ve-=.5:Ve-=1,Q.changeValue(Ve),te.preventDefault()):q===u.a.LEFT&&Ve<re&&Qe&&(we?Ve+=.5:Ve+=1,Q.changeValue(Ve),te.preventDefault()),Oe&&Oe(te)},Q.saveRef=function(te){return function(q){Q.stars[te]=q}},Q.saveRate=function(te){Q.rate=te};var G=V.value;return G===void 0&&(G=V.defaultValue),Q.stars={},Q.state={value:G,focused:!1,cleanedValue:null},Q}return Object(d.a)(z,[{key:"componentDidMount",value:function(){var Q=this.props,G=Q.autoFocus,te=Q.disabled;G&&!te&&this.focus()}},{key:"getStarDOM",value:function(Q){return Object(t.a)(this.stars[Q])}},{key:"getStarValue",value:function(Q,G){var te=this.props,q=te.allowHalf,se=te.direction,re=se==="rtl",we=Q+1;if(q){var Oe=this.getStarDOM(Q),Me=c(Oe),Qe=Oe.clientWidth;(re&&G-Me>Qe/2||!re&&G-Me<Qe/2)&&(we-=.5)}return we}},{key:"focus",value:function(){var Q=this.props.disabled;Q||this.rate.focus()}},{key:"blur",value:function(){var Q=this.props.disabled;Q||this.rate.blur()}},{key:"changeValue",value:function(Q){var G=this.props.onChange;"value"in this.props||this.setState({value:Q}),G(Q)}},{key:"render",value:function(){for(var Q=this.props,G=Q.count,te=Q.allowHalf,q=Q.style,se=Q.prefixCls,re=Q.disabled,we=Q.className,Oe=Q.character,Me=Q.characterRender,Qe=Q.tabIndex,Ve=Q.direction,dt=this.state,Fe=dt.value,ue=dt.hoverValue,et=dt.focused,he=[],J=re?"".concat(se,"-disabled"):"",Y=0;Y<G;Y+=1)he.push(m.a.createElement(A,{ref:this.saveRef(Y),index:Y,count:G,disabled:re,prefixCls:"".concat(se,"-star"),allowHalf:te,value:ue===void 0?Fe:ue,onClick:this.onClick,onHover:this.onHover,key:Y,character:Oe,characterRender:Me,focused:et}));var $=e()(se,J,we,Object(p.a)({},"".concat(se,"-rtl"),Ve==="rtl"));return m.a.createElement("ul",{className:$,style:q,onMouseLeave:re?null:this.onMouseLeave,tabIndex:re?-1:Qe,onFocus:re?null:this.onFocus,onBlur:re?null:this.onBlur,onKeyDown:re?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},he)}}],[{key:"getDerivedStateFromProps",value:function(Q,G){return"value"in Q&&Q.value!==void 0?x(x({},G),{},{value:Q.value}):G}}]),z}(m.a.Component);C.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:_,character:"\u2605",onHoverChange:_,tabIndex:0,direction:"ltr"};var w=C,O=w,I=n("Lerx"),k=n.n(I),M=n("3S7+"),U=n("H84U"),P=function(j,K){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&K.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},X=S.forwardRef(function(j,K){var z=j.prefixCls,V=j.tooltips,Q=P(j,["prefixCls","tooltips"]),G=function(Oe,Me){var Qe=Me.index;return V?S.createElement(M.a,{title:V[Qe]},Oe):Oe},te=S.useContext(U.b),q=te.getPrefixCls,se=te.direction,re=q("rate",z);return S.createElement(O,g()({ref:K,characterRender:G},Q,{prefixCls:re,direction:se}))});X.displayName="Rate",X.defaultProps={character:S.createElement(k.a,null)};var F=D.a=X},H6uX:function(R,D){var n=Array.prototype.slice,y=function(f){this._$handlers={},this._$eventProcessor=f};y.prototype={constructor:y,one:function(f,d,l,a){return S(this,f,d,l,a,!0)},on:function(f,d,l,a){return S(this,f,d,l,a,!1)},isSilent:function(f){var d=this._$handlers;return!d[f]||!d[f].length},off:function(f,d){var l=this._$handlers;if(!f)return this._$handlers={},this;if(d){if(l[f]){for(var a=[],i=0,t=l[f].length;i<t;i++)l[f][i].h!==d&&a.push(l[f][i]);l[f]=a}l[f]&&l[f].length===0&&delete l[f]}else delete l[f];return this},trigger:function(f){var d=this._$handlers[f],l=this._$eventProcessor;if(d){var a=arguments,i=a.length;i>3&&(a=n.call(a,1));for(var t=d.length,o=0;o<t;){var e=d[o];if(l&&l.filter&&e.query!=null&&!l.filter(f,e.query)){o++;continue}switch(i){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,a[1]);break;case 3:e.h.call(e.ctx,a[1],a[2]);break;default:e.h.apply(e.ctx,a);break}e.one?(d.splice(o,1),t--):o++}}return l&&l.afterTrigger&&l.afterTrigger(f),this},triggerWithContext:function(f){var d=this._$handlers[f],l=this._$eventProcessor;if(d){var a=arguments,i=a.length;i>4&&(a=n.call(a,1,a.length-1));for(var t=a[a.length-1],o=d.length,e=0;e<o;){var u=d[e];if(l&&l.filter&&u.query!=null&&!l.filter(f,u.query)){e++;continue}switch(i){case 1:u.h.call(t);break;case 2:u.h.call(t,a[1]);break;case 3:u.h.call(t,a[1],a[2]);break;default:u.h.apply(t,a);break}u.one?(d.splice(e,1),o--):e++}}return l&&l.afterTrigger&&l.afterTrigger(f),this}};function g(p,f){var d=p._$eventProcessor;return f!=null&&d&&d.normalizeQuery&&(f=d.normalizeQuery(f)),f}function S(p,f,d,l,a,i){var t=p._$handlers;if(typeof d=="function"&&(a=l,l=d,d=null),!l||!f)return p;d=g(p,d),t[f]||(t[f]=[]);for(var o=0;o<t[f].length;o++)if(t[f][o].h===l)return p;var e={h:l,one:i,query:d,ctx:a||p,callAtLast:l.zrEventfulCallAtLast},u=t[f].length-1,r=t[f][u];return r&&r.callAtLast?t[f].splice(u,0,e):t[f].push(e),p}var m=y;R.exports=m},H7XF:function(R,D,n){"use strict";D.byteLength=l,D.toByteArray=i,D.fromByteArray=e;for(var y=[],g=[],S=typeof Uint8Array!="undefined"?Uint8Array:Array,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,f=m.length;p<f;++p)y[p]=m[p],g[m.charCodeAt(p)]=p;g["-".charCodeAt(0)]=62,g["_".charCodeAt(0)]=63;function d(u){var r=u.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=u.indexOf("=");s===-1&&(s=r);var c=s===r?0:4-s%4;return[s,c]}function l(u){var r=d(u),s=r[0],c=r[1];return(s+c)*3/4-c}function a(u,r,s){return(r+s)*3/4-s}function i(u){var r,s=d(u),c=s[0],h=s[1],v=new S(a(u,c,h)),A=0,b=h>0?c-4:c,x;for(x=0;x<b;x+=4)r=g[u.charCodeAt(x)]<<18|g[u.charCodeAt(x+1)]<<12|g[u.charCodeAt(x+2)]<<6|g[u.charCodeAt(x+3)],v[A++]=r>>16&255,v[A++]=r>>8&255,v[A++]=r&255;return h===2&&(r=g[u.charCodeAt(x)]<<2|g[u.charCodeAt(x+1)]>>4,v[A++]=r&255),h===1&&(r=g[u.charCodeAt(x)]<<10|g[u.charCodeAt(x+1)]<<4|g[u.charCodeAt(x+2)]>>2,v[A++]=r>>8&255,v[A++]=r&255),v}function t(u){return y[u>>18&63]+y[u>>12&63]+y[u>>6&63]+y[u&63]}function o(u,r,s){for(var c,h=[],v=r;v<s;v+=3)c=(u[v]<<16&16711680)+(u[v+1]<<8&65280)+(u[v+2]&255),h.push(t(c));return h.join("")}function e(u){for(var r,s=u.length,c=s%3,h=[],v=16383,A=0,b=s-c;A<b;A+=v)h.push(o(u,A,A+v>b?b:A+v));return c===1?(r=u[s-1],h.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(u[s-2]<<8)+u[s-1],h.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),h.join("")}},H8j4:function(R,D,n){var y=n("QkVE");function g(S,m){var p=y(this,S),f=p.size;return p.set(S,m),this.size+=p.size==f?0:1,this}R.exports=g},HBhm:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},HDXh:function(R,D,n){"use strict";(function(y){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/var g=n("H7XF"),S=n("kVK+"),m=n("49sm");D.Buffer=l,D.SlowBuffer=h,D.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:p(),D.kMaxLength=f();function p(){try{var he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(J){return!1}}function f(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(he,J){if(f()<J)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(J),he.__proto__=l.prototype):(he===null&&(he=new l(J)),he.length=J),he}function l(he,J,Y){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(he,J,Y);if(typeof he=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,he)}return a(this,he,J,Y)}l.poolSize=8192,l._augment=function(he){return he.__proto__=l.prototype,he};function a(he,J,Y,$){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(he,J,Y,$):typeof J=="string"?e(he,J,Y):s(he,J)}l.from=function(he,J,Y){return a(null,he,J,Y)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0}));function i(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function t(he,J,Y,$){return i(J),J<=0?d(he,J):Y!==void 0?typeof $=="string"?d(he,J).fill(Y,$):d(he,J).fill(Y):d(he,J)}l.alloc=function(he,J,Y){return t(null,he,J,Y)};function o(he,J){if(i(J),he=d(he,J<0?0:c(J)|0),!l.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)he[Y]=0;return he}l.allocUnsafe=function(he){return o(null,he)},l.allocUnsafeSlow=function(he){return o(null,he)};function e(he,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!l.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var $=v(J,Y)|0;he=d(he,$);var de=he.write(J,Y);return de!==$&&(he=he.slice(0,de)),he}function u(he,J){var Y=J.length<0?0:c(J.length)|0;he=d(he,Y);for(var $=0;$<Y;$+=1)he[$]=J[$]&255;return he}function r(he,J,Y,$){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+($||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&$===void 0?J=new Uint8Array(J):$===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,$),l.TYPED_ARRAY_SUPPORT?(he=J,he.__proto__=l.prototype):he=u(he,J),he}function s(he,J){if(l.isBuffer(J)){var Y=c(J.length)|0;return he=d(he,Y),he.length===0||J.copy(he,0,0,Y),he}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||et(J.length)?d(he,0):u(he,J);if(J.type==="Buffer"&&m(J.data))return u(he,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(he){if(he>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return he|0}function h(he){return+he!=he&&(he=0),l.alloc(+he)}l.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},l.compare=function(J,Y){if(!l.isBuffer(J)||!l.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var $=J.length,de=Y.length,be=0,Te=Math.min($,de);be<Te;++be)if(J[be]!==Y[be]){$=J[be],de=Y[be];break}return $<de?-1:de<$?1:0},l.isEncoding=function(J){switch(String(J).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}},l.concat=function(J,Y){if(!m(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return l.alloc(0);var $;if(Y===void 0)for(Y=0,$=0;$<J.length;++$)Y+=J[$].length;var de=l.allocUnsafe(Y),be=0;for($=0;$<J.length;++$){var Te=J[$];if(!l.isBuffer(Te))throw new TypeError('"list" argument must be an Array of Buffers');Te.copy(de,be),be+=Te.length}return de};function v(he,J){if(l.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var Y=he.length;if(Y===0)return 0;for(var $=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Qe(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Fe(he).length;default:if($)return Qe(he).length;J=(""+J).toLowerCase(),$=!0}}l.byteLength=v;function A(he,J,Y){var $=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(he||(he="utf8");;)switch(he){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return F(this,J,Y);case"base64":return k(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,J,Y);default:if($)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),$=!0}}l.prototype._isBuffer=!0;function b(he,J,Y){var $=he[J];he[J]=he[Y],he[Y]=$}l.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},l.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},l.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},l.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?M(this,0,J):A.apply(this,arguments)},l.prototype.equals=function(J){if(!l.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:l.compare(this,J)===0},l.prototype.inspect=function(){var J="",Y=D.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},l.prototype.compare=function(J,Y,$,de,be){if(!l.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),$===void 0&&($=J?J.length:0),de===void 0&&(de=0),be===void 0&&(be=this.length),Y<0||$>J.length||de<0||be>this.length)throw new RangeError("out of range index");if(de>=be&&Y>=$)return 0;if(de>=be)return-1;if(Y>=$)return 1;if(Y>>>=0,$>>>=0,de>>>=0,be>>>=0,this===J)return 0;for(var Te=be-de,Be=$-Y,fe=Math.min(Te,Be),xe=this.slice(de,be),ke=J.slice(Y,$),nt=0;nt<fe;++nt)if(xe[nt]!==ke[nt]){Te=xe[nt],Be=ke[nt];break}return Te<Be?-1:Be<Te?1:0};function x(he,J,Y,$,de){if(he.length===0)return-1;if(typeof Y=="string"?($=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=de?0:he.length-1),Y<0&&(Y=he.length+Y),Y>=he.length){if(de)return-1;Y=he.length-1}else if(Y<0)if(de)Y=0;else return-1;if(typeof J=="string"&&(J=l.from(J,$)),l.isBuffer(J))return J.length===0?-1:E(he,J,Y,$,de);if(typeof J=="number")return J=J&255,l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?de?Uint8Array.prototype.indexOf.call(he,J,Y):Uint8Array.prototype.lastIndexOf.call(he,J,Y):E(he,[J],Y,$,de);throw new TypeError("val must be string, number or Buffer")}function E(he,J,Y,$,de){var be=1,Te=he.length,Be=J.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(he.length<2||J.length<2)return-1;be=2,Te/=2,Be/=2,Y/=2}function fe(pt,He){return be===1?pt[He]:pt.readUInt16BE(He*be)}var xe;if(de){var ke=-1;for(xe=Y;xe<Te;xe++)if(fe(he,xe)===fe(J,ke===-1?0:xe-ke)){if(ke===-1&&(ke=xe),xe-ke+1===Be)return ke*be}else ke!==-1&&(xe-=xe-ke),ke=-1}else for(Y+Be>Te&&(Y=Te-Be),xe=Y;xe>=0;xe--){for(var nt=!0,Ct=0;Ct<Be;Ct++)if(fe(he,xe+Ct)!==fe(J,Ct)){nt=!1;break}if(nt)return xe}return-1}l.prototype.includes=function(J,Y,$){return this.indexOf(J,Y,$)!==-1},l.prototype.indexOf=function(J,Y,$){return x(this,J,Y,$,!0)},l.prototype.lastIndexOf=function(J,Y,$){return x(this,J,Y,$,!1)};function T(he,J,Y,$){Y=Number(Y)||0;var de=he.length-Y;$?($=Number($),$>de&&($=de)):$=de;var be=J.length;if(be%2!==0)throw new TypeError("Invalid hex string");$>be/2&&($=be/2);for(var Te=0;Te<$;++Te){var Be=parseInt(J.substr(Te*2,2),16);if(isNaN(Be))return Te;he[Y+Te]=Be}return Te}function _(he,J,Y,$){return ue(Qe(J,he.length-Y),he,Y,$)}function C(he,J,Y,$){return ue(Ve(J),he,Y,$)}function w(he,J,Y,$){return C(he,J,Y,$)}function O(he,J,Y,$){return ue(Fe(J),he,Y,$)}function I(he,J,Y,$){return ue(dt(J,he.length-Y),he,Y,$)}l.prototype.write=function(J,Y,$,de){if(Y===void 0)de="utf8",$=this.length,Y=0;else if($===void 0&&typeof Y=="string")de=Y,$=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite($)?($=$|0,de===void 0&&(de="utf8")):(de=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-Y;if(($===void 0||$>be)&&($=be),J.length>0&&($<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var Te=!1;;)switch(de){case"hex":return T(this,J,Y,$);case"utf8":case"utf-8":return _(this,J,Y,$);case"ascii":return C(this,J,Y,$);case"latin1":case"binary":return w(this,J,Y,$);case"base64":return O(this,J,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,$);default:if(Te)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Te=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(he,J,Y){return J===0&&Y===he.length?g.fromByteArray(he):g.fromByteArray(he.slice(J,Y))}function M(he,J,Y){Y=Math.min(he.length,Y);for(var $=[],de=J;de<Y;){var be=he[de],Te=null,Be=be>239?4:be>223?3:be>191?2:1;if(de+Be<=Y){var fe,xe,ke,nt;switch(Be){case 1:be<128&&(Te=be);break;case 2:fe=he[de+1],(fe&192)===128&&(nt=(be&31)<<6|fe&63,nt>127&&(Te=nt));break;case 3:fe=he[de+1],xe=he[de+2],(fe&192)===128&&(xe&192)===128&&(nt=(be&15)<<12|(fe&63)<<6|xe&63,nt>2047&&(nt<55296||nt>57343)&&(Te=nt));break;case 4:fe=he[de+1],xe=he[de+2],ke=he[de+3],(fe&192)===128&&(xe&192)===128&&(ke&192)===128&&(nt=(be&15)<<18|(fe&63)<<12|(xe&63)<<6|ke&63,nt>65535&&nt<1114112&&(Te=nt))}}Te===null?(Te=65533,Be=1):Te>65535&&(Te-=65536,$.push(Te>>>10&1023|55296),Te=56320|Te&1023),$.push(Te),de+=Be}return P($)}var U=4096;function P(he){var J=he.length;if(J<=U)return String.fromCharCode.apply(String,he);for(var Y="",$=0;$<J;)Y+=String.fromCharCode.apply(String,he.slice($,$+=U));return Y}function X(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]&127);return $}function F(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]);return $}function j(he,J,Y){var $=he.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>$)&&(Y=$);for(var de="",be=J;be<Y;++be)de+=Me(he[be]);return de}function K(he,J,Y){for(var $=he.slice(J,Y),de="",be=0;be<$.length;be+=2)de+=String.fromCharCode($[be]+$[be+1]*256);return de}l.prototype.slice=function(J,Y){var $=this.length;J=~~J,Y=Y===void 0?$:~~Y,J<0?(J+=$,J<0&&(J=0)):J>$&&(J=$),Y<0?(Y+=$,Y<0&&(Y=0)):Y>$&&(Y=$),Y<J&&(Y=J);var de;if(l.TYPED_ARRAY_SUPPORT)de=this.subarray(J,Y),de.__proto__=l.prototype;else{var be=Y-J;de=new l(be,void 0);for(var Te=0;Te<be;++Te)de[Te]=this[Te+J]}return de};function z(he,J,Y){if(he%1!==0||he<0)throw new RangeError("offset is not uint");if(he+J>Y)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Te=0;++Te<Y&&(be*=256);)de+=this[J+Te]*be;return de},l.prototype.readUIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J+--Y],be=1;Y>0&&(be*=256);)de+=this[J+--Y]*be;return de},l.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},l.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},l.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},l.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},l.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},l.prototype.readIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Te=0;++Te<Y&&(be*=256);)de+=this[J+Te]*be;return be*=128,de>=be&&(de-=Math.pow(2,8*Y)),de},l.prototype.readIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=Y,be=1,Te=this[J+--de];de>0&&(be*=256);)Te+=this[J+--de]*be;return be*=128,Te>=be&&(Te-=Math.pow(2,8*Y)),Te},l.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},l.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var $=this[J]|this[J+1]<<8;return $&32768?$|4294901760:$},l.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var $=this[J+1]|this[J]<<8;return $&32768?$|4294901760:$},l.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},l.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},l.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),S.read(this,J,!0,23,4)},l.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),S.read(this,J,!1,23,4)},l.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),S.read(this,J,!0,52,8)},l.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),S.read(this,J,!1,52,8)};function V(he,J,Y,$,de,be){if(!l.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>de||J<be)throw new RangeError('"value" argument is out of bounds');if(Y+$>he.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Te=1,Be=0;for(this[Y]=J&255;++Be<$&&(Te*=256);)this[Y+Be]=J/Te&255;return Y+$},l.prototype.writeUIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Te=$-1,Be=1;for(this[Y+Te]=J&255;--Te>=0&&(Be*=256);)this[Y+Te]=J/Be&255;return Y+$},l.prototype.writeUInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,255,0),l.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(he,J,Y,$){J<0&&(J=65535+J+1);for(var de=0,be=Math.min(he.length-Y,2);de<be;++de)he[Y+de]=(J&255<<8*($?de:1-de))>>>($?de:1-de)*8}l.prototype.writeUInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},l.prototype.writeUInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function G(he,J,Y,$){J<0&&(J=4294967295+J+1);for(var de=0,be=Math.min(he.length-Y,4);de<be;++de)he[Y+de]=J>>>($?de:3-de)*8&255}l.prototype.writeUInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):G(this,J,Y,!0),Y+4},l.prototype.writeUInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4},l.prototype.writeIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Te=0,Be=1,fe=0;for(this[Y]=J&255;++Te<$&&(Be*=256);)J<0&&fe===0&&this[Y+Te-1]!==0&&(fe=1),this[Y+Te]=(J/Be>>0)-fe&255;return Y+$},l.prototype.writeIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Te=$-1,Be=1,fe=0;for(this[Y+Te]=J&255;--Te>=0&&(Be*=256);)J<0&&fe===0&&this[Y+Te+1]!==0&&(fe=1),this[Y+Te]=(J/Be>>0)-fe&255;return Y+$},l.prototype.writeInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,127,-128),l.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},l.prototype.writeInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},l.prototype.writeInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},l.prototype.writeInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):G(this,J,Y,!0),Y+4},l.prototype.writeInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),l.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4};function te(he,J,Y,$,de,be){if(Y+$>he.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function q(he,J,Y,$,de){return de||te(he,J,Y,4,34028234663852886e22,-34028234663852886e22),S.write(he,J,Y,$,23,4),Y+4}l.prototype.writeFloatLE=function(J,Y,$){return q(this,J,Y,!0,$)},l.prototype.writeFloatBE=function(J,Y,$){return q(this,J,Y,!1,$)};function se(he,J,Y,$,de){return de||te(he,J,Y,8,17976931348623157e292,-17976931348623157e292),S.write(he,J,Y,$,52,8),Y+8}l.prototype.writeDoubleLE=function(J,Y,$){return se(this,J,Y,!0,$)},l.prototype.writeDoubleBE=function(J,Y,$){return se(this,J,Y,!1,$)},l.prototype.copy=function(J,Y,$,de){if($||($=0),!de&&de!==0&&(de=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),de>0&&de<$&&(de=$),de===$)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),J.length-Y<de-$&&(de=J.length-Y+$);var be=de-$,Te;if(this===J&&$<Y&&Y<de)for(Te=be-1;Te>=0;--Te)J[Te+Y]=this[Te+$];else if(be<1e3||!l.TYPED_ARRAY_SUPPORT)for(Te=0;Te<be;++Te)J[Te+Y]=this[Te+$];else Uint8Array.prototype.set.call(J,this.subarray($,$+be),Y);return be},l.prototype.fill=function(J,Y,$,de){if(typeof J=="string"){if(typeof Y=="string"?(de=Y,Y=0,$=this.length):typeof $=="string"&&(de=$,$=this.length),J.length===1){var be=J.charCodeAt(0);be<256&&(J=be)}if(de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!l.isEncoding(de))throw new TypeError("Unknown encoding: "+de)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<$)throw new RangeError("Out of range index");if($<=Y)return this;Y=Y>>>0,$=$===void 0?this.length:$>>>0,J||(J=0);var Te;if(typeof J=="number")for(Te=Y;Te<$;++Te)this[Te]=J;else{var Be=l.isBuffer(J)?J:Qe(new l(J,de).toString()),fe=Be.length;for(Te=0;Te<$-Y;++Te)this[Te+Y]=Be[Te%fe]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function we(he){if(he=Oe(he).replace(re,""),he.length<2)return"";for(;he.length%4!==0;)he=he+"=";return he}function Oe(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function Me(he){return he<16?"0"+he.toString(16):he.toString(16)}function Qe(he,J){J=J||Infinity;for(var Y,$=he.length,de=null,be=[],Te=0;Te<$;++Te){if(Y=he.charCodeAt(Te),Y>55295&&Y<57344){if(!de){if(Y>56319){(J-=3)>-1&&be.push(239,191,189);continue}else if(Te+1===$){(J-=3)>-1&&be.push(239,191,189);continue}de=Y;continue}if(Y<56320){(J-=3)>-1&&be.push(239,191,189),de=Y;continue}Y=(de-55296<<10|Y-56320)+65536}else de&&((J-=3)>-1&&be.push(239,191,189));if(de=null,Y<128){if((J-=1)<0)break;be.push(Y)}else if(Y<2048){if((J-=2)<0)break;be.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;be.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;be.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return be}function Ve(he){for(var J=[],Y=0;Y<he.length;++Y)J.push(he.charCodeAt(Y)&255);return J}function dt(he,J){for(var Y,$,de,be=[],Te=0;Te<he.length&&!((J-=2)<0);++Te)Y=he.charCodeAt(Te),$=Y>>8,de=Y%256,be.push(de),be.push($);return be}function Fe(he){return g.toByteArray(we(he))}function ue(he,J,Y,$){for(var de=0;de<$&&!(de+Y>=J.length||de>=he.length);++de)J[de+Y]=he[de];return de}function et(he){return he!==he}}).call(this,n("yLpj"))},HDyB:function(R,D,n){var y=n("nmnc"),g=n("JHRd"),S=n("ljhN"),m=n("or5M"),p=n("7fqy"),f=n("rEGp"),d=1,l=2,a="[object Boolean]",i="[object Date]",t="[object Error]",o="[object Map]",e="[object Number]",u="[object RegExp]",r="[object Set]",s="[object String]",c="[object Symbol]",h="[object ArrayBuffer]",v="[object DataView]",A=y?y.prototype:void 0,b=A?A.valueOf:void 0;function x(E,T,_,C,w,O,I){switch(_){case v:if(E.byteLength!=T.byteLength||E.byteOffset!=T.byteOffset)return!1;E=E.buffer,T=T.buffer;case h:return!(E.byteLength!=T.byteLength||!O(new g(E),new g(T)));case a:case i:case e:return S(+E,+T);case t:return E.name==T.name&&E.message==T.message;case u:case s:return E==T+"";case o:var k=p;case r:var M=C&d;if(k||(k=f),E.size!=T.size&&!M)return!1;var U=I.get(E);if(U)return U==T;C|=l,I.set(E,T);var P=m(k(E),k(T),C,w,O,I);return I.delete(E),P;case c:if(b)return b.call(E)==b.call(T)}return!1}R.exports=x},"HF/U":function(R,D,n){var y=n("QBsz");function g(m){var p=m.coordinateSystem;if(p&&p.type!=="view")return;var f=m.getGraph();f.eachNode(function(d){var l=d.getModel();d.setLayout([+l.get("x"),+l.get("y")])}),S(f)}function S(m){m.eachEdge(function(p){var f=p.getModel().get("lineStyle.curveness")||0,d=y.clone(p.node1.getLayout()),l=y.clone(p.node2.getLayout()),a=[d,l];+f&&a.push([(d[0]+l[0])/2-(d[1]-l[1])*f,(d[1]+l[1])/2-(l[0]-d[0])*f]),p.setLayout(a)})}D.simpleLayout=g,D.simpleLayoutEdge=S},"HM/N":function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=n("/SeX"),p=n("OELB"),f=p.parsePercent,d=n("aX7z"),l=d.createScaleByModel,a=d.niceScaleExtent,i=n("IDmD"),t=n("7hqr"),o=t.getStackedDimension;n("ePAk");function e(c,h,v){var A=h.get("center"),b=v.getWidth(),x=v.getHeight();c.cx=f(A[0],b),c.cy=f(A[1],x);var E=c.getRadiusAxis(),T=Math.min(b,x)/2,_=h.get("radius");_==null?_=[0,"100%"]:S.isArray(_)||(_=[0,_]),_=[f(_[0],T),f(_[1],T)],E.inverse?E.setExtent(_[1],_[0]):E.setExtent(_[0],_[1])}function u(c,h){var v=this,A=v.getAngleAxis(),b=v.getRadiusAxis();if(A.scale.setExtent(Infinity,-Infinity),b.scale.setExtent(Infinity,-Infinity),c.eachSeries(function(T){if(T.coordinateSystem===v){var _=T.getData();S.each(_.mapDimension("radius",!0),function(C){b.scale.unionExtentFromData(_,o(_,C))}),S.each(_.mapDimension("angle",!0),function(C){A.scale.unionExtentFromData(_,o(_,C))})}}),a(A.scale,A.model),a(b.scale,b.model),A.type==="category"&&!A.onBand){var x=A.getExtent(),E=360/A.scale.count();A.inverse?x[1]+=E:x[1]-=E,A.setExtent(x[0],x[1])}}function r(c,h){if(c.type=h.get("type"),c.scale=l(h),c.onBand=h.get("boundaryGap")&&c.type==="category",c.inverse=h.get("inverse"),h.mainType==="angleAxis"){c.inverse^=h.get("clockwise");var v=h.get("startAngle");c.setExtent(v,v+(c.inverse?-360:360))}h.axis=c,c.model=h}var s={dimensions:m.prototype.dimensions,create:function(c,h){var v=[];return c.eachComponent("polar",function(A,b){var x=new m(b);x.update=u;var E=x.getRadiusAxis(),T=x.getAngleAxis(),_=A.findAxisModel("radiusAxis"),C=A.findAxisModel("angleAxis");r(E,_),r(T,C),e(x,A,h),v.push(x),A.coordinateSystem=x,x.model=A}),c.eachSeries(function(A){if(A.get("coordinateSystem")==="polar"){var b=c.queryComponents({mainType:"polar",index:A.get("polarIndex"),id:A.get("polarId")})[0];A.coordinateSystem=b.coordinateSystem}}),v}};i.register("polar",s)},HOxn:function(R,D,n){var y=n("Cwc5"),g=n("Kz5y"),S=y(g,"Promise");R.exports=S},HQEm:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("Sj0X"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},HjIi:function(R,D,n){var y=n("bYtY"),g=n("OELB"),S=g.parsePercent,m=n("7hqr"),p=m.isDimensionStacked;function f(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function d(t,o){return o.dim+t.model.componentIndex}function l(t,o,e){var u={},r=a(y.filter(o.getSeriesByType(t),function(s){return!o.isSeriesFiltered(s)&&s.coordinateSystem&&s.coordinateSystem.type==="polar"}));o.eachSeriesByType(t,function(s){if(s.coordinateSystem.type!=="polar")return;var c=s.getData(),h=s.coordinateSystem,v=h.getBaseAxis(),A=d(h,v),b=f(s),x=r[A][b],E=x.offset,T=x.width,_=h.getOtherAxis(v),C=s.coordinateSystem.cx,w=s.coordinateSystem.cy,O=s.get("barMinHeight")||0,I=s.get("barMinAngle")||0;u[b]=u[b]||[];for(var k=c.mapDimension(_.dim),M=c.mapDimension(v.dim),U=p(c,k),P=v.dim!=="radius"||!s.get("roundCap",!0),X=_.getExtent()[0],F=0,j=c.count();F<j;F++){var K=c.get(k,F),z=c.get(M,F),V=K>=0?"p":"n",Q=X;U&&(u[b][z]||(u[b][z]={p:X,n:X}),Q=u[b][z][V]);var G,te,q,se;if(_.dim==="radius"){var re=_.dataToRadius(K)-X,we=v.dataToAngle(z);Math.abs(re)<O&&(re=(re<0?-1:1)*O),G=Q,te=Q+re,q=we-E,se=q-T,U&&(u[b][z][V]=te)}else{var Oe=_.dataToAngle(K,P)-X,Me=v.dataToRadius(z);Math.abs(Oe)<I&&(Oe=(Oe<0?-1:1)*I),G=Me+E,te=G+T,q=Q,se=Q+Oe,U&&(u[b][z][V]=se)}c.setItemLayout(F,{cx:C,cy:w,r0:G,r:te,startAngle:-q*Math.PI/180,endAngle:-se*Math.PI/180})}},this)}function a(t,o){var e={};y.each(t,function(r,s){var c=r.getData(),h=r.coordinateSystem,v=h.getBaseAxis(),A=d(h,v),b=v.getExtent(),x=v.type==="category"?v.getBandWidth():Math.abs(b[1]-b[0])/c.count(),E=e[A]||{bandWidth:x,remainedWidth:x,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},T=E.stacks;e[A]=E;var _=f(r);T[_]||E.autoWidthCount++,T[_]=T[_]||{width:0,maxWidth:0};var C=S(r.get("barWidth"),x),w=S(r.get("barMaxWidth"),x),O=r.get("barGap"),I=r.get("barCategoryGap");C&&!T[_].width&&(C=Math.min(E.remainedWidth,C),T[_].width=C,E.remainedWidth-=C),w&&(T[_].maxWidth=w),O!=null&&(E.gap=O),I!=null&&(E.categoryGap=I)});var u={};return y.each(e,function(r,s){u[s]={};var c=r.stacks,h=r.bandWidth,v=S(r.categoryGap,h),A=S(r.gap,1),b=r.remainedWidth,x=r.autoWidthCount,E=(b-v)/(x+(x-1)*A);E=Math.max(E,0),y.each(c,function(w,O){var I=w.maxWidth;I&&I<E&&(I=Math.min(I,b),w.width&&(I=Math.min(I,w.width)),b-=I,w.width=I,x--)}),E=(b-v)/(x+(x-1)*A),E=Math.max(E,0);var T=0,_;y.each(c,function(w,O){w.width||(w.width=E),_=w,T+=w.width*(1+A)}),_&&(T-=_.width*A);var C=-T/2;y.each(c,function(w,O){u[s][O]=u[s][O]||{offset:C,width:w.width},C+=w.width*(1+A)})}),u}var i=l;R.exports=i},HjOm:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={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"},g=y;D.default=g},Hvzi:function(R,D){function n(y){var g=this.has(y)&&delete this.__data__[y];return this.size-=g?1:0,g}R.exports=n},Hw7h:function(R,D,n){var y=n("y+Vt"),g=y.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(S,m){var p=Math.cos,f=Math.sin,d=m.r,l=m.width,a=m.angle,i=m.x-p(a)*l*(l>=d/3?1:2),t=m.y-f(a)*l*(l>=d/3?1:2);a=m.angle-Math.PI/2,S.moveTo(i,t),S.lineTo(m.x+p(a)*l,m.y+f(a)*l),S.lineTo(m.x+p(m.angle)*d,m.y+f(m.angle)*d),S.lineTo(m.x-p(a)*l,m.y-f(a)*l),S.lineTo(i,t);return}});R.exports=g},Hxpc:function(R,D,n){var y=n("bYtY"),g=n("4NO4"),S=n("bLfw"),m=n("Qxkt"),p=n("cCMj"),f=n("7uqq"),d=S.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(a){S.prototype.init.apply(this,arguments),g.defaultEmphasis(a,"label",["show"])},optionUpdated:function(){var a=this.option,i=this;a.regions=f.getFilledRegions(a.regions,a.map,a.nameMap),this._optionModelMap=y.reduce(a.regions||[],function(t,o){return o.name&&t.set(o.name,new m(o,i)),t},y.createHashMap()),this.updateSelectedMap(a.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(a){return this._optionModelMap.get(a)||new m(null,this,this.ecModel)},getFormattedLabel:function(a,i){var t=this.getRegionModel(a),o=t.get("label"+(i==="normal"?".":i+".")+"formatter"),e={name:a};if(typeof o=="function")return e.status=i,o(e);if(typeof o=="string")return o.replace("{a}",a!=null?a:"")},setZoom:function(a){this.option.zoom=a},setCenter:function(a){this.option.center=a}});y.mixin(d,p);var l=d;R.exports=l},"I+77":function(R,D,n){var y=n("ProS");n("h54F"),n("lwQL"),n("10cm");var g=n("Z1r0"),S=n("f5Yq"),m=n("KUOm"),p=n("3m61"),f=n("01d+"),d=n("rdor"),l=n("WGYa"),a=n("ewwo");y.registerProcessor(g),y.registerVisual(S("graph","circle",null)),y.registerVisual(m),y.registerVisual(p),y.registerLayout(f),y.registerLayout(y.PRIORITY.VISUAL.POST_CHART_LAYOUT,d),y.registerLayout(l),y.registerCoordinateSystem("graphView",{create:a})},"I+Bx":function(R,D,n){var y=n("bYtY"),g=n("eIcI"),S=n("ieMj"),m=n("OELB"),p=n("aX7z"),f=p.getScaleExtent,d=p.niceScaleExtent,l=n("IDmD"),a=n("jCoz");function i(o,e,u){this._model=o,this.dimensions=[],this._indicatorAxes=y.map(o.getIndicatorModels(),function(r,s){var c="indicator_"+s,h=new g(c,r.get("axisType")==="log"?new a:new S);return h.name=r.get("name"),h.model=r,r.axis=h,this.dimensions.push(c),h},this),this.resize(o,u),this.cx,this.cy,this.r,this.r0,this.startAngle}i.prototype.getIndicatorAxes=function(){return this._indicatorAxes},i.prototype.dataToPoint=function(o,e){var u=this._indicatorAxes[e];return this.coordToPoint(u.dataToCoord(o),e)},i.prototype.coordToPoint=function(o,e){var u=this._indicatorAxes[e],r=u.angle,s=this.cx+o*Math.cos(r),c=this.cy-o*Math.sin(r);return[s,c]},i.prototype.pointToData=function(o){var e=o[0]-this.cx,u=o[1]-this.cy,r=Math.sqrt(e*e+u*u);e/=r,u/=r;for(var s=Math.atan2(-u,e),c=Infinity,h,v=-1,A=0;A<this._indicatorAxes.length;A++){var b=this._indicatorAxes[A],x=Math.abs(s-b.angle);x<c&&(h=b,v=A,c=x)}return[v,+(h&&h.coordToData(r))]},i.prototype.resize=function(o,e){var u=o.get("center"),r=e.getWidth(),s=e.getHeight(),c=Math.min(r,s)/2;this.cx=m.parsePercent(u[0],r),this.cy=m.parsePercent(u[1],s),this.startAngle=o.get("startAngle")*Math.PI/180;var h=o.get("radius");(typeof h=="string"||typeof h=="number")&&(h=[0,h]),this.r0=m.parsePercent(h[0],c),this.r=m.parsePercent(h[1],c),y.each(this._indicatorAxes,function(v,A){v.setExtent(this.r0,this.r);var b=this.startAngle+A*Math.PI*2/this._indicatorAxes.length;b=Math.atan2(Math.sin(b),Math.cos(b)),v.angle=b},this)},i.prototype.update=function(o,e){var u=this._indicatorAxes,r=this._model;y.each(u,function(h){h.scale.setExtent(Infinity,-Infinity)}),o.eachSeriesByType("radar",function(h,v){if(h.get("coordinateSystem")!=="radar"||o.getComponent("radar",h.get("radarIndex"))!==r)return;var A=h.getData();y.each(u,function(b){b.scale.unionExtentFromData(A,A.mapDimension(b.dim))})},this);var s=r.get("splitNumber");function c(h){var v=Math.pow(10,Math.floor(Math.log(h)/Math.LN10)),A=h/v;return A===2?A=5:A*=2,A*v}y.each(u,function(h,v){var A=f(h.scale,h.model).extent;d(h.scale,h.model);var b=h.model,x=h.scale,E=b.getMin(),T=b.getMax(),_=x.getInterval();if(E!=null&&T!=null)x.setExtent(+E,+T),x.setInterval((T-E)/s);else if(E!=null){var C;do C=E+_*s,x.setExtent(+E,C),x.setInterval(_),_=c(_);while(C<A[1]&&isFinite(C)&&isFinite(A[1]))}else if(T!=null){var w;do w=T-_*s,x.setExtent(w,+T),x.setInterval(_),_=c(_);while(w>A[0]&&isFinite(w)&&isFinite(A[0]))}else{var O=x.getTicks().length-1;O>s&&(_=c(_));var C=Math.ceil(A[1]/_)*_,w=m.round(C-_*s);x.setExtent(w,C),x.setInterval(_)}})},i.dimensions=[],i.create=function(o,e){var u=[];return o.eachComponent("radar",function(r){var s=new i(r,o,e);u.push(s),r.coordinateSystem=s}),o.eachSeriesByType("radar",function(r){r.get("coordinateSystem")==="radar"&&(r.coordinateSystem=u[r.get("radarIndex")||0])}),u},l.register("radar",i);var t=i;R.exports=t},"I3/A":function(R,D,n){var y=n("bYtY"),g=n("YXkt"),S=n("c2i1"),m=n("Mdki"),p=n("sdST"),f=n("IDmD"),d=n("MwEJ");function l(a,i,t,o,e){for(var u=new S(o),r=0;r<a.length;r++)u.addNode(y.retrieve(a[r].id,a[r].name,r),r);for(var s=[],c=[],h=0,r=0;r<i.length;r++){var v=i[r],A=v.source,b=v.target;u.addEdge(A,b,h)&&(c.push(v),s.push(y.retrieve(v.id,A+" > "+b)),h++)}var x=t.get("coordinateSystem"),E;if(x==="cartesian2d"||x==="polar")E=d(a,t);else{var T=f.get(x),_=T&&T.type!=="view"?T.dimensions||[]:[];y.indexOf(_,"value")<0&&_.concat(["value"]);var C=p(a,{coordDimensions:_});E=new g(C,t),E.initData(a)}var w=new g(["value"],t);return w.initData(c,s),e&&e(E,w),m({mainData:E,struct:u,structAttr:"graph",datas:{node:E,edge:w},datasAttr:{node:"data",edge:"edgeData"}}),u.update(),u}R.exports=l},I8Z2:function(R,D,n){"use strict";n.d(D,"a",function(){return m}),n.d(D,"b",function(){return e}),n.d(D,"c",function(){return r});var y=n("q1tI"),g=function(){var s=function(h,v){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var x in b)b.hasOwnProperty(x)&&(A[x]=b[x])},s(h,v)};return function(c,h){s(c,h);function v(){this.constructor=c}c.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}}(),S=y.createContext(null),m=function(s){g(c,s);function c(){return s!==null&&s.apply(this,arguments)||this}return c.prototype.render=function(){return y.createElement(S.Provider,{value:this.props.store},this.props.children)},c}(y.Component),p=n("Gytx"),f=n.n(p),d=n("2mql"),l=n.n(d),a=function(){var s=function(h,v){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var x in b)b.hasOwnProperty(x)&&(A[x]=b[x])},s(h,v)};return function(c,h){s(c,h);function v(){this.constructor=c}c.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}}(),i=function(){return i=Object.assign||function(s){for(var c,h=1,v=arguments.length;h<v;h++){c=arguments[h];for(var A in c)Object.prototype.hasOwnProperty.call(c,A)&&(s[A]=c[A])}return s},i.apply(this,arguments)};function t(s){return s.displayName||s.name||"Component"}var o=function(){return{}};function e(s,c){c===void 0&&(c={});var h=!!s,v=s||o;return function(b){var x=function(T){a(_,T);function _(C,w){var O=T.call(this,C,w)||this;return O.unsubscribe=null,O.handleChange=function(){if(!O.unsubscribe)return;var I=v(O.store.getState(),O.props);O.setState({subscribed:I})},O.store=O.context,O.state={subscribed:v(O.store.getState(),C),store:O.store,props:C},O}return _.getDerivedStateFromProps=function(C,w){return s&&s.length===2&&C!==w.props?{subscribed:v(w.store.getState(),C),props:C}:{props:C}},_.prototype.componentDidMount=function(){this.trySubscribe()},_.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},_.prototype.shouldComponentUpdate=function(C,w){return!f()(this.props,C)||!f()(this.state.subscribed,w.subscribed)},_.prototype.trySubscribe=function(){h&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},_.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},_.prototype.render=function(){var C=i(i(i({},this.props),this.state.subscribed),{store:this.store});return y.createElement(b,i({},C,{ref:this.props.miniStoreForwardedRef}))},_.displayName="Connect("+t(b)+")",_.contextType=S,_}(y.Component);if(c.forwardRef){var E=y.forwardRef(function(T,_){return y.createElement(x,i({},T,{miniStoreForwardedRef:_}))});return l()(E,b)}return l()(x,b)}}var u=function(){return u=Object.assign||function(s){for(var c,h=1,v=arguments.length;h<v;h++){c=arguments[h];for(var A in c)Object.prototype.hasOwnProperty.call(c,A)&&(s[A]=c[A])}return s},u.apply(this,arguments)};function r(s){var c=s,h=[];function v(x){c=u(u({},c),x);for(var E=0;E<h.length;E++)h[E]()}function A(){return c}function b(x){return h.push(x),function(){var T=h.indexOf(x);h.splice(T,1)}}return{setState:v,getState:A,subscribe:b}}},"I9Y+":function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("4xFK")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="DoubleRightOutlined";var i=m.forwardRef(a);D.default=i},ICMv:function(R,D,n){var y=n("bYtY"),g={getMin:function(S){var m=this.option,p=!S&&m.rangeStart!=null?m.rangeStart:m.min;return this.axis&&p!=null&&p!=="dataMin"&&typeof p!="function"&&!y.eqNaN(p)&&(p=this.axis.scale.parse(p)),p},getMax:function(S){var m=this.option,p=!S&&m.rangeEnd!=null?m.rangeEnd:m.max;return this.axis&&p!=null&&p!=="dataMax"&&typeof p!="function"&&!y.eqNaN(p)&&(p=this.axis.scale.parse(p)),p},getNeedCrossZero:function(){var S=this.option;return S.rangeStart!=null||S.rangeEnd!=null?!1:!S.scale},getCoordSysModel:y.noop,setRange:function(S,m){this.option.rangeStart=S,this.option.rangeEnd=m},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};R.exports=g},"ID/q":function(R,D,n){"use strict";n.d(D,"a",function(){return m});var y=n("cDf5"),g=n.n(y);function S(p,f){typeof p=="function"?p(f):g()(p)==="object"&&p&&"current"in p&&(p.current=f)}function m(){for(var p=arguments.length,f=new Array(p),d=0;d<p;d++)f[d]=arguments[d];return function(l){f.forEach(function(a){S(a,l)})}}},IDmD:function(R,D,n){var y=n("bYtY"),g={};function S(){this._coordinateSystems=[]}S.prototype={constructor:S,create:function(p,f){var d=[];y.each(g,function(l,a){var i=l.create(p,f);d=d.concat(i||[])}),this._coordinateSystems=d},update:function(p,f){y.each(this._coordinateSystems,function(d){d.update&&d.update(p,f)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},S.register=function(p,f){g[p]=f},S.get=function(p){return g[p]};var m=S;R.exports=m},IMiH:function(R,D,n){var y=n("Sj9i"),g=n("QBsz"),S=n("4mN7"),m=n("mFDi"),p=n("LPTA"),f=p.devicePixelRatio,d={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],a=[],i=[],t=[],o=Math.min,e=Math.max,u=Math.cos,r=Math.sin,s=Math.sqrt,c=Math.abs,h=typeof Float32Array!="undefined",v=function(x){this._saveData=!(x||!1),this._saveData&&(this.data=[]),this._ctx=null};v.prototype={constructor:v,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(x,E,T){T=T||0,this._ux=c(T/f/x)||0,this._uy=c(T/f/E)||0},getContext:function(){return this._ctx},beginPath:function(x){return this._ctx=x,x&&x.beginPath(),x&&(this.dpr=x.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(x,E){return this.addData(d.M,x,E),this._ctx&&this._ctx.moveTo(x,E),this._x0=x,this._y0=E,this._xi=x,this._yi=E,this},lineTo:function(x,E){var T=c(x-this._xi)>this._ux||c(E-this._yi)>this._uy||this._len<5;return this.addData(d.L,x,E),this._ctx&&T&&(this._needsDash()?this._dashedLineTo(x,E):this._ctx.lineTo(x,E)),T&&(this._xi=x,this._yi=E),this},bezierCurveTo:function(x,E,T,_,C,w){return this.addData(d.C,x,E,T,_,C,w),this._ctx&&(this._needsDash()?this._dashedBezierTo(x,E,T,_,C,w):this._ctx.bezierCurveTo(x,E,T,_,C,w)),this._xi=C,this._yi=w,this},quadraticCurveTo:function(x,E,T,_){return this.addData(d.Q,x,E,T,_),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(x,E,T,_):this._ctx.quadraticCurveTo(x,E,T,_)),this._xi=T,this._yi=_,this},arc:function(x,E,T,_,C,w){return this.addData(d.A,x,E,T,T,_,C-_,0,w?0:1),this._ctx&&this._ctx.arc(x,E,T,_,C,w),this._xi=u(C)*T+x,this._yi=r(C)*T+E,this},arcTo:function(x,E,T,_,C){return this._ctx&&this._ctx.arcTo(x,E,T,_,C),this},rect:function(x,E,T,_){return this._ctx&&this._ctx.rect(x,E,T,_),this.addData(d.R,x,E,T,_),this},closePath:function(){this.addData(d.Z);var x=this._ctx,E=this._x0,T=this._y0;return x&&(this._needsDash()&&this._dashedLineTo(E,T),x.closePath()),this._xi=E,this._yi=T,this},fill:function(x){x&&x.fill(),this.toStatic()},stroke:function(x){x&&x.stroke(),this.toStatic()},setLineDash:function(x){if(x instanceof Array){this._lineDash=x,this._dashIdx=0;for(var E=0,T=0;T<x.length;T++)E+=x[T];this._dashSum=E}return this},setLineDashOffset:function(x){return this._dashOffset=x,this},len:function(){return this._len},setData:function(x){var E=x.length;!(this.data&&this.data.length===E)&&h&&(this.data=new Float32Array(E));for(var T=0;T<E;T++)this.data[T]=x[T];this._len=E},appendPath:function(x){x instanceof Array||(x=[x]);for(var E=x.length,T=0,_=this._len,C=0;C<E;C++)T+=x[C].len();h&&this.data instanceof Float32Array&&(this.data=new Float32Array(_+T));for(var C=0;C<E;C++)for(var w=x[C].data,O=0;O<w.length;O++)this.data[_++]=w[O];this._len=_},addData:function(x){if(!this._saveData)return;var E=this.data;this._len+arguments.length>E.length&&(this._expandData(),E=this.data);for(var T=0;T<arguments.length;T++)E[this._len++]=arguments[T];this._prevCmd=x},_expandData:function(){if(!(this.data instanceof Array)){for(var x=[],E=0;E<this._len;E++)x[E]=this.data[E];this.data=x}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(x,E){var T=this._dashSum,_=this._dashOffset,C=this._lineDash,w=this._ctx,O=this._xi,I=this._yi,k=x-O,M=E-I,U=s(k*k+M*M),P=O,X=I,F,j=C.length,K;for(k/=U,M/=U,_<0&&(_=T+_),_%=T,P-=_*k,X-=_*M;k>0&&P<=x||k<0&&P>=x||k===0&&(M>0&&X<=E||M<0&&X>=E);){if(K=this._dashIdx,F=C[K],P+=k*F,X+=M*F,this._dashIdx=(K+1)%j,k>0&&P<O||k<0&&P>O||M>0&&X<I||M<0&&X>I)continue;w[K%2?"moveTo":"lineTo"](k>=0?o(P,x):e(P,x),M>=0?o(X,E):e(X,E))}k=P-x,M=X-E,this._dashOffset=-s(k*k+M*M)},_dashedBezierTo:function(x,E,T,_,C,w){var O=this._dashSum,I=this._dashOffset,k=this._lineDash,M=this._ctx,U=this._xi,P=this._yi,X,F,j,K=y.cubicAt,z=0,V=this._dashIdx,Q=k.length,G,te,q=0;for(I<0&&(I=O+I),I%=O,X=0;X<1;X+=.1)F=K(U,x,T,C,X+.1)-K(U,x,T,C,X),j=K(P,E,_,w,X+.1)-K(P,E,_,w,X),z+=s(F*F+j*j);for(;V<Q&&!(q+=k[V],q>I);V++);for(X=(q-I)/z;X<=1;)G=K(U,x,T,C,X),te=K(P,E,_,w,X),V%2?M.moveTo(G,te):M.lineTo(G,te),X+=k[V]/z,V=(V+1)%Q;V%2!==0&&M.lineTo(C,w),F=C-G,j=w-te,this._dashOffset=-s(F*F+j*j)},_dashedQuadraticTo:function(x,E,T,_){var C=T,w=_;T=(T+2*x)/3,_=(_+2*E)/3,x=(this._xi+2*x)/3,E=(this._yi+2*E)/3,this._dashedBezierTo(x,E,T,_,C,w)},toStatic:function(){var x=this.data;x instanceof Array&&(x.length=this._len,h&&(this.data=new Float32Array(x)))},getBoundingRect:function(){l[0]=l[1]=i[0]=i[1]=Number.MAX_VALUE,a[0]=a[1]=t[0]=t[1]=-Number.MAX_VALUE;for(var x=this.data,E=0,T=0,_=0,C=0,w=0;w<x.length;){var O=x[w++];w===1&&(E=x[w],T=x[w+1],_=E,C=T);switch(O){case d.M:_=x[w++],C=x[w++],E=_,T=C,i[0]=_,i[1]=C,t[0]=_,t[1]=C;break;case d.L:S.fromLine(E,T,x[w],x[w+1],i,t),E=x[w++],T=x[w++];break;case d.C:S.fromCubic(E,T,x[w++],x[w++],x[w++],x[w++],x[w],x[w+1],i,t),E=x[w++],T=x[w++];break;case d.Q:S.fromQuadratic(E,T,x[w++],x[w++],x[w],x[w+1],i,t),E=x[w++],T=x[w++];break;case d.A:var I=x[w++],k=x[w++],M=x[w++],U=x[w++],P=x[w++],X=x[w++]+P;w+=1;var F=1-x[w++];w===1&&(_=u(P)*M+I,C=r(P)*U+k),S.fromArc(I,k,M,U,P,X,F,i,t),E=u(X)*M+I,T=r(X)*U+k;break;case d.R:_=E=x[w++],C=T=x[w++];var j=x[w++],K=x[w++];S.fromLine(_,C,_+j,C+K,i,t);break;case d.Z:E=_,T=C;break}g.min(l,l,i),g.max(a,a,t)}return w===0&&(l[0]=l[1]=a[0]=a[1]=0),new m(l[0],l[1],a[0]-l[0],a[1]-l[1])},rebuildPath:function(x){for(var E=this.data,T,_,C,w,O,I,k=this._ux,M=this._uy,U=this._len,P=0;P<U;){var X=E[P++];P===1&&(C=E[P],w=E[P+1],T=C,_=w);switch(X){case d.M:T=C=E[P++],_=w=E[P++],x.moveTo(C,w);break;case d.L:O=E[P++],I=E[P++],(c(O-C)>k||c(I-w)>M||P===U-1)&&(x.lineTo(O,I),C=O,w=I);break;case d.C:x.bezierCurveTo(E[P++],E[P++],E[P++],E[P++],E[P++],E[P++]),C=E[P-2],w=E[P-1];break;case d.Q:x.quadraticCurveTo(E[P++],E[P++],E[P++],E[P++]),C=E[P-2],w=E[P-1];break;case d.A:var F=E[P++],j=E[P++],K=E[P++],z=E[P++],V=E[P++],Q=E[P++],G=E[P++],te=E[P++],q=K>z?K:z,se=K>z?1:K/z,re=K>z?z/K:1,we=Math.abs(K-z)>.001,Oe=V+Q;we?(x.translate(F,j),x.rotate(G),x.scale(se,re),x.arc(0,0,q,V,Oe,1-te),x.scale(1/se,1/re),x.rotate(-G),x.translate(-F,-j)):x.arc(F,j,q,V,Oe,1-te),P===1&&(T=u(V)*K+F,_=r(V)*z+j),C=u(Oe)*K+F,w=r(Oe)*z+j;break;case d.R:T=C=E[P],_=w=E[P+1],x.rect(E[P++],E[P++],E[P++],E[P++]);break;case d.Z:x.closePath(),C=T,w=_}}}},v.CMD=d;var A=v;R.exports=A},IUWy:function(R,D){var n={};function y(S,m){n[S]=m}function g(S){return n[S]}D.register=y,D.get=g},IWNH:function(R,D,n){var y=n("T4UG"),g=n("Bsck"),S=n("7aKB"),m=S.encodeHTML,p=n("Qxkt"),f=y.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(d){var l={name:d.name,children:d.data},a=d.leaves||{},i=new p(a,this,this.ecModel),t=g.createTree(l,this,{},o);function o(s){s.wrapMethod("getItemModel",function(c,h){var v=t.getNodeByDataIndex(h);return(!v.children.length||!v.isExpand)&&(c.parentModel=i),c})}var e=0;t.eachNode("preorder",function(s){s.depth>e&&(e=s.depth)});var u=d.expandAndCollapse,r=u&&d.initialTreeDepth>=0?d.initialTreeDepth:e;return t.root.eachNode("preorder",function(s){var c=s.hostTree.data.getRawDataItem(s.dataIndex);s.isExpand=c&&c.collapsed!=null?!c.collapsed:s.depth<=r}),t.data},getOrient:function(){var d=this.get("orient");return d==="horizontal"?d="LR":d==="vertical"&&(d="TB"),d},setZoom:function(d){this.option.zoom=d},setCenter:function(d){this.option.center=d},formatTooltip:function(d){for(var l=this.getData().tree,a=l.root.children[0],i=l.getNodeByDataIndex(d),t=i.getValue(),o=i.name;i&&i!==a;)o=i.parentNode.name+"."+o,i=i.parentNode;return m(o+(isNaN(t)||t==null?"":" : "+t))},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}});R.exports=f},IWp7:function(R,D,n){var y=n("bYtY"),g=n("OELB"),S=n("7aKB"),m=n("lE7J"),p=n("ieMj"),f=p.prototype,d=Math.ceil,l=Math.floor,a=1e3,i=a*60,t=i*60,o=t*24,e=function(c,h,v,A){for(;v<A;){var b=v+A>>>1;c[b][1]<h?v=b+1:A=b}return v},u=p.extend({type:"time",getLabel:function(c){var h=this._stepLvl,v=new Date(c);return S.formatTime(h[0],v,this.getSetting("useUTC"))},niceExtent:function(c){var h=this._extent;if(h[0]===h[1]&&(h[0]-=o,h[1]+=o),h[1]===-Infinity&&h[0]===Infinity){var v=new Date;h[1]=+new Date(v.getFullYear(),v.getMonth(),v.getDate()),h[0]=h[1]-o}this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var A=this._interval;c.fixMin||(h[0]=g.round(l(h[0]/A)*A)),c.fixMax||(h[1]=g.round(d(h[1]/A)*A))},niceTicks:function(c,h,v){c=c||10;var A=this._extent,b=A[1]-A[0],x=b/c;h!=null&&x<h&&(x=h),v!=null&&x>v&&(x=v);var E=r.length,T=e(r,x,0,E),_=r[Math.min(T,E-1)],C=_[1];if(_[0]==="year"){var w=b/C,O=g.nice(w/c,!0);C*=O}var I=this.getSetting("useUTC")?0:new Date(+A[0]||+A[1]).getTimezoneOffset()*60*1e3,k=[Math.round(d((A[0]-I)/C)*C+I),Math.round(l((A[1]-I)/C)*C+I)];m.fixExtent(k,A),this._stepLvl=_,this._interval=C,this._niceExtent=k},parse:function(c){return+g.parseDate(c)}});y.each(["contain","normalize"],function(c){u.prototype[c]=function(h){return f[c].call(this,this.parse(h))}});var r=[["hh:mm:ss",a],["hh:mm:ss",a*5],["hh:mm:ss",a*10],["hh:mm:ss",a*15],["hh:mm:ss",a*30],[`hh:mm
MM-dd`,i],[`hh:mm
MM-dd`,i*5],[`hh:mm
MM-dd`,i*10],[`hh:mm
MM-dd`,i*15],[`hh:mm
MM-dd`,i*30],[`hh:mm
MM-dd`,t],[`hh:mm
MM-dd`,t*2],[`hh:mm
MM-dd`,t*6],[`hh:mm
MM-dd`,t*12],[`MM-dd
yyyy`,o],[`MM-dd
yyyy`,o*2],[`MM-dd
yyyy`,o*3],[`MM-dd
yyyy`,o*4],[`MM-dd
yyyy`,o*5],[`MM-dd
yyyy`,o*6],["week",o*7],[`MM-dd
yyyy`,o*10],["week",o*14],["week",o*21],["month",o*31],["week",o*42],["month",o*62],["week",o*70],["quarter",o*95],["month",o*31*4],["month",o*31*5],["half-year",o*380/2],["month",o*31*8],["month",o*31*10],["year",o*380]];u.create=function(c){return new u({useUTC:c.ecModel.get("useUTC")})};var s=u;R.exports=s},IXuL:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("MwEJ"),m=n("T4UG"),p=m.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(f,d){return S(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}});R.exports=p},IXyC:function(R,D,n){var y=n("bYtY"),g=n("bLfw");n("3zoK");var S=g.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(){g.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(m){var p=this.option;m&&y.merge(p,m,!0),this._initDimensions()},contains:function(m,p){var f=m.get("parallelIndex");return f!=null&&p.getComponent("parallel",f)===this},setAxisExpand:function(m){y.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(p){m.hasOwnProperty(p)&&(this.option[p]=m[p])},this)},_initDimensions:function(){var m=this.dimensions=[],p=this.parallelAxisIndex=[],f=y.filter(this.dependentModels.parallelAxis,function(d){return(d.get("parallelIndex")||0)===this.componentIndex},this);y.each(f,function(d){m.push("dim"+d.get("dim")),p.push(d.componentIndex)})}});R.exports=S},Ib8C:function(R,D,n){(function(y){(function(g,S){R.exports=D=S()})(this,function(){var g=g||function(S,m){var p;if(typeof window!="undefined"&&window.crypto&&(p=window.crypto),typeof self!="undefined"&&self.crypto&&(p=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(p=globalThis.crypto),!p&&typeof window!="undefined"&&window.msCrypto&&(p=window.msCrypto),!p&&typeof y!="undefined"&&y.crypto&&(p=y.crypto),!p&&!0)try{p=n(4)}catch(v){}var f=function(){if(p){if(typeof p.getRandomValues=="function")try{return p.getRandomValues(new Uint32Array(1))[0]}catch(A){}if(typeof p.randomBytes=="function")try{return p.randomBytes(4).readInt32LE()}catch(A){}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function v(){}return function(A){var b;return v.prototype=A,b=new v,v.prototype=null,b}}(),l={},a=l.lib={},i=a.Base=function(){return{extend:function(A){var b=d(this);return A&&b.mixIn(A),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var A=this.extend();return A.init.apply(A,arguments),A},init:function(){},mixIn:function(A){for(var b in A)A.hasOwnProperty(b)&&(this[b]=A[b]);A.hasOwnProperty("toString")&&(this.toString=A.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=a.WordArray=i.extend({init:function(A,b){A=this.words=A||[],b!=m?this.sigBytes=b:this.sigBytes=A.length*4},toString:function(A){return(A||e).stringify(this)},concat:function(A){var b=this.words,x=A.words,E=this.sigBytes,T=A.sigBytes;if(this.clamp(),E%4)for(var _=0;_<T;_++){var C=x[_>>>2]>>>24-_%4*8&255;b[E+_>>>2]|=C<<24-(E+_)%4*8}else for(var w=0;w<T;w+=4)b[E+w>>>2]=x[w>>>2];return this.sigBytes+=T,this},clamp:function(){var A=this.words,b=this.sigBytes;A[b>>>2]&=4294967295<<32-b%4*8,A.length=S.ceil(b/4)},clone:function(){var A=i.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var b=[],x=0;x<A;x+=4)b.push(f());return new t.init(b,A)}}),o=l.enc={},e=o.Hex={stringify:function(A){for(var b=A.words,x=A.sigBytes,E=[],T=0;T<x;T++){var _=b[T>>>2]>>>24-T%4*8&255;E.push((_>>>4).toString(16)),E.push((_&15).toString(16))}return E.join("")},parse:function(A){for(var b=A.length,x=[],E=0;E<b;E+=2)x[E>>>3]|=parseInt(A.substr(E,2),16)<<24-E%8*4;return new t.init(x,b/2)}},u=o.Latin1={stringify:function(A){for(var b=A.words,x=A.sigBytes,E=[],T=0;T<x;T++){var _=b[T>>>2]>>>24-T%4*8&255;E.push(String.fromCharCode(_))}return E.join("")},parse:function(A){for(var b=A.length,x=[],E=0;E<b;E++)x[E>>>2]|=(A.charCodeAt(E)&255)<<24-E%4*8;return new t.init(x,b)}},r=o.Utf8={stringify:function(A){try{return decodeURIComponent(escape(u.stringify(A)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(A){return u.parse(unescape(encodeURIComponent(A)))}},s=a.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=r.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var b,x=this._data,E=x.words,T=x.sigBytes,_=this.blockSize,C=_*4,w=T/C;A?w=S.ceil(w):w=S.max((w|0)-this._minBufferSize,0);var O=w*_,I=S.min(O*4,T);if(O){for(var k=0;k<O;k+=_)this._doProcessBlock(E,k);b=E.splice(0,O),x.sigBytes-=I}return new t.init(b,I)},clone:function(){var A=i.clone.call(this);return A._data=this._data.clone(),A},_minBufferSize:0}),c=a.Hasher=s.extend({cfg:i.extend(),init:function(A){this.cfg=this.cfg.extend(A),this.reset()},reset:function(){s.reset.call(this),this._doReset()},update:function(A){return this._append(A),this._process(),this},finalize:function(A){A&&this._append(A);var b=this._doFinalize();return b},blockSize:512/32,_createHelper:function(A){return function(b,x){return new A.init(x).finalize(b)}},_createHmacHelper:function(A){return function(b,x){return new h.HMAC.init(A,x).finalize(b)}}}),h=l.algo={};return l}(Math);return g})}).call(this,n("yLpj"))},ItGF:function(R,D){var n={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?n={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?n={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?n={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:n=g(navigator.userAgent);var y=n;function g(S){var m={},p={},f=S.match(/Firefox\/([\d.]+)/),d=S.match(/MSIE\s([\d.]+)/)||S.match(/Trident\/.+?rv:(([\d.]+))/),l=S.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(S);return f&&(p.firefox=!0,p.version=f[1]),d&&(p.ie=!0,p.version=d[1]),l&&(p.edge=!0,p.version=l[1]),a&&(p.weChat=!0),{browser:p,os:m,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!p.ie&&!p.edge,pointerEventsSupported:"onpointerdown"in window&&(p.edge||p.ie&&p.version>=11),domSupported:typeof document!="undefined"}}R.exports=y},ItS6:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("eP3c"),g=S(n("1q3G"));function S(l){return l&&l.__esModule?l:{default:l}}function m(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function p(l,a){for(var i=0;i<a.length;i++){var t=a[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}function f(l,a,i){return a&&p(l.prototype,a),i&&p(l,i),l}var d=function(){function l(){m(this,l),this.strm=new g.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,y.inflateInit)(this.strm,this.windowBits)}return f(l,[{key:"setInput",value:function(i){i?(this.strm.input=i,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(i){i>this.chunkSize&&(this.chunkSize=i,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=i;var t=(0,y.inflate)(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=i)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,y.inflateReset)(this.strm)}}]),l}();D.default=d},Itpr:function(R,D,n){var y=n("+TT/");function g(r){r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var s=[r],c,h;c=s.pop();)if(h=c.children,c.isExpand&&h.length)for(var v=h.length,A=v-1;A>=0;A--){var b=h[A];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:A,thread:null},s.push(b)}}function S(r,s){var c=r.isExpand?r.children:[],h=r.parentNode.children,v=r.hierNode.i?h[r.hierNode.i-1]:null;if(c.length){l(r);var A=(c[0].hierNode.prelim+c[c.length-1].hierNode.prelim)/2;v?(r.hierNode.prelim=v.hierNode.prelim+s(r,v),r.hierNode.modifier=r.hierNode.prelim-A):r.hierNode.prelim=A}else v&&(r.hierNode.prelim=v.hierNode.prelim+s(r,v));r.parentNode.hierNode.defaultAncestor=a(r,v,r.parentNode.hierNode.defaultAncestor||h[0],s)}function m(r){var s=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:s},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function p(r){return arguments.length?r:u}function f(r,s){var c={};return r-=Math.PI/2,c.x=s*Math.cos(r),c.y=s*Math.sin(r),c}function d(r,s){return y.getLayoutRect(r.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()})}function l(r){for(var s=r.children,c=s.length,h=0,v=0;--c>=0;){var A=s[c];A.hierNode.prelim+=h,A.hierNode.modifier+=h,v+=A.hierNode.change,h+=A.hierNode.shift+v}}function a(r,s,c,h){if(s){for(var v=r,A=r,b=A.parentNode.children[0],x=s,E=v.hierNode.modifier,T=A.hierNode.modifier,_=b.hierNode.modifier,C=x.hierNode.modifier;x=i(x),A=t(A),x&&A;){v=i(v),b=t(b),v.hierNode.ancestor=r;var w=x.hierNode.prelim+C-A.hierNode.prelim-T+h(x,A);w>0&&(e(o(x,r,c),r,w),T+=w,E+=w),C+=x.hierNode.modifier,T+=A.hierNode.modifier,E+=v.hierNode.modifier,_+=b.hierNode.modifier}x&&!i(v)&&(v.hierNode.thread=x,v.hierNode.modifier+=C-E),A&&!t(b)&&(b.hierNode.thread=A,b.hierNode.modifier+=T-_,c=r)}return c}function i(r){var s=r.children;return s.length&&r.isExpand?s[s.length-1]:r.hierNode.thread}function t(r){var s=r.children;return s.length&&r.isExpand?s[0]:r.hierNode.thread}function o(r,s,c){return r.hierNode.ancestor.parentNode===s.parentNode?r.hierNode.ancestor:c}function e(r,s,c){var h=c/(s.hierNode.i-r.hierNode.i);s.hierNode.change-=h,s.hierNode.shift+=c,s.hierNode.modifier+=c,s.hierNode.prelim+=c,r.hierNode.change+=h}function u(r,s){return r.parentNode===s.parentNode?1:2}D.init=g,D.firstWalk=S,D.secondWalk=m,D.separation=p,D.radialCoordinate=f,D.getViewRect=d},IwbS:function(R,D,n){var y=n("bYtY"),g=n("NC18"),S=n("Qe9p"),m=n("Fofx"),p=n("QBsz"),f=n("y+Vt"),d=n("DN4a"),l=n("Dagg");D.Image=l;var a=n("4fz+");D.Group=a;var i=n("dqUG");D.Text=i;var t=n("2fw6");D.Circle=t;var o=n("SqI9");D.Sector=o;var e=n("RXMa");D.Ring=e;var u=n("h7HQ");D.Polygon=u;var r=n("1Jh7");D.Polyline=r;var s=n("x6Kt");D.Rect=s;var c=n("yxFR");D.Line=c;var h=n("rA99");D.BezierCurve=h;var v=n("jTL6");D.Arc=v;var A=n("1MYJ");D.CompoundPath=A;var b=n("SKnc");D.LinearGradient=b;var x=n("3e3G");D.RadialGradient=x;var E=n("mFDi");D.BoundingRect=E;var T=n("OS9S");D.IncrementalDisplayable=T;var _=n("nPnh"),C=Math.max,w=Math.min,O={},I=1,k={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},M="emphasis",U="normal",P=1,X={},F={};function j(lt){return f.extend(lt)}function K(lt,tt){return g.extendFromString(lt,tt)}function z(lt,tt){F[lt]=tt}function V(lt){if(F.hasOwnProperty(lt))return F[lt]}function Q(lt,tt,Cr,nn){var mn=g.createFromString(lt,tt);return Cr&&(nn==="center"&&(Cr=te(Cr,mn.getBoundingRect())),se(mn,Cr)),mn}function G(lt,tt,Cr){var nn=new l({style:{image:lt,x:tt.x,y:tt.y,width:tt.width,height:tt.height},onload:function(mn){if(Cr==="center"){var Bn={width:mn.width,height:mn.height};nn.setStyle(te(tt,Bn))}}});return nn}function te(lt,tt){var Cr=tt.width/tt.height,nn=lt.height*Cr,mn;nn<=lt.width?mn=lt.height:(nn=lt.width,mn=nn/Cr);var Bn=lt.x+lt.width/2,oi=lt.y+lt.height/2;return{x:Bn-nn/2,y:oi-mn/2,width:nn,height:mn}}var q=g.mergePath;function se(lt,tt){if(!lt.applyTransform)return;var Cr=lt.getBoundingRect(),nn=Cr.calculateTransform(tt);lt.applyTransform(nn)}function re(lt){return _.subPixelOptimizeLine(lt.shape,lt.shape,lt.style),lt}function we(lt){return _.subPixelOptimizeRect(lt.shape,lt.shape,lt.style),lt}var Oe=_.subPixelOptimize;function Me(lt){return lt!=null&&lt!=="none"}var Qe=y.createHashMap(),Ve=0;function dt(lt){if(typeof lt!="string")return lt;var tt=Qe.get(lt);return tt||(tt=S.lift(lt,-.1),Ve<1e4&&(Qe.set(lt,tt),Ve++)),tt}function Fe(lt){if(!lt.__hoverStlDirty)return;lt.__hoverStlDirty=!1;var tt=lt.__hoverStl;if(!tt){lt.__cachedNormalStl=lt.__cachedNormalZ2=null;return}var Cr=lt.__cachedNormalStl={};lt.__cachedNormalZ2=lt.z2;var nn=lt.style;for(var mn in tt)tt[mn]!=null&&(Cr[mn]=nn[mn]);Cr.fill=nn.fill,Cr.stroke=nn.stroke}function ue(lt){var tt=lt.__hoverStl;if(!tt||lt.__highlighted)return;var Cr=lt.__zr,nn=lt.useHoverLayer&&Cr&&Cr.painter.type==="canvas";if(lt.__highlighted=nn?"layer":"plain",lt.isGroup||!Cr&&lt.useHoverLayer)return;var mn=lt,Bn=lt.style;nn&&(mn=Cr.addHover(lt),Bn=mn.style),Jt(Bn),nn||Fe(mn),Bn.extendFrom(tt),et(Bn,tt,"fill"),et(Bn,tt,"stroke"),Ht(Bn),nn||(lt.dirty(!1),lt.z2+=I)}function et(lt,tt,Cr){!Me(tt[Cr])&&Me(lt[Cr])&&(lt[Cr]=dt(lt[Cr]))}function he(lt){var tt=lt.__highlighted;if(!tt)return;if(lt.__highlighted=!1,lt.isGroup)return;if(tt==="layer")lt.__zr&&lt.__zr.removeHover(lt);else{var Cr=lt.style,nn=lt.__cachedNormalStl;nn&&(Jt(Cr),lt.setStyle(nn),Ht(Cr));var mn=lt.__cachedNormalZ2;mn!=null&&lt.z2-mn===I&&(lt.z2=mn)}}function J(lt,tt,Cr){var nn=U,mn=U,Bn;lt.__highlighted&&(nn=M,Bn=!0),tt(lt,Cr),lt.__highlighted&&(mn=M,Bn=!0),lt.isGroup&&lt.traverse(function(oi){!oi.isGroup&&tt(oi,Cr)}),Bn&&lt.__highDownOnUpdate&&lt.__highDownOnUpdate(nn,mn)}function Y(lt,tt){tt=lt.__hoverStl=tt!==!1&&(lt.hoverStyle||tt||{}),lt.__hoverStlDirty=!0,lt.__highlighted&&(lt.__cachedNormalStl=null,he(lt),ue(lt))}function $(lt){!Be(this,lt)&&!this.__highByOuter&&J(this,ue)}function de(lt){!Be(this,lt)&&!this.__highByOuter&&J(this,he)}function be(lt){this.__highByOuter|=1<<(lt||0),J(this,ue)}function Te(lt){!(this.__highByOuter&=~(1<<(lt||0)))&&J(this,he)}function Be(lt,tt){return lt.__highDownSilentOnTouch&&tt.zrByTouch}function fe(lt,tt){xe(lt,!0),J(lt,Y,tt)}function xe(lt,tt){var Cr=tt===!1;if(lt.__highDownSilentOnTouch=lt.highDownSilentOnTouch,lt.__highDownOnUpdate=lt.highDownOnUpdate,!Cr||lt.__highDownDispatcher){var nn=Cr?"off":"on";lt[nn]("mouseover",$)[nn]("mouseout",de),lt[nn]("emphasis",be)[nn]("normal",Te),lt.__highByOuter=lt.__highByOuter||0,lt.__highDownDispatcher=!Cr}}function ke(lt){return!!(lt&&lt.__highDownDispatcher)}function nt(lt){var tt=X[lt];return tt==null&&P<=32&&(tt=X[lt]=P++),tt}function Ct(lt,tt,Cr,nn,mn,Bn,oi){mn=mn||O;var wn=mn.labelFetcher,Rn=mn.labelDataIndex,Zt=mn.labelDimIndex,Tt=mn.labelProp,De=Cr.getShallow("show"),Re=nn.getShallow("show"),Pe;(De||Re)&&(wn&&(Pe=wn.getFormattedLabel(Rn,"normal",null,Zt,Tt)),Pe==null&&(Pe=y.isFunction(mn.defaultText)?mn.defaultText(Rn,mn):mn.defaultText));var rt=De?Pe:null,wt=Re?y.retrieve2(wn?wn.getFormattedLabel(Rn,"emphasis",null,Zt,Tt):null,Pe):null;(rt!=null||wt!=null)&&(He(lt,Cr,Bn,mn),He(tt,nn,oi,mn,!0)),lt.text=rt,tt.text=wt}function pt(lt,tt,Cr){var nn=lt.style;tt&&(Jt(nn),lt.setStyle(tt),Ht(nn)),nn=lt.__hoverStl,Cr&&nn&&(Jt(nn),y.extend(nn,Cr),Ht(nn))}function He(lt,tt,Cr,nn,mn){return ht(lt,tt,nn,mn),Cr&&y.extend(lt,Cr),lt}function nr(lt,tt,Cr){var nn={isRectText:!0},mn;Cr===!1?mn=!0:nn.autoColor=Cr,ht(lt,tt,nn,mn)}function ht(lt,tt,Cr,nn){if(Cr=Cr||O,Cr.isRectText){var mn;Cr.getTextPosition?mn=Cr.getTextPosition(tt,nn):(mn=tt.getShallow("position")||(nn?null:"inside"),mn==="outside"&&(mn="top")),lt.textPosition=mn,lt.textOffset=tt.getShallow("offset");var Bn=tt.getShallow("rotate");Bn!=null&&(Bn*=Math.PI/180),lt.textRotation=Bn,lt.textDistance=y.retrieve2(tt.getShallow("distance"),nn?null:5)}var oi=tt.ecModel,wn=oi&&oi.option.textStyle,Rn=Gt(tt),Zt;if(Rn){Zt={};for(var Tt in Rn)if(Rn.hasOwnProperty(Tt)){var De=tt.getModel(["rich",Tt]);pr(Zt[Tt]={},De,wn,Cr,nn)}}return lt.rich=Zt,pr(lt,tt,wn,Cr,nn,!0),Cr.forceRich&&!Cr.textStyle&&(Cr.textStyle={}),lt}function Gt(lt){for(var tt;lt&&lt!==lt.ecModel;){var Cr=(lt.option||O).rich;if(Cr){tt=tt||{};for(var nn in Cr)Cr.hasOwnProperty(nn)&&(tt[nn]=1)}lt=lt.parentModel}return tt}function pr(lt,tt,Cr,nn,mn,Bn){Cr=!mn&&Cr||O,lt.textFill=Qt(tt.getShallow("color"),nn)||Cr.color,lt.textStroke=Qt(tt.getShallow("textBorderColor"),nn)||Cr.textBorderColor,lt.textStrokeWidth=y.retrieve2(tt.getShallow("textBorderWidth"),Cr.textBorderWidth),mn||(Bn&&(lt.insideRollbackOpt=nn,Ht(lt)),lt.textFill==null&&(lt.textFill=nn.autoColor)),lt.fontStyle=tt.getShallow("fontStyle")||Cr.fontStyle,lt.fontWeight=tt.getShallow("fontWeight")||Cr.fontWeight,lt.fontSize=tt.getShallow("fontSize")||Cr.fontSize,lt.fontFamily=tt.getShallow("fontFamily")||Cr.fontFamily,lt.textAlign=tt.getShallow("align"),lt.textVerticalAlign=tt.getShallow("verticalAlign")||tt.getShallow("baseline"),lt.textLineHeight=tt.getShallow("lineHeight"),lt.textWidth=tt.getShallow("width"),lt.textHeight=tt.getShallow("height"),lt.textTag=tt.getShallow("tag"),(!Bn||!nn.disableBox)&&(lt.textBackgroundColor=Qt(tt.getShallow("backgroundColor"),nn),lt.textPadding=tt.getShallow("padding"),lt.textBorderColor=Qt(tt.getShallow("borderColor"),nn),lt.textBorderWidth=tt.getShallow("borderWidth"),lt.textBorderRadius=tt.getShallow("borderRadius"),lt.textBoxShadowColor=tt.getShallow("shadowColor"),lt.textBoxShadowBlur=tt.getShallow("shadowBlur"),lt.textBoxShadowOffsetX=tt.getShallow("shadowOffsetX"),lt.textBoxShadowOffsetY=tt.getShallow("shadowOffsetY")),lt.textShadowColor=tt.getShallow("textShadowColor")||Cr.textShadowColor,lt.textShadowBlur=tt.getShallow("textShadowBlur")||Cr.textShadowBlur,lt.textShadowOffsetX=tt.getShallow("textShadowOffsetX")||Cr.textShadowOffsetX,lt.textShadowOffsetY=tt.getShallow("textShadowOffsetY")||Cr.textShadowOffsetY}function Qt(lt,tt){return lt!=="auto"?lt:tt&&tt.autoColor?tt.autoColor:null}function Ht(lt){var tt=lt.textPosition,Cr=lt.insideRollbackOpt,nn;if(Cr&&lt.textFill==null){var mn=Cr.autoColor,Bn=Cr.isRectText,oi=Cr.useInsideStyle,wn=oi!==!1&&(oi===!0||Bn&&tt&&typeof tt=="string"&&tt.indexOf("inside")>=0),Rn=!wn&&mn!=null;(wn||Rn)&&(nn={textFill:lt.textFill,textStroke:lt.textStroke,textStrokeWidth:lt.textStrokeWidth}),wn&&(lt.textFill="#fff",lt.textStroke==null&&(lt.textStroke=mn,lt.textStrokeWidth==null&&(lt.textStrokeWidth=2))),Rn&&(lt.textFill=mn)}lt.insideRollback=nn}function Jt(lt){var tt=lt.insideRollback;tt&&(lt.textFill=tt.textFill,lt.textStroke=tt.textStroke,lt.textStrokeWidth=tt.textStrokeWidth,lt.insideRollback=null)}function Ge(lt,tt){var Cr=tt&&tt.getModel("textStyle");return y.trim([lt.fontStyle||Cr&&Cr.getShallow("fontStyle")||"",lt.fontWeight||Cr&&Cr.getShallow("fontWeight")||"",(lt.fontSize||Cr&&Cr.getShallow("fontSize")||12)+"px",lt.fontFamily||Cr&&Cr.getShallow("fontFamily")||"sans-serif"].join(" "))}function pe(lt,tt,Cr,nn,mn,Bn){typeof mn=="function"&&(Bn=mn,mn=null);var oi=nn&&nn.isAnimationEnabled();if(oi){var wn=lt?"Update":"",Rn=nn.getShallow("animationDuration"+wn),Zt=nn.getShallow("animationEasing"+wn),Tt=nn.getShallow("animationDelay"+wn);typeof Tt=="function"&&(Tt=Tt(mn,nn.getAnimationDelayParams?nn.getAnimationDelayParams(tt,mn):null)),typeof Rn=="function"&&(Rn=Rn(mn)),Rn>0?tt.animateTo(Cr,Rn,Tt||0,Zt,Bn,!!Bn):(tt.stopAnimation(),tt.attr(Cr),Bn&&Bn())}else tt.stopAnimation(),tt.attr(Cr),Bn&&Bn()}function oe(lt,tt,Cr,nn,mn){pe(!0,lt,tt,Cr,nn,mn)}function ct(lt,tt,Cr,nn,mn){pe(!1,lt,tt,Cr,nn,mn)}function qe(lt,tt){for(var Cr=m.identity([]);lt&&lt!==tt;)m.mul(Cr,lt.getLocalTransform(),Cr),lt=lt.parent;return Cr}function me(lt,tt,Cr){return tt&&!y.isArrayLike(tt)&&(tt=d.getLocalTransform(tt)),Cr&&(tt=m.invert([],tt)),p.applyTransform([],lt,tt)}function Kt(lt,tt,Cr){var nn=tt[4]===0||tt[5]===0||tt[0]===0?1:Math.abs(2*tt[4]/tt[0]),mn=tt[4]===0||tt[5]===0||tt[2]===0?1:Math.abs(2*tt[4]/tt[2]),Bn=[lt==="left"?-nn:lt==="right"?nn:0,lt==="top"?-mn:lt==="bottom"?mn:0];return Bn=me(Bn,tt,Cr),Math.abs(Bn[0])>Math.abs(Bn[1])?Bn[0]>0?"right":"left":Bn[1]>0?"bottom":"top"}function vr(lt,tt,Cr,nn){if(!lt||!tt)return;function mn(wn){var Rn={};return wn.traverse(function(Zt){!Zt.isGroup&&Zt.anid&&(Rn[Zt.anid]=Zt)}),Rn}function Bn(wn){var Rn={position:p.clone(wn.position),rotation:wn.rotation};return wn.shape&&(Rn.shape=y.extend({},wn.shape)),Rn}var oi=mn(lt);tt.traverse(function(wn){if(!wn.isGroup&&wn.anid){var Rn=oi[wn.anid];if(Rn){var Zt=Bn(wn);wn.attr(Bn(Rn)),oe(wn,Zt,Cr,wn.dataIndex)}}})}function bt(lt,tt){return y.map(lt,function(Cr){var nn=Cr[0];nn=C(nn,tt.x),nn=w(nn,tt.x+tt.width);var mn=Cr[1];return mn=C(mn,tt.y),mn=w(mn,tt.y+tt.height),[nn,mn]})}function or(lt,tt){var Cr=C(lt.x,tt.x),nn=w(lt.x+lt.width,tt.x+tt.width),mn=C(lt.y,tt.y),Bn=w(lt.y+lt.height,tt.y+tt.height);if(nn>=Cr&&Bn>=mn)return{x:Cr,y:mn,width:nn-Cr,height:Bn-mn}}function _t(lt,tt,Cr){tt=y.extend({rectHover:!0},tt);var nn=tt.style={strokeNoScale:!0};if(Cr=Cr||{x:-1,y:-1,width:2,height:2},lt)return lt.indexOf("image://")===0?(nn.image=lt.slice(8),y.defaults(nn,Cr),new l(tt)):Q(lt.replace("path://",""),tt,Cr,"center")}function jt(lt,tt,Cr,nn,mn){for(var Bn=0,oi=mn[mn.length-1];Bn<mn.length;Bn++){var wn=mn[Bn];if(ut(lt,tt,Cr,nn,wn[0],wn[1],oi[0],oi[1]))return!0;oi=wn}}function ut(lt,tt,Cr,nn,mn,Bn,oi,wn){var Rn=Cr-lt,Zt=nn-tt,Tt=oi-mn,De=wn-Bn,Re=St(Tt,De,Rn,Zt);if(mt(Re))return!1;var Pe=lt-mn,rt=tt-Bn,wt=St(Pe,rt,Rn,Zt)/Re;if(wt<0||wt>1)return!1;var Ot=St(Pe,rt,Tt,De)/Re;return!(Ot<0||Ot>1)}function St(lt,tt,Cr,nn){return lt*nn-Cr*tt}function mt(lt){return lt<=1e-6&&lt>=-1e-6}z("circle",t),z("sector",o),z("ring",e),z("polygon",u),z("polyline",r),z("rect",s),z("line",c),z("bezierCurve",h),z("arc",v),D.Z2_EMPHASIS_LIFT=I,D.CACHED_LABEL_STYLE_PROPERTIES=k,D.extendShape=j,D.extendPath=K,D.registerShape=z,D.getShapeClass=V,D.makePath=Q,D.makeImage=G,D.mergePath=q,D.resizePath=se,D.subPixelOptimizeLine=re,D.subPixelOptimizeRect=we,D.subPixelOptimize=Oe,D.setElementHoverStyle=Y,D.setHoverStyle=fe,D.setAsHighDownDispatcher=xe,D.isHighDownDispatcher=ke,D.getHighlightDigit=nt,D.setLabelStyle=Ct,D.modifyLabelStyle=pt,D.setTextStyle=He,D.setText=nr,D.getFont=Ge,D.updateProps=oe,D.initProps=ct,D.getTransform=qe,D.applyTransform=me,D.transformDirection=Kt,D.groupTransition=vr,D.clipPointsByRect=bt,D.clipRectByRect=or,D.createIcon=_t,D.linePolygonIntersect=jt,D.lineLineIntersect=ut},IyUQ:function(R,D,n){var y=n("bYtY"),g=n("YH21"),S=n("IwbS"),m=n("iLNv"),p=n("fc+c"),f=n("OELB"),d=n("+TT/"),l=n("72pK"),a=S.Rect,i=f.linearMap,t=f.asc,o=y.bind,e=y.each,u=7,r=1,s=30,c="horizontal",h="vertical",v=5,A=["line","bar","candlestick","scatter"],b=p.extend({type:"dataZoom.slider",init:function(_,C){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=C},render:function(_,C,w,O){if(b.superApply(this,"render",arguments),m.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=_.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(){b.superApply(this,"remove",arguments),m.clear(this,"_dispatchZoomAction")},dispose:function(){b.superApply(this,"dispose",arguments),m.clear(this,"_dispatchZoomAction")},_buildView:function(){var _=this.group;_.removeAll(),this._resetLocation(),this._resetInterval();var C=this._displayables.barGroup=new S.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),_.add(C),this._positionGroup()},_resetLocation:function(){var _=this.dataZoomModel,C=this.api,w=this._findCoordRect(),O={width:C.getWidth(),height:C.getHeight()},I=this._orient===c?{right:O.width-w.x-w.width,top:O.height-s-u,width:w.width,height:s}:{right:u,top:w.y,width:s,height:w.height},k=d.getLayoutParams(_.option);y.each(["right","top","width","height"],function(U){k[U]==="ph"&&(k[U]=I[U])});var M=d.getLayoutRect(k,O,_.padding);this._location={x:M.x,y:M.y},this._size=[M.width,M.height],this._orient===h&&this._size.reverse()},_positionGroup:function(){var _=this.group,C=this._location,w=this._orient,O=this.dataZoomModel.getFirstTargetAxisModel(),I=O&&O.get("inverse"),k=this._displayables.barGroup,M=(this._dataShadowInfo||{}).otherAxisInverse;k.attr(w===c&&!I?{scale:M?[1,1]:[1,-1]}:w===c&&I?{scale:M?[-1,1]:[-1,-1]}:w===h&&!I?{scale:M?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:M?[-1,-1]:[-1,1],rotation:Math.PI/2});var U=_.getBoundingRect([k]);_.attr("position",[C.x-U.x,C.y-U.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var _=this.dataZoomModel,C=this._size,w=this._displayables.barGroup;w.add(new a({silent:!0,shape:{x:0,y:0,width:C[0],height:C[1]},style:{fill:_.get("backgroundColor")},z2:-40})),w.add(new a({shape:{x:0,y:0,width:C[0],height:C[1]},style:{fill:"transparent"},z2:0,onclick:y.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var _=this._dataShadowInfo=this._prepareDataShadowInfo();if(!_)return;var C=this._size,w=_.series,O=w.getRawData(),I=w.getShadowDim?w.getShadowDim():_.otherDim;if(I==null)return;var k=O.getDataExtent(I),M=(k[1]-k[0])*.3;k=[k[0]-M,k[1]+M];var U=[0,C[1]],P=[0,C[0]],X=[[C[0],0],[0,0]],F=[],j=P[1]/(O.count()-1),K=0,z=Math.round(O.count()/C[0]),V;O.each([I],function(G,te){if(z>0&&te%z){K+=j;return}var q=G==null||isNaN(G)||G==="",se=q?0:i(G,k,U,!0);q&&!V&&te?(X.push([X[X.length-1][0],0]),F.push([F[F.length-1][0],0])):!q&&V&&(X.push([K,0]),F.push([K,0])),X.push([K,se]),F.push([K,se]),K+=j,V=q});var Q=this.dataZoomModel;this._displayables.barGroup.add(new S.Polygon({shape:{points:X},style:y.defaults({fill:Q.get("dataBackgroundColor")},Q.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new S.Polyline({shape:{points:F},style:Q.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var _=this.dataZoomModel,C=_.get("showDataShadow");if(C===!1)return;var w,O=this.ecModel;return _.eachTargetAxis(function(I,k){var M=_.getAxisProxy(I.name,k).getTargetSeriesModels();y.each(M,function(U){if(w)return;if(C!==!0&&y.indexOf(A,U.get("type"))<0)return;var P=O.getComponent(I.axis,k).axis,X=x(I.name),F,j=U.coordinateSystem;X!=null&&j.getOtherAxis&&(F=j.getOtherAxis(P).inverse),X=U.getData().mapDimension(X),w={thisAxis:P,series:U,thisDim:I.name,otherDim:X,otherAxisInverse:F}},this)},this),w},_renderHandle:function(){var _=this._displayables,C=_.handles=[],w=_.handleLabels=[],O=this._displayables.barGroup,I=this._size,k=this.dataZoomModel;O.add(_.filler=new a({draggable:!0,cursor:E(this._orient),drift:o(this._onDragMove,this,"all"),ondragstart:o(this._showDataInfo,this,!0),ondragend:o(this._onDragEnd,this),onmouseover:o(this._showDataInfo,this,!0),onmouseout:o(this._showDataInfo,this,!1),style:{fill:k.get("fillerColor"),textPosition:"inside"}})),O.add(new a({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:I[0],height:I[1]},style:{stroke:k.get("dataBackgroundColor")||k.get("borderColor"),lineWidth:r,fill:"rgba(0,0,0,0)"}})),e([0,1],function(M){var U=S.createIcon(k.get("handleIcon"),{cursor:E(this._orient),draggable:!0,drift:o(this._onDragMove,this,M),ondragend:o(this._onDragEnd,this),onmouseover:o(this._showDataInfo,this,!0),onmouseout:o(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),P=U.getBoundingRect();this._handleHeight=f.parsePercent(k.get("handleSize"),this._size[1]),this._handleWidth=P.width/P.height*this._handleHeight,U.setStyle(k.getModel("handleStyle").getItemStyle());var X=k.get("handleColor");X!=null&&(U.style.fill=X),O.add(C[M]=U);var F=k.textStyleModel;this.group.add(w[M]=new S.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:F.getTextColor(),textFont:F.getFont()},z2:10}))},this)},_resetInterval:function(){var _=this._range=this.dataZoomModel.getPercentRange(),C=this._getViewExtent();this._handleEnds=[i(_[0],[0,100],C,!0),i(_[1],[0,100],C,!0)]},_updateInterval:function(_,C){var w=this.dataZoomModel,O=this._handleEnds,I=this._getViewExtent(),k=w.findRepresentativeAxisProxy().getMinMaxSpan(),M=[0,100];l(C,O,I,w.get("zoomLock")?"all":_,k.minSpan!=null?i(k.minSpan,M,I,!0):null,k.maxSpan!=null?i(k.maxSpan,M,I,!0):null);var U=this._range,P=this._range=t([i(O[0],I,M,!0),i(O[1],I,M,!0)]);return!U||U[0]!==P[0]||U[1]!==P[1]},_updateView:function(_){var C=this._displayables,w=this._handleEnds,O=t(w.slice()),I=this._size;e([0,1],function(k){var M=C.handles[k],U=this._handleHeight;M.attr({scale:[U/2,U/2],position:[w[k],I[1]/2-U/2]})},this),C.filler.setShape({x:O[0],y:0,width:O[1]-O[0],height:I[1]}),this._updateDataInfo(_)},_updateDataInfo:function(_){var C=this.dataZoomModel,w=this._displayables,O=w.handleLabels,I=this._orient,k=["",""];if(C.get("showDetail")){var M=C.findRepresentativeAxisProxy();if(M){var U=M.getAxisModel().axis,P=this._range,X=_?M.calculateDataWindow({start:P[0],end:P[1]}).valueWindow:M.getDataValueWindow();k=[this._formatLabel(X[0],U),this._formatLabel(X[1],U)]}}var F=t(this._handleEnds.slice());j.call(this,0),j.call(this,1);function j(K){var z=S.getTransform(w.handles[K].parent,this.group),V=S.transformDirection(K===0?"right":"left",z),Q=this._handleWidth/2+v,G=S.applyTransform([F[K]+(K===0?-Q:Q),this._size[1]/2],z);O[K].setStyle({x:G[0],y:G[1],textVerticalAlign:I===c?"middle":V,textAlign:I===c?V:"center",text:k[K]})}},_formatLabel:function(_,C){var w=this.dataZoomModel,O=w.get("labelFormatter"),I=w.get("labelPrecision");(I==null||I==="auto")&&(I=C.getPixelPrecision());var k=_==null||isNaN(_)?"":C.type==="category"||C.type==="time"?C.scale.getLabel(Math.round(_)):_.toFixed(Math.min(I,20));return y.isFunction(O)?O(_,k):y.isString(O)?O.replace("{value}",k):k},_showDataInfo:function(_){_=this._dragging||_;var C=this._displayables.handleLabels;C[0].attr("invisible",!_),C[1].attr("invisible",!_)},_onDragMove:function(_,C,w,O){this._dragging=!0,g.stop(O.event);var I=this._displayables.barGroup.getLocalTransform(),k=S.applyTransform([C,w],I,!0),M=this._updateInterval(_,k[0]),U=this.dataZoomModel.get("realtime");this._updateView(!U),M&&U&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var _=this.dataZoomModel.get("realtime");!_&&this._dispatchZoomAction()},_onClickPanelClick:function(_){var C=this._size,w=this._displayables.barGroup.transformCoordToLocal(_.offsetX,_.offsetY);if(w[0]<0||w[0]>C[0]||w[1]<0||w[1]>C[1])return;var O=this._handleEnds,I=(O[0]+O[1])/2,k=this._updateInterval("all",w[0]-I);this._updateView(),k&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var _=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:_[0],end:_[1]})},_findCoordRect:function(){var _;if(e(this.getTargetCoordInfo(),function(O){if(!_&&O.length){var I=O[0].model.coordinateSystem;_=I.getRect&&I.getRect()}}),!_){var C=this.api.getWidth(),w=this.api.getHeight();_={x:C*.2,y:w*.2,width:C*.6,height:w*.6}}return _}});function x(_){var C={x:"y",y:"x",radius:"angle",angle:"radius"};return C[_]}function E(_){return _==="vertical"?"ns-resize":"ew-resize"}var T=b;R.exports=T},IzEo:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("lnY3"),m=n.n(S),p=n("Znn+"),f=n("14J3"),d=n("jCWc")},J66h:function(R,D,n){(function(y){var g,S;(function(m,p){R.exports=p(m)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof y!="undefined"?y:this,function(m){"use strict";m=m||{};var p=m.Base64,f="2.6.4",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(U){for(var P={},X=0,F=U.length;X<F;X++)P[U.charAt(X)]=X;return P}(d),a=String.fromCharCode,i=function(P){if(P.length<2){var X=P.charCodeAt(0);return X<128?P:X<2048?a(192|X>>>6)+a(128|X&63):a(224|X>>>12&15)+a(128|X>>>6&63)+a(128|X&63)}else{var X=65536+(P.charCodeAt(0)-55296)*1024+(P.charCodeAt(1)-56320);return a(240|X>>>18&7)+a(128|X>>>12&63)+a(128|X>>>6&63)+a(128|X&63)}},t=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,o=function(P){return P.replace(t,i)},e=function(P){var X=[0,2,1][P.length%3],F=P.charCodeAt(0)<<16|(P.length>1?P.charCodeAt(1):0)<<8|(P.length>2?P.charCodeAt(2):0),j=[d.charAt(F>>>18),d.charAt(F>>>12&63),X>=2?"=":d.charAt(F>>>6&63),X>=1?"=":d.charAt(F&63)];return j.join("")},u=m.btoa&&typeof m.btoa=="function"?function(U){return m.btoa(U)}:function(U){if(U.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return U.replace(/[\s\S]{1,3}/g,e)},r=function(P){return u(o(String(P)))},s=function(P){return P.replace(/[+\/]/g,function(X){return X=="+"?"-":"_"}).replace(/=/g,"")},c=function(P,X){return X?s(r(P)):r(P)},h=function(P){return c(P,!0)},v;m.Uint8Array&&(v=function(P,X){for(var F="",j=0,K=P.length;j<K;j+=3){var z=P[j],V=P[j+1],Q=P[j+2],G=z<<16|V<<8|Q;F+=d.charAt(G>>>18)+d.charAt(G>>>12&63)+(typeof V!="undefined"?d.charAt(G>>>6&63):"=")+(typeof Q!="undefined"?d.charAt(G&63):"=")}return X?s(F):F});var A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(P){switch(P.length){case 4:var X=(7&P.charCodeAt(0))<<18|(63&P.charCodeAt(1))<<12|(63&P.charCodeAt(2))<<6|63&P.charCodeAt(3),F=X-65536;return a((F>>>10)+55296)+a((F&1023)+56320);case 3:return a((15&P.charCodeAt(0))<<12|(63&P.charCodeAt(1))<<6|63&P.charCodeAt(2));default:return a((31&P.charCodeAt(0))<<6|63&P.charCodeAt(1))}},x=function(P){return P.replace(A,b)},E=function(P){var X=P.length,F=X%4,j=(X>0?l[P.charAt(0)]<<18:0)|(X>1?l[P.charAt(1)]<<12:0)|(X>2?l[P.charAt(2)]<<6:0)|(X>3?l[P.charAt(3)]:0),K=[a(j>>>16),a(j>>>8&255),a(j&255)];return K.length-=[0,0,2,1][F],K.join("")},T=m.atob&&typeof m.atob=="function"?function(U){return m.atob(U)}:function(U){return U.replace(/\S{1,4}/g,E)},_=function(P){return T(String(P).replace(/[^A-Za-z0-9\+\/]/g,""))},C=function(P){return x(T(P))},w=function(P){return String(P).replace(/[-_]/g,function(X){return X=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(P){return C(w(P))},I;m.Uint8Array&&(I=function(P){return Uint8Array.from(_(w(P)),function(X){return X.charCodeAt(0)})});var k=function(){var P=m.Base64;return m.Base64=p,P};if(m.Base64={VERSION:f,atob:_,btoa:u,fromBase64:O,toBase64:c,utob:o,encode:c,encodeURI:h,btou:x,decode:O,noConflict:k,fromUint8Array:v,toUint8Array:I},typeof Object.defineProperty=="function"){var M=function(P){return{value:P,enumerable:!1,writable:!0,configurable:!0}};m.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",M(function(){return O(this)})),Object.defineProperty(String.prototype,"toBase64",M(function(U){return c(this,U)})),Object.defineProperty(String.prototype,"toBase64URI",M(function(){return c(this,!0)}))}}return m.Meteor&&(Base64=m.Base64),R.exports?R.exports.Base64=m.Base64:!(g=[],S=function(){return m.Base64}.apply(D,g),S!==void 0&&(R.exports=S)),{Base64:m.Base64}})}).call(this,n("yLpj"))},JEkh:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("ProS"),m=n("bYtY"),p=n("ItGF"),f=n("4NO4"),d=n("7aKB"),l=n("OKJ2"),a=d.addCommas,i=d.encodeHTML;function t(u){f.defaultEmphasis(u,"label",["show"])}var o=S.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(u,r,s){this.mergeDefaultAndTheme(u,s),this._mergeOption(u,s,!1,!0)},isAnimationEnabled:function(){if(p.node)return!1;var u=this.__hostSeries;return this.getShallow("animation")&&u&&u.isAnimationEnabled()},mergeOption:function(u,r){this._mergeOption(u,r,!1,!1)},_mergeOption:function(u,r,s,c){var h=this.constructor,v=this.mainType+"Model";s||r.eachSeries(function(A){var b=A.get(this.mainType,!0),x=A[v];if(!b||!b.data){A[v]=null;return}x?x._mergeOption(b,r,!0):(c&&t(b),m.each(b.data,function(E){E instanceof Array?(t(E[0]),t(E[1])):t(E)}),x=new h(b,this,r),m.extend(x,{mainType:this.mainType,seriesIndex:A.seriesIndex,name:A.name,createdBySelf:!0}),x.__hostSeries=A),A[v]=x},this)},formatTooltip:function(u){var r=this.getData(),s=this.getRawValue(u),c=m.isArray(s)?m.map(s,a).join(", "):a(s),h=r.getName(u),v=i(this.name);return(s!=null||h)&&(v+="<br />"),h&&(v+=i(h),s!=null&&(v+=" : ")),s!=null&&(v+=i(c)),v},getData:function(){return this._data},setData:function(u){this._data=u}});m.mixin(o,l);var e=o;R.exports=e},JGo8:function(R,D,n){},JHRd:function(R,D,n){var y=n("Kz5y"),g=y.Uint8Array;R.exports=g},JHgL:function(R,D,n){var y=n("QkVE");function g(S){return y(this,S).get(S)}R.exports=g},JLnu:function(R,D,n){var y=n("+TT/"),g=n("OELB"),S=g.parsePercent,m=g.linearMap;function p(a,i){return y.getLayoutRect(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function f(a,i){for(var t=a.mapDimension("value"),o=a.mapArray(t,function(c){return c}),e=[],u=i==="ascending",r=0,s=a.count();r<s;r++)e[r]=r;return typeof i=="function"?e.sort(i):i!=="none"&&e.sort(function(c,h){return u?o[c]-o[h]:o[h]-o[c]}),e}function d(a){a.each(function(i){var t=a.getItemModel(i),o=t.getModel("label"),e=o.get("position"),u=t.getModel("labelLine"),r=a.getItemLayout(i),s=r.points,c=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",h,v,A,b;if(c)e==="insideLeft"?(v=(s[0][0]+s[3][0])/2+5,A=(s[0][1]+s[3][1])/2,h="left"):e==="insideRight"?(v=(s[1][0]+s[2][0])/2-5,A=(s[1][1]+s[2][1])/2,h="right"):(v=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,A=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,h="center"),b=[[v,A],[v,A]];else{var x,E,T,_=u.get("length");e==="left"?(x=(s[3][0]+s[0][0])/2,E=(s[3][1]+s[0][1])/2,T=x-_,v=T-5,h="right"):e==="right"?(x=(s[1][0]+s[2][0])/2,E=(s[1][1]+s[2][1])/2,T=x+_,v=T+5,h="left"):e==="rightTop"?(x=s[1][0],E=s[1][1],T=x+_,v=T+5,h="top"):e==="rightBottom"?(x=s[2][0],E=s[2][1],T=x+_,v=T+5,h="bottom"):e==="leftTop"?(x=s[0][0],E=s[1][1],T=x-_,v=T-5,h="right"):e==="leftBottom"?(x=s[3][0],E=s[2][1],T=x-_,v=T-5,h="right"):(x=(s[1][0]+s[2][0])/2,E=(s[1][1]+s[2][1])/2,T=x+_,v=T+5,h="left");var C=E;b=[[x,E],[T,C]],A=C}r.label={linePoints:b,x:v,y:A,verticalAlign:"middle",textAlign:h,inside:c}})}function l(a,i,t){a.eachSeriesByType("funnel",function(o){var e=o.getData(),u=e.mapDimension("value"),r=o.get("sort"),s=p(o,i),c=f(e,r),h=[S(o.get("minSize"),s.width),S(o.get("maxSize"),s.width)],v=e.getDataExtent(u),A=o.get("min"),b=o.get("max");A==null&&(A=Math.min(v[0],0)),b==null&&(b=v[1]);var x=o.get("funnelAlign"),E=o.get("gap"),T=(s.height-E*(e.count()-1))/e.count(),_=s.y,C=function(X,F){var j=e.get(u,X)||0,K=m(j,[A,b],h,!0),z;switch(x){case"left":z=s.x;break;case"center":z=s.x+(s.width-K)/2;break;case"right":z=s.x+s.width-K;break}return[[z,F],[z+K,F]]};r==="ascending"&&(T=-T,E=-E,_+=s.height,c=c.reverse());for(var w=0;w<c.length;w++){var O=c[w],I=c[w+1],k=e.getItemModel(O),M=k.get("itemStyle.height");M==null?M=T:(M=S(M,s.height),r==="ascending"&&(M=-M));var U=C(O,_),P=C(I,_+M);_+=M+E,e.setItemLayout(O,{points:U.concat(P.slice().reverse())})}d(e)})}R.exports=l},JSQU:function(R,D,n){var y=n("YESw"),g="__lodash_hash_undefined__";function S(m,p){var f=this.__data__;return this.size+=this.has(m)?0:1,f[m]=y&&p===void 0?g:p,this}R.exports=S},JSwD:function(R,D,n){"use strict";function y(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(h){return typeof h}:y=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},y(s)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=r;var g=m(n("6BzB"));function S(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return S=function(){return s},s}function m(s){if(s&&s.__esModule)return s;if(s===null||y(s)!=="object"&&typeof s!="function")return{default:s};var c=S();if(c&&c.has(s))return c.get(s);var h={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in s)if(Object.prototype.hasOwnProperty.call(s,A)){var b=v?Object.getOwnPropertyDescriptor(s,A):null;b&&(b.get||b.set)?Object.defineProperty(h,A,b):h[A]=s[A]}return h.default=s,c&&c.set(s,h),h}var p=15,f=852,d=592,l=0,a=1,i=2,t=[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],o=[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],u=[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 r(s,c,h,v,A,b,x,E){var T=E.bits,_=0,C=0,w=0,O=0,I=0,k=0,M=0,U=0,P=0,X=0,F,j,K,z,V,Q=null,G=0,te,q=new g.Buf16(p+1),se=new g.Buf16(p+1),re=null,we=0,Oe,Me,Qe;for(_=0;_<=p;_++)q[_]=0;for(C=0;C<v;C++)q[c[h+C]]++;for(I=T,O=p;O>=1&&!(q[O]!==0);O--);if(I>O&&(I=O),O===0)return A[b++]=1<<24|64<<16|0,A[b++]=1<<24|64<<16|0,E.bits=1,0;for(w=1;w<O&&!(q[w]!==0);w++);for(I<w&&(I=w),U=1,_=1;_<=p;_++)if(U<<=1,U-=q[_],U<0)return-1;if(U>0&&(s===l||O!==1))return-1;for(se[1]=0,_=1;_<p;_++)se[_+1]=se[_]+q[_];for(C=0;C<v;C++)c[h+C]!==0&&(x[se[c[h+C]]++]=C);if(s===l?(Q=re=x,te=19):s===a?(Q=t,G-=257,re=o,we-=257,te=256):(Q=e,re=u,te=-1),X=0,C=0,_=w,V=b,k=I,M=0,K=-1,P=1<<I,z=P-1,s===a&&P>f||s===i&&P>d)return 1;for(;;){Oe=_-M,x[C]<te?(Me=0,Qe=x[C]):x[C]>te?(Me=re[we+x[C]],Qe=Q[G+x[C]]):(Me=32+64,Qe=0),F=1<<_-M,j=1<<k,w=j;do j-=F,A[V+(X>>M)+j]=Oe<<24|Me<<16|Qe|0;while(j!==0);for(F=1<<_-1;X&F;)F>>=1;if(F!==0?(X&=F-1,X+=F):X=0,C++,--q[_]===0){if(_===O)break;_=c[h+x[C]]}if(_>I&&(X&z)!==K){for(M===0&&(M=I),V+=w,k=_-M,U=1<<k;k+M<O&&!(U-=q[k+M],U<=0);)k++,U<<=1;if(P+=1<<k,s===a&&P>f||s===i&&P>d)return 1;K=X&z,A[K]=I<<24|k<<16|V-b|0}}return X!==0&&(A[V+X]=_-M<<24|64<<16|0),E.bits=I,0}},JTzB:function(R,D,n){var y=n("NykK"),g=n("ExA7"),S="[object Arguments]";function m(p){return g(p)&&y(p)==S}R.exports=m},JVwQ:function(R,D,n){var y=n("ProS"),g=n("1NG9"),S=g.Polygon,m=n("IwbS"),p=n("bYtY"),f=p.bind,d=p.extend,l=n("gPAo"),a=y.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,o,e){var u=t.getData(),r=this.group,s=t.getLayerSeries(),c=u.getLayout("layoutInfo"),h=c.rect,v=c.boundaryGap;r.attr("position",[0,h.y+v[0]]);function A(T){return T.name}var b=new l(this._layersSeries||[],s,A,A),x={};b.add(f(E,this,"add")).update(f(E,this,"update")).remove(f(E,this,"remove")).execute();function E(T,_,C){var w=this._layers;if(T==="remove"){r.remove(w[_]);return}for(var O=[],I=[],k,M=s[_].indices,U=0;U<M.length;U++){var P=u.getItemLayout(M[U]),X=P.x,F=P.y0,j=P.y;O.push([X,F]),I.push([X,F+j]),k=u.getItemVisual(M[U],"color")}var K,z,V=u.getItemLayout(M[0]),Q=u.getItemModel(M[U-1]),G=Q.getModel("label"),te=G.get("margin");if(T==="add"){var q=x[_]=new m.Group;K=new S({shape:{points:O,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),z=new m.Text({style:{x:V.x-te,y:V.y0+V.y/2}}),q.add(K),q.add(z),r.add(q),K.setClipPath(i(K.getBoundingRect(),t,function(){K.removeClipPath()}))}else{var q=w[C];K=q.childAt(0),z=q.childAt(1),r.add(q),x[_]=q,m.updateProps(K,{shape:{points:O,stackedOnPoints:I}},t),m.updateProps(z,{style:{x:V.x-te,y:V.y0+V.y/2}},t)}var se=Q.getModel("emphasis.itemStyle"),re=Q.getModel("itemStyle");m.setTextStyle(z.style,G,{text:G.get("show")?t.getFormattedLabel(M[U-1],"normal")||u.getName(M[U-1]):null,textVerticalAlign:"middle"}),K.setStyle(d({fill:k},re.getItemStyle(["color"]))),m.setHoverStyle(K,se.getItemStyle())}this._layersSeries=s,this._layers=x},dispose:function(){}});function i(t,o,e){var u=new m.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return m.initProps(u,{shape:{width:t.width+20,height:t.height+20}},o,e),u}R.exports=a},JgUQ:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},JsLm:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("lwsE"),f=n.n(p),d=n("W8MJ"),l=n.n(d),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),u=n.n(e),r=n("q1tI"),s=n("i8i4"),c=n("TSYQ"),h=n.n(c),v=n("zT1h"),A=n("cDf5"),b=n.n(A),x=n("BGR+"),E=n("6ner"),T=n("H84U"),_=n("RIqP"),C=n.n(_),w=n("xEkU"),O=n.n(w);function I(he){var J,Y=function(be){return function(){J=null,he.apply(void 0,C()(be))}},$=function(){if(J==null){for(var be=arguments.length,Te=new Array(be),Be=0;Be<be;Be++)Te[Be]=arguments[Be];J=O()(Y(Te))}};return $.cancel=function(){return O.a.cancel(J)},$}function k(){return function(he,J,Y){var $=Y.value,de=!1;return{configurable:!0,get:function(){if(de||this===he.prototype||this.hasOwnProperty(J))return $;var Te=I($.bind(this));return de=!0,Object.defineProperty(this,J,{value:Te,configurable:!0,writable:!0}),de=!1,Te}}}}function M(he){return he!==window?he.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function U(he,J,Y){return Y!==void 0&&J.top>he.top-Y?Y+J.top:void 0}function P(he,J,Y){if(Y!==void 0&&J.bottom<he.bottom+Y){var $=window.innerHeight-J.bottom;return Y+$}return}var X=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],F=[];function j(){return F}function K(he,J){if(!he)return;var Y=F.find(function($){return $.target===he});Y?Y.affixList.push(J):(Y={target:he,affixList:[J],eventHandlers:{}},F.push(Y),X.forEach(function($){Y.eventHandlers[$]=Object(v.a)(he,$,function(){Y.affixList.forEach(function(de){de.lazyUpdatePosition()})})}))}function z(he){var J=F.find(function(Y){var $=Y.affixList.some(function(de){return de===he});return $&&(Y.affixList=Y.affixList.filter(function(de){return de!==he})),$});J&&J.affixList.length===0&&(F=F.filter(function(Y){return Y!==J}),X.forEach(function(Y){var $=J.eventHandlers[Y];$&&$.remove&&$.remove()}))}var V=function(he,J,Y,$){var de=arguments.length,be=de<3?J:$===null?$=Object.getOwnPropertyDescriptor(J,Y):$,Te;if((typeof Reflect=="undefined"?"undefined":b()(Reflect))==="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(he,J,Y,$);else for(var Be=he.length-1;Be>=0;Be--)(Te=he[Be])&&(be=(de<3?Te(be):de>3?Te(J,Y,be):Te(J,Y))||be);return de>3&&be&&Object.defineProperty(J,Y,be),be};function Q(){return typeof window!="undefined"?window:null}var G;(function(he){he[he.None=0]="None",he[he.Prepare=1]="Prepare"})(G||(G={}));var te=function(he){o()(Y,he);var J=u()(Y);function Y(){var $;return f()(this,Y),$=J.apply(this,arguments),$.state={status:G.None,lastAffix:!1,prevTarget:null},$.getOffsetTop=function(){var de=$.props.offsetBottom,be=$.props.offsetTop;return de===void 0&&be===void 0&&(be=0),be},$.getOffsetBottom=function(){return $.props.offsetBottom},$.savePlaceholderNode=function(de){$.placeholderNode=de},$.saveFixedNode=function(de){$.fixedNode=de},$.measure=function(){var de=$.state,be=de.status,Te=de.lastAffix,Be=$.props.onChange,fe=$.getTargetFunc();if(be!==G.Prepare||!$.fixedNode||!$.placeholderNode||!fe)return;var xe=$.getOffsetTop(),ke=$.getOffsetBottom(),nt=fe();if(!nt)return;var Ct={status:G.None},pt=M(nt),He=M($.placeholderNode),nr=U(He,pt,xe),ht=P(He,pt,ke);nr!==void 0?(Ct.affixStyle={position:"fixed",top:nr,width:He.width,height:He.height},Ct.placeholderStyle={width:He.width,height:He.height}):ht!==void 0&&(Ct.affixStyle={position:"fixed",bottom:ht,width:He.width,height:He.height},Ct.placeholderStyle={width:He.width,height:He.height}),Ct.lastAffix=!!Ct.affixStyle,Be&&Te!==Ct.lastAffix&&Be(Ct.lastAffix),$.setState(Ct)},$.prepareMeasure=function(){if($.setState({status:G.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var de},$.render=function(){var de=$.context.getPrefixCls,be=$.state,Te=be.affixStyle,Be=be.placeholderStyle,fe=$.props,xe=fe.prefixCls,ke=fe.children,nt=h()(m()({},de("affix",xe),Te)),Ct=Object(x.default)($.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return r.createElement(E.a,{onResize:function(){$.updatePosition()}},r.createElement("div",g()({},Ct,{ref:$.savePlaceholderNode}),Te&&r.createElement("div",{style:Be,"aria-hidden":"true"}),r.createElement("div",{className:nt,ref:$.saveFixedNode,style:Te},r.createElement(E.a,{onResize:function(){$.updatePosition()}},ke))))},$}return l()(Y,[{key:"getTargetFunc",value:function(){var de=this.context.getTargetContainer,be=this.props.target;return be!==void 0?be:de||Q}},{key:"componentDidMount",value:function(){var de=this,be=this.getTargetFunc();be&&(this.timeout=setTimeout(function(){K(be(),de),de.updatePosition()}))}},{key:"componentDidUpdate",value:function(de){var be=this.state.prevTarget,Te=this.getTargetFunc(),Be=null;Te&&(Be=Te()||null),be!==Be&&(z(this),Be&&(K(Be,this),this.updatePosition()),this.setState({prevTarget:Be})),(de.offsetTop!==this.props.offsetTop||de.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),z(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var de=this.getTargetFunc(),be=this.state.affixStyle;if(de&&be){var Te=this.getOffsetTop(),Be=this.getOffsetBottom(),fe=de();if(fe&&this.placeholderNode){var xe=M(fe),ke=M(this.placeholderNode),nt=U(ke,xe,Te),Ct=P(ke,xe,Be);if(nt!==void 0&&be.top===nt||Ct!==void 0&&be.bottom===Ct)return}}this.prepareMeasure()}}]),Y}(r.Component);te.contextType=T.b,V([k()],te.prototype,"updatePosition",null),V([k()],te.prototype,"lazyUpdatePosition",null);var q=te,se=n("zAh6"),re=n("i6bk"),we=r.createContext(null),Oe=we;function Me(){return window}function Qe(he,J){if(!he.getClientRects().length)return 0;var Y=he.getBoundingClientRect();return Y.width||Y.height?J===window?(J=he.ownerDocument.documentElement,Y.top-J.clientTop):Y.top-J.getBoundingClientRect().top:Y.top}var Ve=/#(\S+)$/,dt=function(he){o()(Y,he);var J=u()(Y);function Y(){var $;return f()(this,Y),$=J.apply(this,arguments),$.state={activeLink:null},$.links=[],$.registerLink=function(de){$.links.includes(de)||$.links.push(de)},$.unregisterLink=function(de){var be=$.links.indexOf(de);be!==-1&&$.links.splice(be,1)},$.getContainer=function(){var de=$.context.getTargetContainer,be=$.props.getContainer,Te=be||de||Me;return Te()},$.handleScrollTo=function(de){var be=$.props,Te=be.offsetTop,Be=be.targetOffset;$.setCurrentActiveLink(de);var fe=$.getContainer(),xe=Object(re.a)(fe,!0),ke=Ve.exec(de);if(!ke)return;var nt=document.getElementById(ke[1]);if(!nt)return;var Ct=Qe(nt,fe),pt=xe+Ct;pt-=Be!==void 0?Be:Te||0,$.animating=!0,Object(se.a)(pt,{callback:function(){$.animating=!1},getContainer:$.getContainer})},$.saveInkNode=function(de){$.inkNode=de},$.setCurrentActiveLink=function(de){var be=$.state.activeLink,Te=$.props.onChange;be!==de&&($.setState({activeLink:de}),Te&&Te(de))},$.handleScroll=function(){if($.animating)return;var de=$.props,be=de.offsetTop,Te=de.bounds,Be=de.targetOffset,fe=$.getCurrentAnchor(Be!==void 0?Be:be||0,Te);$.setCurrentActiveLink(fe)},$.updateInk=function(){var de=i()($),be=de.prefixCls,Te=s.findDOMNode(i()($)),Be=Te.getElementsByClassName("".concat(be,"-link-title-active"))[0];Be&&($.inkNode.style.top="".concat(Be.offsetTop+Be.clientHeight/2-4.5,"px"))},$.render=function(){var de=$.context,be=de.getPrefixCls,Te=de.direction,Be=$.props,fe=Be.prefixCls,xe=Be.className,ke=xe===void 0?"":xe,nt=Be.style,Ct=Be.offsetTop,pt=Be.affix,He=Be.showInkInFixed,nr=Be.children,ht=$.state.activeLink,Gt=be("anchor",fe);$.prefixCls=Gt;var pr=h()("".concat(Gt,"-ink-ball"),{visible:ht}),Qt=h()(ke,"".concat(Gt,"-wrapper"),m()({},"".concat(Gt,"-rtl"),Te==="rtl")),Ht=h()(Gt,{fixed:!pt&&!He}),Jt=g()({maxHeight:Ct?"calc(100vh - ".concat(Ct,"px)"):"100vh"},nt),Ge=r.createElement("div",{className:Qt,style:Jt},r.createElement("div",{className:Ht},r.createElement("div",{className:"".concat(Gt,"-ink")},r.createElement("span",{className:pr,ref:$.saveInkNode})),nr));return r.createElement(Oe.Provider,{value:{registerLink:$.registerLink,unregisterLink:$.unregisterLink,activeLink:$.state.activeLink,scrollTo:$.handleScrollTo,onClick:$.props.onClick}},pt?r.createElement(q,{offsetTop:Ct,target:$.getContainer},Ge):Ge)},$}return l()(Y,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(v.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var de=this.getContainer();this.scrollContainer!==de&&(this.scrollContainer=de,this.scrollEvent.remove(),this.scrollEvent=Object(v.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Te=this.props.getCurrentAnchor;if(typeof Te=="function")return Te();var Be=[],fe=this.getContainer();if(this.links.forEach(function(ke){var nt=Ve.exec(ke.toString());if(!nt)return;var Ct=document.getElementById(nt[1]);if(Ct){var pt=Qe(Ct,fe);pt<de+be&&Be.push({link:ke,top:pt})}}),Be.length){var xe=Be.reduce(function(ke,nt){return nt.top>ke.top?nt:ke});return xe.link}return""}}]),Y}(r.Component);dt.defaultProps={affix:!0,showInkInFixed:!1},dt.contextType=T.b;var Fe=function(he){o()(Y,he);var J=u()(Y);function Y(){var $;return f()(this,Y),$=J.apply(this,arguments),$.handleClick=function(de){var be=$.context,Te=be.scrollTo,Be=be.onClick,fe=$.props,xe=fe.href,ke=fe.title;Be&&Be(de,{title:ke,href:xe}),Te(xe)},$.renderAnchorLink=function(de){var be=de.getPrefixCls,Te=$.props,Be=Te.prefixCls,fe=Te.href,xe=Te.title,ke=Te.children,nt=Te.className,Ct=Te.target,pt=be("anchor",Be),He=$.context.activeLink===fe,nr=h()(nt,"".concat(pt,"-link"),m()({},"".concat(pt,"-link-active"),He)),ht=h()("".concat(pt,"-link-title"),m()({},"".concat(pt,"-link-title-active"),He));return r.createElement("div",{className:nr},r.createElement("a",{className:ht,href:fe,title:typeof xe=="string"?xe:"",target:Ct,onClick:$.handleClick},xe),ke)},$}return l()(Y,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(de){var be=de.href,Te=this.props.href;be!==Te&&(this.context.unregisterLink(be),this.context.registerLink(Te))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return r.createElement(T.a,null,this.renderAnchorLink)}}]),Y}(r.Component);Fe.defaultProps={href:"#"},Fe.contextType=Oe;var ue=Fe;dt.Link=ue;var et=D.a=dt},JuEJ:function(R,D,n){var y=n("bYtY"),g=n("4NO4"),S=y.each,m=y.isObject,p=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function f(r){var s=r&&r.itemStyle;if(!s)return;for(var c=0,h=p.length;c<h;c++){var v=p[c],A=s.normal,b=s.emphasis;A&&A[v]&&(r[v]=r[v]||{},r[v].normal?y.merge(r[v].normal,A[v]):r[v].normal=A[v],A[v]=null),b&&b[v]&&(r[v]=r[v]||{},r[v].emphasis?y.merge(r[v].emphasis,b[v]):r[v].emphasis=b[v],b[v]=null)}}function d(r,s,c){if(r&&r[s]&&(r[s].normal||r[s].emphasis)){var h=r[s].normal,v=r[s].emphasis;h&&(c?(r[s].normal=r[s].emphasis=null,y.defaults(r[s],h)):r[s]=h),v&&(r.emphasis=r.emphasis||{},r.emphasis[s]=v)}}function l(r){d(r,"itemStyle"),d(r,"lineStyle"),d(r,"areaStyle"),d(r,"label"),d(r,"labelLine"),d(r,"upperLabel"),d(r,"edgeLabel")}function a(r,s){var c=m(r)&&r[s],h=m(c)&&c.textStyle;if(h)for(var v=0,A=g.TEXT_STYLE_OPTIONS.length;v<A;v++){var s=g.TEXT_STYLE_OPTIONS[v];h.hasOwnProperty(s)&&(c[s]=h[s])}}function i(r){r&&(l(r),a(r,"label"),r.emphasis&&a(r.emphasis,"label"))}function t(r){if(!m(r))return;f(r),l(r),a(r,"label"),a(r,"upperLabel"),a(r,"edgeLabel"),r.emphasis&&(a(r.emphasis,"label"),a(r.emphasis,"upperLabel"),a(r.emphasis,"edgeLabel"));var s=r.markPoint;s&&(f(s),i(s));var c=r.markLine;c&&(f(c),i(c));var h=r.markArea;h&&i(h);var v=r.data;if(r.type==="graph"){v=v||r.nodes;var A=r.links||r.edges;if(A&&!y.isTypedArray(A))for(var b=0;b<A.length;b++)i(A[b]);y.each(r.categories,function(T){l(T)})}if(v&&!y.isTypedArray(v))for(var b=0;b<v.length;b++)i(v[b]);var s=r.markPoint;if(s&&s.data)for(var x=s.data,b=0;b<x.length;b++)i(x[b]);var c=r.markLine;if(c&&c.data)for(var E=c.data,b=0;b<E.length;b++)y.isArray(E[b])?(i(E[b][0]),i(E[b][1])):i(E[b]);r.type==="gauge"?(a(r,"axisLabel"),a(r,"title"),a(r,"detail")):r.type==="treemap"?(d(r.breadcrumb,"itemStyle"),y.each(r.levels,function(T){l(T)})):r.type==="tree"&&l(r.leaves)}function o(r){return y.isArray(r)?r:r?[r]:[]}function e(r){return(y.isArray(r)?r[0]:r)||{}}function u(r,s){S(o(r.series),function(h){m(h)&&t(h)});var c=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];s&&c.push("valueAxis","categoryAxis","logAxis","timeAxis"),S(c,function(h){S(o(r[h]),function(v){v&&(a(v,"axisLabel"),a(v.axisPointer,"label"))})}),S(o(r.parallel),function(h){var v=h&&h.parallelAxisDefault;a(v,"axisLabel"),a(v&&v.axisPointer,"label")}),S(o(r.calendar),function(h){d(h,"itemStyle"),a(h,"dayLabel"),a(h,"monthLabel"),a(h,"yearLabel")}),S(o(r.radar),function(h){a(h,"name")}),S(o(r.geo),function(h){m(h)&&(i(h),S(o(h.regions),function(v){i(v)}))}),S(o(r.timeline),function(h){i(h),d(h,"label"),d(h,"itemStyle"),d(h,"controlStyle",!0);var v=h.data;y.isArray(v)&&y.each(v,function(A){y.isObject(A)&&(d(A,"label"),d(A,"itemStyle"))})}),S(o(r.toolbox),function(h){d(h,"iconStyle"),S(h.feature,function(v){d(v,"iconStyle")})}),a(e(r.axisPointer),"label"),a(e(r.tooltip).axisPointer,"label")}R.exports=u},K2GJ:function(R,D,n){var y=n("fW2E"),g=n("gut8"),S=g.ContextCachedBy,m=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],p=function(e){this.extendFrom(e,!1)};function f(o,e,u){var r=e.x==null?0:e.x,s=e.x2==null?1:e.x2,c=e.y==null?0:e.y,h=e.y2==null?0:e.y2;e.global||(r=r*u.width+u.x,s=s*u.width+u.x,c=c*u.height+u.y,h=h*u.height+u.y),r=isNaN(r)?0:r,s=isNaN(s)?1:s,c=isNaN(c)?0:c,h=isNaN(h)?0:h;var v=o.createLinearGradient(r,c,s,h);return v}function d(o,e,u){var r=u.width,s=u.height,c=Math.min(r,s),h=e.x==null?.5:e.x,v=e.y==null?.5:e.y,A=e.r==null?.5:e.r;e.global||(h=h*r+u.x,v=v*s+u.y,A=A*c);var b=o.createRadialGradient(h,v,0,h,v,A);return b}p.prototype={constructor:p,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,u,r){var s=this,c=r&&r.style,h=!c||e.__attrCachedBy!==S.STYLE_BIND;e.__attrCachedBy=S.STYLE_BIND;for(var v=0;v<m.length;v++){var A=m[v],b=A[0];(h||s[b]!==c[b])&&(e[b]=y(e,b,s[b]||A[1]))}if((h||s.fill!==c.fill)&&(e.fillStyle=s.fill),(h||s.stroke!==c.stroke)&&(e.strokeStyle=s.stroke),(h||s.opacity!==c.opacity)&&(e.globalAlpha=s.opacity==null?1:s.opacity),(h||s.blend!==c.blend)&&(e.globalCompositeOperation=s.blend||"source-over"),this.hasStroke()){var x=s.lineWidth;e.lineWidth=x/(this.strokeNoScale&&u&&u.getLineScale?u.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,u){if(e)for(var r in e)e.hasOwnProperty(r)&&(u===!0||(u===!1?!this.hasOwnProperty(r):e[r]!=null))&&(this[r]=e[r])},set:function(e,u){typeof e=="string"?this[e]=u:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,u,r){for(var s=u.type==="radial"?d:f,c=s(e,u,r),h=u.colorStops,v=0;v<h.length;v++)c.addColorStop(h[v].offset,h[v].color);return c}};for(var l=p.prototype,a=0;a<m.length;a++){var i=m[a];i[0]in l||(l[i[0]]=i[1])}p.getGradient=l.getGradient;var t=p;R.exports=t},K3mO:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("3y9D"),n("WYAk"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.Base,p=S.WordArray,f=g.algo,d=f.MD5,l=f.EvpKDF=m.extend({cfg:m.extend({keySize:128/32,hasher:d,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,t){for(var o,e=this.cfg,u=e.hasher.create(),r=p.create(),s=r.words,c=e.keySize,h=e.iterations;s.length<c;){o&&u.update(o),o=u.update(i).finalize(t),u.reset();for(var v=1;v<h;v++)o=u.finalize(o),u.reset();r.concat(o)}return r.sigBytes=c*4,r}});g.EvpKDF=function(a,i,t){return l.create(t).compute(a,i)}}(),y.EvpKDF})},K4ya:function(R,D,n){var y=n("bYtY"),g=n("XxSj"),S=y.each;function m(a){if(a){for(var i in a)if(a.hasOwnProperty(i))return!0}}function p(a,i,t){var o={};return S(i,function(u){var r=o[u]=e();S(a[u],function(s,c){if(!g.isValidType(c))return;var h={type:c,visual:s};t&&t(h,u),r[c]=new g(h),c==="opacity"&&(h=y.clone(h),h.type="colorAlpha",r.__hidden.__alphaForOpacity=new g(h))})}),o;function e(){var u=function(){};u.prototype.__hidden=u.prototype;var r=new u;return r}}function f(a,i,t){var o;y.each(t,function(e){i.hasOwnProperty(e)&&m(i[e])&&(o=!0)}),o&&y.each(t,function(e){i.hasOwnProperty(e)&&m(i[e])?a[e]=y.clone(i[e]):delete a[e]})}function d(a,i,t,o,e,u){var r={};y.each(a,function(A){var b=g.prepareVisualTypes(i[A]);r[A]=b});var s;function c(A){return t.getItemVisual(s,A)}function h(A,b){t.setItemVisual(s,A,b)}u==null?t.each(v):t.each([u],v);function v(A,b){s=u==null?A:b;var x=t.getRawDataItem(s);if(x&&x.visualMap===!1)return;for(var E=o.call(e,A),T=i[E],_=r[E],C=0,w=_.length;C<w;C++){var O=_[C];T[O]&&T[O].applyVisual(A,c,h)}}}function l(a,i,t,o){var e={};y.each(a,function(r){var s=g.prepareVisualTypes(i[r]);e[r]=s});function u(r,s){o!=null&&(o=s.getDimension(o));function c(O){return s.getItemVisual(v,O)}function h(O,I){s.setItemVisual(v,O,I)}for(var v;(v=r.next())!=null;){var A=s.getRawDataItem(v);if(A&&A.visualMap===!1)continue;for(var b=o!=null?s.get(o,v,!0):v,x=t(b),E=i[x],T=e[x],_=0,C=T.length;_<C;_++){var w=T[_];E[w]&&E[w].applyVisual(b,c,h)}}}return{progress:u}}D.createVisualMappings=p,D.replaceVisualOption=f,D.applyVisual=d,D.incrementalApplyVisual=l},KCsZ:function(R,D,n){var y=n("bYtY");function g(S){for(var m=0;m<S.length;m++)S[m][1]||(S[m][1]=S[m][0]);return function(p,f,d){for(var l={},a=0;a<S.length;a++){var i=S[a][1];if(f&&y.indexOf(f,i)>=0||d&&y.indexOf(d,i)<0)continue;var t=p.getShallow(i);t!=null&&(l[S[a][0]]=t)}return l}}R.exports=g},KMkd:function(R,D){function n(){this.__data__=[],this.size=0}R.exports=n},KPFz:function(R,D,n){},KQeH:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},KS52:function(R,D,n){var y=n("OELB"),g=y.parsePercent,S=y.linearMap,m=n("+TT/"),p=n("u3DP"),f=n("bYtY"),d=Math.PI*2,l=Math.PI/180;function a(t,o){return m.getLayoutRect(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})}function i(t,o,e,u){o.eachSeriesByType(t,function(r){var s=r.getData(),c=s.mapDimension("value"),h=a(r,e),v=r.get("center"),A=r.get("radius");f.isArray(A)||(A=[0,A]),f.isArray(v)||(v=[v,v]);var b=g(h.width,e.getWidth()),x=g(h.height,e.getHeight()),E=Math.min(b,x),T=g(v[0],b)+h.x,_=g(v[1],x)+h.y,C=g(A[0],E/2),w=g(A[1],E/2),O=-r.get("startAngle")*l,I=r.get("minAngle")*l,k=0;s.each(c,function(te){!isNaN(te)&&k++});var M=s.getSum(c),U=Math.PI/(M||k)*2,P=r.get("clockwise"),X=r.get("roseType"),F=r.get("stillShowZeroSum"),j=s.getDataExtent(c);j[0]=0;var K=d,z=0,V=O,Q=P?1:-1;if(s.each(c,function(te,q){var se;if(isNaN(te)){s.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:P,cx:T,cy:_,r0:C,r:X?NaN:w,viewRect:h});return}X!=="area"?se=M===0&&F?U:te*U:se=d/k,se<I?(se=I,K-=I):z+=te;var re=V+Q*se;s.setItemLayout(q,{angle:se,startAngle:V,endAngle:re,clockwise:P,cx:T,cy:_,r0:C,r:X?S(te,j,[C,w]):w,viewRect:h}),V=re}),K<d&&k)if(K<=.001){var G=d/k;s.each(c,function(te,q){if(!isNaN(te)){var se=s.getItemLayout(q);se.angle=G,se.startAngle=O+Q*q*G,se.endAngle=O+Q*(q+1)*G}})}else U=K/z,V=O,s.each(c,function(te,q){if(!isNaN(te)){var se=s.getItemLayout(q),re=se.angle===I?I:te*U;se.startAngle=V,se.endAngle=V+Q*re,V+=Q*re}});p(r,w,h.width,h.height,h.x,h.y)})}R.exports=i},KUOm:function(R,D){function n(y){var g={};y.eachSeriesByType("graph",function(S){var m=S.getCategoriesData(),p=S.getData(),f={};m.each(function(d){var l=m.getName(d);f["ec-"+l]=d;var a=m.getItemModel(d),i=a.get("itemStyle.color")||S.getColorFromPalette(l,g);m.setItemVisual(d,"color",i);for(var t=["opacity","symbol","symbolSize","symbolKeepAspect"],o=0;o<t.length;o++){var e=a.getShallow(t[o],!0);e!=null&&m.setItemVisual(d,t[o],e)}}),m.count()&&p.each(function(d){var l=p.getItemModel(d),a=l.getShallow("category");if(a!=null){typeof a=="string"&&(a=f["ec-"+a]);for(var i=["color","opacity","symbol","symbolSize","symbolKeepAspect"],t=0;t<i.length;t++)p.getItemVisual(d,i[t],!0)==null&&p.setItemVisual(d,i[t],m.getItemVisual(a,i[t]))}})})}R.exports=n},Kagy:function(R,D){var n={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:""}}}};R.exports=n},KamJ:function(R,D,n){var y=n("ProS"),g=n("szbU");n("vF/C"),n("qwVE"),n("BuqR"),n("AE9C"),n("1u/T"),y.registerPreprocessor(g)},KmBX:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("CP8R")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="FilterFilled";var i=m.forwardRef(a);D.default=i},KmYQ:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.ZeroPadding={pad:function(S,m){var p=m*4;S.clamp(),S.sigBytes+=p-(S.sigBytes%p||p)},unpad:function(S){for(var m=S.words,p=S.sigBytes-1,p=S.sigBytes-1;p>=0;p--)if(m[p>>>2]>>>24-p%4*8&255){S.sigBytes=p+1;break}}},y.pad.ZeroPadding})},"KpQ+":function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("E/ki")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="ClockCircleOutlined";var i=m.forwardRef(a);D.default=i},KrTs:function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("cDf5"),m=n.n(S),p=n("pVnL"),f=n.n(p),d=n("q1tI"),l=n("UmKh"),a=n("TSYQ"),i=n.n(a),t=n("J4zp"),o=n.n(t),e=n("H84U"),u=n("0n0R"),r=function(w,O){var I={};for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&O.indexOf(k)<0&&(I[k]=w[k]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,k=Object.getOwnPropertySymbols(w);M<k.length;M++)O.indexOf(k[M])<0&&Object.prototype.propertyIsEnumerable.call(w,k[M])&&(I[k[M]]=w[k[M]]);return I};function s(w){return w?w.toString().split("").reverse().map(function(O){var I=Number(O);return isNaN(I)?O:I}):[]}function c(w,O){for(var I=[],k=0;k<30;k++)I.push(d.createElement("p",{key:k.toString(),className:i()(O,{current:w===k})},k%10));return I}var h=function(O){var I=O.prefixCls,k=O.count,M=O.className,U=O.style,P=O.title,X=O.component,F=X===void 0?"sup":X,j=O.displayComponent,K=O.onAnimated,z=K===void 0?function(){}:K,V=r(O,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),Q=d.useState(!0),G=o()(Q,2),te=G[0],q=G[1],se=d.useState(k),re=o()(se,2),we=re[0],Oe=re[1],Me=d.useState(k),Qe=o()(Me,2),Ve=Qe[0],dt=Qe[1],Fe=d.useState(k),ue=o()(Fe,2),et=ue[0],he=ue[1],J=d.useContext(e.b),Y=J.getPrefixCls,$=Y("scroll-number",I);Ve!==k&&(q(!0),dt(k)),d.useEffect(function(){he(we);var fe;return te&&(fe=setTimeout(function(){q(!1),Oe(k),z()})),function(){fe&&clearTimeout(fe)}},[te,k,z]);var de=function(xe,ke){var nt=Math.abs(Number(we)),Ct=Math.abs(Number(et)),pt=Math.abs(s(we)[ke]),He=Math.abs(s(Ct)[ke]);return te?10+xe:nt>Ct?pt>=He?10+xe:20+xe:pt<=He?10+xe:xe},be=function(xe,ke){if(typeof xe=="number"){var nt=de(xe,ke),Ct=te||s(et)[ke]===void 0;return d.createElement("span",{className:"".concat($,"-only"),style:{transition:Ct?"none":void 0,msTransform:"translateY(".concat(-nt*100,"%)"),WebkitTransform:"translateY(".concat(-nt*100,"%)"),transform:"translateY(".concat(-nt*100,"%)")},key:ke},c(nt,"".concat($,"-only-unit")))}return d.createElement("span",{key:"symbol",className:"".concat($,"-symbol")},xe)},Te=function(){return we&&Number(we)%1===0?s(we).map(function(xe,ke){return be(xe,ke)}).reverse():we},Be=f()(f()({},V),{style:U,className:i()($,M),title:P});return U&&U.borderColor&&(Be.style=f()(f()({},U),{boxShadow:"0 0 0 1px ".concat(U.borderColor," inset")})),j?Object(u.a)(j,{className:i()("".concat($,"-custom-component"),j.props&&j.props.className)}):d.createElement(F,Be,Te())},v=h,A=n("09Wf");function b(w){return A.a.indexOf(w)!==-1}var x=function(O){var I,k=O.className,M=O.prefixCls,U=O.style,P=O.color,X=O.children,F=O.text,j=O.placement,K=j===void 0?"end":j,z=d.useContext(e.b),V=z.getPrefixCls,Q=z.direction,G=V("ribbon",M),te=b(P),q=i()(G,k,"".concat(G,"-placement-").concat(K),(I={},g()(I,"".concat(G,"-rtl"),Q==="rtl"),g()(I,"".concat(G,"-color-").concat(P),te),I)),se={},re={};return P&&!te&&(se.background=P,re.color=P),d.createElement("div",{className:"".concat(G,"-wrapper")},X,d.createElement("div",{className:q,style:f()(f()({},se),U)},F,d.createElement("div",{className:"".concat(G,"-corner"),style:re})))},E=x,T=function(w,O){var I={};for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&O.indexOf(k)<0&&(I[k]=w[k]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,k=Object.getOwnPropertySymbols(w);M<k.length;M++)O.indexOf(k[M])<0&&Object.prototype.propertyIsEnumerable.call(w,k[M])&&(I[k[M]]=w[k[M]]);return I},_=function(O){var I,k,M=O.prefixCls,U=O.scrollNumberPrefixCls,P=O.children,X=O.status,F=O.text,j=O.color,K=O.count,z=K===void 0?null:K,V=O.overflowCount,Q=V===void 0?99:V,G=O.dot,te=G===void 0?!1:G,q=O.size,se=q===void 0?"default":q,re=O.title,we=O.offset,Oe=O.style,Me=O.className,Qe=O.showZero,Ve=Qe===void 0?!1:Qe,dt=T(O,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Fe=d.useContext(e.b),ue=Fe.getPrefixCls,et=Fe.direction,he=ue("badge",M),J=function(){var pr=z>Q?"".concat(Q,"+"):z;return pr},Y=function(){return!!X||!!j},$=function(){var pr=J();return pr==="0"||pr===0},de=function(){return te&&!$()||Y()},be=function(){return de()?"":J()},Te=function(){return re||(typeof z=="string"||typeof z=="number"?z:void 0)},Be=function(){return et==="rtl"?we?f()({left:parseInt(we[0],10),marginTop:we[1]},Oe):Oe:we?f()({right:-parseInt(we[0],10),marginTop:we[1]},Oe):Oe},fe=function(){var pr=be(),Qt=pr==null||pr==="";return(Qt||$()&&!Ve)&&!de()},xe=function(){var pr=fe();return pr||!F?null:d.createElement("span",{className:"".concat(he,"-status-text")},F)},ke=function(){var pr=z;return!pr||m()(pr)!=="object"?void 0:Object(u.a)(pr,{style:f()(f()({},Be()),pr.props&&pr.props.style)})},nt=function(){var pr,Qt=ue("scroll-number",U),Ht=be(),Jt=de(),Ge=fe(),pe=i()((pr={},g()(pr,"".concat(he,"-dot"),Jt),g()(pr,"".concat(he,"-count"),!Jt),g()(pr,"".concat(he,"-count-sm"),se==="small"),g()(pr,"".concat(he,"-multiple-words"),!Jt&&z&&z.toString&&z.toString().length>1),g()(pr,"".concat(he,"-status-").concat(X),!!X),g()(pr,"".concat(he,"-status-").concat(j),b(j)),pr)),oe=Be();return j&&!b(j)&&(oe=oe||{},oe.background=j),Ge?null:d.createElement(v,{prefixCls:Qt,"data-show":!Ge,className:pe,count:Ht,displayComponent:ke(),title:Te(),style:oe,key:"scrollNumber"})},Ct=i()((I={},g()(I,"".concat(he,"-status-dot"),Y()),g()(I,"".concat(he,"-status-").concat(X),!!X),g()(I,"".concat(he,"-status-").concat(j),b(j)),I)),pt={};j&&!b(j)&&(pt.background=j);var He=i()(Me,he,(k={},g()(k,"".concat(he,"-status"),Y()),g()(k,"".concat(he,"-not-a-wrapper"),!P),g()(k,"".concat(he,"-rtl"),et==="rtl"),k));if(!P&&Y()){var nr=Be(),ht=nr&&nr.color;return d.createElement("span",f()({},dt,{className:He,style:nr}),d.createElement("span",{className:Ct,style:pt}),d.createElement("span",{style:{color:ht},className:"".concat(he,"-status-text")},F))}return d.createElement("span",f()({},dt,{className:He}),P,d.createElement(l.a,{component:"",showProp:"data-show",transitionName:P?"".concat(he,"-zoom"):"",transitionAppear:!0},nt()),xe())};_.Ribbon=E;var C=D.a=_},Kvyg:function(R,D,n){},KxFI:function(R,D,n){},KxfA:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=S.isTypedArray,p=S.extend,f=S.assert,d=S.each,l=S.isObject,a=n("4NO4"),i=a.getDataItemValue,t=a.isDataItemOption,o=n("OELB"),e=o.parseDate,u=n("7G+c"),r=n("k9D9"),s=r.SOURCE_FORMAT_TYPED_ARRAY,c=r.SOURCE_FORMAT_ARRAY_ROWS,h=r.SOURCE_FORMAT_ORIGINAL,v=r.SOURCE_FORMAT_OBJECT_ROWS;function A(P,X){u.isInstance(P)||(P=u.seriesDataToSource(P)),this._source=P;var F=this._data=P.data,j=P.sourceFormat;j===s&&(this._offset=0,this._dimSize=X,this._data=F);var K=x[j===c?j+"_"+P.seriesLayoutBy:j];p(this,K)}var b=A.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var x={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(P){return this._data[P+this._source.startIndex]},appendData:_},arrayRows_row:{pure:!0,count:function(){var P=this._data[0];return P?Math.max(0,P.length-this._source.startIndex):0},getItem:function(P){P+=this._source.startIndex;for(var X=[],F=this._data,j=0;j<F.length;j++){var K=F[j];X.push(K?K[P]:null)}return X},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:E,getItem:T,appendData:_},keyedColumns:{pure:!0,count:function(){var P=this._source.dimensionsDefine[0].name,X=this._data[P];return X?X.length:0},getItem:function(P){for(var X=[],F=this._source.dimensionsDefine,j=0;j<F.length;j++){var K=this._data[F[j].name];X.push(K?K[P]:null)}return X},appendData:function(P){var X=this._data;d(P,function(F,j){for(var K=X[j]||(X[j]=[]),z=0;z<(F||[]).length;z++)K.push(F[z])})}},original:{count:E,getItem:T,appendData:_},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(P,X){P=P-this._offset,X=X||[];for(var F=this._dimSize*P,j=0;j<this._dimSize;j++)X[j]=this._data[F+j];return X},appendData:function(P){this._data=P},clean:function(){this._offset+=this.count(),this._data=null}}};function E(){return this._data.length}function T(P){return this._data[P]}function _(P){for(var X=0;X<P.length;X++)this._data.push(P[X])}var C={arrayRows:w,objectRows:function(P,X,F,j){return F!=null?P[j]:P},keyedColumns:w,original:function(P,X,F,j){var K=i(P);return F==null||!(K instanceof Array)?K:K[F]},typedArray:w};function w(P,X,F,j){return F!=null?P[F]:P}var O={arrayRows:I,objectRows:function(P,X,F,j){return k(P[X],this._dimensionInfos[X])},keyedColumns:I,original:function(P,X,F,j){var K=P&&(P.value==null?P:P.value);return!this._rawData.pure&&t(P)&&(this.hasItemOption=!0),k(K instanceof Array?K[j]:K,this._dimensionInfos[X])},typedArray:function(P,X,F,j){return P[j]}};function I(P,X,F,j){return k(P[j],this._dimensionInfos[X])}function k(P,X){var F=X&&X.type;if(F==="ordinal"){var j=X&&X.ordinalMeta;return j?j.parseAndCollect(P):P}return F==="time"&&typeof P!="number"&&P!=null&&P!=="-"&&(P=+e(P)),P==null||P===""?NaN:+P}function M(P,X,F){if(!P)return;var j=P.getRawDataItem(X);if(j==null)return;var K=P.getProvider().getSource().sourceFormat,z,V,Q=P.getDimensionInfo(F);return Q&&(z=Q.name,V=Q.index),C[K](j,X,V,z)}function U(P,X,F){if(!P)return;var j=P.getProvider().getSource().sourceFormat;if(j!==h&&j!==v)return;var K=P.getRawDataItem(X);if(j===h&&!l(K)&&(K=null),K)return K[F]}D.DefaultDataProvider=A,D.defaultDimValueGetters=O,D.retrieveRawValue=M,D.retrieveRawAttr=U},L0Ub:function(R,D,n){var y=n("bYtY"),g=y.each,S=y.createHashMap,m=y.assert,p=n("Tghj"),f=p.__DEV__,d=S(["tooltip","label","itemName","itemId","seriesName"]);function l(o){var e={},u=e.encode={},r=S(),s=[],c=[],h=e.userOutput={dimensionNames:o.dimensions.slice(),encode:{}};g(o.dimensions,function(E){var T=o.getDimensionInfo(E),_=T.coordDim;if(_){var C=T.coordDimIndex;a(u,_)[C]=E,T.isExtraCoord||(r.set(_,1),t(T.type)&&(s[0]=E),a(h.encode,_)[C]=T.index),T.defaultTooltip&&c.push(E)}d.each(function(w,O){var I=a(u,O),k=T.otherDims[O];k!=null&&k!==!1&&(I[k]=T.name)})});var v=[],A={};r.each(function(E,T){var _=u[T];A[T]=_[0],v=v.concat(_)}),e.dataDimsOnCoord=v,e.encodeFirstDimNotExtra=A;var b=u.label;b&&b.length&&(s=b.slice());var x=u.tooltip;return x&&x.length?c=x.slice():c.length||(c=s.slice()),u.defaultedLabel=s,u.defaultedTooltip=c,e}function a(o,e){return o.hasOwnProperty(e)||(o[e]=[]),o[e]}function i(o){return o==="category"?"ordinal":o==="time"?"time":"float"}function t(o){return!(o==="ordinal"||o==="time")}D.OTHER_DIMENSIONS=d,D.summarizeDimensions=l,D.getDimensionTypeByAxis=i},L3Oj:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("HjIi");n("HM/N"),n("9eas"),n("eS4l"),n("y4/Y"),n("as94"),y.registerLayout(g.curry(S,"bar")),y.extendComponentView({type:"polar"})},L41K:function(R,D,n){"use strict";n.d(D,"a",function(){return z});var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("lwsE"),f=n.n(p),d=n("W8MJ"),l=n.n(d),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),u=n.n(e),r=n("BGR+"),s=n("VTBJ"),c=n("rePB"),h=n("Ff2n"),v=n("1OyB"),A=n("vuIU"),b=n("Ji7U"),x=n("LK+K"),E=n("Zm9Q"),T=n("TSYQ"),_=n.n(T),C=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function w(V){return typeof V=="string"}var O=function(V){Object(b.a)(G,V);var Q=Object(x.a)(G);function G(){var te;return Object(v.a)(this,G),te=Q.apply(this,arguments),te.onClick=function(){var q=te.props,se=q.onClick,re=q.onStepClick,we=q.stepIndex;se&&se.apply(void 0,arguments),re(we)},te}return Object(A.a)(G,[{key:"renderIconNode",value:function(){var q,se=this.props,re=se.prefixCls,we=se.progressDot,Oe=se.stepIcon,Me=se.stepNumber,Qe=se.status,Ve=se.title,dt=se.description,Fe=se.icon,ue=se.iconPrefix,et=se.icons,he,J=_()("".concat(re,"-icon"),"".concat(ue,"icon"),(q={},Object(c.a)(q,"".concat(ue,"icon-").concat(Fe),Fe&&w(Fe)),Object(c.a)(q,"".concat(ue,"icon-check"),!Fe&&Qe==="finish"&&(et&&!et.finish||!et)),Object(c.a)(q,"".concat(ue,"icon-cross"),!Fe&&Qe==="error"&&(et&&!et.error||!et)),q)),Y=e.createElement("span",{className:"".concat(re,"-icon-dot")});return we?typeof we=="function"?he=e.createElement("span",{className:"".concat(re,"-icon")},we(Y,{index:Me-1,status:Qe,title:Ve,description:dt})):he=e.createElement("span",{className:"".concat(re,"-icon")},Y):Fe&&!w(Fe)?he=e.createElement("span",{className:"".concat(re,"-icon")},Fe):et&&et.finish&&Qe==="finish"?he=e.createElement("span",{className:"".concat(re,"-icon")},et.finish):et&&et.error&&Qe==="error"?he=e.createElement("span",{className:"".concat(re,"-icon")},et.error):Fe||Qe==="finish"||Qe==="error"?he=e.createElement("span",{className:J}):he=e.createElement("span",{className:"".concat(re,"-icon")},Me),Oe&&(he=Oe({index:Me-1,status:Qe,title:Ve,description:dt,node:he})),he}},{key:"render",value:function(){var q,se=this.props,re=se.className,we=se.prefixCls,Oe=se.style,Me=se.active,Qe=se.status,Ve=Qe===void 0?"wait":Qe,dt=se.iconPrefix,Fe=se.icon,ue=se.wrapperStyle,et=se.stepNumber,he=se.disabled,J=se.description,Y=se.title,$=se.subTitle,de=se.progressDot,be=se.stepIcon,Te=se.tailContent,Be=se.icons,fe=se.stepIndex,xe=se.onStepClick,ke=se.onClick,nt=Object(h.a)(se,C),Ct=_()("".concat(we,"-item"),"".concat(we,"-item-").concat(Ve),re,(q={},Object(c.a)(q,"".concat(we,"-item-custom"),Fe),Object(c.a)(q,"".concat(we,"-item-active"),Me),Object(c.a)(q,"".concat(we,"-item-disabled"),he===!0),q)),pt=Object(s.a)({},Oe),He={};return xe&&!he&&(He.role="button",He.tabIndex=0,He.onClick=this.onClick),e.createElement("div",Object.assign({},nt,{className:Ct,style:pt}),e.createElement("div",Object.assign({onClick:ke},He,{className:"".concat(we,"-item-container")}),e.createElement("div",{className:"".concat(we,"-item-tail")},Te),e.createElement("div",{className:"".concat(we,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(we,"-item-content")},e.createElement("div",{className:"".concat(we,"-item-title")},Y,$&&e.createElement("div",{title:typeof $=="string"?$:void 0,className:"".concat(we,"-item-subtitle")},$)),J&&e.createElement("div",{className:"".concat(we,"-item-description")},J))))}}]),G}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],k=function(V){Object(b.a)(G,V);var Q=Object(x.a)(G);function G(){var te;return Object(v.a)(this,G),te=Q.apply(this,arguments),te.onStepClick=function(q){var se=te.props,re=se.onChange,we=se.current;re&&we!==q&&re(q)},te}return Object(A.a)(G,[{key:"render",value:function(){var q,se=this,re=this.props,we=re.prefixCls,Oe=re.style,Me=Oe===void 0?{}:Oe,Qe=re.className,Ve=re.children,dt=re.direction,Fe=re.type,ue=re.labelPlacement,et=re.iconPrefix,he=re.status,J=re.size,Y=re.current,$=re.progressDot,de=re.stepIcon,be=re.initial,Te=re.icons,Be=re.onChange,fe=Object(h.a)(re,I),xe=Fe==="navigation",ke=$?"vertical":ue,nt=_()(we,"".concat(we,"-").concat(dt),Qe,(q={},Object(c.a)(q,"".concat(we,"-").concat(J),J),Object(c.a)(q,"".concat(we,"-label-").concat(ke),dt==="horizontal"),Object(c.a)(q,"".concat(we,"-dot"),!!$),Object(c.a)(q,"".concat(we,"-navigation"),xe),q));return u.a.createElement("div",Object.assign({className:nt,style:Me},fe),Object(E.a)(Ve).map(function(Ct,pt){var He=be+pt,nr=Object(s.a)({stepNumber:"".concat(He+1),stepIndex:He,key:He,prefixCls:we,iconPrefix:et,wrapperStyle:Me,progressDot:$,stepIcon:de,icons:Te,onStepClick:Be&&se.onStepClick},Ct.props);return he==="error"&&pt===Y-1&&(nr.className="".concat(we,"-next-error")),Ct.props.status||(He===Y?nr.status=he:He<Y?nr.status="finish":nr.status="wait"),nr.active=He===Y,Object(e.cloneElement)(Ct,nr)}))}}]),G}(u.a.Component);k.Step=O,k.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var M=k,U=n("NAnI"),P=n.n(U),X=n("V/uB"),F=n.n(X),j=n("H84U"),K=n("CFYs"),z=function(V){i()(G,V);var Q=o()(G);function G(){var te;return f()(this,G),te=Q.apply(this,arguments),te.renderSteps=function(q){var se=q.getPrefixCls,re=q.direction,we=se("steps",te.props.prefixCls),Oe=se("",te.props.iconPrefix),Me=te.props,Qe=Me.percent,Ve=Me.size,dt=_()(te.props.className,m()({},"".concat(we,"-rtl"),re==="rtl")),Fe={finish:e.createElement(P.a,{className:"".concat(we,"-finish-icon")}),error:e.createElement(F.a,{className:"".concat(we,"-error-icon")})},ue=function(he){var J=he.node,Y=he.status;if(Y==="process"&&Qe!==void 0){var $=Ve==="small"?32:40,de=e.createElement("div",{className:"".concat(we,"-progress-icon")},e.createElement(K.a,{type:"circle",percent:Qe,width:$,strokeWidth:4,format:function(){return null}}),J);return de}return J};return e.createElement(M,g()({icons:Fe},Object(r.default)(te.props,["progress"]),{stepIcon:ue,prefixCls:we,iconPrefix:Oe,className:dt}))},te}return l()(G,[{key:"render",value:function(){return e.createElement(j.a,null,this.renderSteps)}}]),G}(e.Component);z.Step=M.Step,z.defaultProps={current:0}},L5E0:function(R,D){var n=["itemStyle","borderColor"];function y(g,S){var m=g.get("color");g.eachRawSeriesByType("boxplot",function(p){var f=m[p.seriesIndex%m.length],d=p.getData();d.setVisual({legendSymbol:"roundRect",color:p.get(n)||f}),g.isSeriesFiltered(p)||d.each(function(l){var a=d.getItemModel(l);d.setItemVisual(l,{color:a.get(n,!0)})})})}R.exports=y},L8xA:function(R,D){function n(y){var g=this.__data__,S=g.delete(y);return this.size=g.size,S}R.exports=n},LBfv:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=g.createHashMap,m=g.each;y.registerProcessor({getTargetSeries:function(p){var f=S();return p.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(l,a,i){var t=i.getAxisProxy(l.name,a);m(t.getTargetSeriesModels(),function(o){f.set(o.uid,o)})})}),f},modifyOutputEnd:!0,overallReset:function(p,f){p.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(l,a,i){i.getAxisProxy(l.name,a).reset(i,f)}),d.eachTargetAxis(function(l,a,i){i.getAxisProxy(l.name,a).filterData(i,f)})}),p.eachComponent("dataZoom",function(d){var l=d.findRepresentativeAxisProxy(),a=l.getDataPercentWindow(),i=l.getDataValueWindow();d.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})})}})},LCi9:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")}function g(A,b){for(var x=0;x<b.length;x++){var E=b[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}function S(A,b,x){return b&&g(A.prototype,b),x&&g(A,x),A}var m=0,p=1,f=2,d=4,l=8,a=16,i=32,t=64,o=127,e=50,u=90,r=250,s=1e3,c=1e3,h=50,v=function(){function A(){y(this,A),this._target=null,this._state=o,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return S(A,[{key:"attach",value:function(x){this.detach(),this._target=x,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(x){var E;x.stopPropagation(),x.preventDefault();switch(x.type){case"touchstart":E=this._touchStart;break;case"touchmove":E=this._touchMove;break;case"touchend":case"touchcancel":E=this._touchEnd;break}for(var T=0;T<x.changedTouches.length;T++){var _=x.changedTouches[T];E.call(this,_.identifier,_.clientX,_.clientY)}}},{key:"_touchStart",value:function(x,E,T){if(this._hasDetectedGesture()||this._state===m){this._ignored.push(x);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>r){this._state=m,this._ignored.push(x);return}if(this._waitingRelease){this._state=m,this._ignored.push(x);return}this._tracked.push({id:x,started:Date.now(),active:!0,firstX:E,firstY:T,lastX:E,lastY:T,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(p|l|a),this._stopLongpressTimeout();break;case 3:this._state&=~(f|i|t);break;default:this._state=m}}},{key:"_touchMove",value:function(x,E,T){var _=this._tracked.find(function(M){return M.id===x});if(_===void 0)return;_.lastX=E,_.lastY=T;var C=E-_.firstX,w=T-_.firstY;if((_.firstX!==_.lastX||_.firstY!==_.lastY)&&(_.angle=Math.atan2(w,C)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(C,w)<e)return;if(this._state&=~(p|f|d|a),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~l),this._tracked.length!==2&&(this._state&=~(i|t)),this._tracked.length===2){var O=this._tracked.find(function(M){return M.id!==x}),I=Math.hypot(O.firstX-O.lastX,O.firstY-O.lastY);if(I>e){var k=Math.abs(_.angle-O.angle);k=Math.abs((k+180)%360-180),k>u?this._state&=~i:this._state&=~t,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(x,E,T){if(this._ignored.indexOf(x)!==-1){this._ignored.splice(this._ignored.indexOf(x),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=o,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=m),!this._hasDetectedGesture()&&(this._state&=~(l|i|t),this._state&=~a,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(f|d);break;case 2:this._state&=~(p|d);break}}if(this._waitingRelease){Date.now()-this._releaseStart>r&&(this._state=m),this._tracked.some(function(w){return Date.now()-w.started>s})&&(this._state=m);var _=this._tracked.find(function(w){return w.id===x});if(_.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==m)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var C=0;C<this._tracked.length;C++)this._tracked[C].active&&this._ignored.push(this._tracked[C].id);this._tracked=[],this._state=m,this._ignored.indexOf(x)!==-1&&this._ignored.splice(this._ignored.indexOf(x),1),this._ignored.length===0&&(this._state=o,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===m||this._state&this._state-1?!1:!(this._state&(p|f|d)&&this._tracked.some(function(x){return x.active}))}},{key:"_startLongpressTimeout",value:function(){var x=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return x._longpressTimeout()},c)}},{key:"_stopLongpressTimeout",value:function(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}},{key:"_longpressTimeout",value:function(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=a,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var x=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return x._twoTouchTimeout()},h)}},{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 x=this._getAverageMovement(),E=Math.abs(x.x),T=Math.abs(x.y),_=this._getAverageDistance(),C=Math.abs(Math.hypot(_.first.x,_.first.y)-Math.hypot(_.last.x,_.last.y));T<C&&E<C?this._state=t:this._state=i,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(x){var E={type:this._stateToGesture(this._state)},T=this._getPosition(),_=T.last;x==="gesturestart"&&(_=T.first);switch(this._state){case i:case t:_=T.first;break}if(E.clientX=_.x,E.clientY=_.y,this._state===t){var C=this._getAverageDistance();x==="gesturestart"?(E.magnitudeX=C.first.x,E.magnitudeY=C.first.y):(E.magnitudeX=C.last.x,E.magnitudeY=C.last.y)}else if(this._state===i)if(x==="gesturestart")E.magnitudeX=0,E.magnitudeY=0;else{var w=this._getAverageMovement();E.magnitudeX=w.x,E.magnitudeY=w.y}var O=new CustomEvent(x,{detail:E});this._target.dispatchEvent(O)}},{key:"_stateToGesture",value:function(x){switch(x){case p:return"onetap";case f:return"twotap";case d:return"threetap";case l:return"drag";case a:return"longpress";case i:return"twodrag";case t:return"pinch"}throw new Error("Unknown gesture state: "+x)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var x=this._tracked.length,E=0,T=0,_=0,C=0,w=0;w<this._tracked.length;w++)E+=this._tracked[w].firstX,T+=this._tracked[w].firstY,_+=this._tracked[w].lastX,C+=this._tracked[w].lastY;return{first:{x:E/x,y:T/x},last:{x:_/x,y:C/x}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var x,E;x=E=0;for(var T=this._tracked.length,_=0;_<this._tracked.length;_++)x+=this._tracked[_].lastX-this._tracked[_].firstX,E+=this._tracked[_].lastY-this._tracked[_].firstY;return{x:x/T,y:E/T}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var x=this._tracked[0],E=this._tracked[this._tracked.length-1],T=Math.abs(E.firstX-x.firstX),_=Math.abs(E.firstY-x.firstY),C=Math.abs(E.lastX-x.lastX),w=Math.abs(E.lastY-x.lastY);return{first:{x:T,y:_},last:{x:C,y:w}}}}]),A}();D.default=v},LPTA:function(R,D){var n=1;typeof window!="undefined"&&(n=Math.max(window.devicePixelRatio||1,1));var y=0,g=n;D.debugMode=y,D.devicePixelRatio=g},LPzL:function(R,D,n){var y=n("ProS");n("QzjZ"),n("vL6D"),n("xiyX"),n("y4/Y"),n("8Th4"),y.extendComponentView({type:"single"})},LSTS:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=function(){function o(e,u){for(var r=0;r<u.length;r++){var s=u[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(e,u,r){return u&&o(e.prototype,u),r&&o(e,r),e}}(),g=n("q1tI"),S=f(g),m=n("17x9"),p=f(m);function f(o){return o&&o.__esModule?o:{default:o}}function d(o,e){var u={};for(var r in o){if(e.indexOf(r)>=0)continue;if(!Object.prototype.hasOwnProperty.call(o,r))continue;u[r]=o[r]}return u}function l(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function a(o,e){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function i(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}var t=function(o){i(e,o);function e(u){l(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,u));return r.scrollListener=r.scrollListener.bind(r),r.eventListenerOptions=r.eventListenerOptions.bind(r),r.mousewheelListener=r.mousewheelListener.bind(r),r}return y(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 r=this.getParentElement(this.scrollComponent);r.scrollTop=r.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var r=!1,s={get passive(){r=!0}};try{document.addEventListener("test",null,s),document.removeEventListener("test",null,s)}catch(c){}return r}},{key:"eventListenerOptions",value:function(){var r=this.props.useCapture;return this.isPassiveSupported()&&(r={useCapture:this.props.useCapture,passive:!0}),r}},{key:"setDefaultLoader",value:function(r){this.defaultLoader=r}},{key:"detachMousewheelListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.scrollComponent.parentNode),r.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.getParentElement(this.scrollComponent)),r.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(r){var s=this.props.getScrollParent&&this.props.getScrollParent();return s!=null?s:r&&r.parentNode}},{key:"filterProps",value:function(r){return r}},{key:"attachScrollListener",value:function(){var r=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!r)return;var s=window;this.props.useWindow===!1&&(s=r),s.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),s.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),s.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(r){r.deltaY===1&&!this.isPassiveSupported()&&r.preventDefault()}},{key:"scrollListener",value:function(){var r=this.scrollComponent,s=window,c=this.getParentElement(r),h=void 0;if(this.props.useWindow){var v=document.documentElement||document.body.parentNode||document.body,A=s.pageYOffset!==void 0?s.pageYOffset:v.scrollTop;this.props.isReverse?h=A:h=this.calculateOffset(r,A)}else this.props.isReverse?h=c.scrollTop:h=r.scrollHeight-c.scrollTop-c.clientHeight;h<Number(this.props.threshold)&&r&&r.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=c.scrollHeight,this.beforeScrollTop=c.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(r,s){return r?this.calculateTopPosition(r)+(r.offsetHeight-s-window.innerHeight):0}},{key:"calculateTopPosition",value:function(r){return r?r.offsetTop+this.calculateTopPosition(r.offsetParent):0}},{key:"render",value:function(){var r=this,s=this.filterProps(this.props),c=s.children,h=s.element,v=s.hasMore,A=s.initialLoad,b=s.isReverse,x=s.loader,E=s.loadMore,T=s.pageStart,_=s.ref,C=s.threshold,w=s.useCapture,O=s.useWindow,I=s.getScrollParent,k=d(s,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);k.ref=function(U){r.scrollComponent=U,_&&_(U)};var M=[c];return v&&(x?b?M.unshift(x):M.push(x):this.defaultLoader&&(b?M.unshift(this.defaultLoader):M.push(this.defaultLoader))),S.default.createElement(h,k,M)}}]),e}(g.Component);t.propTypes={children:p.default.node.isRequired,element:p.default.node,hasMore:p.default.bool,initialLoad:p.default.bool,isReverse:p.default.bool,loader:p.default.node,loadMore:p.default.func.isRequired,pageStart:p.default.number,ref:p.default.func,getScrollParent:p.default.func,threshold:p.default.number,useCapture:p.default.bool,useWindow:p.default.bool},t.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},D.default=t,R.exports=D.default},LXxW:function(R,D){function n(y,g){for(var S=-1,m=y==null?0:y.length,p=0,f=[];++S<m;){var d=y[S];g(d,S,y)&&(f[p++]=d)}return f}R.exports=n},Lerx:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("Mds0"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},LlR5:function(R,D,n){"use strict";n.d(D,"b",function(){return b});var y=n("lSNA"),g=n.n(y),S=n("lwsE"),m=n.n(S),p=n("W8MJ"),f=n.n(p),d=n("7W2i"),l=n.n(d),a=n("LQ03"),i=n.n(a),t=n("q1tI"),o=n.n(t),e=n("TSYQ"),u=n.n(e),r=n("kbBi"),s=n.n(r),c=n("CWQg"),h=n("mh/l"),v=n("0n0R"),A=Object(c.a)("text","input");function b(E){return!!(E.prefix||E.suffix||E.allowClear)}var x=function(E){l()(_,E);var T=i()(_);function _(){var C;return m()(this,_),C=T.apply(this,arguments),C.containerRef=t.createRef(),C.onInputMouseUp=function(w){var O;if((O=C.containerRef.current)===null||O===void 0?void 0:O.contains(w.target)){var I=C.props.triggerFocus;I()}},C}return f()(_,[{key:"renderClearIcon",value:function(w){var O=this.props,I=O.allowClear,k=O.value,M=O.disabled,U=O.readOnly,P=O.inputType,X=O.handleReset;if(!I)return null;var F=!M&&!U&&k,j=P===A[0]?"".concat(w,"-textarea-clear-icon"):"".concat(w,"-clear-icon");return t.createElement(s.a,{onClick:X,className:u()(j,g()({},"".concat(j,"-hidden"),!F)),role:"button"})}},{key:"renderSuffix",value:function(w){var O=this.props,I=O.suffix,k=O.allowClear;return I||k?t.createElement("span",{className:"".concat(w,"-suffix")},this.renderClearIcon(w),I):null}},{key:"renderLabeledIcon",value:function(w,O){var I,k=this.props,M=k.focused,U=k.value,P=k.prefix,X=k.className,F=k.size,j=k.suffix,K=k.disabled,z=k.allowClear,V=k.direction,Q=k.style,G=k.readOnly,te=k.bordered,q=this.renderSuffix(w);if(!b(this.props))return Object(v.a)(O,{value:U});var se=P?t.createElement("span",{className:"".concat(w,"-prefix")},P):null,re=u()(X,"".concat(w,"-affix-wrapper"),(I={},g()(I,"".concat(w,"-affix-wrapper-focused"),M),g()(I,"".concat(w,"-affix-wrapper-disabled"),K),g()(I,"".concat(w,"-affix-wrapper-sm"),F==="small"),g()(I,"".concat(w,"-affix-wrapper-lg"),F==="large"),g()(I,"".concat(w,"-affix-wrapper-input-with-clear-btn"),j&&z&&U),g()(I,"".concat(w,"-affix-wrapper-rtl"),V==="rtl"),g()(I,"".concat(w,"-affix-wrapper-readonly"),G),g()(I,"".concat(w,"-affix-wrapper-borderless"),!te),I));return t.createElement("span",{ref:this.containerRef,className:re,style:Q,onMouseUp:this.onInputMouseUp},se,Object(v.a)(O,{style:null,value:U,className:Object(h.c)(w,te,F,K)}),q)}},{key:"renderInputWithLabel",value:function(w,O){var I,k,M=this.props,U=M.addonBefore,P=M.addonAfter,X=M.style,F=M.size,j=M.className,K=M.direction;if(!U&&!P)return O;var z="".concat(w,"-group"),V="".concat(z,"-addon"),Q=U?t.createElement("span",{className:V},U):null,G=P?t.createElement("span",{className:V},P):null,te=u()("".concat(w,"-wrapper"),(I={},g()(I,z,U||P),g()(I,"".concat(z,"-rtl"),K==="rtl"),I)),q=u()(j,"".concat(w,"-group-wrapper"),(k={},g()(k,"".concat(w,"-group-wrapper-sm"),F==="small"),g()(k,"".concat(w,"-group-wrapper-lg"),F==="large"),g()(k,"".concat(w,"-group-wrapper-rtl"),K==="rtl"),k));return t.createElement("span",{className:q,style:X},t.createElement("span",{className:te},Q,Object(v.a)(O,{style:null}),G))}},{key:"renderTextAreaWithClearIcon",value:function(w,O){var I,k=this.props,M=k.value,U=k.allowClear,P=k.className,X=k.style,F=k.direction,j=k.bordered;if(!U)return Object(v.a)(O,{value:M});var K=u()(P,"".concat(w,"-affix-wrapper"),"".concat(w,"-affix-wrapper-textarea-with-clear-btn"),(I={},g()(I,"".concat(w,"-affix-wrapper-rtl"),F==="rtl"),g()(I,"".concat(w,"-affix-wrapper-borderless"),!j),I));return t.createElement("span",{className:K,style:X},Object(v.a)(O,{style:null,value:M}),this.renderClearIcon(w))}},{key:"render",value:function(){var w=this.props,O=w.prefixCls,I=w.inputType,k=w.element;return I===A[0]?this.renderTextAreaWithClearIcon(O,k):this.renderInputWithLabel(O,this.renderLabeledIcon(O,k))}}]),_}(t.Component);D.a=x},Llu2:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="DeliveredProcedureOutlined";var d=D.a=g.forwardRef(f)},Lo0S:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.initLogging=f,D.getLogging=d,D.Error=D.Warn=D.Info=D.Debug=void 0;var y="warn",g=function(){};D.Debug=g;var S=function(){};D.Info=S;var m=function(){};D.Warn=m;var p=function(){};D.Error=p;function f(l){if(typeof l=="undefined"?l=y:y=l,D.Debug=g=D.Info=S=D.Warn=m=D.Error=p=function(){},typeof window.console!="undefined")switch(l){case"debug":D.Debug=g=console.debug.bind(window.console);case"info":D.Info=S=console.info.bind(window.console);case"warn":D.Warn=m=console.warn.bind(window.console);case"error":D.Error=p=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+l+"'")}}function d(){return y}f()},LtfV:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="InboxOutlined";var d=D.a=g.forwardRef(f)},Lyp1:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="QuestionCircleOutlined";var d=D.a=g.forwardRef(f)},LzGr:function(R,D,n){var y=n("ProS"),g=n("rnVJ");n("EMyp"),n("8x+h"),n("wt3j"),n("uOyE"),n("/stD"),y.registerPreprocessor(g)},MBQ8:function(R,D,n){var y=n("T4UG"),g=n("MwEJ"),S=y.extend({type:"series.__base_bar__",getInitialData:function(m,p){return g(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(m){var p=this.coordinateSystem;if(p){var f=p.dataToPoint(p.clampData(m)),d=this.getData(),l=d.getLayout("offset"),a=d.getLayout("size"),i=p.getBaseAxis().isHorizontal()?0:1;return f[i]+=l+a/2,f}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:{}}});R.exports=S},MEGo:function(R,D,n){var y=n("4fz+"),g=n("Dagg"),S=n("dqUG"),m=n("2fw6"),p=n("x6Kt"),f=n("rmlV"),d=n("yxFR"),l=n("y+Vt"),a=n("h7HQ"),i=n("1Jh7"),t=n("SKnc"),o=n("K2GJ"),e=n("Fofx"),u=n("NC18"),r=u.createFromString,s=n("bYtY"),c=s.isString,h=s.extend,v=s.defaults,A=s.trim,b=s.each,x=/[\s,]+/;function E(Q){if(c(Q)){var G=new DOMParser;Q=G.parseFromString(Q,"text/xml")}for(Q.nodeType===9&&(Q=Q.firstChild);Q.nodeName.toLowerCase()!=="svg"||Q.nodeType!==1;)Q=Q.nextSibling;return Q}function T(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}T.prototype.parse=function(Q,G){G=G||{};var te=E(Q);if(!te)throw new Error("Illegal svg");var q=new y;this._root=q;var se=te.getAttribute("viewBox")||"",re=parseFloat(te.getAttribute("width")||G.width),we=parseFloat(te.getAttribute("height")||G.height);isNaN(re)&&(re=null),isNaN(we)&&(we=null),M(te,q,null,!0);for(var Oe=te.firstChild;Oe;)this._parseNode(Oe,q),Oe=Oe.nextSibling;var Me,Qe;if(se){var Ve=A(se).split(x);Ve.length>=4&&(Me={x:parseFloat(Ve[0]||0),y:parseFloat(Ve[1]||0),width:parseFloat(Ve[2]),height:parseFloat(Ve[3])})}if(Me&&re!=null&&we!=null&&(Qe=z(Me,re,we),!G.ignoreViewBox)){var dt=q;q=new y,q.add(dt),dt.scale=Qe.scale.slice(),dt.position=Qe.position.slice()}return!G.ignoreRootClip&&re!=null&&we!=null&&q.setClipPath(new p({shape:{x:0,y:0,width:re,height:we}})),{root:q,width:re,height:we,viewBoxRect:Me,viewBoxTransform:Qe}},T.prototype._parseNode=function(Q,G){var te=Q.nodeName.toLowerCase();te==="defs"?this._isDefine=!0:te==="text"&&(this._isText=!0);var q;if(this._isDefine){var se=C[te];if(se){var re=se.call(this,Q),we=Q.getAttribute("id");we&&(this._defs[we]=re)}}else{var se=_[te];se&&(q=se.call(this,Q,G),G.add(q))}for(var Oe=Q.firstChild;Oe;)Oe.nodeType===1&&this._parseNode(Oe,q),Oe.nodeType===3&&this._isText&&this._parseText(Oe,q),Oe=Oe.nextSibling;te==="defs"?this._isDefine=!1:te==="text"&&(this._isText=!1)},T.prototype._parseText=function(Q,G){if(Q.nodeType===1){var te=Q.getAttribute("dx")||0,q=Q.getAttribute("dy")||0;this._textX+=parseFloat(te),this._textY+=parseFloat(q)}var se=new S({style:{text:Q.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});O(G,se),M(Q,se,this._defs);var re=se.style.fontSize;re&&re<9&&(se.style.fontSize=9,se.scale=se.scale||[1,1],se.scale[0]*=re/9,se.scale[1]*=re/9);var we=se.getBoundingRect();return this._textX+=we.width,G.add(se),se};var _={g:function(G,te){var q=new y;return O(te,q),M(G,q,this._defs),q},rect:function(G,te){var q=new p;return O(te,q),M(G,q,this._defs),q.setShape({x:parseFloat(G.getAttribute("x")||0),y:parseFloat(G.getAttribute("y")||0),width:parseFloat(G.getAttribute("width")||0),height:parseFloat(G.getAttribute("height")||0)}),q},circle:function(G,te){var q=new m;return O(te,q),M(G,q,this._defs),q.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),r:parseFloat(G.getAttribute("r")||0)}),q},line:function(G,te){var q=new d;return O(te,q),M(G,q,this._defs),q.setShape({x1:parseFloat(G.getAttribute("x1")||0),y1:parseFloat(G.getAttribute("y1")||0),x2:parseFloat(G.getAttribute("x2")||0),y2:parseFloat(G.getAttribute("y2")||0)}),q},ellipse:function(G,te){var q=new f;return O(te,q),M(G,q,this._defs),q.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),rx:parseFloat(G.getAttribute("rx")||0),ry:parseFloat(G.getAttribute("ry")||0)}),q},polygon:function(G,te){var q=G.getAttribute("points");q&&(q=I(q));var se=new a({shape:{points:q||[]}});return O(te,se),M(G,se,this._defs),se},polyline:function(G,te){var q=new l;O(te,q),M(G,q,this._defs);var se=G.getAttribute("points");se&&(se=I(se));var re=new i({shape:{points:se||[]}});return re},image:function(G,te){var q=new g;return O(te,q),M(G,q,this._defs),q.setStyle({image:G.getAttribute("xlink:href"),x:G.getAttribute("x"),y:G.getAttribute("y"),width:G.getAttribute("width"),height:G.getAttribute("height")}),q},text:function(G,te){var q=G.getAttribute("x")||0,se=G.getAttribute("y")||0,re=G.getAttribute("dx")||0,we=G.getAttribute("dy")||0;this._textX=parseFloat(q)+parseFloat(re),this._textY=parseFloat(se)+parseFloat(we);var Oe=new y;return O(te,Oe),M(G,Oe,this._defs),Oe},tspan:function(G,te){var q=G.getAttribute("x"),se=G.getAttribute("y");q!=null&&(this._textX=parseFloat(q)),se!=null&&(this._textY=parseFloat(se));var re=G.getAttribute("dx")||0,we=G.getAttribute("dy")||0,Oe=new y;return O(te,Oe),M(G,Oe,this._defs),this._textX+=re,this._textY+=we,Oe},path:function(G,te){var q=G.getAttribute("d")||"",se=r(q);return O(te,se),M(G,se,this._defs),se}},C={lineargradient:function(G){var te=parseInt(G.getAttribute("x1")||0,10),q=parseInt(G.getAttribute("y1")||0,10),se=parseInt(G.getAttribute("x2")||10,10),re=parseInt(G.getAttribute("y2")||0,10),we=new t(te,q,se,re);return w(G,we),we},radialgradient:function(G){}};function w(Q,G){for(var te=Q.firstChild;te;){if(te.nodeType===1){var q=te.getAttribute("offset");q.indexOf("%")>0?q=parseInt(q,10)/100:q?q=parseFloat(q):q=0;var se=te.getAttribute("stop-color")||"#000000";G.addColorStop(q,se)}te=te.nextSibling}}function O(Q,G){Q&&Q.__inheritedStyle&&(G.__inheritedStyle||(G.__inheritedStyle={}),v(G.__inheritedStyle,Q.__inheritedStyle))}function I(Q){for(var G=A(Q).split(x),te=[],q=0;q<G.length;q+=2){var se=parseFloat(G[q]),re=parseFloat(G[q+1]);te.push([se,re])}return te}var k={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 M(Q,G,te,q){var se=G.__inheritedStyle||{},re=G.type==="text";if(Q.nodeType===1&&(F(Q,G),h(se,K(Q)),!q)){for(var we in k)if(k.hasOwnProperty(we)){var Oe=Q.getAttribute(we);Oe!=null&&(se[k[we]]=Oe)}}var Me=re?"textFill":"fill",Qe=re?"textStroke":"stroke";G.style=G.style||new o;var Ve=G.style;se.fill!=null&&Ve.set(Me,P(se.fill,te)),se.stroke!=null&&Ve.set(Qe,P(se.stroke,te)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(dt){var Fe=dt==="lineWidth"&&re?"textStrokeWidth":dt;se[dt]!=null&&Ve.set(Fe,parseFloat(se[dt]))}),(!se.textBaseline||se.textBaseline==="auto")&&(se.textBaseline="alphabetic"),se.textBaseline==="alphabetic"&&(se.textBaseline="bottom"),se.textAlign==="start"&&(se.textAlign="left"),se.textAlign==="end"&&(se.textAlign="right"),b(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(dt){se[dt]!=null&&Ve.set(dt,se[dt])}),se.lineDash&&(G.style.lineDash=A(se.lineDash).split(x)),Ve[Qe]&&Ve[Qe]!=="none"&&(G[Qe]=!0),G.__inheritedStyle=se}var U=/url\(\s*#(.*?)\)/;function P(Q,G){var te=G&&Q&&Q.match(U);if(te){var q=A(te[1]),se=G[q];return se}return Q}var X=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function F(Q,G){var te=Q.getAttribute("transform");if(te){te=te.replace(/,/g," ");var q=null,se=[];te.replace(X,function(Me,Qe,Ve){se.push(Qe,Ve)});for(var re=se.length-1;re>0;re-=2){var we=se[re],Oe=se[re-1];q=q||e.create();switch(Oe){case"translate":we=A(we).split(x),e.translate(q,q,[parseFloat(we[0]),parseFloat(we[1]||0)]);break;case"scale":we=A(we).split(x),e.scale(q,q,[parseFloat(we[0]),parseFloat(we[1]||we[0])]);break;case"rotate":we=A(we).split(x),e.rotate(q,q,parseFloat(we[0]));break;case"skew":we=A(we).split(x),console.warn("Skew transform is not supported yet");break;case"matrix":var we=A(we).split(x);q[0]=parseFloat(we[0]),q[1]=parseFloat(we[1]),q[2]=parseFloat(we[2]),q[3]=parseFloat(we[3]),q[4]=parseFloat(we[4]),q[5]=parseFloat(we[5]);break}}G.setLocalTransform(q)}}var j=/([^\s:;]+)\s*:\s*([^:;]+)/g;function K(Q){var G=Q.getAttribute("style"),te={};if(!G)return te;var q={};j.lastIndex=0;for(var se;(se=j.exec(G))!=null;)q[se[1]]=se[2];for(var re in k)k.hasOwnProperty(re)&&q[re]!=null&&(te[k[re]]=q[re]);return te}function z(Q,G,te){var q=G/Q.width,se=te/Q.height,re=Math.min(q,se),we=[re,re],Oe=[-(Q.x+Q.width/2)*re+G/2,-(Q.y+Q.height/2)*re+te/2];return{scale:we,position:Oe}}function V(Q,G){var te=new T;return te.parse(Q,G)}D.parseXML=E,D.makeViewBoxTransform=z,D.parseSVG=V},MFOe:function(R,D,n){(function(y){var g=f(),S=d(),m=l(),p=typeof window!="undefined"?window:y;R.exports={assign:g,create:S,trim:m,bind:a,slice:i,each:t,map:o,pluck:e,isList:u,isFunction:r,isObject:s,Global:p};function f(){return Object.assign?Object.assign:function(h,v,A,b){for(var x=1;x<arguments.length;x++)t(Object(arguments[x]),function(E,T){h[T]=E});return h}}function d(){if(Object.create)return function(v,A,b,x){var E=i(arguments,1);return g.apply(this,[Object.create(v)].concat(E))};var c=function(){};return function(v,A,b,x){var E=i(arguments,1);return c.prototype=v,g.apply(this,[new c].concat(E))}}function l(){return String.prototype.trim?function(h){return String.prototype.trim.call(h)}:function(h){return h.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function a(c,h){return function(){return h.apply(c,Array.prototype.slice.call(arguments,0))}}function i(c,h){return Array.prototype.slice.call(c,h||0)}function t(c,h){e(c,function(v,A){return h(v,A),!1})}function o(c,h){var v=u(c)?[]:{};return e(c,function(A,b){return v[b]=h(A,b),!1}),v}function e(c,h){if(u(c)){for(var v=0;v<c.length;v++)if(h(c[v],v))return c[v]}else for(var A in c)if(c.hasOwnProperty(A)&&h(c[A],A))return c[A]}function u(c){return c!=null&&typeof c!="function"&&typeof c.length=="number"}function r(c){return c&&{}.toString.call(c)==="[object Function]"}function s(c){return c&&{}.toString.call(c)==="[object Object]"}}).call(this,n("yLpj"))},MH26:function(R,D,n){var y=n("bYtY"),g=n("YXkt"),S=n("OELB"),m=n("kj2x"),p=n("c8qY"),f=n("iPDy"),d=n("7hqr"),l=d.getStackedDimension,a=function(s,c,h,v){var A=s.getData(),b=v.type;if(!y.isArray(v)&&(b==="min"||b==="max"||b==="average"||b==="median"||v.xAxis!=null||v.yAxis!=null)){var x,E;if(v.yAxis!=null||v.xAxis!=null)x=c.getAxis(v.yAxis!=null?"y":"x"),E=y.retrieve(v.yAxis,v.xAxis);else{var T=m.getAxisInfo(v,A,c,s);x=T.valueAxis;var _=l(A,T.valueDataDim);E=m.numCalculate(A,_,b)}var C=x.dim==="x"?0:1,w=1-C,O=y.clone(v),I={};O.type=null,O.coord=[],I.coord=[],O.coord[w]=-Infinity,I.coord[w]=Infinity;var k=h.get("precision");k>=0&&typeof E=="number"&&(E=+E.toFixed(Math.min(k,20))),O.coord[C]=I.coord[C]=E,v=[O,I,{type:b,valueIndex:v.valueIndex,value:E}]}return v=[m.dataTransform(s,v[0]),m.dataTransform(s,v[1]),y.extend({},v[2])],v[2].type=v[2].type||"",y.merge(v[2],v[0]),y.merge(v[2],v[1]),v};function i(s){return!isNaN(s)&&!isFinite(s)}function t(s,c,h,v){var A=1-s,b=v.dimensions[s];return i(c[A])&&i(h[A])&&c[s]===h[s]&&v.getAxis(b).containData(c[s])}function o(s,c){if(s.type==="cartesian2d"){var h=c[0].coord,v=c[1].coord;if(h&&v&&(t(1,h,v,s)||t(0,h,v,s)))return!0}return m.dataFilter(s,c[0])&&m.dataFilter(s,c[1])}function e(s,c,h,v,A){var b=v.coordinateSystem,x=s.getItemModel(c),E,T=S.parsePercent(x.get("x"),A.getWidth()),_=S.parsePercent(x.get("y"),A.getHeight());if(!isNaN(T)&&!isNaN(_))E=[T,_];else{if(v.getMarkerPosition)E=v.getMarkerPosition(s.getValues(s.dimensions,c));else{var C=b.dimensions,w=s.get(C[0],c),O=s.get(C[1],c);E=b.dataToPoint([w,O])}if(b.type==="cartesian2d"){var I=b.getAxis("x"),k=b.getAxis("y"),C=b.dimensions;i(s.get(C[0],c))?E[0]=I.toGlobalCoord(I.getExtent()[h?0:1]):i(s.get(C[1],c))&&(E[1]=k.toGlobalCoord(k.getExtent()[h?0:1]))}isNaN(T)||(E[0]=T),isNaN(_)||(E[1]=_)}s.setItemLayout(c,E)}var u=f.extend({type:"markLine",updateTransform:function(s,c,h){c.eachSeries(function(v){var A=v.markLineModel;if(A){var b=A.getData(),x=A.__from,E=A.__to;x.each(function(T){e(x,T,!0,v,h),e(E,T,!1,v,h)}),b.each(function(T){b.setItemLayout(T,[x.getItemLayout(T),E.getItemLayout(T)])}),this.markerGroupMap.get(v.id).updateLayout()}},this)},renderSeries:function(s,c,h,v){var A=s.coordinateSystem,b=s.id,x=s.getData(),E=this.markerGroupMap,T=E.get(b)||E.set(b,new p);this.group.add(T.group);var _=r(A,s,c),C=_.from,w=_.to,O=_.line;c.__from=C,c.__to=w,c.setData(O);var I=c.get("symbol"),k=c.get("symbolSize");y.isArray(I)||(I=[I,I]),typeof k=="number"&&(k=[k,k]),_.from.each(function(U){M(C,U,!0),M(w,U,!1)}),O.each(function(U){var P=O.getItemModel(U).get("lineStyle.color");O.setItemVisual(U,{color:P||C.getItemVisual(U,"color")}),O.setItemLayout(U,[C.getItemLayout(U),w.getItemLayout(U)]),O.setItemVisual(U,{fromSymbolSize:C.getItemVisual(U,"symbolSize"),fromSymbol:C.getItemVisual(U,"symbol"),toSymbolSize:w.getItemVisual(U,"symbolSize"),toSymbol:w.getItemVisual(U,"symbol")})}),T.updateData(O),_.line.eachItemGraphicEl(function(U,P){U.traverse(function(X){X.dataModel=c})});function M(U,P,X){var F=U.getItemModel(P);e(U,P,X,s,v),U.setItemVisual(P,{symbolSize:F.get("symbolSize")||k[X?0:1],symbol:F.get("symbol",!0)||I[X?0:1],color:F.get("itemStyle.color")||x.getVisual("color")})}T.__keep=!0,T.group.silent=c.get("silent")||s.get("silent")}});function r(s,c,h){var v;s?v=y.map(s&&s.dimensions,function(_){var C=c.getData().getDimensionInfo(c.getData().mapDimension(_))||{};return y.defaults({name:_},C)}):v=[{name:"value",type:"float"}];var A=new g(v,h),b=new g(v,h),x=new g([],h),E=y.map(h.get("data"),y.curry(a,c,s,h));s&&(E=y.filter(E,y.curry(o,s)));var T=s?m.dimValueGetter:function(_){return _.value};return A.initData(y.map(E,function(_){return _[0]}),null,T),b.initData(y.map(E,function(_){return _[1]}),null,T),x.initData(y.map(E,function(_){return _[2]})),x.hasItemOption=!0,{from:A,to:b,line:x}}R.exports=u},MHoB:function(R,D,n){var y=n("bYtY"),g=n("6uqw"),S=n("OELB"),m=[20,140],p=g.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(l,a){p.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){p.superApply(this,"resetItemSize",arguments);var l=this.itemSize;this._orient==="horizontal"&&l.reverse(),(l[0]==null||isNaN(l[0]))&&(l[0]=m[0]),(l[1]==null||isNaN(l[1]))&&(l[1]=m[1])},_resetRange:function(){var l=this.getExtent(),a=this.option.range;!a||a.auto?(l.auto=1,this.option.range=l):y.isArray(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],l[0]),a[1]=Math.min(a[1],l[1]))},completeVisualOption:function(){g.prototype.completeVisualOption.apply(this,arguments),y.each(this.stateList,function(l){var a=this.option.controller[l].symbolSize;a&&a[0]!==a[1]&&(a[0]=0)},this)},setSelected:function(l){this.option.range=l.slice(),this._resetRange()},getSelected:function(){var l=this.getExtent(),a=S.asc((this.get("range")||[]).slice());return a[0]>l[1]&&(a[0]=l[1]),a[1]>l[1]&&(a[1]=l[1]),a[0]<l[0]&&(a[0]=l[0]),a[1]<l[0]&&(a[1]=l[0]),a},getValueState:function(l){var a=this.option.range,i=this.getExtent();return(a[0]<=i[0]||a[0]<=l)&&(a[1]>=i[1]||l<=a[1])?"inRange":"outOfRange"},findTargetDataIndices:function(l){var a=[];return this.eachTargetSeries(function(i){var t=[],o=i.getData();o.each(this.getDataDimension(o),function(e,u){l[0]<=e&&e<=l[1]&&t.push(u)},this),a.push({seriesId:i.id,dataIndex:t})},this),a},getVisualMeta:function(l){var a=f(this,"outOfRange",this.getExtent()),i=f(this,"inRange",this.option.range.slice()),t=[];function o(v,A){t.push({value:v,color:l(v,A)})}for(var e=0,u=0,r=i.length,s=a.length;u<s&&(!i.length||a[u]<=i[0]);u++)a[u]<i[e]&&o(a[u],"outOfRange");for(var c=1;e<r;e++,c=0)c&&t.length&&o(i[e],"outOfRange"),o(i[e],"inRange");for(var c=1;u<s;u++)(!i.length||i[i.length-1]<a[u])&&(c&&(t.length&&o(t[t.length-1].value,"outOfRange"),c=0),o(a[u],"outOfRange"));var h=t.length;return{stops:t,outerColors:[h?t[0].color:"transparent",h?t[h-1].color:"transparent"]}}});function f(l,a,i){if(i[0]===i[1])return i.slice();for(var t=200,o=(i[1]-i[0])/t,e=i[0],u=[],r=0;r<=t&&e<i[1];r++)u.push(e),e+=o;return u.push(i[1]),u}var d=p;R.exports=d},MHtr:function(R,D,n){var y=n("bYtY");function g(m,p){var f=this.getAxis(),d=p instanceof Array?p[0]:p,l=(m instanceof Array?m[0]:m)/2;return f.type==="category"?f.getBandWidth():Math.abs(f.dataToCoord(d-l)-f.dataToCoord(d+l))}function S(m){var p=m.getRect();return{coordSys:{type:"singleAxis",x:p.x,y:p.y,width:p.width,height:p.height},api:{coord:function(f){return m.dataToPoint(f)},size:y.bind(g,m)}}}R.exports=S},MJZm:function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("pVnL"),m=n.n(S),p=n("q1tI"),f=n("rePB"),d=n("VTBJ"),l=n("KQm4"),a=n("1OyB"),i=n("vuIU"),t=n("Ji7U"),o=n("LK+K"),e=n("4IlW"),u=n("Kwbf"),r=n("TSYQ"),s=n.n(r),c=n("FTAc"),h=n("wPhX"),v=n("c3jg"),A=n("ODXe"),b=n("Ff2n"),x=n("+nKL"),E=n("HTfv"),T=n("lr6o"),_=function(Ht,Jt){var Ge=Ht.className,pe=Ht.style,oe=Ht.motion,ct=Ht.motionNodes,qe=Ht.motionType,me=Ht.onMotionStart,Kt=Ht.onMotionEnd,vr=Ht.active,bt=Ht.treeNodeRequiredProps,or=Object(b.a)(Ht,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),_t=p.useState(!0),jt=Object(A.a)(_t,2),ut=jt[0],St=jt[1],mt=p.useContext(c.a),lt=mt.prefixCls,tt=p.useRef(!1),Cr=function(){tt.current||Kt(),tt.current=!0};return Object(p.useEffect)(function(){ct&&qe==="hide"&&ut&&St(!1)},[ct]),Object(p.useEffect)(function(){return ct&&me(),function(){ct&&Cr()}},[]),ct?p.createElement(E.default,Object.assign({ref:Jt,visible:ut},oe,{motionAppear:qe==="show",onAppearEnd:Cr,onLeaveEnd:Cr}),function(nn,mn){var Bn=nn.className,oi=nn.style;return p.createElement("div",{ref:mn,className:s()("".concat(lt,"-treenode-motion"),Bn),style:oi},ct.map(function(wn){var Rn=wn.data,Zt=Rn.key,Tt=Object(b.a)(Rn,["key"]),De=wn.isStart,Re=wn.isEnd;delete Tt.children;var Pe=Object(v.f)(Zt,bt);return p.createElement(T.a,Object.assign({},Tt,Pe,{active:vr,data:wn.data,key:Zt,isStart:De,isEnd:Re}))}))}):p.createElement(T.a,Object.assign({domRef:Jt,className:Ge,style:pe},or,{active:vr}))};_.displayName="MotionTreeNode";var C=p.forwardRef(_),w=C;function O(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Jt=Qt.length,Ge=Ht.length;if(Math.abs(Jt-Ge)!==1)return{add:!1,key:null};function pe(oe,ct){var qe=new Map;oe.forEach(function(Kt){qe.set(Kt,!0)});var me=ct.filter(function(Kt){return!qe.has(Kt)});return me.length===1?me[0]:null}return Jt<Ge?{add:!0,key:pe(Qt,Ht)}:{add:!1,key:pe(Ht,Qt)}}function I(Qt,Ht,Jt){var Ge=Qt.findIndex(function(qe){var me=qe.data;return me.key===Jt}),pe=Qt[Ge+1],oe=Ht.findIndex(function(qe){var me=qe.data;return me.key===Jt});if(pe){var ct=Ht.findIndex(function(qe){var me=qe.data;return me.key===pe.data.key});return Ht.slice(oe+1,ct)}return Ht.slice(oe+1)}var k={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},M=function(){},U="RC_TREE_MOTION_".concat(Math.random()),P={key:U},X={key:U,level:0,index:0,pos:"0",node:P},F={parent:null,children:[],pos:X.pos,data:P,isStart:[],isEnd:[]};function j(Qt,Ht,Jt,Ge){return Ht===!1||!Jt?Qt:Qt.slice(0,Math.ceil(Jt/Ge)+1)}function K(Qt){var Ht=Qt.data.key,Jt=Qt.pos;return Object(v.e)(Ht,Jt)}function z(Qt){for(var Ht=String(Qt.data.key),Jt=Qt;Jt.parent;)Jt=Jt.parent,Ht="".concat(Jt.data.key," > ").concat(Ht);return Ht}var V=function(Ht,Jt){var Ge=Ht.prefixCls,pe=Ht.data,oe=Ht.selectable,ct=Ht.checkable,qe=Ht.expandedKeys,me=Ht.selectedKeys,Kt=Ht.checkedKeys,vr=Ht.loadedKeys,bt=Ht.loadingKeys,or=Ht.halfCheckedKeys,_t=Ht.keyEntities,jt=Ht.disabled,ut=Ht.dragging,St=Ht.dragOverNodeKey,mt=Ht.dropPosition,lt=Ht.motion,tt=Ht.height,Cr=Ht.itemHeight,nn=Ht.virtual,mn=Ht.focusable,Bn=Ht.activeItem,oi=Ht.focused,wn=Ht.tabIndex,Rn=Ht.onKeyDown,Zt=Ht.onFocus,Tt=Ht.onBlur,De=Ht.onActiveChange,Re=Ht.onListChangeStart,Pe=Ht.onListChangeEnd,rt=Object(b.a)(Ht,["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"]),wt=p.useRef(null);p.useImperativeHandle(Jt,function(){return{scrollTo:function(Wi){wt.current.scrollTo(Wi)}}});var Ot=p.useState(qe),$t=Object(A.a)(Ot,2),Mr=$t[0],Vr=$t[1],hn=p.useState(pe),Vt=Object(A.a)(hn,2),yt=Vt[0],xt=Vt[1],dr=p.useState(pe),er=Object(A.a)(dr,2),Ut=er[0],ir=er[1],Ft=p.useState([]),rr=Object(A.a)(Ft,2),Kr=rr[0],Rr=rr[1],kr=p.useState(null),dn=Object(A.a)(kr,2),yn=dn[0],ri=dn[1];function $n(){xt(pe),ir(pe),Rr([]),ri(null),Pe()}p.useEffect(function(){Vr(qe);var Di=O(Mr,qe);if(Di.key!==null)if(Di.add){var Wi=yt.findIndex(function(Ze){var ot=Ze.data.key;return ot===Di.key}),at=j(I(yt,pe,Di.key),nn,tt,Cr),Le=yt.slice();Le.splice(Wi+1,0,F),ir(Le),Rr(at),ri("show")}else{var je=pe.findIndex(function(Ze){var ot=Ze.data.key;return ot===Di.key}),Xe=j(I(pe,yt,Di.key),nn,tt,Cr),it=pe.slice();it.splice(je+1,0,F),ir(it),Rr(Xe),ri("hide")}else yt!==pe&&(xt(pe),ir(pe))},[qe,pe]),p.useEffect(function(){ut||$n()},[ut]);var pi=lt?Ut:pe,_i={expandedKeys:qe,selectedKeys:me,loadedKeys:vr,loadingKeys:bt,checkedKeys:Kt,halfCheckedKeys:or,dragOverNodeKey:St,dropPosition:mt,keyEntities:_t};return p.createElement(p.Fragment,null,oi&&Bn&&p.createElement("span",{style:k,"aria-live":"assertive"},z(Bn)),p.createElement("div",{role:"tree"},p.createElement("input",{style:k,disabled:mn===!1||jt,tabIndex:mn!==!1?wn:null,onKeyDown:Rn,onFocus:Zt,onBlur:Tt,value:"",onChange:M})),p.createElement(x.a,Object.assign({},rt,{data:pi,itemKey:K,height:tt,fullHeight:!1,virtual:nn,itemHeight:Cr,prefixCls:"".concat(Ge,"-list"),ref:wt}),function(Di){var Wi=Di.pos,at=Di.data,Le=at.key,je=Object(b.a)(at,["key"]),Xe=Di.isStart,it=Di.isEnd,Ze=Object(v.e)(Le,Wi);delete je.children;var ot=Object(v.f)(Ze,_i);return p.createElement(w,Object.assign({},je,ot,{active:Bn&&Le===Bn.data.key,pos:Wi,data:Di.data,isStart:Xe,isEnd:it,motion:lt,motionNodes:Le===U?Kr:null,motionType:yn,onMotionStart:Re,onMotionEnd:$n,treeNodeRequiredProps:_i,onMouseMove:function(){De(null)}}))}))},Q=p.forwardRef(V);Q.displayName="NodeList";var G=Q,te=n("qOx5"),q=function(Qt){Object(t.a)(Jt,Qt);var Ht=Object(o.a)(Jt);function Jt(){var Ge;return Object(a.a)(this,Jt),Ge=Ht.apply(this,arguments),Ge.destroyed=!1,Ge.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},Ge.listRef=p.createRef(),Ge.onNodeDragStart=function(pe,oe){var ct=Ge.state,qe=ct.expandedKeys,me=ct.keyEntities,Kt=Ge.props.onDragStart,vr=oe.props.eventKey;Ge.dragNode=oe;var bt=Object(h.b)(qe,vr);Ge.setState({dragging:!0,dragNodesKeys:Object(h.g)(vr,me)}),Ge.setExpandedKeys(bt),Kt&&Kt({event:pe,node:Object(v.b)(oe.props)})},Ge.onNodeDragEnter=function(pe,oe){var ct=Ge.state,qe=ct.expandedKeys,me=ct.keyEntities,Kt=ct.dragNodesKeys,vr=Ge.props.onDragEnter,bt=oe.props,or=bt.pos,_t=bt.eventKey;if(!Ge.dragNode||Kt.indexOf(_t)!==-1)return;var jt=Object(h.c)(pe,oe);if(Ge.dragNode.props.eventKey===_t&&jt===0){Ge.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Ge.setState({dragOverNodeKey:_t,dropPosition:jt}),Ge.delayedDragEnterLogic||(Ge.delayedDragEnterLogic={}),Object.keys(Ge.delayedDragEnterLogic).forEach(function(ut){clearTimeout(Ge.delayedDragEnterLogic[ut])}),Ge.delayedDragEnterLogic[or]=window.setTimeout(function(){if(!Ge.state.dragging)return;var ut=Object(l.a)(qe),St=me[_t];St&&(St.children||[]).length&&(ut=Object(h.a)(qe,_t)),"expandedKeys"in Ge.props||Ge.setExpandedKeys(ut),vr&&vr({event:pe,node:Object(v.b)(oe.props),expandedKeys:ut})},400)},0)},Ge.onNodeDragOver=function(pe,oe){var ct=Ge.state.dragNodesKeys,qe=Ge.props.onDragOver,me=oe.props.eventKey;if(ct.indexOf(me)!==-1)return;if(Ge.dragNode&&me===Ge.state.dragOverNodeKey){var Kt=Object(h.c)(pe,oe);if(Kt===Ge.state.dropPosition)return;Ge.setState({dropPosition:Kt})}qe&&qe({event:pe,node:Object(v.b)(oe.props)})},Ge.onNodeDragLeave=function(pe,oe){var ct=Ge.props.onDragLeave;Ge.setState({dragOverNodeKey:""}),ct&&ct({event:pe,node:Object(v.b)(oe.props)})},Ge.onNodeDragEnd=function(pe,oe){var ct=Ge.props.onDragEnd;Ge.setState({dragOverNodeKey:""}),Ge.cleanDragState(),ct&&ct({event:pe,node:Object(v.b)(oe.props)}),Ge.dragNode=null},Ge.onNodeDrop=function(pe,oe){var ct=Ge.state,qe=ct.dragNodesKeys,me=qe===void 0?[]:qe,Kt=ct.dropPosition,vr=Ge.props.onDrop,bt=oe.props,or=bt.eventKey,_t=bt.pos;if(Ge.setState({dragOverNodeKey:""}),Ge.cleanDragState(),me.indexOf(or)!==-1){Object(u.a)(!1,"Can not drop to dragNode(include it's children node)");return}var jt=Object(h.k)(_t),ut={event:pe,node:Object(v.b)(oe.props),dragNode:Ge.dragNode?Object(v.b)(Ge.dragNode.props):null,dragNodesKeys:me.slice(),dropPosition:Kt+Number(jt[jt.length-1]),dropToGap:!1};Kt!==0&&(ut.dropToGap=!0),vr&&vr(ut),Ge.dragNode=null},Ge.cleanDragState=function(){var pe=Ge.state.dragging;pe&&Ge.setState({dragging:!1})},Ge.onNodeClick=function(pe,oe){var ct=Ge.props.onClick;ct&&ct(pe,oe)},Ge.onNodeDoubleClick=function(pe,oe){var ct=Ge.props.onDoubleClick;ct&&ct(pe,oe)},Ge.onNodeSelect=function(pe,oe){var ct=Ge.state.selectedKeys,qe=Ge.state.keyEntities,me=Ge.props,Kt=me.onSelect,vr=me.multiple,bt=oe.selected,or=oe.key,_t=!bt;_t?vr?ct=Object(h.a)(ct,or):ct=[or]:ct=Object(h.b)(ct,or);var jt=ct.map(function(ut){var St=qe[ut];return St?St.node:null}).filter(function(ut){return ut});Ge.setUncontrolledState({selectedKeys:ct}),Kt&&Kt(ct,{event:"select",selected:_t,node:oe,selectedNodes:jt,nativeEvent:pe.nativeEvent})},Ge.onNodeCheck=function(pe,oe,ct){var qe=Ge.state,me=qe.keyEntities,Kt=qe.checkedKeys,vr=qe.halfCheckedKeys,bt=Ge.props,or=bt.checkStrictly,_t=bt.onCheck,jt=oe.key,ut,St={event:"check",node:oe,checked:ct,nativeEvent:pe.nativeEvent};if(or){var mt=ct?Object(h.a)(Kt,jt):Object(h.b)(Kt,jt),lt=Object(h.b)(vr,jt);ut={checked:mt,halfChecked:lt},St.checkedNodes=mt.map(function(oi){return me[oi]}).filter(function(oi){return oi}).map(function(oi){return oi.node}),Ge.setUncontrolledState({checkedKeys:mt})}else{var tt=Object(te.a)([].concat(Object(l.a)(Kt),[jt]),!0,me),Cr=tt.checkedKeys,nn=tt.halfCheckedKeys;if(!ct){var mn=new Set(Cr);mn.delete(jt);var Bn=Object(te.a)(Array.from(mn),{checked:!1,halfCheckedKeys:nn},me);Cr=Bn.checkedKeys,nn=Bn.halfCheckedKeys}ut=Cr,St.checkedNodes=[],St.checkedNodesPositions=[],St.halfCheckedKeys=nn,Cr.forEach(function(oi){var wn=me[oi];if(!wn)return;var Rn=wn.node,Zt=wn.pos;St.checkedNodes.push(Rn),St.checkedNodesPositions.push({node:Rn,pos:Zt})}),Ge.setUncontrolledState({checkedKeys:Cr},!1,{halfCheckedKeys:nn})}_t&&_t(ut,St)},Ge.onNodeLoad=function(pe){return new Promise(function(oe){Ge.setState(function(ct){var qe=ct.loadedKeys,me=qe===void 0?[]:qe,Kt=ct.loadingKeys,vr=Kt===void 0?[]:Kt,bt=Ge.props,or=bt.loadData,_t=bt.onLoad,jt=pe.key;if(!or||me.indexOf(jt)!==-1||vr.indexOf(jt)!==-1)return{};var ut=or(pe);return ut.then(function(){var St=Ge.state,mt=St.loadedKeys,lt=St.loadingKeys,tt=Object(h.a)(mt,jt),Cr=Object(h.b)(lt,jt);_t&&_t(tt,{event:"load",node:pe}),Ge.setUncontrolledState({loadedKeys:tt}),Ge.setState({loadingKeys:Cr}),oe()}),{loadingKeys:Object(h.a)(vr,jt)}})})},Ge.onNodeMouseEnter=function(pe,oe){var ct=Ge.props.onMouseEnter;ct&&ct({event:pe,node:oe})},Ge.onNodeMouseLeave=function(pe,oe){var ct=Ge.props.onMouseLeave;ct&&ct({event:pe,node:oe})},Ge.onNodeContextMenu=function(pe,oe){var ct=Ge.props.onRightClick;ct&&(pe.preventDefault(),ct({event:pe,node:oe}))},Ge.onFocus=function(){var pe=Ge.props.onFocus;Ge.setState({focused:!0}),pe&&pe.apply(void 0,arguments)},Ge.onBlur=function(){var pe=Ge.props.onBlur;Ge.setState({focused:!1}),Ge.onActiveChange(null),pe&&pe.apply(void 0,arguments)},Ge.getTreeNodeRequiredProps=function(){var pe=Ge.state,oe=pe.expandedKeys,ct=pe.selectedKeys,qe=pe.loadedKeys,me=pe.loadingKeys,Kt=pe.checkedKeys,vr=pe.halfCheckedKeys,bt=pe.dragOverNodeKey,or=pe.dropPosition,_t=pe.keyEntities;return{expandedKeys:oe||[],selectedKeys:ct||[],loadedKeys:qe||[],loadingKeys:me||[],checkedKeys:Kt||[],halfCheckedKeys:vr||[],dragOverNodeKey:bt,dropPosition:or,keyEntities:_t}},Ge.setExpandedKeys=function(pe){var oe=Ge.state.treeData,ct=Object(v.d)(oe,pe);Ge.setUncontrolledState({expandedKeys:pe,flattenNodes:ct},!0)},Ge.onNodeExpand=function(pe,oe){var ct=Ge.state.expandedKeys,qe=Ge.state.listChanging,me=Ge.props,Kt=me.onExpand,vr=me.loadData,bt=oe.key,or=oe.expanded;if(qe)return;var _t=ct.indexOf(bt),jt=!or;if(Object(u.a)(or&&_t!==-1||!or&&_t===-1,"Expand state not sync with index check"),jt?ct=Object(h.a)(ct,bt):ct=Object(h.b)(ct,bt),Ge.setExpandedKeys(ct),Kt&&Kt(ct,{node:oe,expanded:jt,nativeEvent:pe.nativeEvent}),jt&&vr){var ut=Ge.onNodeLoad(oe);ut&&ut.then(function(){var St=Object(v.d)(Ge.state.treeData,ct);Ge.setUncontrolledState({flattenNodes:St})})}},Ge.onListChangeStart=function(){Ge.setUncontrolledState({listChanging:!0})},Ge.onListChangeEnd=function(){setTimeout(function(){Ge.setUncontrolledState({listChanging:!1})})},Ge.onActiveChange=function(pe){var oe=Ge.state.activeKey,ct=Ge.props.onActiveChange;if(oe===pe)return;Ge.setState({activeKey:pe}),pe!==null&&Ge.scrollTo({key:pe}),ct&&ct(pe)},Ge.getActiveItem=function(){var pe=Ge.state,oe=pe.activeKey,ct=pe.flattenNodes;return oe===null?null:ct.find(function(qe){var me=qe.data.key;return me===oe})||null},Ge.offsetActiveKey=function(pe){var oe=Ge.state,ct=oe.flattenNodes,qe=oe.activeKey,me=ct.findIndex(function(bt){var or=bt.data.key;return or===qe});me===-1&&pe<0&&(me=ct.length),me=(me+pe+ct.length)%ct.length;var Kt=ct[me];if(Kt){var vr=Kt.data.key;Ge.onActiveChange(vr)}else Ge.onActiveChange(null)},Ge.onKeyDown=function(pe){var oe=Ge.state,ct=oe.activeKey,qe=oe.expandedKeys,me=oe.checkedKeys,Kt=Ge.props,vr=Kt.onKeyDown,bt=Kt.checkable,or=Kt.selectable;switch(pe.which){case e.a.UP:{Ge.offsetActiveKey(-1),pe.preventDefault();break}case e.a.DOWN:{Ge.offsetActiveKey(1),pe.preventDefault();break}}var _t=Ge.getActiveItem();if(_t&&_t.data){var jt=Ge.getTreeNodeRequiredProps(),ut=_t.data.isLeaf===!1||!!(_t.data.children||[]).length,St=Object(v.b)(Object(d.a)(Object(d.a)({},Object(v.f)(ct,jt)),{},{data:_t.data,active:!0}));switch(pe.which){case e.a.LEFT:{ut&&qe.includes(ct)?Ge.onNodeExpand({},St):_t.parent&&Ge.onActiveChange(_t.parent.data.key),pe.preventDefault();break}case e.a.RIGHT:{ut&&!qe.includes(ct)?Ge.onNodeExpand({},St):_t.children&&_t.children.length&&Ge.onActiveChange(_t.children[0].data.key),pe.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{bt&&!St.disabled&&St.checkable!==!1&&!St.disableCheckbox?Ge.onNodeCheck({},St,!me.includes(ct)):!bt&&or&&!St.disabled&&St.selectable!==!1&&Ge.onNodeSelect({},St);break}}}vr&&vr(pe)},Ge.setUncontrolledState=function(pe){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Ge.destroyed)return;var qe=!1,me=!0,Kt={};Object.keys(pe).forEach(function(vr){if(vr in Ge.props){me=!1;return}qe=!0,Kt[vr]=pe[vr]}),qe&&(!oe||me)&&Ge.setState(Object(d.a)(Object(d.a)({},Kt),ct))},Ge.scrollTo=function(pe){Ge.listRef.current.scrollTo(pe)},Ge}return Object(i.a)(Jt,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var pe,oe=this.state,ct=oe.focused,qe=oe.flattenNodes,me=oe.keyEntities,Kt=oe.dragging,vr=oe.activeKey,bt=this.props,or=bt.prefixCls,_t=bt.className,jt=bt.style,ut=bt.showLine,St=bt.focusable,mt=bt.tabIndex,lt=mt===void 0?0:mt,tt=bt.selectable,Cr=bt.showIcon,nn=bt.icon,mn=bt.switcherIcon,Bn=bt.draggable,oi=bt.checkable,wn=bt.checkStrictly,Rn=bt.disabled,Zt=bt.motion,Tt=bt.loadData,De=bt.filterTreeNode,Re=bt.height,Pe=bt.itemHeight,rt=bt.virtual,wt=bt.titleRender,Ot=bt.onContextMenu,$t=Object(h.f)(this.props);return p.createElement(c.a.Provider,{value:{prefixCls:or,selectable:tt,showIcon:Cr,icon:nn,switcherIcon:mn,draggable:Bn,checkable:oi,checkStrictly:wn,disabled:Rn,keyEntities:me,loadData:Tt,filterTreeNode:De,titleRender:wt,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}},p.createElement("div",{className:s()(or,_t,(pe={},Object(f.a)(pe,"".concat(or,"-show-line"),ut),Object(f.a)(pe,"".concat(or,"-focused"),ct),Object(f.a)(pe,"".concat(or,"-active-focused"),vr!==null),pe))},p.createElement(G,Object.assign({ref:this.listRef,prefixCls:or,style:jt,data:qe,disabled:Rn,selectable:tt,checkable:!!oi,motion:Zt,dragging:Kt,height:Re,itemHeight:Pe,virtual:rt,focusable:St,focused:ct,tabIndex:lt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ot},this.getTreeNodeRequiredProps(),$t))))}}],[{key:"getDerivedStateFromProps",value:function(pe,oe){var ct=oe.prevProps,qe={prevProps:pe};function me(nn){return!ct&&nn in pe||ct&&ct[nn]!==pe[nn]}var Kt;if(me("treeData")?Kt=pe.treeData:me("children")&&(Object(u.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Kt=Object(v.c)(pe.children)),Kt){qe.treeData=Kt;var vr=Object(v.a)(Kt);qe.keyEntities=Object(d.a)(Object(f.a)({},U,X),vr.keyEntities)}var bt=qe.keyEntities||oe.keyEntities;if(me("expandedKeys")||ct&&me("autoExpandParent"))qe.expandedKeys=pe.autoExpandParent||!ct&&pe.defaultExpandParent?Object(h.e)(pe.expandedKeys,bt):pe.expandedKeys;else if(!ct&&pe.defaultExpandAll){var or=Object(d.a)({},bt);delete or[U],qe.expandedKeys=Object.keys(or).map(function(nn){return or[nn].key})}else!ct&&pe.defaultExpandedKeys&&(qe.expandedKeys=pe.autoExpandParent||pe.defaultExpandParent?Object(h.e)(pe.defaultExpandedKeys,bt):pe.defaultExpandedKeys);if(qe.expandedKeys||delete qe.expandedKeys,Kt||qe.expandedKeys){var _t=Object(v.d)(Kt||oe.treeData,qe.expandedKeys||oe.expandedKeys);qe.flattenNodes=_t}if(pe.selectable&&(me("selectedKeys")?qe.selectedKeys=Object(h.d)(pe.selectedKeys,pe):!ct&&pe.defaultSelectedKeys&&(qe.selectedKeys=Object(h.d)(pe.defaultSelectedKeys,pe))),pe.checkable){var jt;if(me("checkedKeys")?jt=Object(h.j)(pe.checkedKeys)||{}:!ct&&pe.defaultCheckedKeys?jt=Object(h.j)(pe.defaultCheckedKeys)||{}:Kt&&(jt=Object(h.j)(pe.checkedKeys)||{checkedKeys:oe.checkedKeys,halfCheckedKeys:oe.halfCheckedKeys}),jt){var ut=jt,St=ut.checkedKeys,mt=St===void 0?[]:St,lt=ut.halfCheckedKeys,tt=lt===void 0?[]:lt;if(!pe.checkStrictly){var Cr=Object(te.a)(mt,!0,bt);mt=Cr.checkedKeys,tt=Cr.halfCheckedKeys}qe.checkedKeys=mt,qe.halfCheckedKeys=tt}}return me("loadedKeys")&&(qe.loadedKeys=pe.loadedKeys),qe}}]),Jt}(p.Component);q.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},q.TreeNode=T.a;var se=q,re=se,we=n("RIqP"),Oe=n.n(we),Me=n("J4zp"),Qe=n.n(Me),Ve=n("sEfC"),dt=n.n(Ve),Fe=n("vk+C"),ue=n.n(Fe),et=n("Vy0f"),he=n.n(et),J=n("kGiB"),Y=n.n(J),$=n("H84U"),de;(function(Qt){Qt[Qt.None=0]="None",Qt[Qt.Start=1]="Start",Qt[Qt.End=2]="End"})(de||(de={}));function be(Qt,Ht){function Jt(Ge){var pe=Ge.key,oe=Ge.children;Ht(pe,Ge)!==!1&&be(oe||[],Ht)}Qt.forEach(Jt)}function Te(Qt){var Ht=Qt.treeData,Jt=Qt.expandedKeys,Ge=Qt.startKey,pe=Qt.endKey,oe=[],ct=de.None;if(Ge&&Ge===pe)return[Ge];if(!Ge||!pe)return[];function qe(me){return me===Ge||me===pe}return be(Ht,function(me){if(ct===de.End)return!1;if(qe(me)){if(oe.push(me),ct===de.None)ct=de.Start;else if(ct===de.Start)return ct=de.End,!1}else ct===de.Start&&oe.push(me);return!(Jt.indexOf(me)===-1)}),oe}function Be(Qt,Ht){var Jt=Oe()(Ht),Ge=[];return be(Qt,function(pe,oe){var ct=Jt.indexOf(pe);return ct!==-1&&(Ge.push(oe),Jt.splice(ct,1)),!!Jt.length}),Ge}var fe=function(Qt,Ht){var Jt={};for(var Ge in Qt)Object.prototype.hasOwnProperty.call(Qt,Ge)&&Ht.indexOf(Ge)<0&&(Jt[Ge]=Qt[Ge]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ge=Object.getOwnPropertySymbols(Qt);pe<Ge.length;pe++)Ht.indexOf(Ge[pe])<0&&Object.prototype.propertyIsEnumerable.call(Qt,Ge[pe])&&(Jt[Ge[pe]]=Qt[Ge[pe]]);return Jt};function xe(Qt){var Ht=Qt.isLeaf,Jt=Qt.expanded;return Ht?p.createElement(ue.a,null):Jt?p.createElement(he.a,null):p.createElement(Y.a,null)}function ke(Qt){var Ht=Qt.treeData,Jt=Qt.children;return Ht||Object(v.c)(Jt)}var nt=function(Ht,Jt){var Ge=Ht.defaultExpandAll,pe=Ht.defaultExpandParent,oe=Ht.defaultExpandedKeys,ct=fe(Ht,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),qe=p.useRef(),me=p.useRef(),Kt=p.createRef();p.useImperativeHandle(Jt,function(){return Kt.current});var vr=function(){var Ot=Object(v.a)(ke(ct)),$t=Ot.keyEntities,Mr;return Ge?Mr=Object.keys($t):pe?Mr=Object(h.e)(ct.expandedKeys||oe,$t):Mr=ct.expandedKeys||oe,Mr},bt=p.useState(ct.selectedKeys||ct.defaultSelectedKeys||[]),or=Qe()(bt,2),_t=or[0],jt=or[1],ut=p.useState(vr()),St=Qe()(ut,2),mt=St[0],lt=St[1];p.useEffect(function(){"selectedKeys"in ct&&jt(ct.selectedKeys)},[ct.selectedKeys]),p.useEffect(function(){"expandedKeys"in ct&&lt(ct.expandedKeys)},[ct.expandedKeys]);var tt=function(Ot,$t){var Mr=$t.isLeaf;if(Mr||Ot.shiftKey||Ot.metaKey||Ot.ctrlKey)return;Kt.current.onNodeExpand(Ot,$t)},Cr=dt()(tt,200,{leading:!0}),nn=function(Ot,$t){return"expandedKeys"in ct||lt(Ot),ct.onExpand?ct.onExpand(Ot,$t):void 0},mn=function(Ot,$t){var Mr=ct.expandAction;Mr==="click"&&Cr(Ot,$t),ct.onClick&&ct.onClick(Ot,$t)},Bn=function(Ot,$t){var Mr=ct.expandAction;Mr==="doubleClick"&&Cr(Ot,$t),ct.onDoubleClick&&ct.onDoubleClick(Ot,$t)},oi=function(Ot,$t){var Mr=ct.multiple,Vr=$t.node,hn=$t.nativeEvent,Vt=Vr.key,yt=Vt===void 0?"":Vt,xt=ke(ct),dr=m()(m()({},$t),{selected:!0}),er=hn.ctrlKey||hn.metaKey,Ut=hn.shiftKey,ir;Mr&&er?(ir=Ot,qe.current=yt,me.current=ir,dr.selectedNodes=Be(xt,ir)):Mr&&Ut?(ir=Array.from(new Set([].concat(Oe()(me.current||[]),Oe()(Te({treeData:xt,expandedKeys:mt,startKey:yt,endKey:qe.current}))))),dr.selectedNodes=Be(xt,ir)):(ir=[yt],qe.current=yt,me.current=ir,dr.selectedNodes=Be(xt,ir)),ct.onSelect&&ct.onSelect(ir,dr),"selectedKeys"in ct||jt(ir)},wn=p.useContext($.b),Rn=wn.getPrefixCls,Zt=wn.direction,Tt=ct.prefixCls,De=ct.className,Re=fe(ct,["prefixCls","className"]),Pe=Rn("tree",Tt),rt=s()("".concat(Pe,"-directory"),De,g()({},"".concat(Pe,"-directory-rtl"),Zt==="rtl"));return p.createElement(Gt,m()({icon:xe,ref:Kt,blockNode:!0},Re,{prefixCls:Pe,className:rt,expandedKeys:mt,selectedKeys:_t,onSelect:oi,onClick:mn,onDoubleClick:Bn,onExpand:nn}))},Ct=p.forwardRef(nt);Ct.displayName="DirectoryTree",Ct.defaultProps={showIcon:!0,expandAction:"click"};var pt=Ct,He=n("EXcs"),nr=n("2jpz"),ht=p.forwardRef(function(Qt,Ht){var Jt,Ge=p.useContext($.b),pe=Ge.getPrefixCls,oe=Ge.direction,ct=Ge.virtual,qe=Qt.prefixCls,me=Qt.className,Kt=Qt.showIcon,vr=Qt.showLine,bt=Qt.switcherIcon,or=Qt.blockNode,_t=Qt.children,jt=Qt.checkable,ut=m()(m()({},Qt),{showLine:Boolean(vr)}),St=pe("tree",qe);return p.createElement(re,m()({itemHeight:20,ref:Ht,virtual:ct},ut,{prefixCls:St,className:s()(me,(Jt={},g()(Jt,"".concat(St,"-icon-hide"),!Kt),g()(Jt,"".concat(St,"-block-node"),or),g()(Jt,"".concat(St,"-rtl"),oe==="rtl"),Jt)),checkable:jt&&p.createElement("span",{className:"".concat(St,"-checkbox-inner")}),switcherIcon:function(lt){return Object(nr.a)(St,bt,vr,lt)}}),_t)});ht.TreeNode=T.a,ht.DirectoryTree=pt,ht.defaultProps={checkable:!1,showIcon:!1,motion:m()(m()({},He.a),{motionAppear:!1}),blockNode:!1};var Gt=ht,pr=D.a=Gt},MKOG:function(R,D,n){var y=n("bYtY"),g=n("YH21"),S=g.Dispatcher,m=n("mLcG"),p=n("Bq2U"),f=function(a){a=a||{},this.stage=a.stage||{},this.onframe=a.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,S.call(this)};f.prototype={constructor:f,addClip:function(a){this._clips.push(a)},addAnimator:function(a){a.animation=this;for(var i=a.getClips(),t=0;t<i.length;t++)this.addClip(i[t])},removeClip:function(a){var i=y.indexOf(this._clips,a);i>=0&&this._clips.splice(i,1)},removeAnimator:function(a){for(var i=a.getClips(),t=0;t<i.length;t++)this.removeClip(i[t]);a.animation=null},_update:function(){for(var a=new Date().getTime()-this._pausedTime,i=a-this._time,t=this._clips,o=t.length,e=[],u=[],r=0;r<o;r++){var s=t[r],c=s.step(a,i);c&&(e.push(c),u.push(s))}for(var r=0;r<o;)t[r]._needsRemove?(t[r]=t[o-1],t.pop(),o--):r++;o=e.length;for(var r=0;r<o;r++)u[r].fire(e[r]);this._time=a,this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update()},_startLoop:function(){var a=this;this._running=!0;function i(){a._running&&(m(i),!a._paused&&a._update())}m(i)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(a,i){i=i||{};var t=new p(a,i.loop,i.getter,i.setter);return this.addAnimator(t),t}},y.mixin(f,S);var d=f;R.exports=d},MMmD:function(R,D,n){var y=n("lSCD"),g=n("shjB");function S(m){return m!=null&&g(m.length)&&!y(m)}R.exports=S},MRoa:function(R,D,n){var y=n("ProS");n("0Bwj"),n("W2nI"),n("vcCh");var g=n("gawk"),S=n("Dg8C");y.registerLayout(g),y.registerVisual(S)},MT78:function(R,D,n){var y=n("ProS");(function(){for(var S in y){if(y==null||!y.hasOwnProperty(S)||S==="default"||S==="__esModule")return;D[S]=y[S]}})();var g=n("txkQ");(function(){for(var S in g){if(g==null||!g.hasOwnProperty(S)||S==="default"||S==="__esModule")return;D[S]=g[S]}})(),n("A1Ka"),n("75ce"),n("lLGD"),n("wDdD"),n("Fa/5"),n("jett"),n("Z1wy"),n("75ev"),n("2uGb"),n("I+77"),n("B+YJ"),n("pLH3"),n("CBdT"),n("MRoa"),n("+lIL"),n("CF2D"),n("ERHi"),n("p+If"),n("XOKv"),n("qt/9"),n("bBL8"),n("1xaR"),n("4Feb"),n("zRKj"),n("L3Oj"),n("0HBW"),n("LPzL"),n("8waO"),n("k5C7"),n("f1nB"),n("sRwP"),n("AH3D"),n("y4/Y"),n("LzGr"),n("Ynxi"),n("7pVf"),n("2w7y"),n("laiN"),n("fjKi"),n("C0tN"),n("0o9m"),n("Cm0C"),n("f3JH"),n("5NHt"),n("VFCP"),n("dBmv"),n("KamJ"),n("8XDt"),n("juDX")},MUZu:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("ZxNd")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="EditOutlined";var i=m.forwardRef(a);D.default=i},MXD1:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("Kvyg"),m=n.n(S)},MZdM:function(R,D,n){"use strict";function y(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(r){return typeof r}:y=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},y(e)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var g=l(n("Lo0S")),S=f(n("N/zr")),m=n("GdRQ"),p=n("GQ8N");function f(e){return e&&e.__esModule?e:{default:e}}function d(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return d=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(e===null||y(e)!=="object"&&typeof e!="function")return{default:e};var u=d();if(u&&u.has(e))return u.get(e);var r={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var h=s?Object.getOwnPropertyDescriptor(e,c):null;h&&(h.get||h.set)?Object.defineProperty(r,c,h):r[c]=e[c]}return r.default=e,u&&u.set(e,r),r}function a(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function i(e,u){for(var r=0;r<u.length;r++){var s=u[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function t(e,u,r){return u&&i(e.prototype,u),r&&i(e,r),e}var o=function(){function e(u){if(a(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,g.Debug(">> Display.constructor"),this._target=u,!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},g.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),g.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return t(e,[{key:"viewportChangePos",value:function(r,s){var c=this._viewportLoc;r=Math.floor(r),s=Math.floor(s),this._clipViewport||(r=-c.w,s=-c.h);var h=c.x+c.w-1,v=c.y+c.h-1;if(r<0&&c.x+r<0&&(r=-c.x),h+r>=this._fbWidth&&(r-=h+r-this._fbWidth+1),c.y+s<0&&(s=-c.y),v+s>=this._fbHeight&&(s-=v+s-this._fbHeight+1),r===0&&s===0)return;g.Debug("viewportChange deltaX: "+r+", deltaY: "+s),c.x+=r,c.y+=s,this._damage(c.x,c.y,c.w,c.h),this.flip()}},{key:"viewportChangeSize",value:function(r,s){(!this._clipViewport||typeof r=="undefined"||typeof s=="undefined")&&(g.Debug("Setting viewport to full display region"),r=this._fbWidth,s=this._fbHeight),r=Math.floor(r),s=Math.floor(s),r>this._fbWidth&&(r=this._fbWidth),s>this._fbHeight&&(s=this._fbHeight);var c=this._viewportLoc;if(c.w!==r||c.h!==s){c.w=r,c.h=s;var h=this._target;h.width=r,h.height=s,this.viewportChangePos(0,0),this._damage(c.x,c.y,c.w,c.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(r){return this._scale===0?0:(0,p.toSigned32bit)(r/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(r){return this._scale===0?0:(0,p.toSigned32bit)(r/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(r,s){this._prevDrawStyle="",this._fbWidth=r,this._fbHeight=s;var c=this._backbuffer;if(c.width!==r||c.height!==s){var h=null;c.width>0&&c.height>0&&(h=this._drawCtx.getImageData(0,0,c.width,c.height)),c.width!==r&&(c.width=r),c.height!==s&&(c.height=s),h&&this._drawCtx.putImageData(h,0,0)}var v=this._viewportLoc;this.viewportChangeSize(v.w,v.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(r,s,c,h){r<this._damageBounds.left&&(this._damageBounds.left=r),s<this._damageBounds.top&&(this._damageBounds.top=s),r+c>this._damageBounds.right&&(this._damageBounds.right=r+c),s+h>this._damageBounds.bottom&&(this._damageBounds.bottom=s+h)}},{key:"flip",value:function(r){if(this._renderQ.length!==0&&!r)this._renderQPush({type:"flip"});else{var s=this._damageBounds.left,c=this._damageBounds.top,h=this._damageBounds.right-s,v=this._damageBounds.bottom-c,A=s-this._viewportLoc.x,b=c-this._viewportLoc.y;A<0&&(h+=A,s-=A,A=0),b<0&&(v+=b,c-=b,b=0),A+h>this._viewportLoc.w&&(h=this._viewportLoc.w-A),b+v>this._viewportLoc.h&&(v=this._viewportLoc.h-b),h>0&&v>0&&this._targetCtx.drawImage(this._backbuffer,s,c,h,v,A,b,h,v),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(r,s,c,h,v,A){this._renderQ.length!==0&&!A?this._renderQPush({type:"fill",x:r,y:s,width:c,height:h,color:v}):(this._setFillColor(v),this._drawCtx.fillRect(r,s,c,h),this._damage(r,s,c,h))}},{key:"copyImage",value:function(r,s,c,h,v,A,b){this._renderQ.length!==0&&!b?this._renderQPush({type:"copy",oldX:r,oldY:s,x:c,y:h,width:v,height:A}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,r,s,v,A,c,h,v,A),this._damage(c,h,v,A))}},{key:"imageRect",value:function(r,s,c,h,v,A){if(c===0||h===0)return;var b=new Image;b.src="data: "+v+";base64,"+S.default.encode(A),this._renderQPush({type:"img",img:b,x:r,y:s,width:c,height:h})}},{key:"startTile",value:function(r,s,c,h,v){this._tileX=r,this._tileY=s,c===16&&h===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(c,h);for(var A=v[2],b=v[1],x=v[0],E=this._tile.data,T=0;T<c*h*4;T+=4)E[T]=A,E[T+1]=b,E[T+2]=x,E[T+3]=255}},{key:"subTile",value:function(r,s,c,h,v){for(var A=v[2],b=v[1],x=v[0],E=r+c,T=s+h,_=this._tile.data,C=this._tile.width,w=s;w<T;w++)for(var O=r;O<E;O++){var I=(O+w*C)*4;_[I]=A,_[I+1]=b,_[I+2]=x,_[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(r,s,c,h,v,A,b){if(this._renderQ.length!==0&&!b){var x=new Uint8Array(c*h*4);x.set(new Uint8Array(v.buffer,0,x.length)),this._renderQPush({type:"blit",data:x,x:r,y:s,width:c,height:h})}else this._bgrxImageData(r,s,c,h,v,A)}},{key:"blitRgbImage",value:function(r,s,c,h,v,A,b){if(this._renderQ.length!==0&&!b){var x=new Uint8Array(c*h*3);x.set(new Uint8Array(v.buffer,0,x.length)),this._renderQPush({type:"blitRgb",data:x,x:r,y:s,width:c,height:h})}else this._rgbImageData(r,s,c,h,v,A)}},{key:"blitRgbxImage",value:function(r,s,c,h,v,A,b){if(this._renderQ.length!==0&&!b){var x=new Uint8Array(c*h*4);x.set(new Uint8Array(v.buffer,0,x.length)),this._renderQPush({type:"blitRgbx",data:x,x:r,y:s,width:c,height:h})}else this._rgbxImageData(r,s,c,h,v,A)}},{key:"drawImage",value:function(r,s,c){this._drawCtx.drawImage(r,s,c),this._damage(s,c,r.width,r.height)}},{key:"autoscale",value:function(r,s){var c;if(r===0||s===0)c=0;else{var h=this._viewportLoc,v=r/s,A=h.w/h.h;A>=v?c=r/h.w:c=s/h.h}this._rescale(c)}},{key:"_rescale",value:function(r){this._scale=r;var s=this._viewportLoc,c=r*s.w+"px",h=r*s.h+"px";(this._target.style.width!==c||this._target.style.height!==h)&&(this._target.style.width=c,this._target.style.height=h)}},{key:"_setFillColor",value:function(r){var s="rgb("+r[2]+","+r[1]+","+r[0]+")";s!==this._prevDrawStyle&&(this._drawCtx.fillStyle=s,this._prevDrawStyle=s)}},{key:"_rgbImageData",value:function(r,s,c,h,v,A){for(var b=this._drawCtx.createImageData(c,h),x=b.data,E=0,T=A;E<c*h*4;E+=4,T+=3)x[E]=v[T],x[E+1]=v[T+1],x[E+2]=v[T+2],x[E+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_bgrxImageData",value:function(r,s,c,h,v,A){for(var b=this._drawCtx.createImageData(c,h),x=b.data,E=0,T=A;E<c*h*4;E+=4,T+=4)x[E]=v[T+2],x[E+1]=v[T+1],x[E+2]=v[T],x[E+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_rgbxImageData",value:function(r,s,c,h,v,A){var b;m.supportsImageMetadata?b=new ImageData(new Uint8ClampedArray(v.buffer,v.byteOffset,c*h*4),c,h):(b=this._drawCtx.createImageData(c,h),b.data.set(new Uint8ClampedArray(v.buffer,v.byteOffset,c*h*4))),this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_renderQPush",value:function(r){this._renderQ.push(r),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 r=!0;r&&this._renderQ.length>0;){var s=this._renderQ[0];switch(s.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(s.oldX,s.oldY,s.x,s.y,s.width,s.height,!0);break;case"fill":this.fillRect(s.x,s.y,s.width,s.height,s.color,!0);break;case"blit":this.blitImage(s.x,s.y,s.width,s.height,s.data,0,!0);break;case"blitRgb":this.blitRgbImage(s.x,s.y,s.width,s.height,s.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(s.x,s.y,s.width,s.height,s.data,0,!0);break;case"img":if(s.img.complete&&s.img.width!==0&&s.img.height!==0){if(s.img.width!==s.width||s.img.height!==s.height){g.Error("Decoded image has incorrect dimensions. Got "+s.img.width+"x"+s.img.height+". Expected "+s.width+"x"+s.height+".");return}this.drawImage(s.img,s.x,s.y)}else s.img._noVNCDisplay=this,s.img.addEventListener("load",this._resumeRenderQ),r=!1;break}r&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(r){this._rescale(r)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(r){this._clipViewport=r;var s=this._viewportLoc;this.viewportChangeSize(s.w,s.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),e}();D.default=o},Mdki:function(R,D,n){var y=n("bYtY"),g=y.each,S="\0__link_datas",m="\0__link_mainData";function p(u){var r=u.mainData,s=u.datas;s||(s={main:r},u.datasAttr={main:"data"}),u.datas=u.mainData=null,t(r,s,u),g(s,function(c){g(r.TRANSFERABLE_METHODS,function(h){c.wrapMethod(h,y.curry(f,u))})}),r.wrapMethod("cloneShallow",y.curry(l,u)),g(r.CHANGABLE_METHODS,function(c){r.wrapMethod(c,y.curry(d,u))}),y.assert(s[r.dataType]===r)}function f(u,r){if(i(this)){var s=y.extend({},this[S]);s[this.dataType]=r,t(r,s,u)}else o(r,this.dataType,this[m],u);return r}function d(u,r){return u.struct&&u.struct.update(this),r}function l(u,r){return g(r[S],function(s,c){s!==r&&o(s.cloneShallow(),c,r,u)}),r}function a(u){var r=this[m];return u==null||r==null?r:r[S][u]}function i(u){return u[m]===u}function t(u,r,s){u[S]={},g(r,function(c,h){o(c,h,u,s)})}function o(u,r,s,c){s[S][r]=u,u[m]=s,u.dataType=r,c.struct&&(u[c.structAttr]=c.struct,c.struct[c.datasAttr[r]]=u),u.getLinkedData=a}var e=p;R.exports=e},Mds0:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("8IMR")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="StarFilled";var i=m.forwardRef(a);D.default=i},Mgri:function(R,D,n){for(var y=n("bYtY"),g=n("8nly"),S=[126,25],m=[[[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]]],p=0;p<m.length;p++)for(var f=0;f<m[p].length;f++)m[p][f][0]/=10.5,m[p][f][1]/=-10.5/.75,m[p][f][0]+=S[0],m[p][f][1]+=S[1];function d(l,a){l==="china"&&a.push(new g("\u5357\u6D77\u8BF8\u5C9B",y.map(m,function(i){return{type:"polygon",exterior:i}}),S))}R.exports=d},MlIO:function(R,D,n){(function(y,g){R.exports=D=g(n("Ib8C"))})(this,function(y){return function(g){var S=y,m=S.lib,p=m.Base,f=m.WordArray,d=S.x64={},l=d.Word=p.extend({init:function(t,o){this.high=t,this.low=o}}),a=d.WordArray=p.extend({init:function(t,o){t=this.words=t||[],o!=g?this.sigBytes=o:this.sigBytes=t.length*8},toX32:function(){for(var t=this.words,o=t.length,e=[],u=0;u<o;u++){var r=t[u];e.push(r.high),e.push(r.low)}return f.create(e,this.sigBytes)},clone:function(){for(var t=p.clone.call(this),o=t.words=this.words.slice(0),e=o.length,u=0;u<e;u++)o[u]=o[u].clone();return t}})}(),y})},Mmt2:function(R,D,n){"use strict";function y(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(e){return typeof e}:y=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(t)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var g=m(n("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return S=function(){return t},t}function m(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var o=S();if(o&&o.has(t))return o.get(t);var e={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var s=u?Object.getOwnPropertyDescriptor(t,r):null;s&&(s.get||s.set)?Object.defineProperty(e,r,s):e[r]=t[r]}return e.default=t,o&&o.set(t,e),e}function p(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function f(t,o){for(var e=0;e<o.length;e++){var u=o[e];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function d(t,o,e){return o&&f(t.prototype,o),e&&f(t,e),t}var l=!1,a=40*1024*1024,i=function(){function t(){p(this,t),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 d(t,[{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 u=0,r=e-1;r>=0;r--)u+=this._rQ[this._rQi++]<<r*8;return u}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var u="",r=0;r<e;r+=4096){var s=this.rQshiftBytes(Math.min(4096,e-r));u+=String.fromCharCode.apply(null,s)}return u}},{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,u){u===void 0&&(u=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,u)),this._rQi+=u}},{key:"rQslice",value:function(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+e,u-e)}},{key:"rQwait",value:function(e,u,r){if(this.rQlen<u){if(r){if(this._rQi<r)throw new Error("rQwait cannot backup "+r+" bytes");this._rQi-=r}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(u){return u.charCodeAt(0)}))}},{key:"off",value:function(e){this._eventHandlers[e]=function(){}}},{key:"on",value:function(e,u){this._eventHandlers[e]=u}},{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,u){var r=this;this.init(),this._websocket=new WebSocket(e,u),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){g.Debug(">> WebSock.onopen"),r._websocket.protocol&&g.Info("Server choose sub-protocol: "+r._websocket.protocol),r._eventHandlers.open(),g.Debug("<< WebSock.onopen")},this._websocket.onclose=function(s){g.Debug(">> WebSock.onclose"),r._eventHandlers.close(s),g.Debug("<< WebSock.onclose")},this._websocket.onerror=function(s){g.Debug(">> WebSock.onerror: "+s),r._eventHandlers.error(s),g.Debug("<< WebSock.onerror: "+s)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(g.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 u=(this._rQlen-this._rQi+e)*8,r=this._rQbufferSize<u;if(r&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,u)),this._rQbufferSize>a&&(this._rQbufferSize=a,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+a+" bytes, and the new message could not fit");if(r){var s=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(s,this._rQi,this._rQlen-this._rQi))}else l?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 u=new Uint8Array(e);u.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(u.length),this._rQ.set(u,this._rQlen),this._rQlen+=u.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)):g.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}}]),t}();D.default=i},MqEG:function(R,D,n){var y=n("bYtY"),g=n("fc+c"),S=n("72pK"),m=n("VXYp"),p=y.bind,f=g.extend({type:"dataZoom.inside",init:function(t,o){this._range},render:function(t,o,e,u){f.superApply(this,"render",arguments),this._range=t.getPercentRange(),y.each(this.getTargetCoordInfo(),function(r,s){var c=y.map(r,function(h){return m.generateCoordId(h.model)});y.each(r,function(h){var v=h.model,A={};y.each(["pan","zoom","scrollMove"],function(b){A[b]=p(d[b],this,h,s)},this),m.register(e,{coordId:m.generateCoordId(v),allCoordIds:c,containsPoint:function(b,x,E){return v.coordinateSystem.containPoint([x,E])},dataZoomId:t.id,dataZoomModel:t,getRange:A})},this)},this)},dispose:function(){m.unregister(this.api,this.dataZoomModel.id),f.superApply(this,"dispose",arguments),this._range=null}}),d={zoom:function(t,o,e,u){var r=this._range,s=r.slice(),c=t.axisModels[0];if(!c)return;var h=a[o](null,[u.originX,u.originY],c,e,t),v=(h.signal>0?h.pixelStart+h.pixelLength-h.pixel:h.pixel-h.pixelStart)/h.pixelLength*(s[1]-s[0])+s[0],A=Math.max(1/u.scale,0);s[0]=(s[0]-v)*A+v,s[1]=(s[1]-v)*A+v;var b=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(S(0,s,[0,100],0,b.minSpan,b.maxSpan),this._range=s,r[0]!==s[0]||r[1]!==s[1])return s},pan:l(function(t,o,e,u,r,s){var c=a[u]([s.oldX,s.oldY],[s.newX,s.newY],o,r,e);return c.signal*(t[1]-t[0])*c.pixel/c.pixelLength}),scrollMove:l(function(t,o,e,u,r,s){var c=a[u]([0,0],[s.scrollDelta,s.scrollDelta],o,r,e);return c.signal*(t[1]-t[0])*s.scrollDelta})};function l(t){return function(o,e,u,r){var s=this._range,c=s.slice(),h=o.axisModels[0];if(!h)return;var v=t(c,h,o,e,u,r);if(S(v,c,[0,100],"all"),this._range=c,s[0]!==c[0]||s[1]!==c[1])return c}}var a={grid:function(t,o,e,u,r){var s=e.axis,c={},h=r.model.coordinateSystem.getRect();return t=t||[0,0],s.dim==="x"?(c.pixel=o[0]-t[0],c.pixelLength=h.width,c.pixelStart=h.x,c.signal=s.inverse?1:-1):(c.pixel=o[1]-t[1],c.pixelLength=h.height,c.pixelStart=h.y,c.signal=s.inverse?-1:1),c},polar:function(t,o,e,u,r){var s=e.axis,c={},h=r.model.coordinateSystem,v=h.getRadiusAxis().getExtent(),A=h.getAngleAxis().getExtent();return t=t?h.pointToCoord(t):[0,0],o=h.pointToCoord(o),e.mainType==="radiusAxis"?(c.pixel=o[0]-t[0],c.pixelLength=v[1]-v[0],c.pixelStart=v[0],c.signal=s.inverse?1:-1):(c.pixel=o[1]-t[1],c.pixelLength=A[1]-A[0],c.pixelStart=A[0],c.signal=s.inverse?-1:1),c},singleAxis:function(t,o,e,u,r){var s=e.axis,c=r.model.coordinateSystem.getRect(),h={};return t=t||[0,0],s.orient==="horizontal"?(h.pixel=o[0]-t[0],h.pixelLength=c.width,h.pixelStart=c.x,h.signal=s.inverse?1:-1):(h.pixel=o[1]-t[1],h.pixelLength=c.height,h.pixelStart=c.y,h.signal=s.inverse?-1:1),h}},i=f;R.exports=i},MvSz:function(R,D,n){var y=n("LXxW"),g=n("0ycA"),S=Object.prototype,m=S.propertyIsEnumerable,p=Object.getOwnPropertySymbols,f=p?function(d){return d==null?[]:(d=Object(d),y(p(d),function(l){return m.call(d,l)}))}:g;R.exports=f},MwEJ:function(R,D,n){var y=n("bYtY"),g=n("YXkt"),S=n("sdST"),m=n("k9D9"),p=m.SOURCE_FORMAT_ORIGINAL,f=n("L0Ub"),d=f.getDimensionTypeByAxis,l=n("4NO4"),a=l.getDataItemValue,i=n("IDmD"),t=n("i38C"),o=t.getCoordSysInfoBySeries,e=n("7G+c"),u=n("7hqr"),r=u.enableDataStack,s=n("D5nY"),c=s.makeSeriesEncodeForAxisCoordSys;function h(x,E,T){T=T||{},e.isInstance(x)||(x=e.seriesDataToSource(x));var _=E.get("coordinateSystem"),C=i.get(_),w=o(E),O;w&&(O=y.map(w.coordSysDims,function(F){var j={name:F},K=w.axisMap.get(F);if(K){var z=K.get("type");j.type=d(z)}return j})),O||(O=C&&(C.getDimensionsInfo?C.getDimensionsInfo():C.dimensions.slice())||["x","y"]);var I=S(x,{coordDimensions:O,generateCoord:T.generateCoord,encodeDefaulter:T.useEncodeDefaulter?y.curry(c,O,E):null}),k,M;w&&y.each(I,function(F,j){var K=F.coordDim,z=w.categoryAxisMap.get(K);z&&(k==null&&(k=j),F.ordinalMeta=z.getOrdinalMeta()),F.otherDims.itemName!=null&&(M=!0)}),!M&&k!=null&&(I[k].otherDims.itemName=0);var U=r(E,I),P=new g(I,E);P.setCalculationInfo(U);var X=k!=null&&v(x)?function(F,j,K,z){return z===k?K:this.defaultDimValueGetter(F,j,K,z)}:null;return P.hasItemOption=!1,P.initData(x,null,X),P}function v(x){if(x.sourceFormat===p){var E=A(x.data||[]);return E!=null&&!y.isArray(a(E))}}function A(x){for(var E=0;E<x.length&&x[E]==null;)E++;return x[E]}var b=h;R.exports=b},Mylv:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("IwbS"),m=n("oVpE"),p=m.createSymbol,f=n("OELB"),d=f.parsePercent,l=f.isNumeric,a=n("56rv"),i=a.setLabel,t=["itemStyle","borderWidth"],o=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],e=new S.Circle,u=y.extendChartView({type:"pictorialBar",render:function(V,Q,G){var te=this.group,q=V.getData(),se=this._data,re=V.coordinateSystem,we=re.getBaseAxis(),Oe=!!we.isHorizontal(),Me=re.grid.getRect(),Qe={ecSize:{width:G.getWidth(),height:G.getHeight()},seriesModel:V,coordSys:re,coordSysExtent:[[Me.x,Me.x+Me.width],[Me.y,Me.y+Me.height]],isHorizontal:Oe,valueDim:o[+Oe],categoryDim:o[1-Oe]};return q.diff(se).add(function(Ve){if(!q.hasValue(Ve))return;var dt=C(q,Ve),Fe=r(q,Ve,dt,Qe),ue=k(q,Qe,Fe);q.setItemGraphicEl(Ve,ue),te.add(ue),j(ue,Qe,Fe)}).update(function(Ve,dt){var Fe=se.getItemGraphicEl(dt);if(!q.hasValue(Ve)){te.remove(Fe);return}var ue=C(q,Ve),et=r(q,Ve,ue,Qe),he=P(q,et);Fe&&he!==Fe.__pictorialShapeStr&&(te.remove(Fe),q.setItemGraphicEl(Ve,null),Fe=null),Fe?M(Fe,Qe,et):Fe=k(q,Qe,et,!0),q.setItemGraphicEl(Ve,Fe),Fe.__pictorialSymbolMeta=et,te.add(Fe),j(Fe,Qe,et)}).remove(function(Ve){var dt=se.getItemGraphicEl(Ve);dt&&U(se,Ve,dt.__pictorialSymbolMeta.animationModel,dt)}).execute(),this._data=q,this.group},dispose:g.noop,remove:function(V,Q){var G=this.group,te=this._data;V.get("animation")?te&&te.eachItemGraphicEl(function(q){U(te,q.dataIndex,V,q)}):G.removeAll()}});function r(V,Q,G,te){var q=V.getItemLayout(Q),se=G.get("symbolRepeat"),re=G.get("symbolClip"),we=G.get("symbolPosition")||"start",Oe=G.get("symbolRotate"),Me=(Oe||0)*Math.PI/180||0,Qe=G.get("symbolPatternSize")||2,Ve=G.isAnimationEnabled(),dt={dataIndex:Q,layout:q,itemModel:G,symbolType:V.getItemVisual(Q,"symbol")||"circle",color:V.getItemVisual(Q,"color"),symbolClip:re,symbolRepeat:se,symbolRepeatDirection:G.get("symbolRepeatDirection"),symbolPatternSize:Qe,rotation:Me,animationModel:Ve?G:null,hoverAnimation:Ve&&G.get("hoverAnimation"),z2:G.getShallow("z",!0)||0};s(G,se,q,te,dt),h(V,Q,q,se,re,dt.boundingLength,dt.pxSign,Qe,te,dt),v(G,dt.symbolScale,Me,te,dt);var Fe=dt.symbolSize,ue=G.get("symbolOffset");return g.isArray(ue)&&(ue=[d(ue[0],Fe[0]),d(ue[1],Fe[1])]),A(G,Fe,q,se,re,ue,we,dt.valueLineWidth,dt.boundingLength,dt.repeatCutLength,te,dt),dt}function s(V,Q,G,te,q){var se=te.valueDim,re=V.get("symbolBoundingData"),we=te.coordSys.getOtherAxis(te.coordSys.getBaseAxis()),Oe=we.toGlobalCoord(we.dataToCoord(0)),Me=1-+(G[se.wh]<=0),Qe;if(g.isArray(re)){var Ve=[c(we,re[0])-Oe,c(we,re[1])-Oe];Ve[1]<Ve[0]&&Ve.reverse(),Qe=Ve[Me]}else re!=null?Qe=c(we,re)-Oe:Q?Qe=te.coordSysExtent[se.index][Me]-Oe:Qe=G[se.wh];q.boundingLength=Qe,Q&&(q.repeatCutLength=G[se.wh]),q.pxSign=Qe>0?1:Qe<0?-1:0}function c(V,Q){return V.toGlobalCoord(V.dataToCoord(V.scale.parse(Q)))}function h(V,Q,G,te,q,se,re,we,Oe,Me){var Qe=Oe.valueDim,Ve=Oe.categoryDim,dt=Math.abs(G[Ve.wh]),Fe=V.getItemVisual(Q,"symbolSize");g.isArray(Fe)?Fe=Fe.slice():(Fe==null&&(Fe="100%"),Fe=[Fe,Fe]),Fe[Ve.index]=d(Fe[Ve.index],dt),Fe[Qe.index]=d(Fe[Qe.index],te?dt:Math.abs(se)),Me.symbolSize=Fe;var ue=Me.symbolScale=[Fe[0]/we,Fe[1]/we];ue[Qe.index]*=(Oe.isHorizontal?-1:1)*re}function v(V,Q,G,te,q){var se=V.get(t)||0;se&&(e.attr({scale:Q.slice(),rotation:G}),e.updateTransform(),se/=e.getLineScale(),se*=Q[te.valueDim.index]),q.valueLineWidth=se}function A(V,Q,G,te,q,se,re,we,Oe,Me,Qe,Ve){var dt=Qe.categoryDim,Fe=Qe.valueDim,ue=Ve.pxSign,et=Math.max(Q[Fe.index]+we,0),he=et;if(te){var J=Math.abs(Oe),Y=g.retrieve(V.get("symbolMargin"),"15%")+"",$=!1;Y.lastIndexOf("!")===Y.length-1&&($=!0,Y=Y.slice(0,Y.length-1)),Y=d(Y,Q[Fe.index]);var de=Math.max(et+Y*2,0),be=$?0:Y*2,Te=l(te),Be=Te?te:K((J+be)/de),fe=J-Be*et;Y=fe/2/($?Be:Be-1),de=et+Y*2,be=$?0:Y*2,!Te&&te!=="fixed"&&(Be=Me?K((Math.abs(Me)+be)/de):0),he=Be*de-be,Ve.repeatTimes=Be,Ve.symbolMargin=Y}var xe=ue*(he/2),ke=Ve.pathPosition=[];ke[dt.index]=G[dt.wh]/2,ke[Fe.index]=re==="start"?xe:re==="end"?Oe-xe:Oe/2,se&&(ke[0]+=se[0],ke[1]+=se[1]);var nt=Ve.bundlePosition=[];nt[dt.index]=G[dt.xy],nt[Fe.index]=G[Fe.xy];var Ct=Ve.barRectShape=g.extend({},G);Ct[Fe.wh]=ue*Math.max(Math.abs(G[Fe.wh]),Math.abs(ke[Fe.index]+xe)),Ct[dt.wh]=G[dt.wh];var pt=Ve.clipShape={};pt[dt.xy]=-G[dt.xy],pt[dt.wh]=Qe.ecSize[dt.wh],pt[Fe.xy]=0,pt[Fe.wh]=G[Fe.wh]}function b(V){var Q=V.symbolPatternSize,G=p(V.symbolType,-Q/2,-Q/2,Q,Q,V.color);return G.attr({culling:!0}),G.type!=="image"&&G.setStyle({strokeNoScale:!0}),G}function x(V,Q,G,te){var q=V.__pictorialBundle,se=G.symbolSize,re=G.valueLineWidth,we=G.pathPosition,Oe=Q.valueDim,Me=G.repeatTimes||0,Qe=0,Ve=se[Q.valueDim.index]+re+G.symbolMargin*2;for(X(V,function(J){J.__pictorialAnimationIndex=Qe,J.__pictorialRepeatTimes=Me,Qe<Me?F(J,null,ue(Qe),G,te):F(J,null,{scale:[0,0]},G,te,function(){q.remove(J)}),I(J,G),Qe++});Qe<Me;Qe++){var dt=b(G);dt.__pictorialAnimationIndex=Qe,dt.__pictorialRepeatTimes=Me,q.add(dt);var Fe=ue(Qe);F(dt,{position:Fe.position,scale:[0,0]},{scale:Fe.scale,rotation:Fe.rotation},G,te),dt.on("mouseover",et).on("mouseout",he),I(dt,G)}function ue(J){var Y=we.slice(),$=G.pxSign,de=J;return(G.symbolRepeatDirection==="start"?$>0:$<0)&&(de=Me-1-J),Y[Oe.index]=Ve*(de-Me/2+.5)+we[Oe.index],{position:Y,scale:G.symbolScale.slice(),rotation:G.rotation}}function et(){X(V,function(J){J.trigger("emphasis")})}function he(){X(V,function(J){J.trigger("normal")})}}function E(V,Q,G,te){var q=V.__pictorialBundle,se=V.__pictorialMainPath;se?F(se,null,{position:G.pathPosition.slice(),scale:G.symbolScale.slice(),rotation:G.rotation},G,te):(se=V.__pictorialMainPath=b(G),q.add(se),F(se,{position:G.pathPosition.slice(),scale:[0,0],rotation:G.rotation},{scale:G.symbolScale.slice()},G,te),se.on("mouseover",re).on("mouseout",we)),I(se,G);function re(){this.trigger("emphasis")}function we(){this.trigger("normal")}}function T(V,Q,G){var te=g.extend({},Q.barRectShape),q=V.__pictorialBarRect;q?F(q,null,{shape:te},Q,G):(q=V.__pictorialBarRect=new S.Rect({z2:2,shape:te,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),V.add(q))}function _(V,Q,G,te){if(G.symbolClip){var q=V.__pictorialClipPath,se=g.extend({},G.clipShape),re=Q.valueDim,we=G.animationModel,Oe=G.dataIndex;if(q)S.updateProps(q,{shape:se},we,Oe);else{se[re.wh]=0,q=new S.Rect({shape:se}),V.__pictorialBundle.setClipPath(q),V.__pictorialClipPath=q;var Me={};Me[re.wh]=G.clipShape[re.wh],S[te?"updateProps":"initProps"](q,{shape:Me},we,Oe)}}}function C(V,Q){var G=V.getItemModel(Q);return G.getAnimationDelayParams=w,G.isAnimationEnabled=O,G}function w(V){return{index:V.__pictorialAnimationIndex,count:V.__pictorialRepeatTimes}}function O(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(V,Q){V.off("emphasis").off("normal");var G=Q.symbolScale.slice();Q.hoverAnimation&&V.on("emphasis",function(){this.animateTo({scale:[G[0]*1.1,G[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:G.slice()},400,"elasticOut")})}function k(V,Q,G,te){var q=new S.Group,se=new S.Group;return q.add(se),q.__pictorialBundle=se,se.attr("position",G.bundlePosition.slice()),G.symbolRepeat?x(q,Q,G):E(q,Q,G),T(q,G,te),_(q,Q,G,te),q.__pictorialShapeStr=P(V,G),q.__pictorialSymbolMeta=G,q}function M(V,Q,G){var te=G.animationModel,q=G.dataIndex,se=V.__pictorialBundle;S.updateProps(se,{position:G.bundlePosition.slice()},te,q),G.symbolRepeat?x(V,Q,G,!0):E(V,Q,G,!0),T(V,G,!0),_(V,Q,G,!0)}function U(V,Q,G,te){var q=te.__pictorialBarRect;q&&(q.style.text=null);var se=[];X(te,function(re){se.push(re)}),te.__pictorialMainPath&&se.push(te.__pictorialMainPath),te.__pictorialClipPath&&(G=null),g.each(se,function(re){S.updateProps(re,{scale:[0,0]},G,Q,function(){te.parent&&te.parent.remove(te)})}),V.setItemGraphicEl(Q,null)}function P(V,Q){return[V.getItemVisual(Q.dataIndex,"symbol")||"none",!!Q.symbolRepeat,!!Q.symbolClip].join(":")}function X(V,Q,G){g.each(V.__pictorialBundle.children(),function(te){te!==V.__pictorialBarRect&&Q.call(G,te)})}function F(V,Q,G,te,q,se){Q&&V.attr(Q),te.symbolClip&&!q?G&&V.attr(G):G&&S[q?"updateProps":"initProps"](V,G,te.animationModel,te.dataIndex,se)}function j(V,Q,G){var te=G.color,q=G.dataIndex,se=G.itemModel,re=se.getModel("itemStyle").getItemStyle(["color"]),we=se.getModel("emphasis.itemStyle").getItemStyle(),Oe=se.getShallow("cursor");X(V,function(dt){dt.setColor(te),dt.setStyle(g.defaults({fill:te,opacity:G.opacity},re)),S.setHoverStyle(dt,we),Oe&&(dt.cursor=Oe),dt.z2=G.z2});var Me={},Qe=Q.valueDim.posDesc[+(G.boundingLength>0)],Ve=V.__pictorialBarRect;i(Ve.style,Me,se,te,Q.seriesModel,q,Qe),S.setHoverStyle(Ve,Me)}function K(V){var Q=Math.round(V);return Math.abs(V-Q)<1e-4?Q:Math.ceil(V)}var z=u;R.exports=z},"N/zr":function(R,D,n){"use strict";function y(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(l){return typeof l}:y=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},y(f)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var g=m(n("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return S=function(){return f},f}function m(f){if(f&&f.__esModule)return f;if(f===null||y(f)!=="object"&&typeof f!="function")return{default:f};var d=S();if(d&&d.has(f))return d.get(f);var l={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in f)if(Object.prototype.hasOwnProperty.call(f,i)){var t=a?Object.getOwnPropertyDescriptor(f,i):null;t&&(t.get||t.set)?Object.defineProperty(l,i,t):l[i]=f[i]}return l.default=f,d&&d.set(f,l),l}var p={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(d){"use strict";for(var l="",a=d.length,i=a%3,t=0;t<a-2;t+=3)l+=this.toBase64Table[d[t]>>2],l+=this.toBase64Table[((d[t]&3)<<4)+(d[t+1]>>4)],l+=this.toBase64Table[((d[t+1]&15)<<2)+(d[t+2]>>6)],l+=this.toBase64Table[d[t+2]&63];var o=a-i;return i===2?(l+=this.toBase64Table[d[o]>>2],l+=this.toBase64Table[((d[o]&3)<<4)+(d[o+1]>>4)],l+=this.toBase64Table[(d[o+1]&15)<<2],l+=this.toBase64Table[64]):i===1&&(l+=this.toBase64Table[d[o]>>2],l+=this.toBase64Table[(d[o]&3)<<4],l+=this.toBase64Table[64],l+=this.toBase64Table[64]),l},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(d){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=d.indexOf("=")-l;a<0&&(a=d.length-l);for(var i=(a>>2)*3+Math.floor(a%4/1.5),t=new Array(i),o=0,e=0,u=0,r=l;r<d.length;r++){var s=this.toBinaryTable[d.charCodeAt(r)&127],c=d.charAt(r)===this.base64Pad;if(s===-1){g.Error("Illegal character code "+d.charCodeAt(r)+" at position "+r);continue}e=e<<6|s,o+=6,o>=8&&(o-=8,c||(t[u++]=e>>o&255),e&=(1<<o)-1)}if(o){var h=new Error("Corrupted base64 string");throw h.name="Base64-Error",h}return t}};D.default=p},N5BQ:function(R,D,n){var y=n("OlYY"),g=y.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"}}}),S=g;R.exports=S},NA0q:function(R,D,n){var y=n("bYtY"),g=n("6Ic6"),S=n("TkdX"),m=n("gPAo"),p=n("7aKB"),f=p.windowOpen,d="sunburstRootToNode",l=g.extend({type:"sunburst",init:function(){},render:function(i,t,o,e){var u=this;this.seriesModel=i,this.api=o,this.ecModel=t;var r=i.getData(),s=r.tree.root,c=i.getViewRoot(),h=this.group,v=i.get("renderLabelForZeroData"),A=[];c.eachNode(function(O){A.push(O)});var b=this._oldChildren||[];if(T(A,b),w(s,c),e&&e.highlight&&e.highlight.piece){var x=i.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(x)}else if(e&&e.unhighlight){var E=this.virtualPiece;!E&&s.children.length&&(E=s.children[0].piece),E&&E.onNormal()}this._initEvents(),this._oldChildren=A;function T(O,I){if(O.length===0&&I.length===0)return;new m(I,O,k,k).add(M).update(M).remove(y.curry(M,null)).execute();function k(U){return U.getId()}function M(U,P){var X=U==null?null:O[U],F=P==null?null:I[P];_(X,F)}}function _(O,I){if(!v&&O&&!O.getValue()&&(O=null),O!==s&&I!==s){if(I&&I.piece)O?(I.piece.updateData(!1,O,"normal",i,t),r.setItemGraphicEl(O.dataIndex,I.piece)):C(I);else if(O){var k=new S(O,i,t);h.add(k),r.setItemGraphicEl(O.dataIndex,k)}}}function C(O){if(!O)return;O.piece&&(h.remove(O.piece),O.piece=null)}function w(O,I){if(I.depth>0){u.virtualPiece?u.virtualPiece.updateData(!1,O,"normal",i,t):(u.virtualPiece=new S(O,i,t),h.add(u.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var k=function(M){u._rootToNode(I.parentNode)};I.piece._onclickEvent=k,u.virtualPiece.on("click",k)}else u.virtualPiece&&(h.remove(u.virtualPiece),u.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var i=this,t=function(o){var e=!1,u=i.seriesModel.getViewRoot();u.eachNode(function(r){if(!e&&r.piece&&r.piece.childAt(0)===o.target){var s=r.getModel().get("nodeClick");if(s==="rootToNode")i._rootToNode(r);else if(s==="link"){var c=r.getModel(),h=c.get("link");if(h){var v=c.get("target",!0)||"_blank";f(h,v)}}e=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(i){i!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:d,from:this.uid,seriesId:this.seriesModel.id,targetNode:i})},containPoint:function(i,t){var o=t.getData(),e=o.getItemLayout(0);if(e){var u=i[0]-e.cx,r=i[1]-e.cy,s=Math.sqrt(u*u+r*r);return s<=e.r&&s>=e.r0}}}),a=l;R.exports=a},NAnI:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("wXyp"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},NBmB:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.encodingName=g,D.encodings=void 0;var y={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};D.encodings=y;function g(S){switch(S){case y.encodingRaw:return"Raw";case y.encodingCopyRect:return"CopyRect";case y.encodingRRE:return"RRE";case y.encodingHextile:return"Hextile";case y.encodingTight:return"Tight";case y.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+S+"]"}}},NC18:function(R,D,n){var y=n("y+Vt"),g=n("IMiH"),S=n("7oTu"),m=Math.sqrt,p=Math.sin,f=Math.cos,d=Math.PI,l=function(A){return Math.sqrt(A[0]*A[0]+A[1]*A[1])},a=function(A,b){return(A[0]*b[0]+A[1]*b[1])/(l(A)*l(b))},i=function(A,b){return(A[0]*b[1]<A[1]*b[0]?-1:1)*Math.acos(a(A,b))};function t(v,A,b,x,E,T,_,C,w,O,I){var k=w*(d/180),M=f(k)*(v-b)/2+p(k)*(A-x)/2,U=-1*p(k)*(v-b)/2+f(k)*(A-x)/2,P=M*M/(_*_)+U*U/(C*C);P>1&&(_*=m(P),C*=m(P));var X=(E===T?-1:1)*m((_*_*(C*C)-_*_*(U*U)-C*C*(M*M))/(_*_*(U*U)+C*C*(M*M)))||0,F=X*_*U/C,j=X*-C*M/_,K=(v+b)/2+f(k)*F-p(k)*j,z=(A+x)/2+p(k)*F+f(k)*j,V=i([1,0],[(M-F)/_,(U-j)/C]),Q=[(M-F)/_,(U-j)/C],G=[(-1*M-F)/_,(-1*U-j)/C],te=i(Q,G);a(Q,G)<=-1&&(te=d),a(Q,G)>=1&&(te=0),T===0&&te>0&&(te=te-2*d),T===1&&te<0&&(te=te+2*d),I.addData(O,K,z,_,C,V,te,k,T)}var o=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u(v){if(!v)return new g;for(var A=0,b=0,x=A,E=b,T,_=new g,C=g.CMD,w=v.match(o),O=0;O<w.length;O++){for(var I=w[O],k=I.charAt(0),M,U=I.match(e)||[],P=U.length,X=0;X<P;X++)U[X]=parseFloat(U[X]);for(var F=0;F<P;){var j,K,z,V,Q,G,te,q=A,se=b;switch(k){case"l":A+=U[F++],b+=U[F++],M=C.L,_.addData(M,A,b);break;case"L":A=U[F++],b=U[F++],M=C.L,_.addData(M,A,b);break;case"m":A+=U[F++],b+=U[F++],M=C.M,_.addData(M,A,b),x=A,E=b,k="l";break;case"M":A=U[F++],b=U[F++],M=C.M,_.addData(M,A,b),x=A,E=b,k="L";break;case"h":A+=U[F++],M=C.L,_.addData(M,A,b);break;case"H":A=U[F++],M=C.L,_.addData(M,A,b);break;case"v":b+=U[F++],M=C.L,_.addData(M,A,b);break;case"V":b=U[F++],M=C.L,_.addData(M,A,b);break;case"C":M=C.C,_.addData(M,U[F++],U[F++],U[F++],U[F++],U[F++],U[F++]),A=U[F-2],b=U[F-1];break;case"c":M=C.C,_.addData(M,U[F++]+A,U[F++]+b,U[F++]+A,U[F++]+b,U[F++]+A,U[F++]+b),A+=U[F-2],b+=U[F-1];break;case"S":j=A,K=b;var re=_.len(),we=_.data;T===C.C&&(j+=A-we[re-4],K+=b-we[re-3]),M=C.C,q=U[F++],se=U[F++],A=U[F++],b=U[F++],_.addData(M,j,K,q,se,A,b);break;case"s":j=A,K=b;var re=_.len(),we=_.data;T===C.C&&(j+=A-we[re-4],K+=b-we[re-3]),M=C.C,q=A+U[F++],se=b+U[F++],A+=U[F++],b+=U[F++],_.addData(M,j,K,q,se,A,b);break;case"Q":q=U[F++],se=U[F++],A=U[F++],b=U[F++],M=C.Q,_.addData(M,q,se,A,b);break;case"q":q=U[F++]+A,se=U[F++]+b,A+=U[F++],b+=U[F++],M=C.Q,_.addData(M,q,se,A,b);break;case"T":j=A,K=b;var re=_.len(),we=_.data;T===C.Q&&(j+=A-we[re-4],K+=b-we[re-3]),A=U[F++],b=U[F++],M=C.Q,_.addData(M,j,K,A,b);break;case"t":j=A,K=b;var re=_.len(),we=_.data;T===C.Q&&(j+=A-we[re-4],K+=b-we[re-3]),A+=U[F++],b+=U[F++],M=C.Q,_.addData(M,j,K,A,b);break;case"A":z=U[F++],V=U[F++],Q=U[F++],G=U[F++],te=U[F++],q=A,se=b,A=U[F++],b=U[F++],M=C.A,t(q,se,A,b,G,te,z,V,Q,M,_);break;case"a":z=U[F++],V=U[F++],Q=U[F++],G=U[F++],te=U[F++],q=A,se=b,A+=U[F++],b+=U[F++],M=C.A,t(q,se,A,b,G,te,z,V,Q,M,_);break}}(k==="z"||k==="Z")&&(M=C.Z,_.addData(M),A=x,b=E),T=M}return _.toStatic(),_}function r(v,A){var b=u(v);return A=A||{},A.buildPath=function(x){if(x.setData){x.setData(b.data);var E=x.getContext();E&&x.rebuildPath(E)}else{var E=x;b.rebuildPath(E)}},A.applyTransform=function(x){S(b,x),this.dirty(!0)},A}function s(v,A){return new y(r(v,A))}function c(v,A){return y.extend(r(v,A))}function h(v,A){for(var b=[],x=v.length,E=0;E<x;E++){var T=v[E];T.path||T.createPathProxy(),T.__dirtyPath&&T.buildPath(T.path,T.shape,!0),b.push(T.path)}var _=new y(A);return _.createPathProxy(),_.buildPath=function(C){C.appendPath(b);var w=C.getContext();w&&C.rebuildPath(w)},_}D.createFromString=s,D.extendFromString=c,D.mergePath=h},NFKh:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("MlIO"),n("F+F2"),n("qM6L"),n("ETIr"),n("wbyO"),n("cv67"),n("3y9D"),n("lPiR"),n("GRuw"),n("1uat"),n("uGsb"),n("5hvy"),n("ELcG"),n("WYAk"),n("e7zE"),n("K3mO"),n("OLod"),n("ALsQ"),n("9OqN"),n("qu8F"),n("S6kV"),n("gb/T"),n("qBft"),n("oRuE"),n("jO9C"),n("KmYQ"),n("uGxW"),n("bQjk"),n("wZgz"),n("pA7S"),n("w7YG"),n("E4JC"),n("PVpz"),n("r1uz"))})(this,function(y){return y})},NH9N:function(R,D,n){var y=n("bYtY"),g=n("mFDi"),S=n("Fofx"),m=n("IwbS"),p=n("+TT/"),f=n("kzvK"),d=n("CMP+"),l=n("oVpE"),a=l.createSymbol,i=n("aX7z"),t=n("OELB"),o=n("7aKB"),e=o.encodeHTML,u=y.bind,r=y.each,s=Math.PI,c=f.extend({type:"timeline.slider",init:function(x,E){this.api=E,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(x,E,T,_){if(this.model=x,this.api=T,this.ecModel=E,this.group.removeAll(),x.get("show",!0)){var C=this._layout(x,T),w=this._createGroup("mainGroup"),O=this._createGroup("labelGroup"),I=this._axis=this._createAxis(C,x);x.formatTooltip=function(k){return e(I.scale.getLabel(k))},r(["AxisLine","AxisTick","Control","CurrentPointer"],function(k){this["_render"+k](C,w,I,x)},this),this._renderAxisLabel(C,O,I,x),this._position(C,x)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(x,E){var T=x.get("label.position"),_=x.get("orient"),C=h(x,E);T==null||T==="auto"?T=_==="horizontal"?C.y+C.height/2<E.getHeight()/2?"-":"+":C.x+C.width/2<E.getWidth()/2?"+":"-":isNaN(T)&&(T={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[_][T]);var w={horizontal:"center",vertical:T>=0||T==="+"?"left":"right"},O={horizontal:T>=0||T==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:s/2},k=_==="vertical"?C.height:C.width,M=x.getModel("controlStyle"),U=M.get("show",!0),P=U?M.get("itemSize"):0,X=U?M.get("itemGap"):0,F=P+X,j=x.get("label.rotate")||0;j=j*s/180;var K,z,V,Q,G=M.get("position",!0),te=U&&M.get("showPlayBtn",!0),q=U&&M.get("showPrevBtn",!0),se=U&&M.get("showNextBtn",!0),re=0,we=k;return G==="left"||G==="bottom"?(te&&(K=[0,0],re+=F),q&&(z=[re,0],re+=F),se&&(V=[we-P,0],we-=F)):(te&&(K=[we-P,0],we-=F),q&&(z=[0,0],re+=F),se&&(V=[we-P,0],we-=F)),Q=[re,we],x.get("inverse")&&Q.reverse(),{viewRect:C,mainLength:k,orient:_,rotation:I[_],labelRotation:j,labelPosOpt:T,labelAlign:x.get("label.align")||w[_],labelBaseline:x.get("label.verticalAlign")||x.get("label.baseline")||O[_],playPosition:K,prevBtnPosition:z,nextBtnPosition:V,axisExtent:Q,controlSize:P,controlGap:X}},_position:function(x,E){var T=this._mainGroup,_=this._labelGroup,C=x.viewRect;if(x.orient==="vertical"){var w=S.create(),O=C.x,I=C.y+C.height;S.translate(w,w,[-O,-I]),S.rotate(w,w,-s/2),S.translate(w,w,[O,I]),C=C.clone(),C.applyTransform(w)}var k=z(C),M=z(T.getBoundingRect()),U=z(_.getBoundingRect()),P=T.position,X=_.position;X[0]=P[0]=k[0][0];var F=x.labelPosOpt;if(isNaN(F)){var j=F==="+"?0:1;V(P,M,k,1,j),V(X,U,k,1,1-j)}else{var j=F>=0?0:1;V(P,M,k,1,j),X[1]=P[1]+F}T.attr("position",P),_.attr("position",X),T.rotation=_.rotation=x.rotation,K(T),K(_);function K(Q){var G=Q.position;Q.origin=[k[0][0]-G[0],k[1][0]-G[1]]}function z(Q){return[[Q.x,Q.x+Q.width],[Q.y,Q.y+Q.height]]}function V(Q,G,te,q,se){Q[q]+=te[q][se]-G[q][se]}},_createAxis:function(x,E){var T=E.getData(),_=E.get("axisType"),C=i.createScaleByModel(E,_);C.getTicks=function(){return T.mapArray(["value"],function(I){return I})};var w=T.getDataExtent("value");C.setExtent(w[0],w[1]),C.niceTicks();var O=new d("value",C,x.axisExtent,_);return O.model=E,O},_createGroup:function(x){var E=this["_"+x]=new m.Group;return this.group.add(E),E},_renderAxisLine:function(x,E,T,_){var C=T.getExtent();if(!_.get("lineStyle.show"))return;E.add(new m.Line({shape:{x1:C[0],y1:0,x2:C[1],y2:0},style:y.extend({lineCap:"round"},_.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(x,E,T,_){var C=_.getData(),w=T.scale.getTicks();r(w,function(O){var I=T.dataToCoord(O),k=C.getItemModel(O),M=k.getModel("itemStyle"),U=k.getModel("emphasis.itemStyle"),P={position:[I,0],onclick:u(this._changeTimeline,this,O)},X=A(k,M,E,P);m.setHoverStyle(X,U.getItemStyle()),k.get("tooltip")?(X.dataIndex=O,X.dataModel=_):X.dataIndex=X.dataModel=null},this)},_renderAxisLabel:function(x,E,T,_){var C=T.getLabelModel();if(!C.get("show"))return;var w=_.getData(),O=T.getViewLabels();r(O,function(I){var k=I.tickValue,M=w.getItemModel(k),U=M.getModel("label"),P=M.getModel("emphasis.label"),X=T.dataToCoord(I.tickValue),F=new m.Text({position:[X,0],rotation:x.labelRotation-x.rotation,onclick:u(this._changeTimeline,this,k),silent:!1});m.setTextStyle(F.style,U,{text:I.formattedLabel,textAlign:x.labelAlign,textVerticalAlign:x.labelBaseline}),E.add(F),m.setHoverStyle(F,m.setTextStyle({},P))},this)},_renderControl:function(x,E,T,_){var C=x.controlSize,w=x.rotation,O=_.getModel("controlStyle").getItemStyle(),I=_.getModel("emphasis.controlStyle").getItemStyle(),k=[0,-C/2,C,C],M=_.getPlayState(),U=_.get("inverse",!0);P(x.nextBtnPosition,"controlStyle.nextIcon",u(this._changeTimeline,this,U?"-":"+")),P(x.prevBtnPosition,"controlStyle.prevIcon",u(this._changeTimeline,this,U?"+":"-")),P(x.playPosition,"controlStyle."+(M?"stopIcon":"playIcon"),u(this._handlePlayClick,this,!M),!0);function P(X,F,j,K){if(!X)return;var z={position:X,origin:[C/2,0],rotation:K?-w:0,rectHover:!0,style:O,onclick:j},V=v(_,F,k,z);E.add(V),m.setHoverStyle(V,I)}},_renderCurrentPointer:function(x,E,T,_){var C=_.getData(),w=_.getCurrentIndex(),O=C.getItemModel(w).getModel("checkpointStyle"),I=this,k={onCreate:function(M){M.draggable=!0,M.drift=u(I._handlePointerDrag,I),M.ondragend=u(I._handlePointerDragend,I),b(M,w,T,_,!0)},onUpdate:function(M){b(M,w,T,_)}};this._currentPointer=A(O,O,this._mainGroup,{},this._currentPointer,k)},_handlePlayClick:function(x){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:x,from:this.uid})},_handlePointerDrag:function(x,E,T){this._clearTimer(),this._pointerChangeTimeline([T.offsetX,T.offsetY])},_handlePointerDragend:function(x){this._pointerChangeTimeline([x.offsetX,x.offsetY],!0)},_pointerChangeTimeline:function(x,E){var T=this._toAxisCoord(x)[0],_=this._axis,C=t.asc(_.getExtent().slice());T>C[1]&&(T=C[1]),T<C[0]&&(T=C[0]),this._currentPointer.position[0]=T,this._currentPointer.dirty();var w=this._findNearestTick(T),O=this.model;(E||w!==O.getCurrentIndex()&&O.get("realtime"))&&this._changeTimeline(w)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(u(x,this),this.model.get("playInterval")));function x(){var E=this.model;this._changeTimeline(E.getCurrentIndex()+(E.get("rewind",!0)?-1:1))}},_toAxisCoord:function(x){var E=this._mainGroup.getLocalTransform();return m.applyTransform(x,E,!0)},_findNearestTick:function(x){var E=this.model.getData(),T=Infinity,_,C=this._axis;return E.each(["value"],function(w,O){var I=C.dataToCoord(w),k=Math.abs(I-x);k<T&&(T=k,_=O)}),_},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(x){var E=this.model.getCurrentIndex();x==="+"?x=E+1:x==="-"&&(x=E-1),this.api.dispatchAction({type:"timelineChange",currentIndex:x,from:this.uid})}});function h(x,E){return p.getLayoutRect(x.getBoxLayoutParams(),{width:E.getWidth(),height:E.getHeight()},x.get("padding"))}function v(x,E,T,_){var C=m.makePath(x.get(E).replace(/^path:\/\//,""),y.clone(_||{}),new g(T[0],T[1],T[2],T[3]),"center");return C}function A(x,E,T,_,C,w){var O=E.get("color");if(C)C.setColor(O),T.add(C),w&&w.onUpdate(C);else{var I=x.get("symbol");C=a(I,-1,-1,2,2,O),C.setStyle("strokeNoScale",!0),T.add(C),w&&w.onCreate(C)}var k=E.getItemStyle(["color","symbol","symbolSize"]);C.setStyle(k),_=y.merge({rectHover:!0,z2:100},_,!0);var M=x.get("symbolSize");M=M instanceof Array?M.slice():[+M,+M],M[0]/=2,M[1]/=2,_.scale=M;var U=x.get("symbolOffset");if(U){var P=_.position=_.position||[0,0];P[0]+=t.parsePercent(U[0],M[0]),P[1]+=t.parsePercent(U[1],M[1])}var X=x.get("symbolRotate");return _.rotation=(X||0)*Math.PI/180||0,C.attr(_),C.updateTransform(),C}function b(x,E,T,_,C){if(x.dragging)return;var w=_.getModel("checkpointStyle"),O=T.dataToCoord(_.getData().get(["value"],E));C||!w.get("animation",!0)?x.attr({position:[O,0]}):(x.stopAnimation(!0),x.animateTo({position:[O,0]},w.get("animationDuration",!0),w.get("animationEasing",!0)))}R.exports=c},NJEC:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("J4zp"),m=n.n(S),p=n("q1tI"),f=n.n(p),d=n("TSYQ"),l=n.n(d),a=n("sKbD"),i=n.n(a),t=n("4IlW"),o=n("3S7+"),e=n("2/Rp"),u=n("zvFY"),r=n("YMnH"),s=n("ZvpZ"),c=n("H84U"),h=n("bogI"),v=n("0n0R"),A=void 0,b=function(E,T){var _={};for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&T.indexOf(C)<0&&(_[C]=E[C]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,C=Object.getOwnPropertySymbols(E);w<C.length;w++)T.indexOf(C[w])<0&&Object.prototype.propertyIsEnumerable.call(E,C[w])&&(_[C[w]]=E[C[w]]);return _},x=p.forwardRef(function(E,T){var _=p.useState(E.visible),C=m()(_,2),w=C[0],O=C[1];p.useEffect(function(){"visible"in E&&O(E.visible)},[E.visible]),p.useEffect(function(){"defaultVisible"in E&&O(E.defaultVisible)},[E.defaultVisible]);var I=function(Oe,Me){"visible"in E||O(Oe),E.onVisibleChange&&E.onVisibleChange(Oe,Me)},k=function(Oe){I(!1,Oe),E.onConfirm&&E.onConfirm.call(A,Oe)},M=function(Oe){I(!1,Oe),E.onCancel&&E.onCancel.call(A,Oe)},U=function(Oe){Oe.keyCode===t.a.ESC&&w&&I(!1,Oe)},P=function(Oe){var Me=E.disabled;if(Me)return;I(Oe)},X=function(Oe,Me){var Qe=E.okButtonProps,Ve=E.cancelButtonProps,dt=E.title,Fe=E.cancelText,ue=E.okText,et=E.okType,he=E.icon;return p.createElement("div",{className:"".concat(Oe,"-inner-content")},p.createElement("div",{className:"".concat(Oe,"-message")},he,p.createElement("div",{className:"".concat(Oe,"-message-title")},Object(h.a)(dt))),p.createElement("div",{className:"".concat(Oe,"-buttons")},p.createElement(e.a,g()({onClick:M,size:"small"},Ve),Fe||Me.cancelText),p.createElement(e.a,g()({onClick:k},Object(u.a)(et),{size:"small"},Qe),ue||Me.okText)))},F=p.useContext(c.b),j=F.getPrefixCls,K=E.prefixCls,z=E.placement,V=E.children,Q=E.overlayClassName,G=b(E,["prefixCls","placement","children","overlayClassName"]),te=j("popover",K),q=j("popconfirm",K),se=l()(q,Q),re=p.createElement(r.a,{componentName:"Popconfirm",defaultLocale:s.a.Popconfirm},function(we){return X(te,we)});return p.createElement(o.a,g()({},G,{prefixCls:te,placement:z,onVisibleChange:P,visible:w,overlay:re,overlayClassName:se,ref:T}),Object(v.a)(V,{onKeyDown:function(Oe){var Me,Qe;(Qe=V==null?void 0:(Me=V.props).onKeyDown)===null||Qe===void 0||Qe.call(Me,Oe),U(Oe)}}))});x.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:p.createElement(i.a,null),disabled:!1},D.a=x},NKxu:function(R,D,n){var y=n("lSCD"),g=n("E2jh"),S=n("GoyQ"),m=n("3Fdi"),p=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,d=Function.prototype,l=Object.prototype,a=d.toString,i=l.hasOwnProperty,t=RegExp("^"+a.call(i).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o(e){if(!S(e)||g(e))return!1;var u=y(e)?t:f;return u.test(m(e))}R.exports=o},NUBc:function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("pVnL"),m=n.n(S),p=n("q1tI"),f=n.n(p),d=n("wx14"),l=n("rePB"),a=n("VTBJ"),i=n("1OyB"),t=n("vuIU"),o=n("Ji7U"),e=n("LK+K"),u=n("TSYQ"),r=n.n(u),s=function(Me){var Qe,Ve="".concat(Me.rootPrefixCls,"-item"),dt=r()(Ve,"".concat(Ve,"-").concat(Me.page),(Qe={},Object(l.a)(Qe,"".concat(Ve,"-active"),Me.active),Object(l.a)(Qe,Me.className,!!Me.className),Object(l.a)(Qe,"".concat(Ve,"-disabled"),!Me.page),Qe)),Fe=function(){Me.onClick(Me.page)},ue=function(he){Me.onKeyPress(he,Me.onClick,Me.page)};return f.a.createElement("li",{title:Me.showTitle?Me.page:null,className:dt,onClick:Fe,onKeyPress:ue,tabIndex:"0"},Me.itemRender(Me.page,"page",f.a.createElement("a",{rel:"nofollow"},Me.page)))},c=s,h={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},v=function(Oe){Object(o.a)(Qe,Oe);var Me=Object(e.a)(Qe);function Qe(){var Ve;Object(i.a)(this,Qe);for(var dt=arguments.length,Fe=new Array(dt),ue=0;ue<dt;ue++)Fe[ue]=arguments[ue];return Ve=Me.call.apply(Me,[this].concat(Fe)),Ve.state={goInputText:""},Ve.buildOptionText=function(et){return"".concat(et," ").concat(Ve.props.locale.items_per_page)},Ve.changeSize=function(et){Ve.props.changeSize(Number(et))},Ve.handleChange=function(et){Ve.setState({goInputText:et.target.value})},Ve.handleBlur=function(et){var he=Ve.props,J=he.goButton,Y=he.quickGo,$=he.rootPrefixCls,de=Ve.state.goInputText;if(J||de==="")return;if(et.relatedTarget&&(et.relatedTarget.className.indexOf("".concat($,"-prev"))>=0||et.relatedTarget.className.indexOf("".concat($,"-next"))>=0))return;Ve.setState({goInputText:""}),Y(Ve.getValidValue())},Ve.go=function(et){var he=Ve.state.goInputText;if(he==="")return;(et.keyCode===h.ENTER||et.type==="click")&&(Ve.setState({goInputText:""}),Ve.props.quickGo(Ve.getValidValue()))},Ve}return Object(t.a)(Qe,[{key:"getValidValue",value:function(){var dt=this.state,Fe=dt.goInputText,ue=dt.current;return!Fe||isNaN(Fe)?ue:Number(Fe)}},{key:"getPageSizeOptions",value:function(){var dt=this.props,Fe=dt.pageSize,ue=dt.pageSizeOptions;return ue.some(function(et){return et.toString()===Fe.toString()})?ue:ue.concat([Fe.toString()]).sort(function(et,he){var J=isNaN(Number(et))?0:Number(et),Y=isNaN(Number(he))?0:Number(he);return J-Y})}},{key:"render",value:function(){var dt=this,Fe=this.props,ue=Fe.pageSize,et=Fe.locale,he=Fe.rootPrefixCls,J=Fe.changeSize,Y=Fe.quickGo,$=Fe.goButton,de=Fe.selectComponentClass,be=Fe.buildOptionText,Te=Fe.selectPrefixCls,Be=Fe.disabled,fe=this.state.goInputText,xe="".concat(he,"-options"),ke=de,nt=null,Ct=null,pt=null;if(!J&&!Y)return null;var He=this.getPageSizeOptions();if(J&&ke){var nr=He.map(function(ht,Gt){return f.a.createElement(ke.Option,{key:Gt,value:ht.toString()},(be||dt.buildOptionText)(ht))});nt=f.a.createElement(ke,{disabled:Be,prefixCls:Te,showSearch:!1,className:"".concat(xe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(ue||He[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Gt){return Gt.parentNode}},nr)}return Y&&($&&(pt=typeof $=="boolean"?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Be,className:"".concat(xe,"-quick-jumper-button")},et.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},$)),Ct=f.a.createElement("div",{className:"".concat(xe,"-quick-jumper")},et.jump_to,f.a.createElement("input",{disabled:Be,type:"text",value:fe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),et.page,pt)),f.a.createElement("li",{className:"".concat(xe)},nt,Ct)}}]),Qe}(f.a.Component);v.defaultProps={pageSizeOptions:["10","20","50","100"]};var A=v,b=n("N2Kk");function x(){}function E(Oe){return typeof Oe=="number"&&isFinite(Oe)&&Math.floor(Oe)===Oe}function T(Oe,Me,Qe){return Qe}function _(Oe,Me,Qe){var Ve=typeof Oe=="undefined"?Me.pageSize:Oe;return Math.floor((Qe.total-1)/Ve)+1}var C=function(Oe){Object(o.a)(Qe,Oe);var Me=Object(e.a)(Qe);function Qe(Ve){var dt;Object(i.a)(this,Qe),dt=Me.call(this,Ve),dt.getJumpPrevPage=function(){return Math.max(1,dt.state.current-(dt.props.showLessItems?3:5))},dt.getJumpNextPage=function(){return Math.min(_(void 0,dt.state,dt.props),dt.state.current+(dt.props.showLessItems?3:5))},dt.getItemIcon=function(J,Y){var $=dt.props.prefixCls,de=J||f.a.createElement("button",{type:"button","aria-label":Y,className:"".concat($,"-item-link")});return typeof J=="function"&&(de=f.a.createElement(J,Object(a.a)({},dt.props))),de},dt.savePaginationNode=function(J){dt.paginationNode=J},dt.isValid=function(J){return E(J)&&J!==dt.state.current},dt.shouldDisplayQuickJumper=function(){var J=dt.props,Y=J.showQuickJumper,$=J.pageSize,de=J.total;return de<=$?!1:Y},dt.handleKeyDown=function(J){(J.keyCode===h.ARROW_UP||J.keyCode===h.ARROW_DOWN)&&J.preventDefault()},dt.handleKeyUp=function(J){var Y=dt.getValidValue(J),$=dt.state.currentInputValue;Y!==$&&dt.setState({currentInputValue:Y}),J.keyCode===h.ENTER?dt.handleChange(Y):J.keyCode===h.ARROW_UP?dt.handleChange(Y-1):J.keyCode===h.ARROW_DOWN&&dt.handleChange(Y+1)},dt.changePageSize=function(J){var Y=dt.state.current,$=_(J,dt.state,dt.props);Y=Y>$?$:Y,$===0&&(Y=dt.state.current),typeof J=="number"&&("pageSize"in dt.props||dt.setState({pageSize:J}),"current"in dt.props||dt.setState({current:Y,currentInputValue:Y})),dt.props.onShowSizeChange(Y,J),"onChange"in dt.props&&dt.props.onChange&&dt.props.onChange(Y,J)},dt.handleChange=function(J){var Y=dt.props.disabled,$=J;if(dt.isValid($)&&!Y){var de=_(void 0,dt.state,dt.props);$>de?$=de:$<1&&($=1),"current"in dt.props||dt.setState({current:$,currentInputValue:$});var be=dt.state.pageSize;return dt.props.onChange($,be),$}return dt.state.current},dt.prev=function(){dt.hasPrev()&&dt.handleChange(dt.state.current-1)},dt.next=function(){dt.hasNext()&&dt.handleChange(dt.state.current+1)},dt.jumpPrev=function(){dt.handleChange(dt.getJumpPrevPage())},dt.jumpNext=function(){dt.handleChange(dt.getJumpNextPage())},dt.hasPrev=function(){return dt.state.current>1},dt.hasNext=function(){return dt.state.current<_(void 0,dt.state,dt.props)},dt.runIfEnter=function(J,Y){if(J.key==="Enter"||J.charCode===13){for(var $=arguments.length,de=new Array($>2?$-2:0),be=2;be<$;be++)de[be-2]=arguments[be];Y.apply(void 0,de)}},dt.runIfEnterPrev=function(J){dt.runIfEnter(J,dt.prev)},dt.runIfEnterNext=function(J){dt.runIfEnter(J,dt.next)},dt.runIfEnterJumpPrev=function(J){dt.runIfEnter(J,dt.jumpPrev)},dt.runIfEnterJumpNext=function(J){dt.runIfEnter(J,dt.jumpNext)},dt.handleGoTO=function(J){(J.keyCode===h.ENTER||J.type==="click")&&dt.handleChange(dt.state.currentInputValue)};var Fe=Ve.onChange!==x,ue="current"in Ve;ue&&!Fe&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var et=Ve.defaultCurrent;"current"in Ve&&(et=Ve.current);var he=Ve.defaultPageSize;return"pageSize"in Ve&&(he=Ve.pageSize),et=Math.min(et,_(he,void 0,Ve)),dt.state={current:et,currentInputValue:et,pageSize:he},dt}return Object(t.a)(Qe,[{key:"componentDidUpdate",value:function(dt,Fe){var ue=this.props.prefixCls;if(Fe.current!==this.state.current&&this.paginationNode){var et=this.paginationNode.querySelector(".".concat(ue,"-item-").concat(Fe.current));et&&document.activeElement===et&&et.blur()}}},{key:"getValidValue",value:function(dt){var Fe=dt.target.value,ue=_(void 0,this.state,this.props),et=this.state.currentInputValue,he;return Fe===""?he=Fe:isNaN(Number(Fe))?he=et:Fe>=ue?he=ue:he=Number(Fe),he}},{key:"getShowSizeChanger",value:function(){var dt=this.props,Fe=dt.showSizeChanger,ue=dt.total,et=dt.totalBoundaryShowSizeChanger;return typeof Fe!="undefined"?Fe:ue>et}},{key:"renderPrev",value:function(dt){var Fe=this.props,ue=Fe.prevIcon,et=Fe.itemRender,he=et(dt,"prev",this.getItemIcon(ue,"prev page")),J=!this.hasPrev();return Object(p.isValidElement)(he)?Object(p.cloneElement)(he,{disabled:J}):he}},{key:"renderNext",value:function(dt){var Fe=this.props,ue=Fe.nextIcon,et=Fe.itemRender,he=et(dt,"next",this.getItemIcon(ue,"next page")),J=!this.hasNext();return Object(p.isValidElement)(he)?Object(p.cloneElement)(he,{disabled:J}):he}},{key:"render",value:function(){var dt=this,Fe=this.props,ue=Fe.prefixCls,et=Fe.className,he=Fe.style,J=Fe.disabled,Y=Fe.hideOnSinglePage,$=Fe.total,de=Fe.locale,be=Fe.showQuickJumper,Te=Fe.showLessItems,Be=Fe.showTitle,fe=Fe.showTotal,xe=Fe.simple,ke=Fe.itemRender,nt=Fe.showPrevNextJumpers,Ct=Fe.jumpPrevIcon,pt=Fe.jumpNextIcon,He=Fe.selectComponentClass,nr=Fe.selectPrefixCls,ht=Fe.pageSizeOptions,Gt=this.state,pr=Gt.current,Qt=Gt.pageSize,Ht=Gt.currentInputValue;if(Y===!0&&$<=Qt)return null;var Jt=_(void 0,this.state,this.props),Ge=[],pe=null,oe=null,ct=null,qe=null,me=null,Kt=be&&be.goButton,vr=Te?1:2,bt=pr-1>0?pr-1:0,or=pr+1<Jt?pr+1:Jt,_t=Object.keys(this.props).reduce(function(Rn,Zt){return(Zt.substr(0,5)==="data-"||Zt.substr(0,5)==="aria-"||Zt==="role")&&(Rn[Zt]=dt.props[Zt]),Rn},{});if(xe)return Kt&&(typeof Kt=="boolean"?me=f.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},de.jump_to_confirm):me=f.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Kt),me=f.a.createElement("li",{title:Be?"".concat(de.jump_to).concat(pr,"/").concat(Jt):null,className:"".concat(ue,"-simple-pager")},me)),f.a.createElement("ul",Object(d.a)({className:r()(ue,"".concat(ue,"-simple"),Object(l.a)({},"".concat(ue,"-disabled"),J),et),style:he,ref:this.savePaginationNode},_t),f.a.createElement("li",{title:Be?de.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(ue,"-prev"),Object(l.a)({},"".concat(ue,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(bt)),f.a.createElement("li",{title:Be?"".concat(pr,"/").concat(Jt):null,className:"".concat(ue,"-simple-pager")},f.a.createElement("input",{type:"text",value:Ht,disabled:J,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),f.a.createElement("span",{className:"".concat(ue,"-slash")},"/"),Jt),f.a.createElement("li",{title:Be?de.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(ue,"-next"),Object(l.a)({},"".concat(ue,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(or)),me);if(Jt<=3+vr*2){var jt={locale:de,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Be,itemRender:ke};Jt||Ge.push(f.a.createElement(c,Object(d.a)({},jt,{key:"noPager",page:Jt,className:"".concat(ue,"-disabled")})));for(var ut=1;ut<=Jt;ut+=1){var St=pr===ut;Ge.push(f.a.createElement(c,Object(d.a)({},jt,{key:ut,page:ut,active:St})))}}else{var mt=Te?de.prev_3:de.prev_5,lt=Te?de.next_3:de.next_5;nt&&(pe=f.a.createElement("li",{title:Be?mt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(ue,"-jump-prev"),Object(l.a)({},"".concat(ue,"-jump-prev-custom-icon"),!!Ct))},ke(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ct,"prev page"))),oe=f.a.createElement("li",{title:Be?lt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(ue,"-jump-next"),Object(l.a)({},"".concat(ue,"-jump-next-custom-icon"),!!pt))},ke(this.getJumpNextPage(),"jump-next",this.getItemIcon(pt,"next page")))),qe=f.a.createElement(c,{locale:de,last:!0,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Jt,page:Jt,active:!1,showTitle:Be,itemRender:ke}),ct=f.a.createElement(c,{locale:de,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Be,itemRender:ke});var tt=Math.max(1,pr-vr),Cr=Math.min(pr+vr,Jt);pr-1<=vr&&(Cr=1+vr*2),Jt-pr<=vr&&(tt=Jt-vr*2);for(var nn=tt;nn<=Cr;nn+=1){var mn=pr===nn;Ge.push(f.a.createElement(c,{locale:de,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:nn,page:nn,active:mn,showTitle:Be,itemRender:ke}))}pr-1>=vr*2&&pr!==1+2&&(Ge[0]=Object(p.cloneElement)(Ge[0],{className:"".concat(ue,"-item-after-jump-prev")}),Ge.unshift(pe)),Jt-pr>=vr*2&&pr!==Jt-2&&(Ge[Ge.length-1]=Object(p.cloneElement)(Ge[Ge.length-1],{className:"".concat(ue,"-item-before-jump-next")}),Ge.push(oe)),tt!==1&&Ge.unshift(ct),Cr!==Jt&&Ge.push(qe)}var Bn=null;fe&&(Bn=f.a.createElement("li",{className:"".concat(ue,"-total-text")},fe($,[$===0?0:(pr-1)*Qt+1,pr*Qt>$?$:pr*Qt])));var oi=!this.hasPrev()||!Jt,wn=!this.hasNext()||!Jt;return f.a.createElement("ul",Object(d.a)({className:r()(ue,et,Object(l.a)({},"".concat(ue,"-disabled"),J)),style:he,unselectable:"unselectable",ref:this.savePaginationNode},_t),Bn,f.a.createElement("li",{title:Be?de.prev_page:null,onClick:this.prev,tabIndex:oi?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(ue,"-prev"),Object(l.a)({},"".concat(ue,"-disabled"),oi)),"aria-disabled":oi},this.renderPrev(bt)),Ge,f.a.createElement("li",{title:Be?de.next_page:null,onClick:this.next,tabIndex:wn?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(ue,"-next"),Object(l.a)({},"".concat(ue,"-disabled"),wn)),"aria-disabled":wn},this.renderNext(or)),f.a.createElement(A,{disabled:J,locale:de,rootPrefixCls:ue,selectComponentClass:He,selectPrefixCls:nr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:pr,pageSize:Qt,pageSizeOptions:ht,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Kt}))}}],[{key:"getDerivedStateFromProps",value:function(dt,Fe){var ue={};if("current"in dt&&(ue.current=dt.current,dt.current!==Fe.current&&(ue.currentInputValue=ue.current)),"pageSize"in dt&&dt.pageSize!==Fe.pageSize){var et=Fe.current,he=_(dt.pageSize,Fe,dt);et=et>he?he:et,"current"in dt||(ue.current=et,ue.currentInputValue=et),ue.pageSize=dt.pageSize}return ue}}]),Qe}(f.a.Component);C.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:x,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:x,locale:b.a,style:{},itemRender:T,totalBoundaryShowSizeChanger:50};var w=C,O=n("H4fg"),I=n("DFhj"),k=n.n(I),M=n("fEPi"),U=n.n(M),P=n("u9fO"),X=n.n(P),F=n("mO/d"),j=n.n(F),K=n("2fM7"),z=function(Me){return p.createElement(K.a,m()({size:"small"},Me))};z.Option=K.a.Option;var V=z,Q=n("YMnH"),G=n("H84U"),te=n("5OYt"),q=function(Oe,Me){var Qe={};for(var Ve in Oe)Object.prototype.hasOwnProperty.call(Oe,Ve)&&Me.indexOf(Ve)<0&&(Qe[Ve]=Oe[Ve]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ve=Object.getOwnPropertySymbols(Oe);dt<Ve.length;dt++)Me.indexOf(Ve[dt])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Ve[dt])&&(Qe[Ve[dt]]=Oe[Ve[dt]]);return Qe},se=function(Me){var Qe=Me.prefixCls,Ve=Me.selectPrefixCls,dt=Me.className,Fe=Me.size,ue=Me.locale,et=q(Me,["prefixCls","selectPrefixCls","className","size","locale"]),he=Object(te.a)(),J=he.xs,Y=p.useContext(G.b),$=Y.getPrefixCls,de=Y.direction,be=$("pagination",Qe),Te=function(){var xe=p.createElement("span",{className:"".concat(be,"-item-ellipsis")},"\u2022\u2022\u2022"),ke=p.createElement("button",{className:"".concat(be,"-item-link"),type:"button",tabIndex:-1},p.createElement(k.a,null)),nt=p.createElement("button",{className:"".concat(be,"-item-link"),type:"button",tabIndex:-1},p.createElement(U.a,null)),Ct=p.createElement("a",{className:"".concat(be,"-item-link")},p.createElement("div",{className:"".concat(be,"-item-container")},p.createElement(X.a,{className:"".concat(be,"-item-link-icon")}),xe)),pt=p.createElement("a",{className:"".concat(be,"-item-link")},p.createElement("div",{className:"".concat(be,"-item-container")},p.createElement(j.a,{className:"".concat(be,"-item-link-icon")}),xe));if(de==="rtl"){var He=[nt,ke];ke=He[0],nt=He[1];var nr=[pt,Ct];Ct=nr[0],pt=nr[1]}return{prevIcon:ke,nextIcon:nt,jumpPrevIcon:Ct,jumpNextIcon:pt}},Be=function(xe){var ke=m()(m()({},xe),ue),nt=Fe==="small"||!!(J&&!Fe&&et.responsive),Ct=$("select",Ve),pt=r()(dt,g()({mini:nt},"".concat(be,"-rtl"),de==="rtl"));return p.createElement(w,m()({},et,{prefixCls:be,selectPrefixCls:Ct},Te(),{className:pt,selectComponentClass:nt?V:K.a,locale:ke}))};return p.createElement(Q.a,{componentName:"Pagination",defaultLocale:O.a},Be)},re=se,we=D.a=re},NohK:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=function(S){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,p=null;return function(){for(var f=this,d=arguments.length,l=new Array(d),a=0;a<d;a++)l[a]=arguments[a];clearTimeout(p),p=setTimeout(function(){S.apply(f,l)},m)}};D.default=y},Npjl:function(R,D){function n(y,g){return y==null?void 0:y[g]}R.exports=n},Nu4q:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(S,m){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:S}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:m}},{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:m}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:m}},{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:S}}]}},name:"picture",theme:"twotone"};D.default=y},"O/iA":function(R,D,n){},O3gP:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("O/iA"),m=n.n(S),p=n("OaEy")},OELB:function(R,D,n){var y=n("bYtY"),g=1e-4;function S(E){return E.replace(/^\s+|\s+$/g,"")}function m(E,T,_,C){var w=T[1]-T[0],O=_[1]-_[0];if(w===0)return O===0?_[0]:(_[0]+_[1])/2;if(C)if(w>0){if(E<=T[0])return _[0];if(E>=T[1])return _[1]}else{if(E>=T[0])return _[0];if(E<=T[1])return _[1]}else{if(E===T[0])return _[0];if(E===T[1])return _[1]}return(E-T[0])/w*O+_[0]}function p(E,T){switch(E){case"center":case"middle":E="50%";break;case"left":case"top":E="0%";break;case"right":case"bottom":E="100%";break}return typeof E=="string"?S(E).match(/%$/)?parseFloat(E)/100*T:parseFloat(E):E==null?NaN:+E}function f(E,T,_){return T==null&&(T=10),T=Math.min(Math.max(0,T),20),E=(+E).toFixed(T),_?E:+E}function d(E){return E.sort(function(T,_){return T-_}),E}function l(E){if(E=+E,isNaN(E))return 0;for(var T=1,_=0;Math.round(E*T)/T!==E;)T*=10,_++;return _}function a(E){var T=E.toString(),_=T.indexOf("e");if(_>0){var C=+T.slice(_+1);return C<0?-C:0}else{var w=T.indexOf(".");return w<0?0:T.length-1-w}}function i(E,T){var _=Math.log,C=Math.LN10,w=Math.floor(_(E[1]-E[0])/C),O=Math.round(_(Math.abs(T[1]-T[0]))/C),I=Math.min(Math.max(-w+O,0),20);return isFinite(I)?I:20}function t(E,T,_){if(!E[T])return 0;var C=y.reduce(E,function(K,z){return K+(isNaN(z)?0:z)},0);if(C===0)return 0;for(var w=Math.pow(10,_),O=y.map(E,function(K){return(isNaN(K)?0:K)/C*w*100}),I=w*100,k=y.map(O,function(K){return Math.floor(K)}),M=y.reduce(k,function(K,z){return K+z},0),U=y.map(O,function(K,z){return K-k[z]});M<I;){for(var P=Number.NEGATIVE_INFINITY,X=null,F=0,j=U.length;F<j;++F)U[F]>P&&(P=U[F],X=F);++k[X],U[X]=0,++M}return k[T]/w}var o=9007199254740991;function e(E){var T=Math.PI*2;return(E%T+T)%T}function u(E){return E>-g&&E<g}var r=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function s(E){if(E instanceof Date)return E;if(typeof E=="string"){var T=r.exec(E);if(!T)return new Date(NaN);if(T[8]){var _=+T[4]||0;return T[8].toUpperCase()!=="Z"&&(_-=T[8].slice(0,3)),new Date(Date.UTC(+T[1],+(T[2]||1)-1,+T[3]||1,_,+(T[5]||0),+T[6]||0,+T[7]||0))}else return new Date(+T[1],+(T[2]||1)-1,+T[3]||1,+T[4]||0,+(T[5]||0),+T[6]||0,+T[7]||0)}else if(E==null)return new Date(NaN);return new Date(Math.round(E))}function c(E){return Math.pow(10,h(E))}function h(E){if(E===0)return 0;var T=Math.floor(Math.log(E)/Math.LN10);return E/Math.pow(10,T)>=10&&T++,T}function v(E,T){var _=h(E),C=Math.pow(10,_),w=E/C,O;return T?w<1.5?O=1:w<2.5?O=2:w<4?O=3:w<7?O=5:O=10:w<1?O=1:w<2?O=2:w<3?O=3:w<5?O=5:O=10,E=O*C,_>=-20?+E.toFixed(_<0?-_:0):E}function A(E,T){var _=(E.length-1)*T+1,C=Math.floor(_),w=+E[C-1],O=_-C;return O?w+O*(E[C]-w):w}function b(E){E.sort(function(M,U){return k(M,U,0)?-1:1});for(var T=-Infinity,_=1,C=0;C<E.length;){for(var w=E[C].interval,O=E[C].close,I=0;I<2;I++)w[I]<=T&&(w[I]=T,O[I]=I?1:1-_),T=w[I],_=O[I];w[0]===w[1]&&O[0]*O[1]!==1?E.splice(C,1):C++}return E;function k(M,U,P){return M.interval[P]<U.interval[P]||M.interval[P]===U.interval[P]&&(M.close[P]-U.close[P]===(P?-1:1)||!P&&k(M,U,1))}}function x(E){return E-parseFloat(E)>=0}D.linearMap=m,D.parsePercent=p,D.round=f,D.asc=d,D.getPrecision=l,D.getPrecisionSafe=a,D.getPixelPrecision=i,D.getPercentWithPrecision=t,D.MAX_SAFE_INTEGER=o,D.remRadian=e,D.isRadianAroundZero=u,D.parseDate=s,D.quantity=c,D.quantityExponent=h,D.nice=v,D.quantile=A,D.reformIntervals=b,D.isNumeric=x},OKJ2:function(R,D,n){var y=n("KxfA"),g=y.retrieveRawValue,S=n("7aKB"),m=S.getTooltipMarker,p=S.formatTpl,f=n("4NO4"),d=f.getTooltipRenderMode,l=/\{@(.+?)\}/g,a={getDataParams:function(i,t){var o=this.getData(t),e=this.getRawValue(i,t),u=o.getRawIndex(i),r=o.getName(i),s=o.getRawDataItem(i),c=o.getItemVisual(i,"color"),h=o.getItemVisual(i,"borderColor"),v=this.ecModel.getComponent("tooltip"),A=v&&v.get("renderMode"),b=d(A),x=this.mainType,E=x==="series",T=o.userOutput;return{componentType:x,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:E?this.subType:null,seriesIndex:this.seriesIndex,seriesId:E?this.id:null,seriesName:E?this.name:null,name:r,dataIndex:u,data:s,dataType:t,value:e,color:c,borderColor:h,dimensionNames:T?T.dimensionNames:null,encode:T?T.encode:null,marker:m({color:c,renderMode:b}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(i,t,o,e,u){t=t||"normal";var r=this.getData(o),s=r.getItemModel(i),c=this.getDataParams(i,o);e!=null&&c.value instanceof Array&&(c.value=c.value[e]);var h=s.get(t==="normal"?[u||"label","formatter"]:[t,u||"label","formatter"]);if(typeof h=="function")return c.status=t,c.dimensionIndex=e,h(c);if(typeof h=="string"){var v=p(h,c);return v.replace(l,function(A,b){var x=b.length;return b.charAt(0)==="["&&b.charAt(x-1)==="]"&&(b=+b.slice(1,x-1)),g(r,i,b)})}},getRawValue:function(i,t){return g(this.getData(t),i)},formatTooltip:function(){}};R.exports=a},OLod:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("K3mO"))})(this,function(y){y.lib.Cipher||function(g){var S=y,m=S.lib,p=m.Base,f=m.WordArray,d=m.BufferedBlockAlgorithm,l=S.enc,a=l.Utf8,i=l.Base64,t=S.algo,o=t.EvpKDF,e=m.Cipher=d.extend({cfg:p.extend(),createEncryptor:function(I,k){return this.create(this._ENC_XFORM_MODE,I,k)},createDecryptor:function(I,k){return this.create(this._DEC_XFORM_MODE,I,k)},init:function(I,k,M){this.cfg=this.cfg.extend(M),this._xformMode=I,this._key=k,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function O(I){return typeof I=="string"?w:T}return function(I){return{encrypt:function(M,U,P){return O(U).encrypt(I,M,U,P)},decrypt:function(M,U,P){return O(U).decrypt(I,M,U,P)}}}}()}),u=m.StreamCipher=e.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1}),r=S.mode={},s=m.BlockCipherMode=p.extend({createEncryptor:function(I,k){return this.Encryptor.create(I,k)},createDecryptor:function(I,k){return this.Decryptor.create(I,k)},init:function(I,k){this._cipher=I,this._iv=k}}),c=r.CBC=function(){var O=s.extend();O.Encryptor=O.extend({processBlock:function(M,U){var P=this._cipher,X=P.blockSize;I.call(this,M,U,X),P.encryptBlock(M,U),this._prevBlock=M.slice(U,U+X)}}),O.Decryptor=O.extend({processBlock:function(M,U){var P=this._cipher,X=P.blockSize,F=M.slice(U,U+X);P.decryptBlock(M,U),I.call(this,M,U,X),this._prevBlock=F}});function I(k,M,U){var P,X=this._iv;X?(P=X,this._iv=g):P=this._prevBlock;for(var F=0;F<U;F++)k[M+F]^=P[F]}return O}(),h=S.pad={},v=h.Pkcs7={pad:function(I,k){for(var M=k*4,U=M-I.sigBytes%M,P=U<<24|U<<16|U<<8|U,X=[],F=0;F<U;F+=4)X.push(P);var j=f.create(X,U);I.concat(j)},unpad:function(I){var k=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=k}},A=m.BlockCipher=e.extend({cfg:e.cfg.extend({mode:c,padding:v}),reset:function(){var I;e.reset.call(this);var k=this.cfg,M=k.iv,U=k.mode;this._xformMode==this._ENC_XFORM_MODE?I=U.createEncryptor:(I=U.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,M&&M.words):(this._mode=I.call(U,this,M&&M.words),this._mode.__creator=I)},_doProcessBlock:function(I,k){this._mode.processBlock(I,k)},_doFinalize:function(){var I,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),k.unpad(I)),I},blockSize:128/32}),b=m.CipherParams=p.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),x=S.format={},E=x.OpenSSL={stringify:function(I){var k,M=I.ciphertext,U=I.salt;return U?k=f.create([1398893684,1701076831]).concat(U).concat(M):k=M,k.toString(i)},parse:function(I){var k,M=i.parse(I),U=M.words;return U[0]==1398893684&&U[1]==1701076831&&(k=f.create(U.slice(2,4)),U.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:k})}},T=m.SerializableCipher=p.extend({cfg:p.extend({format:E}),encrypt:function(I,k,M,U){U=this.cfg.extend(U);var P=I.createEncryptor(M,U),X=P.finalize(k),F=P.cfg;return b.create({ciphertext:X,key:M,iv:F.iv,algorithm:I,mode:F.mode,padding:F.padding,blockSize:I.blockSize,formatter:U.format})},decrypt:function(I,k,M,U){U=this.cfg.extend(U),k=this._parse(k,U.format);var P=I.createDecryptor(M,U).finalize(k.ciphertext);return P},_parse:function(I,k){return typeof I=="string"?k.parse(I,this):I}}),_=S.kdf={},C=_.OpenSSL={execute:function(I,k,M,U,P){if(U||(U=f.random(64/8)),P)var X=o.create({keySize:k+M,hasher:P}).compute(I,U);else var X=o.create({keySize:k+M}).compute(I,U);var F=f.create(X.words.slice(k),M*4);return X.sigBytes=k*4,b.create({key:X,iv:F,salt:U})}},w=m.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:C}),encrypt:function(I,k,M,U){U=this.cfg.extend(U);var P=U.kdf.execute(M,I.keySize,I.ivSize,U.salt,U.hasher);U.iv=P.iv;var X=T.encrypt.call(this,I,k,P.key,U);return X.mixIn(P),X},decrypt:function(I,k,M,U){U=this.cfg.extend(U),k=this._parse(k,U.format);var P=U.kdf.execute(M,I.keySize,I.ivSize,k.salt,U.hasher);U.iv=P.iv;var X=T.decrypt.call(this,I,k,P.key,U);return X}})}()})},OPEp:function(R,D,n){},OQFs:function(R,D,n){var y=n("KCsZ"),g=y([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),S={getLineStyle:function(m){var p=g(this,m);return p.lineDash=this.getLineDash(p.lineWidth),p},getLineDash:function(m){m==null&&(m=1);var p=this.get("type"),f=Math.max(m,2),d=m*4;return p==="solid"||p==null?!1:p==="dashed"?[d,d]:[f,f]}};R.exports=S},OS9S:function(R,D,n){var y=n("bYtY"),g=y.inherits,S=n("Gev7"),m=n("mFDi");function p(l){S.call(this,l),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}p.prototype.incremental=!0,p.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},p.prototype.addDisplayable=function(l,a){a?this._temporaryDisplayables.push(l):this._displayables.push(l),this.dirty()},p.prototype.addDisplayables=function(l,a){a=a||!1;for(var i=0;i<l.length;i++)this.addDisplayable(l[i],a)},p.prototype.eachPendingDisplayable=function(l){for(var a=this._cursor;a<this._displayables.length;a++)l&&l(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)l&&l(this._temporaryDisplayables[a])},p.prototype.update=function(){this.updateTransform();for(var l=this._cursor;l<this._displayables.length;l++){var a=this._displayables[l];a.parent=this,a.update(),a.parent=null}for(var l=0;l<this._temporaryDisplayables.length;l++){var a=this._temporaryDisplayables[l];a.parent=this,a.update(),a.parent=null}},p.prototype.brush=function(l,a){for(var i=this._cursor;i<this._displayables.length;i++){var t=this._displayables[i];t.beforeBrush&&t.beforeBrush(l),t.brush(l,i===this._cursor?null:this._displayables[i-1]),t.afterBrush&&t.afterBrush(l)}this._cursor=i;for(var i=0;i<this._temporaryDisplayables.length;i++){var t=this._temporaryDisplayables[i];t.beforeBrush&&t.beforeBrush(l),t.brush(l,i===0?null:this._temporaryDisplayables[i-1]),t.afterBrush&&t.afterBrush(l)}this._temporaryDisplayables=[],this.notClear=!0};var f=[];p.prototype.getBoundingRect=function(){if(!this._rect){for(var l=new m(Infinity,Infinity,-Infinity,-Infinity),a=0;a<this._displayables.length;a++){var i=this._displayables[a],t=i.getBoundingRect().clone();i.needLocalTransform()&&t.applyTransform(i.getLocalTransform(f)),l.union(t)}this._rect=l}return this._rect},p.prototype.contain=function(l,a){var i=this.transformCoordToLocal(l,a),t=this.getBoundingRect();if(t.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var e=this._displayables[o];if(e.contain(l,a))return!0}return!1},g(p,S);var d=p;R.exports=d},OUJF:function(R,D,n){var y=n("ProS"),g=n("bYtY");y.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(S,m){var p=m.getComponent("timeline");return p&&S.currentIndex!=null&&(p.setCurrentIndex(S.currentIndex),!p.get("loop",!0)&&p.isIndexMax()&&p.setPlayState(!1)),m.resetOption("timeline"),g.defaults({currentIndex:p.option.currentIndex},S)}),y.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(S,m){var p=m.getComponent("timeline");p&&S.playState!=null&&p.setPlayState(S.playState)})},OXB0:function(R,D,n){var y=n("T4UG"),g=n("MwEJ"),S=n("IDmD"),m=y.extend({type:"series.heatmap",getInitialData:function(p,f){return g(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var p=S.get(this.get("coordinateSystem"));if(p&&p.dimensions)return p.dimensions[0]==="lng"&&p.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});R.exports=m},OaEy:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("bKJz"),m=n.n(S),p=n("R9oj")},"Of+w":function(R,D,n){var y=n("Cwc5"),g=n("Kz5y"),S=y(g,"WeakMap");R.exports=S},Ol7k:function(R,D,n){"use strict";var y=n("PKem"),g=n("ZX9x");y.b.Sider=g.b,D.a=y.b},OlYY:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("ProS"),m=n("bYtY"),p=n("ItGF"),f=n("4NO4"),d=n("UOVi"),l=n("zDms"),a=m.each,i=d.eachAxisDim,t=S.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(r,s,c){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var h=o(r);this.settledOption=h,this.mergeDefaultAndTheme(r,c),this.doInit(h)},mergeOption:function(r){var s=o(r);m.merge(this.option,r,!0),m.merge(this.settledOption,s,!0),this.doInit(s)},doInit:function(r){var s=this.option;p.canvasSupported||(s.realtime=!1),this._setDefaultThrottle(r),e(this,r);var c=this.settledOption;a([["start","startValue"],["end","endValue"]],function(h,v){this._rangePropMode[v]==="value"&&(s[h[0]]=c[h[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var r=this._axisProxies;this.eachTargetAxis(function(s,c,h,v){var A=this.dependentModels[s.axis][c],b=A.__dzAxisProxy||(A.__dzAxisProxy=new l(s.name,c,this,v));r[s.name+"_"+c]=b},this)},_resetTarget:function(){var r=this.option,s=this._judgeAutoMode();i(function(c){var h=c.axisIndex;r[h]=f.normalizeToArray(r[h])},this),s==="axisIndex"?this._autoSetAxisIndex():s==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var r=this.option,s=!1;i(function(h){r[h.axisIndex]!=null&&(s=!0)},this);var c=r.orient;if(c==null&&s)return"orient";if(!s)return c==null&&(r.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var r=!0,s=this.get("orient",!0),c=this.option,h=this.dependentModels;if(r){var v=s==="vertical"?"y":"x";h[v+"Axis"].length?(c[v+"AxisIndex"]=[0],r=!1):a(h.singleAxis,function(A){r&&A.get("orient",!0)===s&&(c.singleAxisIndex=[A.componentIndex],r=!1)})}r&&i(function(A){if(!r)return;var b=[],x=this.dependentModels[A.axis];if(x.length&&!b.length)for(var E=0,T=x.length;E<T;E++)x[E].get("type")==="category"&&b.push(E);c[A.axisIndex]=b,b.length&&(r=!1)},this),r&&this.ecModel.eachSeries(function(A){this._isSeriesHasAllAxesTypeOf(A,"value")&&i(function(b){var x=c[b.axisIndex],E=A.get(b.axisIndex),T=A.get(b.axisId),_=A.ecModel.queryComponents({mainType:b.axis,index:E,id:T})[0];E=_.componentIndex,m.indexOf(x,E)<0&&x.push(E)})},this)},_autoSetOrient:function(){var r;this.eachTargetAxis(function(s){!r&&(r=s.name)},this),this.option.orient=r==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(r,s){var c=!0;return i(function(h){var v=r.get(h.axisIndex),A=this.dependentModels[h.axis][v];(!A||A.get("type")!==s)&&(c=!1)},this),c},_setDefaultThrottle:function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var r;return i(function(s){if(r==null){var c=this.get(s.axisIndex);c.length&&(r=this.dependentModels[s.axis][c[0]])}},this),r},eachTargetAxis:function(r,s){var c=this.ecModel;i(function(h){a(this.get(h.axisIndex),function(v){r.call(s,h,v,this,c)},this)},this)},getAxisProxy:function(r,s){return this._axisProxies[r+"_"+s]},getAxisModel:function(r,s){var c=this.getAxisProxy(r,s);return c&&c.getAxisModel()},setRawRange:function(r){var s=this.option,c=this.settledOption;a([["start","startValue"],["end","endValue"]],function(h){(r[h[0]]!=null||r[h[1]]!=null)&&(s[h[0]]=c[h[0]]=r[h[0]],s[h[1]]=c[h[1]]=r[h[1]])},this),e(this,r)},setCalculatedRange:function(r){var s=this.option;a(["start","startValue","end","endValue"],function(c){s[c]=r[c]})},getPercentRange:function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},getValueRange:function(r,s){if(r==null&&s==null){var c=this.findRepresentativeAxisProxy();if(c)return c.getDataValueWindow()}else return this.getAxisProxy(r,s).getDataValueWindow()},findRepresentativeAxisProxy:function(r){if(r)return r.__dzAxisProxy;var s=this._axisProxies;for(var c in s)if(s.hasOwnProperty(c)&&s[c].hostedBy(this))return s[c];for(var c in s)if(s.hasOwnProperty(c)&&!s[c].hostedBy(this))return s[c]},getRangePropMode:function(){return this._rangePropMode.slice()}});function o(r){var s={};return a(["start","end","startValue","endValue","throttle"],function(c){r.hasOwnProperty(c)&&(s[c]=r[c])}),s}function e(r,s){var c=r._rangePropMode,h=r.get("rangeMode");a([["start","startValue"],["end","endValue"]],function(v,A){var b=s[v[0]]!=null,x=s[v[1]]!=null;b&&!x?c[A]="percent":!b&&x?c[A]="value":h?c[A]=h[A]:b&&(c[A]="percent")})}var u=t;R.exports=u},OnYD:function(R,D,n){},"Oy/b":function(R,D,n){(function(g,S){R.exports=S()})(typeof self!="undefined"?self:this,function(){return function(y){var g={};function S(m){if(g[m])return g[m].exports;var p=g[m]={i:m,l:!1,exports:{}};return y[m].call(p.exports,p,p.exports,S),p.l=!0,p.exports}return S.m=y,S.c=g,S.d=function(m,p,f){S.o(m,p)||Object.defineProperty(m,p,{enumerable:!0,get:f})},S.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},S.t=function(m,p){if(p&1&&(m=S(m)),p&8)return m;if(p&4&&typeof m=="object"&&m&&m.__esModule)return m;var f=Object.create(null);if(S.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:m}),p&2&&typeof m!="string")for(var d in m)S.d(f,d,function(l){return m[l]}.bind(null,d));return f},S.n=function(m){var p=m&&m.__esModule?function(){return m.default}:function(){return m};return S.d(p,"a",p),p},S.o=function(m,p){return Object.prototype.hasOwnProperty.call(m,p)},S.p="",S(S.s=1)}([function(y,g,S){},function(y,g,S){"use strict";S.r(g);var m=S(0),p=function(){function Mt(ce,Se,Ie){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ce,this.start=Se,this.end=Ie}return Mt.range=function(Se,Ie){return Ie?!Se||!Se.loc||!Ie.loc||Se.loc.lexer!==Ie.loc.lexer?null:new Mt(Se.loc.lexer,Se.loc.start,Ie.loc.end):Se&&Se.loc},Mt}(),f=function(){function Mt(Se,Ie){this.text=void 0,this.loc=void 0,this.text=Se,this.loc=Ie}var ce=Mt.prototype;return ce.range=function(Ie,Je){return new Mt(Je,p.range(this,Ie))},Mt}(),d=function Mt(ce,Se){this.position=void 0;var Ie="KaTeX parse error: "+ce,Je,Pt=Se&&Se.loc;if(Pt&&Pt.start<=Pt.end){var cr=Pt.lexer.input;Je=Pt.start;var Zr=Pt.end;Je===cr.length?Ie+=" at end of input: ":Ie+=" at position "+(Je+1)+": ";var vn=cr.slice(Je,Zr).replace(/[^]/g,"$&\u0332"),kn;Je>15?kn="\u2026"+cr.slice(Je-15,Je):kn=cr.slice(0,Je);var ci;Zr+15<cr.length?ci=cr.slice(Zr,Zr+15)+"\u2026":ci=cr.slice(Zr),Ie+=kn+vn+ci}var Si=new Error(Ie);return Si.name="ParseError",Si.__proto__=Mt.prototype,Si.position=Je,Si};d.prototype.__proto__=Error.prototype;var l=d,a=function(ce,Se){return ce.indexOf(Se)!==-1},i=function(ce,Se){return ce===void 0?Se:ce},t=/([A-Z])/g,o=function(ce){return ce.replace(t,"-$1").toLowerCase()},e={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},u=/[&><"']/g;function r(Mt){return String(Mt).replace(u,function(ce){return e[ce]})}var s=function Mt(ce){return ce.type==="ordgroup"||ce.type==="color"?ce.body.length===1?Mt(ce.body[0]):ce:ce.type==="font"?Mt(ce.body):ce},c=function(ce){var Se=s(ce);return Se.type==="mathord"||Se.type==="textord"||Se.type==="atom"},h=function(ce){if(!ce)throw new Error("Expected non-null, but got "+String(ce));return ce},v=function(ce){var Se=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(ce);return Se!=null?Se[1]:"_relative"},A={contains:a,deflt:i,escape:r,hyphenate:o,getBaseElem:s,isCharacterBox:c,protocolFromUrl:v},b=function(){function Mt(Se){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,Se=Se||{},this.displayMode=A.deflt(Se.displayMode,!1),this.output=A.deflt(Se.output,"htmlAndMathml"),this.leqno=A.deflt(Se.leqno,!1),this.fleqn=A.deflt(Se.fleqn,!1),this.throwOnError=A.deflt(Se.throwOnError,!0),this.errorColor=A.deflt(Se.errorColor,"#cc0000"),this.macros=Se.macros||{},this.minRuleThickness=Math.max(0,A.deflt(Se.minRuleThickness,0)),this.colorIsTextColor=A.deflt(Se.colorIsTextColor,!1),this.strict=A.deflt(Se.strict,"warn"),this.trust=A.deflt(Se.trust,!1),this.maxSize=Math.max(0,A.deflt(Se.maxSize,Infinity)),this.maxExpand=Math.max(0,A.deflt(Se.maxExpand,1e3))}var ce=Mt.prototype;return ce.reportNonstrict=function(Ie,Je,Pt){var cr=this.strict;if(typeof cr=="function"&&(cr=cr(Ie,Je,Pt)),!cr||cr==="ignore")return;if(cr===!0||cr==="error")throw new l("LaTeX-incompatible input and strict mode is set to 'error': "+(Je+" ["+Ie+"]"),Pt);cr==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Je+" ["+Ie+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+cr+"': "+Je+" ["+Ie+"]"))},ce.useStrictBehavior=function(Ie,Je,Pt){var cr=this.strict;if(typeof cr=="function")try{cr=cr(Ie,Je,Pt)}catch(Zr){cr="error"}return!cr||cr==="ignore"?!1:cr===!0||cr==="error"?!0:cr==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Je+" ["+Ie+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+cr+"': "+Je+" ["+Ie+"]")),!1)},ce.isTrusted=function(Ie){Ie.url&&!Ie.protocol&&(Ie.protocol=A.protocolFromUrl(Ie.url));var Je=typeof this.trust=="function"?this.trust(Ie):this.trust;return Boolean(Je)},Mt}(),x=function(){function Mt(Se,Ie,Je){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=Se,this.size=Ie,this.cramped=Je}var ce=Mt.prototype;return ce.sup=function(){return M[U[this.id]]},ce.sub=function(){return M[P[this.id]]},ce.fracNum=function(){return M[X[this.id]]},ce.fracDen=function(){return M[F[this.id]]},ce.cramp=function(){return M[j[this.id]]},ce.text=function(){return M[K[this.id]]},ce.isTight=function(){return this.size>=2},Mt}(),E=0,T=1,_=2,C=3,w=4,O=5,I=6,k=7,M=[new x(E,0,!1),new x(T,0,!0),new x(_,1,!1),new x(C,1,!0),new x(w,2,!1),new x(O,2,!0),new x(I,3,!1),new x(k,3,!0)],U=[w,O,w,O,I,k,I,k],P=[O,O,O,O,k,k,k,k],X=[_,C,w,O,I,k,I,k],F=[C,C,O,O,k,k,k,k],j=[T,T,C,C,O,O,k,k],K=[E,T,_,C,_,C,_,C],z={DISPLAY:M[E],TEXT:M[_],SCRIPT:M[w],SCRIPTSCRIPT:M[I]},V=[{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 Q(Mt){for(var ce=0;ce<V.length;ce++)for(var Se=V[ce],Ie=0;Ie<Se.blocks.length;Ie++){var Je=Se.blocks[Ie];if(Mt>=Je[0]&&Mt<=Je[1])return Se.name}return null}var G=[];V.forEach(function(Mt){return Mt.blocks.forEach(function(ce){return G.push.apply(G,ce)})});function te(Mt){for(var ce=0;ce<G.length;ce+=2)if(Mt>=G[ce]&&Mt<=G[ce+1])return!0;return!1}var q=80,se=function(ce,Se){return"M95,"+(622+ce+Se)+`
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`+ce/2.075+" -"+ce+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+ce)+`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+ce)+" "+Se+"h400000v"+(40+ce)+"h-400000z"},re=function(ce,Se){return"M263,"+(601+ce+Se)+`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`+ce/2.084+" -"+ce+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+ce)+`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+ce)+" "+Se+"h400000v"+(40+ce)+"h-400000z"},we=function(ce,Se){return"M983 "+(10+ce+Se)+`
l`+ce/3.13+" -"+ce+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+ce)+`
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+ce)+" "+Se+"h400000v"+(40+ce)+"h-400000z"},Oe=function(ce,Se){return"M424,"+(2398+ce+Se)+`
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`+ce/4.223+" -"+ce+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+ce)+`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+ce)+" "+Se+`
h400000v`+(40+ce)+"h-400000z"},Me=function(ce,Se){return"M473,"+(2713+ce+Se)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+ce/5.298+" -"+ce+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+ce)+`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+ce)+" "+Se+"h400000v"+(40+ce)+"H1017.7z"},Qe=function(ce,Se,Ie){var Je=Ie-54-Se-ce;return"M702 "+(ce+Se)+"H400000"+(40+ce)+`
H742v`+Je+`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 `+Se+"H400000v"+(40+ce)+"H742z"},Ve=function(ce,Se,Ie){Se=1e3*Se;var Je="";switch(ce){case"sqrtMain":Je=se(Se,q);break;case"sqrtSize1":Je=re(Se,q);break;case"sqrtSize2":Je=we(Se,q);break;case"sqrtSize3":Je=Oe(Se,q);break;case"sqrtSize4":Je=Me(Se,q);break;case"sqrtTall":Je=Qe(Se,q,Ie)}return Je},dt={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`},Fe=function(){function Mt(Se){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=Se,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ce=Mt.prototype;return ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){for(var Ie=document.createDocumentFragment(),Je=0;Je<this.children.length;Je++)Ie.appendChild(this.children[Je].toNode());return Ie},ce.toMarkup=function(){for(var Ie="",Je=0;Je<this.children.length;Je++)Ie+=this.children[Je].toMarkup();return Ie},ce.toText=function(){var Ie=function(Pt){return Pt.toText()};return this.children.map(Ie).join("")},Mt}(),ue=function(ce){return ce.filter(function(Se){return Se}).join(" ")},et=function(ce,Se,Ie){if(this.classes=ce||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=Ie||{},Se){Se.style.isTight()&&this.classes.push("mtight");var Je=Se.getColor();Je&&(this.style.color=Je)}},he=function(ce){var Se=document.createElement(ce);Se.className=ue(this.classes);for(var Ie in this.style)this.style.hasOwnProperty(Ie)&&(Se.style[Ie]=this.style[Ie]);for(var Je in this.attributes)this.attributes.hasOwnProperty(Je)&&Se.setAttribute(Je,this.attributes[Je]);for(var Pt=0;Pt<this.children.length;Pt++)Se.appendChild(this.children[Pt].toNode());return Se},J=function(ce){var Se="<"+ce;this.classes.length&&(Se+=' class="'+A.escape(ue(this.classes))+'"');var Ie="";for(var Je in this.style)this.style.hasOwnProperty(Je)&&(Ie+=A.hyphenate(Je)+":"+this.style[Je]+";");Ie&&(Se+=' style="'+A.escape(Ie)+'"');for(var Pt in this.attributes)this.attributes.hasOwnProperty(Pt)&&(Se+=" "+Pt+'="'+A.escape(this.attributes[Pt])+'"');Se+=">";for(var cr=0;cr<this.children.length;cr++)Se+=this.children[cr].toMarkup();return Se+="</"+ce+">",Se},Y=function(){function Mt(Se,Ie,Je,Pt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,et.call(this,Se,Je,Pt),this.children=Ie||[]}var ce=Mt.prototype;return ce.setAttribute=function(Ie,Je){this.attributes[Ie]=Je},ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){return he.call(this,"span")},ce.toMarkup=function(){return J.call(this,"span")},Mt}(),$=function(){function Mt(Se,Ie,Je,Pt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,et.call(this,Ie,Pt),this.children=Je||[],this.setAttribute("href",Se)}var ce=Mt.prototype;return ce.setAttribute=function(Ie,Je){this.attributes[Ie]=Je},ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){return he.call(this,"a")},ce.toMarkup=function(){return J.call(this,"a")},Mt}(),de=function(){function Mt(Se,Ie,Je){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=Ie,this.src=Se,this.classes=["mord"],this.style=Je}var ce=Mt.prototype;return ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){var Ie=document.createElement("img");Ie.src=this.src,Ie.alt=this.alt,Ie.className="mord";for(var Je in this.style)this.style.hasOwnProperty(Je)&&(Ie.style[Je]=this.style[Je]);return Ie},ce.toMarkup=function(){var Ie="<img src='"+this.src+" 'alt='"+this.alt+"' ",Je="";for(var Pt in this.style)this.style.hasOwnProperty(Pt)&&(Je+=A.hyphenate(Pt)+":"+this.style[Pt]+";");return Je&&(Ie+=' style="'+A.escape(Je)+'"'),Ie+="'/>",Ie},Mt}(),be={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Te=function(){function Mt(Se,Ie,Je,Pt,cr,Zr,vn,kn){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=Se,this.height=Ie||0,this.depth=Je||0,this.italic=Pt||0,this.skew=cr||0,this.width=Zr||0,this.classes=vn||[],this.style=kn||{},this.maxFontSize=0;var ci=Q(this.text.charCodeAt(0));ci&&this.classes.push(ci+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=be[this.text])}var ce=Mt.prototype;return ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){var Ie=document.createTextNode(this.text),Je=null;this.italic>0&&(Je=document.createElement("span"),Je.style.marginRight=this.italic+"em"),this.classes.length>0&&(Je=Je||document.createElement("span"),Je.className=ue(this.classes));for(var Pt in this.style)this.style.hasOwnProperty(Pt)&&(Je=Je||document.createElement("span"),Je.style[Pt]=this.style[Pt]);return Je?(Je.appendChild(Ie),Je):Ie},ce.toMarkup=function(){var Ie=!1,Je="<span";this.classes.length&&(Ie=!0,Je+=' class="',Je+=A.escape(ue(this.classes)),Je+='"');var Pt="";this.italic>0&&(Pt+="margin-right:"+this.italic+"em;");for(var cr in this.style)this.style.hasOwnProperty(cr)&&(Pt+=A.hyphenate(cr)+":"+this.style[cr]+";");Pt&&(Ie=!0,Je+=' style="'+A.escape(Pt)+'"');var Zr=A.escape(this.text);return Ie?(Je+=">",Je+=Zr,Je+="</span>",Je):Zr},Mt}(),Be=function(){function Mt(Se,Ie){this.children=void 0,this.attributes=void 0,this.children=Se||[],this.attributes=Ie||{}}var ce=Mt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Je=document.createElementNS(Ie,"svg");for(var Pt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Pt)&&Je.setAttribute(Pt,this.attributes[Pt]);for(var cr=0;cr<this.children.length;cr++)Je.appendChild(this.children[cr].toNode());return Je},ce.toMarkup=function(){var Ie="<svg";for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(Ie+=" "+Je+"='"+this.attributes[Je]+"'");Ie+=">";for(var Pt=0;Pt<this.children.length;Pt++)Ie+=this.children[Pt].toMarkup();return Ie+="</svg>",Ie},Mt}(),fe=function(){function Mt(Se,Ie){this.pathName=void 0,this.alternate=void 0,this.pathName=Se,this.alternate=Ie}var ce=Mt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Je=document.createElementNS(Ie,"path");return this.alternate?Je.setAttribute("d",this.alternate):Je.setAttribute("d",dt[this.pathName]),Je},ce.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+dt[this.pathName]+"'/>"},Mt}(),xe=function(){function Mt(Se){this.attributes=void 0,this.attributes=Se||{}}var ce=Mt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Je=document.createElementNS(Ie,"line");for(var Pt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Pt)&&Je.setAttribute(Pt,this.attributes[Pt]);return Je},ce.toMarkup=function(){var Ie="<line";for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(Ie+=" "+Je+"='"+this.attributes[Je]+"'");return Ie+="/>",Ie},Mt}();function ke(Mt){if(Mt instanceof Te)return Mt;throw new Error("Expected symbolNode but got "+String(Mt)+".")}function nt(Mt){if(Mt instanceof Y)return Mt;throw new Error("Expected span<HtmlDomNode> but got "+String(Mt)+".")}var Ct={"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]}},pt={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]},He={\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 nr(Mt,ce){Ct[Mt]=ce}function ht(Mt,ce,Se){if(!Ct[ce])throw new Error("Font metrics not found for font: "+ce+".");var Ie=Mt.charCodeAt(0),Je=Ct[ce][Ie];if(!Je&&Mt[0]in He&&(Ie=He[Mt[0]].charCodeAt(0),Je=Ct[ce][Ie]),!Je&&Se==="text"&&(te(Ie)&&(Je=Ct[ce][77])),Je)return{depth:Je[0],height:Je[1],italic:Je[2],skew:Je[3],width:Je[4]}}var Gt={};function pr(Mt){var ce;if(Mt>=5?ce=0:Mt>=3?ce=1:ce=2,!Gt[ce]){var Se=Gt[ce]={cssEmPerMu:pt.quad[ce]/18};for(var Ie in pt)pt.hasOwnProperty(Ie)&&(Se[Ie]=pt[Ie][ce])}return Gt[ce]}var Qt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Ht={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Jt={math:{},text:{}},Ge=Jt;function pe(Mt,ce,Se,Ie,Je,Pt){Jt[Mt][Je]={font:ce,group:Se,replace:Ie},Pt&&Ie&&(Jt[Mt][Ie]=Jt[Mt][Je])}var oe="math",ct="text",qe="main",me="ams",Kt="accent-token",vr="bin",bt="close",or="inner",_t="mathord",jt="op-token",ut="open",St="punct",mt="rel",lt="spacing",tt="textord";pe(oe,qe,mt,"\u2261","\\equiv",!0),pe(oe,qe,mt,"\u227A","\\prec",!0),pe(oe,qe,mt,"\u227B","\\succ",!0),pe(oe,qe,mt,"\u223C","\\sim",!0),pe(oe,qe,mt,"\u22A5","\\perp"),pe(oe,qe,mt,"\u2AAF","\\preceq",!0),pe(oe,qe,mt,"\u2AB0","\\succeq",!0),pe(oe,qe,mt,"\u2243","\\simeq",!0),pe(oe,qe,mt,"\u2223","\\mid",!0),pe(oe,qe,mt,"\u226A","\\ll",!0),pe(oe,qe,mt,"\u226B","\\gg",!0),pe(oe,qe,mt,"\u224D","\\asymp",!0),pe(oe,qe,mt,"\u2225","\\parallel"),pe(oe,qe,mt,"\u22C8","\\bowtie",!0),pe(oe,qe,mt,"\u2323","\\smile",!0),pe(oe,qe,mt,"\u2291","\\sqsubseteq",!0),pe(oe,qe,mt,"\u2292","\\sqsupseteq",!0),pe(oe,qe,mt,"\u2250","\\doteq",!0),pe(oe,qe,mt,"\u2322","\\frown",!0),pe(oe,qe,mt,"\u220B","\\ni",!0),pe(oe,qe,mt,"\u221D","\\propto",!0),pe(oe,qe,mt,"\u22A2","\\vdash",!0),pe(oe,qe,mt,"\u22A3","\\dashv",!0),pe(oe,qe,mt,"\u220B","\\owns"),pe(oe,qe,St,".","\\ldotp"),pe(oe,qe,St,"\u22C5","\\cdotp"),pe(oe,qe,tt,"#","\\#"),pe(ct,qe,tt,"#","\\#"),pe(oe,qe,tt,"&","\\&"),pe(ct,qe,tt,"&","\\&"),pe(oe,qe,tt,"\u2135","\\aleph",!0),pe(oe,qe,tt,"\u2200","\\forall",!0),pe(oe,qe,tt,"\u210F","\\hbar",!0),pe(oe,qe,tt,"\u2203","\\exists",!0),pe(oe,qe,tt,"\u2207","\\nabla",!0),pe(oe,qe,tt,"\u266D","\\flat",!0),pe(oe,qe,tt,"\u2113","\\ell",!0),pe(oe,qe,tt,"\u266E","\\natural",!0),pe(oe,qe,tt,"\u2663","\\clubsuit",!0),pe(oe,qe,tt,"\u2118","\\wp",!0),pe(oe,qe,tt,"\u266F","\\sharp",!0),pe(oe,qe,tt,"\u2662","\\diamondsuit",!0),pe(oe,qe,tt,"\u211C","\\Re",!0),pe(oe,qe,tt,"\u2661","\\heartsuit",!0),pe(oe,qe,tt,"\u2111","\\Im",!0),pe(oe,qe,tt,"\u2660","\\spadesuit",!0),pe(ct,qe,tt,"\xA7","\\S",!0),pe(ct,qe,tt,"\xB6","\\P",!0),pe(oe,qe,tt,"\u2020","\\dag"),pe(ct,qe,tt,"\u2020","\\dag"),pe(ct,qe,tt,"\u2020","\\textdagger"),pe(oe,qe,tt,"\u2021","\\ddag"),pe(ct,qe,tt,"\u2021","\\ddag"),pe(ct,qe,tt,"\u2021","\\textdaggerdbl"),pe(oe,qe,bt,"\u23B1","\\rmoustache",!0),pe(oe,qe,ut,"\u23B0","\\lmoustache",!0),pe(oe,qe,bt,"\u27EF","\\rgroup",!0),pe(oe,qe,ut,"\u27EE","\\lgroup",!0),pe(oe,qe,vr,"\u2213","\\mp",!0),pe(oe,qe,vr,"\u2296","\\ominus",!0),pe(oe,qe,vr,"\u228E","\\uplus",!0),pe(oe,qe,vr,"\u2293","\\sqcap",!0),pe(oe,qe,vr,"\u2217","\\ast"),pe(oe,qe,vr,"\u2294","\\sqcup",!0),pe(oe,qe,vr,"\u25EF","\\bigcirc"),pe(oe,qe,vr,"\u2219","\\bullet"),pe(oe,qe,vr,"\u2021","\\ddagger"),pe(oe,qe,vr,"\u2240","\\wr",!0),pe(oe,qe,vr,"\u2A3F","\\amalg"),pe(oe,qe,vr,"&","\\And"),pe(oe,qe,mt,"\u27F5","\\longleftarrow",!0),pe(oe,qe,mt,"\u21D0","\\Leftarrow",!0),pe(oe,qe,mt,"\u27F8","\\Longleftarrow",!0),pe(oe,qe,mt,"\u27F6","\\longrightarrow",!0),pe(oe,qe,mt,"\u21D2","\\Rightarrow",!0),pe(oe,qe,mt,"\u27F9","\\Longrightarrow",!0),pe(oe,qe,mt,"\u2194","\\leftrightarrow",!0),pe(oe,qe,mt,"\u27F7","\\longleftrightarrow",!0),pe(oe,qe,mt,"\u21D4","\\Leftrightarrow",!0),pe(oe,qe,mt,"\u27FA","\\Longleftrightarrow",!0),pe(oe,qe,mt,"\u21A6","\\mapsto",!0),pe(oe,qe,mt,"\u27FC","\\longmapsto",!0),pe(oe,qe,mt,"\u2197","\\nearrow",!0),pe(oe,qe,mt,"\u21A9","\\hookleftarrow",!0),pe(oe,qe,mt,"\u21AA","\\hookrightarrow",!0),pe(oe,qe,mt,"\u2198","\\searrow",!0),pe(oe,qe,mt,"\u21BC","\\leftharpoonup",!0),pe(oe,qe,mt,"\u21C0","\\rightharpoonup",!0),pe(oe,qe,mt,"\u2199","\\swarrow",!0),pe(oe,qe,mt,"\u21BD","\\leftharpoondown",!0),pe(oe,qe,mt,"\u21C1","\\rightharpoondown",!0),pe(oe,qe,mt,"\u2196","\\nwarrow",!0),pe(oe,qe,mt,"\u21CC","\\rightleftharpoons",!0),pe(oe,me,mt,"\u226E","\\nless",!0),pe(oe,me,mt,"\uE010","\\@nleqslant"),pe(oe,me,mt,"\uE011","\\@nleqq"),pe(oe,me,mt,"\u2A87","\\lneq",!0),pe(oe,me,mt,"\u2268","\\lneqq",!0),pe(oe,me,mt,"\uE00C","\\@lvertneqq"),pe(oe,me,mt,"\u22E6","\\lnsim",!0),pe(oe,me,mt,"\u2A89","\\lnapprox",!0),pe(oe,me,mt,"\u2280","\\nprec",!0),pe(oe,me,mt,"\u22E0","\\npreceq",!0),pe(oe,me,mt,"\u22E8","\\precnsim",!0),pe(oe,me,mt,"\u2AB9","\\precnapprox",!0),pe(oe,me,mt,"\u2241","\\nsim",!0),pe(oe,me,mt,"\uE006","\\@nshortmid"),pe(oe,me,mt,"\u2224","\\nmid",!0),pe(oe,me,mt,"\u22AC","\\nvdash",!0),pe(oe,me,mt,"\u22AD","\\nvDash",!0),pe(oe,me,mt,"\u22EA","\\ntriangleleft"),pe(oe,me,mt,"\u22EC","\\ntrianglelefteq",!0),pe(oe,me,mt,"\u228A","\\subsetneq",!0),pe(oe,me,mt,"\uE01A","\\@varsubsetneq"),pe(oe,me,mt,"\u2ACB","\\subsetneqq",!0),pe(oe,me,mt,"\uE017","\\@varsubsetneqq"),pe(oe,me,mt,"\u226F","\\ngtr",!0),pe(oe,me,mt,"\uE00F","\\@ngeqslant"),pe(oe,me,mt,"\uE00E","\\@ngeqq"),pe(oe,me,mt,"\u2A88","\\gneq",!0),pe(oe,me,mt,"\u2269","\\gneqq",!0),pe(oe,me,mt,"\uE00D","\\@gvertneqq"),pe(oe,me,mt,"\u22E7","\\gnsim",!0),pe(oe,me,mt,"\u2A8A","\\gnapprox",!0),pe(oe,me,mt,"\u2281","\\nsucc",!0),pe(oe,me,mt,"\u22E1","\\nsucceq",!0),pe(oe,me,mt,"\u22E9","\\succnsim",!0),pe(oe,me,mt,"\u2ABA","\\succnapprox",!0),pe(oe,me,mt,"\u2246","\\ncong",!0),pe(oe,me,mt,"\uE007","\\@nshortparallel"),pe(oe,me,mt,"\u2226","\\nparallel",!0),pe(oe,me,mt,"\u22AF","\\nVDash",!0),pe(oe,me,mt,"\u22EB","\\ntriangleright"),pe(oe,me,mt,"\u22ED","\\ntrianglerighteq",!0),pe(oe,me,mt,"\uE018","\\@nsupseteqq"),pe(oe,me,mt,"\u228B","\\supsetneq",!0),pe(oe,me,mt,"\uE01B","\\@varsupsetneq"),pe(oe,me,mt,"\u2ACC","\\supsetneqq",!0),pe(oe,me,mt,"\uE019","\\@varsupsetneqq"),pe(oe,me,mt,"\u22AE","\\nVdash",!0),pe(oe,me,mt,"\u2AB5","\\precneqq",!0),pe(oe,me,mt,"\u2AB6","\\succneqq",!0),pe(oe,me,mt,"\uE016","\\@nsubseteqq"),pe(oe,me,vr,"\u22B4","\\unlhd"),pe(oe,me,vr,"\u22B5","\\unrhd"),pe(oe,me,mt,"\u219A","\\nleftarrow",!0),pe(oe,me,mt,"\u219B","\\nrightarrow",!0),pe(oe,me,mt,"\u21CD","\\nLeftarrow",!0),pe(oe,me,mt,"\u21CF","\\nRightarrow",!0),pe(oe,me,mt,"\u21AE","\\nleftrightarrow",!0),pe(oe,me,mt,"\u21CE","\\nLeftrightarrow",!0),pe(oe,me,mt,"\u25B3","\\vartriangle"),pe(oe,me,tt,"\u210F","\\hslash"),pe(oe,me,tt,"\u25BD","\\triangledown"),pe(oe,me,tt,"\u25CA","\\lozenge"),pe(oe,me,tt,"\u24C8","\\circledS"),pe(oe,me,tt,"\xAE","\\circledR"),pe(ct,me,tt,"\xAE","\\circledR"),pe(oe,me,tt,"\u2221","\\measuredangle",!0),pe(oe,me,tt,"\u2204","\\nexists"),pe(oe,me,tt,"\u2127","\\mho"),pe(oe,me,tt,"\u2132","\\Finv",!0),pe(oe,me,tt,"\u2141","\\Game",!0),pe(oe,me,tt,"\u2035","\\backprime"),pe(oe,me,tt,"\u25B2","\\blacktriangle"),pe(oe,me,tt,"\u25BC","\\blacktriangledown"),pe(oe,me,tt,"\u25A0","\\blacksquare"),pe(oe,me,tt,"\u29EB","\\blacklozenge"),pe(oe,me,tt,"\u2605","\\bigstar"),pe(oe,me,tt,"\u2222","\\sphericalangle",!0),pe(oe,me,tt,"\u2201","\\complement",!0),pe(oe,me,tt,"\xF0","\\eth",!0),pe(oe,me,tt,"\u2571","\\diagup"),pe(oe,me,tt,"\u2572","\\diagdown"),pe(oe,me,tt,"\u25A1","\\square"),pe(oe,me,tt,"\u25A1","\\Box"),pe(oe,me,tt,"\u25CA","\\Diamond"),pe(oe,me,tt,"\xA5","\\yen",!0),pe(ct,me,tt,"\xA5","\\yen",!0),pe(oe,me,tt,"\u2713","\\checkmark",!0),pe(ct,me,tt,"\u2713","\\checkmark"),pe(oe,me,tt,"\u2136","\\beth",!0),pe(oe,me,tt,"\u2138","\\daleth",!0),pe(oe,me,tt,"\u2137","\\gimel",!0),pe(oe,me,tt,"\u03DD","\\digamma",!0),pe(oe,me,tt,"\u03F0","\\varkappa"),pe(oe,me,ut,"\u250C","\\ulcorner",!0),pe(oe,me,bt,"\u2510","\\urcorner",!0),pe(oe,me,ut,"\u2514","\\llcorner",!0),pe(oe,me,bt,"\u2518","\\lrcorner",!0),pe(oe,me,mt,"\u2266","\\leqq",!0),pe(oe,me,mt,"\u2A7D","\\leqslant",!0),pe(oe,me,mt,"\u2A95","\\eqslantless",!0),pe(oe,me,mt,"\u2272","\\lesssim",!0),pe(oe,me,mt,"\u2A85","\\lessapprox",!0),pe(oe,me,mt,"\u224A","\\approxeq",!0),pe(oe,me,vr,"\u22D6","\\lessdot"),pe(oe,me,mt,"\u22D8","\\lll",!0),pe(oe,me,mt,"\u2276","\\lessgtr",!0),pe(oe,me,mt,"\u22DA","\\lesseqgtr",!0),pe(oe,me,mt,"\u2A8B","\\lesseqqgtr",!0),pe(oe,me,mt,"\u2251","\\doteqdot"),pe(oe,me,mt,"\u2253","\\risingdotseq",!0),pe(oe,me,mt,"\u2252","\\fallingdotseq",!0),pe(oe,me,mt,"\u223D","\\backsim",!0),pe(oe,me,mt,"\u22CD","\\backsimeq",!0),pe(oe,me,mt,"\u2AC5","\\subseteqq",!0),pe(oe,me,mt,"\u22D0","\\Subset",!0),pe(oe,me,mt,"\u228F","\\sqsubset",!0),pe(oe,me,mt,"\u227C","\\preccurlyeq",!0),pe(oe,me,mt,"\u22DE","\\curlyeqprec",!0),pe(oe,me,mt,"\u227E","\\precsim",!0),pe(oe,me,mt,"\u2AB7","\\precapprox",!0),pe(oe,me,mt,"\u22B2","\\vartriangleleft"),pe(oe,me,mt,"\u22B4","\\trianglelefteq"),pe(oe,me,mt,"\u22A8","\\vDash",!0),pe(oe,me,mt,"\u22AA","\\Vvdash",!0),pe(oe,me,mt,"\u2323","\\smallsmile"),pe(oe,me,mt,"\u2322","\\smallfrown"),pe(oe,me,mt,"\u224F","\\bumpeq",!0),pe(oe,me,mt,"\u224E","\\Bumpeq",!0),pe(oe,me,mt,"\u2267","\\geqq",!0),pe(oe,me,mt,"\u2A7E","\\geqslant",!0),pe(oe,me,mt,"\u2A96","\\eqslantgtr",!0),pe(oe,me,mt,"\u2273","\\gtrsim",!0),pe(oe,me,mt,"\u2A86","\\gtrapprox",!0),pe(oe,me,vr,"\u22D7","\\gtrdot"),pe(oe,me,mt,"\u22D9","\\ggg",!0),pe(oe,me,mt,"\u2277","\\gtrless",!0),pe(oe,me,mt,"\u22DB","\\gtreqless",!0),pe(oe,me,mt,"\u2A8C","\\gtreqqless",!0),pe(oe,me,mt,"\u2256","\\eqcirc",!0),pe(oe,me,mt,"\u2257","\\circeq",!0),pe(oe,me,mt,"\u225C","\\triangleq",!0),pe(oe,me,mt,"\u223C","\\thicksim"),pe(oe,me,mt,"\u2248","\\thickapprox"),pe(oe,me,mt,"\u2AC6","\\supseteqq",!0),pe(oe,me,mt,"\u22D1","\\Supset",!0),pe(oe,me,mt,"\u2290","\\sqsupset",!0),pe(oe,me,mt,"\u227D","\\succcurlyeq",!0),pe(oe,me,mt,"\u22DF","\\curlyeqsucc",!0),pe(oe,me,mt,"\u227F","\\succsim",!0),pe(oe,me,mt,"\u2AB8","\\succapprox",!0),pe(oe,me,mt,"\u22B3","\\vartriangleright"),pe(oe,me,mt,"\u22B5","\\trianglerighteq"),pe(oe,me,mt,"\u22A9","\\Vdash",!0),pe(oe,me,mt,"\u2223","\\shortmid"),pe(oe,me,mt,"\u2225","\\shortparallel"),pe(oe,me,mt,"\u226C","\\between",!0),pe(oe,me,mt,"\u22D4","\\pitchfork",!0),pe(oe,me,mt,"\u221D","\\varpropto"),pe(oe,me,mt,"\u25C0","\\blacktriangleleft"),pe(oe,me,mt,"\u2234","\\therefore",!0),pe(oe,me,mt,"\u220D","\\backepsilon"),pe(oe,me,mt,"\u25B6","\\blacktriangleright"),pe(oe,me,mt,"\u2235","\\because",!0),pe(oe,me,mt,"\u22D8","\\llless"),pe(oe,me,mt,"\u22D9","\\gggtr"),pe(oe,me,vr,"\u22B2","\\lhd"),pe(oe,me,vr,"\u22B3","\\rhd"),pe(oe,me,mt,"\u2242","\\eqsim",!0),pe(oe,qe,mt,"\u22C8","\\Join"),pe(oe,me,mt,"\u2251","\\Doteq",!0),pe(oe,me,vr,"\u2214","\\dotplus",!0),pe(oe,me,vr,"\u2216","\\smallsetminus"),pe(oe,me,vr,"\u22D2","\\Cap",!0),pe(oe,me,vr,"\u22D3","\\Cup",!0),pe(oe,me,vr,"\u2A5E","\\doublebarwedge",!0),pe(oe,me,vr,"\u229F","\\boxminus",!0),pe(oe,me,vr,"\u229E","\\boxplus",!0),pe(oe,me,vr,"\u22C7","\\divideontimes",!0),pe(oe,me,vr,"\u22C9","\\ltimes",!0),pe(oe,me,vr,"\u22CA","\\rtimes",!0),pe(oe,me,vr,"\u22CB","\\leftthreetimes",!0),pe(oe,me,vr,"\u22CC","\\rightthreetimes",!0),pe(oe,me,vr,"\u22CF","\\curlywedge",!0),pe(oe,me,vr,"\u22CE","\\curlyvee",!0),pe(oe,me,vr,"\u229D","\\circleddash",!0),pe(oe,me,vr,"\u229B","\\circledast",!0),pe(oe,me,vr,"\u22C5","\\centerdot"),pe(oe,me,vr,"\u22BA","\\intercal",!0),pe(oe,me,vr,"\u22D2","\\doublecap"),pe(oe,me,vr,"\u22D3","\\doublecup"),pe(oe,me,vr,"\u22A0","\\boxtimes",!0),pe(oe,me,mt,"\u21E2","\\dashrightarrow",!0),pe(oe,me,mt,"\u21E0","\\dashleftarrow",!0),pe(oe,me,mt,"\u21C7","\\leftleftarrows",!0),pe(oe,me,mt,"\u21C6","\\leftrightarrows",!0),pe(oe,me,mt,"\u21DA","\\Lleftarrow",!0),pe(oe,me,mt,"\u219E","\\twoheadleftarrow",!0),pe(oe,me,mt,"\u21A2","\\leftarrowtail",!0),pe(oe,me,mt,"\u21AB","\\looparrowleft",!0),pe(oe,me,mt,"\u21CB","\\leftrightharpoons",!0),pe(oe,me,mt,"\u21B6","\\curvearrowleft",!0),pe(oe,me,mt,"\u21BA","\\circlearrowleft",!0),pe(oe,me,mt,"\u21B0","\\Lsh",!0),pe(oe,me,mt,"\u21C8","\\upuparrows",!0),pe(oe,me,mt,"\u21BF","\\upharpoonleft",!0),pe(oe,me,mt,"\u21C3","\\downharpoonleft",!0),pe(oe,me,mt,"\u22B8","\\multimap",!0),pe(oe,me,mt,"\u21AD","\\leftrightsquigarrow",!0),pe(oe,me,mt,"\u21C9","\\rightrightarrows",!0),pe(oe,me,mt,"\u21C4","\\rightleftarrows",!0),pe(oe,me,mt,"\u21A0","\\twoheadrightarrow",!0),pe(oe,me,mt,"\u21A3","\\rightarrowtail",!0),pe(oe,me,mt,"\u21AC","\\looparrowright",!0),pe(oe,me,mt,"\u21B7","\\curvearrowright",!0),pe(oe,me,mt,"\u21BB","\\circlearrowright",!0),pe(oe,me,mt,"\u21B1","\\Rsh",!0),pe(oe,me,mt,"\u21CA","\\downdownarrows",!0),pe(oe,me,mt,"\u21BE","\\upharpoonright",!0),pe(oe,me,mt,"\u21C2","\\downharpoonright",!0),pe(oe,me,mt,"\u21DD","\\rightsquigarrow",!0),pe(oe,me,mt,"\u21DD","\\leadsto"),pe(oe,me,mt,"\u21DB","\\Rrightarrow",!0),pe(oe,me,mt,"\u21BE","\\restriction"),pe(oe,qe,tt,"\u2018","`"),pe(oe,qe,tt,"$","\\$"),pe(ct,qe,tt,"$","\\$"),pe(ct,qe,tt,"$","\\textdollar"),pe(oe,qe,tt,"%","\\%"),pe(ct,qe,tt,"%","\\%"),pe(oe,qe,tt,"_","\\_"),pe(ct,qe,tt,"_","\\_"),pe(ct,qe,tt,"_","\\textunderscore"),pe(oe,qe,tt,"\u2220","\\angle",!0),pe(oe,qe,tt,"\u221E","\\infty",!0),pe(oe,qe,tt,"\u2032","\\prime"),pe(oe,qe,tt,"\u25B3","\\triangle"),pe(oe,qe,tt,"\u0393","\\Gamma",!0),pe(oe,qe,tt,"\u0394","\\Delta",!0),pe(oe,qe,tt,"\u0398","\\Theta",!0),pe(oe,qe,tt,"\u039B","\\Lambda",!0),pe(oe,qe,tt,"\u039E","\\Xi",!0),pe(oe,qe,tt,"\u03A0","\\Pi",!0),pe(oe,qe,tt,"\u03A3","\\Sigma",!0),pe(oe,qe,tt,"\u03A5","\\Upsilon",!0),pe(oe,qe,tt,"\u03A6","\\Phi",!0),pe(oe,qe,tt,"\u03A8","\\Psi",!0),pe(oe,qe,tt,"\u03A9","\\Omega",!0),pe(oe,qe,tt,"A","\u0391"),pe(oe,qe,tt,"B","\u0392"),pe(oe,qe,tt,"E","\u0395"),pe(oe,qe,tt,"Z","\u0396"),pe(oe,qe,tt,"H","\u0397"),pe(oe,qe,tt,"I","\u0399"),pe(oe,qe,tt,"K","\u039A"),pe(oe,qe,tt,"M","\u039C"),pe(oe,qe,tt,"N","\u039D"),pe(oe,qe,tt,"O","\u039F"),pe(oe,qe,tt,"P","\u03A1"),pe(oe,qe,tt,"T","\u03A4"),pe(oe,qe,tt,"X","\u03A7"),pe(oe,qe,tt,"\xAC","\\neg",!0),pe(oe,qe,tt,"\xAC","\\lnot"),pe(oe,qe,tt,"\u22A4","\\top"),pe(oe,qe,tt,"\u22A5","\\bot"),pe(oe,qe,tt,"\u2205","\\emptyset"),pe(oe,me,tt,"\u2205","\\varnothing"),pe(oe,qe,_t,"\u03B1","\\alpha",!0),pe(oe,qe,_t,"\u03B2","\\beta",!0),pe(oe,qe,_t,"\u03B3","\\gamma",!0),pe(oe,qe,_t,"\u03B4","\\delta",!0),pe(oe,qe,_t,"\u03F5","\\epsilon",!0),pe(oe,qe,_t,"\u03B6","\\zeta",!0),pe(oe,qe,_t,"\u03B7","\\eta",!0),pe(oe,qe,_t,"\u03B8","\\theta",!0),pe(oe,qe,_t,"\u03B9","\\iota",!0),pe(oe,qe,_t,"\u03BA","\\kappa",!0),pe(oe,qe,_t,"\u03BB","\\lambda",!0),pe(oe,qe,_t,"\u03BC","\\mu",!0),pe(oe,qe,_t,"\u03BD","\\nu",!0),pe(oe,qe,_t,"\u03BE","\\xi",!0),pe(oe,qe,_t,"\u03BF","\\omicron",!0),pe(oe,qe,_t,"\u03C0","\\pi",!0),pe(oe,qe,_t,"\u03C1","\\rho",!0),pe(oe,qe,_t,"\u03C3","\\sigma",!0),pe(oe,qe,_t,"\u03C4","\\tau",!0),pe(oe,qe,_t,"\u03C5","\\upsilon",!0),pe(oe,qe,_t,"\u03D5","\\phi",!0),pe(oe,qe,_t,"\u03C7","\\chi",!0),pe(oe,qe,_t,"\u03C8","\\psi",!0),pe(oe,qe,_t,"\u03C9","\\omega",!0),pe(oe,qe,_t,"\u03B5","\\varepsilon",!0),pe(oe,qe,_t,"\u03D1","\\vartheta",!0),pe(oe,qe,_t,"\u03D6","\\varpi",!0),pe(oe,qe,_t,"\u03F1","\\varrho",!0),pe(oe,qe,_t,"\u03C2","\\varsigma",!0),pe(oe,qe,_t,"\u03C6","\\varphi",!0),pe(oe,qe,vr,"\u2217","*"),pe(oe,qe,vr,"+","+"),pe(oe,qe,vr,"\u2212","-"),pe(oe,qe,vr,"\u22C5","\\cdot",!0),pe(oe,qe,vr,"\u2218","\\circ"),pe(oe,qe,vr,"\xF7","\\div",!0),pe(oe,qe,vr,"\xB1","\\pm",!0),pe(oe,qe,vr,"\xD7","\\times",!0),pe(oe,qe,vr,"\u2229","\\cap",!0),pe(oe,qe,vr,"\u222A","\\cup",!0),pe(oe,qe,vr,"\u2216","\\setminus"),pe(oe,qe,vr,"\u2227","\\land"),pe(oe,qe,vr,"\u2228","\\lor"),pe(oe,qe,vr,"\u2227","\\wedge",!0),pe(oe,qe,vr,"\u2228","\\vee",!0),pe(oe,qe,tt,"\u221A","\\surd"),pe(oe,qe,ut,"(","("),pe(oe,qe,ut,"[","["),pe(oe,qe,ut,"\u27E8","\\langle",!0),pe(oe,qe,ut,"\u2223","\\lvert"),pe(oe,qe,ut,"\u2225","\\lVert"),pe(oe,qe,bt,")",")"),pe(oe,qe,bt,"]","]"),pe(oe,qe,bt,"?","?"),pe(oe,qe,bt,"!","!"),pe(oe,qe,bt,"\u27E9","\\rangle",!0),pe(oe,qe,bt,"\u2223","\\rvert"),pe(oe,qe,bt,"\u2225","\\rVert"),pe(oe,qe,mt,"=","="),pe(oe,qe,mt,"<","<"),pe(oe,qe,mt,">",">"),pe(oe,qe,mt,":",":"),pe(oe,qe,mt,"\u2248","\\approx",!0),pe(oe,qe,mt,"\u2245","\\cong",!0),pe(oe,qe,mt,"\u2265","\\ge"),pe(oe,qe,mt,"\u2265","\\geq",!0),pe(oe,qe,mt,"\u2190","\\gets"),pe(oe,qe,mt,">","\\gt"),pe(oe,qe,mt,"\u2208","\\in",!0),pe(oe,qe,mt,"\uE020","\\@not"),pe(oe,qe,mt,"\u2282","\\subset",!0),pe(oe,qe,mt,"\u2283","\\supset",!0),pe(oe,qe,mt,"\u2286","\\subseteq",!0),pe(oe,qe,mt,"\u2287","\\supseteq",!0),pe(oe,me,mt,"\u2288","\\nsubseteq",!0),pe(oe,me,mt,"\u2289","\\nsupseteq",!0),pe(oe,qe,mt,"\u22A8","\\models"),pe(oe,qe,mt,"\u2190","\\leftarrow",!0),pe(oe,qe,mt,"\u2264","\\le"),pe(oe,qe,mt,"\u2264","\\leq",!0),pe(oe,qe,mt,"<","\\lt"),pe(oe,qe,mt,"\u2192","\\rightarrow",!0),pe(oe,qe,mt,"\u2192","\\to"),pe(oe,me,mt,"\u2271","\\ngeq",!0),pe(oe,me,mt,"\u2270","\\nleq",!0),pe(oe,qe,lt,"\xA0","\\ "),pe(oe,qe,lt,"\xA0","~"),pe(oe,qe,lt,"\xA0","\\space"),pe(oe,qe,lt,"\xA0","\\nobreakspace"),pe(ct,qe,lt,"\xA0","\\ "),pe(ct,qe,lt,"\xA0","~"),pe(ct,qe,lt,"\xA0","\\space"),pe(ct,qe,lt,"\xA0","\\nobreakspace"),pe(oe,qe,lt,null,"\\nobreak"),pe(oe,qe,lt,null,"\\allowbreak"),pe(oe,qe,St,",",","),pe(oe,qe,St,";",";"),pe(oe,me,vr,"\u22BC","\\barwedge",!0),pe(oe,me,vr,"\u22BB","\\veebar",!0),pe(oe,qe,vr,"\u2299","\\odot",!0),pe(oe,qe,vr,"\u2295","\\oplus",!0),pe(oe,qe,vr,"\u2297","\\otimes",!0),pe(oe,qe,tt,"\u2202","\\partial",!0),pe(oe,qe,vr,"\u2298","\\oslash",!0),pe(oe,me,vr,"\u229A","\\circledcirc",!0),pe(oe,me,vr,"\u22A1","\\boxdot",!0),pe(oe,qe,vr,"\u25B3","\\bigtriangleup"),pe(oe,qe,vr,"\u25BD","\\bigtriangledown"),pe(oe,qe,vr,"\u2020","\\dagger"),pe(oe,qe,vr,"\u22C4","\\diamond"),pe(oe,qe,vr,"\u22C6","\\star"),pe(oe,qe,vr,"\u25C3","\\triangleleft"),pe(oe,qe,vr,"\u25B9","\\triangleright"),pe(oe,qe,ut,"{","\\{"),pe(ct,qe,tt,"{","\\{"),pe(ct,qe,tt,"{","\\textbraceleft"),pe(oe,qe,bt,"}","\\}"),pe(ct,qe,tt,"}","\\}"),pe(ct,qe,tt,"}","\\textbraceright"),pe(oe,qe,ut,"{","\\lbrace"),pe(oe,qe,bt,"}","\\rbrace"),pe(oe,qe,ut,"[","\\lbrack"),pe(ct,qe,tt,"[","\\lbrack"),pe(oe,qe,bt,"]","\\rbrack"),pe(ct,qe,tt,"]","\\rbrack"),pe(oe,qe,ut,"(","\\lparen"),pe(oe,qe,bt,")","\\rparen"),pe(ct,qe,tt,"<","\\textless"),pe(ct,qe,tt,">","\\textgreater"),pe(oe,qe,ut,"\u230A","\\lfloor",!0),pe(oe,qe,bt,"\u230B","\\rfloor",!0),pe(oe,qe,ut,"\u2308","\\lceil",!0),pe(oe,qe,bt,"\u2309","\\rceil",!0),pe(oe,qe,tt,"\\","\\backslash"),pe(oe,qe,tt,"\u2223","|"),pe(oe,qe,tt,"\u2223","\\vert"),pe(ct,qe,tt,"|","\\textbar"),pe(oe,qe,tt,"\u2225","\\|"),pe(oe,qe,tt,"\u2225","\\Vert"),pe(ct,qe,tt,"\u2225","\\textbardbl"),pe(ct,qe,tt,"~","\\textasciitilde"),pe(ct,qe,tt,"\\","\\textbackslash"),pe(ct,qe,tt,"^","\\textasciicircum"),pe(oe,qe,mt,"\u2191","\\uparrow",!0),pe(oe,qe,mt,"\u21D1","\\Uparrow",!0),pe(oe,qe,mt,"\u2193","\\downarrow",!0),pe(oe,qe,mt,"\u21D3","\\Downarrow",!0),pe(oe,qe,mt,"\u2195","\\updownarrow",!0),pe(oe,qe,mt,"\u21D5","\\Updownarrow",!0),pe(oe,qe,jt,"\u2210","\\coprod"),pe(oe,qe,jt,"\u22C1","\\bigvee"),pe(oe,qe,jt,"\u22C0","\\bigwedge"),pe(oe,qe,jt,"\u2A04","\\biguplus"),pe(oe,qe,jt,"\u22C2","\\bigcap"),pe(oe,qe,jt,"\u22C3","\\bigcup"),pe(oe,qe,jt,"\u222B","\\int"),pe(oe,qe,jt,"\u222B","\\intop"),pe(oe,qe,jt,"\u222C","\\iint"),pe(oe,qe,jt,"\u222D","\\iiint"),pe(oe,qe,jt,"\u220F","\\prod"),pe(oe,qe,jt,"\u2211","\\sum"),pe(oe,qe,jt,"\u2A02","\\bigotimes"),pe(oe,qe,jt,"\u2A01","\\bigoplus"),pe(oe,qe,jt,"\u2A00","\\bigodot"),pe(oe,qe,jt,"\u222E","\\oint"),pe(oe,qe,jt,"\u222F","\\oiint"),pe(oe,qe,jt,"\u2230","\\oiiint"),pe(oe,qe,jt,"\u2A06","\\bigsqcup"),pe(oe,qe,jt,"\u222B","\\smallint"),pe(ct,qe,or,"\u2026","\\textellipsis"),pe(oe,qe,or,"\u2026","\\mathellipsis"),pe(ct,qe,or,"\u2026","\\ldots",!0),pe(oe,qe,or,"\u2026","\\ldots",!0),pe(oe,qe,or,"\u22EF","\\@cdots",!0),pe(oe,qe,or,"\u22F1","\\ddots",!0),pe(oe,qe,tt,"\u22EE","\\varvdots"),pe(oe,qe,Kt,"\u02CA","\\acute"),pe(oe,qe,Kt,"\u02CB","\\grave"),pe(oe,qe,Kt,"\xA8","\\ddot"),pe(oe,qe,Kt,"~","\\tilde"),pe(oe,qe,Kt,"\u02C9","\\bar"),pe(oe,qe,Kt,"\u02D8","\\breve"),pe(oe,qe,Kt,"\u02C7","\\check"),pe(oe,qe,Kt,"^","\\hat"),pe(oe,qe,Kt,"\u20D7","\\vec"),pe(oe,qe,Kt,"\u02D9","\\dot"),pe(oe,qe,Kt,"\u02DA","\\mathring"),pe(oe,qe,_t,"\u0131","\\imath",!0),pe(oe,qe,_t,"\u0237","\\jmath",!0),pe(ct,qe,tt,"\u0131","\\i",!0),pe(ct,qe,tt,"\u0237","\\j",!0),pe(ct,qe,tt,"\xDF","\\ss",!0),pe(ct,qe,tt,"\xE6","\\ae",!0),pe(ct,qe,tt,"\xE6","\\ae",!0),pe(ct,qe,tt,"\u0153","\\oe",!0),pe(ct,qe,tt,"\xF8","\\o",!0),pe(ct,qe,tt,"\xC6","\\AE",!0),pe(ct,qe,tt,"\u0152","\\OE",!0),pe(ct,qe,tt,"\xD8","\\O",!0),pe(ct,qe,Kt,"\u02CA","\\'"),pe(ct,qe,Kt,"\u02CB","\\`"),pe(ct,qe,Kt,"\u02C6","\\^"),pe(ct,qe,Kt,"\u02DC","\\~"),pe(ct,qe,Kt,"\u02C9","\\="),pe(ct,qe,Kt,"\u02D8","\\u"),pe(ct,qe,Kt,"\u02D9","\\."),pe(ct,qe,Kt,"\u02DA","\\r"),pe(ct,qe,Kt,"\u02C7","\\v"),pe(ct,qe,Kt,"\xA8",'\\"'),pe(ct,qe,Kt,"\u02DD","\\H"),pe(ct,qe,Kt,"\u25EF","\\textcircled");var Cr={"--":!0,"---":!0,"``":!0,"''":!0};pe(ct,qe,tt,"\u2013","--"),pe(ct,qe,tt,"\u2013","\\textendash"),pe(ct,qe,tt,"\u2014","---"),pe(ct,qe,tt,"\u2014","\\textemdash"),pe(ct,qe,tt,"\u2018","`"),pe(ct,qe,tt,"\u2018","\\textquoteleft"),pe(ct,qe,tt,"\u2019","'"),pe(ct,qe,tt,"\u2019","\\textquoteright"),pe(ct,qe,tt,"\u201C","``"),pe(ct,qe,tt,"\u201C","\\textquotedblleft"),pe(ct,qe,tt,"\u201D","''"),pe(ct,qe,tt,"\u201D","\\textquotedblright"),pe(oe,qe,tt,"\xB0","\\degree",!0),pe(ct,qe,tt,"\xB0","\\degree"),pe(ct,qe,tt,"\xB0","\\textdegree",!0),pe(oe,qe,_t,"\xA3","\\pounds"),pe(oe,qe,_t,"\xA3","\\mathsterling",!0),pe(ct,qe,_t,"\xA3","\\pounds"),pe(ct,qe,_t,"\xA3","\\textsterling",!0),pe(oe,me,tt,"\u2720","\\maltese"),pe(ct,me,tt,"\u2720","\\maltese"),pe(ct,qe,lt,"\xA0","\\ "),pe(ct,qe,lt,"\xA0"," "),pe(ct,qe,lt,"\xA0","~");for(var nn='0123456789/@."',mn=0;mn<nn.length;mn++){var Bn=nn.charAt(mn);pe(oe,qe,tt,Bn,Bn)}for(var oi='0123456789!@*()-=+[]<>|";:?/.,',wn=0;wn<oi.length;wn++){var Rn=oi.charAt(wn);pe(ct,qe,tt,Rn,Rn)}for(var Zt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Tt=0;Tt<Zt.length;Tt++){var De=Zt.charAt(Tt);pe(oe,qe,_t,De,De),pe(ct,qe,tt,De,De)}pe(oe,me,tt,"C","\u2102"),pe(ct,me,tt,"C","\u2102"),pe(oe,me,tt,"H","\u210D"),pe(ct,me,tt,"H","\u210D"),pe(oe,me,tt,"N","\u2115"),pe(ct,me,tt,"N","\u2115"),pe(oe,me,tt,"P","\u2119"),pe(ct,me,tt,"P","\u2119"),pe(oe,me,tt,"Q","\u211A"),pe(ct,me,tt,"Q","\u211A"),pe(oe,me,tt,"R","\u211D"),pe(ct,me,tt,"R","\u211D"),pe(oe,me,tt,"Z","\u2124"),pe(ct,me,tt,"Z","\u2124"),pe(oe,qe,_t,"h","\u210E"),pe(ct,qe,_t,"h","\u210E");for(var Re="",Pe=0;Pe<Zt.length;Pe++){var rt=Zt.charAt(Pe);Re=String.fromCharCode(55349,56320+Pe),pe(oe,qe,_t,rt,Re),pe(ct,qe,tt,rt,Re),Re=String.fromCharCode(55349,56372+Pe),pe(oe,qe,_t,rt,Re),pe(ct,qe,tt,rt,Re),Re=String.fromCharCode(55349,56424+Pe),pe(oe,qe,_t,rt,Re),pe(ct,qe,tt,rt,Re),Re=String.fromCharCode(55349,56580+Pe),pe(oe,qe,_t,rt,Re),pe(ct,qe,tt,rt,Re),Re=String.fromCharCode(55349,56736+Pe),pe(oe,qe,_t,rt,Re),pe(ct,qe,tt,rt,Re),Re=String.fromCharCode(55349,56788+Pe),pe(oe,qe,_t,rt,Re),pe(ct,qe,tt,rt,Re),Re=String.fromCharCode(55349,56840+Pe),pe(oe,qe,_t,rt,Re),pe(ct,qe,tt,rt,Re),Re=String.fromCharCode(55349,56944+Pe),pe(oe,qe,_t,rt,Re),pe(ct,qe,tt,rt,Re),Pe<26&&(Re=String.fromCharCode(55349,56632+Pe),pe(oe,qe,_t,rt,Re),pe(ct,qe,tt,rt,Re),Re=String.fromCharCode(55349,56476+Pe),pe(oe,qe,_t,rt,Re),pe(ct,qe,tt,rt,Re))}Re=String.fromCharCode(55349,56668),pe(oe,qe,_t,"k",Re),pe(ct,qe,tt,"k",Re);for(var wt=0;wt<10;wt++){var Ot=wt.toString();Re=String.fromCharCode(55349,57294+wt),pe(oe,qe,_t,Ot,Re),pe(ct,qe,tt,Ot,Re),Re=String.fromCharCode(55349,57314+wt),pe(oe,qe,_t,Ot,Re),pe(ct,qe,tt,Ot,Re),Re=String.fromCharCode(55349,57324+wt),pe(oe,qe,_t,Ot,Re),pe(ct,qe,tt,Ot,Re),Re=String.fromCharCode(55349,57334+wt),pe(oe,qe,_t,Ot,Re),pe(ct,qe,tt,Ot,Re)}for(var $t="\xC7\xD0\xDE\xE7\xFE",Mr=0;Mr<$t.length;Mr++){var Vr=$t.charAt(Mr);pe(oe,qe,_t,Vr,Vr),pe(ct,qe,tt,Vr,Vr)}pe(ct,qe,tt,"\xF0","\xF0"),pe(ct,qe,tt,"\u2013","\u2013"),pe(ct,qe,tt,"\u2014","\u2014"),pe(ct,qe,tt,"\u2018","\u2018"),pe(ct,qe,tt,"\u2019","\u2019"),pe(ct,qe,tt,"\u201C","\u201C"),pe(ct,qe,tt,"\u201D","\u201D");var hn=[["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"]],Vt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],yt=function(ce,Se){var Ie=ce.charCodeAt(0),Je=ce.charCodeAt(1),Pt=(Ie-55296)*1024+(Je-56320)+65536,cr=Se==="math"?0:1;if(119808<=Pt&&Pt<120484){var Zr=Math.floor((Pt-119808)/26);return[hn[Zr][2],hn[Zr][cr]]}else if(120782<=Pt&&Pt<=120831){var vn=Math.floor((Pt-120782)/10);return[Vt[vn][2],Vt[vn][cr]]}else{if(Pt===120485||Pt===120486)return[hn[0][2],hn[0][cr]];if(120486<Pt&&Pt<120782)return["",""];throw new l("Unsupported character: "+ce)}},xt=[[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]],dr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],er=function(ce,Se){return Se.size<2?ce:xt[ce-1][Se.size-1]},Ut=function(){function Mt(Se){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=Se.style,this.color=Se.color,this.size=Se.size||Mt.BASESIZE,this.textSize=Se.textSize||this.size,this.phantom=!!Se.phantom,this.font=Se.font||"",this.fontFamily=Se.fontFamily||"",this.fontWeight=Se.fontWeight||"",this.fontShape=Se.fontShape||"",this.sizeMultiplier=dr[this.size-1],this.maxSize=Se.maxSize,this.minRuleThickness=Se.minRuleThickness,this._fontMetrics=void 0}var ce=Mt.prototype;return ce.extend=function(Ie){var Je={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var Pt in Ie)Ie.hasOwnProperty(Pt)&&(Je[Pt]=Ie[Pt]);return new Mt(Je)},ce.havingStyle=function(Ie){return this.style===Ie?this:this.extend({style:Ie,size:er(this.textSize,Ie)})},ce.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ce.havingSize=function(Ie){return this.size===Ie&&this.textSize===Ie?this:this.extend({style:this.style.text(),size:Ie,textSize:Ie,sizeMultiplier:dr[Ie-1]})},ce.havingBaseStyle=function(Ie){Ie=Ie||this.style.text();var Je=er(Mt.BASESIZE,Ie);return this.size===Je&&this.textSize===Mt.BASESIZE&&this.style===Ie?this:this.extend({style:Ie,size:Je})},ce.havingBaseSizing=function(){var Ie;switch(this.style.id){case 4:case 5:Ie=3;break;case 6:case 7:Ie=1;break;default:Ie=6}return this.extend({style:this.style.text(),size:Ie})},ce.withColor=function(Ie){return this.extend({color:Ie})},ce.withPhantom=function(){return this.extend({phantom:!0})},ce.withFont=function(Ie){return this.extend({font:Ie})},ce.withTextFontFamily=function(Ie){return this.extend({fontFamily:Ie,font:""})},ce.withTextFontWeight=function(Ie){return this.extend({fontWeight:Ie,font:""})},ce.withTextFontShape=function(Ie){return this.extend({fontShape:Ie,font:""})},ce.sizingClasses=function(Ie){return Ie.size!==this.size?["sizing","reset-size"+Ie.size,"size"+this.size]:[]},ce.baseSizingClasses=function(){return this.size!==Mt.BASESIZE?["sizing","reset-size"+this.size,"size"+Mt.BASESIZE]:[]},ce.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=pr(this.size)),this._fontMetrics},ce.getColor=function(){return this.phantom?"transparent":this.color},Mt}();Ut.BASESIZE=6;var ir=Ut,Ft={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},rr={ex:!0,em:!0,mu:!0},Kr=function(ce){return typeof ce!="string"&&(ce=ce.unit),ce in Ft||ce in rr||ce==="ex"},Rr=function(ce,Se){var Ie;if(ce.unit in Ft)Ie=Ft[ce.unit]/Se.fontMetrics().ptPerEm/Se.sizeMultiplier;else if(ce.unit==="mu")Ie=Se.fontMetrics().cssEmPerMu;else{var Je;if(Se.style.isTight()?Je=Se.havingStyle(Se.style.text()):Je=Se,ce.unit==="ex")Ie=Je.fontMetrics().xHeight;else if(ce.unit==="em")Ie=Je.fontMetrics().quad;else throw new l("Invalid unit: '"+ce.unit+"'");Je!==Se&&(Ie*=Je.sizeMultiplier/Se.sizeMultiplier)}return Math.min(ce.number*Ie,Se.maxSize)},kr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],dn=function(ce,Se,Ie){return Ge[Ie][ce]&&Ge[Ie][ce].replace&&(ce=Ge[Ie][ce].replace),{value:ce,metrics:ht(ce,Se,Ie)}},yn=function(ce,Se,Ie,Je,Pt){var cr=dn(ce,Se,Ie),Zr=cr.metrics;ce=cr.value;var vn;if(Zr){var kn=Zr.italic;(Ie==="text"||Je&&Je.font==="mathit")&&(kn=0),vn=new Te(ce,Zr.height,Zr.depth,kn,Zr.skew,Zr.width,Pt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ce+"' in style '"+Se+"' and mode '"+Ie+"'")),vn=new Te(ce,0,0,0,0,0,Pt);if(Je){vn.maxFontSize=Je.sizeMultiplier,Je.style.isTight()&&vn.classes.push("mtight");var ci=Je.getColor();ci&&(vn.style.color=ci)}return vn},ri=function(ce,Se,Ie,Je){return Je===void 0&&(Je=[]),Ie.font==="boldsymbol"&&dn(ce,"Main-Bold",Se).metrics?yn(ce,"Main-Bold",Se,Ie,Je.concat(["mathbf"])):ce==="\\"||Ge[Se][ce].font==="main"?yn(ce,"Main-Regular",Se,Ie,Je):yn(ce,"AMS-Regular",Se,Ie,Je.concat(["amsrm"]))},$n=function(ce,Se,Ie,Je){return/[0-9]/.test(ce.charAt(0))||A.contains(kr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},pi=function(ce,Se,Ie,Je){return A.contains(kr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ce.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},_i=function(ce,Se,Ie,Je){return dn(ce,"Math-BoldItalic",Se).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Di=function(ce,Se,Ie){var Je=ce.mode,Pt=ce.text,cr=["mord"],Zr=Je==="math"||Je==="text"&&Se.font,vn=Zr?Se.font:Se.fontFamily;if(Pt.charCodeAt(0)===55349){var kn=yt(Pt,Je),ci=kn[0],Si=kn[1];return yn(Pt,ci,Je,Se,cr.concat(Si))}else if(vn){var Ai,Qi;if(vn==="boldsymbol"||vn==="mathnormal"){var sa=vn==="boldsymbol"?_i(Pt,Je,Se,cr):pi(Pt,Je,Se,cr);Ai=sa.fontName,Qi=[sa.fontClass]}else A.contains(kr,Pt)?(Ai="Main-Italic",Qi=["mathit"]):Zr?(Ai=gn[vn].fontName,Qi=[vn]):(Ai=Qr(vn,Se.fontWeight,Se.fontShape),Qi=[vn,Se.fontWeight,Se.fontShape]);if(dn(Pt,Ai,Je).metrics)return yn(Pt,Ai,Je,Se,cr.concat(Qi));if(Cr.hasOwnProperty(Pt)&&Ai.substr(0,10)==="Typewriter"){for(var Ua=[],no=0;no<Pt.length;no++)Ua.push(yn(Pt[no],Ai,Je,Se,cr.concat(Qi)));return ot(Ua)}}if(Ie==="mathord"){var Wo=$n(Pt,Je,Se,cr);return yn(Pt,Wo.fontName,Je,Se,cr.concat([Wo.fontClass]))}else if(Ie==="textord"){var Zo=Ge[Je][Pt]&&Ge[Je][Pt].font;if(Zo==="ams"){var Bo=Qr("amsrm",Se.fontWeight,Se.fontShape);return yn(Pt,Bo,Je,Se,cr.concat("amsrm",Se.fontWeight,Se.fontShape))}else if(Zo==="main"||!Zo){var Es=Qr("textrm",Se.fontWeight,Se.fontShape);return yn(Pt,Es,Je,Se,cr.concat(Se.fontWeight,Se.fontShape))}else{var As=Qr(Zo,Se.fontWeight,Se.fontShape);return yn(Pt,As,Je,Se,cr.concat(As,Se.fontWeight,Se.fontShape))}}else throw new Error("unexpected type: "+Ie+" in makeOrd")},Wi=function(ce,Se){if(ue(ce.classes)!==ue(Se.classes)||ce.skew!==Se.skew||ce.maxFontSize!==Se.maxFontSize)return!1;for(var Ie in ce.style)if(ce.style.hasOwnProperty(Ie)&&ce.style[Ie]!==Se.style[Ie])return!1;for(var Je in Se.style)if(Se.style.hasOwnProperty(Je)&&ce.style[Je]!==Se.style[Je])return!1;return!0},at=function(ce){for(var Se=0;Se<ce.length-1;Se++){var Ie=ce[Se],Je=ce[Se+1];Ie instanceof Te&&Je instanceof Te&&Wi(Ie,Je)&&(Ie.text+=Je.text,Ie.height=Math.max(Ie.height,Je.height),Ie.depth=Math.max(Ie.depth,Je.depth),Ie.italic=Je.italic,ce.splice(Se+1,1),Se--)}return ce},Le=function(ce){for(var Se=0,Ie=0,Je=0,Pt=0;Pt<ce.children.length;Pt++){var cr=ce.children[Pt];cr.height>Se&&(Se=cr.height),cr.depth>Ie&&(Ie=cr.depth),cr.maxFontSize>Je&&(Je=cr.maxFontSize)}ce.height=Se,ce.depth=Ie,ce.maxFontSize=Je},je=function(ce,Se,Ie,Je){var Pt=new Y(ce,Se,Ie,Je);return Le(Pt),Pt},Xe=function(ce,Se,Ie,Je){return new Y(ce,Se,Ie,Je)},it=function(ce,Se,Ie){var Je=je([ce],[],Se);return Je.height=Math.max(Ie||Se.fontMetrics().defaultRuleThickness,Se.minRuleThickness),Je.style.borderBottomWidth=Je.height+"em",Je.maxFontSize=1,Je},Ze=function(ce,Se,Ie,Je){var Pt=new $(ce,Se,Ie,Je);return Le(Pt),Pt},ot=function(ce){var Se=new Fe(ce);return Le(Se),Se},Lt=function(ce,Se){return ce instanceof Fe?je([],[ce],Se):ce},At=function(ce){if(ce.positionType==="individualShift"){for(var Se=ce.children,Ie=[Se[0]],Je=-Se[0].shift-Se[0].elem.depth,Pt=Je,cr=1;cr<Se.length;cr++){var Zr=-Se[cr].shift-Pt-Se[cr].elem.depth,vn=Zr-(Se[cr-1].elem.height+Se[cr-1].elem.depth);Pt=Pt+Zr,Ie.push({type:"kern",size:vn}),Ie.push(Se[cr])}return{children:Ie,depth:Je}}var kn;if(ce.positionType==="top"){for(var ci=ce.positionData,Si=0;Si<ce.children.length;Si++){var Ai=ce.children[Si];ci-=Ai.type==="kern"?Ai.size:Ai.elem.height+Ai.elem.depth}kn=ci}else if(ce.positionType==="bottom")kn=-ce.positionData;else{var Qi=ce.children[0];if(Qi.type!=="elem")throw new Error('First child must have type "elem".');if(ce.positionType==="shift")kn=-Qi.elem.depth-ce.positionData;else if(ce.positionType==="firstBaseline")kn=-Qi.elem.depth;else throw new Error("Invalid positionType "+ce.positionType+".")}return{children:ce.children,depth:kn}},mr=function(ce,Se){for(var Ie=At(ce),Je=Ie.children,Pt=Ie.depth,cr=0,Zr=0;Zr<Je.length;Zr++){var vn=Je[Zr];if(vn.type==="elem"){var kn=vn.elem;cr=Math.max(cr,kn.maxFontSize,kn.height)}}cr+=2;var ci=je(["pstrut"],[]);ci.style.height=cr+"em";for(var Si=[],Ai=Pt,Qi=Pt,sa=Pt,Ua=0;Ua<Je.length;Ua++){var no=Je[Ua];if(no.type==="kern")sa+=no.size;else{var Wo=no.elem,Zo=no.wrapperClasses||[],Bo=no.wrapperStyle||{},Es=je(Zo,[ci,Wo],void 0,Bo);Es.style.top=-cr-sa-Wo.depth+"em",no.marginLeft&&(Es.style.marginLeft=no.marginLeft),no.marginRight&&(Es.style.marginRight=no.marginRight),Si.push(Es),sa+=Wo.height+Wo.depth}Ai=Math.min(Ai,sa),Qi=Math.max(Qi,sa)}var As=je(["vlist"],Si);As.style.height=Qi+"em";var $o;if(Ai<0){var Do=je([],[]),vo=je(["vlist"],[Do]);vo.style.height=-Ai+"em";var Ms=je(["vlist-s"],[new Te("\u200B")]);$o=[je(["vlist-r"],[As,Ms]),je(["vlist-r"],[vo])]}else $o=[je(["vlist-r"],[As])];var rl=je(["vlist-t"],$o);return $o.length===2&&rl.classes.push("vlist-t2"),rl.height=Qi,rl.depth=-Ai,rl},qr=function(ce,Se){var Ie=je(["mspace"],[],Se),Je=Rr(ce,Se);return Ie.style.marginRight=Je+"em",Ie},Qr=function(ce,Se,Ie){var Je="";switch(ce){case"amsrm":Je="AMS";break;case"textrm":Je="Main";break;case"textsf":Je="SansSerif";break;case"texttt":Je="Typewriter";break;default:Je=ce}var Pt;return Se==="textbf"&&Ie==="textit"?Pt="BoldItalic":Se==="textbf"?Pt="Bold":Se==="textit"?Pt="Italic":Pt="Regular",Je+"-"+Pt},gn={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"}},yr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Vn=function(ce,Se){var Ie=yr[ce],Je=Ie[0],Pt=Ie[1],cr=Ie[2],Zr=new fe(Je),vn=new Be([Zr],{width:Pt+"em",height:cr+"em",style:"width:"+Pt+"em",viewBox:"0 0 "+1e3*Pt+" "+1e3*cr,preserveAspectRatio:"xMinYMin"}),kn=Xe(["overlay"],[vn],Se);return kn.height=cr,kn.style.height=cr+"em",kn.style.width=Pt+"em",kn},Br={fontMap:gn,makeSymbol:yn,mathsym:ri,makeSpan:je,makeSvgSpan:Xe,makeLineSpan:it,makeAnchor:Ze,makeFragment:ot,wrapFragment:Lt,makeVList:mr,makeOrd:Di,makeGlue:qr,staticSvg:Vn,svgData:yr,tryCombineChars:at};function jn(Mt,ce){var Se=xn(Mt,ce);if(!Se)throw new Error("Expected node of type "+ce+", but got "+(Mt?"node of type "+Mt.type:String(Mt)));return Se}function xn(Mt,ce){return Mt&&Mt.type===ce?Mt:null}function tn(Mt,ce){var Se=ti(Mt,ce);if(!Se)throw new Error('Expected node of type "atom" and family "'+ce+'", but got '+(Mt?Mt.type==="atom"?"atom of family "+Mt.family:"node of type "+Mt.type:String(Mt)));return Se}function ti(Mt,ce){return Mt&&Mt.type==="atom"&&Mt.family===ce?Mt:null}function mi(Mt){var ce=Pi(Mt);if(!ce)throw new Error("Expected node of symbol group type, but got "+(Mt?"node of type "+Mt.type:String(Mt)));return ce}function Pi(Mt){return Mt&&(Mt.type==="atom"||Ht.hasOwnProperty(Mt.type))?Mt:null}var en={number:3,unit:"mu"},Tn={number:4,unit:"mu"},Yn={number:5,unit:"mu"},Yt={mord:{mop:en,mbin:Tn,mrel:Yn,minner:en},mop:{mord:en,mop:en,mrel:Yn,minner:en},mbin:{mord:Tn,mop:Tn,mopen:Tn,minner:Tn},mrel:{mord:Yn,mop:Yn,mopen:Yn,minner:Yn},mopen:{},mclose:{mop:en,mbin:Tn,mrel:Yn,minner:en},mpunct:{mord:en,mop:en,mrel:Yn,mopen:en,mclose:en,mpunct:en,minner:en},minner:{mord:en,mop:en,mbin:Tn,mrel:Yn,mopen:en,mpunct:en,minner:en}},Dt={mord:{mop:en},mop:{mord:en,mop:en},mbin:{},mrel:{},mopen:{},mclose:{mop:en},mpunct:{},minner:{mop:en}},Bt={},Wt={},Xt={};function kt(Mt){for(var ce=Mt.type,Se=Mt.names,Ie=Mt.props,Je=Mt.handler,Pt=Mt.htmlBuilder,cr=Mt.mathmlBuilder,Zr={type:ce,numArgs:Ie.numArgs,argTypes:Ie.argTypes,greediness:Ie.greediness===void 0?1:Ie.greediness,allowedInText:!!Ie.allowedInText,allowedInMath:Ie.allowedInMath===void 0?!0:Ie.allowedInMath,numOptionalArgs:Ie.numOptionalArgs||0,infix:!!Ie.infix,handler:Je},vn=0;vn<Se.length;++vn)Bt[Se[vn]]=Zr;ce&&(Pt&&(Wt[ce]=Pt),cr&&(Xt[ce]=cr))}function hr(Mt){var ce=Mt.type,Se=Mt.htmlBuilder,Ie=Mt.mathmlBuilder;kt({type:ce,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:Se,mathmlBuilder:Ie})}var br=function(ce){var Se=xn(ce,"ordgroup");return Se?Se.body:[ce]},wr=Br.makeSpan,Fr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Xn=["rightmost","mrel","mclose","mpunct"],Fn={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT},hi={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},An=function(ce,Se,Ie,Je){Je===void 0&&(Je=[null,null]);for(var Pt=[],cr=0;cr<ce.length;cr++){var Zr=Ci(ce[cr],Se);if(Zr instanceof Fe){var vn=Zr.children;Pt.push.apply(Pt,vn)}else Pt.push(Zr)}if(!Ie)return Pt;var kn=Se;if(ce.length===1){var ci=xn(ce[0],"sizing")||xn(ce[0],"styling");ci&&(ci.type==="sizing"?kn=Se.havingSize(ci.size):ci.type==="styling"&&(kn=Se.havingStyle(Fn[ci.style])))}var Si=wr([Je[0]||"leftmost"],[],Se),Ai=wr([Je[1]||"rightmost"],[],Se);return jr(Pt,function(Qi,sa){var Ua=sa.classes[0],no=Qi.classes[0];Ua==="mbin"&&A.contains(Xn,no)?sa.classes[0]="mord":no==="mbin"&&A.contains(Fr,Ua)&&(Qi.classes[0]="mord")},{node:Si},Ai),jr(Pt,function(Qi,sa){var Ua=qn(sa),no=qn(Qi),Wo=Ua&&no?Qi.hasClass("mtight")?Dt[Ua][no]:Yt[Ua][no]:null;if(Wo)return Br.makeGlue(Wo,kn)},{node:Si},Ai),Pt},jr=function Mt(ce,Se,Ie,Je){Je&&ce.push(Je);for(var Pt=0;Pt<ce.length;Pt++){var cr=ce[Pt],Zr=In(cr);if(Zr){Mt(Zr.children,Se,Ie);continue}if(cr.classes[0]==="mspace")continue;var vn=Se(cr,Ie.node);vn&&(Ie.insertAfter?Ie.insertAfter(vn):(ce.unshift(vn),Pt++)),Ie.node=cr,Ie.insertAfter=function(kn){return function(ci){ce.splice(kn+1,0,ci),Pt++}}(Pt)}Je&&ce.pop()},In=function(ce){return ce instanceof Fe||ce instanceof $?ce:null},Qn=function Mt(ce,Se){var Ie=In(ce);if(Ie){var Je=Ie.children;if(Je.length){if(Se==="right")return Mt(Je[Je.length-1],"right");if(Se==="left")return Mt(Je[0],"left")}}return ce},qn=function(ce,Se){return ce?(Se&&(ce=Qn(ce,Se)),hi[ce.classes[0]]||null):null},si=function(ce,Se){var Ie=["nulldelimiter"].concat(ce.baseSizingClasses());return wr(Se.concat(Ie))},Ci=function(ce,Se,Ie){if(!ce)return wr();if(Wt[ce.type]){var Je=Wt[ce.type](ce,Se);if(Ie&&Se.size!==Ie.size){Je=wr(Se.sizingClasses(Ie),[Je],Se);var Pt=Se.sizeMultiplier/Ie.sizeMultiplier;Je.height*=Pt,Je.depth*=Pt}return Je}else throw new l("Got group of unknown type: '"+ce.type+"'")};function ki(Mt,ce){var Se=wr(["base"],Mt,ce),Ie=wr(["strut"]);return Ie.style.height=Se.height+Se.depth+"em",Ie.style.verticalAlign=-Se.depth+"em",Se.children.unshift(Ie),Se}function Ri(Mt,ce){var Se=null;Mt.length===1&&Mt[0].type==="tag"&&(Se=Mt[0].tag,Mt=Mt[0].body);for(var Ie=An(Mt,ce,!0),Je=[],Pt=[],cr=0;cr<Ie.length;cr++)if(Pt.push(Ie[cr]),Ie[cr].hasClass("mbin")||Ie[cr].hasClass("mrel")||Ie[cr].hasClass("allowbreak")){for(var Zr=!1;cr<Ie.length-1&&Ie[cr+1].hasClass("mspace")&&!Ie[cr+1].hasClass("newline");)cr++,Pt.push(Ie[cr]),Ie[cr].hasClass("nobreak")&&(Zr=!0);Zr||(Je.push(ki(Pt,ce)),Pt=[])}else Ie[cr].hasClass("newline")&&(Pt.pop(),Pt.length>0&&(Je.push(ki(Pt,ce)),Pt=[]),Je.push(Ie[cr]));Pt.length>0&&Je.push(ki(Pt,ce));var vn;Se&&(vn=ki(An(Se,ce,!0)),vn.classes=["tag"],Je.push(vn));var kn=wr(["katex-html"],Je);if(kn.setAttribute("aria-hidden","true"),vn){var ci=vn.children[0];ci.style.height=kn.height+kn.depth+"em",ci.style.verticalAlign=-kn.depth+"em"}return kn}function oa(Mt){return new Fe(Mt)}var ma=function(){function Mt(Se,Ie){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=Se,this.attributes={},this.children=Ie||[]}var ce=Mt.prototype;return ce.setAttribute=function(Ie,Je){this.attributes[Ie]=Je},ce.getAttribute=function(Ie){return this.attributes[Ie]},ce.toNode=function(){var Ie=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&Ie.setAttribute(Je,this.attributes[Je]);for(var Pt=0;Pt<this.children.length;Pt++)Ie.appendChild(this.children[Pt].toNode());return Ie},ce.toMarkup=function(){var Ie="<"+this.type;for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(Ie+=" "+Je+'="',Ie+=A.escape(this.attributes[Je]),Ie+='"');Ie+=">";for(var Pt=0;Pt<this.children.length;Pt++)Ie+=this.children[Pt].toMarkup();return Ie+="</"+this.type+">",Ie},ce.toText=function(){return this.children.map(function(Ie){return Ie.toText()}).join("")},Mt}(),aa=function(){function Mt(Se){this.text=void 0,this.text=Se}var ce=Mt.prototype;return ce.toNode=function(){return document.createTextNode(this.text)},ce.toMarkup=function(){return A.escape(this.toText())},ce.toText=function(){return this.text},Mt}(),ba=function(){function Mt(Se){this.width=void 0,this.character=void 0,this.width=Se,Se>=.05555&&Se<=.05556?this.character="\u200A":Se>=.1666&&Se<=.1667?this.character="\u2009":Se>=.2222&&Se<=.2223?this.character="\u2005":Se>=.2777&&Se<=.2778?this.character="\u2005\u200A":Se>=-.05556&&Se<=-.05555?this.character="\u200A\u2063":Se>=-.1667&&Se<=-.1666?this.character="\u2009\u2063":Se>=-.2223&&Se<=-.2222?this.character="\u205F\u2063":Se>=-.2778&&Se<=-.2777?this.character="\u2005\u2063":this.character=null}var ce=Mt.prototype;return ce.toNode=function(){if(this.character)return document.createTextNode(this.character);var Ie=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return Ie.setAttribute("width",this.width+"em"),Ie},ce.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ce.toText=function(){return this.character?this.character:" "},Mt}(),bi={MathNode:ma,TextNode:aa,SpaceNode:ba,newDocumentFragment:oa},Pn=function(ce,Se,Ie){return Ge[Se][ce]&&Ge[Se][ce].replace&&ce.charCodeAt(0)!==55349&&!(Cr.hasOwnProperty(ce)&&Ie&&(Ie.fontFamily&&Ie.fontFamily.substr(4,2)==="tt"||Ie.font&&Ie.font.substr(4,2)==="tt"))&&(ce=Ge[Se][ce].replace),new bi.TextNode(ce)},ji=function(ce){return ce.length===1?ce[0]:new bi.MathNode("mrow",ce)},ha=function(ce,Se){if(Se.fontFamily==="texttt")return"monospace";if(Se.fontFamily==="textsf")return Se.fontShape==="textit"&&Se.fontWeight==="textbf"?"sans-serif-bold-italic":Se.fontShape==="textit"?"sans-serif-italic":Se.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(Se.fontShape==="textit"&&Se.fontWeight==="textbf")return"bold-italic";if(Se.fontShape==="textit")return"italic";if(Se.fontWeight==="textbf")return"bold";var Ie=Se.font;if(!Ie||Ie==="mathnormal")return null;var Je=ce.mode;if(Ie==="mathit")return"italic";if(Ie==="boldsymbol")return"bold-italic";if(Ie==="mathbf")return"bold";if(Ie==="mathbb")return"double-struck";if(Ie==="mathfrak")return"fraktur";if(Ie==="mathscr"||Ie==="mathcal")return"script";if(Ie==="mathsf")return"sans-serif";if(Ie==="mathtt")return"monospace";var Pt=ce.text;if(A.contains(["\\imath","\\jmath"],Pt))return null;Ge[Je][Pt]&&Ge[Je][Pt].replace&&(Pt=Ge[Je][Pt].replace);var cr=Br.fontMap[Ie].fontName;return ht(Pt,cr,Je)?Br.fontMap[Ie].variant:null},ta=function(ce,Se,Ie){if(ce.length===1){var Je=Nr(ce[0],Se);return Ie&&Je instanceof ma&&Je.type==="mo"&&(Je.setAttribute("lspace","0em"),Je.setAttribute("rspace","0em")),[Je]}for(var Pt=[],cr,Zr=0;Zr<ce.length;Zr++){var vn=Nr(ce[Zr],Se);if(vn instanceof ma&&cr instanceof ma){if(vn.type==="mtext"&&cr.type==="mtext"&&vn.getAttribute("mathvariant")===cr.getAttribute("mathvariant")){var kn;(kn=cr.children).push.apply(kn,vn.children);continue}else if(vn.type==="mn"&&cr.type==="mn"){var ci;(ci=cr.children).push.apply(ci,vn.children);continue}else if(vn.type==="mi"&&vn.children.length===1&&cr.type==="mn"){var Si=vn.children[0];if(Si instanceof aa&&Si.text==="."){var Ai;(Ai=cr.children).push.apply(Ai,vn.children);continue}}else if(cr.type==="mi"&&cr.children.length===1){var Qi=cr.children[0];if(Qi instanceof aa&&Qi.text==="\u0338"&&(vn.type==="mo"||vn.type==="mi"||vn.type==="mn")){var sa=vn.children[0];sa instanceof aa&&sa.text.length>0&&(sa.text=sa.text.slice(0,1)+"\u0338"+sa.text.slice(1),Pt.pop())}}}Pt.push(vn),cr=vn}return Pt},ra=function(ce,Se,Ie){return ji(ta(ce,Se,Ie))},Nr=function(ce,Se){if(!ce)return new bi.MathNode("mrow");if(Xt[ce.type]){var Ie=Xt[ce.type](ce,Se);return Ie}else throw new l("Got group of unknown type: '"+ce.type+"'")};function Er(Mt,ce,Se,Ie){var Je=ta(Mt,Se),Pt;Je.length===1&&Je[0]instanceof ma&&A.contains(["mrow","mtable"],Je[0].type)?Pt=Je[0]:Pt=new bi.MathNode("mrow",Je);var cr=new bi.MathNode("annotation",[new bi.TextNode(ce)]);cr.setAttribute("encoding","application/x-tex");var Zr=new bi.MathNode("semantics",[Pt,cr]),vn=new bi.MathNode("math",[Zr]);vn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var kn=Ie?"katex":"katex-mathml";return Br.makeSpan([kn],[vn])}var On=function(ce){return new ir({style:ce.displayMode?z.DISPLAY:z.TEXT,maxSize:ce.maxSize,minRuleThickness:ce.minRuleThickness})},gr=function(ce,Se){if(Se.displayMode){var Ie=["katex-display"];Se.leqno&&Ie.push("leqno"),Se.fleqn&&Ie.push("fleqn"),ce=Br.makeSpan(Ie,[ce])}return ce},Pr=function(ce,Se,Ie){var Je=On(Ie),Pt;if(Ie.output==="mathml")return Er(ce,Se,Je,!0);if(Ie.output==="html"){var cr=Ri(ce,Je);Pt=Br.makeSpan(["katex"],[cr])}else{var Zr=Er(ce,Se,Je,!1),vn=Ri(ce,Je);Pt=Br.makeSpan(["katex"],[Zr,vn])}return gr(Pt,Ie)},Xr=function(ce,Se,Ie){var Je=On(Ie),Pt=Ri(ce,Je),cr=Br.makeSpan(["katex"],[Pt]);return gr(cr,Ie)},cn=Pr,Un={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"},Nt=function(ce){var Se=new bi.MathNode("mo",[new bi.TextNode(Un[ce.substr(1)])]);return Se.setAttribute("stretchy","true"),Se},Lr={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]},Dr=function(ce){return ce.type==="ordgroup"?ce.body.length:1},an=function(ce,Se){function Ie(){var vn=4e5,kn=ce.label.substr(1);if(A.contains(["widehat","widecheck","widetilde","utilde"],kn)){var ci=ce,Si=Dr(ci.base),Ai,Qi,sa;if(Si>5)kn==="widehat"||kn==="widecheck"?(Ai=420,vn=2364,sa=.42,Qi=kn+"4"):(Ai=312,vn=2340,sa=.34,Qi="tilde4");else{var Ua=[1,1,2,2,3,3][Si];kn==="widehat"||kn==="widecheck"?(vn=[0,1062,2364,2364,2364][Ua],Ai=[0,239,300,360,420][Ua],sa=[0,.24,.3,.3,.36,.42][Ua],Qi=kn+Ua):(vn=[0,600,1033,2339,2340][Ua],Ai=[0,260,286,306,312][Ua],sa=[0,.26,.286,.3,.306,.34][Ua],Qi="tilde"+Ua)}var no=new fe(Qi),Wo=new Be([no],{width:"100%",height:sa+"em",viewBox:"0 0 "+vn+" "+Ai,preserveAspectRatio:"none"});return{span:Br.makeSvgSpan([],[Wo],Se),minWidth:0,height:sa}}else{var Zo=[],Bo=Lr[kn],Es=Bo[0],As=Bo[1],$o=Bo[2],Do=$o/1e3,vo=Es.length,Ms,rl;if(vo===1){var gs=Bo[3];Ms=["hide-tail"],rl=[gs]}else if(vo===2)Ms=["halfarrow-left","halfarrow-right"],rl=["xMinYMin","xMaxYMin"];else if(vo===3)Ms=["brace-left","brace-center","brace-right"],rl=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+vo+" children.");for(var Ra=0;Ra<vo;Ra++){var dl=new fe(Es[Ra]),fl=new Be([dl],{width:"400em",height:Do+"em",viewBox:"0 0 "+vn+" "+$o,preserveAspectRatio:rl[Ra]+" slice"}),Us=Br.makeSvgSpan([Ms[Ra]],[fl],Se);if(vo===1)return{span:Us,minWidth:As,height:Do};Us.style.height=Do+"em",Zo.push(Us)}return{span:Br.makeSpan(["stretchy"],Zo,Se),minWidth:As,height:Do}}}var Je=Ie(),Pt=Je.span,cr=Je.minWidth,Zr=Je.height;return Pt.height=Zr,Pt.style.height=Zr+"em",cr>0&&(Pt.style.minWidth=cr+"em"),Pt},Cn=function(ce,Se,Ie,Je){var Pt,cr=ce.height+ce.depth+2*Ie;if(/fbox|color/.test(Se)){if(Pt=Br.makeSpan(["stretchy",Se],[],Je),Se==="fbox"){var Zr=Je.color&&Je.getColor();Zr&&(Pt.style.borderColor=Zr)}}else{var vn=[];/^[bx]cancel$/.test(Se)&&vn.push(new xe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(Se)&&vn.push(new xe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var kn=new Be(vn,{width:"100%",height:cr+"em"});Pt=Br.makeSvgSpan([],[kn],Je)}return Pt.height=cr,Pt.style.height=cr+"em",Pt},Nn={encloseSpan:Cn,mathMLnode:Nt,svgSpan:an},En=function(ce,Se){var Ie,Je,Pt=xn(ce,"supsub"),cr;Pt?(Je=jn(Pt.base,"accent"),Ie=Je.base,Pt.base=Ie,cr=nt(Ci(Pt,Se)),Pt.base=Je):(Je=jn(ce,"accent"),Ie=Je.base);var Zr=Ci(Ie,Se.havingCrampedStyle()),vn=Je.isShifty&&A.isCharacterBox(Ie),kn=0;if(vn){var ci=A.getBaseElem(Ie),Si=Ci(ci,Se.havingCrampedStyle());kn=ke(Si).skew}var Ai=Math.min(Zr.height,Se.fontMetrics().xHeight),Qi;if(Je.isStretchy)Qi=Nn.svgSpan(Je,Se),Qi=Br.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Zr},{type:"elem",elem:Qi,wrapperClasses:["svg-align"],wrapperStyle:kn>0?{width:"calc(100% - "+2*kn+"em)",marginLeft:2*kn+"em"}:void 0}]},Se);else{var sa,Ua;Je.label==="\\vec"?(sa=Br.staticSvg("vec",Se),Ua=Br.svgData.vec[1]):(sa=Br.makeOrd({mode:Je.mode,text:Je.label},Se,"textord"),sa=ke(sa),sa.italic=0,Ua=sa.width),Qi=Br.makeSpan(["accent-body"],[sa]);var no=Je.label==="\\textcircled";no&&(Qi.classes.push("accent-full"),Ai=Zr.height);var Wo=kn;no||(Wo-=Ua/2),Qi.style.left=Wo+"em",Je.label==="\\textcircled"&&(Qi.style.top=".2em"),Qi=Br.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Zr},{type:"kern",size:-Ai},{type:"elem",elem:Qi}]},Se)}var Zo=Br.makeSpan(["mord","accent"],[Qi],Se);return cr?(cr.children[0]=Zo,cr.height=Math.max(Zo.height,cr.height),cr.classes[0]="mord",cr):Zo},ei=function(ce,Se){var Ie=ce.isStretchy?Nn.mathMLnode(ce.label):new bi.MathNode("mo",[Pn(ce.label,ce.mode)]),Je=new bi.MathNode("mover",[Nr(ce.base,Se),Ie]);return Je.setAttribute("accent","true"),Je},Wn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(Mt){return"\\"+Mt}).join("|"));kt({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(ce,Se){var Ie=Se[0],Je=!Wn.test(ce.funcName),Pt=!Je||ce.funcName==="\\widehat"||ce.funcName==="\\widetilde"||ce.funcName==="\\widecheck";return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:Je,isShifty:Pt,base:Ie}},htmlBuilder:En,mathmlBuilder:ei}),kt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ce,Se){var Ie=Se[0];return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:!1,isShifty:!0,base:Ie}},htmlBuilder:En,mathmlBuilder:ei}),kt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=Se[0];return{type:"accentUnder",mode:Ie.mode,label:Je,base:Pt}},htmlBuilder:function(ce,Se){var Ie=Ci(ce.base,Se),Je=Nn.svgSpan(ce,Se),Pt=ce.label==="\\utilde"?.12:0,cr=Br.makeVList({positionType:"bottom",positionData:Je.height+Pt,children:[{type:"elem",elem:Je,wrapperClasses:["svg-align"]},{type:"kern",size:Pt},{type:"elem",elem:Ie}]},Se);return Br.makeSpan(["mord","accentunder"],[cr],Se)},mathmlBuilder:function(ce,Se){var Ie=Nn.mathMLnode(ce.label),Je=new bi.MathNode("munder",[Nr(ce.base,Se),Ie]);return Je.setAttribute("accentunder","true"),Je}});var gi=function(ce){var Se=new bi.MathNode("mpadded",ce?[ce]:[]);return Se.setAttribute("width","+0.6em"),Se.setAttribute("lspace","0.3em"),Se};kt({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(ce,Se,Ie){var Je=ce.parser,Pt=ce.funcName;return{type:"xArrow",mode:Je.mode,label:Pt,body:Se[0],below:Ie[0]}},htmlBuilder:function(ce,Se){var Ie=Se.style,Je=Se.havingStyle(Ie.sup()),Pt=Br.wrapFragment(Ci(ce.body,Je,Se),Se);Pt.classes.push("x-arrow-pad");var cr;ce.below&&(Je=Se.havingStyle(Ie.sub()),cr=Br.wrapFragment(Ci(ce.below,Je,Se),Se),cr.classes.push("x-arrow-pad"));var Zr=Nn.svgSpan(ce,Se),vn=-Se.fontMetrics().axisHeight+.5*Zr.height,kn=-Se.fontMetrics().axisHeight-.5*Zr.height-.111;(Pt.depth>.25||ce.label==="\\xleftequilibrium")&&(kn-=Pt.depth);var ci;if(cr){var Si=-Se.fontMetrics().axisHeight+cr.height+.5*Zr.height+.111;ci=Br.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Pt,shift:kn},{type:"elem",elem:Zr,shift:vn},{type:"elem",elem:cr,shift:Si}]},Se)}else ci=Br.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Pt,shift:kn},{type:"elem",elem:Zr,shift:vn}]},Se);return ci.children[0].children[0].children[1].classes.push("svg-align"),Br.makeSpan(["mrel","x-arrow"],[ci],Se)},mathmlBuilder:function(ce,Se){var Ie=Nn.mathMLnode(ce.label),Je;if(ce.body){var Pt=gi(Nr(ce.body,Se));if(ce.below){var cr=gi(Nr(ce.below,Se));Je=new bi.MathNode("munderover",[Ie,cr,Pt])}else Je=new bi.MathNode("mover",[Ie,Pt])}else if(ce.below){var Zr=gi(Nr(ce.below,Se));Je=new bi.MathNode("munder",[Ie,Zr])}else Je=gi(),Je=new bi.MathNode("mover",[Ie,Je]);return Je}}),kt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){for(var Ie=ce.parser,Je=jn(Se[0],"ordgroup"),Pt=Je.body,cr="",Zr=0;Zr<Pt.length;Zr++){var vn=jn(Pt[Zr],"textord");cr+=vn.text}var kn=parseInt(cr);if(isNaN(kn))throw new l("\\@char has non-numeric argument "+cr);return{type:"textord",mode:Ie.mode,text:String.fromCharCode(kn)}}});var Fi=function(ce,Se){var Ie=An(ce.body,Se.withColor(ce.color),!1);return Br.makeFragment(Ie)},wi=function(ce,Se){var Ie=ta(ce.body,Se.withColor(ce.color)),Je=new bi.MathNode("mstyle",Ie);return Je.setAttribute("mathcolor",ce.color),Je};kt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ce,Se){var Ie=ce.parser,Je=jn(Se[0],"color-token").color,Pt=Se[1];return{type:"color",mode:Ie.mode,color:Je,body:br(Pt)}},htmlBuilder:Fi,mathmlBuilder:wi}),kt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ce,Se){var Ie=ce.parser,Je=ce.breakOnTokenText,Pt=jn(Se[0],"color-token").color;Ie.gullet.macros.set("\\current@color",Pt);var cr=Ie.parseExpression(!0,Je);return{type:"color",mode:Ie.mode,color:Pt,body:cr}},htmlBuilder:Fi,mathmlBuilder:wi}),kt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,Se,Ie){var Je=ce.parser,Pt=ce.funcName,cr=Ie[0],Zr=Pt==="\\cr",vn=!1;return Zr||(Je.settings.displayMode&&Je.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?vn=!1:vn=!0),{type:"cr",mode:Je.mode,newLine:vn,newRow:Zr,size:cr&&jn(cr,"size").value}},htmlBuilder:function(ce,Se){if(ce.newRow)throw new l("\\cr valid only within a tabular/array environment");var Ie=Br.makeSpan(["mspace"],[],Se);return ce.newLine&&(Ie.classes.push("newline"),ce.size&&(Ie.style.marginTop=Rr(ce.size,Se)+"em")),Ie},mathmlBuilder:function(ce,Se){var Ie=new bi.MathNode("mspace");return ce.newLine&&(Ie.setAttribute("linebreak","newline"),ce.size&&Ie.setAttribute("height",Rr(ce.size,Se)+"em")),Ie}});var Ii=function(ce,Se,Ie){var Je=Ge.math[ce]&&Ge.math[ce].replace,Pt=ht(Je||ce,Se,Ie);if(!Pt)throw new Error("Unsupported symbol "+ce+" and font size "+Se+".");return Pt},Vi=function(ce,Se,Ie,Je){var Pt=Ie.havingBaseStyle(Se),cr=Br.makeSpan(Je.concat(Pt.sizingClasses(Ie)),[ce],Ie),Zr=Pt.sizeMultiplier/Ie.sizeMultiplier;return cr.height*=Zr,cr.depth*=Zr,cr.maxFontSize=Pt.sizeMultiplier,cr},ea=function(ce,Se,Ie){var Je=Se.havingBaseStyle(Ie),Pt=(1-Se.sizeMultiplier/Je.sizeMultiplier)*Se.fontMetrics().axisHeight;ce.classes.push("delimcenter"),ce.style.top=Pt+"em",ce.height-=Pt,ce.depth+=Pt},Xi=function(ce,Se,Ie,Je,Pt,cr){var Zr=Br.makeSymbol(ce,"Main-Regular",Pt,Je),vn=Vi(Zr,Se,Je,cr);return Ie&&ea(vn,Je,Se),vn},zi=function(ce,Se,Ie,Je){return Br.makeSymbol(ce,"Size"+Se+"-Regular",Ie,Je)},Hi=function(ce,Se,Ie,Je,Pt,cr){var Zr=zi(ce,Se,Pt,Je),vn=Vi(Br.makeSpan(["delimsizing","size"+Se],[Zr],Je),z.TEXT,Je,cr);return Ie&&ea(vn,Je,z.TEXT),vn},Ji=function(ce,Se,Ie){var Je;Se==="Size1-Regular"?Je="delim-size1":Je="delim-size4";var Pt=Br.makeSpan(["delimsizinginner",Je],[Br.makeSpan([],[Br.makeSymbol(ce,Se,Ie)])]);return{type:"elem",elem:Pt}},ca={type:"kern",size:-.005},Ta=function(ce,Se,Ie,Je,Pt,cr){var Zr,vn,kn,ci;Zr=kn=ci=ce,vn=null;var Si="Size1-Regular";ce==="\\uparrow"?kn=ci="\u23D0":ce==="\\Uparrow"?kn=ci="\u2016":ce==="\\downarrow"?Zr=kn="\u23D0":ce==="\\Downarrow"?Zr=kn="\u2016":ce==="\\updownarrow"?(Zr="\\uparrow",kn="\u23D0",ci="\\downarrow"):ce==="\\Updownarrow"?(Zr="\\Uparrow",kn="\u2016",ci="\\Downarrow"):ce==="["||ce==="\\lbrack"?(Zr="\u23A1",kn="\u23A2",ci="\u23A3",Si="Size4-Regular"):ce==="]"||ce==="\\rbrack"?(Zr="\u23A4",kn="\u23A5",ci="\u23A6",Si="Size4-Regular"):ce==="\\lfloor"||ce==="\u230A"?(kn=Zr="\u23A2",ci="\u23A3",Si="Size4-Regular"):ce==="\\lceil"||ce==="\u2308"?(Zr="\u23A1",kn=ci="\u23A2",Si="Size4-Regular"):ce==="\\rfloor"||ce==="\u230B"?(kn=Zr="\u23A5",ci="\u23A6",Si="Size4-Regular"):ce==="\\rceil"||ce==="\u2309"?(Zr="\u23A4",kn=ci="\u23A5",Si="Size4-Regular"):ce==="("||ce==="\\lparen"?(Zr="\u239B",kn="\u239C",ci="\u239D",Si="Size4-Regular"):ce===")"||ce==="\\rparen"?(Zr="\u239E",kn="\u239F",ci="\u23A0",Si="Size4-Regular"):ce==="\\{"||ce==="\\lbrace"?(Zr="\u23A7",vn="\u23A8",ci="\u23A9",kn="\u23AA",Si="Size4-Regular"):ce==="\\}"||ce==="\\rbrace"?(Zr="\u23AB",vn="\u23AC",ci="\u23AD",kn="\u23AA",Si="Size4-Regular"):ce==="\\lgroup"||ce==="\u27EE"?(Zr="\u23A7",ci="\u23A9",kn="\u23AA",Si="Size4-Regular"):ce==="\\rgroup"||ce==="\u27EF"?(Zr="\u23AB",ci="\u23AD",kn="\u23AA",Si="Size4-Regular"):ce==="\\lmoustache"||ce==="\u23B0"?(Zr="\u23A7",ci="\u23AD",kn="\u23AA",Si="Size4-Regular"):(ce==="\\rmoustache"||ce==="\u23B1")&&(Zr="\u23AB",ci="\u23A9",kn="\u23AA",Si="Size4-Regular");var Ai=Ii(Zr,Si,Pt),Qi=Ai.height+Ai.depth,sa=Ii(kn,Si,Pt),Ua=sa.height+sa.depth,no=Ii(ci,Si,Pt),Wo=no.height+no.depth,Zo=0,Bo=1;if(vn!==null){var Es=Ii(vn,Si,Pt);Zo=Es.height+Es.depth,Bo=2}var As=Qi+Wo+Zo,$o=Math.max(0,Math.ceil((Se-As)/(Bo*Ua))),Do=As+$o*Bo*Ua,vo=Je.fontMetrics().axisHeight;Ie&&(vo*=Je.sizeMultiplier);var Ms=Do/2-vo,rl=($o+1)*.005-Ua,gs=[];if(gs.push(Ji(ci,Si,Pt)),vn===null)for(var Ra=0;Ra<$o;Ra++)gs.push(ca),gs.push(Ji(kn,Si,Pt));else{for(var dl=0;dl<$o;dl++)gs.push(ca),gs.push(Ji(kn,Si,Pt));gs.push({type:"kern",size:rl}),gs.push(Ji(kn,Si,Pt)),gs.push(ca),gs.push(Ji(vn,Si,Pt));for(var fl=0;fl<$o;fl++)gs.push(ca),gs.push(Ji(kn,Si,Pt))}gs.push({type:"kern",size:rl}),gs.push(Ji(kn,Si,Pt)),gs.push(ca),gs.push(Ji(Zr,Si,Pt));var Us=Je.havingBaseStyle(z.TEXT),Os=Br.makeVList({positionType:"bottom",positionData:Ms,children:gs},Us);return Vi(Br.makeSpan(["delimsizing","mult"],[Os],Us),z.TEXT,Je,cr)},na=80,Pa=.08,La=function(ce,Se,Ie,Je,Pt){var cr=Ve(ce,Je,Ie),Zr=new fe(ce,cr),vn=new Be([Zr],{width:"400em",height:Se+"em",viewBox:"0 0 400000 "+Ie,preserveAspectRatio:"xMinYMin slice"});return Br.makeSvgSpan(["hide-tail"],[vn],Pt)},va=function(ce,Se){var Ie=Se.havingBaseSizing(),Je=Qo("\\surd",ce*Ie.sizeMultiplier,io,Ie),Pt=Ie.sizeMultiplier,cr=Math.max(0,Se.minRuleThickness-Se.fontMetrics().sqrtRuleThickness),Zr,vn=0,kn=0,ci=0,Si;return Je.type==="small"?(ci=1e3+1e3*cr+na,ce<1?Pt=1:ce<1.4&&(Pt=.7),vn=(1+cr+Pa)/Pt,kn=(1+cr)/Pt,Zr=La("sqrtMain",vn,ci,cr,Se),Zr.style.minWidth="0.853em",Si=.833/Pt):Je.type==="large"?(ci=(1e3+na)*Xa[Je.size],kn=(Xa[Je.size]+cr)/Pt,vn=(Xa[Je.size]+cr+Pa)/Pt,Zr=La("sqrtSize"+Je.size,vn,ci,cr,Se),Zr.style.minWidth="1.02em",Si=1/Pt):(vn=ce+cr+Pa,kn=ce+cr,ci=Math.floor(1e3*ce+cr)+na,Zr=La("sqrtTall",vn,ci,cr,Se),Zr.style.minWidth="0.742em",Si=1.056),Zr.height=kn,Zr.style.height=vn+"em",{span:Zr,advanceWidth:Si,ruleWidth:(Se.fontMetrics().sqrtRuleThickness+cr)*Pt}},ga=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Oa=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Aa=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Xa=[0,1.2,1.8,2.4,3],_a=function(ce,Se,Ie,Je,Pt){if(ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle"),A.contains(ga,ce)||A.contains(Aa,ce))return Hi(ce,Se,!1,Ie,Je,Pt);if(A.contains(Oa,ce))return Ta(ce,Xa[Se],!1,Ie,Je,Pt);throw new l("Illegal delimiter: '"+ce+"'")},Va=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Bi=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"stack"}],io=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],oo=function(ce){if(ce.type==="small")return"Main-Regular";if(ce.type==="large")return"Size"+ce.size+"-Regular";if(ce.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+ce.type+"' here.")},Qo=function(ce,Se,Ie,Je){for(var Pt=Math.min(2,3-Je.style.size),cr=Pt;cr<Ie.length&&!(Ie[cr].type==="stack");cr++){var Zr=Ii(ce,oo(Ie[cr]),"math"),vn=Zr.height+Zr.depth;if(Ie[cr].type==="small"){var kn=Je.havingBaseStyle(Ie[cr].style);vn*=kn.sizeMultiplier}if(vn>Se)return Ie[cr]}return Ie[Ie.length-1]},mo=function(ce,Se,Ie,Je,Pt,cr){ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle");var Zr;A.contains(Aa,ce)?Zr=Va:A.contains(ga,ce)?Zr=io:Zr=Bi;var vn=Qo(ce,Se,Zr,Je);return vn.type==="small"?Xi(ce,vn.style,Ie,Je,Pt,cr):vn.type==="large"?Hi(ce,vn.size,Ie,Je,Pt,cr):Ta(ce,Se,Ie,Je,Pt,cr)},Co=function(ce,Se,Ie,Je,Pt,cr){var Zr=Je.fontMetrics().axisHeight*Je.sizeMultiplier,vn=901,kn=5/Je.fontMetrics().ptPerEm,ci=Math.max(Se-Zr,Ie+Zr),Si=Math.max(ci/500*vn,2*ci-kn);return mo(ce,Si,!0,Je,Pt,cr)},ao={sqrtImage:va,sizedDelim:_a,customSizedDelim:mo,leftRightDelim:Co},xo={"\\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}},bo=["(","\\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 to(Mt,ce){var Se=Pi(Mt);if(Se&&A.contains(bo,Se.text))return Se;throw new l("Invalid delimiter: '"+(Se?Se.text:JSON.stringify(Mt))+"' after '"+ce.funcName+"'",Mt)}kt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(ce,Se){var Ie=to(Se[0],ce);return{type:"delimsizing",mode:ce.parser.mode,size:xo[ce.funcName].size,mclass:xo[ce.funcName].mclass,delim:Ie.text}},htmlBuilder:function(ce,Se){return ce.delim==="."?Br.makeSpan([ce.mclass]):ao.sizedDelim(ce.delim,ce.size,Se,ce.mode,[ce.mclass])},mathmlBuilder:function(ce){var Se=[];ce.delim!=="."&&Se.push(Pn(ce.delim,ce.mode));var Ie=new bi.MathNode("mo",Se);return ce.mclass==="mopen"||ce.mclass==="mclose"?Ie.setAttribute("fence","true"):Ie.setAttribute("fence","false"),Ie}});function Jo(Mt){if(!Mt.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}kt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser.gullet.macros.get("\\current@color");if(Ie&&typeof Ie!="string")throw new l("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ce.parser.mode,delim:to(Se[0],ce).text,color:Ie}}}),kt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ce,Se){var Ie=to(Se[0],ce),Je=ce.parser;++Je.leftrightDepth;var Pt=Je.parseExpression(!1);--Je.leftrightDepth,Je.expect("\\right",!1);var cr=jn(Je.parseFunction(),"leftright-right");return{type:"leftright",mode:Je.mode,body:Pt,left:Ie.text,right:cr.delim,rightColor:cr.color}},htmlBuilder:function(ce,Se){Jo(ce);for(var Ie=An(ce.body,Se,!0,["mopen","mclose"]),Je=0,Pt=0,cr=!1,Zr=0;Zr<Ie.length;Zr++)Ie[Zr].isMiddle?cr=!0:(Je=Math.max(Ie[Zr].height,Je),Pt=Math.max(Ie[Zr].depth,Pt));Je*=Se.sizeMultiplier,Pt*=Se.sizeMultiplier;var vn;if(ce.left==="."?vn=si(Se,["mopen"]):vn=ao.leftRightDelim(ce.left,Je,Pt,Se,ce.mode,["mopen"]),Ie.unshift(vn),cr)for(var kn=1;kn<Ie.length;kn++){var ci=Ie[kn],Si=ci.isMiddle;Si&&(Ie[kn]=ao.leftRightDelim(Si.delim,Je,Pt,Si.options,ce.mode,[]))}var Ai;if(ce.right===".")Ai=si(Se,["mclose"]);else{var Qi=ce.rightColor?Se.withColor(ce.rightColor):Se;Ai=ao.leftRightDelim(ce.right,Je,Pt,Qi,ce.mode,["mclose"])}return Ie.push(Ai),Br.makeSpan(["minner"],Ie,Se)},mathmlBuilder:function(ce,Se){Jo(ce);var Ie=ta(ce.body,Se);if(ce.left!=="."){var Je=new bi.MathNode("mo",[Pn(ce.left,ce.mode)]);Je.setAttribute("fence","true"),Ie.unshift(Je)}if(ce.right!=="."){var Pt=new bi.MathNode("mo",[Pn(ce.right,ce.mode)]);Pt.setAttribute("fence","true"),ce.rightColor&&Pt.setAttribute("mathcolor",ce.rightColor),Ie.push(Pt)}return ji(Ie)}}),kt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ce,Se){var Ie=to(Se[0],ce);if(!ce.parser.leftrightDepth)throw new l("\\middle without preceding \\left",Ie);return{type:"middle",mode:ce.parser.mode,delim:Ie.text}},htmlBuilder:function(ce,Se){var Ie;if(ce.delim===".")Ie=si(Se,[]);else{Ie=ao.sizedDelim(ce.delim,1,Se,ce.mode,[]);var Je={delim:ce.delim,options:Se};Ie.isMiddle=Je}return Ie},mathmlBuilder:function(ce,Se){var Ie=ce.delim==="\\vert"||ce.delim==="|"?Pn("|","text"):Pn(ce.delim,ce.mode),Je=new bi.MathNode("mo",[Ie]);return Je.setAttribute("fence","true"),Je.setAttribute("lspace","0.05em"),Je.setAttribute("rspace","0.05em"),Je}});var Uo=function(ce,Se){var Ie=Br.wrapFragment(Ci(ce.body,Se),Se),Je=ce.label.substr(1),Pt=Se.sizeMultiplier,cr,Zr=0,vn=A.isCharacterBox(ce.body);if(Je==="sout")cr=Br.makeSpan(["stretchy","sout"]),cr.height=Se.fontMetrics().defaultRuleThickness/Pt,Zr=-.5*Se.fontMetrics().xHeight;else{/cancel/.test(Je)?vn||Ie.classes.push("cancel-pad"):Ie.classes.push("boxpad");var kn=0,ci=0;/box/.test(Je)?(ci=Math.max(Se.fontMetrics().fboxrule,Se.minRuleThickness),kn=Se.fontMetrics().fboxsep+(Je==="colorbox"?0:ci)):kn=vn?.2:0,cr=Nn.encloseSpan(Ie,Je,kn,Se),/fbox|boxed|fcolorbox/.test(Je)&&(cr.style.borderStyle="solid",cr.style.borderWidth=ci+"em"),Zr=Ie.depth+kn,ce.backgroundColor&&(cr.style.backgroundColor=ce.backgroundColor,ce.borderColor&&(cr.style.borderColor=ce.borderColor))}var Si;return ce.backgroundColor?Si=Br.makeVList({positionType:"individualShift",children:[{type:"elem",elem:cr,shift:Zr},{type:"elem",elem:Ie,shift:0}]},Se):Si=Br.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ie,shift:0},{type:"elem",elem:cr,shift:Zr,wrapperClasses:/cancel/.test(Je)?["svg-align"]:[]}]},Se),/cancel/.test(Je)&&(Si.height=Ie.height,Si.depth=Ie.depth),/cancel/.test(Je)&&!vn?Br.makeSpan(["mord","cancel-lap"],[Si],Se):Br.makeSpan(["mord"],[Si],Se)},wo=function(ce,Se){var Ie=0,Je=new bi.MathNode(ce.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Nr(ce.body,Se)]);switch(ce.label){case"\\cancel":Je.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Je.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Je.setAttribute("notation","horizontalstrike");break;case"\\fbox":Je.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(Ie=Se.fontMetrics().fboxsep*Se.fontMetrics().ptPerEm,Je.setAttribute("width","+"+2*Ie+"pt"),Je.setAttribute("height","+"+2*Ie+"pt"),Je.setAttribute("lspace",Ie+"pt"),Je.setAttribute("voffset",Ie+"pt"),ce.label==="\\fcolorbox"){var Pt=Math.max(Se.fontMetrics().fboxrule,Se.minRuleThickness);Je.setAttribute("style","border: "+Pt+"em solid "+String(ce.borderColor))}break;case"\\xcancel":Je.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ce.backgroundColor&&Je.setAttribute("mathbackground",ce.backgroundColor),Je};kt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ce,Se,Ie){var Je=ce.parser,Pt=ce.funcName,cr=jn(Se[0],"color-token").color,Zr=Se[1];return{type:"enclose",mode:Je.mode,label:Pt,backgroundColor:cr,body:Zr}},htmlBuilder:Uo,mathmlBuilder:wo}),kt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ce,Se,Ie){var Je=ce.parser,Pt=ce.funcName,cr=jn(Se[0],"color-token").color,Zr=jn(Se[1],"color-token").color,vn=Se[2];return{type:"enclose",mode:Je.mode,label:Pt,backgroundColor:Zr,borderColor:cr,body:vn}},htmlBuilder:Uo,mathmlBuilder:wo}),kt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser;return{type:"enclose",mode:Ie.mode,label:"\\fbox",body:Se[0]}}}),kt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ce,Se,Ie){var Je=ce.parser,Pt=ce.funcName,cr=Se[0];return{type:"enclose",mode:Je.mode,label:Pt,body:cr}},htmlBuilder:Uo,mathmlBuilder:wo});var ts={};function Ia(Mt){for(var ce=Mt.type,Se=Mt.names,Ie=Mt.props,Je=Mt.handler,Pt=Mt.htmlBuilder,cr=Mt.mathmlBuilder,Zr={type:ce,numArgs:Ie.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Je},vn=0;vn<Se.length;++vn)ts[Se[vn]]=Zr;Pt&&(Wt[ce]=Pt),cr&&(Xt[ce]=cr)}function Oo(Mt){var ce=[];Mt.consumeSpaces();for(var Se=Mt.fetch().text;Se==="\\hline"||Se==="\\hdashline";)Mt.consume(),ce.push(Se==="\\hdashline"),Mt.consumeSpaces(),Se=Mt.fetch().text;return ce}function Io(Mt,ce,Se){var Ie=ce.hskipBeforeAndAfter,Je=ce.addJot,Pt=ce.cols,cr=ce.arraystretch,Zr=ce.colSeparationType;if(Mt.gullet.beginGroup(),Mt.gullet.macros.set("\\\\","\\cr"),!cr){var vn=Mt.gullet.expandMacroAsText("\\arraystretch");if(vn==null)cr=1;else if(cr=parseFloat(vn),!cr||cr<0)throw new l("Invalid \\arraystretch: "+vn)}Mt.gullet.beginGroup();var kn=[],ci=[kn],Si=[],Ai=[];for(Ai.push(Oo(Mt));;){var Qi=Mt.parseExpression(!1,"\\cr");Mt.gullet.endGroup(),Mt.gullet.beginGroup(),Qi={type:"ordgroup",mode:Mt.mode,body:Qi},Se&&(Qi={type:"styling",mode:Mt.mode,style:Se,body:[Qi]}),kn.push(Qi);var sa=Mt.fetch().text;if(sa==="&")Mt.consume();else if(sa==="\\end"){kn.length===1&&Qi.type==="styling"&&Qi.body[0].body.length===0&&ci.pop(),Ai.length<ci.length+1&&Ai.push([]);break}else if(sa==="\\cr"){var Ua=jn(Mt.parseFunction(),"cr");Si.push(Ua.size),Ai.push(Oo(Mt)),kn=[],ci.push(kn)}else throw new l("Expected & or \\\\ or \\cr or \\end",Mt.nextToken)}return Mt.gullet.endGroup(),Mt.gullet.endGroup(),{type:"array",mode:Mt.mode,addJot:Je,arraystretch:cr,body:ci,cols:Pt,rowGaps:Si,hskipBeforeAndAfter:Ie,hLinesBeforeRow:Ai,colSeparationType:Zr}}function os(Mt){return Mt.substr(0,1)==="d"?"display":"text"}var So=function(ce,Se){var Ie,Je,Pt=ce.body.length,cr=ce.hLinesBeforeRow,Zr=0,vn=new Array(Pt),kn=[],ci=Math.max(Se.fontMetrics().arrayRuleWidth,Se.minRuleThickness),Si=1/Se.fontMetrics().ptPerEm,Ai=5*Si;if(ce.colSeparationType&&ce.colSeparationType==="small"){var Qi=Se.havingStyle(z.SCRIPT).sizeMultiplier;Ai=.2778*(Qi/Se.sizeMultiplier)}var sa=12*Si,Ua=3*Si,no=ce.arraystretch*sa,Wo=.7*no,Zo=.3*no,Bo=0;function Es(Ls){for(var Ps=0;Ps<Ls.length;++Ps)Ps>0&&(Bo+=.25),kn.push({pos:Bo,isDashed:Ls[Ps]})}for(Es(cr[0]),Ie=0;Ie<ce.body.length;++Ie){var As=ce.body[Ie],$o=Wo,Do=Zo;Zr<As.length&&(Zr=As.length);var vo=new Array(As.length);for(Je=0;Je<As.length;++Je){var Ms=Ci(As[Je],Se);Do<Ms.depth&&(Do=Ms.depth),$o<Ms.height&&($o=Ms.height),vo[Je]=Ms}var rl=ce.rowGaps[Ie],gs=0;rl&&(gs=Rr(rl,Se),gs>0&&(gs+=Zo,Do<gs&&(Do=gs),gs=0)),ce.addJot&&(Do+=Ua),vo.height=$o,vo.depth=Do,Bo+=$o,vo.pos=Bo,Bo+=Do+gs,vn[Ie]=vo,Es(cr[Ie+1])}var Ra=Bo/2+Se.fontMetrics().axisHeight,dl=ce.cols||[],fl=[],Us,Os;for(Je=0,Os=0;Je<Zr||Os<dl.length;++Je,++Os){for(var Xs=dl[Os]||{},Ql=!0;Xs.type==="separator";){if(Ql||(Us=Br.makeSpan(["arraycolsep"],[]),Us.style.width=Se.fontMetrics().doubleRuleSep+"em",fl.push(Us)),Xs.separator==="|"||Xs.separator===":"){var Ul=Xs.separator==="|"?"solid":"dashed",wl=Br.makeSpan(["vertical-separator"],[],Se);wl.style.height=Bo+"em",wl.style.borderRightWidth=ci+"em",wl.style.borderRightStyle=Ul,wl.style.margin="0 -"+ci/2+"em",wl.style.verticalAlign=-(Bo-Ra)+"em",fl.push(wl)}else throw new l("Invalid separator type: "+Xs.separator);Os++,Xs=dl[Os]||{},Ql=!1}if(Je>=Zr)continue;var Cs=void 0;(Je>0||ce.hskipBeforeAndAfter)&&(Cs=A.deflt(Xs.pregap,Ai),Cs!==0&&(Us=Br.makeSpan(["arraycolsep"],[]),Us.style.width=Cs+"em",fl.push(Us)));var Ws=[];for(Ie=0;Ie<Pt;++Ie){var Cl=vn[Ie],pl=Cl[Je];if(!pl)continue;var jo=Cl.pos-Ra;pl.depth=Cl.depth,pl.height=Cl.height,Ws.push({type:"elem",elem:pl,shift:jo})}Ws=Br.makeVList({positionType:"individualShift",children:Ws},Se),Ws=Br.makeSpan(["col-align-"+(Xs.align||"c")],[Ws]),fl.push(Ws),(Je<Zr-1||ce.hskipBeforeAndAfter)&&(Cs=A.deflt(Xs.postgap,Ai),Cs!==0&&(Us=Br.makeSpan(["arraycolsep"],[]),Us.style.width=Cs+"em",fl.push(Us)))}if(vn=Br.makeSpan(["mtable"],fl),kn.length>0){for(var yo=Br.makeLineSpan("hline",Se,ci),qo=Br.makeLineSpan("hdashline",Se,ci),ps=[{type:"elem",elem:vn,shift:0}];kn.length>0;){var Is=kn.pop(),es=Is.pos-Ra;Is.isDashed?ps.push({type:"elem",elem:qo,shift:es}):ps.push({type:"elem",elem:yo,shift:es})}vn=Br.makeVList({positionType:"individualShift",children:ps},Se)}return Br.makeSpan(["mord"],[vn],Se)},rs={c:"center ",l:"left ",r:"right "},Ho=function(ce,Se){var Ie=new bi.MathNode("mtable",ce.body.map(function(Bo){return new bi.MathNode("mtr",Bo.map(function(Es){return new bi.MathNode("mtd",[Nr(Es,Se)])}))})),Je=ce.arraystretch===.5?.1:.16+ce.arraystretch-1+(ce.addJot?.09:0);Ie.setAttribute("rowspacing",Je+"em");var Pt="",cr="";if(ce.cols){var Zr=ce.cols,vn="",kn=!1,ci=0,Si=Zr.length;Zr[0].type==="separator"&&(Pt+="top ",ci=1),Zr[Zr.length-1].type==="separator"&&(Pt+="bottom ",Si-=1);for(var Ai=ci;Ai<Si;Ai++)Zr[Ai].type==="align"?(cr+=rs[Zr[Ai].align],kn&&(vn+="none "),kn=!0):Zr[Ai].type==="separator"&&(kn&&(vn+=Zr[Ai].separator==="|"?"solid ":"dashed ",kn=!1));Ie.setAttribute("columnalign",cr.trim()),/[sd]/.test(vn)&&Ie.setAttribute("columnlines",vn.trim())}if(ce.colSeparationType==="align"){for(var Qi=ce.cols||[],sa="",Ua=1;Ua<Qi.length;Ua++)sa+=Ua%2?"0em ":"1em ";Ie.setAttribute("columnspacing",sa.trim())}else ce.colSeparationType==="alignat"?Ie.setAttribute("columnspacing","0em"):ce.colSeparationType==="small"?Ie.setAttribute("columnspacing","0.2778em"):Ie.setAttribute("columnspacing","1em");var no="",Wo=ce.hLinesBeforeRow;Pt+=Wo[0].length>0?"left ":"",Pt+=Wo[Wo.length-1].length>0?"right ":"";for(var Zo=1;Zo<Wo.length-1;Zo++)no+=Wo[Zo].length===0?"none ":Wo[Zo][0]?"dashed ":"solid ";return/[sd]/.test(no)&&Ie.setAttribute("rowlines",no.trim()),Pt!==""&&(Ie=new bi.MathNode("menclose",[Ie]),Ie.setAttribute("notation",Pt.trim())),ce.arraystretch&&ce.arraystretch<1&&(Ie=new bi.MathNode("mstyle",[Ie]),Ie.setAttribute("scriptlevel","1")),Ie},_o=function(ce,Se){var Ie=[],Je=Io(ce.parser,{cols:Ie,addJot:!0},"display"),Pt,cr=0,Zr={type:"ordgroup",mode:ce.mode,body:[]},vn=xn(Se[0],"ordgroup");if(vn){for(var kn="",ci=0;ci<vn.body.length;ci++){var Si=jn(vn.body[ci],"textord");kn+=Si.text}Pt=Number(kn),cr=Pt*2}var Ai=!cr;Je.body.forEach(function(no){for(var Wo=1;Wo<no.length;Wo+=2){var Zo=jn(no[Wo],"styling"),Bo=jn(Zo.body[0],"ordgroup");Bo.body.unshift(Zr)}if(Ai)cr<no.length&&(cr=no.length);else{var Es=no.length/2;if(Pt<Es)throw new l("Too many math in a row: "+("expected "+Pt+", but got "+Es),no[0])}});for(var Qi=0;Qi<cr;++Qi){var sa="r",Ua=0;Qi%2===1?sa="l":Qi>0&&Ai&&(Ua=1),Ie[Qi]={type:"align",align:sa,pregap:Ua,postgap:0}}return Je.colSeparationType=Ai?"align":"alignat",Je};Ia({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ce,Se){var Ie=Pi(Se[0]),Je=Ie?[Se[0]]:jn(Se[0],"ordgroup").body,Pt=Je.map(function(Zr){var vn=mi(Zr),kn=vn.text;if("lcr".indexOf(kn)!==-1)return{type:"align",align:kn};if(kn==="|")return{type:"separator",separator:"|"};if(kn===":")return{type:"separator",separator:":"};throw new l("Unknown column alignment: "+kn,Zr)}),cr={cols:Pt,hskipBeforeAndAfter:!0};return Io(ce.parser,cr,os(ce.envName))},htmlBuilder:So,mathmlBuilder:Ho}),Ia({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ce){var Se={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ce.envName],Ie={hskipBeforeAndAfter:!1},Je=Io(ce.parser,Ie,os(ce.envName));return Se?{type:"leftright",mode:ce.mode,body:[Je],left:Se[0],right:Se[1],rightColor:void 0}:Je},htmlBuilder:So,mathmlBuilder:Ho}),Ia({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ce){var Se={arraystretch:.5},Ie=Io(ce.parser,Se,"script");return Ie.colSeparationType="small",Ie},htmlBuilder:So,mathmlBuilder:Ho}),Ia({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ce,Se){var Ie=Pi(Se[0]),Je=Ie?[Se[0]]:jn(Se[0],"ordgroup").body,Pt=Je.map(function(Zr){var vn=mi(Zr),kn=vn.text;if("lc".indexOf(kn)!==-1)return{type:"align",align:kn};throw new l("Unknown column alignment: "+kn,Zr)});if(Pt.length>1)throw new l("{subarray} can contain only one column");var cr={cols:Pt,hskipBeforeAndAfter:!1,arraystretch:.5};if(cr=Io(ce.parser,cr,"script"),cr.body[0].length>1)throw new l("{subarray} can contain only one column");return cr},htmlBuilder:So,mathmlBuilder:Ho}),Ia({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ce){var Se={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Ie=Io(ce.parser,Se,os(ce.envName));return{type:"leftright",mode:ce.mode,body:[Ie],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:So,mathmlBuilder:Ho}),Ia({type:"array",names:["aligned"],props:{numArgs:0},handler:_o,htmlBuilder:So,mathmlBuilder:Ho}),Ia({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ce){var Se={cols:[{type:"align",align:"c"}],addJot:!0};return Io(ce.parser,Se,"display")},htmlBuilder:So,mathmlBuilder:Ho}),Ia({type:"array",names:["alignedat"],props:{numArgs:1},handler:_o,htmlBuilder:So,mathmlBuilder:Ho}),kt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ce,Se){throw new l(ce.funcName+" valid only within array environment")}});var uo=ts,Ha=uo;kt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=Se[0];if(Pt.type!=="ordgroup")throw new l("Invalid environment name",Pt);for(var cr="",Zr=0;Zr<Pt.body.length;++Zr)cr+=jn(Pt.body[Zr],"textord").text;if(Je==="\\begin"){if(!Ha.hasOwnProperty(cr))throw new l("No such environment: "+cr,Pt);var vn=Ha[cr],kn=Ie.parseArguments("\\begin{"+cr+"}",vn),ci=kn.args,Si=kn.optArgs,Ai={mode:Ie.mode,envName:cr,parser:Ie},Qi=vn.handler(Ai,ci,Si);Ie.expect("\\end",!1);var sa=Ie.nextToken,Ua=jn(Ie.parseFunction(),"environment");if(Ua.name!==cr)throw new l("Mismatch: \\begin{"+cr+"} matched by \\end{"+Ua.name+"}",sa);return Qi}return{type:"environment",mode:Ie.mode,name:cr,nameGroup:Pt}}});var vt=Br.makeSpan;function _r(Mt,ce){var Se=An(Mt.body,ce,!0);return vt([Mt.mclass],Se,ce)}function rn(Mt,ce){var Se,Ie=ta(Mt.body,ce);return Mt.mclass==="minner"?bi.newDocumentFragment(Ie):(Mt.mclass==="mord"?Mt.isCharacterBox?(Se=Ie[0],Se.type="mi"):Se=new bi.MathNode("mi",Ie):(Mt.isCharacterBox?(Se=Ie[0],Se.type="mo"):Se=new bi.MathNode("mo",Ie),Mt.mclass==="mbin"?(Se.attributes.lspace="0.22em",Se.attributes.rspace="0.22em"):Mt.mclass==="mpunct"?(Se.attributes.lspace="0em",Se.attributes.rspace="0.17em"):(Mt.mclass==="mopen"||Mt.mclass==="mclose")&&(Se.attributes.lspace="0em",Se.attributes.rspace="0em")),Se)}kt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=Se[0];return{type:"mclass",mode:Ie.mode,mclass:"m"+Je.substr(5),body:br(Pt),isCharacterBox:A.isCharacterBox(Pt)}},htmlBuilder:_r,mathmlBuilder:rn});var Jr=function(ce){var Se=ce.type==="ordgroup"&&ce.body.length?ce.body[0]:ce;return Se.type==="atom"&&(Se.family==="bin"||Se.family==="rel")?"m"+Se.family:"mord"};kt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ce,Se){var Ie=ce.parser;return{type:"mclass",mode:Ie.mode,mclass:Jr(Se[0]),body:[Se[1]],isCharacterBox:A.isCharacterBox(Se[1])}}}),kt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=Se[1],cr=Se[0],Zr;Je!=="\\stackrel"?Zr=Jr(Pt):Zr="mrel";var vn={type:"op",mode:Pt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Je!=="\\stackrel",body:br(Pt)},kn={type:"supsub",mode:cr.mode,base:vn,sup:Je==="\\underset"?null:cr,sub:Je==="\\underset"?cr:null};return{type:"mclass",mode:Ie.mode,mclass:Zr,body:[kn],isCharacterBox:A.isCharacterBox(kn)}},htmlBuilder:_r,mathmlBuilder:rn});var Jn=function(ce,Se){var Ie=ce.font,Je=Se.withFont(Ie);return Ci(ce.body,Je)},fn=function(ce,Se){var Ie=ce.font,Je=Se.withFont(Ie);return Nr(ce.body,Je)},Yr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};kt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=Se[0],cr=Je;return cr in Yr&&(cr=Yr[cr]),{type:"font",mode:Ie.mode,font:cr.slice(1),body:Pt}},htmlBuilder:Jn,mathmlBuilder:fn}),kt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0],Pt=A.isCharacterBox(Je);return{type:"mclass",mode:Ie.mode,mclass:Jr(Je),body:[{type:"font",mode:Ie.mode,font:"boldsymbol",body:Je}],isCharacterBox:Pt}}}),kt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=ce.breakOnTokenText,cr=Ie.mode,Zr=Ie.parseExpression(!0,Pt),vn="math"+Je.slice(1);return{type:"font",mode:cr,font:vn,body:{type:"ordgroup",mode:Ie.mode,body:Zr}}},htmlBuilder:Jn,mathmlBuilder:fn});var ii=function(ce,Se){var Ie=Se;return ce==="display"?Ie=Ie.id>=z.SCRIPT.id?Ie.text():z.DISPLAY:ce==="text"&&Ie.size===z.DISPLAY.size?Ie=z.TEXT:ce==="script"?Ie=z.SCRIPT:ce==="scriptscript"&&(Ie=z.SCRIPTSCRIPT),Ie},on=function(ce,Se){var Ie=ii(ce.size,Se.style),Je=Ie.fracNum(),Pt=Ie.fracDen(),cr;cr=Se.havingStyle(Je);var Zr=Ci(ce.numer,cr,Se);if(ce.continued){var vn=8.5/Se.fontMetrics().ptPerEm,kn=3.5/Se.fontMetrics().ptPerEm;Zr.height=Zr.height<vn?vn:Zr.height,Zr.depth=Zr.depth<kn?kn:Zr.depth}cr=Se.havingStyle(Pt);var ci=Ci(ce.denom,cr,Se),Si,Ai,Qi;ce.hasBarLine?(ce.barSize?(Ai=Rr(ce.barSize,Se),Si=Br.makeLineSpan("frac-line",Se,Ai)):Si=Br.makeLineSpan("frac-line",Se),Ai=Si.height,Qi=Si.height):(Si=null,Ai=0,Qi=Se.fontMetrics().defaultRuleThickness);var sa,Ua,no;Ie.size===z.DISPLAY.size||ce.size==="display"?(sa=Se.fontMetrics().num1,Ai>0?Ua=3*Qi:Ua=7*Qi,no=Se.fontMetrics().denom1):(Ai>0?(sa=Se.fontMetrics().num2,Ua=Qi):(sa=Se.fontMetrics().num3,Ua=3*Qi),no=Se.fontMetrics().denom2);var Wo;if(Si){var Bo=Se.fontMetrics().axisHeight;sa-Zr.depth-(Bo+.5*Ai)<Ua&&(sa+=Ua-(sa-Zr.depth-(Bo+.5*Ai))),Bo-.5*Ai-(ci.height-no)<Ua&&(no+=Ua-(Bo-.5*Ai-(ci.height-no)));var Es=-(Bo-.5*Ai);Wo=Br.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ci,shift:no},{type:"elem",elem:Si,shift:Es},{type:"elem",elem:Zr,shift:-sa}]},Se)}else{var Zo=sa-Zr.depth-(ci.height-no);Zo<Ua&&(sa+=.5*(Ua-Zo),no+=.5*(Ua-Zo)),Wo=Br.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ci,shift:no},{type:"elem",elem:Zr,shift:-sa}]},Se)}cr=Se.havingStyle(Ie),Wo.height*=cr.sizeMultiplier/Se.sizeMultiplier,Wo.depth*=cr.sizeMultiplier/Se.sizeMultiplier;var As;Ie.size===z.DISPLAY.size?As=Se.fontMetrics().delim1:As=Se.fontMetrics().delim2;var $o,Do;return ce.leftDelim==null?$o=si(Se,["mopen"]):$o=ao.customSizedDelim(ce.leftDelim,As,!0,Se.havingStyle(Ie),ce.mode,["mopen"]),ce.continued?Do=Br.makeSpan([]):ce.rightDelim==null?Do=si(Se,["mclose"]):Do=ao.customSizedDelim(ce.rightDelim,As,!0,Se.havingStyle(Ie),ce.mode,["mclose"]),Br.makeSpan(["mord"].concat(cr.sizingClasses(Se)),[$o,Br.makeSpan(["mfrac"],[Wo]),Do],Se)},zn=function(ce,Se){var Ie=new bi.MathNode("mfrac",[Nr(ce.numer,Se),Nr(ce.denom,Se)]);if(!ce.hasBarLine)Ie.setAttribute("linethickness","0px");else if(ce.barSize){var Je=Rr(ce.barSize,Se);Ie.setAttribute("linethickness",Je+"em")}var Pt=ii(ce.size,Se.style);if(Pt.size!==Se.style.size){Ie=new bi.MathNode("mstyle",[Ie]);var cr=Pt.size===z.DISPLAY.size?"true":"false";Ie.setAttribute("displaystyle",cr),Ie.setAttribute("scriptlevel","0")}if(ce.leftDelim!=null||ce.rightDelim!=null){var Zr=[];if(ce.leftDelim!=null){var vn=new bi.MathNode("mo",[new bi.TextNode(ce.leftDelim.replace("\\",""))]);vn.setAttribute("fence","true"),Zr.push(vn)}if(Zr.push(Ie),ce.rightDelim!=null){var kn=new bi.MathNode("mo",[new bi.TextNode(ce.rightDelim.replace("\\",""))]);kn.setAttribute("fence","true"),Zr.push(kn)}return ji(Zr)}return Ie};kt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=Se[0],cr=Se[1],Zr,vn=null,kn=null,ci="auto";switch(Je){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Zr=!0;break;case"\\\\atopfrac":Zr=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Zr=!1,vn="(",kn=")";break;case"\\\\bracefrac":Zr=!1,vn="\\{",kn="\\}";break;case"\\\\brackfrac":Zr=!1,vn="[",kn="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Je){case"\\cfrac":case"\\dfrac":case"\\dbinom":ci="display";break;case"\\tfrac":case"\\tbinom":ci="text";break}return{type:"genfrac",mode:Ie.mode,continued:Je==="\\cfrac",numer:Pt,denom:cr,hasBarLine:Zr,leftDelim:vn,rightDelim:kn,size:ci,barSize:null}},htmlBuilder:on,mathmlBuilder:zn}),kt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ce){var Se=ce.parser,Ie=ce.funcName,Je=ce.token,Pt;switch(Ie){case"\\over":Pt="\\frac";break;case"\\choose":Pt="\\binom";break;case"\\atop":Pt="\\\\atopfrac";break;case"\\brace":Pt="\\\\bracefrac";break;case"\\brack":Pt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:Se.mode,replaceWith:Pt,token:Je}}});var ui=["display","text","script","scriptscript"],di=function(ce){var Se=null;return ce.length>0&&(Se=ce,Se=Se==="."?null:Se),Se};kt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ce,Se){var Ie=ce.parser,Je=Se[4],Pt=Se[5],cr=xn(Se[0],"atom");cr&&(cr=tn(Se[0],"open"));var Zr=cr?di(cr.text):null,vn=xn(Se[1],"atom");vn&&(vn=tn(Se[1],"close"));var kn=vn?di(vn.text):null,ci=jn(Se[2],"size"),Si,Ai=null;ci.isBlank?Si=!0:(Ai=ci.value,Si=Ai.number>0);var Qi="auto",sa=xn(Se[3],"ordgroup");if(sa){if(sa.body.length>0){var Ua=jn(sa.body[0],"textord");Qi=ui[Number(Ua.text)]}}else sa=jn(Se[3],"textord"),Qi=ui[Number(sa.text)];return{type:"genfrac",mode:Ie.mode,numer:Je,denom:Pt,continued:!1,hasBarLine:Si,barSize:Ai,leftDelim:Zr,rightDelim:kn,size:Qi}},htmlBuilder:on,mathmlBuilder:zn}),kt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=ce.token;return{type:"infix",mode:Ie.mode,replaceWith:"\\\\abovefrac",size:jn(Se[0],"size").value,token:Pt}}}),kt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=Se[0],cr=h(jn(Se[1],"infix").size),Zr=Se[2],vn=cr.number>0;return{type:"genfrac",mode:Ie.mode,numer:Pt,denom:Zr,continued:!1,hasBarLine:vn,barSize:cr,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:on,mathmlBuilder:zn});var li=function(ce,Se){var Ie=Se.style,Je,Pt,cr=xn(ce,"supsub");cr?(Je=cr.sup?Ci(cr.sup,Se.havingStyle(Ie.sup()),Se):Ci(cr.sub,Se.havingStyle(Ie.sub()),Se),Pt=jn(cr.base,"horizBrace")):Pt=jn(ce,"horizBrace");var Zr=Ci(Pt.base,Se.havingBaseStyle(z.DISPLAY)),vn=Nn.svgSpan(Pt,Se),kn;if(Pt.isOver?(kn=Br.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Zr},{type:"kern",size:.1},{type:"elem",elem:vn}]},Se),kn.children[0].children[0].children[1].classes.push("svg-align")):(kn=Br.makeVList({positionType:"bottom",positionData:Zr.depth+.1+vn.height,children:[{type:"elem",elem:vn},{type:"kern",size:.1},{type:"elem",elem:Zr}]},Se),kn.children[0].children[0].children[0].classes.push("svg-align")),Je){var ci=Br.makeSpan(["mord",Pt.isOver?"mover":"munder"],[kn],Se);Pt.isOver?kn=Br.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ci},{type:"kern",size:.2},{type:"elem",elem:Je}]},Se):kn=Br.makeVList({positionType:"bottom",positionData:ci.depth+.2+Je.height+Je.depth,children:[{type:"elem",elem:Je},{type:"kern",size:.2},{type:"elem",elem:ci}]},Se)}return Br.makeSpan(["mord",Pt.isOver?"mover":"munder"],[kn],Se)},Ti=function(ce,Se){var Ie=Nn.mathMLnode(ce.label);return new bi.MathNode(ce.isOver?"mover":"munder",[Nr(ce.base,Se),Ie])};kt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName;return{type:"horizBrace",mode:Ie.mode,label:Je,isOver:/^\\over/.test(Je),base:Se[0]}},htmlBuilder:li,mathmlBuilder:Ti}),kt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=Se[1],Pt=jn(Se[0],"url").url;return Ie.settings.isTrusted({command:"\\href",url:Pt})?{type:"href",mode:Ie.mode,href:Pt,body:br(Je)}:Ie.formatUnsupportedCmd("\\href")},htmlBuilder:function(ce,Se){var Ie=An(ce.body,Se,!1);return Br.makeAnchor(ce.href,[],Ie,Se)},mathmlBuilder:function(ce,Se){var Ie=ra(ce.body,Se);return Ie instanceof ma||(Ie=new ma("mrow",[Ie])),Ie.setAttribute("href",ce.href),Ie}}),kt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=jn(Se[0],"url").url;if(!Ie.settings.isTrusted({command:"\\url",url:Je}))return Ie.formatUnsupportedCmd("\\url");for(var Pt=[],cr=0;cr<Je.length;cr++){var Zr=Je[cr];Zr==="~"&&(Zr="\\textasciitilde"),Pt.push({type:"textord",mode:"text",text:Zr})}var vn={type:"text",mode:Ie.mode,font:"\\texttt",body:Pt};return{type:"href",mode:Ie.mode,href:Je,body:br(vn)}}}),kt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser;return{type:"htmlmathml",mode:Ie.mode,html:br(Se[0]),mathml:br(Se[1])}},htmlBuilder:function(ce,Se){var Ie=An(ce.html,Se,!1);return Br.makeFragment(Ie)},mathmlBuilder:function(ce,Se){return ra(ce.mathml,Se)}});var vi=function(ce){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ce))return{number:+ce,unit:"bp"};var Se=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ce);if(!Se)throw new l("Invalid size: '"+ce+"' in \\includegraphics");var Ie={number:+(Se[1]+Se[2]),unit:Se[3]};if(!Kr(Ie))throw new l("Invalid unit: '"+Ie.unit+"' in \\includegraphics.");return Ie};kt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ce,Se,Ie){var Je=ce.parser,Pt={number:0,unit:"em"},cr={number:.9,unit:"em"},Zr={number:0,unit:"em"},vn="";if(Ie[0])for(var kn=jn(Ie[0],"raw").string,ci=kn.split(","),Si=0;Si<ci.length;Si++){var Ai=ci[Si].split("=");if(Ai.length===2){var Qi=Ai[1].trim();switch(Ai[0].trim()){case"alt":vn=Qi;break;case"width":Pt=vi(Qi);break;case"height":cr=vi(Qi);break;case"totalheight":Zr=vi(Qi);break;default:throw new l("Invalid key: '"+Ai[0]+"' in \\includegraphics.")}}}var sa=jn(Se[0],"url").url;return vn===""&&(vn=sa,vn=vn.replace(/^.*[\\/]/,""),vn=vn.substring(0,vn.lastIndexOf("."))),Je.settings.isTrusted({command:"\\includegraphics",url:sa})?{type:"includegraphics",mode:Je.mode,alt:vn,width:Pt,height:cr,totalheight:Zr,src:sa}:Je.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ce,Se){var Ie=Rr(ce.height,Se),Je=0;ce.totalheight.number>0&&(Je=Rr(ce.totalheight,Se)-Ie,Je=Number(Je.toFixed(2)));var Pt=0;ce.width.number>0&&(Pt=Rr(ce.width,Se));var cr={height:Ie+Je+"em"};Pt>0&&(cr.width=Pt+"em"),Je>0&&(cr.verticalAlign=-Je+"em");var Zr=new de(ce.src,ce.alt,cr);return Zr.height=Ie,Zr.depth=Je,Zr},mathmlBuilder:function(ce,Se){var Ie=new bi.MathNode("mglyph",[]);Ie.setAttribute("alt",ce.alt);var Je=Rr(ce.height,Se),Pt=0;if(ce.totalheight.number>0&&(Pt=Rr(ce.totalheight,Se)-Je,Pt=Pt.toFixed(2),Ie.setAttribute("valign","-"+Pt+"em")),Ie.setAttribute("height",Je+Pt+"em"),ce.width.number>0){var cr=Rr(ce.width,Se);Ie.setAttribute("width",cr+"em")}return Ie.setAttribute("src",ce.src),Ie}}),kt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=jn(Se[0],"size");if(Ie.settings.strict){var cr=Je[1]==="m",Zr=Pt.value.unit==="mu";cr?(Zr||Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" supports only mu units, "+("not "+Pt.value.unit+" units")),Ie.mode!=="math"&&Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" works only in math mode")):Zr&&Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" doesn't support mu units")}return{type:"kern",mode:Ie.mode,dimension:Pt.value}},htmlBuilder:function(ce,Se){return Br.makeGlue(ce.dimension,Se)},mathmlBuilder:function(ce,Se){var Ie=Rr(ce.dimension,Se);return new bi.SpaceNode(Ie)}}),kt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=Se[0];return{type:"lap",mode:Ie.mode,alignment:Je.slice(5),body:Pt}},htmlBuilder:function(ce,Se){var Ie;ce.alignment==="clap"?(Ie=Br.makeSpan([],[Ci(ce.body,Se)]),Ie=Br.makeSpan(["inner"],[Ie],Se)):Ie=Br.makeSpan(["inner"],[Ci(ce.body,Se)]);var Je=Br.makeSpan(["fix"],[]),Pt=Br.makeSpan([ce.alignment],[Ie,Je],Se),cr=Br.makeSpan(["strut"]);return cr.style.height=Pt.height+Pt.depth+"em",cr.style.verticalAlign=-Pt.depth+"em",Pt.children.unshift(cr),Pt=Br.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Pt}]},Se),Br.makeSpan(["mord"],[Pt],Se)},mathmlBuilder:function(ce,Se){var Ie=new bi.MathNode("mpadded",[Nr(ce.body,Se)]);if(ce.alignment!=="rlap"){var Je=ce.alignment==="llap"?"-1":"-0.5";Ie.setAttribute("lspace",Je+"width")}return Ie.setAttribute("width","0px"),Ie}}),kt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,Se){var Ie=ce.funcName,Je=ce.parser,Pt=Je.mode;Je.switchMode("math");var cr=Ie==="\\("?"\\)":"$",Zr=Je.parseExpression(!1,cr);return Je.expect(cr),Je.switchMode(Pt),{type:"styling",mode:Je.mode,style:"text",body:Zr}}}),kt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,Se){throw new l("Mismatched "+ce.funcName)}});var yi=function(ce,Se){switch(Se.style.size){case z.DISPLAY.size:return ce.display;case z.TEXT.size:return ce.text;case z.SCRIPT.size:return ce.script;case z.SCRIPTSCRIPT.size:return ce.scriptscript;default:return ce.text}};kt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ce,Se){var Ie=ce.parser;return{type:"mathchoice",mode:Ie.mode,display:br(Se[0]),text:br(Se[1]),script:br(Se[2]),scriptscript:br(Se[3])}},htmlBuilder:function(ce,Se){var Ie=yi(ce,Se),Je=An(Ie,Se,!1);return Br.makeFragment(Je)},mathmlBuilder:function(ce,Se){var Ie=yi(ce,Se);return ra(Ie,Se)}});var Ni=function(ce,Se,Ie,Je,Pt,cr,Zr){ce=Br.makeSpan([],[ce]);var vn,kn;if(Se){var ci=Ci(Se,Je.havingStyle(Pt.sup()),Je);kn={elem:ci,kern:Math.max(Je.fontMetrics().bigOpSpacing1,Je.fontMetrics().bigOpSpacing3-ci.depth)}}if(Ie){var Si=Ci(Ie,Je.havingStyle(Pt.sub()),Je);vn={elem:Si,kern:Math.max(Je.fontMetrics().bigOpSpacing2,Je.fontMetrics().bigOpSpacing4-Si.height)}}var Ai;if(kn&&vn){var Qi=Je.fontMetrics().bigOpSpacing5+vn.elem.height+vn.elem.depth+vn.kern+ce.depth+Zr;Ai=Br.makeVList({positionType:"bottom",positionData:Qi,children:[{type:"kern",size:Je.fontMetrics().bigOpSpacing5},{type:"elem",elem:vn.elem,marginLeft:-cr+"em"},{type:"kern",size:vn.kern},{type:"elem",elem:ce},{type:"kern",size:kn.kern},{type:"elem",elem:kn.elem,marginLeft:cr+"em"},{type:"kern",size:Je.fontMetrics().bigOpSpacing5}]},Je)}else if(vn){var sa=ce.height-Zr;Ai=Br.makeVList({positionType:"top",positionData:sa,children:[{type:"kern",size:Je.fontMetrics().bigOpSpacing5},{type:"elem",elem:vn.elem,marginLeft:-cr+"em"},{type:"kern",size:vn.kern},{type:"elem",elem:ce}]},Je)}else if(kn){var Ua=ce.depth+Zr;Ai=Br.makeVList({positionType:"bottom",positionData:Ua,children:[{type:"elem",elem:ce},{type:"kern",size:kn.kern},{type:"elem",elem:kn.elem,marginLeft:cr+"em"},{type:"kern",size:Je.fontMetrics().bigOpSpacing5}]},Je)}else return ce;return Br.makeSpan(["mop","op-limits"],[Ai],Je)},ia=["\\smallint"],Ki=function(ce,Se){var Ie,Je,Pt=!1,cr,Zr=xn(ce,"supsub");Zr?(Ie=Zr.sup,Je=Zr.sub,cr=jn(Zr.base,"op"),Pt=!0):cr=jn(ce,"op");var vn=Se.style,kn=!1;vn.size===z.DISPLAY.size&&cr.symbol&&!A.contains(ia,cr.name)&&(kn=!0);var ci;if(cr.symbol){var Si=kn?"Size2-Regular":"Size1-Regular",Ai="";if((cr.name==="\\oiint"||cr.name==="\\oiiint")&&(Ai=cr.name.substr(1),cr.name=Ai==="oiint"?"\\iint":"\\iiint"),ci=Br.makeSymbol(cr.name,Si,"math",Se,["mop","op-symbol",kn?"large-op":"small-op"]),Ai.length>0){var Qi=ci.italic,sa=Br.staticSvg(Ai+"Size"+(kn?"2":"1"),Se);ci=Br.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ci,shift:0},{type:"elem",elem:sa,shift:kn?.08:0}]},Se),cr.name="\\"+Ai,ci.classes.unshift("mop"),ci.italic=Qi}}else if(cr.body){var Ua=An(cr.body,Se,!0);Ua.length===1&&Ua[0]instanceof Te?(ci=Ua[0],ci.classes[0]="mop"):ci=Br.makeSpan(["mop"],Br.tryCombineChars(Ua),Se)}else{for(var no=[],Wo=1;Wo<cr.name.length;Wo++)no.push(Br.mathsym(cr.name[Wo],cr.mode,Se));ci=Br.makeSpan(["mop"],no,Se)}var Zo=0,Bo=0;return(ci instanceof Te||cr.name==="\\oiint"||cr.name==="\\oiiint")&&!cr.suppressBaseShift&&(Zo=(ci.height-ci.depth)/2-Se.fontMetrics().axisHeight,Bo=ci.italic),Pt?Ni(ci,Ie,Je,Se,vn,Bo,Zo):(Zo&&(ci.style.position="relative",ci.style.top=Zo+"em"),ci)},fa=function(ce,Se){var Ie;if(ce.symbol)Ie=new ma("mo",[Pn(ce.name,ce.mode)]),A.contains(ia,ce.name)&&Ie.setAttribute("largeop","false");else if(ce.body)Ie=new ma("mo",ta(ce.body,Se));else{Ie=new ma("mi",[new aa(ce.name.slice(1))]);var Je=new ma("mo",[Pn("\u2061","text")]);ce.parentIsSupSub?Ie=new ma("mo",[Ie,Je]):Ie=oa([Ie,Je])}return Ie},Ya={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};kt({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(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=Je;return Pt.length===1&&(Pt=Ya[Pt]),{type:"op",mode:Ie.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Pt}},htmlBuilder:Ki,mathmlBuilder:fa}),kt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0];return{type:"op",mode:Ie.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:br(Je)}},htmlBuilder:Ki,mathmlBuilder:fa});var Sa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};kt({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(ce){var Se=ce.parser,Ie=ce.funcName;return{type:"op",mode:Se.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:Ie}},htmlBuilder:Ki,mathmlBuilder:fa}),kt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ce){var Se=ce.parser,Ie=ce.funcName;return{type:"op",mode:Se.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:Ie}},htmlBuilder:Ki,mathmlBuilder:fa}),kt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ce){var Se=ce.parser,Ie=ce.funcName,Je=Ie;return Je.length===1&&(Je=Sa[Je]),{type:"op",mode:Se.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Je}},htmlBuilder:Ki,mathmlBuilder:fa});var wa=function(ce,Se){var Ie,Je,Pt=!1,cr,Zr=xn(ce,"supsub");Zr?(Ie=Zr.sup,Je=Zr.sub,cr=jn(Zr.base,"operatorname"),Pt=!0):cr=jn(ce,"operatorname");var vn;if(cr.body.length>0){for(var kn=cr.body.map(function(Qi){var sa=Qi.text;return typeof sa=="string"?{type:"textord",mode:Qi.mode,text:sa}:Qi}),ci=An(kn,Se.withFont("mathrm"),!0),Si=0;Si<ci.length;Si++){var Ai=ci[Si];Ai instanceof Te&&(Ai.text=Ai.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}vn=Br.makeSpan(["mop"],ci,Se)}else vn=Br.makeSpan(["mop"],[],Se);return Pt?Ni(vn,Ie,Je,Se,Se.style,0,0):vn},Da=function(ce,Se){for(var Ie=ta(ce.body,Se.withFont("mathrm")),Je=!0,Pt=0;Pt<Ie.length;Pt++){var cr=Ie[Pt];if(!(cr instanceof bi.SpaceNode))if(cr instanceof bi.MathNode)switch(cr.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Zr=cr.children[0];cr.children.length===1&&Zr instanceof bi.TextNode?Zr.text=Zr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Je=!1;break}default:Je=!1}else Je=!1}if(Je){var vn=Ie.map(function(Si){return Si.toText()}).join("");Ie=[new bi.TextNode(vn)]}var kn=new bi.MathNode("mi",Ie);kn.setAttribute("mathvariant","normal");var ci=new bi.MathNode("mo",[Pn("\u2061","text")]);return ce.parentIsSupSub?new bi.MathNode("mo",[kn,ci]):bi.newDocumentFragment([kn,ci])};kt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=Se[0];return{type:"operatorname",mode:Ie.mode,body:br(Pt),alwaysHandleSupSub:Je==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:wa,mathmlBuilder:Da}),hr({type:"ordgroup",htmlBuilder:function(ce,Se){return ce.semisimple?Br.makeFragment(An(ce.body,Se,!1)):Br.makeSpan(["mord"],An(ce.body,Se,!0),Se)},mathmlBuilder:function(ce,Se){return ra(ce.body,Se,!0)}}),kt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0];return{type:"overline",mode:Ie.mode,body:Je}},htmlBuilder:function(ce,Se){var Ie=Ci(ce.body,Se.havingCrampedStyle()),Je=Br.makeLineSpan("overline-line",Se),Pt=Se.fontMetrics().defaultRuleThickness,cr=Br.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie},{type:"kern",size:3*Pt},{type:"elem",elem:Je},{type:"kern",size:Pt}]},Se);return Br.makeSpan(["mord","overline"],[cr],Se)},mathmlBuilder:function(ce,Se){var Ie=new bi.MathNode("mo",[new bi.TextNode("\u203E")]);Ie.setAttribute("stretchy","true");var Je=new bi.MathNode("mover",[Nr(ce.body,Se),Ie]);return Je.setAttribute("accent","true"),Je}}),kt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0];return{type:"phantom",mode:Ie.mode,body:br(Je)}},htmlBuilder:function(ce,Se){var Ie=An(ce.body,Se.withPhantom(),!1);return Br.makeFragment(Ie)},mathmlBuilder:function(ce,Se){var Ie=ta(ce.body,Se);return new bi.MathNode("mphantom",Ie)}}),kt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0];return{type:"hphantom",mode:Ie.mode,body:Je}},htmlBuilder:function(ce,Se){var Ie=Br.makeSpan([],[Ci(ce.body,Se.withPhantom())]);if(Ie.height=0,Ie.depth=0,Ie.children)for(var Je=0;Je<Ie.children.length;Je++)Ie.children[Je].height=0,Ie.children[Je].depth=0;return Ie=Br.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie}]},Se),Br.makeSpan(["mord"],[Ie],Se)},mathmlBuilder:function(ce,Se){var Ie=ta(br(ce.body),Se),Je=new bi.MathNode("mphantom",Ie),Pt=new bi.MathNode("mpadded",[Je]);return Pt.setAttribute("height","0px"),Pt.setAttribute("depth","0px"),Pt}}),kt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=Se[0];return{type:"vphantom",mode:Ie.mode,body:Je}},htmlBuilder:function(ce,Se){var Ie=Br.makeSpan(["inner"],[Ci(ce.body,Se.withPhantom())]),Je=Br.makeSpan(["fix"],[]);return Br.makeSpan(["mord","rlap"],[Ie,Je],Se)},mathmlBuilder:function(ce,Se){var Ie=ta(br(ce.body),Se),Je=new bi.MathNode("mphantom",Ie),Pt=new bi.MathNode("mpadded",[Je]);return Pt.setAttribute("width","0px"),Pt}}),kt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=jn(Se[0],"size").value,Pt=Se[1];return{type:"raisebox",mode:Ie.mode,dy:Je,body:Pt}},htmlBuilder:function(ce,Se){var Ie=Ci(ce.body,Se),Je=Rr(ce.dy,Se);return Br.makeVList({positionType:"shift",positionData:-Je,children:[{type:"elem",elem:Ie}]},Se)},mathmlBuilder:function(ce,Se){var Ie=new bi.MathNode("mpadded",[Nr(ce.body,Se)]),Je=ce.dy.number+ce.dy.unit;return Ie.setAttribute("voffset",Je),Ie}}),kt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ce,Se,Ie){var Je=ce.parser,Pt=Ie[0],cr=jn(Se[0],"size"),Zr=jn(Se[1],"size");return{type:"rule",mode:Je.mode,shift:Pt&&jn(Pt,"size").value,width:cr.value,height:Zr.value}},htmlBuilder:function(ce,Se){var Ie=Br.makeSpan(["mord","rule"],[],Se),Je=Rr(ce.width,Se),Pt=Rr(ce.height,Se),cr=ce.shift?Rr(ce.shift,Se):0;return Ie.style.borderRightWidth=Je+"em",Ie.style.borderTopWidth=Pt+"em",Ie.style.bottom=cr+"em",Ie.width=Je,Ie.height=Pt+cr,Ie.depth=-cr,Ie.maxFontSize=Pt*1.125*Se.sizeMultiplier,Ie},mathmlBuilder:function(ce,Se){var Ie=Rr(ce.width,Se),Je=Rr(ce.height,Se),Pt=ce.shift?Rr(ce.shift,Se):0,cr=Se.color&&Se.getColor()||"black",Zr=new bi.MathNode("mspace");Zr.setAttribute("mathbackground",cr),Zr.setAttribute("width",Ie+"em"),Zr.setAttribute("height",Je+"em");var vn=new bi.MathNode("mpadded",[Zr]);return Pt>=0?vn.setAttribute("height","+"+Pt+"em"):(vn.setAttribute("height",Pt+"em"),vn.setAttribute("depth","+"+-Pt+"em")),vn.setAttribute("voffset",Pt+"em"),vn}});function ja(Mt,ce,Se){for(var Ie=An(Mt,ce,!1),Je=ce.sizeMultiplier/Se.sizeMultiplier,Pt=0;Pt<Ie.length;Pt++){var cr=Ie[Pt].classes.indexOf("sizing");cr<0?Array.prototype.push.apply(Ie[Pt].classes,ce.sizingClasses(Se)):Ie[Pt].classes[cr+1]==="reset-size"+ce.size&&(Ie[Pt].classes[cr+1]="reset-size"+Se.size),Ie[Pt].height*=Je,Ie[Pt].depth*=Je}return Br.makeFragment(Ie)}var ko=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ro=function(ce,Se){var Ie=Se.havingSize(ce.size);return ja(ce.body,Ie,Se)};kt({type:"sizing",names:ko,props:{numArgs:0,allowedInText:!0},handler:function(ce,Se){var Ie=ce.breakOnTokenText,Je=ce.funcName,Pt=ce.parser,cr=Pt.parseExpression(!1,Ie);return{type:"sizing",mode:Pt.mode,size:ko.indexOf(Je)+1,body:cr}},htmlBuilder:ro,mathmlBuilder:function(ce,Se){var Ie=Se.havingSize(ce.size),Je=ta(ce.body,Ie),Pt=new bi.MathNode("mstyle",Je);return Pt.setAttribute("mathsize",Ie.sizeMultiplier+"em"),Pt}}),kt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ce,Se,Ie){var Je=ce.parser,Pt=!1,cr=!1,Zr=Ie[0]&&jn(Ie[0],"ordgroup");if(Zr)for(var vn="",kn=0;kn<Zr.body.length;++kn){var ci=Zr.body[kn];if(vn=ci.text,vn==="t")Pt=!0;else if(vn==="b")cr=!0;else{Pt=!1,cr=!1;break}}else Pt=!0,cr=!0;var Si=Se[0];return{type:"smash",mode:Je.mode,body:Si,smashHeight:Pt,smashDepth:cr}},htmlBuilder:function(ce,Se){var Ie=Br.makeSpan([],[Ci(ce.body,Se)]);if(!ce.smashHeight&&!ce.smashDepth)return Ie;if(ce.smashHeight&&(Ie.height=0,Ie.children))for(var Je=0;Je<Ie.children.length;Je++)Ie.children[Je].height=0;if(ce.smashDepth&&(Ie.depth=0,Ie.children))for(var Pt=0;Pt<Ie.children.length;Pt++)Ie.children[Pt].depth=0;var cr=Br.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie}]},Se);return Br.makeSpan(["mord"],[cr],Se)},mathmlBuilder:function(ce,Se){var Ie=new bi.MathNode("mpadded",[Nr(ce.body,Se)]);return ce.smashHeight&&Ie.setAttribute("height","0px"),ce.smashDepth&&Ie.setAttribute("depth","0px"),Ie}}),kt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ce,Se,Ie){var Je=ce.parser,Pt=Ie[0],cr=Se[0];return{type:"sqrt",mode:Je.mode,body:cr,index:Pt}},htmlBuilder:function(ce,Se){var Ie=Ci(ce.body,Se.havingCrampedStyle());Ie.height===0&&(Ie.height=Se.fontMetrics().xHeight),Ie=Br.wrapFragment(Ie,Se);var Je=Se.fontMetrics(),Pt=Je.defaultRuleThickness,cr=Pt;Se.style.id<z.TEXT.id&&(cr=Se.fontMetrics().xHeight);var Zr=Pt+cr/4,vn=Ie.height+Ie.depth+Zr+Pt,kn=ao.sqrtImage(vn,Se),ci=kn.span,Si=kn.ruleWidth,Ai=kn.advanceWidth,Qi=ci.height-Si;Qi>Ie.height+Ie.depth+Zr&&(Zr=(Zr+Qi-Ie.height-Ie.depth)/2);var sa=ci.height-Ie.height-Zr-Si;Ie.style.paddingLeft=Ai+"em";var Ua=Br.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie,wrapperClasses:["svg-align"]},{type:"kern",size:-(Ie.height+sa)},{type:"elem",elem:ci},{type:"kern",size:Si}]},Se);if(ce.index){var no=Se.havingStyle(z.SCRIPTSCRIPT),Wo=Ci(ce.index,no,Se),Zo=.6*(Ua.height-Ua.depth),Bo=Br.makeVList({positionType:"shift",positionData:-Zo,children:[{type:"elem",elem:Wo}]},Se),Es=Br.makeSpan(["root"],[Bo]);return Br.makeSpan(["mord","sqrt"],[Es,Ua],Se)}else return Br.makeSpan(["mord","sqrt"],[Ua],Se)},mathmlBuilder:function(ce,Se){var Ie=ce.body,Je=ce.index;return Je?new bi.MathNode("mroot",[Nr(Ie,Se),Nr(Je,Se)]):new bi.MathNode("msqrt",[Nr(Ie,Se)])}});var pa={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT};kt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Se){var Ie=ce.breakOnTokenText,Je=ce.funcName,Pt=ce.parser,cr=Pt.parseExpression(!0,Ie),Zr=Je.slice(1,Je.length-5);return{type:"styling",mode:Pt.mode,style:Zr,body:cr}},htmlBuilder:function(ce,Se){var Ie=pa[ce.style],Je=Se.havingStyle(Ie).withFont("");return ja(ce.body,Je,Se)},mathmlBuilder:function(ce,Se){var Ie=pa[ce.style],Je=Se.havingStyle(Ie),Pt=ta(ce.body,Je),cr=new bi.MathNode("mstyle",Pt),Zr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},vn=Zr[ce.style];return cr.setAttribute("scriptlevel",vn[0]),cr.setAttribute("displaystyle",vn[1]),cr}});var Ea=function(ce,Se){var Ie=ce.base;if(Ie)if(Ie.type==="op"){var Je=Ie.limits&&(Se.style.size===z.DISPLAY.size||Ie.alwaysHandleSupSub);return Je?Ki:null}else if(Ie.type==="operatorname"){var Pt=Ie.alwaysHandleSupSub&&(Se.style.size===z.DISPLAY.size||Ie.limits);return Pt?wa:null}else{if(Ie.type==="accent")return A.isCharacterBox(Ie.base)?En:null;if(Ie.type==="horizBrace"){var cr=!ce.sub;return cr===Ie.isOver?li:null}else return null}else return null};hr({type:"supsub",htmlBuilder:function(ce,Se){var Ie=Ea(ce,Se);if(Ie)return Ie(ce,Se);var Je=ce.base,Pt=ce.sup,cr=ce.sub,Zr=Ci(Je,Se),vn,kn,ci=Se.fontMetrics(),Si=0,Ai=0,Qi=Je&&A.isCharacterBox(Je);if(Pt){var sa=Se.havingStyle(Se.style.sup());vn=Ci(Pt,sa,Se),Qi||(Si=Zr.height-sa.fontMetrics().supDrop*sa.sizeMultiplier/Se.sizeMultiplier)}if(cr){var Ua=Se.havingStyle(Se.style.sub());kn=Ci(cr,Ua,Se),Qi||(Ai=Zr.depth+Ua.fontMetrics().subDrop*Ua.sizeMultiplier/Se.sizeMultiplier)}var no;Se.style===z.DISPLAY?no=ci.sup1:Se.style.cramped?no=ci.sup3:no=ci.sup2;var Wo=Se.sizeMultiplier,Zo=.5/ci.ptPerEm/Wo+"em",Bo=null;if(kn){var Es=ce.base&&ce.base.type==="op"&&ce.base.name&&(ce.base.name==="\\oiint"||ce.base.name==="\\oiiint");(Zr instanceof Te||Es)&&(Bo=-Zr.italic+"em")}var As;if(vn&&kn){Si=Math.max(Si,no,vn.depth+.25*ci.xHeight),Ai=Math.max(Ai,ci.sub2);var $o=ci.defaultRuleThickness,Do=4*$o;if(Si-vn.depth-(kn.height-Ai)<Do){Ai=Do-(Si-vn.depth)+kn.height;var vo=.8*ci.xHeight-(Si-vn.depth);vo>0&&(Si+=vo,Ai-=vo)}var Ms=[{type:"elem",elem:kn,shift:Ai,marginRight:Zo,marginLeft:Bo},{type:"elem",elem:vn,shift:-Si,marginRight:Zo}];As=Br.makeVList({positionType:"individualShift",children:Ms},Se)}else if(kn){Ai=Math.max(Ai,ci.sub1,kn.height-.8*ci.xHeight);var rl=[{type:"elem",elem:kn,marginLeft:Bo,marginRight:Zo}];As=Br.makeVList({positionType:"shift",positionData:Ai,children:rl},Se)}else if(vn)Si=Math.max(Si,no,vn.depth+.25*ci.xHeight),As=Br.makeVList({positionType:"shift",positionData:-Si,children:[{type:"elem",elem:vn,marginRight:Zo}]},Se);else throw new Error("supsub must have either sup or sub.");var gs=qn(Zr,"right")||"mord";return Br.makeSpan([gs],[Zr,Br.makeSpan(["msupsub"],[As])],Se)},mathmlBuilder:function(ce,Se){var Ie=!1,Je,Pt,cr=xn(ce.base,"horizBrace");cr&&(Pt=!!ce.sup,Pt===cr.isOver&&(Ie=!0,Je=cr.isOver)),ce.base&&(ce.base.type==="op"||ce.base.type==="operatorname")&&(ce.base.parentIsSupSub=!0);var Zr=[Nr(ce.base,Se)];ce.sub&&Zr.push(Nr(ce.sub,Se)),ce.sup&&Zr.push(Nr(ce.sup,Se));var vn;if(Ie)vn=Je?"mover":"munder";else if(ce.sub)if(ce.sup){var Si=ce.base;Si&&Si.type==="op"&&Si.limits&&Se.style===z.DISPLAY||Si&&Si.type==="operatorname"&&Si.alwaysHandleSupSub&&(Se.style===z.DISPLAY||Si.limits)?vn="munderover":vn="msubsup"}else{var ci=ce.base;ci&&ci.type==="op"&&ci.limits&&(Se.style===z.DISPLAY||ci.alwaysHandleSupSub)||ci&&ci.type==="operatorname"&&ci.alwaysHandleSupSub&&(ci.limits||Se.style===z.DISPLAY)?vn="munder":vn="msub"}else{var kn=ce.base;kn&&kn.type==="op"&&kn.limits&&(Se.style===z.DISPLAY||kn.alwaysHandleSupSub)||kn&&kn.type==="operatorname"&&kn.alwaysHandleSupSub&&(kn.limits||Se.style===z.DISPLAY)?vn="mover":vn="msup"}var Ai=new bi.MathNode(vn,Zr);return Ai}}),hr({type:"atom",htmlBuilder:function(ce,Se){return Br.mathsym(ce.text,ce.mode,Se,["m"+ce.family])},mathmlBuilder:function(ce,Se){var Ie=new bi.MathNode("mo",[Pn(ce.text,ce.mode)]);if(ce.family==="bin"){var Je=ha(ce,Se);Je==="bold-italic"&&Ie.setAttribute("mathvariant",Je)}else ce.family==="punct"?Ie.setAttribute("separator","true"):(ce.family==="open"||ce.family==="close")&&Ie.setAttribute("stretchy","false");return Ie}});var Fa={mi:"italic",mn:"normal",mtext:"normal"};hr({type:"mathord",htmlBuilder:function(ce,Se){return Br.makeOrd(ce,Se,"mathord")},mathmlBuilder:function(ce,Se){var Ie=new bi.MathNode("mi",[Pn(ce.text,ce.mode,Se)]),Je=ha(ce,Se)||"italic";return Je!==Fa[Ie.type]&&Ie.setAttribute("mathvariant",Je),Ie}}),hr({type:"textord",htmlBuilder:function(ce,Se){return Br.makeOrd(ce,Se,"textord")},mathmlBuilder:function(ce,Se){var Ie=Pn(ce.text,ce.mode,Se),Je=ha(ce,Se)||"normal",Pt;return ce.mode==="text"?Pt=new bi.MathNode("mtext",[Ie]):/[0-9]/.test(ce.text)?Pt=new bi.MathNode("mn",[Ie]):ce.text==="\\prime"?Pt=new bi.MathNode("mo",[Ie]):Pt=new bi.MathNode("mi",[Ie]),Je!==Fa[Pt.type]&&Pt.setAttribute("mathvariant",Je),Pt}});var Ka={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},lo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};hr({type:"spacing",htmlBuilder:function(ce,Se){if(lo.hasOwnProperty(ce.text)){var Ie=lo[ce.text].className||"";if(ce.mode==="text"){var Je=Br.makeOrd(ce,Se,"textord");return Je.classes.push(Ie),Je}else return Br.makeSpan(["mspace",Ie],[Br.mathsym(ce.text,ce.mode,Se)],Se)}else{if(Ka.hasOwnProperty(ce.text))return Br.makeSpan(["mspace",Ka[ce.text]],[],Se);throw new l('Unknown type of space "'+ce.text+'"')}},mathmlBuilder:function(ce,Se){var Ie;if(lo.hasOwnProperty(ce.text))Ie=new bi.MathNode("mtext",[new bi.TextNode("\xA0")]);else{if(Ka.hasOwnProperty(ce.text))return new bi.MathNode("mspace");throw new l('Unknown type of space "'+ce.text+'"')}return Ie}});var so=function(){var ce=new bi.MathNode("mtd",[]);return ce.setAttribute("width","50%"),ce};hr({type:"tag",mathmlBuilder:function(ce,Se){var Ie=new bi.MathNode("mtable",[new bi.MathNode("mtr",[so(),new bi.MathNode("mtd",[ra(ce.body,Se)]),so(),new bi.MathNode("mtd",[ra(ce.tag,Se)])])]);return Ie.setAttribute("width","100%"),Ie}});var To={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Lo={"\\textbf":"textbf","\\textmd":"textmd"},is={"\\textit":"textit","\\textup":"textup"},cs=function(ce,Se){var Ie=ce.font;return Ie?To[Ie]?Se.withTextFontFamily(To[Ie]):Lo[Ie]?Se.withTextFontWeight(Lo[Ie]):Se.withTextFontShape(is[Ie]):Se};kt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser,Je=ce.funcName,Pt=Se[0];return{type:"text",mode:Ie.mode,body:br(Pt),font:Je}},htmlBuilder:function(ce,Se){var Ie=cs(ce,Se),Je=An(ce.body,Ie,!0);return Br.makeSpan(["mord","text"],Br.tryCombineChars(Je),Ie)},mathmlBuilder:function(ce,Se){var Ie=cs(ce,Se);return ra(ce.body,Ie)}}),kt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Ie=ce.parser;return{type:"underline",mode:Ie.mode,body:Se[0]}},htmlBuilder:function(ce,Se){var Ie=Ci(ce.body,Se),Je=Br.makeLineSpan("underline-line",Se),Pt=Se.fontMetrics().defaultRuleThickness,cr=Br.makeVList({positionType:"top",positionData:Ie.height,children:[{type:"kern",size:Pt},{type:"elem",elem:Je},{type:"kern",size:3*Pt},{type:"elem",elem:Ie}]},Se);return Br.makeSpan(["mord","underline"],[cr],Se)},mathmlBuilder:function(ce,Se){var Ie=new bi.MathNode("mo",[new bi.TextNode("\u203E")]);Ie.setAttribute("stretchy","true");var Je=new bi.MathNode("munder",[Nr(ce.body,Se),Ie]);return Je.setAttribute("accentunder","true"),Je}}),kt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Se,Ie){throw new l("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ce,Se){for(var Ie=Rs(ce),Je=[],Pt=Se.havingStyle(Se.style.text()),cr=0;cr<Ie.length;cr++){var Zr=Ie[cr];Zr==="~"&&(Zr="\\textasciitilde"),Je.push(Br.makeSymbol(Zr,"Typewriter-Regular",ce.mode,Pt,["mord","texttt"]))}return Br.makeSpan(["mord","text"].concat(Pt.sizingClasses(Se)),Br.tryCombineChars(Je),Pt)},mathmlBuilder:function(ce,Se){var Ie=new bi.TextNode(Rs(ce)),Je=new bi.MathNode("mtext",[Ie]);return Je.setAttribute("mathvariant","monospace"),Je}});var Rs=function(ce){return ce.body.replace(/ /g,ce.star?"\u2423":"\xA0")},Ko=Bt,as=Ko,co=`[ \r
]`,Ao="\\\\[a-zA-Z@]+",$a="\\\\[^\uD800-\uDFFF]",ss=""+Ao+co+"*",_s=new RegExp("^("+Ao+")"+co+"*$"),Fo="[\u0300-\u036F]",il=new RegExp(Fo+"+$"),Eo="("+co+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Fo+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Fo+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ss)+("|"+$a+")"),zo=function(){function Mt(Se,Ie){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=Se,this.settings=Ie,this.tokenRegex=new RegExp(Eo,"g"),this.catcodes={"%":14}}var ce=Mt.prototype;return ce.setCatcode=function(Ie,Je){this.catcodes[Ie]=Je},ce.lex=function(){var Ie=this.input,Je=this.tokenRegex.lastIndex;if(Je===Ie.length)return new f("EOF",new p(this,Je,Je));var Pt=this.tokenRegex.exec(Ie);if(Pt===null||Pt.index!==Je)throw new l("Unexpected character: '"+Ie[Je]+"'",new f(Ie[Je],new p(this,Je,Je+1)));var cr=Pt[2]||" ";if(this.catcodes[cr]===14){var Zr=Ie.indexOf(`
`,this.tokenRegex.lastIndex);return Zr===-1?(this.tokenRegex.lastIndex=Ie.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=Zr+1,this.lex()}var vn=cr.match(_s);return vn&&(cr=vn[1]),new f(cr,new p(this,Je,this.tokenRegex.lastIndex))},Mt}(),Fs=function(){function Mt(Se,Ie){Se===void 0&&(Se={}),Ie===void 0&&(Ie={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=Ie,this.builtins=Se,this.undefStack=[]}var ce=Mt.prototype;return ce.beginGroup=function(){this.undefStack.push({})},ce.endGroup=function(){if(this.undefStack.length===0)throw new l("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var Ie=this.undefStack.pop();for(var Je in Ie)Ie.hasOwnProperty(Je)&&(Ie[Je]===void 0?delete this.current[Je]:this.current[Je]=Ie[Je])},ce.has=function(Ie){return this.current.hasOwnProperty(Ie)||this.builtins.hasOwnProperty(Ie)},ce.get=function(Ie){return this.current.hasOwnProperty(Ie)?this.current[Ie]:this.builtins[Ie]},ce.set=function(Ie,Je,Pt){if(Pt===void 0&&(Pt=!1),Pt){for(var cr=0;cr<this.undefStack.length;cr++)delete this.undefStack[cr][Ie];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][Ie]=Je)}else{var Zr=this.undefStack[this.undefStack.length-1];Zr&&!Zr.hasOwnProperty(Ie)&&(Zr[Ie]=this.current[Ie])}this.current[Ie]=Je},Mt}(),ms={},hs=ms;function Sn(Mt,ce){ms[Mt]=ce}Sn("\\@firstoftwo",function(Mt){var ce=Mt.consumeArgs(2);return{tokens:ce[0],numArgs:0}}),Sn("\\@secondoftwo",function(Mt){var ce=Mt.consumeArgs(2);return{tokens:ce[1],numArgs:0}}),Sn("\\@ifnextchar",function(Mt){var ce=Mt.consumeArgs(3),Se=Mt.future();return ce[0].length===1&&ce[0][0].text===Se.text?{tokens:ce[1],numArgs:0}:{tokens:ce[2],numArgs:0}}),Sn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Sn("\\TextOrMath",function(Mt){var ce=Mt.consumeArgs(2);return Mt.mode==="text"?{tokens:ce[0],numArgs:0}:{tokens:ce[1],numArgs:0}});var Ns={"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};Sn("\\char",function(Mt){var ce=Mt.popToken(),Se,Ie="";if(ce.text==="'")Se=8,ce=Mt.popToken();else if(ce.text==='"')Se=16,ce=Mt.popToken();else if(ce.text==="`")if(ce=Mt.popToken(),ce.text[0]==="\\")Ie=ce.text.charCodeAt(1);else{if(ce.text==="EOF")throw new l("\\char` missing argument");Ie=ce.text.charCodeAt(0)}else Se=10;if(Se){if(Ie=Ns[ce.text],Ie==null||Ie>=Se)throw new l("Invalid base-"+Se+" digit "+ce.text);for(var Je;(Je=Ns[Mt.future().text])!=null&&Je<Se;)Ie*=Se,Ie+=Je,Mt.popToken()}return"\\@char{"+Ie+"}"});var Ll=function(ce,Se){var Ie=ce.consumeArgs(1)[0];if(Ie.length!==1)throw new l("\\gdef's first argument must be a macro name");var Je=Ie[0].text,Pt=0;for(Ie=ce.consumeArgs(1)[0];Ie.length===1&&Ie[0].text==="#";){if(Ie=ce.consumeArgs(1)[0],Ie.length!==1)throw new l('Invalid argument number length "'+Ie.length+'"');if(!/^[1-9]$/.test(Ie[0].text))throw new l('Invalid argument number "'+Ie[0].text+'"');if(Pt++,parseInt(Ie[0].text)!==Pt)throw new l('Argument number "'+Ie[0].text+'" out of order');Ie=ce.consumeArgs(1)[0]}return ce.macros.set(Je,{tokens:Ie,numArgs:Pt},Se),""};Sn("\\gdef",function(Mt){return Ll(Mt,!0)}),Sn("\\def",function(Mt){return Ll(Mt,!1)}),Sn("\\global",function(Mt){var ce=Mt.consumeArgs(1)[0];if(ce.length!==1)throw new l("Invalid command after \\global");var Se=ce[0].text;if(Se==="\\def")return Ll(Mt,!0);throw new l("Invalid command '"+Se+"' after \\global")});var el=function(ce,Se,Ie){var Je=ce.consumeArgs(1)[0];if(Je.length!==1)throw new l("\\newcommand's first argument must be a macro name");var Pt=Je[0].text,cr=ce.isDefined(Pt);if(cr&&!Se)throw new l("\\newcommand{"+Pt+"} attempting to redefine "+(Pt+"; use \\renewcommand"));if(!cr&&!Ie)throw new l("\\renewcommand{"+Pt+"} when command "+Pt+" does not yet exist; use \\newcommand");var Zr=0;if(Je=ce.consumeArgs(1)[0],Je.length===1&&Je[0].text==="["){for(var vn="",kn=ce.expandNextToken();kn.text!=="]"&&kn.text!=="EOF";)vn+=kn.text,kn=ce.expandNextToken();if(!vn.match(/^\s*[0-9]+\s*$/))throw new l("Invalid number of arguments: "+vn);Zr=parseInt(vn),Je=ce.consumeArgs(1)[0]}return ce.macros.set(Pt,{tokens:Je,numArgs:Zr}),""};Sn("\\newcommand",function(Mt){return el(Mt,!1,!0)}),Sn("\\renewcommand",function(Mt){return el(Mt,!0,!1)}),Sn("\\providecommand",function(Mt){return el(Mt,!0,!0)}),Sn("\\bgroup","{"),Sn("\\egroup","}"),Sn("\\lq","`"),Sn("\\rq","'"),Sn("\\aa","\\r a"),Sn("\\AA","\\r A"),Sn("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Sn("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Sn("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Sn("\u212C","\\mathscr{B}"),Sn("\u2130","\\mathscr{E}"),Sn("\u2131","\\mathscr{F}"),Sn("\u210B","\\mathscr{H}"),Sn("\u2110","\\mathscr{I}"),Sn("\u2112","\\mathscr{L}"),Sn("\u2133","\\mathscr{M}"),Sn("\u211B","\\mathscr{R}"),Sn("\u212D","\\mathfrak{C}"),Sn("\u210C","\\mathfrak{H}"),Sn("\u2128","\\mathfrak{Z}"),Sn("\\Bbbk","\\Bbb{k}"),Sn("\xB7","\\cdotp"),Sn("\\llap","\\mathllap{\\textrm{#1}}"),Sn("\\rlap","\\mathrlap{\\textrm{#1}}"),Sn("\\clap","\\mathclap{\\textrm{#1}}"),Sn("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Sn("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Sn("\\ne","\\neq"),Sn("\u2260","\\neq"),Sn("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Sn("\u2209","\\notin"),Sn("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Sn("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Sn("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Sn("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Sn("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Sn("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Sn("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Sn("\u27C2","\\perp"),Sn("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Sn("\u220C","\\notni"),Sn("\u231C","\\ulcorner"),Sn("\u231D","\\urcorner"),Sn("\u231E","\\llcorner"),Sn("\u231F","\\lrcorner"),Sn("\xA9","\\copyright"),Sn("\xAE","\\textregistered"),Sn("\uFE0F","\\textregistered"),Sn("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Sn("\u22EE","\\vdots"),Sn("\\varGamma","\\mathit{\\Gamma}"),Sn("\\varDelta","\\mathit{\\Delta}"),Sn("\\varTheta","\\mathit{\\Theta}"),Sn("\\varLambda","\\mathit{\\Lambda}"),Sn("\\varXi","\\mathit{\\Xi}"),Sn("\\varPi","\\mathit{\\Pi}"),Sn("\\varSigma","\\mathit{\\Sigma}"),Sn("\\varUpsilon","\\mathit{\\Upsilon}"),Sn("\\varPhi","\\mathit{\\Phi}"),Sn("\\varPsi","\\mathit{\\Psi}"),Sn("\\varOmega","\\mathit{\\Omega}"),Sn("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Sn("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Sn("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Sn("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Sn("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Sn("\\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"};Sn("\\dots",function(Mt){var ce="\\dotso",Se=Mt.expandAfterFuture().text;return Se in Gs?ce=Gs[Se]:Se.substr(0,4)==="\\not"?ce="\\dotsb":Se in Ge.math&&(A.contains(["bin","rel"],Ge.math[Se].group)&&(ce="\\dotsb")),ce});var ds={")":!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};Sn("\\dotso",function(Mt){var ce=Mt.future().text;return ce in ds?"\\ldots\\,":"\\ldots"}),Sn("\\dotsc",function(Mt){var ce=Mt.future().text;return ce in ds&&ce!==","?"\\ldots\\,":"\\ldots"}),Sn("\\cdots",function(Mt){var ce=Mt.future().text;return ce in ds?"\\@cdots\\,":"\\@cdots"}),Sn("\\dotsb","\\cdots"),Sn("\\dotsm","\\cdots"),Sn("\\dotsi","\\!\\cdots"),Sn("\\dotsx","\\ldots\\,"),Sn("\\DOTSI","\\relax"),Sn("\\DOTSB","\\relax"),Sn("\\DOTSX","\\relax"),Sn("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Sn("\\,","\\tmspace+{3mu}{.1667em}"),Sn("\\thinspace","\\,"),Sn("\\>","\\mskip{4mu}"),Sn("\\:","\\tmspace+{4mu}{.2222em}"),Sn("\\medspace","\\:"),Sn("\\;","\\tmspace+{5mu}{.2777em}"),Sn("\\thickspace","\\;"),Sn("\\!","\\tmspace-{3mu}{.1667em}"),Sn("\\negthinspace","\\!"),Sn("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Sn("\\negthickspace","\\tmspace-{5mu}{.277em}"),Sn("\\enspace","\\kern.5em "),Sn("\\enskip","\\hskip.5em\\relax"),Sn("\\quad","\\hskip1em\\relax"),Sn("\\qquad","\\hskip2em\\relax"),Sn("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Sn("\\tag@paren","\\tag@literal{({#1})}"),Sn("\\tag@literal",function(Mt){if(Mt.macros.get("\\df@tag"))throw new l("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Sn("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Sn("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Sn("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Sn("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Sn("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Sn("\\\\","\\newline"),Sn("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ks=Ct["Main-Regular"]["T".charCodeAt(0)][1]-.7*Ct["Main-Regular"]["A".charCodeAt(0)][1]+"em";Sn("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Sn("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Sn("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Sn("\\@hspace","\\hskip #1\\relax"),Sn("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Sn("\\ordinarycolon",":"),Sn("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Sn("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Sn("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Sn("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Sn("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Sn("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Sn("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Sn("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Sn("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Sn("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Sn("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Sn("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Sn("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Sn("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Sn("\u2237","\\dblcolon"),Sn("\u2239","\\eqcolon"),Sn("\u2254","\\coloneqq"),Sn("\u2255","\\eqqcolon"),Sn("\u2A74","\\Coloneqq"),Sn("\\ratio","\\vcentcolon"),Sn("\\coloncolon","\\dblcolon"),Sn("\\colonequals","\\coloneqq"),Sn("\\coloncolonequals","\\Coloneqq"),Sn("\\equalscolon","\\eqqcolon"),Sn("\\equalscoloncolon","\\Eqqcolon"),Sn("\\colonminus","\\coloneq"),Sn("\\coloncolonminus","\\Coloneq"),Sn("\\minuscolon","\\eqcolon"),Sn("\\minuscoloncolon","\\Eqcolon"),Sn("\\coloncolonapprox","\\Colonapprox"),Sn("\\coloncolonsim","\\Colonsim"),Sn("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Sn("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Sn("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Sn("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Sn("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Sn("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Sn("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Sn("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Sn("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Sn("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Sn("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Sn("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Sn("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Sn("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Sn("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Sn("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Sn("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Sn("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Sn("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Sn("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Sn("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Sn("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Sn("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Sn("\u27E6","\\llbracket"),Sn("\u27E7","\\rrbracket"),Sn("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Sn("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Sn("\u2983","\\lBrace"),Sn("\u2984","\\rBrace"),Sn("\\darr","\\downarrow"),Sn("\\dArr","\\Downarrow"),Sn("\\Darr","\\Downarrow"),Sn("\\lang","\\langle"),Sn("\\rang","\\rangle"),Sn("\\uarr","\\uparrow"),Sn("\\uArr","\\Uparrow"),Sn("\\Uarr","\\Uparrow"),Sn("\\N","\\mathbb{N}"),Sn("\\R","\\mathbb{R}"),Sn("\\Z","\\mathbb{Z}"),Sn("\\alef","\\aleph"),Sn("\\alefsym","\\aleph"),Sn("\\Alpha","\\mathrm{A}"),Sn("\\Beta","\\mathrm{B}"),Sn("\\bull","\\bullet"),Sn("\\Chi","\\mathrm{X}"),Sn("\\clubs","\\clubsuit"),Sn("\\cnums","\\mathbb{C}"),Sn("\\Complex","\\mathbb{C}"),Sn("\\Dagger","\\ddagger"),Sn("\\diamonds","\\diamondsuit"),Sn("\\empty","\\emptyset"),Sn("\\Epsilon","\\mathrm{E}"),Sn("\\Eta","\\mathrm{H}"),Sn("\\exist","\\exists"),Sn("\\harr","\\leftrightarrow"),Sn("\\hArr","\\Leftrightarrow"),Sn("\\Harr","\\Leftrightarrow"),Sn("\\hearts","\\heartsuit"),Sn("\\image","\\Im"),Sn("\\infin","\\infty"),Sn("\\Iota","\\mathrm{I}"),Sn("\\isin","\\in"),Sn("\\Kappa","\\mathrm{K}"),Sn("\\larr","\\leftarrow"),Sn("\\lArr","\\Leftarrow"),Sn("\\Larr","\\Leftarrow"),Sn("\\lrarr","\\leftrightarrow"),Sn("\\lrArr","\\Leftrightarrow"),Sn("\\Lrarr","\\Leftrightarrow"),Sn("\\Mu","\\mathrm{M}"),Sn("\\natnums","\\mathbb{N}"),Sn("\\Nu","\\mathrm{N}"),Sn("\\Omicron","\\mathrm{O}"),Sn("\\plusmn","\\pm"),Sn("\\rarr","\\rightarrow"),Sn("\\rArr","\\Rightarrow"),Sn("\\Rarr","\\Rightarrow"),Sn("\\real","\\Re"),Sn("\\reals","\\mathbb{R}"),Sn("\\Reals","\\mathbb{R}"),Sn("\\Rho","\\mathrm{P}"),Sn("\\sdot","\\cdot"),Sn("\\sect","\\S"),Sn("\\spades","\\spadesuit"),Sn("\\sub","\\subset"),Sn("\\sube","\\subseteq"),Sn("\\supe","\\supseteq"),Sn("\\Tau","\\mathrm{T}"),Sn("\\thetasym","\\vartheta"),Sn("\\weierp","\\wp"),Sn("\\Zeta","\\mathrm{Z}"),Sn("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Sn("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Sn("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Sn("\\blue","\\textcolor{##6495ed}{#1}"),Sn("\\orange","\\textcolor{##ffa500}{#1}"),Sn("\\pink","\\textcolor{##ff00af}{#1}"),Sn("\\red","\\textcolor{##df0030}{#1}"),Sn("\\green","\\textcolor{##28ae7b}{#1}"),Sn("\\gray","\\textcolor{gray}{#1}"),Sn("\\purple","\\textcolor{##9d38bd}{#1}"),Sn("\\blueA","\\textcolor{##ccfaff}{#1}"),Sn("\\blueB","\\textcolor{##80f6ff}{#1}"),Sn("\\blueC","\\textcolor{##63d9ea}{#1}"),Sn("\\blueD","\\textcolor{##11accd}{#1}"),Sn("\\blueE","\\textcolor{##0c7f99}{#1}"),Sn("\\tealA","\\textcolor{##94fff5}{#1}"),Sn("\\tealB","\\textcolor{##26edd5}{#1}"),Sn("\\tealC","\\textcolor{##01d1c1}{#1}"),Sn("\\tealD","\\textcolor{##01a995}{#1}"),Sn("\\tealE","\\textcolor{##208170}{#1}"),Sn("\\greenA","\\textcolor{##b6ffb0}{#1}"),Sn("\\greenB","\\textcolor{##8af281}{#1}"),Sn("\\greenC","\\textcolor{##74cf70}{#1}"),Sn("\\greenD","\\textcolor{##1fab54}{#1}"),Sn("\\greenE","\\textcolor{##0d923f}{#1}"),Sn("\\goldA","\\textcolor{##ffd0a9}{#1}"),Sn("\\goldB","\\textcolor{##ffbb71}{#1}"),Sn("\\goldC","\\textcolor{##ff9c39}{#1}"),Sn("\\goldD","\\textcolor{##e07d10}{#1}"),Sn("\\goldE","\\textcolor{##a75a05}{#1}"),Sn("\\redA","\\textcolor{##fca9a9}{#1}"),Sn("\\redB","\\textcolor{##ff8482}{#1}"),Sn("\\redC","\\textcolor{##f9685d}{#1}"),Sn("\\redD","\\textcolor{##e84d39}{#1}"),Sn("\\redE","\\textcolor{##bc2612}{#1}"),Sn("\\maroonA","\\textcolor{##ffbde0}{#1}"),Sn("\\maroonB","\\textcolor{##ff92c6}{#1}"),Sn("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Sn("\\maroonD","\\textcolor{##ca337c}{#1}"),Sn("\\maroonE","\\textcolor{##9e034e}{#1}"),Sn("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Sn("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Sn("\\purpleC","\\textcolor{##aa87ff}{#1}"),Sn("\\purpleD","\\textcolor{##7854ab}{#1}"),Sn("\\purpleE","\\textcolor{##543b78}{#1}"),Sn("\\mintA","\\textcolor{##f5f9e8}{#1}"),Sn("\\mintB","\\textcolor{##edf2df}{#1}"),Sn("\\mintC","\\textcolor{##e0e5cc}{#1}"),Sn("\\grayA","\\textcolor{##f6f7f7}{#1}"),Sn("\\grayB","\\textcolor{##f0f1f2}{#1}"),Sn("\\grayC","\\textcolor{##e3e5e6}{#1}"),Sn("\\grayD","\\textcolor{##d6d8da}{#1}"),Sn("\\grayE","\\textcolor{##babec2}{#1}"),Sn("\\grayF","\\textcolor{##888d93}{#1}"),Sn("\\grayG","\\textcolor{##626569}{#1}"),Sn("\\grayH","\\textcolor{##3b3e40}{#1}"),Sn("\\grayI","\\textcolor{##21242c}{#1}"),Sn("\\kaBlue","\\textcolor{##314453}{#1}"),Sn("\\kaGreen","\\textcolor{##71B307}{#1}");var Qs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},tl=function(){function Mt(Se,Ie,Je){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=Ie,this.expansionCount=0,this.feed(Se),this.macros=new Fs(hs,Ie.macros),this.mode=Je,this.stack=[]}var ce=Mt.prototype;return ce.feed=function(Ie){this.lexer=new zo(Ie,this.settings)},ce.switchMode=function(Ie){this.mode=Ie},ce.beginGroup=function(){this.macros.beginGroup()},ce.endGroup=function(){this.macros.endGroup()},ce.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},ce.popToken=function(){return this.future(),this.stack.pop()},ce.pushToken=function(Ie){this.stack.push(Ie)},ce.pushTokens=function(Ie){var Je;(Je=this.stack).push.apply(Je,Ie)},ce.consumeSpaces=function(){for(;;){var Ie=this.future();if(Ie.text===" ")this.stack.pop();else break}},ce.consumeArgs=function(Ie){for(var Je=[],Pt=0;Pt<Ie;++Pt){this.consumeSpaces();var cr=this.popToken();if(cr.text==="{"){for(var Zr=[],vn=1;vn!==0;){var kn=this.popToken();if(Zr.push(kn),kn.text==="{")++vn;else if(kn.text==="}")--vn;else if(kn.text==="EOF")throw new l("End of input in macro argument",cr)}Zr.pop(),Zr.reverse(),Je[Pt]=Zr}else{if(cr.text==="EOF")throw new l("End of input expecting macro argument");Je[Pt]=[cr]}}return Je},ce.expandOnce=function(){var Ie=this.popToken(),Je=Ie.text,Pt=this._getExpansion(Je);if(Pt==null)return this.pushToken(Ie),Ie;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new l("Too many expansions: infinite loop or need to increase maxExpand setting");var cr=Pt.tokens;if(Pt.numArgs){var Zr=this.consumeArgs(Pt.numArgs);cr=cr.slice();for(var vn=cr.length-1;vn>=0;--vn){var kn=cr[vn];if(kn.text==="#"){if(vn===0)throw new l("Incomplete placeholder at end of macro body",kn);if(kn=cr[--vn],kn.text==="#")cr.splice(vn+1,1);else if(/^[1-9]$/.test(kn.text)){var ci;(ci=cr).splice.apply(ci,[vn,2].concat(Zr[+kn.text-1]))}else throw new l("Not a valid argument number",kn)}}}return this.pushTokens(cr),cr},ce.expandAfterFuture=function(){return this.expandOnce(),this.future()},ce.expandNextToken=function(){for(;;){var Ie=this.expandOnce();if(Ie instanceof f)if(Ie.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ce.expandMacro=function(Ie){if(!this.macros.get(Ie))return;var Je=[],Pt=this.stack.length;for(this.pushToken(new f(Ie));this.stack.length>Pt;){var cr=this.expandOnce();cr instanceof f&&Je.push(this.stack.pop())}return Je},ce.expandMacroAsText=function(Ie){var Je=this.expandMacro(Ie);return Je&&Je.map(function(Pt){return Pt.text}).join("")},ce._getExpansion=function(Ie){var Je=this.macros.get(Ie);if(Je==null)return Je;var Pt=typeof Je=="function"?Je(this):Je;if(typeof Pt=="string"){var cr=0;if(Pt.indexOf("#")!==-1)for(var Zr=Pt.replace(/##/g,"");Zr.indexOf("#"+(cr+1))!==-1;)++cr;for(var vn=new zo(Pt,this.settings),kn=[],ci=vn.lex();ci.text!=="EOF";)kn.push(ci),ci=vn.lex();kn.reverse();var Si={tokens:kn,numArgs:cr};return Si}return Pt},ce.isDefined=function(Ie){return this.macros.has(Ie)||as.hasOwnProperty(Ie)||Ge.math.hasOwnProperty(Ie)||Ge.text.hasOwnProperty(Ie)||Qs.hasOwnProperty(Ie)},Mt}(),Ss={"\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"}},Bs={\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"},al=function(){function Mt(Se,Ie){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 tl(Se,Ie,this.mode),this.settings=Ie,this.leftrightDepth=0}var ce=Mt.prototype;return ce.expect=function(Ie,Je){if(Je===void 0&&(Je=!0),this.fetch().text!==Ie)throw new l("Expected '"+Ie+"', got '"+this.fetch().text+"'",this.fetch());Je&&this.consume()},ce.consume=function(){this.nextToken=null},ce.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},ce.switchMode=function(Ie){this.mode=Ie,this.gullet.switchMode(Ie)},ce.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var Ie=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),Ie},ce.parseExpression=function(Ie,Je){for(var Pt=[];;){this.mode==="math"&&this.consumeSpaces();var cr=this.fetch();if(Mt.endOfExpression.indexOf(cr.text)!==-1)break;if(Je&&cr.text===Je)break;if(Ie&&as[cr.text]&&as[cr.text].infix)break;var Zr=this.parseAtom(Je);if(!Zr)break;Pt.push(Zr)}return this.mode==="text"&&this.formLigatures(Pt),this.handleInfixNodes(Pt)},ce.handleInfixNodes=function(Ie){for(var Je=-1,Pt,cr=0;cr<Ie.length;cr++){var Zr=xn(Ie[cr],"infix");if(Zr){if(Je!==-1)throw new l("only one infix operator per group",Zr.token);Je=cr,Pt=Zr.replaceWith}}if(Je!==-1&&Pt){var vn,kn,ci=Ie.slice(0,Je),Si=Ie.slice(Je+1);ci.length===1&&ci[0].type==="ordgroup"?vn=ci[0]:vn={type:"ordgroup",mode:this.mode,body:ci},Si.length===1&&Si[0].type==="ordgroup"?kn=Si[0]:kn={type:"ordgroup",mode:this.mode,body:Si};var Ai;return Pt==="\\\\abovefrac"?Ai=this.callFunction(Pt,[vn,Ie[Je],kn],[]):Ai=this.callFunction(Pt,[vn,kn],[]),[Ai]}else return Ie},ce.handleSupSubscript=function(Ie){var Je=this.fetch(),Pt=Je.text;this.consume();var cr=this.parseGroup(Ie,!1,Mt.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!cr)throw new l("Expected group after '"+Pt+"'",Je);return cr},ce.formatUnsupportedCmd=function(Ie){for(var Je=[],Pt=0;Pt<Ie.length;Pt++)Je.push({type:"textord",mode:"text",text:Ie[Pt]});var cr={type:"text",mode:this.mode,body:Je},Zr={type:"color",mode:this.mode,color:this.settings.errorColor,body:[cr]};return Zr},ce.parseAtom=function(Ie){var Je=this.parseGroup("atom",!1,null,Ie);if(this.mode==="text")return Je;for(var Pt,cr;;){this.consumeSpaces();var Zr=this.fetch();if(Zr.text==="\\limits"||Zr.text==="\\nolimits"){var vn=xn(Je,"op");if(vn){var kn=Zr.text==="\\limits";vn.limits=kn,vn.alwaysHandleSupSub=!0}else if(vn=xn(Je,"operatorname"),vn&&vn.alwaysHandleSupSub){var ci=Zr.text==="\\limits";vn.limits=ci}else throw new l("Limit controls must follow a math operator",Zr);this.consume()}else if(Zr.text==="^"){if(Pt)throw new l("Double superscript",Zr);Pt=this.handleSupSubscript("superscript")}else if(Zr.text==="_"){if(cr)throw new l("Double subscript",Zr);cr=this.handleSupSubscript("subscript")}else if(Zr.text==="'"){if(Pt)throw new l("Double superscript",Zr);var Si={type:"textord",mode:this.mode,text:"\\prime"},Ai=[Si];for(this.consume();this.fetch().text==="'";)Ai.push(Si),this.consume();this.fetch().text==="^"&&Ai.push(this.handleSupSubscript("superscript")),Pt={type:"ordgroup",mode:this.mode,body:Ai}}else break}return Pt||cr?{type:"supsub",mode:this.mode,base:Je,sup:Pt,sub:cr}:Je},ce.parseFunction=function(Ie,Je,Pt){var cr=this.fetch(),Zr=cr.text,vn=as[Zr];if(!vn)return null;if(this.consume(),Pt!=null&&vn.greediness<=Pt)throw new l("Got function '"+Zr+"' with no arguments"+(Je?" as "+Je:""),cr);if(this.mode==="text"&&!vn.allowedInText)throw new l("Can't use function '"+Zr+"' in text mode",cr);if(this.mode==="math"&&vn.allowedInMath===!1)throw new l("Can't use function '"+Zr+"' in math mode",cr);var kn=this.parseArguments(Zr,vn),ci=kn.args,Si=kn.optArgs;return this.callFunction(Zr,ci,Si,cr,Ie)},ce.callFunction=function(Ie,Je,Pt,cr,Zr){var vn={funcName:Ie,parser:this,token:cr,breakOnTokenText:Zr},kn=as[Ie];if(kn&&kn.handler)return kn.handler(vn,Je,Pt);throw new l("No function handler for "+Ie)},ce.parseArguments=function(Ie,Je){var Pt=Je.numArgs+Je.numOptionalArgs;if(Pt===0)return{args:[],optArgs:[]};for(var cr=Je.greediness,Zr=[],vn=[],kn=0;kn<Pt;kn++){var ci=Je.argTypes&&Je.argTypes[kn],Si=kn<Je.numOptionalArgs,Ai=kn>0&&!Si||kn===0&&!Si&&this.mode==="math",Qi=this.parseGroupOfType("argument to '"+Ie+"'",ci,Si,cr,Ai);if(!Qi){if(Si){vn.push(null);continue}throw new l("Expected group after '"+Ie+"'",this.fetch())}(Si?vn:Zr).push(Qi)}return{args:Zr,optArgs:vn}},ce.parseGroupOfType=function(Ie,Je,Pt,cr,Zr){switch(Je){case"color":return Zr&&this.consumeSpaces(),this.parseColorGroup(Pt);case"size":return Zr&&this.consumeSpaces(),this.parseSizeGroup(Pt);case"url":return this.parseUrlGroup(Pt,Zr);case"math":case"text":return this.parseGroup(Ie,Pt,cr,void 0,Je,Zr);case"hbox":{var vn=this.parseGroup(Ie,Pt,cr,void 0,"text",Zr);if(!vn)return vn;var kn={type:"styling",mode:vn.mode,body:[vn],style:"text"};return kn}case"raw":{if(Zr&&this.consumeSpaces(),Pt&&this.fetch().text==="{")return null;var ci=this.parseStringGroup("raw",Pt,!0);if(ci)return{type:"raw",mode:"text",string:ci.text};throw new l("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(Ie,Pt,cr,void 0,void 0,Zr);default:throw new l("Unknown group type as "+Ie,this.fetch())}},ce.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ce.parseStringGroup=function(Ie,Je,Pt){var cr=Je?"[":"{",Zr=Je?"]":"}",vn=this.fetch();if(vn.text!==cr){if(Je)return null;if(Pt&&vn.text!=="EOF"&&/[^{}[\]]/.test(vn.text))return this.consume(),vn}var kn=this.mode;this.mode="text",this.expect(cr);for(var ci="",Si=this.fetch(),Ai=0,Qi=Si,sa;(sa=this.fetch()).text!==Zr||Pt&&Ai>0;){switch(sa.text){case"EOF":throw new l("Unexpected end of input in "+Ie,Si.range(Qi,ci));case cr:Ai++;break;case Zr:Ai--;break}Qi=sa,ci+=Qi.text,this.consume()}return this.expect(Zr),this.mode=kn,Si.range(Qi,ci)},ce.parseRegexGroup=function(Ie,Je){var Pt=this.mode;this.mode="text";for(var cr=this.fetch(),Zr=cr,vn="",kn;(kn=this.fetch()).text!=="EOF"&&Ie.test(vn+kn.text);)Zr=kn,vn+=Zr.text,this.consume();if(vn==="")throw new l("Invalid "+Je+": '"+cr.text+"'",cr);return this.mode=Pt,cr.range(Zr,vn)},ce.parseColorGroup=function(Ie){var Je=this.parseStringGroup("color",Ie);if(!Je)return null;var Pt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Je.text);if(!Pt)throw new l("Invalid color: '"+Je.text+"'",Je);var cr=Pt[0];return/^[0-9a-f]{6}$/i.test(cr)&&(cr="#"+cr),{type:"color-token",mode:this.mode,color:cr}},ce.parseSizeGroup=function(Ie){var Je,Pt=!1;if(!Ie&&this.fetch().text!=="{"?Je=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Je=this.parseStringGroup("size",Ie),!Je)return null;!Ie&&Je.text.length===0&&(Je.text="0pt",Pt=!0);var cr=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Je.text);if(!cr)throw new l("Invalid size: '"+Je.text+"'",Je);var Zr={number:+(cr[1]+cr[2]),unit:cr[3]};if(!Kr(Zr))throw new l("Invalid unit: '"+Zr.unit+"'",Je);return{type:"size",mode:this.mode,value:Zr,isBlank:Pt}},ce.parseUrlGroup=function(Ie,Je){this.gullet.lexer.setCatcode("%",13);var Pt=this.parseStringGroup("url",Ie,!0);if(this.gullet.lexer.setCatcode("%",14),!Pt)return null;var cr=Pt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:cr}},ce.parseGroup=function(Ie,Je,Pt,cr,Zr,vn){var kn=this.mode;Zr&&this.switchMode(Zr),vn&&this.consumeSpaces();var ci=this.fetch(),Si=ci.text,Ai;if(Je?Si==="[":Si==="{"||Si==="\\begingroup"){this.consume();var Qi=Mt.endOfGroup[Si];this.gullet.beginGroup();var sa=this.parseExpression(!1,Qi),Ua=this.fetch();this.expect(Qi),this.gullet.endGroup(),Ai={type:"ordgroup",mode:this.mode,loc:p.range(ci,Ua),body:sa,semisimple:Si==="\\begingroup"||void 0}}else if(Je)Ai=null;else if(Ai=this.parseFunction(cr,Ie,Pt)||this.parseSymbol(),Ai==null&&Si[0]==="\\"&&!Qs.hasOwnProperty(Si)){if(this.settings.throwOnError)throw new l("Undefined control sequence: "+Si,ci);Ai=this.formatUnsupportedCmd(Si),this.consume()}return Zr&&this.switchMode(kn),Ai},ce.formLigatures=function(Ie){for(var Je=Ie.length-1,Pt=0;Pt<Je;++Pt){var cr=Ie[Pt],Zr=cr.text;Zr==="-"&&Ie[Pt+1].text==="-"&&(Pt+1<Je&&Ie[Pt+2].text==="-"?(Ie.splice(Pt,3,{type:"textord",mode:"text",loc:p.range(cr,Ie[Pt+2]),text:"---"}),Je-=2):(Ie.splice(Pt,2,{type:"textord",mode:"text",loc:p.range(cr,Ie[Pt+1]),text:"--"}),Je-=1)),(Zr==="'"||Zr==="`")&&Ie[Pt+1].text===Zr&&(Ie.splice(Pt,2,{type:"textord",mode:"text",loc:p.range(cr,Ie[Pt+1]),text:Zr+Zr}),Je-=1)}},ce.parseSymbol=function(){var Ie=this.fetch(),Je=Ie.text;if(/^\\verb[^a-zA-Z]/.test(Je)){this.consume();var Pt=Je.slice(5),cr=Pt.charAt(0)==="*";if(cr&&(Pt=Pt.slice(1)),Pt.length<2||Pt.charAt(0)!==Pt.slice(-1))throw new l(`\\verb assertion failed --
please report what input caused this bug`);return Pt=Pt.slice(1,-1),{type:"verb",mode:"text",body:Pt,star:cr}}Bs.hasOwnProperty(Je[0])&&!Ge[this.mode][Je[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Je[0]+'" used in math mode',Ie),Je=Bs[Je[0]]+Je.substr(1));var Zr=il.exec(Je);Zr&&(Je=Je.substring(0,Zr.index),Je==="i"?Je="\u0131":Je==="j"&&(Je="\u0237"));var vn;if(Ge[this.mode][Je]){this.settings.strict&&this.mode==="math"&&$t.indexOf(Je)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Je[0]+'" used in math mode',Ie);var kn=Ge[this.mode][Je].group,ci=p.range(Ie),Si;if(Qt.hasOwnProperty(kn)){var Ai=kn;Si={type:"atom",mode:this.mode,family:Ai,loc:ci,text:Je}}else Si={type:kn,mode:this.mode,loc:ci,text:Je};vn=Si}else if(Je.charCodeAt(0)>=128)this.settings.strict&&(te(Je.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Je[0]+'" used in math mode',Ie):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Je[0]+'"'+(" ("+Je.charCodeAt(0)+")"),Ie)),vn={type:"textord",mode:"text",loc:p.range(Ie),text:Je};else return null;if(this.consume(),Zr)for(var Qi=0;Qi<Zr[0].length;Qi++){var sa=Zr[0][Qi];if(!Ss[sa])throw new l("Unknown accent ' "+sa+"'",Ie);var Ua=Ss[sa][this.mode];if(!Ua)throw new l("Accent "+sa+" unsupported in "+this.mode+" mode",Ie);vn={type:"accent",mode:this.mode,loc:p.range(Ie),label:Ua,isStretchy:!1,isShifty:!0,base:vn}}return vn},Mt}();al.endOfExpression=["}","\\endgroup","\\end","\\right","&"],al.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},al.SUPSUB_GREEDINESS=1;var Js=function(ce,Se){if(!(typeof ce=="string"||ce instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var Ie=new al(ce,Se);delete Ie.gullet.macros.current["\\df@tag"];var Je=Ie.parse();if(Ie.gullet.macros.get("\\df@tag")){if(!Se.displayMode)throw new l("\\tag works only in display equations");Ie.gullet.feed("\\df@tag"),Je=[{type:"tag",mode:"text",body:Je,tag:Ie.parse()}]}return Je},Vo=Js,No=function(ce,Se,Ie){Se.textContent="";var Je=zt(ce,Ie).toNode();Se.appendChild(Je)};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."),No=function(){throw new l("KaTeX doesn't work in quirks mode.")}));var fs=function(ce,Se){var Ie=zt(ce,Se).toMarkup();return Ie},Ds=function(ce,Se){var Ie=new b(Se);return Vo(ce,Ie)},go=function(ce,Se,Ie){if(Ie.throwOnError||!(ce instanceof l))throw ce;var Je=Br.makeSpan(["katex-error"],[new Te(Se)]);return Je.setAttribute("title",ce.toString()),Je.setAttribute("style","color:"+Ie.errorColor),Je},zt=function(ce,Se){var Ie=new b(Se);try{var Je=Vo(ce,Ie);return Pr(Je,ce,Ie)}catch(Pt){return go(Pt,ce,Ie)}},ur=function(ce,Se){var Ie=new b(Se);try{var Je=Vo(ce,Ie);return Xr(Je,ce,Ie)}catch(Pt){return go(Pt,ce,Ie)}},Dn={version:"0.11.1",render:No,renderToString:fs,ParseError:l,__parse:Ds,__renderToDomTree:zt,__renderToHTMLTree:ur,__setFontMetrics:nr,__defineSymbol:pe,__defineMacro:Sn,__domTree:{Span:Y,Anchor:$,SymbolNode:Te,SvgNode:Be,PathNode:fe,LineNode:xe}},fi=g.default=Dn}]).default})},P2fV:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("Q9mQ"),m=n("+L6B"),p=n("sE09"),f=n.n(p)},P2ho:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={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};D.default=y},P47w:function(R,D,n){var y=n("hydK"),g=y.createElement,S=n("IMiH"),m=n("mFDi"),p=n("Fofx"),f=n("6GrX"),d=n("pzxd"),l=n("dqUG"),a=S.CMD,i=Array.prototype.join,t="none",o=Math.round,e=Math.sin,u=Math.cos,r=Math.PI,s=Math.PI*2,c=180/r,h=1e-4;function v(Q){return o(Q*1e4)/1e4}function A(Q){return Q<h&&Q>-h}function b(Q,G){var te=G?Q.textFill:Q.fill;return te!=null&&te!==t}function x(Q,G){var te=G?Q.textStroke:Q.stroke;return te!=null&&te!==t}function E(Q,G){G&&T(Q,"transform","matrix("+i.call(G,",")+")")}function T(Q,G,te){(!te||te.type!=="linear"&&te.type!=="radial")&&Q.setAttribute(G,te)}function _(Q,G,te){Q.setAttributeNS("http://www.w3.org/1999/xlink",G,te)}function C(Q,G,te,q){if(b(G,te)){var se=te?G.textFill:G.fill;se=se==="transparent"?t:se,T(Q,"fill",se),T(Q,"fill-opacity",G.fillOpacity!=null?G.fillOpacity*G.opacity:G.opacity)}else T(Q,"fill",t);if(x(G,te)){var re=te?G.textStroke:G.stroke;re=re==="transparent"?t:re,T(Q,"stroke",re);var we=te?G.textStrokeWidth:G.lineWidth,Oe=!te&&G.strokeNoScale?q.getLineScale():1;T(Q,"stroke-width",we/Oe),T(Q,"paint-order",te?"stroke":"fill"),T(Q,"stroke-opacity",G.strokeOpacity!=null?G.strokeOpacity:G.opacity);var Me=G.lineDash;Me?(T(Q,"stroke-dasharray",G.lineDash.join(",")),T(Q,"stroke-dashoffset",o(G.lineDashOffset||0))):T(Q,"stroke-dasharray",""),G.lineCap&&T(Q,"stroke-linecap",G.lineCap),G.lineJoin&&T(Q,"stroke-linejoin",G.lineJoin),G.miterLimit&&T(Q,"stroke-miterlimit",G.miterLimit)}else T(Q,"stroke",t)}function w(Q){for(var G=[],te=Q.data,q=Q.len(),se=0;se<q;){var re=te[se++],we="",Oe=0;switch(re){case a.M:we="M",Oe=2;break;case a.L:we="L",Oe=2;break;case a.Q:we="Q",Oe=4;break;case a.C:we="C",Oe=6;break;case a.A:var Me=te[se++],Qe=te[se++],Ve=te[se++],dt=te[se++],Fe=te[se++],ue=te[se++],et=te[se++],he=te[se++],J=Math.abs(ue),Y=A(J-s)||(he?ue>=s:-ue>=s),$=ue>0?ue%s:ue%s+s,de=!1;Y?de=!0:A(J)?de=!1:de=$>=r===!!he;var be=v(Me+Ve*u(Fe)),Te=v(Qe+dt*e(Fe));Y&&(he?ue=s-1e-4:ue=-s+1e-4,de=!0,se===9&&G.push("M",be,Te));var Be=v(Me+Ve*u(Fe+ue)),fe=v(Qe+dt*e(Fe+ue));G.push("A",v(Ve),v(dt),o(et*c),+de,+he,Be,fe);break;case a.Z:we="Z";break;case a.R:var Be=v(te[se++]),fe=v(te[se++]),xe=v(te[se++]),ke=v(te[se++]);G.push("M",Be,fe,"L",Be+xe,fe,"L",Be+xe,fe+ke,"L",Be,fe+ke,"L",Be,fe);break}we&&G.push(we);for(var nt=0;nt<Oe;nt++)G.push(v(te[se++]))}return G.join(" ")}var O={};O.brush=function(Q){var G=Q.style,te=Q.__svgEl;te||(te=g("path"),Q.__svgEl=te),Q.path||Q.createPathProxy();var q=Q.path;if(Q.__dirtyPath){q.beginPath(),q.subPixelOptimize=!1,Q.buildPath(q,Q.shape),Q.__dirtyPath=!1;var se=w(q);se.indexOf("NaN")<0&&T(te,"d",se)}C(te,G,!1,Q),E(te,Q.transform),G.text!=null?F(Q,Q.getBoundingRect()):V(Q)};var I={};I.brush=function(Q){var G=Q.style,te=G.image;if(te instanceof HTMLImageElement){var q=te.src;te=q}if(!te)return;var se=G.x||0,re=G.y||0,we=G.width,Oe=G.height,Me=Q.__svgEl;Me||(Me=g("image"),Q.__svgEl=Me),te!==Q.__imageSrc&&(_(Me,"href",te),Q.__imageSrc=te),T(Me,"width",we),T(Me,"height",Oe),T(Me,"x",se),T(Me,"y",re),E(Me,Q.transform),G.text!=null?F(Q,Q.getBoundingRect()):V(Q)};var k={},M=new m,U={},P=[],X={left:"start",right:"end",center:"middle",middle:"middle"},F=function(G,te){var q=G.style,se=G.transform,re=G instanceof l||q.transformText;G.__dirty&&d.normalizeTextStyle(q,!0);var we=q.text;if(we!=null&&(we+=""),!d.needDrawText(we,q))return;we==null&&(we=""),!re&&se&&(M.copy(te),M.applyTransform(se),te=M);var Oe=G.__textSvgEl;Oe||(Oe=g("text"),G.__textSvgEl=Oe);var Me=Oe.style,Qe=q.font||f.DEFAULT_FONT,Ve=Oe.__computedFont;Qe!==Oe.__styleFont&&(Me.font=Oe.__styleFont=Qe,Ve=Oe.__computedFont=Me.font);var dt=q.textPadding,Fe=q.textLineHeight,ue=G.__textCotentBlock;(!ue||G.__dirtyText)&&(ue=G.__textCotentBlock=f.parsePlainText(we,Ve,dt,Fe,q.truncate));var et=ue.outerHeight,he=ue.lineHeight;d.getBoxPosition(U,G,q,te);var J=U.baseX,Y=U.baseY,$=U.textAlign||"left",de=U.textVerticalAlign;j(Oe,re,se,q,te,J,Y);var be=f.adjustTextY(Y,et,de),Te=J,Be=be;dt&&(Te=K(J,$,dt),Be+=dt[0]),Be+=he/2,C(Oe,q,!0,G);var fe=ue.canCacheByTextString,xe=G.__tspanList||(G.__tspanList=[]),ke=xe.length;if(fe&&G.__canCacheByTextString&&G.__text===we){if(G.__dirtyText&&ke)for(var nt=0;nt<ke;++nt)z(xe[nt],$,Te,Be+nt*he)}else{G.__text=we,G.__canCacheByTextString=fe;for(var Ct=ue.lines,pt=Ct.length,nt=0;nt<pt;nt++){var He=xe[nt],nr=Ct[nt];He?He.__zrText!==nr&&(He.innerHTML="",He.appendChild(document.createTextNode(nr))):(He=xe[nt]=g("tspan"),Oe.appendChild(He),He.appendChild(document.createTextNode(nr))),z(He,$,Te,Be+nt*he)}if(ke>pt){for(;nt<ke;nt++)Oe.removeChild(xe[nt]);xe.length=pt}}};function j(Q,G,te,q,se,re,we){p.identity(P),G&&te&&p.copy(P,te);var Oe=q.textRotation;if(se&&Oe){var Me=q.textOrigin;Me==="center"?(re=se.width/2+se.x,we=se.height/2+se.y):Me&&(re=Me[0]+se.x,we=Me[1]+se.y),P[4]-=re,P[5]-=we,p.rotate(P,P,Oe),P[4]+=re,P[5]+=we}E(Q,P)}function K(Q,G,te){return G==="right"?Q-te[1]:G==="center"?Q+te[3]/2-te[1]/2:Q+te[3]}function z(Q,G,te,q){T(Q,"dominant-baseline","middle"),T(Q,"text-anchor",X[G]),T(Q,"x",te),T(Q,"y",q)}function V(Q){Q&&Q.__textSvgEl&&(Q.__textSvgEl.parentNode&&Q.__textSvgEl.parentNode.removeChild(Q.__textSvgEl),Q.__textSvgEl=null,Q.__tspanList=[],Q.__text=null)}k.drawRectText=F,k.brush=function(Q){var G=Q.style;G.text!=null?F(Q,!1):V(Q)},D.path=O,D.image=I,D.text=k},P4Qj:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.removeSensor=D.getSensor=D.Sensors=void 0;var y=m(n("chpo")),g=n("FxDU"),S=n("24YM");function m(a){return a&&a.__esModule?a:{default:a}}var p={};D.Sensors=p;function f(a){a&&p[a]&&delete p[a]}var d=function(i){var t=i.getAttribute(S.SizeSensorId);if(t&&p[t])return p[t];var o=(0,y.default)();i.setAttribute(S.SizeSensorId,o);var e=(0,g.createSensor)(i,function(){return f(o)});return p[o]=e,e};D.getSensor=d;var l=function(i){var t=i.element.getAttribute(S.SizeSensorId);i.destroy(),f(t)};D.removeSensor=l},P5Jw:function(R,D,n){"use strict";var y=n("rHrb"),g=y.CopyToClipboard;g.CopyToClipboard=g,R.exports=g},PArb:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("q1tI"),f=n.n(p),d=n("TSYQ"),l=n.n(d),a=n("H84U"),i=function(o,e){var u={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(u[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(u[r[s]]=o[r[s]]);return u},t=function(e){return p.createElement(a.a,null,function(u){var r,s=u.getPrefixCls,c=u.direction,h=e.prefixCls,v=e.type,A=v===void 0?"horizontal":v,b=e.orientation,x=b===void 0?"center":b,E=e.className,T=e.children,_=e.dashed,C=e.plain,w=i(e,["prefixCls","type","orientation","className","children","dashed","plain"]),O=s("divider",h),I=x.length>0?"-".concat(x):x,k=!!T,M=l()(E,O,"".concat(O,"-").concat(A),(r={},m()(r,"".concat(O,"-with-text"),k),m()(r,"".concat(O,"-with-text").concat(I),k),m()(r,"".concat(O,"-dashed"),!!_),m()(r,"".concat(O,"-plain"),!!C),m()(r,"".concat(O,"-rtl"),c==="rtl"),r));return p.createElement("div",g()({className:M},w,{role:"separator"}),T&&p.createElement("span",{className:"".concat(O,"-inner-text")},T))})};D.a=t},PD8m:function(R,D){R.exports={name:"memoryStorage",read:y,write:g,each:S,remove:m,clearAll:p};var n={};function y(f){return n[f]}function g(f,d){n[f]=d}function S(f){for(var d in n)n.hasOwnProperty(d)&&f(n[d],d)}function m(f){delete n[f]}function p(f){n={}}},PKem:function(R,D,n){"use strict";n.d(D,"a",function(){return b});var y=n("RIqP"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("pVnL"),f=n.n(p),d=n("lwsE"),l=n.n(d),a=n("W8MJ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),u=n.n(e),r=n("q1tI"),s=n.n(r),c=n("TSYQ"),h=n.n(c),v=n("H84U"),A=function(I,k){var M={};for(var U in I)Object.prototype.hasOwnProperty.call(I,U)&&k.indexOf(U)<0&&(M[U]=I[U]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,U=Object.getOwnPropertySymbols(I);P<U.length;P++)k.indexOf(U[P])<0&&Object.prototype.propertyIsEnumerable.call(I,U[P])&&(M[U[P]]=I[U[P]]);return M},b=r.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function x(I){var k=I.suffixCls,M=I.tagName,U=I.displayName;return function(P){var X;return X=function(F){o()(K,F);var j=u()(K);function K(){var z;return l()(this,K),z=j.apply(this,arguments),z.renderComponent=function(V){var Q=V.getPrefixCls,G=z.props.prefixCls,te=Q(k,G);return r.createElement(P,f()({prefixCls:te,tagName:M},z.props))},z}return i()(K,[{key:"render",value:function(){return r.createElement(v.a,null,this.renderComponent)}}]),K}(r.Component),X.displayName=U,X}}var E=function(k){var M=k.prefixCls,U=k.className,P=k.children,X=k.tagName,F=A(k,["prefixCls","className","children","tagName"]),j=h()(M,U);return r.createElement(X,f()({className:j},F),P)},T=function(I){o()(M,I);var k=u()(M);function M(){var U;return l()(this,M),U=k.apply(this,arguments),U.state={siders:[]},U.renderComponent=function(P){var X,F=P.direction,j=U.props,K=j.prefixCls,z=j.className,V=j.children,Q=j.hasSider,G=j.tagName,te=A(j,["prefixCls","className","children","hasSider","tagName"]),q=h()(K,(X={},m()(X,"".concat(K,"-has-sider"),typeof Q=="boolean"?Q:U.state.siders.length>0),m()(X,"".concat(K,"-rtl"),F==="rtl"),X),z);return r.createElement(b.Provider,{value:{siderHook:U.getSiderHook()}},r.createElement(G,f()({className:q},te),V))},U}return i()(M,[{key:"getSiderHook",value:function(){var P=this;return{addSider:function(F){P.setState(function(j){return{siders:[].concat(g()(j.siders),[F])}})},removeSider:function(F){P.setState(function(j){return{siders:j.siders.filter(function(K){return K!==F})}})}}}},{key:"render",value:function(){return r.createElement(v.a,null,this.renderComponent)}}]),M}(r.Component),_=x({suffixCls:"layout",tagName:"section",displayName:"Layout"})(T),C=x({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(E),w=x({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(E),O=x({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(E);_.Header=C,_.Footer=w,_.Content=O,D.b=_},PNag:function(R,D,n){var y=n("bYtY"),g=n("SKnc"),S=n("YH21"),m=n("crZl"),p=n("IwbS"),f=n("OELB"),d=n("72pK"),l=n("y7Aq"),a=n("4NO4"),i=f.linearMap,t=y.each,o=Math.min,e=Math.max,u=12,r=6,s=m.extend({type:"visualMap.continuous",init:function(){s.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(T,_,C,w){(!w||w.type!=="selectDataRange"||w.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var T=this.visualMapModel,_=this.group;this._orient=T.get("orient"),this._useHandle=T.get("calculable"),this._resetInterval(),this._renderBar(_);var C=T.get("text");this._renderEndsText(_,C,0),this._renderEndsText(_,C,1),this._updateView(!0),this.renderBackground(_),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(_)},_renderEndsText:function(T,_,C){if(!_)return;var w=_[1-C];w=w!=null?w+"":"";var O=this.visualMapModel,I=O.get("textGap"),k=O.itemSize,M=this._shapes.barGroup,U=this._applyTransform([k[0]/2,C===0?-I:k[1]+I],M),P=this._applyTransform(C===0?"bottom":"top",M),X=this._orient,F=this.visualMapModel.textStyleModel;this.group.add(new p.Text({style:{x:U[0],y:U[1],textVerticalAlign:X==="horizontal"?"middle":P,textAlign:X==="horizontal"?P:"center",text:w,textFont:F.getFont(),textFill:F.getTextColor()}}))},_renderBar:function(T){var _=this.visualMapModel,C=this._shapes,w=_.itemSize,O=this._orient,I=this._useHandle,k=l.getItemAlign(_,this.api,w),M=C.barGroup=this._createBarGroup(k);M.add(C.outOfRange=c()),M.add(C.inRange=c(null,I?x(this._orient):null,y.bind(this._dragHandle,this,"all",!1),y.bind(this._dragHandle,this,"all",!0)));var U=_.textStyleModel.getTextRect("\u56FD"),P=e(U.width,U.height);I&&(C.handleThumbs=[],C.handleLabels=[],C.handleLabelPoints=[],this._createHandle(M,0,w,P,O,k),this._createHandle(M,1,w,P,O,k)),this._createIndicator(M,w,P,O),T.add(M)},_createHandle:function(T,_,C,w,O){var I=y.bind(this._dragHandle,this,_,!1),k=y.bind(this._dragHandle,this,_,!0),M=c(h(_,w),x(this._orient),I,k);M.position[0]=C[0],T.add(M);var U=this.visualMapModel.textStyleModel,P=new p.Text({draggable:!0,drift:I,onmousemove:function(j){S.stop(j.event)},ondragend:k,style:{x:0,y:0,text:"",textFont:U.getFont(),textFill:U.getTextColor()}});this.group.add(P);var X=[O==="horizontal"?w/2:w*1.5,O==="horizontal"?_===0?-(w*1.5):w*1.5:_===0?-w/2:w/2],F=this._shapes;F.handleThumbs[_]=M,F.handleLabelPoints[_]=X,F.handleLabels[_]=P},_createIndicator:function(T,_,C,w){var O=c([[0,0]],"move");O.position[0]=_[0],O.attr({invisible:!0,silent:!0}),T.add(O);var I=this.visualMapModel.textStyleModel,k=new p.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(k);var M=[w==="horizontal"?C/2:r+3,0],U=this._shapes;U.indicator=O,U.indicatorLabel=k,U.indicatorLabelPoint=M},_dragHandle:function(T,_,C,w){if(!this._useHandle)return;if(this._dragging=!_,!_){var O=this._applyTransform([C,w],this._shapes.barGroup,!0);this._updateInterval(T,O[1]),this._updateView()}_===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),_?!this._hovering&&this._clearHoverLinkToSeries():b(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[T],!1)},_resetInterval:function(){var T=this.visualMapModel,_=this._dataInterval=T.getSelected(),C=T.getExtent(),w=[0,T.itemSize[1]];this._handleEnds=[i(_[0],C,w,!0),i(_[1],C,w,!0)]},_updateInterval:function(T,_){_=_||0;var C=this.visualMapModel,w=this._handleEnds,O=[0,C.itemSize[1]];d(_,w,O,T,0);var I=C.getExtent();this._dataInterval=[i(w[0],O,I,!0),i(w[1],O,I,!0)]},_updateView:function(T){var _=this.visualMapModel,C=_.getExtent(),w=this._shapes,O=[0,_.itemSize[1]],I=T?O:this._handleEnds,k=this._createBarVisual(this._dataInterval,C,I,"inRange"),M=this._createBarVisual(C,C,O,"outOfRange");w.inRange.setStyle({fill:k.barColor,opacity:k.opacity}).setShape("points",k.barPoints),w.outOfRange.setStyle({fill:M.barColor,opacity:M.opacity}).setShape("points",M.barPoints),this._updateHandle(I,k)},_createBarVisual:function(T,_,C,w){var O={forceState:w,convertOpacityToAlpha:!0},I=this._makeColorGradient(T,O),k=[this.getControllerVisual(T[0],"symbolSize",O),this.getControllerVisual(T[1],"symbolSize",O)],M=this._createBarPoints(C,k);return{barColor:new g(0,0,0,1,I),barPoints:M,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(T,_){var C=100,w=[],O=(T[1]-T[0])/C;w.push({color:this.getControllerVisual(T[0],"color",_),offset:0});for(var I=1;I<C;I++){var k=T[0]+O*I;if(k>T[1])break;w.push({color:this.getControllerVisual(k,"color",_),offset:I/C})}return w.push({color:this.getControllerVisual(T[1],"color",_),offset:1}),w},_createBarPoints:function(T,_){var C=this.visualMapModel.itemSize;return[[C[0]-_[0],T[0]],[C[0],T[0]],[C[0],T[1]],[C[0]-_[1],T[1]]]},_createBarGroup:function(T){var _=this._orient,C=this.visualMapModel.get("inverse");return new p.Group(_==="horizontal"&&!C?{scale:T==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:_==="horizontal"&&C?{scale:T==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:_==="vertical"&&!C?{scale:T==="left"?[1,-1]:[-1,-1]}:{scale:T==="left"?[1,1]:[-1,1]})},_updateHandle:function(T,_){if(!this._useHandle)return;var C=this._shapes,w=this.visualMapModel,O=C.handleThumbs,I=C.handleLabels;t([0,1],function(k){var M=O[k];M.setStyle("fill",_.handlesColor[k]),M.position[1]=T[k];var U=p.applyTransform(C.handleLabelPoints[k],p.getTransform(M,this.group));I[k].setStyle({x:U[0],y:U[1],text:w.formatValueText(this._dataInterval[k]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?k===0?"bottom":"top":"left",C.barGroup)})},this)},_showIndicator:function(T,_,C,w){var O=this.visualMapModel,I=O.getExtent(),k=O.itemSize,M=[0,k[1]],U=i(T,I,M,!0),P=this._shapes,X=P.indicator;if(!X)return;X.position[1]=U,X.attr("invisible",!1),X.setShape("points",v(!!C,w,U,k[1]));var F={convertOpacityToAlpha:!0},j=this.getControllerVisual(T,"color",F);X.setStyle("fill",j);var K=p.applyTransform(P.indicatorLabelPoint,p.getTransform(X,this.group)),z=P.indicatorLabel;z.attr("invisible",!1);var V=this._applyTransform("left",P.barGroup),Q=this._orient;z.setStyle({text:(C||"")+O.formatValueText(_),textVerticalAlign:Q==="horizontal"?V:"middle",textAlign:Q==="horizontal"?"center":V,x:K[0],y:K[1]})},_enableHoverLinkToSeries:function(){var T=this;this._shapes.barGroup.on("mousemove",function(_){if(T._hovering=!0,!T._dragging){var C=T.visualMapModel.itemSize,w=T._applyTransform([_.offsetX,_.offsetY],T._shapes.barGroup,!0,!0);w[1]=o(e(0,w[1]),C[1]),T._doHoverLinkToSeries(w[1],0<=w[0]&&w[0]<=C[0])}}).on("mouseout",function(){T._hovering=!1,!T._dragging&&T._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var T=this.api.getZr();this.visualMapModel.option.hoverLink?(T.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),T.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(T,_){var C=this.visualMapModel,w=C.itemSize;if(!C.option.hoverLink)return;var O=[0,w[1]],I=C.getExtent();T=o(e(O[0],T),O[1]);var k=A(C,I,O),M=[T-k,T+k],U=i(T,O,I,!0),P=[i(M[0],O,I,!0),i(M[1],O,I,!0)];M[0]<O[0]&&(P[0]=-Infinity),M[1]>O[1]&&(P[1]=Infinity),_&&(P[0]===-Infinity?this._showIndicator(U,P[1],"< ",k):P[1]===Infinity?this._showIndicator(U,P[0],"> ",k):this._showIndicator(U,U,"\u2248 ",k));var X=this._hoverLinkDataIndices,F=[];(_||b(C))&&(F=this._hoverLinkDataIndices=C.findTargetDataIndices(P));var j=a.compressBatches(X,F);this._dispatchHighDown("downplay",l.makeHighDownBatch(j[0],C)),this._dispatchHighDown("highlight",l.makeHighDownBatch(j[1],C))},_hoverLinkFromSeriesMouseOver:function(T){var _=T.target,C=this.visualMapModel;if(!_||_.dataIndex==null)return;var w=this.ecModel.getSeriesByIndex(_.seriesIndex);if(!C.isTargetSeries(w))return;var O=w.getData(_.dataType),I=O.get(C.getDataDimension(O),_.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)},_hideIndicator:function(){var T=this._shapes;T.indicator&&T.indicator.attr("invisible",!0),T.indicatorLabel&&T.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var T=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",l.makeHighDownBatch(T,this.visualMapModel)),T.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var T=this.api.getZr();T.off("mouseover",this._hoverLinkFromSeriesMouseOver),T.off("mouseout",this._hideIndicator)},_applyTransform:function(T,_,C,w){var O=p.getTransform(_,w?null:this.group);return p[y.isArray(T)?"applyTransform":"transformDirection"](T,O,C)},_dispatchHighDown:function(T,_){_&&_.length&&this.api.dispatchAction({type:T,batch:_})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function c(T,_,C,w){return new p.Polygon({shape:{points:T},draggable:!!C,cursor:_,drift:C,onmousemove:function(O){S.stop(O.event)},ondragend:w})}function h(T,_){return T===0?[[0,0],[_,0],[_,-_]]:[[0,0],[_,0],[_,_]]}function v(T,_,C,w){return T?[[0,-o(_,e(C,0))],[r,0],[0,o(_,e(w-C,0))]]:[[0,0],[5,-5],[5,5]]}function A(T,_,C){var w=u/2,O=T.get("hoverLinkDataSize");return O&&(w=i(O,_,C,!0)/2),w}function b(T){var _=T.get("hoverLinkOnHandle");return!!(_==null?T.get("realtime"):_)}function x(T){return T==="vertical"?"ns-resize":"ew-resize"}var E=s;R.exports=E},PQMj:function(R,D,n){},PSzr:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},PVpz:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.StreamCipher,p=g.algo,f=[],d=[],l=[],a=p.RabbitLegacy=m.extend({_doReset:function(){var o=this._key.words,e=this.cfg.iv,u=this._X=[o[0],o[3]<<16|o[2]>>>16,o[1],o[0]<<16|o[3]>>>16,o[2],o[1]<<16|o[0]>>>16,o[3],o[2]<<16|o[1]>>>16],r=this._C=[o[2]<<16|o[2]>>>16,o[0]&4294901760|o[1]&65535,o[3]<<16|o[3]>>>16,o[1]&4294901760|o[2]&65535,o[0]<<16|o[0]>>>16,o[2]&4294901760|o[3]&65535,o[1]<<16|o[1]>>>16,o[3]&4294901760|o[0]&65535];this._b=0;for(var s=0;s<4;s++)i.call(this);for(var s=0;s<8;s++)r[s]^=u[s+4&7];if(e){var c=e.words,h=c[0],v=c[1],A=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,x=A>>>16|b&4294901760,E=b<<16|A&65535;r[0]^=A,r[1]^=x,r[2]^=b,r[3]^=E,r[4]^=A,r[5]^=x,r[6]^=b,r[7]^=E;for(var s=0;s<4;s++)i.call(this)}},_doProcessBlock:function(o,e){var u=this._X;i.call(this),f[0]=u[0]^u[5]>>>16^u[3]<<16,f[1]=u[2]^u[7]>>>16^u[5]<<16,f[2]=u[4]^u[1]>>>16^u[7]<<16,f[3]=u[6]^u[3]>>>16^u[1]<<16;for(var r=0;r<4;r++)f[r]=(f[r]<<8|f[r]>>>24)&16711935|(f[r]<<24|f[r]>>>8)&4278255360,o[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,o=this._C,e=0;e<8;e++)d[e]=o[e];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0<d[0]>>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0<d[1]>>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0<d[2]>>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0<d[3]>>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0<d[4]>>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0<d[5]>>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0<d[6]>>>0?1:0)|0,this._b=o[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var u=t[e]+o[e],r=u&65535,s=u>>>16,c=((r*r>>>17)+r*s>>>15)+s*s,h=((u&4294901760)*u|0)+((u&65535)*u|0);l[e]=c^h}t[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,t[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,t[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,t[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,t[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,t[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,t[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,t[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}g.RabbitLegacy=m._createHelper(a)}(),y.RabbitLegacy})},ProS:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("aX58"),m=n("bYtY"),p=n("Qe9p"),f=n("ItGF"),d=n("BPZU"),l=n("H6uX"),a=n("fmMI"),i=n("hD7B"),t=n("IDmD"),o=n("ypgQ"),e=n("+wW9"),u=n("0V0F"),r=n("bLfw"),s=n("T4UG"),c=n("sS/r"),h=n("6Ic6"),v=n("IwbS"),A=n("4NO4"),b=n("iLNv"),x=b.throttle,E=n("/WM3"),T=n("uAnK"),_=n("mYwL"),C=n("af/B"),w=n("xTNl"),O=n("8hn6");n("A1Ka");var I=n("7DRL"),k=m.assert,M=m.each,U=m.isFunction,P=m.isObject,X=r.parseClassType,F="4.8.0",j={zrender:"4.3.1"},K=1,z=1e3,V=800,Q=900,G=5e3,te=1e3,q=1100,se=2e3,re=3e3,we=3500,Oe=4e3,Me=5e3,Qe={PROCESSOR:{FILTER:z,SERIES_FILTER:V,STATISTIC:G},VISUAL:{LAYOUT:te,PROGRESSIVE_LAYOUT:q,GLOBAL:se,CHART:re,POST_CHART_LAYOUT:we,COMPONENT:Oe,BRUSH:Me}},Ve="__flagInMainProcess",dt="__optionUpdated",Fe=/^[a-zA-Z0-9_]+$/;function ue(Ft,rr){return function(Kr,Rr,kr){if(!rr&&this._disposed){pr(this.id);return}Kr=Kr&&Kr.toLowerCase(),l.prototype[Ft].call(this,Kr,Rr,kr)}}function et(){l.call(this)}et.prototype.on=ue("on",!0),et.prototype.off=ue("off",!0),et.prototype.one=ue("one",!0),m.mixin(et,l);function he(Ft,rr,Kr){Kr=Kr||{},typeof rr=="string"&&(rr=bt[rr]),this.id,this.group,this._dom=Ft;var Rr="canvas",kr=this._zr=S.init(Ft,{renderer:Kr.renderer||Rr,devicePixelRatio:Kr.devicePixelRatio,width:Kr.width,height:Kr.height});this._throttledZrFlush=x(m.bind(kr.flush,kr),17);var rr=m.clone(rr);rr&&e(rr,!0),this._theme=rr,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new t;var dn=this._api=Ge(this);function yn(ri,$n){return ri.__prio-$n.__prio}d(vr,yn),d(qe,yn),this._scheduler=new C(this,dn,qe,vr),l.call(this,this._ecEventProcessor=new pe),this._messageCenter=new et,this._initEvents(),this.resize=m.bind(this.resize,this),this._pendingActions=[],kr.animation.on("frame",this._onframe,this),ke(kr,this),m.setAsPrimitive(this)}var J=he.prototype;J._onframe=function(){if(this._disposed)return;var Ft=this._scheduler;if(this[dt]){var rr=this[dt].silent;this[Ve]=!0,de(this),$.update.call(this),this[Ve]=!1,this[dt]=!1,fe.call(this,rr),xe.call(this,rr)}else if(Ft.unfinished){var Kr=K,Rr=this._model,kr=this._api;Ft.unfinished=!1;do{var dn=+new Date;Ft.performSeriesTasks(Rr),Ft.performDataProcessorTasks(Rr),Te(this,Rr),Ft.performVisualTasks(Rr),nr(this,this._model,kr,"remain"),Kr-=+new Date-dn}while(Kr>0&&Ft.unfinished);Ft.unfinished||this._zr.flush()}},J.getDom=function(){return this._dom},J.getZr=function(){return this._zr},J.setOption=function(Ft,rr,Kr){if(this._disposed){pr(this.id);return}var Rr;if(P(rr)&&(Kr=rr.lazyUpdate,Rr=rr.silent,rr=rr.notMerge),this[Ve]=!0,!this._model||rr){var kr=new o(this._api),dn=this._theme,yn=this._model=new a;yn.scheduler=this._scheduler,yn.init(null,null,dn,kr)}this._model.setOption(Ft,me),Kr?(this[dt]={silent:Rr},this[Ve]=!1):(de(this),$.update.call(this),this._zr.flush(),this[dt]=!1,this[Ve]=!1,fe.call(this,Rr),xe.call(this,Rr))},J.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},J.getModel=function(){return this._model},J.getOption=function(){return this._model&&this._model.getOption()},J.getWidth=function(){return this._zr.getWidth()},J.getHeight=function(){return this._zr.getHeight()},J.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},J.getRenderedCanvas=function(Ft){if(!f.canvasSupported)return;Ft=Ft||{},Ft.pixelRatio=Ft.pixelRatio||1,Ft.backgroundColor=Ft.backgroundColor||this._model.get("backgroundColor");var rr=this._zr;return rr.painter.getRenderedCanvas(Ft)},J.getSvgDataURL=function(){if(!f.svgSupported)return;var Ft=this._zr,rr=Ft.storage.getDisplayList();return m.each(rr,function(Kr){Kr.stopAnimation(!0)}),Ft.painter.toDataURL()},J.getDataURL=function(Ft){if(this._disposed){pr(this.id);return}Ft=Ft||{};var rr=Ft.excludeComponents,Kr=this._model,Rr=[],kr=this;M(rr,function(yn){Kr.eachComponent({mainType:yn},function(ri){var $n=kr._componentsMap[ri.__viewId];$n.group.ignore||(Rr.push($n),$n.group.ignore=!0)})});var dn=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(Ft).toDataURL("image/"+(Ft&&Ft.type||"png"));return M(Rr,function(yn){yn.group.ignore=!1}),dn},J.getConnectedDataURL=function(Ft){if(this._disposed){pr(this.id);return}if(!f.canvasSupported)return;var rr=Ft.type==="svg",Kr=this.group,Rr=Math.min,kr=Math.max,dn=Infinity;if(jt[Kr]){var yn=dn,ri=dn,$n=-dn,pi=-dn,_i=[],Di=Ft&&Ft.pixelRatio||1;m.each(_t,function(it,Ze){if(it.group===Kr){var ot=rr?it.getZr().painter.getSvgDom().innerHTML:it.getRenderedCanvas(m.clone(Ft)),Lt=it.getDom().getBoundingClientRect();yn=Rr(Lt.left,yn),ri=Rr(Lt.top,ri),$n=kr(Lt.right,$n),pi=kr(Lt.bottom,pi),_i.push({dom:ot,left:Lt.left,top:Lt.top})}}),yn*=Di,ri*=Di,$n*=Di,pi*=Di;var Wi=$n-yn,at=pi-ri,Le=m.createCanvas(),je=S.init(Le,{renderer:rr?"svg":"canvas"});if(je.resize({width:Wi,height:at}),rr){var Xe="";return M(_i,function(it){var Ze=it.left-yn,ot=it.top-ri;Xe+='<g transform="translate('+Ze+","+ot+')">'+it.dom+"</g>"}),je.painter.getSvgRoot().innerHTML=Xe,Ft.connectedBackgroundColor&&je.painter.setBackgroundColor(Ft.connectedBackgroundColor),je.refreshImmediately(),je.painter.toDataURL()}else return Ft.connectedBackgroundColor&&je.add(new v.Rect({shape:{x:0,y:0,width:Wi,height:at},style:{fill:Ft.connectedBackgroundColor}})),M(_i,function(it){var Ze=new v.Image({style:{x:it.left*Di-yn,y:it.top*Di-ri,image:it.dom}});je.add(Ze)}),je.refreshImmediately(),Le.toDataURL("image/"+(Ft&&Ft.type||"png"))}else return this.getDataURL(Ft)},J.convertToPixel=m.curry(Y,"convertToPixel"),J.convertFromPixel=m.curry(Y,"convertFromPixel");function Y(Ft,rr,Kr){if(this._disposed){pr(this.id);return}var Rr=this._model,kr=this._coordSysMgr.getCoordinateSystems(),dn;rr=A.parseFinder(Rr,rr);for(var yn=0;yn<kr.length;yn++){var ri=kr[yn];if(ri[Ft]&&(dn=ri[Ft](Rr,rr,Kr))!=null)return dn}}J.containPixel=function(Ft,rr){if(this._disposed){pr(this.id);return}var Kr=this._model,Rr;return Ft=A.parseFinder(Kr,Ft),m.each(Ft,function(kr,dn){dn.indexOf("Models")>=0&&m.each(kr,function(yn){var ri=yn.coordinateSystem;if(ri&&ri.containPoint)Rr|=!!ri.containPoint(rr);else if(dn==="seriesModels"){var $n=this._chartsMap[yn.__viewId];$n&&$n.containPoint&&(Rr|=$n.containPoint(rr,yn))}},this)},this),!!Rr},J.getVisual=function(Ft,rr){var Kr=this._model;Ft=A.parseFinder(Kr,Ft,{defaultMainType:"series"});var Rr=Ft.seriesModel,kr=Rr.getData(),dn=Ft.hasOwnProperty("dataIndexInside")?Ft.dataIndexInside:Ft.hasOwnProperty("dataIndex")?kr.indexOfRawIndex(Ft.dataIndex):null;return dn!=null?kr.getItemVisual(dn,rr):kr.getVisual(rr)},J.getViewOfComponentModel=function(Ft){return this._componentsMap[Ft.__viewId]},J.getViewOfSeriesModel=function(Ft){return this._chartsMap[Ft.__viewId]};var $={prepareAndUpdate:function(Ft){de(this),$.update.call(this,Ft)},update:function(Ft){var rr=this._model,Kr=this._api,Rr=this._zr,kr=this._coordSysMgr,dn=this._scheduler;if(!rr)return;dn.restoreData(rr,Ft),dn.performSeriesTasks(rr),kr.create(rr,Kr),dn.performDataProcessorTasks(rr,Ft),Te(this,rr),kr.update(rr,Kr),Ct(rr),dn.performVisualTasks(rr,Ft),pt(this,rr,Kr,Ft);var yn=rr.get("backgroundColor")||"transparent";if(f.canvasSupported)Rr.setBackgroundColor(yn);else{var ri=p.parse(yn);yn=p.stringify(ri,"rgb"),ri[3]===0&&(yn="transparent")}ht(rr,Kr)},updateTransform:function(Ft){var rr=this._model,Kr=this,Rr=this._api;if(!rr)return;var kr=[];rr.eachComponent(function(yn,ri){var $n=Kr.getViewOfComponentModel(ri);if($n&&$n.__alive)if($n.updateTransform){var pi=$n.updateTransform(ri,rr,Rr,Ft);pi&&pi.update&&kr.push($n)}else kr.push($n)});var dn=m.createHashMap();rr.eachSeries(function(yn){var ri=Kr._chartsMap[yn.__viewId];if(ri.updateTransform){var $n=ri.updateTransform(yn,rr,Rr,Ft);$n&&$n.update&&dn.set(yn.uid,1)}else dn.set(yn.uid,1)}),Ct(rr),this._scheduler.performVisualTasks(rr,Ft,{setDirty:!0,dirtyMap:dn}),nr(Kr,rr,Rr,Ft,dn),ht(rr,this._api)},updateView:function(Ft){var rr=this._model;if(!rr)return;h.markUpdateMethod(Ft,"updateView"),Ct(rr),this._scheduler.performVisualTasks(rr,Ft,{setDirty:!0}),pt(this,this._model,this._api,Ft),ht(rr,this._api)},updateVisual:function(Ft){$.update.call(this,Ft)},updateLayout:function(Ft){$.update.call(this,Ft)}};function de(Ft){var rr=Ft._model,Kr=Ft._scheduler;Kr.restorePipelines(rr),Kr.prepareStageTasks(),nt(Ft,"component",rr,Kr),nt(Ft,"chart",rr,Kr),Kr.plan()}function be(Ft,rr,Kr,Rr,kr){var dn=Ft._model;if(!Rr){M(Ft._componentsViews.concat(Ft._chartsViews),pi);return}var yn={};yn[Rr+"Id"]=Kr[Rr+"Id"],yn[Rr+"Index"]=Kr[Rr+"Index"],yn[Rr+"Name"]=Kr[Rr+"Name"];var ri={mainType:Rr,query:yn};kr&&(ri.subType=kr);var $n=Kr.excludeSeriesId;$n!=null&&($n=m.createHashMap(A.normalizeToArray($n))),dn&&dn.eachComponent(ri,function(_i){(!$n||$n.get(_i.id)==null)&&pi(Ft[Rr==="series"?"_chartsMap":"_componentsMap"][_i.__viewId])},Ft);function pi(_i){_i&&_i.__alive&&_i[rr]&&_i[rr](_i.__model,dn,Ft._api,Kr)}}J.resize=function(Ft){if(this._disposed){pr(this.id);return}this._zr.resize(Ft);var rr=this._model;if(this._loadingFX&&this._loadingFX.resize(),!rr)return;var Kr=rr.resetOption("media"),Rr=Ft&&Ft.silent;this[Ve]=!0,Kr&&de(this),$.update.call(this),this[Ve]=!1,fe.call(this,Rr),xe.call(this,Rr)};function Te(Ft,rr){var Kr=Ft._chartsMap,Rr=Ft._scheduler;rr.eachSeries(function(kr){Rr.updateStreamModes(kr,Kr[kr.__viewId])})}J.showLoading=function(Ft,rr){if(this._disposed){pr(this.id);return}if(P(Ft)&&(rr=Ft,Ft=""),Ft=Ft||"default",this.hideLoading(),!or[Ft])return;var Kr=or[Ft](this._api,rr),Rr=this._zr;this._loadingFX=Kr,Rr.add(Kr)},J.hideLoading=function(){if(this._disposed){pr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},J.makeActionFromEvent=function(Ft){var rr=m.extend({},Ft);return rr.type=ct[Ft.type],rr},J.dispatchAction=function(Ft,rr){if(this._disposed){pr(this.id);return}if(P(rr)||(rr={silent:!!rr}),!oe[Ft.type])return;if(!this._model)return;if(this[Ve]){this._pendingActions.push(Ft);return}Be.call(this,Ft,rr.silent),rr.flush?this._zr.flush(!0):rr.flush!==!1&&f.browser.weChat&&this._throttledZrFlush(),fe.call(this,rr.silent),xe.call(this,rr.silent)};function Be(Ft,rr){var Kr=Ft.type,Rr=Ft.escapeConnect,kr=oe[Kr],dn=kr.actionInfo,yn=(dn.update||"update").split(":"),ri=yn.pop();yn=yn[0]!=null&&X(yn[0]),this[Ve]=!0;var $n=[Ft],pi=!1;Ft.batch&&(pi=!0,$n=m.map(Ft.batch,function(at){return at=m.defaults(m.extend({},at),Ft),at.batch=null,at}));var _i=[],Di,Wi=Kr==="highlight"||Kr==="downplay";M($n,function(at){Di=kr.action(at,this._model,this._api),Di=Di||m.extend({},at),Di.type=dn.event||Di.type,_i.push(Di),Wi?be(this,ri,at,"series"):yn&&be(this,ri,at,yn.main,yn.sub)},this),ri!=="none"&&!Wi&&!yn&&(this[dt]?(de(this),$.update.call(this,Ft),this[dt]=!1):$[ri].call(this,Ft)),pi?Di={type:dn.event||Kr,escapeConnect:Rr,batch:_i}:Di=_i[0],this[Ve]=!1,!rr&&this._messageCenter.trigger(Di.type,Di)}function fe(Ft){for(var rr=this._pendingActions;rr.length;){var Kr=rr.shift();Be.call(this,Kr,Ft)}}function xe(Ft){!Ft&&this.trigger("updated")}function ke(Ft,rr){Ft.on("rendered",function(){rr.trigger("rendered"),Ft.animation.isFinished()&&!rr[dt]&&!rr._scheduler.unfinished&&!rr._pendingActions.length&&rr.trigger("finished")})}J.appendData=function(Ft){if(this._disposed){pr(this.id);return}var rr=Ft.seriesIndex,Kr=this.getModel(),Rr=Kr.getSeriesByIndex(rr);Rr.appendData(Ft),this._scheduler.unfinished=!0},J.on=ue("on",!1),J.off=ue("off",!1),J.one=ue("one",!1);function nt(Ft,rr,Kr,Rr){for(var kr=rr==="component",dn=kr?Ft._componentsViews:Ft._chartsViews,yn=kr?Ft._componentsMap:Ft._chartsMap,ri=Ft._zr,$n=Ft._api,pi=0;pi<dn.length;pi++)dn[pi].__alive=!1;kr?Kr.eachComponent(function(Wi,at){Wi!=="series"&&_i(at)}):Kr.eachSeries(_i);function _i(Wi){var at="_ec_"+Wi.id+"_"+Wi.type,Le=yn[at];if(!Le){var je=X(Wi.type),Xe=kr?c.getClass(je.main,je.sub):h.getClass(je.sub);Le=new Xe,Le.init(Kr,$n),yn[at]=Le,dn.push(Le),ri.add(Le.group)}Wi.__viewId=Le.__id=at,Le.__alive=!0,Le.__model=Wi,Le.group.__ecComponentInfo={mainType:Wi.mainType,index:Wi.componentIndex},!kr&&Rr.prepareView(Le,Wi,Kr,$n)}for(var pi=0;pi<dn.length;){var Di=dn[pi];Di.__alive?pi++:(!kr&&Di.renderTask.dispose(),ri.remove(Di.group),Di.dispose(Kr,$n),dn.splice(pi,1),delete yn[Di.__id],Di.__id=Di.group.__ecComponentInfo=null)}}function Ct(Ft){Ft.clearColorPalette(),Ft.eachSeries(function(rr){rr.clearColorPalette()})}function pt(Ft,rr,Kr,Rr){He(Ft,rr,Kr,Rr),M(Ft._chartsViews,function(kr){kr.__alive=!1}),nr(Ft,rr,Kr,Rr),M(Ft._chartsViews,function(kr){kr.__alive||kr.remove(rr,Kr)})}function He(Ft,rr,Kr,Rr,kr){M(kr||Ft._componentsViews,function(dn){var yn=dn.__model;dn.render(yn,rr,Kr,Rr),Jt(yn,dn)})}function nr(Ft,rr,Kr,Rr,kr){var dn=Ft._scheduler,yn;rr.eachSeries(function(ri){var $n=Ft._chartsMap[ri.__viewId];$n.__alive=!0;var pi=$n.renderTask;dn.updatePayload(pi,Rr),kr&&kr.get(ri.uid)&&pi.dirty(),yn|=pi.perform(dn.getPerformArgs(pi)),$n.group.silent=!!ri.get("silent"),Jt(ri,$n),Ht(ri,$n)}),dn.unfinished|=yn,Qt(Ft,rr),T(Ft._zr.dom,rr)}function ht(Ft,rr){M(Kt,function(Kr){Kr(Ft,rr)})}var Gt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];J._initEvents=function(){M(Gt,function(Ft){var rr=function(Kr){var Rr=this.getModel(),kr=Kr.target,dn,yn=Ft==="globalout";if(yn)dn={};else if(kr&&kr.dataIndex!=null){var ri=kr.dataModel||Rr.getSeriesByIndex(kr.seriesIndex);dn=ri&&ri.getDataParams(kr.dataIndex,kr.dataType,kr)||{}}else kr&&kr.eventData&&(dn=m.extend({},kr.eventData));if(dn){var $n=dn.componentType,pi=dn.componentIndex;($n==="markLine"||$n==="markPoint"||$n==="markArea")&&($n="series",pi=dn.seriesIndex);var _i=$n&&pi!=null&&Rr.getComponent($n,pi),Di=_i&&this[_i.mainType==="series"?"_chartsMap":"_componentsMap"][_i.__viewId];dn.event=Kr,dn.type=Ft,this._ecEventProcessor.eventInfo={targetEl:kr,packedEvent:dn,model:_i,view:Di},this.trigger(Ft,dn)}};rr.zrEventfulCallAtLast=!0,this._zr.on(Ft,rr,this)},this),M(ct,function(Ft,rr){this._messageCenter.on(rr,function(Kr){this.trigger(rr,Kr)},this)},this)},J.isDisposed=function(){return this._disposed},J.clear=function(){if(this._disposed){pr(this.id);return}this.setOption({series:[]},!0)},J.dispose=function(){if(this._disposed){pr(this.id);return}this._disposed=!0,A.setAttribute(this.getDom(),mt,"");var Ft=this._api,rr=this._model;M(this._componentsViews,function(Kr){Kr.dispose(rr,Ft)}),M(this._chartsViews,function(Kr){Kr.dispose(rr,Ft)}),this._zr.dispose(),delete _t[this.id]},m.mixin(he,l);function pr(Ft){}function Qt(Ft,rr){var Kr=Ft._zr,Rr=Kr.storage,kr=0;Rr.traverse(function(dn){kr++}),kr>rr.get("hoverLayerThreshold")&&!f.node&&rr.eachSeries(function(dn){if(dn.preventUsingHoverLayer)return;var yn=Ft._chartsMap[dn.__viewId];yn.__alive&&yn.group.traverse(function(ri){ri.useHoverLayer=!0})})}function Ht(Ft,rr){var Kr=Ft.get("blendMode")||null;rr.group.traverse(function(Rr){Rr.isGroup||Rr.style.blend!==Kr&&Rr.setStyle("blend",Kr),Rr.eachPendingDisplayable&&Rr.eachPendingDisplayable(function(kr){kr.setStyle("blend",Kr)})})}function Jt(Ft,rr){var Kr=Ft.get("z"),Rr=Ft.get("zlevel");rr.group.traverse(function(kr){kr.type!=="group"&&(Kr!=null&&(kr.z=Kr),Rr!=null&&(kr.zlevel=Rr))})}function Ge(Ft){var rr=Ft._coordSysMgr;return m.extend(new i(Ft),{getCoordinateSystems:m.bind(rr.getCoordinateSystems,rr),getComponentByElement:function(Kr){for(;Kr;){var Rr=Kr.__ecComponentInfo;if(Rr!=null)return Ft._model.getComponent(Rr.mainType,Rr.index);Kr=Kr.parent}}})}function pe(){this.eventInfo}pe.prototype={constructor:pe,normalizeQuery:function(Ft){var rr={},Kr={},Rr={};if(m.isString(Ft)){var kr=X(Ft);rr.mainType=kr.main||null,rr.subType=kr.sub||null}else{var dn=["Index","Name","Id"],yn={name:1,dataIndex:1,dataType:1};m.each(Ft,function(ri,$n){for(var pi=!1,_i=0;_i<dn.length;_i++){var Di=dn[_i],Wi=$n.lastIndexOf(Di);if(Wi>0&&Wi===$n.length-Di.length){var at=$n.slice(0,Wi);at!=="data"&&(rr.mainType=at,rr[Di.toLowerCase()]=ri,pi=!0)}}yn.hasOwnProperty($n)&&(Kr[$n]=ri,pi=!0),pi||(Rr[$n]=ri)})}return{cptQuery:rr,dataQuery:Kr,otherQuery:Rr}},filter:function(Ft,rr,Kr){var Rr=this.eventInfo;if(!Rr)return!0;var kr=Rr.targetEl,dn=Rr.packedEvent,yn=Rr.model,ri=Rr.view;if(!yn||!ri)return!0;var $n=rr.cptQuery,pi=rr.dataQuery;return _i($n,yn,"mainType")&&_i($n,yn,"subType")&&_i($n,yn,"index","componentIndex")&&_i($n,yn,"name")&&_i($n,yn,"id")&&_i(pi,dn,"name")&&_i(pi,dn,"dataIndex")&&_i(pi,dn,"dataType")&&(!ri.filterForExposedEvent||ri.filterForExposedEvent(Ft,rr.otherQuery,kr,dn));function _i(Di,Wi,at,Le){return Di[at]==null||Wi[Le||at]===Di[at]}},afterTrigger:function(){this.eventInfo=null}};var oe={},ct={},qe=[],me=[],Kt=[],vr=[],bt={},or={},_t={},jt={},ut=new Date-0,St=new Date-0,mt="_echarts_instance_";function lt(Ft){var rr=0,Kr=1,Rr=2,kr="__connectUpdateStatus";function dn(yn,ri){for(var $n=0;$n<yn.length;$n++){var pi=yn[$n];pi[kr]=ri}}M(ct,function(yn,ri){Ft._messageCenter.on(ri,function($n){if(jt[Ft.group]&&Ft[kr]!==rr){if($n&&$n.escapeConnect)return;var pi=Ft.makeActionFromEvent($n),_i=[];M(_t,function(Di){Di!==Ft&&Di.group===Ft.group&&_i.push(Di)}),dn(_i,rr),M(_i,function(Di){Di[kr]!==Kr&&Di.dispatchAction(pi)}),dn(_i,Rr)}})})}function tt(Ft,rr,Kr){var Rr=oi(Ft);if(Rr)return Rr;var kr=new he(Ft,rr,Kr);return kr.id="ec_"+ut++,_t[kr.id]=kr,A.setAttribute(Ft,mt,kr.id),lt(kr),kr}function Cr(Ft){if(m.isArray(Ft)){var rr=Ft;Ft=null,M(rr,function(Kr){Kr.group!=null&&(Ft=Kr.group)}),Ft=Ft||"g_"+St++,M(rr,function(Kr){Kr.group=Ft})}return jt[Ft]=!0,Ft}function nn(Ft){jt[Ft]=!1}var mn=nn;function Bn(Ft){typeof Ft=="string"?Ft=_t[Ft]:Ft instanceof he||(Ft=oi(Ft)),Ft instanceof he&&!Ft.isDisposed()&&Ft.dispose()}function oi(Ft){return _t[A.getAttribute(Ft,mt)]}function wn(Ft){return _t[Ft]}function Rn(Ft,rr){bt[Ft]=rr}function Zt(Ft){me.push(Ft)}function Tt(Ft,rr){$t(qe,Ft,rr,z)}function De(Ft){Kt.push(Ft)}function Re(Ft,rr,Kr){typeof rr=="function"&&(Kr=rr,rr="");var Rr=P(Ft)?Ft.type:[Ft,Ft={event:rr}][0];Ft.event=(Ft.event||Rr).toLowerCase(),rr=Ft.event,k(Fe.test(Rr)&&Fe.test(rr)),oe[Rr]||(oe[Rr]={action:Kr,actionInfo:Ft}),ct[rr]=Rr}function Pe(Ft,rr){t.register(Ft,rr)}function rt(Ft){var rr=t.get(Ft);if(rr)return rr.getDimensionsInfo?rr.getDimensionsInfo():rr.dimensions.slice()}function wt(Ft,rr){$t(vr,Ft,rr,te,"layout")}function Ot(Ft,rr){$t(vr,Ft,rr,re,"visual")}function $t(Ft,rr,Kr,Rr,kr){(U(rr)||P(rr))&&(Kr=rr,rr=Rr);var dn=C.wrapStageHandler(Kr,kr);return dn.__prio=rr,dn.__raw=Kr,Ft.push(dn),dn}function Mr(Ft,rr){or[Ft]=rr}function Vr(Ft){return r.extend(Ft)}function hn(Ft){return c.extend(Ft)}function Vt(Ft){return s.extend(Ft)}function yt(Ft){return h.extend(Ft)}function xt(Ft){m.$override("createCanvas",Ft)}function dr(Ft,rr,Kr){I.registerMap(Ft,rr,Kr)}function er(Ft){var rr=I.retrieveMap(Ft);return rr&&rr[0]&&{geoJson:rr[0].geoJSON,specialAreas:rr[0].specialAreas}}Ot(se,E),Zt(e),Tt(Q,u),Mr("default",_),Re({type:"highlight",event:"highlight",update:"highlight"},m.noop),Re({type:"downplay",event:"downplay",update:"downplay"},m.noop),Rn("light",w),Rn("dark",O);var Ut={};D.version=F,D.dependencies=j,D.PRIORITY=Qe,D.init=tt,D.connect=Cr,D.disConnect=nn,D.disconnect=mn,D.dispose=Bn,D.getInstanceByDom=oi,D.getInstanceById=wn,D.registerTheme=Rn,D.registerPreprocessor=Zt,D.registerProcessor=Tt,D.registerPostUpdate=De,D.registerAction=Re,D.registerCoordinateSystem=Pe,D.getCoordinateSystemDimensions=rt,D.registerLayout=wt,D.registerVisual=Ot,D.registerLoading=Mr,D.extendComponentModel=Vr,D.extendComponentView=hn,D.extendSeriesModel=Vt,D.extendChartView=yt,D.setCanvasCreator=xt,D.registerMap=dr,D.getMap=er,D.dataTool=Ut;var ir=n("txkQ");(function(){for(var Ft in ir)ir.hasOwnProperty(Ft)&&(D[Ft]=ir[Ft])})()},Pw59:function(R,D,n){"use strict";var y=n("q1tI"),g=n.n(y),S=Object(y.createContext)({});D.a=S},Q7if:function(R,D,n){var y=n("JEkh"),g=y.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"}}}});R.exports=g},Q9mQ:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("UADf"),m=n.n(S)},"QB+1":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("Ywus"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},QBsz:function(R,D){var n=typeof Float32Array=="undefined"?Array:Float32Array;function y(C,w){var O=new n(2);return C==null&&(C=0),w==null&&(w=0),O[0]=C,O[1]=w,O}function g(C,w){return C[0]=w[0],C[1]=w[1],C}function S(C){var w=new n(2);return w[0]=C[0],w[1]=C[1],w}function m(C,w,O){return C[0]=w,C[1]=O,C}function p(C,w,O){return C[0]=w[0]+O[0],C[1]=w[1]+O[1],C}function f(C,w,O,I){return C[0]=w[0]+O[0]*I,C[1]=w[1]+O[1]*I,C}function d(C,w,O){return C[0]=w[0]-O[0],C[1]=w[1]-O[1],C}function l(C){return Math.sqrt(i(C))}var a=l;function i(C){return C[0]*C[0]+C[1]*C[1]}var t=i;function o(C,w,O){return C[0]=w[0]*O[0],C[1]=w[1]*O[1],C}function e(C,w,O){return C[0]=w[0]/O[0],C[1]=w[1]/O[1],C}function u(C,w){return C[0]*w[0]+C[1]*w[1]}function r(C,w,O){return C[0]=w[0]*O,C[1]=w[1]*O,C}function s(C,w){var O=l(w);return O===0?(C[0]=0,C[1]=0):(C[0]=w[0]/O,C[1]=w[1]/O),C}function c(C,w){return Math.sqrt((C[0]-w[0])*(C[0]-w[0])+(C[1]-w[1])*(C[1]-w[1]))}var h=c;function v(C,w){return(C[0]-w[0])*(C[0]-w[0])+(C[1]-w[1])*(C[1]-w[1])}var A=v;function b(C,w){return C[0]=-w[0],C[1]=-w[1],C}function x(C,w,O,I){return C[0]=w[0]+I*(O[0]-w[0]),C[1]=w[1]+I*(O[1]-w[1]),C}function E(C,w,O){var I=w[0],k=w[1];return C[0]=O[0]*I+O[2]*k+O[4],C[1]=O[1]*I+O[3]*k+O[5],C}function T(C,w,O){return C[0]=Math.min(w[0],O[0]),C[1]=Math.min(w[1],O[1]),C}function _(C,w,O){return C[0]=Math.max(w[0],O[0]),C[1]=Math.max(w[1],O[1]),C}D.create=y,D.copy=g,D.clone=S,D.set=m,D.add=p,D.scaleAndAdd=f,D.sub=d,D.len=l,D.length=a,D.lenSquare=i,D.lengthSquare=t,D.mul=o,D.div=e,D.dot=u,D.scale=r,D.normalize=s,D.distance=c,D.dist=h,D.distanceSquare=v,D.distSquare=A,D.negate=b,D.lerp=x,D.applyTransform=E,D.min=T,D.max=_},"QO+J":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=S(n("NohK")),g=n("24YM");function S(p){return p&&p.__esModule?p:{default:p}}var m=function(f,d){var l=void 0,a=[],i=function(){getComputedStyle(f).position==="static"&&(f.style.position="relative");var s=document.createElement("object");return s.onload=function(){s.contentDocument.defaultView.addEventListener("resize",t),t()},s.style.display="block",s.style.position="absolute",s.style.top="0",s.style.left="0",s.style.height="100%",s.style.width="100%",s.style.overflow="hidden",s.style.pointerEvents="none",s.style.zIndex="-1",s.style.opacity="0",s.setAttribute("class",g.SensorClassName),s.setAttribute("tabindex",g.SensorTabIndex),s.type="text/html",f.appendChild(s),s.data="about:blank",s},t=(0,y.default)(function(){a.forEach(function(r){r(f)})}),o=function(s){l||(l=i()),a.indexOf(s)===-1&&a.push(s)},e=function(){l&&l.parentNode&&(l.contentDocument&&l.contentDocument.defaultView.removeEventListener("resize",t),l.parentNode.removeChild(l),f.removeAttribute(g.SizeSensorId),l=void 0,a=[],d&&d())},u=function(s){var c=a.indexOf(s);c!==-1&&a.splice(c,1),a.length===0&&l&&e()};return{element:f,bind:o,destroy:e,unbind:u}};D.createSensor=m},"QQZ/":function(R,D,n){var y=n("Sq3C"),g=n("Z1HP"),S=n("Sxd8"),m=n("dt0z");function p(f,d,l){f=m(f),d=S(d);var a=d?g(f):0;return d&&a<d?y(d-a,l)+f:f}R.exports=p},QUw5:function(R,D,n){var y=n("OlYY"),g=y.extend({type:"dataZoom.select"});R.exports=g},QV2g:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(){for(var m,p=[],f=0;f<256;f++){m=f;for(var d=0;d<8;d++)m=m&1?3988292384^m>>>1:m>>>1;p[f]=m}return p}var g=y();function S(m,p,f,d){var l=g,a=d+f;m^=-1;for(var i=d;i<a;i++)m=m>>>8^l[(m^p[i])&255];return m^-1}},QbM5:function(R,D,n){},Qe9p:function(R,D,n){var y=n("1RvN"),g={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 S(w){return w=Math.round(w),w<0?0:w>255?255:w}function m(w){return w=Math.round(w),w<0?0:w>360?360:w}function p(w){return w<0?0:w>1?1:w}function f(w){return w.length&&w.charAt(w.length-1)==="%"?S(parseFloat(w)/100*255):S(parseInt(w,10))}function d(w){return w.length&&w.charAt(w.length-1)==="%"?p(parseFloat(w)/100):p(parseFloat(w))}function l(w,O,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?w+(O-w)*I*6:I*2<1?O:I*3<2?w+(O-w)*(2/3-I)*6:w}function a(w,O,I){return w+(O-w)*I}function i(w,O,I,k,M){return w[0]=O,w[1]=I,w[2]=k,w[3]=M,w}function t(w,O){return w[0]=O[0],w[1]=O[1],w[2]=O[2],w[3]=O[3],w}var o=new y(20),e=null;function u(w,O){e&&t(e,O),e=o.put(w,e||O.slice())}function r(w,O){if(!w)return;O=O||[];var I=o.get(w);if(I)return t(O,I);w=w+"";var k=w.replace(/ /g,"").toLowerCase();if(k in g)return t(O,g[k]),u(w,O),O;if(k.charAt(0)==="#"){if(k.length===4){var M=parseInt(k.substr(1),16);if(!(M>=0&&M<=4095)){i(O,0,0,0,1);return}return i(O,(M&3840)>>4|(M&3840)>>8,M&240|(M&240)>>4,M&15|(M&15)<<4,1),u(w,O),O}else if(k.length===7){var M=parseInt(k.substr(1),16);if(!(M>=0&&M<=16777215)){i(O,0,0,0,1);return}return i(O,(M&16711680)>>16,(M&65280)>>8,M&255,1),u(w,O),O}return}var U=k.indexOf("("),P=k.indexOf(")");if(U!==-1&&P+1===k.length){var X=k.substr(0,U),F=k.substr(U+1,P-(U+1)).split(","),j=1;switch(X){case"rgba":if(F.length!==4){i(O,0,0,0,1);return}j=d(F.pop());case"rgb":if(F.length!==3){i(O,0,0,0,1);return}return i(O,f(F[0]),f(F[1]),f(F[2]),j),u(w,O),O;case"hsla":if(F.length!==4){i(O,0,0,0,1);return}return F[3]=d(F[3]),s(F,O),u(w,O),O;case"hsl":if(F.length!==3){i(O,0,0,0,1);return}return s(F,O),u(w,O),O;default:return}}i(O,0,0,0,1);return}function s(w,O){var I=(parseFloat(w[0])%360+360)%360/360,k=d(w[1]),M=d(w[2]),U=M<=.5?M*(k+1):M+k-M*k,P=M*2-U;return O=O||[],i(O,S(l(P,U,I+1/3)*255),S(l(P,U,I)*255),S(l(P,U,I-1/3)*255),1),w.length===4&&(O[3]=w[3]),O}function c(w){if(!w)return;var O=w[0]/255,I=w[1]/255,k=w[2]/255,M=Math.min(O,I,k),U=Math.max(O,I,k),P=U-M,X=(U+M)/2,F,j;if(P===0)F=0,j=0;else{X<.5?j=P/(U+M):j=P/(2-U-M);var K=((U-O)/6+P/2)/P,z=((U-I)/6+P/2)/P,V=((U-k)/6+P/2)/P;O===U?F=V-z:I===U?F=1/3+K-V:k===U&&(F=2/3+z-K),F<0&&(F+=1),F>1&&(F-=1)}var Q=[F*360,j,X];return w[3]!=null&&Q.push(w[3]),Q}function h(w,O){var I=r(w);if(I){for(var k=0;k<3;k++)O<0?I[k]=I[k]*(1-O)|0:I[k]=(255-I[k])*O+I[k]|0,I[k]>255?I[k]=255:w[k]<0&&(I[k]=0);return C(I,I.length===4?"rgba":"rgb")}}function v(w){var O=r(w);if(O)return((1<<24)+(O[0]<<16)+(O[1]<<8)+ +O[2]).toString(16).slice(1)}function A(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;I=I||[];var k=w*(O.length-1),M=Math.floor(k),U=Math.ceil(k),P=O[M],X=O[U],F=k-M;return I[0]=S(a(P[0],X[0],F)),I[1]=S(a(P[1],X[1],F)),I[2]=S(a(P[2],X[2],F)),I[3]=p(a(P[3],X[3],F)),I}var b=A;function x(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;var k=w*(O.length-1),M=Math.floor(k),U=Math.ceil(k),P=r(O[M]),X=r(O[U]),F=k-M,j=C([S(a(P[0],X[0],F)),S(a(P[1],X[1],F)),S(a(P[2],X[2],F)),p(a(P[3],X[3],F))],"rgba");return I?{color:j,leftIndex:M,rightIndex:U,value:k}:j}var E=x;function T(w,O,I,k){if(w=r(w),w)return w=c(w),O!=null&&(w[0]=m(O)),I!=null&&(w[1]=d(I)),k!=null&&(w[2]=d(k)),C(s(w),"rgba")}function _(w,O){if(w=r(w),w&&O!=null)return w[3]=p(O),C(w,"rgba")}function C(w,O){if(!w||!w.length)return;var I=w[0]+","+w[1]+","+w[2];return(O==="rgba"||O==="hsva"||O==="hsla")&&(I+=","+w[3]),O+"("+I+")"}D.parse=r,D.lift=h,D.toHex=v,D.fastLerp=A,D.fastMapToColor=b,D.lerp=x,D.mapToColor=E,D.modifyHSL=T,D.modifyAlpha=_,D.stringify=C},Qi1f:function(R,D,n){"use strict";n.d(D,"g",function(){return C}),n.d(D,"c",function(){return w}),n.d(D,"a",function(){return I}),n.d(D,"b",function(){return k}),n.d(D,"d",function(){return M}),n.d(D,"e",function(){return U}),n.d(D,"f",function(){return X});var y=n("VTBJ"),g=n("U8pU"),S=n("AJpP"),m=n("q1tI"),p=n.n(m),f=n("Kwbf"),d=n("MNnm"),l=n("l4aY"),a="data-rc-order",i="data-rc-priority",t="rc-util-key",o=new Map;function e(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=F.mark;return j?j.startsWith("data-")?j:"data-".concat(j):t}function u(F){if(F.attachTo)return F.attachTo;var j=document.querySelector("head");return j||document.body}function r(F){return F==="queue"?"prependQueue":F?"prepend":"append"}function s(F){return Array.from((o.get(F)||F).children).filter(function(j){return j.tagName==="STYLE"})}function c(F){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(d.a)())return null;var K=j.csp,z=j.prepend,V=j.priority,Q=V===void 0?0:V,G=r(z),te=G==="prependQueue",q=document.createElement("style");q.setAttribute(a,G),te&&Q&&q.setAttribute(i,"".concat(Q)),K!=null&&K.nonce&&(q.nonce=K==null?void 0:K.nonce),q.innerHTML=F;var se=u(j),re=se.firstChild;if(z){if(te){var we=s(se).filter(function(Oe){if(!["prepend","prependQueue"].includes(Oe.getAttribute(a)))return!1;var Me=Number(Oe.getAttribute(i)||0);return Q>=Me});if(we.length)return se.insertBefore(q,we[we.length-1].nextSibling),q}se.insertBefore(q,re)}else se.appendChild(q);return q}function h(F){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=u(j);return s(K).find(function(z){return z.getAttribute(e(j))===F})}function v(F){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=h(F,j);if(K){var z=u(j);z.removeChild(K)}}function A(F,j){var K=o.get(F);if(!K||!Object(l.a)(document,K)){var z=c("",j),V=z.parentNode;o.set(F,V),F.removeChild(z)}}function b(){o.clear()}function x(F,j){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=u(K);A(z,K);var V=h(j,K);if(V){var Q,G;if((Q=K.csp)!==null&&Q!==void 0&&Q.nonce&&V.nonce!==((G=K.csp)===null||G===void 0?void 0:G.nonce)){var te;V.nonce=(te=K.csp)===null||te===void 0?void 0:te.nonce}return V.innerHTML!==F&&(V.innerHTML=F),V}var q=c(F,K);return q.setAttribute(e(K),j),q}var E=n("Pw59"),T=n("u6S6"),_=n.n(T);function C(F,j){Object(f.a)(F,"[@ant-design/icons] ".concat(j))}function w(F){return Object(g.a)(F)==="object"&&typeof F.name=="string"&&typeof F.theme=="string"&&(Object(g.a)(F.icon)==="object"||typeof F.icon=="function")}function O(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(F).reduce(function(j,K){var z=F[K];switch(K){case"class":j.className=z,delete j.class;break;default:delete j[K],j[_()(K)]=z}return j},{})}function I(F,j,K){return K?p.a.createElement(F.tag,Object(y.a)(Object(y.a)({key:j},O(F.attrs)),K),(F.children||[]).map(function(z,V){return I(z,"".concat(j,"-").concat(F.tag,"-").concat(V))})):p.a.createElement(F.tag,Object(y.a)({key:j},O(F.attrs)),(F.children||[]).map(function(z,V){return I(z,"".concat(j,"-").concat(F.tag,"-").concat(V))}))}function k(F){return Object(S.generate)(F)[0]}function M(F){return F?Array.isArray(F)?F:[F]:[]}var U={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},P=`
.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);
}
}
`,X=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P,K=Object(m.useContext)(E.a),z=K.csp;Object(m.useEffect)(function(){x(j,"@ant-design-icons",{prepend:!0,csp:z})},[])}},QkVE:function(R,D,n){var y=n("EpBk");function g(S,m){var p=S.__data__;return y(m)?p[typeof m=="string"?"string":"hash"]:p.map}R.exports=g},QoRX:function(R,D){function n(y,g){for(var S=-1,m=y==null?0:y.length;++S<m;)if(g(y[S],S,y))return!0;return!1}R.exports=n},QqLw:function(R,D,n){var y=n("tadb"),g=n("ebwN"),S=n("HOxn"),m=n("yGk4"),p=n("Of+w"),f=n("NykK"),d=n("3Fdi"),l="[object Map]",a="[object Object]",i="[object Promise]",t="[object Set]",o="[object WeakMap]",e="[object DataView]",u=d(y),r=d(g),s=d(S),c=d(m),h=d(p),v=f;(y&&v(new y(new ArrayBuffer(1)))!=e||g&&v(new g)!=l||S&&v(S.resolve())!=i||m&&v(new m)!=t||p&&v(new p)!=o)&&(v=function(A){var b=f(A),x=b==a?A.constructor:void 0,E=x?d(x):"";if(E)switch(E){case u:return e;case r:return l;case s:return i;case c:return t;case h:return o}return b}),R.exports=v},Qs3X:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("X+im"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},Qs9O:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},QuXc:function(R,D){var n=function(S){this.colorStops=S||[]};n.prototype={constructor:n,addColorStop:function(S,m){this.colorStops.push({offset:S,color:m})}};var y=n;R.exports=y},Qvb6:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("ItGF"),m=n("B9fm"),p=n("gvm7"),f=n("7aKB"),d=n("OELB"),l=n("IwbS"),a=n("Ez2D"),i=n("+TT/"),t=n("Qxkt"),o=n("F9bG"),e=n("aX7z"),u=n("/y7N"),r=n("4NO4"),s=r.getTooltipRenderMode,c=g.bind,h=g.each,v=d.parsePercent,A=new l.Rect({shape:{x:-1,y:-1,width:2,height:2}}),b=y.extendComponentView({type:"tooltip",init:function(O,I){if(S.node)return;var k=O.getComponent("tooltip"),M=k.get("renderMode");this._renderMode=s(M);var U;this._renderMode==="html"?(U=new m(I.getDom(),I,{appendToBody:k.get("appendToBody",!0)}),this._newLine="<br/>"):(U=new p(I),this._newLine=`
`),this._tooltipContent=U},render:function(O,I,k){if(S.node)return;this.group.removeAll(),this._tooltipModel=O,this._ecModel=I,this._api=k,this._lastDataByCoordSys=null,this._alwaysShowContent=O.get("alwaysShowContent");var M=this._tooltipContent;M.update(),M.setEnterable(O.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var O=this._tooltipModel,I=O.get("triggerOn");o.register("itemTooltip",this._api,c(function(k,M,U){I!=="none"&&(I.indexOf(k)>=0?this._tryShow(M,U):k==="leave"&&this._hide(U))},this))},_keepShow:function(){var O=this._tooltipModel,I=this._ecModel,k=this._api;if(this._lastX!=null&&this._lastY!=null&&O.get("triggerOn")!=="none"){var M=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!k.isDisposed()&&M.manuallyShowTip(O,I,k,{x:M._lastX,y:M._lastY})})}},manuallyShowTip:function(O,I,k,M){if(M.from===this.uid||S.node)return;var U=E(M,k);this._ticket="";var P=M.dataByCoordSys;if(M.tooltip&&M.x!=null&&M.y!=null){var X=A;X.position=[M.x,M.y],X.update(),X.tooltip=M.tooltip,this._tryShow({offsetX:M.x,offsetY:M.y,target:X},U)}else if(P)this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,dataByCoordSys:M.dataByCoordSys,tooltipOption:M.tooltipOption},U);else if(M.seriesIndex!=null){if(this._manuallyAxisShowTip(O,I,k,M))return;var F=a(M,I),j=F.point[0],K=F.point[1];j!=null&&K!=null&&this._tryShow({offsetX:j,offsetY:K,position:M.position,target:F.el},U)}else M.x!=null&&M.y!=null&&(k.dispatchAction({type:"updateAxisPointer",x:M.x,y:M.y}),this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,target:k.getZr().findHover(M.x,M.y).target},U))},manuallyHideTip:function(O,I,k,M){var U=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&U.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,M.from!==this.uid&&this._hide(E(M,k))},_manuallyAxisShowTip:function(O,I,k,M){var U=M.seriesIndex,P=M.dataIndex,X=I.getComponent("axisPointer").coordSysAxesInfo;if(U==null||P==null||X==null)return;var F=I.getSeriesByIndex(U);if(!F)return;var j=F.getData(),O=x([j.getItemModel(P),F,(F.coordinateSystem||{}).model,O]);return O.get("trigger")!=="axis"?void 0:(k.dispatchAction({type:"updateAxisPointer",seriesIndex:U,dataIndex:P,position:M.position}),!0)},_tryShow:function(O,I){var k=O.target,M=this._tooltipModel;if(!M)return;this._lastX=O.offsetX,this._lastY=O.offsetY;var U=O.dataByCoordSys;U&&U.length?this._showAxisTooltip(U,O):k&&k.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(O,k,I)):k&&k.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(O,k,I)):(this._lastDataByCoordSys=null,this._hide(I))},_showOrMove:function(O,I){var k=O.get("showDelay");I=g.bind(I,this),clearTimeout(this._showTimout),k>0?this._showTimout=setTimeout(I,k):I()},_showAxisTooltip:function(O,I){var k=this._ecModel,M=this._tooltipModel,U=[I.offsetX,I.offsetY],P=[],X=[],F=x([I.tooltipOption,M]),j=this._renderMode,K=this._newLine,z={};h(O,function(Q){h(Q.dataByAxis,function(G){var te=k.getComponent(G.axisDim+"Axis",G.axisIndex),q=G.value,se=[];if(!te||q==null)return;var re=u.getValueLabel(q,te.axis,k,G.seriesDataIndices,G.valueLabelOpt);g.each(G.seriesDataIndices,function(Oe){var Me=k.getSeriesByIndex(Oe.seriesIndex),Qe=Oe.dataIndexInside,Ve=Me&&Me.getDataParams(Qe);if(Ve.axisDim=G.axisDim,Ve.axisIndex=G.axisIndex,Ve.axisType=G.axisType,Ve.axisId=G.axisId,Ve.axisValue=e.getAxisRawValue(te.axis,q),Ve.axisValueLabel=re,Ve){X.push(Ve);var dt=Me.formatTooltip(Qe,!0,null,j),Fe;if(g.isObject(dt)){Fe=dt.html;var ue=dt.markers;g.merge(z,ue)}else Fe=dt;se.push(Fe)}});var we=re;j!=="html"?P.push(se.join(K)):P.push((we?f.encodeHTML(we)+K:"")+se.join(K))})},this),P.reverse(),P=P.join(this._newLine+this._newLine);var V=I.position;this._showOrMove(F,function(){this._updateContentNotChangedOnAxis(O)?this._updatePosition(F,V,U[0],U[1],this._tooltipContent,X):this._showTooltipContent(F,P,X,Math.random(),U[0],U[1],V,void 0,z)})},_showSeriesItemTooltip:function(O,I,k){var M=this._ecModel,U=I.seriesIndex,P=M.getSeriesByIndex(U),X=I.dataModel||P,F=I.dataIndex,j=I.dataType,K=X.getData(j),z=x([K.getItemModel(F),X,P&&(P.coordinateSystem||{}).model,this._tooltipModel]),V=z.get("trigger");if(V!=null&&V!=="item")return;var Q=X.getDataParams(F,j),G=X.formatTooltip(F,!1,j,this._renderMode),te,q;g.isObject(G)?(te=G.html,q=G.markers):(te=G,q=null);var se="item_"+X.name+"_"+F;this._showOrMove(z,function(){this._showTooltipContent(z,te,Q,se,O.offsetX,O.offsetY,O.position,O.target,q)}),k({type:"showTip",dataIndexInside:F,dataIndex:K.getRawIndex(F),seriesIndex:U,from:this.uid})},_showComponentItemTooltip:function(O,I,k){var M=I.tooltip;if(typeof M=="string"){var U=M;M={content:U,formatter:U}}var P=new t(M,this._tooltipModel,this._ecModel),X=P.get("content"),F=Math.random();this._showOrMove(P,function(){this._showTooltipContent(P,X,P.get("formatterParams")||{},F,O.offsetX,O.offsetY,O.position,I)}),k({type:"showTip",from:this.uid})},_showTooltipContent:function(O,I,k,M,U,P,X,F,j){if(this._ticket="",!O.get("showContent")||!O.get("show"))return;var K=this._tooltipContent,z=O.get("formatter");X=X||O.get("position");var V=I;if(z&&typeof z=="string")V=f.formatTpl(z,k,!0);else if(typeof z=="function"){var Q=c(function(G,te){G===this._ticket&&(K.setContent(te,j,O),this._updatePosition(O,X,U,P,K,k,F))},this);this._ticket=M,V=z(k,M,Q)}K.setContent(V,j,O),K.show(O),this._updatePosition(O,X,U,P,K,k,F)},_updatePosition:function(O,I,k,M,U,P,X){var F=this._api.getWidth(),j=this._api.getHeight();I=I||O.get("position");var K=U.getSize(),z=O.get("align"),V=O.get("verticalAlign"),Q=X&&X.getBoundingRect().clone();if(X&&Q.applyTransform(X.transform),typeof I=="function"&&(I=I([k,M],P,U.el,Q,{viewSize:[F,j],contentSize:K.slice()})),g.isArray(I))k=v(I[0],F),M=v(I[1],j);else if(g.isObject(I)){I.width=K[0],I.height=K[1];var G=i.getLayoutRect(I,{width:F,height:j});k=G.x,M=G.y,z=null,V=null}else if(typeof I=="string"&&X){var te=C(I,Q,K);k=te[0],M=te[1]}else{var te=T(k,M,U,F,j,z?null:20,V?null:20);k=te[0],M=te[1]}if(z&&(k-=w(z)?K[0]/2:z==="right"?K[0]:0),V&&(M-=w(V)?K[1]/2:V==="bottom"?K[1]:0),O.get("confine")){var te=_(k,M,U,F,j);k=te[0],M=te[1]}U.moveTo(k,M)},_updateContentNotChangedOnAxis:function(O){var I=this._lastDataByCoordSys,k=!!I&&I.length===O.length;return k&&h(I,function(M,U){var P=M.dataByAxis||{},X=O[U]||{},F=X.dataByAxis||[];k&=P.length===F.length,k&&h(P,function(j,K){var z=F[K]||{},V=j.seriesDataIndices||[],Q=z.seriesDataIndices||[];k&=j.value===z.value&&j.axisType===z.axisType&&j.axisId===z.axisId&&V.length===Q.length,k&&h(V,function(G,te){var q=Q[te];k&=G.seriesIndex===q.seriesIndex&&G.dataIndex===q.dataIndex})})}),this._lastDataByCoordSys=O,!!k},_hide:function(O){this._lastDataByCoordSys=null,O({type:"hideTip",from:this.uid})},dispose:function(O,I){if(S.node)return;this._tooltipContent.dispose(),o.unregister("itemTooltip",I)}});function x(O){for(var I=O.pop();O.length;){var k=O.pop();k&&(t.isInstance(k)&&(k=k.get("tooltip",!0)),typeof k=="string"&&(k={formatter:k}),I=new t(k,I,I.ecModel))}return I}function E(O,I){return O.dispatchAction||g.bind(I.dispatchAction,I)}function T(O,I,k,M,U,P,X){var F=k.getOuterSize(),j=F.width,K=F.height;return P!=null&&(O+j+P>M?O-=j+P:O+=P),X!=null&&(I+K+X>U?I-=K+X:I+=X),[O,I]}function _(O,I,k,M,U){var P=k.getOuterSize(),X=P.width,F=P.height;return O=Math.min(O+X,M)-X,I=Math.min(I+F,U)-F,O=Math.max(O,0),I=Math.max(I,0),[O,I]}function C(O,I,k){var M=k[0],U=k[1],P=5,X=0,F=0,j=I.width,K=I.height;switch(O){case"inside":X=I.x+j/2-M/2,F=I.y+K/2-U/2;break;case"top":X=I.x+j/2-M/2,F=I.y-U-P;break;case"bottom":X=I.x+j/2-M/2,F=I.y+K+P;break;case"left":X=I.x-M-P,F=I.y+K/2-U/2;break;case"right":X=I.x+j+P,F=I.y+K/2-U/2}return[X,F]}function w(O){return O==="center"||O==="middle"}R.exports=b},Qxkt:function(R,D,n){var y=n("bYtY"),g=n("ItGF"),S=n("4NO4"),m=S.makeInner,p=n("Yl7c"),f=p.enableClassExtend,d=p.enableClassCheck,l=n("OQFs"),a=n("m9t5"),i=n("/iHx"),t=n("VR9l"),o=y.mixin,e=m();function u(h,v,A){this.parentModel=v,this.ecModel=A,this.option=h}u.prototype={constructor:u,init:null,mergeOption:function(h){y.merge(this.option,h,!0)},get:function(h,v){return h==null?this.option:r(this.option,this.parsePath(h),!v&&s(this,h))},getShallow:function(h,v){var A=this.option,b=A==null?A:A[h],x=!v&&s(this,h);return b==null&&x&&(b=x.getShallow(h)),b},getModel:function(h,v){var A=h==null?this.option:r(this.option,h=this.parsePath(h)),b;return v=v||(b=s(this,h))&&b.getModel(h),new u(A,v,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var h=this.constructor;return new h(y.clone(this.option))},setReadOnly:function(h){},parsePath:function(h){return typeof h=="string"&&(h=h.split(".")),h},customizeGetParent:function(h){e(this).getParent=h},isAnimationEnabled:function(){if(!g.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function r(h,v,A){for(var b=0;b<v.length;b++){if(!v[b])continue;if(h=h&&typeof h=="object"?h[v[b]]:null,h==null)break}return h==null&&A&&(h=A.get(v)),h}function s(h,v){var A=e(h).getParent;return A?A.call(h,v):h.parentModel}f(u),d(u),o(u,l),o(u,a),o(u,i),o(u,t);var c=u;R.exports=c},QyFq:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},QzjZ:function(R,D,n){var y=n("S/Yl"),g=n("IDmD");function S(m,p){var f=[];return m.eachComponent("singleAxis",function(d,l){var a=new y(d,m,p);a.name="single_"+l,a.resize(d,p),d.coordinateSystem=a,f.push(a)}),m.eachSeries(function(d){if(d.get("coordinateSystem")==="singleAxis"){var l=m.queryComponents({mainType:"singleAxis",index:d.get("singleAxisIndex"),id:d.get("singleAxisId")})[0];d.coordinateSystem=l&&l.coordinateSystem}}),f}g.register("single",{create:S,dimensions:y.prototype.dimensions})},R4Th:function(R,D,n){var y=n("ProS"),g=n("9wZj"),S=n("yO87"),m=n("Fofx"),p=n("h8O9"),f=y.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new g(S)},render:function(d,l,a){var i=d.getData(),t=this._symbolDraw;t.updateData(i),this.group.add(t.group)},updateTransform:function(d,l,a){var i=d.getData();this.group.dirty();var t=p().reset(d);t.progress&&t.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(d){var l=d.coordinateSystem;l&&l.getRoamTransform&&(this.group.transform=m.clone(l.getRoamTransform()),this.group.decomposeTransform())},remove:function(d,l){this._symbolDraw&&this._symbolDraw.remove(l)},dispose:function(){}});R.exports=f},R9oj:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("pwpV"),m=n.n(S)},RBEP:function(R,D,n){for(var y=n("ProS"),g=n("VaxA"),S=function(){},m=["treemapZoomToNode","treemapRender","treemapMove"],p=0;p<m.length;p++)y.registerAction({type:m[p],update:"updateView"},S);y.registerAction({type:"treemapRootToNode",update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"treemap",query:f},l);function l(a,i){var t=["treemapZoomToNode","treemapRootToNode"],o=g.retrieveTargetInfo(f,t,a);if(o){var e=a.getViewRoot();e&&(f.direction=g.aboveViewRoot(e,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}})},RCxd:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="ExclamationCircleOutlined";var d=D.a=g.forwardRef(f)},RDYZ:function(R,D,n){var y=n("dMvE");function g(m){this._target=m.target,this._life=m.life||1e3,this._delay=m.delay||0,this._initialized=!1,this.loop=m.loop==null?!1:m.loop,this.gap=m.gap||0,this.easing=m.easing||"Linear",this.onframe=m.onframe,this.ondestroy=m.ondestroy,this.onrestart=m.onrestart,this._pausedTime=0,this._paused=!1}g.prototype={constructor:g,step:function(p,f){if(this._initialized||(this._startTime=p+this._delay,this._initialized=!0),this._paused){this._pausedTime+=f;return}var d=(p-this._startTime-this._pausedTime)/this._life;if(d<0)return;d=Math.min(d,1);var l=this.easing,a=typeof l=="string"?y[l]:l,i=typeof a=="function"?a(d):d;return this.fire("frame",i),d===1?this.loop?(this.restart(p),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(p){var f=(p-this._startTime-this._pausedTime)%this._life;this._startTime=p-f+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(p,f){p="on"+p,this[p]&&this[p](this._target,f)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var S=g;R.exports=S},RELg:function(R,D,n){var y=n("MFOe"),g=y.Global;R.exports={name:"oldIE-userDataStorage",write:d,read:l,each:a,remove:i,clearAll:t};var S="storejs",m=g.document,p=u(),f=(g.navigator?g.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function d(r,s){if(f)return;var c=e(r);p(function(h){h.setAttribute(c,s),h.save(S)})}function l(r){if(f)return;var s=e(r),c=null;return p(function(h){c=h.getAttribute(s)}),c}function a(r){p(function(s){for(var c=s.XMLDocument.documentElement.attributes,h=c.length-1;h>=0;h--){var v=c[h];r(s.getAttribute(v.name),v.name)}})}function i(r){var s=e(r);p(function(c){c.removeAttribute(s),c.save(S)})}function t(){p(function(r){var s=r.XMLDocument.documentElement.attributes;r.load(S);for(var c=s.length-1;c>=0;c--)r.removeAttribute(s[c].name);r.save(S)})}var o=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(r){return r.replace(/^\d/,"___$&").replace(o,"___")}function u(){if(!m||!m.documentElement||!m.documentElement.addBehavior)return null;var r="script",s,c,h;try{c=new ActiveXObject("htmlfile"),c.open(),c.write("<"+r+">document.w=window</"+r+'><iframe src="/favicon.ico"></iframe>'),c.close(),s=c.w.frames[0].document,h=s.createElement("div")}catch(v){h=m.createElement("div"),s=m.body}return function(v){var A=[].slice.call(arguments,0);A.unshift(h),s.appendChild(h),h.addBehavior("#default#userData"),h.load(S),v.apply(this,A),s.removeChild(h);return}}},RPvy:function(R,D,n){var y=n("ProS"),g=n("VaxA"),S="sunburstRootToNode";y.registerAction({type:S,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},l);function l(a,i){var t=g.retrieveTargetInfo(f,[S],a);if(t){var o=a.getViewRoot();o&&(f.direction=g.aboveViewRoot(o,t.node)?"rollUp":"drillDown"),a.resetViewRoot(t.node)}}});var m="sunburstHighlight";y.registerAction({type:m,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},l);function l(a,i){var t=g.retrieveTargetInfo(f,[m],a);t&&(f.highlight=t.node)}});var p="sunburstUnhighlight";y.registerAction({type:p,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},l);function l(a,i){f.unhighlight=!0}})},RSch:function(R,D,n){var y=n("IwbS"),g=n("bYtY");function S(f,d,l){y.Group.call(this),this._createPolyline(f,d,l)}var m=S.prototype;m._createPolyline=function(f,d,l){var a=f.getItemLayout(d),i=new y.Polyline({shape:{points:a}});this.add(i),this._updateCommonStl(f,d,l)},m.updateData=function(f,d,l){var a=f.hostModel,i=this.childAt(0),t={shape:{points:f.getItemLayout(d)}};y.updateProps(i,t,a,d),this._updateCommonStl(f,d,l)},m._updateCommonStl=function(f,d,l){var a=this.childAt(0),i=f.getItemModel(d),t=f.getItemVisual(d,"color"),o=l&&l.lineStyle,e=l&&l.hoverLineStyle;(!l||f.hasItemOption)&&(o=i.getModel("lineStyle").getLineStyle(),e=i.getModel("emphasis.lineStyle").getLineStyle()),a.useStyle(g.defaults({strokeNoScale:!0,fill:"none",stroke:t},o)),a.hoverStyle=e,y.setHoverStyle(this)},m.updateLayout=function(f,d){var l=this.childAt(0);l.setShape("points",f.getItemLayout(d))},g.inherits(S,y.Group);var p=S;R.exports=p},RXMa:function(R,D,n){var y=n("y+Vt"),g=y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(m,p){var f=p.cx,d=p.cy,l=Math.PI*2;m.moveTo(f+p.r,d),m.arc(f,d,p.r,0,l,!1),m.moveTo(f+p.r0,d),m.arc(f,d,p.r0,0,l,!0)}});R.exports=g},RZPm:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("JgUQ")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="FileOutlined";var i=m.forwardRef(a);D.default=i},RlCK:function(R,D,n){var y=n("ProS"),g=n("bYtY");function S(m,p,f){var d={},l=m==="toggleSelected",a;return f.eachComponent("legend",function(i){l&&a!=null?i[a?"select":"unSelect"](p.name):m==="allSelect"||m==="inverseSelect"?i[m]():(i[m](p.name),a=i.isSelected(p.name));var t=i.getData();g.each(t,function(o){var e=o.get("name");if(e===`
`||e==="")return;var u=i.isSelected(e);d.hasOwnProperty(e)?d[e]=d[e]&&u:d[e]=u})}),m==="allSelect"||m==="inverseSelect"?{selected:d}:{name:p.name,selected:d}}y.registerAction("legendToggleSelect","legendselectchanged",g.curry(S,"toggleSelected")),y.registerAction("legendAllSelect","legendselectall",g.curry(S,"allSelect")),y.registerAction("legendInverseSelect","legendinverseselect",g.curry(S,"inverseSelect")),y.registerAction("legendSelect","legendselected",g.curry(S,"select")),y.registerAction("legendUnSelect","legendunselected",g.curry(S,"unSelect"))},RotF:function(R,D,n){R.exports=n("LSTS")},Rx6q:function(R,D){function n(y){var g=y.getRect(),S=y.getRangeInfo();return{coordSys:{type:"calendar",x:g.x,y:g.y,width:g.width,height:g.height,cellWidth:y.getCellWidth(),cellHeight:y.getCellHeight(),rangeInfo:{start:S.start,end:S.end,weeks:S.weeks,dayCount:S.allDay}},api:{coord:function(m,p){return y.dataToPoint(m,p)}}}}R.exports=n},"S/Yl":function(R,D,n){var y=n("Zvw2"),g=n("aX7z"),S=n("+TT/"),m=S.getLayoutRect,p=n("bYtY"),f=p.each;function d(a,i,t){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(a,i,t),this.model=a}d.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:d,_init:function(a,i,t){var o=this.dimension,e=new y(o,g.createScaleByModel(a),[0,0],a.get("type"),a.get("position")),u=e.type==="category";e.onBand=u&&a.get("boundaryGap"),e.inverse=a.get("inverse"),e.orient=a.get("orient"),a.axis=e,e.model=a,e.coordinateSystem=this,this._axis=e},update:function(a,i){a.eachSeries(function(t){if(t.coordinateSystem===this){var o=t.getData();f(o.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(o,e)},this),g.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(a,i){this._rect=m({left:a.get("left"),top:a.get("top"),right:a.get("right"),bottom:a.get("bottom"),width:a.get("width"),height:a.get("height")},{width:i.getWidth(),height:i.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var a=this._rect,i=this._axis,t=i.isHorizontal(),o=t?[0,a.width]:[0,a.height],e=i.reverse?1:0;i.setExtent(o[e],o[1-e]),this._updateAxisTransform(i,t?a.x:a.y)},_updateAxisTransform:function(a,i){var t=a.getExtent(),o=t[0]+t[1],e=a.isHorizontal();a.toGlobalCoord=e?function(u){return u+i}:function(u){return o-u+i},a.toLocalCoord=e?function(u){return u-i}:function(u){return o-u+i}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(a){var i=this.getRect(),t=this.getAxis(),o=t.orient;return o==="horizontal"?t.contain(t.toLocalCoord(a[0]))&&a[1]>=i.y&&a[1]<=i.y+i.height:t.contain(t.toLocalCoord(a[1]))&&a[0]>=i.y&&a[0]<=i.y+i.height},pointToData:function(a){var i=this.getAxis();return[i.coordToData(i.toLocalCoord(a[i.orient==="horizontal"?0:1]))]},dataToPoint:function(a){var i=this.getAxis(),t=this.getRect(),o=[],e=i.orient==="horizontal"?0:1;return a instanceof Array&&(a=a[0]),o[e]=i.toGlobalCoord(i.dataToCoord(+a)),o[1-e]=e===0?t.y+t.height/2:t.x+t.width/2,o}};var l=d;R.exports=l},S6kV:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.OFB=function(){var g=y.lib.BlockCipherMode.extend(),S=g.Encryptor=g.extend({processBlock:function(p,f){var d=this._cipher,l=d.blockSize,a=this._iv,i=this._keystream;a&&(i=this._keystream=a.slice(0),this._iv=void 0),d.encryptBlock(i,0);for(var t=0;t<l;t++)p[f+t]^=i[t]}});return g.Decryptor=S,g}(),y.mode.OFB})},"SA+Z":function(R,D,n){var y=n("wTVA"),g=n("EbDI"),S=n("ZhPi"),m=n("wkBT");function p(f){return y(f)||g(f)||S(f)||m()}R.exports=p,R.exports.__esModule=!0,R.exports.default=R.exports},"SA4+":function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("ProS"),m=n("IwbS"),p=n("zYTA"),f=n("bYtY");function d(t,o,e){var u=t[1]-t[0];o=f.map(o,function(c){return{interval:[(c.interval[0]-t[0])/u,(c.interval[1]-t[0])/u]}});var r=o.length,s=0;return function(c){for(var h=s;h<r;h++){var v=o[h].interval;if(v[0]<=c&&c<=v[1]){s=h;break}}if(h===r)for(var h=s-1;h>=0;h--){var v=o[h].interval;if(v[0]<=c&&c<=v[1]){s=h;break}}return h>=0&&h<r&&e[h]}}function l(t,o){var e=t[1]-t[0];return o=[(o[0]-t[0])/e,(o[1]-t[0])/e],function(u){return u>=o[0]&&u<=o[1]}}function a(t){var o=t.dimensions;return o[0]==="lng"&&o[1]==="lat"}var i=S.extendChartView({type:"heatmap",render:function(t,o,e){var u;o.eachComponent("visualMap",function(s){s.eachTargetSeries(function(c){c===t&&(u=s)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;r.type==="cartesian2d"||r.type==="calendar"?this._renderOnCartesianAndCalendar(t,e,0,t.getData().count()):a(r)&&this._renderOnGeo(r,t,u,e)},incrementalPrepareRender:function(t,o,e){this.group.removeAll()},incrementalRender:function(t,o,e,u){var r=o.coordinateSystem;r&&this._renderOnCartesianAndCalendar(o,u,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,o,e,u,r){var s=t.coordinateSystem,c,h;if(s.type==="cartesian2d"){var v=s.getAxis("x"),A=s.getAxis("y");c=v.getBandWidth(),h=A.getBandWidth()}for(var b=this.group,x=t.getData(),E="itemStyle",T="emphasis.itemStyle",_="label",C="emphasis.label",w=t.getModel(E).getItemStyle(["color"]),O=t.getModel(T).getItemStyle(),I=t.getModel(_),k=t.getModel(C),M=s.type,U=M==="cartesian2d"?[x.mapDimension("x"),x.mapDimension("y"),x.mapDimension("value")]:[x.mapDimension("time"),x.mapDimension("value")],P=e;P<u;P++){var X;if(M==="cartesian2d"){if(isNaN(x.get(U[2],P)))continue;var F=s.dataToPoint([x.get(U[0],P),x.get(U[1],P)]);X=new m.Rect({shape:{x:Math.floor(Math.round(F[0])-c/2),y:Math.floor(Math.round(F[1])-h/2),width:Math.ceil(c),height:Math.ceil(h)},style:{fill:x.getItemVisual(P,"color"),opacity:x.getItemVisual(P,"opacity")}})}else{if(isNaN(x.get(U[1],P)))continue;X=new m.Rect({z2:1,shape:s.dataToRect([x.get(U[0],P)]).contentShape,style:{fill:x.getItemVisual(P,"color"),opacity:x.getItemVisual(P,"opacity")}})}var j=x.getItemModel(P);x.hasItemOption&&(w=j.getModel(E).getItemStyle(["color"]),O=j.getModel(T).getItemStyle(),I=j.getModel(_),k=j.getModel(C));var K=t.getRawValue(P),z="-";K&&K[2]!=null&&(z=K[2]),m.setLabelStyle(w,O,I,k,{labelFetcher:t,labelDataIndex:P,defaultText:z,isRectText:!0}),X.setStyle(w),m.setHoverStyle(X,x.hasItemOption?O:f.extend({},O)),X.incremental=r,r&&(X.useHoverLayer=!0),b.add(X),x.setItemGraphicEl(P,X)}},_renderOnGeo:function(t,o,e,u){var r=e.targetVisuals.inRange,s=e.targetVisuals.outOfRange,c=o.getData(),h=this._hmLayer||this._hmLayer||new p;h.blurSize=o.get("blurSize"),h.pointSize=o.get("pointSize"),h.minOpacity=o.get("minOpacity"),h.maxOpacity=o.get("maxOpacity");var v=t.getViewRect().clone(),A=t.getRoamTransform();v.applyTransform(A);var b=Math.max(v.x,0),x=Math.max(v.y,0),E=Math.min(v.width+v.x,u.getWidth()),T=Math.min(v.height+v.y,u.getHeight()),_=E-b,C=T-x,w=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],O=c.mapArray(w,function(U,P,X){var F=t.dataToPoint([U,P]);return F[0]-=b,F[1]-=x,F.push(X),F}),I=e.getExtent(),k=e.type==="visualMap.continuous"?l(I,e.option.range):d(I,e.getPieceList(),e.option.selected);h.update(O,_,C,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:s.color.getColorMapper()},k);var M=new m.Image({style:{width:_,height:C,x:b,y:x,image:h.canvas},silent:!0});this.group.add(M)},dispose:function(){}});R.exports=i},SA8n:function(R,D,n){var y=n("Sj9i"),g=n("QBsz"),S=n("U/Mo"),m=S.getSymbolSize,p=[],f=[],d=[],l=y.quadraticAt,a=g.distSquare,i=Math.abs;function t(e,u,r){for(var s=e[0],c=e[1],h=e[2],v=Infinity,A,b=r*r,x=.1,E=.1;E<=.9;E+=.1){p[0]=l(s[0],c[0],h[0],E),p[1]=l(s[1],c[1],h[1],E);var T=i(a(p,u)-b);T<v&&(v=T,A=E)}for(var _=0;_<32;_++){var C=A+x;f[0]=l(s[0],c[0],h[0],A),f[1]=l(s[1],c[1],h[1],A),d[0]=l(s[0],c[0],h[0],C),d[1]=l(s[1],c[1],h[1],C);var T=a(f,u)-b;if(i(T)<.01)break;var w=a(d,u)-b;x/=2,T<0?w>=0?A=A+x:A=A-x:w>=0?A=A-x:A=A+x}return A}function o(e,u){var r=[],s=y.quadraticSubdivide,c=[[],[],[]],h=[[],[]],v=[];u/=2,e.eachEdge(function(A,b){var x=A.getLayout(),E=A.getVisual("fromSymbol"),T=A.getVisual("toSymbol");x.__original||(x.__original=[g.clone(x[0]),g.clone(x[1])],x[2]&&x.__original.push(g.clone(x[2])));var _=x.__original;if(x[2]!=null){if(g.copy(c[0],_[0]),g.copy(c[1],_[2]),g.copy(c[2],_[1]),E&&E!=="none"){var C=m(A.node1),w=t(c,_[0],C*u);s(c[0][0],c[1][0],c[2][0],w,r),c[0][0]=r[3],c[1][0]=r[4],s(c[0][1],c[1][1],c[2][1],w,r),c[0][1]=r[3],c[1][1]=r[4]}if(T&&T!=="none"){var C=m(A.node2),w=t(c,_[1],C*u);s(c[0][0],c[1][0],c[2][0],w,r),c[1][0]=r[1],c[2][0]=r[2],s(c[0][1],c[1][1],c[2][1],w,r),c[1][1]=r[1],c[2][1]=r[2]}g.copy(x[0],c[0]),g.copy(x[1],c[2]),g.copy(x[2],c[1])}else{if(g.copy(h[0],_[0]),g.copy(h[1],_[1]),g.sub(v,h[1],h[0]),g.normalize(v,v),E&&E!=="none"){var C=m(A.node1);g.scaleAndAdd(h[0],h[0],v,C*u)}if(T&&T!=="none"){var C=m(A.node2);g.scaleAndAdd(h[1],h[1],v,-C*u)}g.copy(x[0],h[0]),g.copy(x[1],h[1])}})}R.exports=o},SJMd:function(R,D){/**
* @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 n,y,g,S=!1,m,p;window.PR_SHOULD_USE_CONTINUATION=!0;var f,d;(function(){var l=window,a=["break,continue,do,else,for,if,return,while"],i=[a,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],t=[i,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],o=[t,"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=[t,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],u=[t,"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"],r="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",s=[t,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],c="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",h=[a,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],v=[a,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],A=[a,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[o,u,e,s,c,h,v,A],x=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,E="str",T="kwd",_="com",C="typ",w="lit",O="pun",I="pln",k="tag",M="dec",U="src",P="atn",X="atv",F="nocode",j="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function K(he){for(var J=0,Y=!1,$=!1,de=0,be=he.length;de<be;++de){var Te=he[de];if(Te.ignoreCase)$=!0;else if(/[a-z]/i.test(Te.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Y=!0,$=!1;break}}var Be={b:8,t:9,n:10,v:11,f:12,r:13};function fe(pt){var He=pt.charCodeAt(0);if(He!==92)return He;var nr=pt.charAt(1);return He=Be[nr],He||("0"<=nr&&nr<="7"?parseInt(pt.substring(1),8):nr==="u"||nr==="x"?parseInt(pt.substring(2),16):pt.charCodeAt(1))}function xe(pt){if(pt<32)return(pt<16?"\\x0":"\\x")+pt.toString(16);var He=String.fromCharCode(pt);return He==="\\"||He==="-"||He==="]"||He==="^"?"\\"+He:He}function ke(pt){var He=pt.substring(1,pt.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")),nr=[],ht=He[0]==="^",Gt=["["];ht&&Gt.push("^");for(var pr=ht?1:0,Qt=He.length;pr<Qt;++pr){var Ht=He[pr];if(/\\[bdsw]/i.test(Ht))Gt.push(Ht);else{var Jt=fe(Ht),Ge;pr+2<Qt&&He[pr+1]==="-"?(Ge=fe(He[pr+2]),pr+=2):Ge=Jt,nr.push([Jt,Ge]),Ge<65||Jt>122||(Ge<65||Jt>90||nr.push([Math.max(65,Jt)|32,Math.min(Ge,90)|32]),Ge<97||Jt>122||nr.push([Math.max(97,Jt)&~32,Math.min(Ge,122)&~32]))}}nr.sort(function(qe,me){return qe[0]-me[0]||me[1]-qe[1]});for(var pe=[],oe=[],pr=0;pr<nr.length;++pr){var ct=nr[pr];ct[0]<=oe[1]+1?oe[1]=Math.max(oe[1],ct[1]):pe.push(oe=ct)}for(var pr=0;pr<pe.length;++pr){var ct=pe[pr];Gt.push(xe(ct[0])),ct[1]>ct[0]&&(ct[1]+1>ct[0]&&Gt.push("-"),Gt.push(xe(ct[1])))}return Gt.push("]"),Gt.join("")}function nt(pt){for(var He=pt.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")),nr=He.length,ht=[],Gt=0,pr=0;Gt<nr;++Gt){var Qt=He[Gt];if(Qt==="(")++pr;else if(Qt.charAt(0)==="\\"){var Ht=+Qt.substring(1);Ht&&(Ht<=pr?ht[Ht]=-1:He[Gt]=xe(Ht))}}for(var Gt=1;Gt<ht.length;++Gt)ht[Gt]===-1&&(ht[Gt]=++J);for(var Gt=0,pr=0;Gt<nr;++Gt){var Qt=He[Gt];if(Qt==="(")++pr,ht[pr]||(He[Gt]="(?:");else if(Qt.charAt(0)==="\\"){var Ht=+Qt.substring(1);Ht&&Ht<=pr&&(He[Gt]="\\"+ht[Ht])}}for(var Gt=0;Gt<nr;++Gt)He[Gt]==="^"&&He[Gt+1]!=="^"&&(He[Gt]="");if(pt.ignoreCase&&Y)for(var Gt=0;Gt<nr;++Gt){var Qt=He[Gt],Jt=Qt.charAt(0);Qt.length>=2&&Jt==="["?He[Gt]=ke(Qt):Jt!=="\\"&&(He[Gt]=Qt.replace(/[a-zA-Z]/g,function(oe){var ct=oe.charCodeAt(0);return"["+String.fromCharCode(ct&~32,ct|32)+"]"}))}return He.join("")}for(var Ct=[],de=0,be=he.length;de<be;++de){var Te=he[de];if(Te.global||Te.multiline)throw new Error(""+Te);Ct.push("(?:"+nt(Te)+")")}return new RegExp(Ct.join("|"),$?"gi":"g")}function z(he,J){var Y=/(?:^|\s)nocode(?:\s|$)/,$=[],de=0,be=[],Te=0;function Be(fe){var xe=fe.nodeType;if(xe==1){if(Y.test(fe.className))return;for(var ke=fe.firstChild;ke;ke=ke.nextSibling)Be(ke);var nt=fe.nodeName.toLowerCase();(nt==="br"||nt==="li")&&($[Te]=`
`,be[Te<<1]=de++,be[Te++<<1|1]=fe)}else if(xe==3||xe==4){var Ct=fe.nodeValue;Ct.length&&(J?Ct=Ct.replace(/\r\n?/g,`
`):Ct=Ct.replace(/[ \t\r\n]+/g," "),$[Te]=Ct,be[Te<<1]=de,de+=Ct.length,be[Te++<<1|1]=fe)}}return Be(he),{sourceCode:$.join("").replace(/\n$/,""),spans:be}}function V(he,J,Y,$,de){if(!Y)return;var be={sourceNode:he,pre:1,langExtension:null,numberLines:null,sourceCode:Y,spans:null,basePos:J,decorations:null};$(be),de.push.apply(de,be.decorations)}var Q=/\S/;function G(he){for(var J=void 0,Y=he.firstChild;Y;Y=Y.nextSibling){var $=Y.nodeType;J=$===1?J?he:Y:$===3&&Q.test(Y.nodeValue)?he:J}return J===he?void 0:J}function te(he,J){var Y={},$;(function(){for(var Te=he.concat(J),Be=[],fe={},xe=0,ke=Te.length;xe<ke;++xe){var nt=Te[xe],Ct=nt[3];if(Ct)for(var pt=Ct.length;--pt>=0;)Y[Ct.charAt(pt)]=nt;var He=nt[1],nr=""+He;fe.hasOwnProperty(nr)||(Be.push(He),fe[nr]=null)}Be.push(/[\0-\uffff]/),$=K(Be)})();var de=J.length,be=function Te(Be){for(var fe=Be.sourceCode,xe=Be.basePos,ke=Be.sourceNode,nt=[xe,I],Ct=0,pt=fe.match($)||[],He={},nr=0,ht=pt.length;nr<ht;++nr){var Gt=pt[nr],pr=He[Gt],Qt=void 0,Ht;if(typeof pr=="string")Ht=!1;else{var Jt=Y[Gt.charAt(0)];if(Jt)Qt=Gt.match(Jt[1]),pr=Jt[0];else{for(var Ge=0;Ge<de;++Ge)if(Jt=J[Ge],Qt=Gt.match(Jt[1]),Qt){pr=Jt[0];break}Qt||(pr=I)}Ht=pr.length>=5&&pr.substring(0,5)==="lang-",Ht&&!(Qt&&typeof Qt[1]=="string")&&(Ht=!1,pr=U),Ht||(He[Gt]=pr)}var pe=Ct;if(Ct+=Gt.length,!Ht)nt.push(xe+pe,pr);else{var oe=Qt[1],ct=Gt.indexOf(oe),qe=ct+oe.length;Qt[2]&&(qe=Gt.length-Qt[2].length,ct=qe-oe.length);var me=pr.substring(5);V(ke,xe+pe,Gt.substring(0,ct),Te,nt),V(ke,xe+pe+ct,oe,Qe(me,oe),nt),V(ke,xe+pe+qe,Gt.substring(qe),Te,nt)}}Be.decorations=nt};return be}function q(he){var J=[],Y=[];he.tripleQuotedStrings?J.push([E,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):he.multiLineStrings?J.push([E,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):J.push([E,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),he.verbatimStrings&&Y.push([E,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var $=he.hashComments;$&&(he.cStyleComments?($>1?J.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):J.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Y.push([E,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):J.push([_,/^#[^\r\n]*/,null,"#"])),he.cStyleComments&&(Y.push([_,/^\/\/[^\r\n]*/,null]),Y.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var de=he.regexLiterals;if(de){var be=de>1?"":`
\r`,Te=be?".":"[\\S\\s]",Be="/(?=[^/*"+be+"])(?:[^/\\x5B\\x5C"+be+"]|\\x5C"+Te+"|\\x5B(?:[^\\x5C\\x5D"+be+"]|\\x5C"+Te+")*(?:\\x5D|$))+/";Y.push(["lang-regex",RegExp("^"+j+"("+Be+")")])}var fe=he.types;fe&&Y.push([C,fe]);var xe=(""+he.keywords).replace(/^ | $/g,"");xe.length&&Y.push([T,new RegExp("^(?:"+xe.replace(/[\s,]+/g,"|")+")\\b"),null]),J.push([I,/^\s+/,null,` \r
\xA0`]);var ke="^.[^\\s\\w.$@'\"`/\\\\]*";return he.regexLiterals&&(ke+="(?!s*/)"),Y.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[I,/^[a-z_$][a-z_$@0-9]*/i,null],[w,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(ke),null]),te(J,Y)}var se=q({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function re(he,J,Y){for(var $=/(?:^|\s)nocode(?:\s|$)/,de=/\r\n?|\n/,be=he.ownerDocument,Te=be.createElement("li");he.firstChild;)Te.appendChild(he.firstChild);var Be=[Te];function fe(He){var nr=He.nodeType;if(nr==1&&!$.test(He.className))if(He.nodeName==="br")xe(He),He.parentNode&&He.parentNode.removeChild(He);else for(var ht=He.firstChild;ht;ht=ht.nextSibling)fe(ht);else if((nr==3||nr==4)&&Y){var Gt=He.nodeValue,pr=Gt.match(de);if(pr){var Qt=Gt.substring(0,pr.index);He.nodeValue=Qt;var Ht=Gt.substring(pr.index+pr[0].length);if(Ht){var Jt=He.parentNode;Jt.insertBefore(be.createTextNode(Ht),He.nextSibling)}xe(He),Qt||He.parentNode.removeChild(He)}}}function xe(He){for(;!He.nextSibling;)if(He=He.parentNode,!He)return;function nr(pr,Qt){var Ht=Qt?pr.cloneNode(!1):pr,Jt=pr.parentNode;if(Jt){var Ge=nr(Jt,1),pe=pr.nextSibling;Ge.appendChild(Ht);for(var oe=pe;oe;oe=pe)pe=oe.nextSibling,Ge.appendChild(oe)}return Ht}for(var ht=nr(He.nextSibling,0),Gt;(Gt=ht.parentNode)&&Gt.nodeType===1;)ht=Gt;Be.push(ht)}for(var ke=0;ke<Be.length;++ke)fe(Be[ke]);J===(J|0)&&Be[0].setAttribute("value",J);var nt=be.createElement("ol");nt.className="linenums";for(var Ct=Math.max(0,J-1|0)||0,ke=0,pt=Be.length;ke<pt;++ke)Te=Be[ke],Te.className="L"+(ke+Ct)%10,Te.firstChild||Te.appendChild(be.createTextNode("\xA0")),nt.appendChild(Te);he.appendChild(nt)}function we(he){var J=/\bMSIE\s(\d+)/.exec(navigator.userAgent);J=J&&+J[1]<=8;var Y=/\n/g,$=he.sourceCode,de=$.length,be=0,Te=he.spans,Be=Te.length,fe=0,xe=he.decorations,ke=xe.length,nt=0;xe[ke]=de;var Ct,pt;for(pt=Ct=0;pt<ke;)xe[pt]!==xe[pt+2]?(xe[Ct++]=xe[pt++],xe[Ct++]=xe[pt++]):pt+=2;for(ke=Ct,pt=Ct=0;pt<ke;){for(var He=xe[pt],nr=xe[pt+1],ht=pt+2;ht+2<=ke&&xe[ht+1]===nr;)ht+=2;xe[Ct++]=He,xe[Ct++]=nr,pt=ht}ke=xe.length=Ct;var Gt=he.sourceNode,pr="";Gt&&(pr=Gt.style.display,Gt.style.display="none");try{for(var Qt=null;fe<Be;){var Ht=Te[fe],Jt=Te[fe+2]||de,Ge=xe[nt+2]||de,ht=Math.min(Jt,Ge),pe=Te[fe+1],oe;if(pe.nodeType!==1&&(oe=$.substring(be,ht))){J&&(oe=oe.replace(Y,"\r")),pe.nodeValue=oe;var ct=pe.ownerDocument,qe=ct.createElement("span");qe.className=xe[nt+1];var me=pe.parentNode;me.replaceChild(qe,pe),qe.appendChild(pe),be<Jt&&(Te[fe+1]=pe=ct.createTextNode($.substring(ht,Jt)),me.insertBefore(pe,qe.nextSibling))}be=ht,be>=Jt&&(fe+=2),be>=Ge&&(nt+=2)}}finally{Gt&&(Gt.style.display=pr)}}var Oe={};function Me(he,J){for(var Y=J.length;--Y>=0;){var $=J[Y];Oe.hasOwnProperty($)?l.console&&console.warn("cannot override language handler %s",$):Oe[$]=he}}function Qe(he,J){return he&&Oe.hasOwnProperty(he)||(he=/^\s*</.test(J)?"default-markup":"default-code"),Oe[he]}Me(se,["default-code"]),Me(te([],[[I,/^[^<?]+/],[M,/^<!\w[^>]*(?:>|$)/],[_,/^<\!--[\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"]),Me(te([[I,/^[\s]+/,null,` \r
`],[X,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[k,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!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"]),Me(te([],[[X,/^[\s\S]+/]]),["uq.val"]),Me(q({keywords:o,hashComments:!0,cStyleComments:!0,types:x}),["c","cc","cpp","cxx","cyc","m"]),Me(q({keywords:"null,true,false"}),["json"]),Me(q({keywords:u,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:x}),["cs"]),Me(q({keywords:e,cStyleComments:!0}),["java"]),Me(q({keywords:A,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Me(q({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Me(q({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Me(q({keywords:v,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Me(q({keywords:s,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Me(q({keywords:r,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Me(te([],[[E,/^[\s\S]+/]]),["regex"]);function Ve(he){var J=he.langExtension;try{var Y=z(he.sourceNode,he.pre),$=Y.sourceCode;he.sourceCode=$,he.spans=Y.spans,he.basePos=0,Qe(J,$)(he),we(he)}catch(de){l.console&&console.log(de&&de.stack||de)}}function dt(he,J,Y){var $=Y||!1,de=J||null,be=document.createElement("div");be.innerHTML="<pre>"+he+"</pre>",be=be.firstChild,$&&re(be,$,!0);var Te={langExtension:de,numberLines:$,sourceNode:be,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ve(Te),be.innerHTML}function Fe(he,J){var Y=J||document.body,$=Y.ownerDocument||document;function de(Ht){return Y.getElementsByTagName(Ht)}for(var be=[de("pre"),de("code"),de("xmp")],Te=[],Be=0;Be<be.length;++Be)for(var fe=0,xe=be[Be].length;fe<xe;++fe)Te.push(be[Be][fe]);be=null;var ke=Date;ke.now||(ke={now:function(){return+new Date}});var nt=0,Ct=/\blang(?:uage)?-([\w.]+)(?!\S)/,pt=/\bprettyprint\b/,He=/\bprettyprinted\b/,nr=/pre|xmp/i,ht=/^code$/i,Gt=/^(?:pre|code|xmp)$/i,pr={};function Qt(){for(var Ht=l.PR_SHOULD_USE_CONTINUATION?ke.now()+250:Infinity;nt<Te.length&&ke.now()<Ht;nt++){for(var Jt=Te[nt],Ge=pr,pe=Jt;pe=pe.previousSibling;){var oe=pe.nodeType,ct=(oe===7||oe===8)&&pe.nodeValue;if(ct?!/^\??prettify\b/.test(ct):oe!==3||/\S/.test(pe.nodeValue))break;if(ct){Ge={},ct.replace(/\b(\w+)=([\w:.%+-]+)/g,function(tt,Cr,nn){Ge[Cr]=nn});break}}var qe=Jt.className;if((Ge!==pr||pt.test(qe))&&!He.test(qe)){for(var me=!1,Kt=Jt.parentNode;Kt;Kt=Kt.parentNode){var vr=Kt.tagName;if(Gt.test(vr)&&Kt.className&&pt.test(Kt.className)){me=!0;break}}if(!me){Jt.className+=" prettyprinted";var bt=Ge.lang;if(!bt){bt=qe.match(Ct);var or;!bt&&(or=G(Jt))&&ht.test(or.tagName)&&(bt=or.className.match(Ct)),bt&&(bt=bt[1])}var _t;if(nr.test(Jt.tagName))_t=1;else{var jt=Jt.currentStyle,ut=$.defaultView,St=jt?jt.whiteSpace:ut&&ut.getComputedStyle?ut.getComputedStyle(Jt,null).getPropertyValue("white-space"):0;_t=St&&St.substring(0,3)==="pre"}var mt=Ge.linenums;(mt=mt==="true"||+mt)||(mt=qe.match(/\blinenums\b(?::(\d+))?/),mt=mt?mt[1]&&mt[1].length?+mt[1]:!0:!1),mt&&re(Jt,mt,_t);var lt={langExtension:bt,sourceNode:Jt,numberLines:mt,pre:_t,sourceCode:null,basePos:null,spans:null,decorations:null};Ve(lt)}}}nt<Te.length?l.setTimeout(Qt,250):typeof he=="function"&&he()}Qt()}var ue=l.PR={createSimpleLexer:te,registerLangHandler:Me,sourceDecorator:q,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:X,PR_COMMENT:_,PR_DECLARATION:M,PR_KEYWORD:T,PR_LITERAL:w,PR_NOCODE:F,PR_PLAIN:I,PR_PUNCTUATION:O,PR_SOURCE:U,PR_STRING:E,PR_TAG:k,PR_TYPE:C,prettyPrintOne:S?l.prettyPrintOne=dt:f=dt,prettyPrint:d=S?l.prettyPrint=Fe:d=Fe},et=l.define;typeof et=="function"&&et.amd&&et("google-code-prettify",[],function(){return ue})})()},SKnc:function(R,D,n){var y=n("bYtY"),g=n("QuXc"),S=function(f,d,l,a,i,t){this.x=f==null?0:f,this.y=d==null?0:d,this.x2=l==null?1:l,this.y2=a==null?0:a,this.type="linear",this.global=t||!1,g.call(this,i)};S.prototype={constructor:S},y.inherits(S,g);var m=S;R.exports=m},"SKx+":function(R,D,n){var y=n("ProS"),g=y.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}}}),S=g;R.exports=S},SMc4:function(R,D,n){var y=n("bYtY"),g=n("bLfw"),S=n("nkfE"),m=n("ICMv"),p=g.extend({type:"cartesian2dAxis",axis:null,init:function(){p.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){p.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){p.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function f(a,i){return i.type||(i.data?"category":"value")}y.merge(p.prototype,m);var d={offset:0};S("x",p,f,d),S("y",p,f,d);var l=p;R.exports=l},SRve:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};D.default=y},SUKs:function(R,D,n){var y=n("LPTA"),g=y.debugMode,S=function(){};g===1&&(S=console.error);var m=S;R.exports=m},SZEN:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.clientToElement=y;function y(g,S,m){var p=m.getBoundingClientRect(),f={x:0,y:0};return g<p.left?f.x=0:g>=p.right?f.x=p.width-1:f.x=g-p.left,S<p.top?f.y=0:S>=p.bottom?f.y=p.height-1:f.y=S-p.top,f}},Sdc0:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("q1tI"),f=n("rePB"),d=n("ODXe"),l=n("Ff2n"),a=n("TSYQ"),i=n.n(a),t=n("6cGi"),o=n("4IlW"),e=p.forwardRef(function(T,_){var C,w=T.prefixCls,O=w===void 0?"rc-switch":w,I=T.className,k=T.checked,M=T.defaultChecked,U=T.disabled,P=T.loadingIcon,X=T.checkedChildren,F=T.unCheckedChildren,j=T.onClick,K=T.onChange,z=T.onKeyDown,V=Object(l.a)(T,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),Q=Object(t.a)(!1,{value:k,defaultValue:M}),G=Object(d.a)(Q,2),te=G[0],q=G[1];function se(Me,Qe){var Ve=te;return U||(Ve=Me,q(Ve),K==null||K(Ve,Qe)),Ve}function re(Me){Me.which===o.a.LEFT?se(!1,Me):Me.which===o.a.RIGHT&&se(!0,Me),z==null||z(Me)}function we(Me){var Qe=se(!te,Me);j==null||j(Qe,Me)}var Oe=i()(O,I,(C={},Object(f.a)(C,"".concat(O,"-checked"),te),Object(f.a)(C,"".concat(O,"-disabled"),U),C));return p.createElement("button",Object.assign({},V,{type:"button",role:"switch","aria-checked":te,disabled:U,className:Oe,ref:_,onKeyDown:re,onClick:we}),P,p.createElement("span",{className:"".concat(O,"-inner")},te?X:F))});e.displayName="Switch";var u=e,r=n("gZBC"),s=n.n(r),c=n("g0mS"),h=n("H84U"),v=n("3Nzz"),A=n("uaoM"),b=function(T,_){var C={};for(var w in T)Object.prototype.hasOwnProperty.call(T,w)&&_.indexOf(w)<0&&(C[w]=T[w]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(T);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(T,w[O])&&(C[w[O]]=T[w[O]]);return C},x=p.forwardRef(function(T,_){var C,w=T.prefixCls,O=T.size,I=T.loading,k=T.className,M=k===void 0?"":k,U=T.disabled,P=b(T,["prefixCls","size","loading","className","disabled"]);Object(A.a)("checked"in P||!("value"in P),"Switch","`value` is not a valid prop, do you mean `checked`?");var X=p.useContext(h.b),F=X.getPrefixCls,j=X.direction,K=p.useContext(v.b),z=F("switch",w),V=p.createElement("div",{className:"".concat(z,"-handle")},I&&p.createElement(s.a,{className:"".concat(z,"-loading-icon")})),Q=i()(M,(C={},m()(C,"".concat(z,"-small"),(O||K)==="small"),m()(C,"".concat(z,"-loading"),I),m()(C,"".concat(z,"-rtl"),j==="rtl"),C));return p.createElement(c.a,{insertExtraNode:!0},p.createElement(u,g()({},P,{prefixCls:z,className:Q,disabled:U||I,ref:_,loadingIcon:V})))});x.__ANT_SWITCH=!0,x.displayName="Switch";var E=D.a=x},SehX:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("2B6p"),m=S.updateCenterAndZoom;y.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(p,f){var d=p.componentType||"series";f.eachComponent({mainType:d,query:p},function(l){var a=l.coordinateSystem;if(a.type!=="geo")return;var i=m(a,p,l.get("scaleLimit"));l.setCenter&&l.setCenter(i.center),l.setZoom&&l.setZoom(i.zoom),d==="series"&&g.each(l.seriesGroup,function(t){t.setCenter(i.center),t.setZoom(i.zoom)})})})},SfRM:function(R,D,n){var y=n("YESw");function g(){this.__data__=y?y(null):{},this.size=0}R.exports=g},SgGq:function(R,D,n){var y=n("bYtY"),g=n("H6uX"),S=n("YH21"),m=n("pP6R");function p(r){this.pointerChecker,this._zr=r,this._opt={};var s=y.bind,c=s(f,this),h=s(d,this),v=s(l,this),A=s(a,this),b=s(i,this);g.call(this),this.setPointerChecker=function(x){this.pointerChecker=x},this.enable=function(x,E){this.disable(),this._opt=y.defaults(y.clone(E)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),x==null&&(x=!0),(x===!0||x==="move"||x==="pan")&&(r.on("mousedown",c),r.on("mousemove",h),r.on("mouseup",v)),(x===!0||x==="scale"||x==="zoom")&&(r.on("mousewheel",A),r.on("pinch",b))},this.disable=function(){r.off("mousedown",c),r.off("mousemove",h),r.off("mouseup",v),r.off("mousewheel",A),r.off("pinch",b)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}y.mixin(p,g);function f(r){if(S.isMiddleOrRightButtonOnMouseUpDown(r)||r.target&&r.target.draggable)return;var s=r.offsetX,c=r.offsetY;this.pointerChecker&&this.pointerChecker(r,s,c)&&(this._x=s,this._y=c,this._dragging=!0)}function d(r){if(!this._dragging||!e("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||m.isTaken(this._zr,"globalPan"))return;var s=r.offsetX,c=r.offsetY,h=this._x,v=this._y,A=s-h,b=c-v;this._x=s,this._y=c,this._opt.preventDefaultMouseMove&&S.stop(r.event),o(this,"pan","moveOnMouseMove",r,{dx:A,dy:b,oldX:h,oldY:v,newX:s,newY:c})}function l(r){S.isMiddleOrRightButtonOnMouseUpDown(r)||(this._dragging=!1)}function a(r){var s=e("zoomOnMouseWheel",r,this._opt),c=e("moveOnMouseWheel",r,this._opt),h=r.wheelDelta,v=Math.abs(h),A=r.offsetX,b=r.offsetY;if(h===0||!s&&!c)return;if(s){var x=v>3?1.4:v>1?1.2:1.1,E=h>0?x:1/x;t(this,"zoom","zoomOnMouseWheel",r,{scale:E,originX:A,originY:b})}if(c){var T=Math.abs(h),_=(h>0?1:-1)*(T>3?.4:T>1?.15:.05);t(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:_,originX:A,originY:b})}}function i(r){if(m.isTaken(this._zr,"globalPan"))return;var s=r.pinchScale>1?1.1:1/1.1;t(this,"zoom",null,r,{scale:s,originX:r.pinchX,originY:r.pinchY})}function t(r,s,c,h,v){r.pointerChecker&&r.pointerChecker(h,v.originX,v.originY)&&(S.stop(h.event),o(r,s,c,h,v))}function o(r,s,c,h,v){v.isAvailableBehavior=y.bind(e,null,c,h),r.trigger(s,v)}function e(r,s,c){var h=c[r];return!r||h&&(!y.isString(h)||s.event[h+"Key"])}var u=p;R.exports=u},SgaC:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function g(p,f){for(var d=0;d<f.length;d++){var l=f[d];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(p,l.key,l)}}function S(p,f,d){return f&&g(p.prototype,f),d&&g(p,d),p}var m=function(){function p(){y(this,p),this._subrects=0}return S(p,[{key:"decodeRect",value:function(d,l,a,i,t,o,e){if(this._subrects===0){if(t.rQwait("RRE",4+4))return!1;this._subrects=t.rQshift32();var u=t.rQshiftBytes(4);o.fillRect(d,l,a,i,u)}for(;this._subrects>0;){if(t.rQwait("RRE",4+8))return!1;var r=t.rQshiftBytes(4),s=t.rQshift16(),c=t.rQshift16(),h=t.rQshift16(),v=t.rQshift16();o.fillRect(d+s,l+c,h,v,r),this._subrects--}return!0}}]),p}();D.default=m},Sj0X:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("XuBP")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="DownOutlined";var i=m.forwardRef(a);D.default=i},Sj9i:function(R,D,n){var y=n("QBsz"),g=y.create,S=y.distSquare,m=Math.pow,p=Math.sqrt,f=1e-8,d=1e-4,l=p(3),a=1/3,i=g(),t=g(),o=g();function e(w){return w>-f&&w<f}function u(w){return w>f||w<-f}function r(w,O,I,k,M){var U=1-M;return U*U*(U*w+3*M*O)+M*M*(M*k+3*U*I)}function s(w,O,I,k,M){var U=1-M;return 3*(((O-w)*U+2*(I-O)*M)*U+(k-I)*M*M)}function c(w,O,I,k,M,U){var P=k+3*(O-I)-w,X=3*(I-O*2+w),F=3*(O-w),j=w-M,K=X*X-3*P*F,z=X*F-9*P*j,V=F*F-3*X*j,Q=0;if(e(K)&&e(z))if(e(X))U[0]=0;else{var G=-F/X;G>=0&&G<=1&&(U[Q++]=G)}else{var te=z*z-4*K*V;if(e(te)){var q=z/K,G=-X/P+q,se=-q/2;G>=0&&G<=1&&(U[Q++]=G),se>=0&&se<=1&&(U[Q++]=se)}else if(te>0){var re=p(te),we=K*X+1.5*P*(-z+re),Oe=K*X+1.5*P*(-z-re);we<0?we=-m(-we,a):we=m(we,a),Oe<0?Oe=-m(-Oe,a):Oe=m(Oe,a);var G=(-X-(we+Oe))/(3*P);G>=0&&G<=1&&(U[Q++]=G)}else{var Me=(2*K*X-3*P*z)/(2*p(K*K*K)),Qe=Math.acos(Me)/3,Ve=p(K),dt=Math.cos(Qe),G=(-X-2*Ve*dt)/(3*P),se=(-X+Ve*(dt+l*Math.sin(Qe)))/(3*P),Fe=(-X+Ve*(dt-l*Math.sin(Qe)))/(3*P);G>=0&&G<=1&&(U[Q++]=G),se>=0&&se<=1&&(U[Q++]=se),Fe>=0&&Fe<=1&&(U[Q++]=Fe)}}return Q}function h(w,O,I,k,M){var U=6*I-12*O+6*w,P=9*O+3*k-3*w-9*I,X=3*O-3*w,F=0;if(e(P)){if(u(U)){var j=-X/U;j>=0&&j<=1&&(M[F++]=j)}}else{var K=U*U-4*P*X;if(e(K))M[0]=-U/(2*P);else if(K>0){var z=p(K),j=(-U+z)/(2*P),V=(-U-z)/(2*P);j>=0&&j<=1&&(M[F++]=j),V>=0&&V<=1&&(M[F++]=V)}}return F}function v(w,O,I,k,M,U){var P=(O-w)*M+w,X=(I-O)*M+O,F=(k-I)*M+I,j=(X-P)*M+P,K=(F-X)*M+X,z=(K-j)*M+j;U[0]=w,U[1]=P,U[2]=j,U[3]=z,U[4]=z,U[5]=K,U[6]=F,U[7]=k}function A(w,O,I,k,M,U,P,X,F,j,K){var z,V=.005,Q=Infinity,G,te,q,se;i[0]=F,i[1]=j;for(var re=0;re<1;re+=.05)t[0]=r(w,I,M,P,re),t[1]=r(O,k,U,X,re),q=S(i,t),q<Q&&(z=re,Q=q);Q=Infinity;for(var we=0;we<32&&!(V<d);we++)G=z-V,te=z+V,t[0]=r(w,I,M,P,G),t[1]=r(O,k,U,X,G),q=S(t,i),G>=0&&q<Q?(z=G,Q=q):(o[0]=r(w,I,M,P,te),o[1]=r(O,k,U,X,te),se=S(o,i),te<=1&&se<Q?(z=te,Q=se):V*=.5);return K&&(K[0]=r(w,I,M,P,z),K[1]=r(O,k,U,X,z)),p(Q)}function b(w,O,I,k){var M=1-k;return M*(M*w+2*k*O)+k*k*I}function x(w,O,I,k){return 2*((1-k)*(O-w)+k*(I-O))}function E(w,O,I,k,M){var U=w-2*O+I,P=2*(O-w),X=w-k,F=0;if(e(U)){if(u(P)){var j=-X/P;j>=0&&j<=1&&(M[F++]=j)}}else{var K=P*P-4*U*X;if(e(K)){var j=-P/(2*U);j>=0&&j<=1&&(M[F++]=j)}else if(K>0){var z=p(K),j=(-P+z)/(2*U),V=(-P-z)/(2*U);j>=0&&j<=1&&(M[F++]=j),V>=0&&V<=1&&(M[F++]=V)}}return F}function T(w,O,I){var k=w+I-2*O;return k===0?.5:(w-O)/k}function _(w,O,I,k,M){var U=(O-w)*k+w,P=(I-O)*k+O,X=(P-U)*k+U;M[0]=w,M[1]=U,M[2]=X,M[3]=X,M[4]=P,M[5]=I}function C(w,O,I,k,M,U,P,X,F){var j,K=.005,z=Infinity;i[0]=P,i[1]=X;for(var V=0;V<1;V+=.05){t[0]=b(w,I,M,V),t[1]=b(O,k,U,V);var Q=S(i,t);Q<z&&(j=V,z=Q)}z=Infinity;for(var G=0;G<32&&!(K<d);G++){var te=j-K,q=j+K;t[0]=b(w,I,M,te),t[1]=b(O,k,U,te);var Q=S(t,i);if(te>=0&&Q<z)j=te,z=Q;else{o[0]=b(w,I,M,q),o[1]=b(O,k,U,q);var se=S(o,i);q<=1&&se<z?(j=q,z=se):K*=.5}}return F&&(F[0]=b(w,I,M,j),F[1]=b(O,k,U,j)),p(z)}D.cubicAt=r,D.cubicDerivativeAt=s,D.cubicRootAt=c,D.cubicExtrema=h,D.cubicSubdivide=v,D.cubicProjectPoint=A,D.quadraticAt=b,D.quadraticDerivativeAt=x,D.quadraticRootAt=E,D.quadraticExtremum=T,D.quadraticSubdivide=_,D.quadraticProjectPoint=C},Sp2Z:function(R,D,n){var y=n("3LNs"),g=n("/y7N"),S=n("AVZG"),m=n("Znkb"),p=y.extend({makeElOption:function(i,t,o,e,u){var r=o.axis,s=r.grid,c=e.get("type"),h=f(s,r).getOtherAxis(r).getGlobalExtent(),v=r.toGlobalCoord(r.dataToCoord(t,!0));if(c&&c!=="none"){var A=g.buildElStyle(e),b=d[c](r,v,h);b.style=A,i.graphicKey=b.type,i.pointer=b}var x=S.layout(s.model,o);g.buildCartesianSingleLabelElOption(t,i,x,o,e,u)},getHandleTransform:function(i,t,o){var e=S.layout(t.axis.grid.model,t,{labelInside:!1});return e.labelMargin=o.get("handle.margin"),{position:g.getTransformedPosition(t.axis,i,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(i,t,o,e){var u=o.axis,r=u.grid,s=u.getGlobalExtent(!0),c=f(r,u).getOtherAxis(u).getGlobalExtent(),h=u.dim==="x"?0:1,v=i.position;v[h]+=t[h],v[h]=Math.min(s[1],v[h]),v[h]=Math.max(s[0],v[h]);var A=(c[1]+c[0])/2,b=[A,A];b[h]=v[h];var x=[{verticalAlign:"middle"},{align:"center"}];return{position:v,rotation:i.rotation,cursorPoint:b,tooltipOption:x[h]}}});function f(i,t){var o={};return o[t.dim+"AxisIndex"]=t.index,i.getCartesian(o)}var d={line:function(i,t,o){var e=g.makeLineShape([t,o[0]],[t,o[1]],l(i));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(i,t,o){var e=Math.max(1,i.getBandWidth()),u=o[1]-o[0];return{type:"Rect",shape:g.makeRectShape([t-e/2,o[0]],[e,u],l(i))}}};function l(i){return i.dim==="x"?0:1}m.registerAxisPointerClass("CartesianAxisPointer",p);var a=p;R.exports=a},Sq3C:function(R,D,n){var y=n("sKgW"),g=n("zoYe"),S=n("wy8a"),m=n("quyA"),p=n("Z1HP"),f=n("Em2t"),d=Math.ceil;function l(a,i){i=i===void 0?" ":g(i);var t=i.length;if(t<2)return t?y(i,a):i;var o=y(i,d(a/p(i)));return m(i)?S(f(o),0,a).join(""):o.slice(0,a)}R.exports=l},SqI9:function(R,D,n){var y=n("y+Vt"),g=n("iXp4"),S=y.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:g(y.prototype.brush),buildPath:function(p,f){var d=f.cx,l=f.cy,a=Math.max(f.r0||0,0),i=Math.max(f.r,0),t=f.startAngle,o=f.endAngle,e=f.clockwise,u=Math.cos(t),r=Math.sin(t);p.moveTo(u*a+d,r*a+l),p.lineTo(u*i+d,r*i+l),p.arc(d,l,i,t,o,!e),p.lineTo(Math.cos(o)*a+d,Math.sin(o)*a+l),a!==0&&p.arc(d,l,a,o,t,e),p.closePath()}});R.exports=S},SrGk:function(R,D,n){var y=n("hydK"),g=y.createElement,S=n("bYtY"),m=n("y+Vt"),p=n("Dagg"),f=n("dqUG"),d=n("P47w"),l=d.path,a=d.image,i=d.text,t="0",o="1";function e(r,s,c,h,v){this._zrId=r,this._svgRoot=s,this._tagNames=typeof c=="string"?[c]:c,this._markLabel=h,this._domName=v||"_dom",this.nextId=0}e.prototype.createElement=g,e.prototype.getDefs=function(r){var s=this._svgRoot,c=this._svgRoot.getElementsByTagName("defs");return c.length===0?r?(c=s.insertBefore(this.createElement("defs"),s.firstChild),c.contains||(c.contains=function(h){var v=c.children;if(!v)return!1;for(var A=v.length-1;A>=0;--A)if(v[A]===h)return!0;return!1}),c):null:c[0]},e.prototype.update=function(r,s){if(!r)return;var c=this.getDefs(!1);if(r[this._domName]&&c.contains(r[this._domName]))typeof s=="function"&&s(r);else{var h=this.add(r);h&&(r[this._domName]=h)}},e.prototype.addDom=function(r){var s=this.getDefs(!0);s.appendChild(r)},e.prototype.removeDom=function(r){var s=this.getDefs(!1);s&&r[this._domName]&&(s.removeChild(r[this._domName]),r[this._domName]=null)},e.prototype.getDoms=function(){var r=this.getDefs(!1);if(!r)return[];var s=[];return S.each(this._tagNames,function(c){var h=r.getElementsByTagName(c);s=s.concat([].slice.call(h))}),s},e.prototype.markAllUnused=function(){var r=this.getDoms(),s=this;S.each(r,function(c){c[s._markLabel]=t})},e.prototype.markUsed=function(r){r&&(r[this._markLabel]=o)},e.prototype.removeUnused=function(){var r=this.getDefs(!1);if(!r)return;var s=this.getDoms(),c=this;S.each(s,function(h){h[c._markLabel]!==o&&r.removeChild(h)})},e.prototype.getSvgProxy=function(r){return r instanceof m?l:r instanceof p?a:r instanceof f?i:l},e.prototype.getTextSvgElement=function(r){return r.__textSvgEl},e.prototype.getSvgElement=function(r){return r.__svgEl};var u=e;R.exports=u},Swgg:function(R,D,n){var y=n("fc+c"),g=y.extend({type:"dataZoom.select"});R.exports=g},Sxd8:function(R,D,n){var y=n("ZCgT");function g(S){var m=y(S),p=m%1;return m===m?p?m-p:m:0}R.exports=g},T1rO:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("zdCA"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},T4UG:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=n("ItGF"),p=n("7aKB"),f=p.formatTime,d=p.encodeHTML,l=p.addCommas,a=p.getTooltipMarker,i=n("4NO4"),t=n("bLfw"),o=n("5Hur"),e=n("OKJ2"),u=n("+TT/"),r=u.getLayoutParams,s=u.mergeLayoutParam,c=n("9H2F"),h=c.createTask,v=n("D5nY"),A=v.prepareSource,b=v.getSource,x=n("KxfA"),E=x.retrieveRawValue,T=i.makeInner(),_=t.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(F,j,K,z){this.seriesIndex=this.componentIndex,this.dataTask=h({count:O,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(F,K),A(this);var V=this.getInitialData(F,K);M(V,this),this.dataTask.context.data=V,T(this).dataBeforeProcessed=V,C(this)},mergeDefaultAndTheme:function(F,j){var K=this.layoutMode,z=K?r(F):{},V=this.subType;t.hasClass(V)&&(V+="Series"),S.merge(F,j.getTheme().get(this.subType)),S.merge(F,this.getDefaultOption()),i.defaultEmphasis(F,"label",["show"]),this.fillDataTextStyle(F.data),K&&s(F,z,K)},mergeOption:function(F,j){F=S.merge(this.option,F,!0),this.fillDataTextStyle(F.data);var K=this.layoutMode;K&&s(this.option,F,K),A(this);var z=this.getInitialData(F,j);M(z,this),this.dataTask.dirty(),this.dataTask.context.data=z,T(this).dataBeforeProcessed=z,C(this)},fillDataTextStyle:function(F){if(F&&!S.isTypedArray(F))for(var j=["show"],K=0;K<F.length;K++)F[K]&&F[K].label&&i.defaultEmphasis(F[K],"label",j)},getInitialData:function(){},appendData:function(F){var j=this.getRawData();j.appendData(F.data)},getData:function(F){var j=P(this);if(j){var K=j.context.data;return F==null?K:K.getLinkedData(F)}else return T(this).data},setData:function(F){var j=P(this);if(j){var K=j.context;K.data!==F&&j.modifyOutputEnd&&j.setOutputEnd(F.count()),K.outputData=F,j!==this.dataTask&&(K.data=F)}T(this).data=F},getSource:function(){return b(this)},getRawData:function(){return T(this).dataBeforeProcessed},getBaseAxis:function(){var F=this.coordinateSystem;return F&&F.getBaseAxis&&F.getBaseAxis()},formatTooltip:function(F,j,K,z){var V=this;z=z||"html";var Q=z==="html"?"<br/>":`
`,G=z==="richText",te={},q=0;function se(be){var Te=S.reduce(be,function(nt,Ct,pt){var He=we.getDimensionInfo(pt);return nt|=He&&He.tooltip!==!1&&He.displayName!=null},0),Be=[];Oe.length?S.each(Oe,function(nt){fe(E(we,F,nt),nt)}):S.each(be,fe);function fe(nt,Ct){var pt=we.getDimensionInfo(Ct);if(!pt||pt.otherDims.tooltip===!1)return;var He=pt.type,nr="sub"+V.seriesIndex+"at"+q,ht=a({color:dt,type:"subItem",renderMode:z,markerId:nr}),Gt=typeof ht=="string"?ht:ht.content,pr=(Te?Gt+d(pt.displayName||"-")+": ":"")+d(He==="ordinal"?nt+"":He==="time"?j?"":f("yyyy/MM/dd hh:mm:ss",nt):l(nt));pr&&Be.push(pr),G&&(te[nr]=dt,++q)}var xe=Te?G?`
`:"<br/>":"",ke=xe+Be.join(xe||", ");return{renderMode:z,content:ke,style:te}}function re(be){return{renderMode:z,content:d(l(be)),style:te}}var we=this.getData(),Oe=we.mapDimension("defaultedTooltip",!0),Me=Oe.length,Qe=this.getRawValue(F),Ve=S.isArray(Qe),dt=we.getItemVisual(F,"color");S.isObject(dt)&&dt.colorStops&&(dt=(dt.colorStops[0]||{}).color),dt=dt||"transparent";var Fe=Me>1||Ve&&!Me?se(Qe):re(Me?E(we,F,Oe[0]):Ve?Qe[0]:Qe),ue=Fe.content,et=V.seriesIndex+"at"+q,he=a({color:dt,type:"item",renderMode:z,markerId:et});te[et]=dt,++q;var J=we.getName(F),Y=this.name;i.isNameSpecified(this)||(Y=""),Y=Y?d(Y)+(j?": ":Q):"";var $=typeof he=="string"?he:he.content,de=j?$+Y+ue:Y+$+(J?d(J)+": "+ue:ue);return{html:de,markers:te}},isAnimationEnabled:function(){if(m.node)return!1;var F=this.getShallow("animation");return F&&(this.getData().count()>this.getShallow("animationThreshold")&&(F=!1)),F},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(F,j,K){var z=this.ecModel,V=o.getColorFromPalette.call(this,F,j,K);return V||(V=z.getColorFromPalette(F,j,K)),V},coordDimToDataDim:function(F){return this.getRawData().mapDimension(F,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});S.mixin(_,e),S.mixin(_,o);function C(F){var j=F.name;i.isNameSpecified(F)||(F.name=w(F)||j)}function w(F){var j=F.getRawData(),K=j.mapDimension("seriesName",!0),z=[];return S.each(K,function(V){var Q=j.getDimensionInfo(V);Q.displayName&&z.push(Q.displayName)}),z.join(" ")}function O(F){return F.model.getRawData().count()}function I(F){var j=F.model;return j.setData(j.getRawData().cloneShallow()),k}function k(F,j){j.outputData&&F.end>j.outputData.count()&&j.model.getRawData().cloneShallow(j.outputData)}function M(F,j){S.each(F.CHANGABLE_METHODS,function(K){F.wrapMethod(K,S.curry(U,j))})}function U(F){var j=P(F);j&&j.setOutputEnd(this.count())}function P(F){var j=(F.ecModel||{}).scheduler,K=j&&j.getPipeline(F.uid);if(K){var z=K.currentTask;if(z){var V=z.agentStubMap;V&&(z=V.get(F.uid))}return z}}var X=_;R.exports=X},T6xi:function(R,D,n){var y=n("YgsL"),g=n("nCxF");function S(m,p,f){var d=p.points,l=p.smooth;if(d&&d.length>=2){if(l&&l!=="spline"){var a=g(d,l,f,p.smoothConstraint);m.moveTo(d[0][0],d[0][1]);for(var i=d.length,t=0;t<(f?i:i-1);t++){var o=a[t*2],e=a[t*2+1],u=d[(t+1)%i];m.bezierCurveTo(o[0],o[1],e[0],e[1],u[0],u[1])}}else{l==="spline"&&(d=y(d,f)),m.moveTo(d[0][0],d[0][1]);for(var t=1,r=d.length;t<r;t++)m.lineTo(d[t][0],d[t][1])}f&&m.closePath()}}D.buildPath=S},TIY9:function(R,D,n){var y=n("bYtY"),g=y.each,S=n("vafp"),m=n("4NO4"),p=m.makeInner,f=n("Mgri"),d=n("F5Ls"),l=n("a9QJ"),a=n("p/La"),i=p(),t={load:function(e,u,r){var s=i(u).parsed;if(s)return s;var c=u.specialAreas||{},h=u.geoJSON,v;try{v=h?S(h,r):[]}catch(A){throw new Error(`Invalid geoJson format
`+A.message)}return f(e,v),g(v,function(A){var b=A.name;d(e,A),l(e,A),a(e,A);var x=c[b];x&&A.transformTo(x.left,x.top,x.width,x.height)}),i(u).parsed={regions:v,boundingRect:o(v)}}};function o(e){for(var u,r=0;r<e.length;r++){var s=e[r].getBoundingRect();u=u||s.clone(),u.union(s)}return u}R.exports=t},TJmX:function(R,D,n){var y=n("zM3Q"),g=["itemStyle","borderColor"],S=["itemStyle","borderColor0"],m=["itemStyle","color"],p=["itemStyle","color0"],f={seriesType:"candlestick",plan:y(),performRawSeries:!0,reset:function(d,l){var a=d.getData();if(a.setVisual({legendSymbol:"roundRect",colorP:o(1,d),colorN:o(-1,d),borderColorP:e(1,d),borderColorN:e(-1,d)}),l.isSeriesFiltered(d))return;var i=d.pipelineContext.large;return!i&&{progress:t};function t(u,r){for(var s;(s=u.next())!=null;){var c=r.getItemModel(s),h=r.getItemLayout(s).sign;r.setItemVisual(s,{color:o(h,c),borderColor:e(h,c)})}}function o(u,r){return r.get(u>0?m:p)}function e(u,r){return r.get(u>0?g:S)}}};R.exports=f},TWL2:function(R,D,n){var y=n("IwbS"),g=n("bYtY"),S=n("6Ic6");function m(a,i){y.Group.call(this);var t=new y.Polygon,o=new y.Polyline,e=new y.Text;this.add(t),this.add(o),this.add(e),this.highDownOnUpdate=function(u,r){r==="emphasis"?(o.ignore=o.hoverIgnore,e.ignore=e.hoverIgnore):(o.ignore=o.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(a,i,!0)}var p=m.prototype,f=["itemStyle","opacity"];p.updateData=function(a,i,t){var o=this.childAt(0),e=a.hostModel,u=a.getItemModel(i),r=a.getItemLayout(i),s=a.getItemModel(i).get(f);s=s==null?1:s,o.useStyle({}),t?(o.setShape({points:r.points}),o.setStyle({opacity:0}),y.initProps(o,{style:{opacity:s}},e,i)):y.updateProps(o,{style:{opacity:s},shape:{points:r.points}},e,i);var c=u.getModel("itemStyle"),h=a.getItemVisual(i,"color");o.setStyle(g.defaults({lineJoin:"round",fill:h},c.getItemStyle(["opacity"]))),o.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(a,i),y.setHoverStyle(this)},p._updateLabel=function(a,i){var t=this.childAt(1),o=this.childAt(2),e=a.hostModel,u=a.getItemModel(i),r=a.getItemLayout(i),s=r.label,c=a.getItemVisual(i,"color");y.updateProps(t,{shape:{points:s.linePoints||s.linePoints}},e,i),y.updateProps(o,{style:{x:s.x,y:s.y}},e,i),o.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var h=u.getModel("label"),v=u.getModel("emphasis.label"),A=u.getModel("labelLine"),b=u.getModel("emphasis.labelLine"),c=a.getItemVisual(i,"color");y.setLabelStyle(o.style,o.hoverStyle={},h,v,{labelFetcher:a.hostModel,labelDataIndex:i,defaultText:a.getName(i),autoColor:c,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),o.ignore=o.normalIgnore=!h.get("show"),o.hoverIgnore=!v.get("show"),t.ignore=t.normalIgnore=!A.get("show"),t.hoverIgnore=!b.get("show"),t.setStyle({stroke:c}),t.setStyle(A.getModel("lineStyle").getLineStyle()),t.hoverStyle=b.getModel("lineStyle").getLineStyle()},g.inherits(m,y.Group);var d=S.extend({type:"funnel",render:function(a,i,t){var o=a.getData(),e=this._data,u=this.group;o.diff(e).add(function(r){var s=new m(o,r);o.setItemGraphicEl(r,s),u.add(s)}).update(function(r,s){var c=e.getItemGraphicEl(s);c.updateData(o,r),u.add(c),o.setItemGraphicEl(r,c)}).remove(function(r){var s=e.getItemGraphicEl(r);u.remove(s)}).execute(),this._data=o},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),l=d;R.exports=l},TYVI:function(R,D,n){var y=n("5GtS"),g=n("T4UG"),S=g.extend({type:"series.gauge",getInitialData:function(p,f){return y(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}}}),m=S;R.exports=m},TdNH:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("m546")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="CopyOutlined";var i=m.forwardRef(a);D.default=i},Tghj:function(R,D,n){(function(y){var g;typeof window!="undefined"?g=window.__DEV__:typeof y!="undefined"&&(g=y.__DEV__),typeof g=="undefined"&&(g=!0);var S=g;D.__DEV__=S}).call(this,n("yLpj"))},ThAp:function(R,D,n){var y=n("bYtY"),g=n("5GtS"),S=n("T4UG"),m=n("7aKB"),p=m.encodeHTML,f=m.addCommas,d=n("cCMj"),l=n("KxfA"),a=l.retrieveRawAttr,i=n("W4dC"),t=n("D5nY"),o=t.makeSeriesEncodeForNameBased,e=S.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(r){for(var s=g(this,{coordDimensions:["value"],encodeDefaulter:y.curry(o,this)}),c=s.mapDimension("value"),h=y.createHashMap(),v=[],A=[],b=0,x=s.count();b<x;b++){var E=s.getName(b);h.set(E,!0),v.push({name:E,value:s.get(c,b),selected:a(s,b,"selected")})}var T=i.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return y.each(T.regions,function(_){var C=_.name;h.get(C)||(v.push({name:C}),A.push(C))}),this.updateSelectedMap(v),s.appendValues([],A),s},getHostGeoModel:function(){var r=this.option.geoIndex;return r!=null?this.dependentModels.geo[r]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(r){var s=this.getData();return s.get(s.mapDimension("value"),r)},getRegionModel:function(r){var s=this.getData();return s.getItemModel(s.indexOfName(r))},formatTooltip:function(r){for(var s=this.getData(),c=f(this.getRawValue(r)),h=s.getName(r),v=this.seriesGroup,A=[],b=0;b<v.length;b++){var x=v[b].originalData.indexOfName(h),E=s.mapDimension("value");isNaN(v[b].originalData.get(E,x))||A.push(p(v[b].name))}return A.join(", ")+"<br />"+p(h+" : "+c)},getTooltipPosition:function(r){if(r!=null){var s=this.getData().getName(r),c=this.coordinateSystem,h=c.getRegion(s);return h&&c.dataToPoint(h.center)}},setZoom:function(r){this.option.zoom=r},setCenter:function(r){this.option.center=r},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"}});y.mixin(e,d);var u=e;R.exports=u},TkdX:function(R,D,n){var y=n("bYtY"),g=n("IwbS"),S={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},m=2,p=4;function f(e,u,r){g.Group.call(this);var s=new g.Sector({z2:m});s.seriesIndex=u.seriesIndex;var c=new g.Text({z2:p,silent:e.getModel("label").get("silent")});this.add(s),this.add(c),this.updateData(!0,e,"normal",u,r);function h(){c.ignore=c.hoverIgnore}function v(){c.ignore=c.normalIgnore}this.on("emphasis",h).on("normal",v).on("mouseover",h).on("mouseout",v)}var d=f.prototype;d.updateData=function(e,u,r,s,c){this.node=u,u.piece=this,s=s||this._seriesModel,c=c||this._ecModel;var h=this.childAt(0);h.dataIndex=u.dataIndex;var v=u.getModel(),A=u.getLayout(),b=y.extend({},A);b.label=null;var x=a(u,s,c);o(u,s,x);var E=v.getModel("itemStyle").getItemStyle(),T;if(r==="normal")T=E;else{var _=v.getModel(r+".itemStyle").getItemStyle();T=y.merge(_,E)}T=y.defaults({lineJoin:"bevel",fill:T.fill||x},T),e?(h.setShape(b),h.shape.r=A.r0,g.updateProps(h,{shape:{r:A.r}},s,u.dataIndex),h.useStyle(T)):typeof T.fill=="object"&&T.fill.type||typeof h.style.fill=="object"&&h.style.fill.type?(g.updateProps(h,{shape:b},s),h.useStyle(T)):g.updateProps(h,{shape:b,style:T},s),this._updateLabel(s,x,r);var C=v.getShallow("cursor");if(C&&h.attr("cursor",C),e){var w=s.getShallow("highlightPolicy");this._initEvents(h,u,s,w)}this._seriesModel=s||this._seriesModel,this._ecModel=c||this._ecModel,g.setHoverStyle(this)},d.onEmphasis=function(e){var u=this;this.node.hostTree.root.eachNode(function(r){r.piece&&(u.node===r?r.piece.updateData(!1,r,"emphasis"):t(r,u.node,e)?r.piece.childAt(0).trigger("highlight"):e!==S.NONE&&r.piece.childAt(0).trigger("downplay"))})},d.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},d.onHighlight=function(){this.updateData(!1,this.node,"highlight")},d.onDownplay=function(){this.updateData(!1,this.node,"downplay")},d._updateLabel=function(e,u,r){var s=this.node.getModel(),c=s.getModel("label"),h=r==="normal"||r==="emphasis"?c:s.getModel(r+".label"),v=s.getModel("emphasis.label"),A=y.retrieve(e.getFormattedLabel(this.node.dataIndex,r,null,null,"label"),this.node.name);j("show")===!1&&(A="");var b=this.node.getLayout(),x=h.get("minAngle");x==null&&(x=c.get("minAngle")),x=x/180*Math.PI;var E=b.endAngle-b.startAngle;x!=null&&Math.abs(E)<x&&(A="");var T=this.childAt(1);g.setLabelStyle(T.style,T.hoverStyle||{},c,v,{defaultText:h.getShallow("show")?A:null,autoColor:u,useInsideStyle:!0});var _=(b.startAngle+b.endAngle)/2,C=Math.cos(_),w=Math.sin(_),O,I=j("position"),k=j("distance")||0,M=j("align");I==="outside"?(O=b.r+k,M=_>Math.PI/2?"right":"left"):!M||M==="center"?(O=(b.r+b.r0)/2,M="center"):M==="left"?(O=b.r0+k,_>Math.PI/2&&(M="right")):M==="right"&&(O=b.r-k,_>Math.PI/2&&(M="left")),T.attr("style",{text:A,textAlign:M,textVerticalAlign:j("verticalAlign")||"middle",opacity:j("opacity")});var U=O*C+b.cx,P=O*w+b.cy;T.attr("position",[U,P]);var X=j("rotate"),F=0;X==="radial"?(F=-_,F<-Math.PI/2&&(F+=Math.PI)):X==="tangential"?(F=Math.PI/2-_,F>Math.PI/2?F-=Math.PI:F<-Math.PI/2&&(F+=Math.PI)):typeof X=="number"&&(F=X*Math.PI/180),T.attr("rotation",F);function j(K){var z=h.get(K);return z==null?c.get(K):z}},d._initEvents=function(e,u,r,s){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var c=this,h=function(){c.onEmphasis(s)},v=function(){c.onNormal()},A=function(){c.onDownplay()},b=function(){c.onHighlight()};r.isAnimationEnabled()&&e.on("mouseover",h).on("mouseout",v).on("emphasis",h).on("normal",v).on("downplay",A).on("highlight",b)},y.inherits(f,g.Group);var l=f;function a(e,u,r){var s=e.getVisual("color"),c=e.getVisual("visualMeta");(!c||c.length===0)&&(s=null);var h=e.getModel("itemStyle").get("color");if(h)return h;if(s)return s;if(e.depth===0)return r.option.color[0];var v=r.option.color.length;return h=r.option.color[i(e)%v],h}function i(e){for(var u=e;u.depth>1;)u=u.parentNode;var r=e.getAncestors()[0];return y.indexOf(r.children,u)}function t(e,u,r){return r===S.NONE?!1:r===S.SELF?e===u:r===S.ANCESTOR?e===u||e.isAncestorOf(u):e===u||e.isDescendantOf(u)}function o(e,u,r){var s=u.getData();s.setItemVisual(e.dataIndex,"color",r)}R.exports=l},Tp9H:function(R,D,n){var y=n("ItGF"),g=n("Kagy"),S=n("IUWy"),m=g.toolbox.saveAsImage;function p(l){this.model=l}p.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:m.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:m.lang.slice()},p.prototype.unusable=!y.canvasSupported;var f=p.prototype;f.onclick=function(l,a){var i=this.model,t=i.get("name")||l.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",e=o?"svg":i.get("type",!0)||"png",u=a.getConnectedDataURL({type:e,backgroundColor:i.get("backgroundColor",!0)||l.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(typeof MouseEvent=="function"&&!y.browser.ie&&!y.browser.edge){var r=document.createElement("a");r.download=t+"."+e,r.target="_blank",r.href=u;var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(s)}else if(window.navigator.msSaveOrOpenBlob){for(var c=atob(u.split(",")[1]),h=c.length,v=new Uint8Array(h);h--;)v[h]=c.charCodeAt(h);var A=new Blob([v]);window.navigator.msSaveOrOpenBlob(A,t+"."+e)}else{var b=i.get("lang"),x='<body style="margin:0;"><img src="'+u+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',E=window.open();E.document.write(x)}},S.register("saveAsImage",p);var d=p;R.exports=d},"U/Mo":function(R,D){function n(g){var S=g.coordinateSystem;if(S.type!=="view")return 1;var m=g.option.nodeScaleRatio,p=S.scale,f=p&&p[0]||1,d=S.getZoom(),l=(d-1)*m+1;return l/f}function y(g){var S=g.getVisual("symbolSize");return S instanceof Array&&(S=(S[0]+S[1])/2),+S}D.getNodeGlobalScale=n,D.getSymbolSize=y},UADf:function(R,D,n){},UESt:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="RightOutlined";var d=D.a=g.forwardRef(f)},"UNi/":function(R,D){function n(y,g){for(var S=-1,m=Array(y);++S<y;)m[S]=g(S);return m}R.exports=n},UOVi:function(R,D,n){var y=n("bYtY"),g=n("7aKB"),S=["x","y","z","radius","angle","single"],m=["cartesian2d","polar","singleAxis"];function p(a){return y.indexOf(m,a)>=0}function f(a,i){a=a.slice();var t=y.map(a,g.capitalFirst);i=(i||[]).slice();var o=y.map(i,g.capitalFirst);return function(e,u){y.each(a,function(r,s){for(var c={name:r,capital:t[s]},h=0;h<i.length;h++)c[i[h]]=r+o[h];e.call(u,c)})}}var d=f(S,["axisIndex","axis","index","id"]);function l(a,i,t){return function(r){var s={nodes:[],records:{}};if(i(function(v){s.records[v.name]={}}),!r)return s;u(r,s);var c;do c=!1,a(h);while(c);function h(v){!o(v,s)&&e(v,s)&&(u(v,s),c=!0)}return s};function o(r,s){return y.indexOf(s.nodes,r)>=0}function e(r,s){var c=!1;return i(function(h){y.each(t(r,h)||[],function(v){s.records[h.name][v]&&(c=!0)})}),c}function u(r,s){s.nodes.push(r),i(function(c){y.each(t(r,c)||[],function(h){s.records[c.name][h]=!0})})}}D.isCoordSupported=p,D.createNameEach=f,D.eachAxisDim=d,D.createLinkedNodesFinder=l},Uc92:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},UnoB:function(R,D,n){var y=n("bYtY"),g=n("OELB");function S(f,d){f.eachSeriesByType("themeRiver",function(l){var a=l.getData(),i=l.coordinateSystem,t={},o=i.getRect();t.rect=o;var e=l.get("boundaryGap"),u=i.getAxis();if(t.boundaryGap=e,u.orient==="horizontal"){e[0]=g.parsePercent(e[0],o.height),e[1]=g.parsePercent(e[1],o.height);var r=o.height-e[0]-e[1];m(a,l,r)}else{e[0]=g.parsePercent(e[0],o.width),e[1]=g.parsePercent(e[1],o.width);var s=o.width-e[0]-e[1];m(a,l,s)}a.setLayout("layoutInfo",t)})}function m(f,d,l){if(!f.count())return;for(var a=d.coordinateSystem,i=d.getLayerSeries(),t=f.mapDimension("single"),o=f.mapDimension("value"),e=y.map(i,function(x){return y.map(x.indices,function(E){var T=a.dataToPoint(f.get(t,E));return T[1]=f.get(o,E),T})}),u=p(e),r=u.y0,s=l/u.max,c=i.length,h=i[0].indices.length,v,A=0;A<h;++A){v=r[A]*s,f.setItemLayout(i[0].indices[A],{layerIndex:0,x:e[0][A][0],y0:v,y:e[0][A][1]*s});for(var b=1;b<c;++b)v+=e[b-1][A][1]*s,f.setItemLayout(i[b].indices[A],{layerIndex:b,x:e[b][A][0],y0:v,y:e[b][A][1]*s})}}function p(f){for(var d=f.length,l=f[0].length,a=[],i=[],t=0,o,e={},u=0;u<l;++u){for(var r=0,o=0;r<d;++r)o+=f[r][u][1];o>t&&(t=o),a.push(o)}for(var s=0;s<l;++s)i[s]=(t-a[s])/2;t=0;for(var c=0;c<l;++c){var h=a[c]+i[c];h>t&&(t=h)}return e.y0=i,e.max=t,e}R.exports=S},Urep:function(R,D,n){},V6Ve:function(R,D,n){var y=n("kekF"),g=y(Object.keys,Object);R.exports=g},V7ic:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("digP")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="FileTwoTone";var i=m.forwardRef(a);D.default=i},VFCP:function(R,D,n){n("dBmv"),n("KamJ")},VPsl:function(R,D){function n(y){y.eachSeriesByType("map",function(g){var S=g.get("color"),m=g.getModel("itemStyle"),p=m.get("areaColor"),f=m.get("color")||S[g.seriesIndex%S.length];g.getData().setVisual({areaColor:p,color:f})})}R.exports=n},VR9l:function(R,D,n){var y=n("KCsZ"),g=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),S={getItemStyle:function(m,p){var f=g(this,m,p),d=this.getBorderLineDash();return d&&(f.lineDash=d),f},getBorderLineDash:function(){var m=this.get("borderType");return m==="solid"||m==null?null:m==="dashed"?[5,5]:[1,1]}};R.exports=S},VSLf:function(R,D,n){n("I+Bx"),n("F0hE"),n("bBKM")},VSMT:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.decodeUTF8=y,D.encodeUTF8=g;function y(S){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(S))}catch(p){if(p instanceof URIError&&m)return S;throw p}}function g(S){return unescape(encodeURIComponent(S))}},VXYp:function(R,D,n){var y=n("bYtY"),g=n("SgGq"),S=n("iLNv"),m="\0_ec_dataZoom_roams";function p(e,u){var r=l(e),s=u.dataZoomId,c=u.coordId;y.each(r,function(A,b){var x=A.dataZoomInfos;x[s]&&y.indexOf(u.allCoordIds,c)<0&&(delete x[s],A.count--)}),i(r);var h=r[c];h||(h=r[c]={coordId:c,dataZoomInfos:{},count:0},h.controller=a(e,h),h.dispatchAction=y.curry(t,e)),!h.dataZoomInfos[s]&&h.count++,h.dataZoomInfos[s]=u;var v=o(h.dataZoomInfos);h.controller.enable(v.controlType,v.opt),h.controller.setPointerChecker(u.containsPoint),S.createOrUpdate(h,"dispatchAction",u.dataZoomModel.get("throttle",!0),"fixRate")}function f(e,u){var r=l(e);y.each(r,function(s){s.controller.dispose();var c=s.dataZoomInfos;c[u]&&(delete c[u],s.count--)}),i(r)}function d(e){return e.type+"\0_"+e.id}function l(e){var u=e.getZr();return u[m]||(u[m]={})}function a(e,u){var r=new g(e.getZr());return y.each(["pan","zoom","scrollMove"],function(s){r.on(s,function(c){var h=[];y.each(u.dataZoomInfos,function(v){if(!c.isAvailableBehavior(v.dataZoomModel.option))return;var A=(v.getRange||{})[s],b=A&&A(u.controller,c);!v.dataZoomModel.get("disabled",!0)&&b&&h.push({dataZoomId:v.dataZoomId,start:b[0],end:b[1]})}),h.length&&u.dispatchAction(h)})}),r}function i(e){y.each(e,function(u,r){u.count||(u.controller.dispose(),delete e[r])})}function t(e,u){e.dispatchAction({type:"dataZoom",batch:u})}function o(e){var u,r="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},c=!0;return y.each(e,function(h){var v=h.dataZoomModel,A=v.get("disabled",!0)?!1:v.get("zoomLock",!0)?"move":!0;s[r+A]>s[r+u]&&(u=A),c&=v.get("preventDefaultMouseMove",!0)}),{controlType:u,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}}}D.register=p,D.unregister=f,D.generateCoordId=d},VaNO:function(R,D){function n(y){return this.__data__.has(y)}R.exports=n},VaxA:function(R,D,n){var y=n("bYtY");function g(f,d,l){if(f&&y.indexOf(d,f.type)>=0){var a=l.getData().tree.root,i=f.targetNode;if(typeof i=="string"&&(i=a.getNodeById(i)),i&&a.contains(i))return{node:i};var t=f.targetNodeId;if(t!=null&&(i=a.getNodeById(t)))return{node:i}}}function S(f){for(var d=[];f;)f=f.parentNode,f&&d.push(f);return d.reverse()}function m(f,d){var l=S(f);return y.indexOf(l,d)>=0}function p(f,d){for(var l=[];f;){var a=f.dataIndex;l.push({name:f.name,dataIndex:a,value:d.getRawValue(a)}),f=f.parentNode}return l.reverse(),l}D.retrieveTargetInfo=g,D.getPathToRoot=S,D.aboveViewRoot=m,D.wrapTreePathInfo=p},Vi4m:function(R,D,n){var y=n("bYtY");function g(m){m!=null&&y.extend(this,m),this.otherDims={}}var S=g;R.exports=S},Vl3Y:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("J4zp"),m=n.n(S),p=n("lSNA"),f=n.n(p),d=n("q1tI"),l=n("TSYQ"),a=n.n(l),i=n("85Yc"),t=n("H84U"),o=n("BGR+"),e=d.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),u=d.createContext({updateItemErrors:function(){}}),r=function(Kt){var vr=Object(o.default)(Kt,["prefixCls"]);return d.createElement(i.FormProvider,vr)};function s(me){return typeof me=="object"&&me!=null&&me.nodeType===1}function c(me,Kt){return(!Kt||me!=="hidden")&&me!=="visible"&&me!=="clip"}function h(me,Kt){if(me.clientHeight<me.scrollHeight||me.clientWidth<me.scrollWidth){var vr=getComputedStyle(me,null);return c(vr.overflowY,Kt)||c(vr.overflowX,Kt)||function(bt){var or=function(_t){if(!_t.ownerDocument||!_t.ownerDocument.defaultView)return null;try{return _t.ownerDocument.defaultView.frameElement}catch(jt){return null}}(bt);return!!or&&(or.clientHeight<bt.scrollHeight||or.clientWidth<bt.scrollWidth)}(me)}return!1}function v(me,Kt,vr,bt,or,_t,jt,ut){return _t<me&&jt>Kt||_t>me&&jt<Kt?0:_t<=me&&ut<=vr||jt>=Kt&&ut>=vr?_t-me-bt:jt>Kt&&ut<vr||_t<me&&ut>vr?jt-Kt+or:0}var A=function(Kt,vr){var bt=window,or=vr.scrollMode,_t=vr.block,jt=vr.inline,ut=vr.boundary,St=vr.skipOverflowHiddenElements,mt=typeof ut=="function"?ut:function(at){return at!==ut};if(!s(Kt))throw new TypeError("Invalid target");for(var lt,tt,Cr=document.scrollingElement||document.documentElement,nn=[],mn=Kt;s(mn)&&mt(mn);){if((mn=(tt=(lt=mn).parentElement)==null?lt.getRootNode().host||null:tt)===Cr){nn.push(mn);break}mn!=null&&mn===document.body&&h(mn)&&!h(document.documentElement)||mn!=null&&h(mn,St)&&nn.push(mn)}for(var Bn=bt.visualViewport?bt.visualViewport.width:innerWidth,oi=bt.visualViewport?bt.visualViewport.height:innerHeight,wn=window.scrollX||pageXOffset,Rn=window.scrollY||pageYOffset,Zt=Kt.getBoundingClientRect(),Tt=Zt.height,De=Zt.width,Re=Zt.top,Pe=Zt.right,rt=Zt.bottom,wt=Zt.left,Ot=_t==="start"||_t==="nearest"?Re:_t==="end"?rt:Re+Tt/2,$t=jt==="center"?wt+De/2:jt==="end"?Pe:wt,Mr=[],Vr=0;Vr<nn.length;Vr++){var hn=nn[Vr],Vt=hn.getBoundingClientRect(),yt=Vt.height,xt=Vt.width,dr=Vt.top,er=Vt.right,Ut=Vt.bottom,ir=Vt.left;if(or==="if-needed"&&Re>=0&&wt>=0&&rt<=oi&&Pe<=Bn&&Re>=dr&&rt<=Ut&&wt>=ir&&Pe<=er)return Mr;var Ft=getComputedStyle(hn),rr=parseInt(Ft.borderLeftWidth,10),Kr=parseInt(Ft.borderTopWidth,10),Rr=parseInt(Ft.borderRightWidth,10),kr=parseInt(Ft.borderBottomWidth,10),dn=0,yn=0,ri="offsetWidth"in hn?hn.offsetWidth-hn.clientWidth-rr-Rr:0,$n="offsetHeight"in hn?hn.offsetHeight-hn.clientHeight-Kr-kr:0,pi="offsetWidth"in hn?hn.offsetWidth===0?0:xt/hn.offsetWidth:0,_i="offsetHeight"in hn?hn.offsetHeight===0?0:yt/hn.offsetHeight:0;if(Cr===hn)dn=_t==="start"?Ot:_t==="end"?Ot-oi:_t==="nearest"?v(Rn,Rn+oi,oi,Kr,kr,Rn+Ot,Rn+Ot+Tt,Tt):Ot-oi/2,yn=jt==="start"?$t:jt==="center"?$t-Bn/2:jt==="end"?$t-Bn:v(wn,wn+Bn,Bn,rr,Rr,wn+$t,wn+$t+De,De),dn=Math.max(0,dn+Rn),yn=Math.max(0,yn+wn);else{dn=_t==="start"?Ot-dr-Kr:_t==="end"?Ot-Ut+kr+$n:_t==="nearest"?v(dr,Ut,yt,Kr,kr+$n,Ot,Ot+Tt,Tt):Ot-(dr+yt/2)+$n/2,yn=jt==="start"?$t-ir-rr:jt==="center"?$t-(ir+xt/2)+ri/2:jt==="end"?$t-er+Rr+ri:v(ir,er,xt,rr,Rr+ri,$t,$t+De,De);var Di=hn.scrollLeft,Wi=hn.scrollTop;Ot+=Wi-(dn=Math.max(0,Math.min(Wi+dn/_i,hn.scrollHeight-yt/_i+$n))),$t+=Di-(yn=Math.max(0,Math.min(Di+yn/pi,hn.scrollWidth-xt/pi+ri)))}Mr.push({el:hn,top:dn,left:yn})}return Mr};function b(me){return me===Object(me)&&Object.keys(me).length!==0}function x(me,Kt){Kt===void 0&&(Kt="auto");var vr="scrollBehavior"in document.body.style;me.forEach(function(bt){var or=bt.el,_t=bt.top,jt=bt.left;or.scroll&&vr?or.scroll({top:_t,left:jt,behavior:Kt}):(or.scrollTop=_t,or.scrollLeft=jt)})}function E(me){return me===!1?{block:"end",inline:"nearest"}:b(me)?me:{block:"start",inline:"nearest"}}function T(me,Kt){var vr=me.isConnected||me.ownerDocument.documentElement.contains(me);if(b(Kt)&&typeof Kt.behavior=="function")return Kt.behavior(vr?A(me,Kt):[]);if(!vr)return;var bt=E(Kt);return x(A(me,bt),bt.behavior)}var _=T;function C(me){return me===void 0||me===!1?[]:Array.isArray(me)?me:[me]}function w(me,Kt){if(!me.length)return;var vr=me.join("_");return Kt?"".concat(Kt,"_").concat(vr):vr}function O(me){var Kt=C(me);return Kt.join("_")}function I(me){var Kt=Object(i.useForm)(),vr=m()(Kt,1),bt=vr[0],or=Object(d.useRef)({}),_t=Object(d.useMemo)(function(){return me||g()(g()({},bt),{__INTERNAL__:{itemRef:function(ut){return function(St){var mt=O(ut);St?or.current[mt]=St:delete or.current[mt]}}},scrollToField:function(ut){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mt=C(ut),lt=w(mt,_t.__INTERNAL__.name),tt=lt?document.getElementById(lt):null;tt&&_(tt,g()({scrollMode:"if-needed",block:"nearest"},St))},getFieldInstance:function(ut){var St=O(ut);return or.current[St]}})},[me,bt]);return[_t]}var k=n("3Nzz"),M=function(me,Kt){var vr={};for(var bt in me)Object.prototype.hasOwnProperty.call(me,bt)&&Kt.indexOf(bt)<0&&(vr[bt]=me[bt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var or=0,bt=Object.getOwnPropertySymbols(me);or<bt.length;or++)Kt.indexOf(bt[or])<0&&Object.prototype.propertyIsEnumerable.call(me,bt[or])&&(vr[bt[or]]=me[bt[or]]);return vr},U=function(Kt,vr){var bt,or=d.useContext(k.b),_t=d.useContext(t.b),jt=_t.getPrefixCls,ut=_t.direction,St=Kt.name,mt=Kt.prefixCls,lt=Kt.className,tt=lt===void 0?"":lt,Cr=Kt.size,nn=Cr===void 0?or:Cr,mn=Kt.form,Bn=Kt.colon,oi=Kt.labelAlign,wn=Kt.labelCol,Rn=Kt.wrapperCol,Zt=Kt.hideRequiredMark,Tt=Kt.layout,De=Tt===void 0?"horizontal":Tt,Re=Kt.scrollToFirstError,Pe=Kt.requiredMark,rt=Kt.onFinishFailed,wt=M(Kt,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),Ot=Object(d.useMemo)(function(){return Pe!==void 0?Pe:!Zt},[Zt,Pe]),$t=jt("form",mt),Mr=a()($t,(bt={},f()(bt,"".concat($t,"-").concat(De),!0),f()(bt,"".concat($t,"-hide-required-mark"),Ot===!1),f()(bt,"".concat($t,"-rtl"),ut==="rtl"),f()(bt,"".concat($t,"-").concat(nn),nn),bt),tt),Vr=I(mn),hn=m()(Vr,1),Vt=hn[0],yt=Vt.__INTERNAL__;yt.name=St;var xt=Object(d.useMemo)(function(){return{name:St,labelAlign:oi,labelCol:wn,wrapperCol:Rn,vertical:De==="vertical",colon:Bn,requiredMark:Ot,itemRef:yt.itemRef}},[St,oi,wn,Rn,De,Bn,Ot]);d.useImperativeHandle(vr,function(){return Vt});var dr=function(Ut){rt&&rt(Ut),Re&&Ut.errorFields.length&&Vt.scrollToField(Ut.errorFields[0].name)};return d.createElement(k.a,{size:nn},d.createElement(e.Provider,{value:xt},d.createElement(i.default,g()({id:St},wt,{onFinishFailed:dr,form:Vt,className:Mr}))))},P=d.forwardRef(U),X=P,F=n("cDf5"),j=n.n(F),K=n("RIqP"),z=n.n(K),V=n("Y+p1"),Q=n.n(V),G=n("KW7l"),te=n("c+Xe"),q=n("qrJ5"),se=n("CWQg"),re=n("uaoM"),we=n("/kpp"),Oe=n("YMnH"),Me=n("ZvpZ"),Qe=function(Kt){var vr=Kt.prefixCls,bt=Kt.label,or=Kt.htmlFor,_t=Kt.labelCol,jt=Kt.labelAlign,ut=Kt.colon,St=Kt.required,mt=Kt.requiredMark,lt=Object(Oe.b)("Form"),tt=m()(lt,1),Cr=tt[0];return bt?d.createElement(e.Consumer,{key:"label"},function(nn){var mn,Bn=nn.vertical,oi=nn.labelAlign,wn=nn.labelCol,Rn=nn.colon,Zt,Tt=_t||wn||{},De=jt||oi,Re="".concat(vr,"-item-label"),Pe=a()(Re,De==="left"&&"".concat(Re,"-left"),Tt.className),rt=bt,wt=ut===!0||Rn!==!1&&ut!==!1,Ot=wt&&!Bn;Ot&&typeof bt=="string"&&bt.trim()!==""&&(rt=bt.replace(/[:|]\s*$/,"")),mt==="optional"&&!St&&(rt=d.createElement(d.Fragment,null,rt,d.createElement("span",{className:"".concat(vr,"-item-optional")},(Cr==null?void 0:Cr.optional)||((Zt=Me.a.Form)===null||Zt===void 0?void 0:Zt.optional))));var $t=a()((mn={},f()(mn,"".concat(vr,"-item-required"),St),f()(mn,"".concat(vr,"-item-required-mark-optional"),mt==="optional"),f()(mn,"".concat(vr,"-item-no-colon"),!wt),mn));return d.createElement(we.a,g()({},Tt,{className:Pe}),d.createElement("label",{htmlFor:or,className:$t,title:typeof bt=="string"?bt:""},rt))}):null},Ve=Qe,dt=n("gZBC"),Fe=n.n(dt),ue=n("kbBi"),et=n.n(ue),he=n("J84W"),J=n.n(he),Y=n("sKbD"),$=n.n(Y),de=n("YrtM"),be=n("HTfv"),Te=n("hkKa");function Be(me,Kt,vr){var bt=d.useRef({errors:me,visible:!!me.length}),or=Object(Te.a)(),_t=function(){var ut=bt.current.visible,St=!!me.length,mt=bt.current.errors;bt.current.errors=me,bt.current.visible=St,ut!==St?Kt(St):(mt.length!==me.length||mt.some(function(lt,tt){return lt!==me[tt]}))&&or()};return d.useEffect(function(){if(!vr){var jt=setTimeout(_t,10);return function(){return clearTimeout(jt)}}},[me]),vr&&_t(),[bt.current.visible,bt.current.errors]}var fe={success:J.a,warning:$.a,error:et.a,validating:Fe.a},xe=function(Kt){var vr=Kt.prefixCls,bt=Kt.wrapperCol,or=Kt.children,_t=Kt.help,jt=Kt.errors,ut=Kt.onDomErrorVisibleChange,St=Kt.hasFeedback,mt=Kt.validateStatus,lt=Kt.extra,tt=Object(Te.a)(),Cr="".concat(vr,"-item"),nn=d.useContext(e),mn=bt||nn.wrapperCol||{},Bn=a()("".concat(Cr,"-control"),mn.className),oi=Be(jt,function(rt){rt&&Promise.resolve().then(function(){ut(!0)}),tt()},!!_t),wn=m()(oi,2),Rn=wn[0],Zt=wn[1];d.useEffect(function(){return function(){ut(!1)}},[]);var Tt=Object(de.a)(function(){return Zt},Rn,function(rt,wt){return wt}),De=mt&&fe[mt],Re=St&&De?d.createElement("span",{className:"".concat(Cr,"-children-icon")},d.createElement(De,null)):null,Pe=g()({},nn);return delete Pe.labelCol,delete Pe.wrapperCol,d.createElement(e.Provider,{value:Pe},d.createElement(we.a,g()({},mn,{className:Bn}),d.createElement("div",{className:"".concat(Cr,"-control-input")},d.createElement("div",{className:"".concat(Cr,"-control-input-content")},or),Re),d.createElement(be.default,{motionDeadline:500,visible:Rn,motionName:"show-help",onLeaveEnd:function(){ut(!1)},motionAppear:!0,removeOnLeave:!0},function(rt){var wt=rt.className;return d.createElement("div",{className:a()("".concat(Cr,"-explain"),wt),key:"help"},Tt.map(function(Ot,$t){return d.createElement("div",{key:$t,role:"alert"},Ot)}))}),lt&&d.createElement("div",{className:"".concat(Cr,"-extra")},lt)))},ke=xe,nt=n("0n0R"),Ct=n("xEkU"),pt=n.n(Ct);function He(me){var Kt=d.useState(me),vr=m()(Kt,2),bt=vr[0],or=vr[1],_t=Object(d.useRef)(null),jt=Object(d.useRef)([]),ut=Object(d.useRef)(!1);d.useEffect(function(){return function(){ut.current=!0,pt.a.cancel(_t.current)}},[]);function St(mt){if(ut.current)return;_t.current===null&&(jt.current=[],_t.current=pt()(function(){_t.current=null,or(function(lt){var tt=lt;return jt.current.forEach(function(Cr){tt=Cr(tt)}),tt})})),jt.current.push(mt)}return[bt,St]}function nr(){var me=d.useContext(e),Kt=me.itemRef,vr=d.useRef({});function bt(or,_t){var jt=_t&&j()(_t)==="object"&&_t.ref,ut=or.join("_");return(vr.current.name!==ut||vr.current.originRef!==jt)&&(vr.current.name=ut,vr.current.originRef=jt,vr.current.ref=Object(te.a)(Kt(or),jt)),vr.current.ref}return bt}var ht=function(me,Kt){var vr={};for(var bt in me)Object.prototype.hasOwnProperty.call(me,bt)&&Kt.indexOf(bt)<0&&(vr[bt]=me[bt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var or=0,bt=Object.getOwnPropertySymbols(me);or<bt.length;or++)Kt.indexOf(bt[or])<0&&Object.prototype.propertyIsEnumerable.call(me,bt[or])&&(vr[bt[or]]=me[bt[or]]);return vr},Gt=Object(se.a)("success","warning","error","validating",""),pr=d.memo(function(me){var Kt=me.children;return Kt},function(me,Kt){return me.value===Kt.value&&me.update===Kt.update});function Qt(me){return me===null&&Object(re.a)(!1,"Form.Item","`null` is passed as `name` property"),!(me==null)}function Ht(me){var Kt=me.name,vr=me.fieldKey,bt=me.noStyle,or=me.dependencies,_t=me.prefixCls,jt=me.style,ut=me.className,St=me.shouldUpdate,mt=me.hasFeedback,lt=me.help,tt=me.rules,Cr=me.validateStatus,nn=me.children,mn=me.required,Bn=me.label,oi=me.trigger,wn=oi===void 0?"onChange":oi,Rn=me.validateTrigger,Zt=me.hidden,Tt=ht(me,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),De=d.useRef(!1),Re=d.useContext(t.b),Pe=Re.getPrefixCls,rt=d.useContext(e),wt=rt.name,Ot=rt.requiredMark,$t=d.useContext(u),Mr=$t.updateItemErrors,Vr=d.useState(!!lt),hn=m()(Vr,2),Vt=hn[0],yt=hn[1],xt=d.useRef(Cr),dr=He({}),er=m()(dr,2),Ut=er[0],ir=er[1],Ft=d.useContext(G.b),rr=Ft.validateTrigger,Kr=Rn!==void 0?Rn:rr;function Rr(at){De.current||yt(at)}var kr=Qt(Kt),dn=d.useRef([]);d.useEffect(function(){return function(){De.current=!0,Mr(dn.current.join("__SPLIT__"),[])}},[]);var yn=Pe("form",_t),ri=bt?Mr:function(at,Le){ir(function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Q()(je[at],Le)?je:g()(g()({},je),f()({},at,Le))})},$n=nr();function pi(at,Le,je,Xe){var it,Ze;if(bt&&!Zt)return at;var ot=[];Object.keys(Ut).forEach(function(qr){ot=[].concat(z()(ot),z()(Ut[qr]||[]))});var Lt;lt!=null?Lt=C(lt):(Lt=je?je.errors:[],Lt=[].concat(z()(Lt),z()(ot)));var At="";Cr!==void 0?At=Cr:(je==null?void 0:je.validating)?At="validating":((Ze=je==null?void 0:je.errors)===null||Ze===void 0?void 0:Ze.length)||ot.length?At="error":(je==null?void 0:je.touched)&&(At="success"),Vt&&lt&&(xt.current=At);var mr=(it={},f()(it,"".concat(yn,"-item"),!0),f()(it,"".concat(yn,"-item-with-help"),Vt||lt),f()(it,"".concat(ut),!!ut),f()(it,"".concat(yn,"-item-has-feedback"),At&&mt),f()(it,"".concat(yn,"-item-has-success"),At==="success"),f()(it,"".concat(yn,"-item-has-warning"),At==="warning"),f()(it,"".concat(yn,"-item-has-error"),At==="error"),f()(it,"".concat(yn,"-item-has-error-leave"),!lt&&Vt&&xt.current==="error"),f()(it,"".concat(yn,"-item-is-validating"),At==="validating"),f()(it,"".concat(yn,"-item-hidden"),Zt),it);return d.createElement(q.a,g()({className:a()(mr),style:jt,key:"row"},Object(o.default)(Tt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),d.createElement(Ve,g()({htmlFor:Le,required:Xe,requiredMark:Ot},me,{prefixCls:yn})),d.createElement(ke,g()({},me,je,{errors:Lt,prefixCls:yn,onDomErrorVisibleChange:Rr,validateStatus:At}),d.createElement(u.Provider,{value:{updateItemErrors:ri}},at)))}var _i=typeof nn=="function",Di=d.useRef(0);if(Di.current+=1,!kr&&!_i&&!or)return pi(nn);var Wi={};return typeof Bn=="string"&&(Wi.label=Bn),d.createElement(i.Field,g()({},me,{messageVariables:Wi,trigger:wn,validateTrigger:Kr,onReset:function(){Rr(!1)}}),function(at,Le,je){var Xe=Le.errors,it=C(Kt).length&&Le?Le.name:[],Ze=w(it,wt);if(bt){if(dn.current=z()(it),vr){var ot=Array.isArray(vr)?vr:[vr];dn.current=[].concat(z()(it.slice(0,-1)),z()(ot))}Mr(dn.current.join("__SPLIT__"),Xe)}var Lt=mn!==void 0?mn:!!(tt&&tt.some(function(gn){if(gn&&j()(gn)==="object"&&gn.required)return!0;if(typeof gn=="function"){var yr=gn(je);return yr&&yr.required}return!1})),At=g()({},at),mr=null;if(Object(re.a)(!(St&&or),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(nn)&&kr)Object(re.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),mr=nn;else if(_i&&(!(St||or)||kr))Object(re.a)(!!(St||or),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(re.a)(!kr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(or&&!_i&&!kr)Object(re.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(nt.b)(nn)){Object(re.a)(nn.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var qr=g()(g()({},nn.props),At);qr.id||(qr.id=Ze),Object(te.c)(nn)&&(qr.ref=$n(it,nn));var Qr=new Set([].concat(z()(C(wn)),z()(C(Kr))));Qr.forEach(function(gn){qr[gn]=function(){for(var yr,Vn,Br,jn,xn,tn=arguments.length,ti=new Array(tn),mi=0;mi<tn;mi++)ti[mi]=arguments[mi];(Br=At[gn])===null||Br===void 0||(yr=Br).call.apply(yr,[At].concat(ti)),(xn=(jn=nn.props)[gn])===null||xn===void 0||(Vn=xn).call.apply(Vn,[jn].concat(ti))}}),mr=d.createElement(pr,{value:At[me.valuePropName||"value"],update:Di.current},Object(nt.a)(nn,qr))}else _i&&(St||or)&&!kr?mr=nn(je):(Object(re.a)(!it.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),mr=nn);return pi(mr,Ze,Le,Lt)})}var Jt=Ht,Ge=function(me,Kt){var vr={};for(var bt in me)Object.prototype.hasOwnProperty.call(me,bt)&&Kt.indexOf(bt)<0&&(vr[bt]=me[bt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var or=0,bt=Object.getOwnPropertySymbols(me);or<bt.length;or++)Kt.indexOf(bt[or])<0&&Object.prototype.propertyIsEnumerable.call(me,bt[or])&&(vr[bt[or]]=me[bt[or]]);return vr},pe=function(Kt){var vr=Kt.children,bt=Ge(Kt,["children"]);return Object(re.a)(!!bt.name,"Form.List","Miss `name` prop."),d.createElement(i.List,bt,function(or,_t){return vr(or.map(function(jt){return g()(g()({},jt),{fieldKey:jt.key})}),_t)})},oe=pe,ct=X;ct.Item=Jt,ct.List=oe,ct.useForm=I,ct.Provider=r,ct.create=function(){Object(re.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var qe=D.a=ct},VpOo:function(R,D){function n(y,g){var S=g.x,m=g.y,p=g.width,f=g.height,d=g.r,l,a,i,t;p<0&&(S=S+p,p=-p),f<0&&(m=m+f,f=-f),typeof d=="number"?l=a=i=t=d:d instanceof Array?d.length===1?l=a=i=t=d[0]:d.length===2?(l=i=d[0],a=t=d[1]):d.length===3?(l=d[0],a=t=d[1],i=d[2]):(l=d[0],a=d[1],i=d[2],t=d[3]):l=a=i=t=0;var o;l+a>p&&(o=l+a,l*=p/o,a*=p/o),i+t>p&&(o=i+t,i*=p/o,t*=p/o),a+i>f&&(o=a+i,a*=f/o,i*=f/o),l+t>f&&(o=l+t,l*=f/o,t*=f/o),y.moveTo(S+l,m),y.lineTo(S+p-a,m),a!==0&&y.arc(S+p-a,m+a,a,-Math.PI/2,0),y.lineTo(S+p,m+f-i),i!==0&&y.arc(S+p-i,m+f-i,i,0,Math.PI/2),y.lineTo(S+t,m+f),t!==0&&y.arc(S+t,m+f-t,t,Math.PI/2,Math.PI),y.lineTo(S,m+l),l!==0&&y.arc(S+l,m+l,l,Math.PI,Math.PI*1.5)}D.buildPath=n},"VrN/":function(R,D,n){(function(y,g){R.exports=g()})(this,function(){"use strict";var y=navigator.userAgent,g=navigator.platform,S=/gecko\/\d/i.test(y),m=/MSIE \d/.test(y),p=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),f=/Edge\/(\d+)/.exec(y),d=m||p||f,l=d&&(m?document.documentMode||6:+(f||p)[1]),a=!f&&/WebKit\//.test(y),i=a&&/Qt\/\d+\.\d+/.test(y),t=!f&&/Chrome\//.test(y),o=/Opera\//.test(y),e=/Apple Computer/.test(navigator.vendor),u=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(y),r=/PhantomJS/.test(y),s=!f&&/AppleWebKit/.test(y)&&/Mobile\/\w+/.test(y),c=/Android/.test(y),h=s||c||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(y),v=s||/Mac/.test(g),A=/\bCrOS\b/.test(y),b=/win/i.test(g),x=o&&y.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(o=!1,a=!0);var E=v&&(i||o&&(x==null||x<12.11)),T=S||d&&l>=9;function _(N){return new RegExp("(^|\\s)"+N+"(?:$|\\s)\\s*")}var C=function(B,ie){var le=B.className,ge=_(ie).exec(le);if(ge){var Ke=le.slice(ge.index+ge[0].length);B.className=le.slice(0,ge.index)+(Ke?ge[1]+Ke:"")}};function w(N){for(var B=N.childNodes.length;B>0;--B)N.removeChild(N.firstChild);return N}function O(N,B){return w(N).appendChild(B)}function I(N,B,ie,le){var ge=document.createElement(N);if(ie&&(ge.className=ie),le&&(ge.style.cssText=le),typeof B=="string")ge.appendChild(document.createTextNode(B));else if(B)for(var Ke=0;Ke<B.length;++Ke)ge.appendChild(B[Ke]);return ge}function k(N,B,ie,le){var ge=I(N,B,ie,le);return ge.setAttribute("role","presentation"),ge}var M;document.createRange?M=function(B,ie,le,ge){var Ke=document.createRange();return Ke.setEnd(ge||B,le),Ke.setStart(B,ie),Ke}:M=function(B,ie,le){var ge=document.body.createTextRange();try{ge.moveToElementText(B.parentNode)}catch(Ke){return ge}return ge.collapse(!0),ge.moveEnd("character",le),ge.moveStart("character",ie),ge};function U(N,B){if(B.nodeType==3&&(B=B.parentNode),N.contains)return N.contains(B);do if(B.nodeType==11&&(B=B.host),B==N)return!0;while(B=B.parentNode)}function P(){var N;try{N=document.activeElement}catch(B){N=document.body||null}for(;N&&N.shadowRoot&&N.shadowRoot.activeElement;)N=N.shadowRoot.activeElement;return N}function X(N,B){var ie=N.className;_(B).test(ie)||(N.className+=(ie?" ":"")+B)}function F(N,B){for(var ie=N.split(" "),le=0;le<ie.length;le++)ie[le]&&!_(ie[le]).test(B)&&(B+=" "+ie[le]);return B}var j=function(B){B.select()};s?j=function(B){B.selectionStart=0,B.selectionEnd=B.value.length}:d&&(j=function(B){try{B.select()}catch(ie){}});function K(N){var B=Array.prototype.slice.call(arguments,1);return function(){return N.apply(null,B)}}function z(N,B,ie){B||(B={});for(var le in N)N.hasOwnProperty(le)&&(ie!==!1||!B.hasOwnProperty(le))&&(B[le]=N[le]);return B}function V(N,B,ie,le,ge){B==null&&(B=N.search(/[^\s\u00a0]/),B==-1&&(B=N.length));for(var Ke=le||0,Rt=ge||0;;){var sr=N.indexOf(" ",Ke);if(sr<0||sr>=B)return Rt+(B-Ke);Rt+=sr-Ke,Rt+=ie-Rt%ie,Ke=sr+1}}var Q=function(){this.id=null,this.f=null,this.time=0,this.handler=K(this.onTimeout,this)};Q.prototype.onTimeout=function(N){N.id=0,N.time<=+new Date?N.f():setTimeout(N.handler,N.time-+new Date)},Q.prototype.set=function(N,B){this.f=B;var ie=+new Date+N;(!this.id||ie<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,N),this.time=ie)};function G(N,B){for(var ie=0;ie<N.length;++ie)if(N[ie]==B)return ie;return-1}var te=50,q={toString:function(){return"CodeMirror.Pass"}},se={scroll:!1},re={origin:"*mouse"},we={origin:"+move"};function Oe(N,B,ie){for(var le=0,ge=0;;){var Ke=N.indexOf(" ",le);Ke==-1&&(Ke=N.length);var Rt=Ke-le;if(Ke==N.length||ge+Rt>=B)return le+Math.min(Rt,B-ge);if(ge+=Ke-le,ge+=ie-ge%ie,le=Ke+1,ge>=B)return le}}var Me=[""];function Qe(N){for(;Me.length<=N;)Me.push(Ve(Me)+" ");return Me[N]}function Ve(N){return N[N.length-1]}function dt(N,B){for(var ie=[],le=0;le<N.length;le++)ie[le]=B(N[le],le);return ie}function Fe(N,B,ie){for(var le=0,ge=ie(B);le<N.length&&ie(N[le])<=ge;)le++;N.splice(le,0,B)}function ue(){}function et(N,B){var ie;return Object.create?ie=Object.create(N):(ue.prototype=N,ie=new ue),B&&z(B,ie),ie}var he=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(N){return/\w/.test(N)||N>"\x80"&&(N.toUpperCase()!=N.toLowerCase()||he.test(N))}function Y(N,B){return B?B.source.indexOf("\\w")>-1&&J(N)?!0:B.test(N):J(N)}function $(N){for(var B in N)if(N.hasOwnProperty(B)&&N[B])return!1;return!0}var de=/[\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 be(N){return N.charCodeAt(0)>=768&&de.test(N)}function Te(N,B,ie){for(;(ie<0?B>0:B<N.length)&&be(N.charAt(B));)B+=ie;return B}function Be(N,B,ie){for(var le=B>ie?-1:1;;){if(B==ie)return B;var ge=(B+ie)/2,Ke=le<0?Math.ceil(ge):Math.floor(ge);if(Ke==B)return N(Ke)?B:ie;N(Ke)?ie=Ke:B=Ke+le}}function fe(N,B,ie,le){if(!N)return le(B,ie,"ltr",0);for(var ge=!1,Ke=0;Ke<N.length;++Ke){var Rt=N[Ke];(Rt.from<ie&&Rt.to>B||B==ie&&Rt.to==B)&&(le(Math.max(Rt.from,B),Math.min(Rt.to,ie),Rt.level==1?"rtl":"ltr",Ke),ge=!0)}ge||le(B,ie,"ltr")}var xe=null;function ke(N,B,ie){var le;xe=null;for(var ge=0;ge<N.length;++ge){var Ke=N[ge];if(Ke.from<B&&Ke.to>B)return ge;Ke.to==B&&(Ke.from!=Ke.to&&ie=="before"?le=ge:xe=ge),Ke.from==B&&(Ke.from!=Ke.to&&ie!="before"?le=ge:xe=ge)}return le!=null?le:xe}var nt=function(){var N="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",B="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ie(Ir){return Ir<=247?N.charAt(Ir):1424<=Ir&&Ir<=1524?"R":1536<=Ir&&Ir<=1785?B.charAt(Ir-1536):1774<=Ir&&Ir<=2220?"r":8192<=Ir&&Ir<=8203?"w":Ir==8204?"b":"L"}var le=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ge=/[stwN]/,Ke=/[LRr]/,Rt=/[Lb1n]/,sr=/[1n]/;function xr(Ir,Kn,ni){this.level=Ir,this.from=Kn,this.to=ni}return function(Ir,Kn){var ni=Kn=="ltr"?"L":"R";if(Ir.length==0||Kn=="ltr"&&!le.test(Ir))return!1;for(var Ei=Ir.length,Oi=[],la=0;la<Ei;++la)Oi.push(ie(Ir.charCodeAt(la)));for(var Ca=0,Wa=ni;Ca<Ei;++Ca){var Ma=Oi[Ca];Ma=="m"?Oi[Ca]=Wa:Wa=Ma}for(var Na=0,qa=ni;Na<Ei;++Na){var ho=Oi[Na];ho=="1"&&qa=="r"?Oi[Na]="n":Ke.test(ho)&&(qa=ho,ho=="r"&&(Oi[Na]="R"))}for(var ns=1,Mo=Oi[0];ns<Ei-1;++ns){var xs=Oi[ns];xs=="+"&&Mo=="1"&&Oi[ns+1]=="1"?Oi[ns]="1":xs==","&&Mo==Oi[ns+1]&&(Mo=="1"||Mo=="n")&&(Oi[ns]=Mo),Mo=xs}for(var Zs=0;Zs<Ei;++Zs){var yl=Oi[Zs];if(yl==",")Oi[Zs]="N";else if(yl=="%"){var ul=void 0;for(ul=Zs+1;ul<Ei&&Oi[ul]=="%";++ul);for(var Pl=Zs&&Oi[Zs-1]=="!"||ul<Ei&&Oi[ul]=="1"?"1":"N",Vl=Zs;Vl<ul;++Vl)Oi[Vl]=Pl;Zs=ul-1}}for(var Il=0,Gl=ni;Il<Ei;++Il){var Fl=Oi[Il];Gl=="L"&&Fl=="1"?Oi[Il]="L":Ke.test(Fl)&&(Gl=Fl)}for(var Ja=0;Ja<Ei;++Ja)if(ge.test(Oi[Ja])){var vl=void 0;for(vl=Ja+1;vl<Ei&&ge.test(Oi[vl]);++vl);for(var gl=(Ja?Oi[Ja-1]:ni)=="L",El=(vl<Ei?Oi[vl]:ni)=="L",Bu=gl==El?gl?"L":"R":ni,Ks=Ja;Ks<vl;++Ks)Oi[Ks]=Bu;Ja=vl-1}for(var vs=[],lu,Kl=0;Kl<Ei;)if(Rt.test(Oi[Kl])){var Uu=Kl;for(++Kl;Kl<Ei&&Rt.test(Oi[Kl]);++Kl);vs.push(new xr(0,Uu,Kl))}else{var Eu=Kl,uu=vs.length,ku=Kn=="rtl"?1:0;for(++Kl;Kl<Ei&&Oi[Kl]!="L";++Kl);for(var Yl=Eu;Yl<Kl;)if(sr.test(Oi[Yl])){Eu<Yl&&(vs.splice(uu,0,new xr(1,Eu,Yl)),uu+=ku);var Cu=Yl;for(++Yl;Yl<Kl&&sr.test(Oi[Yl]);++Yl);vs.splice(uu,0,new xr(2,Cu,Yl)),uu+=ku,Eu=Yl}else++Yl;Eu<Kl&&vs.splice(uu,0,new xr(1,Eu,Kl))}return Kn=="ltr"&&(vs[0].level==1&&(lu=Ir.match(/^\s+/))&&(vs[0].from=lu[0].length,vs.unshift(new xr(0,0,lu[0].length))),Ve(vs).level==1&&(lu=Ir.match(/\s+$/))&&(Ve(vs).to-=lu[0].length,vs.push(new xr(0,Ei-lu[0].length,Ei)))),Kn=="rtl"?vs.reverse():vs}}();function Ct(N,B){var ie=N.order;return ie==null&&(ie=N.order=nt(N.text,B)),ie}var pt=[],He=function(B,ie,le){if(B.addEventListener)B.addEventListener(ie,le,!1);else if(B.attachEvent)B.attachEvent("on"+ie,le);else{var ge=B._handlers||(B._handlers={});ge[ie]=(ge[ie]||pt).concat(le)}};function nr(N,B){return N._handlers&&N._handlers[B]||pt}function ht(N,B,ie){if(N.removeEventListener)N.removeEventListener(B,ie,!1);else if(N.detachEvent)N.detachEvent("on"+B,ie);else{var le=N._handlers,ge=le&&le[B];if(ge){var Ke=G(ge,ie);Ke>-1&&(le[B]=ge.slice(0,Ke).concat(ge.slice(Ke+1)))}}}function Gt(N,B){var ie=nr(N,B);if(!ie.length)return;for(var le=Array.prototype.slice.call(arguments,2),ge=0;ge<ie.length;++ge)ie[ge].apply(null,le)}function pr(N,B,ie){return typeof B=="string"&&(B={type:B,preventDefault:function(){this.defaultPrevented=!0}}),Gt(N,ie||B.type,N,B),oe(B)||B.codemirrorIgnore}function Qt(N){var B=N._handlers&&N._handlers.cursorActivity;if(!B)return;for(var ie=N.curOp.cursorActivityHandlers||(N.curOp.cursorActivityHandlers=[]),le=0;le<B.length;++le)G(ie,B[le])==-1&&ie.push(B[le])}function Ht(N,B){return nr(N,B).length>0}function Jt(N){N.prototype.on=function(B,ie){He(this,B,ie)},N.prototype.off=function(B,ie){ht(this,B,ie)}}function Ge(N){N.preventDefault?N.preventDefault():N.returnValue=!1}function pe(N){N.stopPropagation?N.stopPropagation():N.cancelBubble=!0}function oe(N){return N.defaultPrevented!=null?N.defaultPrevented:N.returnValue==!1}function ct(N){Ge(N),pe(N)}function qe(N){return N.target||N.srcElement}function me(N){var B=N.which;return B==null&&(N.button&1?B=1:N.button&2?B=3:N.button&4&&(B=2)),v&&N.ctrlKey&&B==1&&(B=3),B}var Kt=function(){if(d&&l<9)return!1;var N=I("div");return"draggable"in N||"dragDrop"in N}(),vr;function bt(N){if(vr==null){var B=I("span","\u200B");O(N,I("span",[B,document.createTextNode("x")])),N.firstChild.offsetHeight!=0&&(vr=B.offsetWidth<=1&&B.offsetHeight>2&&!(d&&l<8))}var ie=vr?I("span","\u200B"):I("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ie.setAttribute("cm-text",""),ie}var or;function _t(N){if(or!=null)return or;var B=O(N,document.createTextNode("A\u062EA")),ie=M(B,0,1).getBoundingClientRect(),le=M(B,1,2).getBoundingClientRect();return w(N),!ie||ie.left==ie.right?!1:or=le.right-ie.right<3}var jt=`
b`.split(/\n/).length!=3?function(N){for(var B=0,ie=[],le=N.length;B<=le;){var ge=N.indexOf(`
`,B);ge==-1&&(ge=N.length);var Ke=N.slice(B,N.charAt(ge-1)=="\r"?ge-1:ge),Rt=Ke.indexOf("\r");Rt!=-1?(ie.push(Ke.slice(0,Rt)),B+=Rt+1):(ie.push(Ke),B=ge+1)}return ie}:function(N){return N.split(/\r\n?|\n/)},ut=window.getSelection?function(N){try{return N.selectionStart!=N.selectionEnd}catch(B){return!1}}:function(N){var B;try{B=N.ownerDocument.selection.createRange()}catch(ie){}return!B||B.parentElement()!=N?!1:B.compareEndPoints("StartToEnd",B)!=0},St=function(){var N=I("div");return"oncopy"in N?!0:(N.setAttribute("oncopy","return;"),typeof N.oncopy=="function")}(),mt=null;function lt(N){if(mt!=null)return mt;var B=O(N,I("span","x")),ie=B.getBoundingClientRect(),le=M(B,0,1).getBoundingClientRect();return mt=Math.abs(ie.left-le.left)>1}var tt={},Cr={};function nn(N,B){arguments.length>2&&(B.dependencies=Array.prototype.slice.call(arguments,2)),tt[N]=B}function mn(N,B){Cr[N]=B}function Bn(N){if(typeof N=="string"&&Cr.hasOwnProperty(N))N=Cr[N];else if(N&&typeof N.name=="string"&&Cr.hasOwnProperty(N.name)){var B=Cr[N.name];typeof B=="string"&&(B={name:B}),N=et(B,N),N.name=B.name}else{if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(N))return Bn("application/xml");if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(N))return Bn("application/json")}return typeof N=="string"?{name:N}:N||{name:"null"}}function oi(N,B){B=Bn(B);var ie=tt[B.name];if(!ie)return oi(N,"text/plain");var le=ie(N,B);if(wn.hasOwnProperty(B.name)){var ge=wn[B.name];for(var Ke in ge){if(!ge.hasOwnProperty(Ke))continue;le.hasOwnProperty(Ke)&&(le["_"+Ke]=le[Ke]),le[Ke]=ge[Ke]}}if(le.name=B.name,B.helperType&&(le.helperType=B.helperType),B.modeProps)for(var Rt in B.modeProps)le[Rt]=B.modeProps[Rt];return le}var wn={};function Rn(N,B){var ie=wn.hasOwnProperty(N)?wn[N]:wn[N]={};z(B,ie)}function Zt(N,B){if(B===!0)return B;if(N.copyState)return N.copyState(B);var ie={};for(var le in B){var ge=B[le];ge instanceof Array&&(ge=ge.concat([])),ie[le]=ge}return ie}function Tt(N,B){for(var ie;N.innerMode&&!(ie=N.innerMode(B),!ie||ie.mode==N);)B=ie.state,N=ie.mode;return ie||{mode:N,state:B}}function De(N,B,ie){return N.startState?N.startState(B,ie):!0}var Re=function(B,ie,le){this.pos=this.start=0,this.string=B,this.tabSize=ie||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=le};Re.prototype.eol=function(){return this.pos>=this.string.length},Re.prototype.sol=function(){return this.pos==this.lineStart},Re.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Re.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Re.prototype.eat=function(N){var B=this.string.charAt(this.pos),ie;if(typeof N=="string"?ie=B==N:ie=B&&(N.test?N.test(B):N(B)),ie)return++this.pos,B},Re.prototype.eatWhile=function(N){for(var B=this.pos;this.eat(N););return this.pos>B},Re.prototype.eatSpace=function(){for(var N=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>N},Re.prototype.skipToEnd=function(){this.pos=this.string.length},Re.prototype.skipTo=function(N){var B=this.string.indexOf(N,this.pos);if(B>-1)return this.pos=B,!0},Re.prototype.backUp=function(N){this.pos-=N},Re.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Re.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Re.prototype.match=function(N,B,ie){if(typeof N=="string"){var le=function(sr){return ie?sr.toLowerCase():sr},ge=this.string.substr(this.pos,N.length);if(le(ge)==le(N))return B!==!1&&(this.pos+=N.length),!0}else{var Ke=this.string.slice(this.pos).match(N);return Ke&&Ke.index>0?null:(Ke&&B!==!1&&(this.pos+=Ke[0].length),Ke)}},Re.prototype.current=function(){return this.string.slice(this.start,this.pos)},Re.prototype.hideFirstChars=function(N,B){this.lineStart+=N;try{return B()}finally{this.lineStart-=N}},Re.prototype.lookAhead=function(N){var B=this.lineOracle;return B&&B.lookAhead(N)},Re.prototype.baseToken=function(){var N=this.lineOracle;return N&&N.baseToken(this.pos)};function Pe(N,B){if(B-=N.first,B<0||B>=N.size)throw new Error("There is no line "+(B+N.first)+" in the document.");for(var ie=N;!ie.lines;)for(var le=0;;++le){var ge=ie.children[le],Ke=ge.chunkSize();if(B<Ke){ie=ge;break}B-=Ke}return ie.lines[B]}function rt(N,B,ie){var le=[],ge=B.line;return N.iter(B.line,ie.line+1,function(Ke){var Rt=Ke.text;ge==ie.line&&(Rt=Rt.slice(0,ie.ch)),ge==B.line&&(Rt=Rt.slice(B.ch)),le.push(Rt),++ge}),le}function wt(N,B,ie){var le=[];return N.iter(B,ie,function(ge){le.push(ge.text)}),le}function Ot(N,B){var ie=B-N.height;if(ie)for(var le=N;le;le=le.parent)le.height+=ie}function $t(N){if(N.parent==null)return null;for(var B=N.parent,ie=G(B.lines,N),le=B.parent;le;B=le,le=le.parent)for(var ge=0;!(le.children[ge]==B);++ge)ie+=le.children[ge].chunkSize();return ie+B.first}function Mr(N,B){var ie=N.first;e:do{for(var le=0;le<N.children.length;++le){var ge=N.children[le],Ke=ge.height;if(B<Ke){N=ge;continue e}B-=Ke,ie+=ge.chunkSize()}return ie}while(!N.lines);for(var Rt=0;Rt<N.lines.length;++Rt){var sr=N.lines[Rt],xr=sr.height;if(B<xr)break;B-=xr}return ie+Rt}function Vr(N,B){return B>=N.first&&B<N.first+N.size}function hn(N,B){return String(N.lineNumberFormatter(B+N.firstLineNumber))}function Vt(N,B,ie){if(ie===void 0&&(ie=null),!(this instanceof Vt))return new Vt(N,B,ie);this.line=N,this.ch=B,this.sticky=ie}function yt(N,B){return N.line-B.line||N.ch-B.ch}function xt(N,B){return N.sticky==B.sticky&&yt(N,B)==0}function dr(N){return Vt(N.line,N.ch)}function er(N,B){return yt(N,B)<0?B:N}function Ut(N,B){return yt(N,B)<0?N:B}function ir(N,B){return Math.max(N.first,Math.min(B,N.first+N.size-1))}function Ft(N,B){if(B.line<N.first)return Vt(N.first,0);var ie=N.first+N.size-1;return B.line>ie?Vt(ie,Pe(N,ie).text.length):rr(B,Pe(N,B.line).text.length)}function rr(N,B){var ie=N.ch;return ie==null||ie>B?Vt(N.line,B):ie<0?Vt(N.line,0):N}function Kr(N,B){for(var ie=[],le=0;le<B.length;le++)ie[le]=Ft(N,B[le]);return ie}var Rr=function(B,ie){this.state=B,this.lookAhead=ie},kr=function(B,ie,le,ge){this.state=ie,this.doc=B,this.line=le,this.maxLookAhead=ge||0,this.baseTokens=null,this.baseTokenPos=1};kr.prototype.lookAhead=function(N){var B=this.doc.getLine(this.line+N);return B!=null&&N>this.maxLookAhead&&(this.maxLookAhead=N),B},kr.prototype.baseToken=function(N){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=N;)this.baseTokenPos+=2;var B=this.baseTokens[this.baseTokenPos+1];return{type:B&&B.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-N}},kr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},kr.fromSaved=function(N,B,ie){return B instanceof Rr?new kr(N,Zt(N.mode,B.state),ie,B.lookAhead):new kr(N,Zt(N.mode,B),ie)},kr.prototype.save=function(N){var B=N!==!1?Zt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Rr(B,this.maxLookAhead):B};function dn(N,B,ie,le){var ge=[N.state.modeGen],Ke={};Le(N,B.text,N.doc.mode,ie,function(Ir,Kn){return ge.push(Ir,Kn)},Ke,le);for(var Rt=ie.state,sr=function(Kn){ie.baseTokens=ge;var ni=N.state.overlays[Kn],Ei=1,Oi=0;ie.state=!0,Le(N,B.text,ni.mode,ie,function(la,Ca){for(var Wa=Ei;Oi<la;){var Ma=ge[Ei];Ma>la&&ge.splice(Ei,1,la,ge[Ei+1],Ma),Ei+=2,Oi=Math.min(la,Ma)}if(!Ca)return;if(ni.opaque)ge.splice(Wa,Ei-Wa,la,"overlay "+Ca),Ei=Wa+2;else for(;Wa<Ei;Wa+=2){var Na=ge[Wa+1];ge[Wa+1]=(Na?Na+" ":"")+"overlay "+Ca}},Ke),ie.state=Rt,ie.baseTokens=null,ie.baseTokenPos=1},xr=0;xr<N.state.overlays.length;++xr)sr(xr);return{styles:ge,classes:Ke.bgClass||Ke.textClass?Ke:null}}function yn(N,B,ie){if(!B.styles||B.styles[0]!=N.state.modeGen){var le=ri(N,$t(B)),ge=B.text.length>N.options.maxHighlightLength&&Zt(N.doc.mode,le.state),Ke=dn(N,B,le);ge&&(le.state=ge),B.stateAfter=le.save(!ge),B.styles=Ke.styles,Ke.classes?B.styleClasses=Ke.classes:B.styleClasses&&(B.styleClasses=null),ie===N.doc.highlightFrontier&&(N.doc.modeFrontier=Math.max(N.doc.modeFrontier,++N.doc.highlightFrontier))}return B.styles}function ri(N,B,ie){var le=N.doc,ge=N.display;if(!le.mode.startState)return new kr(le,!0,B);var Ke=je(N,B,ie),Rt=Ke>le.first&&Pe(le,Ke-1).stateAfter,sr=Rt?kr.fromSaved(le,Rt,Ke):new kr(le,De(le.mode),Ke);return le.iter(Ke,B,function(xr){$n(N,xr.text,sr);var Ir=sr.line;xr.stateAfter=Ir==B-1||Ir%5==0||Ir>=ge.viewFrom&&Ir<ge.viewTo?sr.save():null,sr.nextLine()}),ie&&(le.modeFrontier=sr.line),sr}function $n(N,B,ie,le){var ge=N.doc.mode,Ke=new Re(B,N.options.tabSize,ie);for(Ke.start=Ke.pos=le||0,B==""&&pi(ge,ie.state);!Ke.eol();)_i(ge,Ke,ie.state),Ke.start=Ke.pos}function pi(N,B){if(N.blankLine)return N.blankLine(B);if(!N.innerMode)return;var ie=Tt(N,B);if(ie.mode.blankLine)return ie.mode.blankLine(ie.state)}function _i(N,B,ie,le){for(var ge=0;ge<10;ge++){le&&(le[0]=Tt(N,ie).mode);var Ke=N.token(B,ie);if(B.pos>B.start)return Ke}throw new Error("Mode "+N.name+" failed to advance stream.")}var Di=function(B,ie,le){this.start=B.start,this.end=B.pos,this.string=B.current(),this.type=ie||null,this.state=le};function Wi(N,B,ie,le){var ge=N.doc,Ke=ge.mode,Rt;B=Ft(ge,B);var sr=Pe(ge,B.line),xr=ri(N,B.line,ie),Ir=new Re(sr.text,N.options.tabSize,xr),Kn;for(le&&(Kn=[]);(le||Ir.pos<B.ch)&&!Ir.eol();)Ir.start=Ir.pos,Rt=_i(Ke,Ir,xr.state),le&&Kn.push(new Di(Ir,Rt,Zt(ge.mode,xr.state)));return le?Kn:new Di(Ir,Rt,xr.state)}function at(N,B){if(N)for(;;){var ie=N.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ie)break;N=N.slice(0,ie.index)+N.slice(ie.index+ie[0].length);var le=ie[1]?"bgClass":"textClass";B[le]==null?B[le]=ie[2]:new RegExp("(?:^|\\s)"+ie[2]+"(?:$|\\s)").test(B[le])||(B[le]+=" "+ie[2])}return N}function Le(N,B,ie,le,ge,Ke,Rt){var sr=ie.flattenSpans;sr==null&&(sr=N.options.flattenSpans);var xr=0,Ir=null,Kn=new Re(B,N.options.tabSize,le),ni,Ei=N.options.addModeClass&&[null];for(B==""&&at(pi(ie,le.state),Ke);!Kn.eol();){if(Kn.pos>N.options.maxHighlightLength?(sr=!1,Rt&&$n(N,B,le,Kn.pos),Kn.pos=B.length,ni=null):ni=at(_i(ie,Kn,le.state,Ei),Ke),Ei){var Oi=Ei[0].name;Oi&&(ni="m-"+(ni?Oi+" "+ni:Oi))}if(!sr||Ir!=ni){for(;xr<Kn.start;)xr=Math.min(Kn.start,xr+5e3),ge(xr,Ir);Ir=ni}Kn.start=Kn.pos}for(;xr<Kn.pos;){var la=Math.min(Kn.pos,xr+5e3);ge(la,Ir),xr=la}}function je(N,B,ie){for(var le,ge,Ke=N.doc,Rt=ie?-1:B-(N.doc.mode.innerMode?1e3:100),sr=B;sr>Rt;--sr){if(sr<=Ke.first)return Ke.first;var xr=Pe(Ke,sr-1),Ir=xr.stateAfter;if(Ir&&(!ie||sr+(Ir instanceof Rr?Ir.lookAhead:0)<=Ke.modeFrontier))return sr;var Kn=V(xr.text,null,N.options.tabSize);(ge==null||le>Kn)&&(ge=sr-1,le=Kn)}return ge}function Xe(N,B){if(N.modeFrontier=Math.min(N.modeFrontier,B),N.highlightFrontier<B-10)return;for(var ie=N.first,le=B-1;le>ie;le--){var ge=Pe(N,le).stateAfter;if(ge&&(!(ge instanceof Rr)||le+ge.lookAhead<B)){ie=le+1;break}}N.highlightFrontier=Math.min(N.highlightFrontier,ie)}var it=!1,Ze=!1;function ot(){it=!0}function Lt(){Ze=!0}function At(N,B,ie){this.marker=N,this.from=B,this.to=ie}function mr(N,B){if(N)for(var ie=0;ie<N.length;++ie){var le=N[ie];if(le.marker==B)return le}}function qr(N,B){for(var ie,le=0;le<N.length;++le)N[le]!=B&&(ie||(ie=[])).push(N[le]);return ie}function Qr(N,B){N.markedSpans=N.markedSpans?N.markedSpans.concat([B]):[B],B.marker.attachLine(N)}function gn(N,B,ie){var le;if(N)for(var ge=0;ge<N.length;++ge){var Ke=N[ge],Rt=Ke.marker,sr=Ke.from==null||(Rt.inclusiveLeft?Ke.from<=B:Ke.from<B);if(sr||Ke.from==B&&Rt.type=="bookmark"&&(!ie||!Ke.marker.insertLeft)){var xr=Ke.to==null||(Rt.inclusiveRight?Ke.to>=B:Ke.to>B);(le||(le=[])).push(new At(Rt,Ke.from,xr?null:Ke.to))}}return le}function yr(N,B,ie){var le;if(N)for(var ge=0;ge<N.length;++ge){var Ke=N[ge],Rt=Ke.marker,sr=Ke.to==null||(Rt.inclusiveRight?Ke.to>=B:Ke.to>B);if(sr||Ke.from==B&&Rt.type=="bookmark"&&(!ie||Ke.marker.insertLeft)){var xr=Ke.from==null||(Rt.inclusiveLeft?Ke.from<=B:Ke.from<B);(le||(le=[])).push(new At(Rt,xr?null:Ke.from-B,Ke.to==null?null:Ke.to-B))}}return le}function Vn(N,B){if(B.full)return null;var ie=Vr(N,B.from.line)&&Pe(N,B.from.line).markedSpans,le=Vr(N,B.to.line)&&Pe(N,B.to.line).markedSpans;if(!ie&&!le)return null;var ge=B.from.ch,Ke=B.to.ch,Rt=yt(B.from,B.to)==0,sr=gn(ie,ge,Rt),xr=yr(le,Ke,Rt),Ir=B.text.length==1,Kn=Ve(B.text).length+(Ir?ge:0);if(sr)for(var ni=0;ni<sr.length;++ni){var Ei=sr[ni];if(Ei.to==null){var Oi=mr(xr,Ei.marker);Oi?Ir&&(Ei.to=Oi.to==null?null:Oi.to+Kn):Ei.to=ge}}if(xr)for(var la=0;la<xr.length;++la){var Ca=xr[la];if(Ca.to!=null&&(Ca.to+=Kn),Ca.from==null){var Wa=mr(sr,Ca.marker);Wa||(Ca.from=Kn,Ir&&(sr||(sr=[])).push(Ca))}else Ca.from+=Kn,Ir&&(sr||(sr=[])).push(Ca)}sr&&(sr=Br(sr)),xr&&xr!=sr&&(xr=Br(xr));var Ma=[sr];if(!Ir){var Na=B.text.length-2,qa;if(Na>0&&sr)for(var ho=0;ho<sr.length;++ho)sr[ho].to==null&&(qa||(qa=[])).push(new At(sr[ho].marker,null,null));for(var ns=0;ns<Na;++ns)Ma.push(qa);Ma.push(xr)}return Ma}function Br(N){for(var B=0;B<N.length;++B){var ie=N[B];ie.from!=null&&ie.from==ie.to&&ie.marker.clearWhenEmpty!==!1&&N.splice(B--,1)}return N.length?N:null}function jn(N,B,ie){var le=null;if(N.iter(B.line,ie.line+1,function(Oi){if(Oi.markedSpans)for(var la=0;la<Oi.markedSpans.length;++la){var Ca=Oi.markedSpans[la].marker;Ca.readOnly&&(!le||G(le,Ca)==-1)&&(le||(le=[])).push(Ca)}}),!le)return null;for(var ge=[{from:B,to:ie}],Ke=0;Ke<le.length;++Ke)for(var Rt=le[Ke],sr=Rt.find(0),xr=0;xr<ge.length;++xr){var Ir=ge[xr];if(yt(Ir.to,sr.from)<0||yt(Ir.from,sr.to)>0)continue;var Kn=[xr,1],ni=yt(Ir.from,sr.from),Ei=yt(Ir.to,sr.to);(ni<0||!Rt.inclusiveLeft&&!ni)&&Kn.push({from:Ir.from,to:sr.from}),(Ei>0||!Rt.inclusiveRight&&!Ei)&&Kn.push({from:sr.to,to:Ir.to}),ge.splice.apply(ge,Kn),xr+=Kn.length-3}return ge}function xn(N){var B=N.markedSpans;if(!B)return;for(var ie=0;ie<B.length;++ie)B[ie].marker.detachLine(N);N.markedSpans=null}function tn(N,B){if(!B)return;for(var ie=0;ie<B.length;++ie)B[ie].marker.attachLine(N);N.markedSpans=B}function ti(N){return N.inclusiveLeft?-1:0}function mi(N){return N.inclusiveRight?1:0}function Pi(N,B){var ie=N.lines.length-B.lines.length;if(ie!=0)return ie;var le=N.find(),ge=B.find(),Ke=yt(le.from,ge.from)||ti(N)-ti(B);if(Ke)return-Ke;var Rt=yt(le.to,ge.to)||mi(N)-mi(B);return Rt||B.id-N.id}function en(N,B){var ie=Ze&&N.markedSpans,le;if(ie)for(var ge=void 0,Ke=0;Ke<ie.length;++Ke)ge=ie[Ke],ge.marker.collapsed&&(B?ge.from:ge.to)==null&&(!le||Pi(le,ge.marker)<0)&&(le=ge.marker);return le}function Tn(N){return en(N,!0)}function Yn(N){return en(N,!1)}function Yt(N,B){var ie=Ze&&N.markedSpans,le;if(ie)for(var ge=0;ge<ie.length;++ge){var Ke=ie[ge];Ke.marker.collapsed&&(Ke.from==null||Ke.from<B)&&(Ke.to==null||Ke.to>B)&&(!le||Pi(le,Ke.marker)<0)&&(le=Ke.marker)}return le}function Dt(N,B,ie,le,ge){var Ke=Pe(N,B),Rt=Ze&&Ke.markedSpans;if(Rt)for(var sr=0;sr<Rt.length;++sr){var xr=Rt[sr];if(!xr.marker.collapsed)continue;var Ir=xr.marker.find(0),Kn=yt(Ir.from,ie)||ti(xr.marker)-ti(ge),ni=yt(Ir.to,le)||mi(xr.marker)-mi(ge);if(Kn>=0&&ni<=0||Kn<=0&&ni>=0)continue;if(Kn<=0&&(xr.marker.inclusiveRight&&ge.inclusiveLeft?yt(Ir.to,ie)>=0:yt(Ir.to,ie)>0)||Kn>=0&&(xr.marker.inclusiveRight&&ge.inclusiveLeft?yt(Ir.from,le)<=0:yt(Ir.from,le)<0))return!0}}function Bt(N){for(var B;B=Tn(N);)N=B.find(-1,!0).line;return N}function Wt(N){for(var B;B=Yn(N);)N=B.find(1,!0).line;return N}function Xt(N){for(var B,ie;B=Yn(N);)N=B.find(1,!0).line,(ie||(ie=[])).push(N);return ie}function kt(N,B){var ie=Pe(N,B),le=Bt(ie);return ie==le?B:$t(le)}function hr(N,B){if(B>N.lastLine())return B;var ie=Pe(N,B),le;if(!br(N,ie))return B;for(;le=Yn(ie);)ie=le.find(1,!0).line;return $t(ie)+1}function br(N,B){var ie=Ze&&B.markedSpans;if(ie)for(var le=void 0,ge=0;ge<ie.length;++ge){if(le=ie[ge],!le.marker.collapsed)continue;if(le.from==null)return!0;if(le.marker.widgetNode)continue;if(le.from==0&&le.marker.inclusiveLeft&&wr(N,B,le))return!0}}function wr(N,B,ie){if(ie.to==null){var le=ie.marker.find(1,!0);return wr(N,le.line,mr(le.line.markedSpans,ie.marker))}if(ie.marker.inclusiveRight&&ie.to==B.text.length)return!0;for(var ge=void 0,Ke=0;Ke<B.markedSpans.length;++Ke)if(ge=B.markedSpans[Ke],ge.marker.collapsed&&!ge.marker.widgetNode&&ge.from==ie.to&&(ge.to==null||ge.to!=ie.from)&&(ge.marker.inclusiveLeft||ie.marker.inclusiveRight)&&wr(N,B,ge))return!0}function Fr(N){N=Bt(N);for(var B=0,ie=N.parent,le=0;le<ie.lines.length;++le){var ge=ie.lines[le];if(ge==N)break;B+=ge.height}for(var Ke=ie.parent;Ke;ie=Ke,Ke=ie.parent)for(var Rt=0;Rt<Ke.children.length;++Rt){var sr=Ke.children[Rt];if(sr==ie)break;B+=sr.height}return B}function Xn(N){if(N.height==0)return 0;for(var B=N.text.length,ie,le=N;ie=Tn(le);){var ge=ie.find(0,!0);le=ge.from.line,B+=ge.from.ch-ge.to.ch}for(le=N;ie=Yn(le);){var Ke=ie.find(0,!0);B-=le.text.length-Ke.from.ch,le=Ke.to.line,B+=le.text.length-Ke.to.ch}return B}function Fn(N){var B=N.display,ie=N.doc;B.maxLine=Pe(ie,ie.first),B.maxLineLength=Xn(B.maxLine),B.maxLineChanged=!0,ie.iter(function(le){var ge=Xn(le);ge>B.maxLineLength&&(B.maxLineLength=ge,B.maxLine=le)})}var hi=function(B,ie,le){this.text=B,tn(this,ie),this.height=le?le(this):1};hi.prototype.lineNo=function(){return $t(this)},Jt(hi);function An(N,B,ie,le){N.text=B,N.stateAfter&&(N.stateAfter=null),N.styles&&(N.styles=null),N.order!=null&&(N.order=null),xn(N),tn(N,ie);var ge=le?le(N):1;ge!=N.height&&Ot(N,ge)}function jr(N){N.parent=null,xn(N)}var In={},Qn={};function qn(N,B){if(!N||/^\s*$/.test(N))return null;var ie=B.addModeClass?Qn:In;return ie[N]||(ie[N]=N.replace(/\S+/g,"cm-$&"))}function si(N,B){var ie=k("span",null,null,a?"padding-right: .1px":null),le={pre:k("pre",[ie],"CodeMirror-line"),content:ie,col:0,pos:0,cm:N,trailingSpace:!1,splitSpaces:N.getOption("lineWrapping")};B.measure={};for(var ge=0;ge<=(B.rest?B.rest.length:0);ge++){var Ke=ge?B.rest[ge-1]:B.line,Rt=void 0;le.pos=0,le.addToken=ki,_t(N.display.measure)&&(Rt=Ct(Ke,N.doc.direction))&&(le.addToken=oa(le.addToken,Rt)),le.map=[];var sr=B!=N.display.externalMeasured&&$t(Ke);aa(Ke,le,yn(N,Ke,sr)),Ke.styleClasses&&(Ke.styleClasses.bgClass&&(le.bgClass=F(Ke.styleClasses.bgClass,le.bgClass||"")),Ke.styleClasses.textClass&&(le.textClass=F(Ke.styleClasses.textClass,le.textClass||""))),le.map.length==0&&le.map.push(0,0,le.content.appendChild(bt(N.display.measure))),ge==0?(B.measure.map=le.map,B.measure.cache={}):((B.measure.maps||(B.measure.maps=[])).push(le.map),(B.measure.caches||(B.measure.caches=[])).push({}))}if(a){var xr=le.content.lastChild;(/\bcm-tab\b/.test(xr.className)||xr.querySelector&&xr.querySelector(".cm-tab"))&&(le.content.className="cm-tab-wrap-hack")}return Gt(N,"renderLine",N,B.line,le.pre),le.pre.className&&(le.textClass=F(le.pre.className,le.textClass||"")),le}function Ci(N){var B=I("span","\u2022","cm-invalidchar");return B.title="\\u"+N.charCodeAt(0).toString(16),B.setAttribute("aria-label",B.title),B}function ki(N,B,ie,le,ge,Ke,Rt){if(!B)return;var sr=N.splitSpaces?Ri(B,N.trailingSpace):B,xr=N.cm.state.specialChars,Ir=!1,Kn;if(!xr.test(B))N.col+=B.length,Kn=document.createTextNode(sr),N.map.push(N.pos,N.pos+B.length,Kn),d&&l<9&&(Ir=!0),N.pos+=B.length;else{Kn=document.createDocumentFragment();for(var ni=0;;){xr.lastIndex=ni;var Ei=xr.exec(B),Oi=Ei?Ei.index-ni:B.length-ni;if(Oi){var la=document.createTextNode(sr.slice(ni,ni+Oi));d&&l<9?Kn.appendChild(I("span",[la])):Kn.appendChild(la),N.map.push(N.pos,N.pos+Oi,la),N.col+=Oi,N.pos+=Oi}if(!Ei)break;ni+=Oi+1;var Ca=void 0;if(Ei[0]==" "){var Wa=N.cm.options.tabSize,Ma=Wa-N.col%Wa;Ca=Kn.appendChild(I("span",Qe(Ma),"cm-tab")),Ca.setAttribute("role","presentation"),Ca.setAttribute("cm-text"," "),N.col+=Ma}else Ei[0]=="\r"||Ei[0]==`
`?(Ca=Kn.appendChild(I("span",Ei[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ca.setAttribute("cm-text",Ei[0]),N.col+=1):(Ca=N.cm.options.specialCharPlaceholder(Ei[0]),Ca.setAttribute("cm-text",Ei[0]),d&&l<9?Kn.appendChild(I("span",[Ca])):Kn.appendChild(Ca),N.col+=1);N.map.push(N.pos,N.pos+1,Ca),N.pos++}}if(N.trailingSpace=sr.charCodeAt(B.length-1)==32,ie||le||ge||Ir||Ke||Rt){var Na=ie||"";le&&(Na+=le),ge&&(Na+=ge);var qa=I("span",[Kn],Na,Ke);if(Rt)for(var ho in Rt)Rt.hasOwnProperty(ho)&&ho!="style"&&ho!="class"&&qa.setAttribute(ho,Rt[ho]);return N.content.appendChild(qa)}N.content.appendChild(Kn)}function Ri(N,B){if(N.length>1&&!/ /.test(N))return N;for(var ie=B,le="",ge=0;ge<N.length;ge++){var Ke=N.charAt(ge);Ke==" "&&ie&&(ge==N.length-1||N.charCodeAt(ge+1)==32)&&(Ke="\xA0"),le+=Ke,ie=Ke==" "}return le}function oa(N,B){return function(ie,le,ge,Ke,Rt,sr,xr){ge=ge?ge+" cm-force-border":"cm-force-border";for(var Ir=ie.pos,Kn=Ir+le.length;;){for(var ni=void 0,Ei=0;Ei<B.length&&!(ni=B[Ei],ni.to>Ir&&ni.from<=Ir);Ei++);if(ni.to>=Kn)return N(ie,le,ge,Ke,Rt,sr,xr);N(ie,le.slice(0,ni.to-Ir),ge,Ke,null,sr,xr),Ke=null,le=le.slice(ni.to-Ir),Ir=ni.to}}}function ma(N,B,ie,le){var ge=!le&&ie.widgetNode;ge&&N.map.push(N.pos,N.pos+B,ge),!le&&N.cm.display.input.needsContentAttribute&&(ge||(ge=N.content.appendChild(document.createElement("span"))),ge.setAttribute("cm-marker",ie.id)),ge&&(N.cm.display.input.setUneditable(ge),N.content.appendChild(ge)),N.pos+=B,N.trailingSpace=!1}function aa(N,B,ie){var le=N.markedSpans,ge=N.text,Ke=0;if(!le){for(var Rt=1;Rt<ie.length;Rt+=2)B.addToken(B,ge.slice(Ke,Ke=ie[Rt]),qn(ie[Rt+1],B.cm.options));return}for(var sr=ge.length,xr=0,Ir=1,Kn="",ni,Ei,Oi=0,la,Ca,Wa,Ma,Na;;){if(Oi==xr){la=Ca=Wa=Ei="",Na=null,Ma=null,Oi=Infinity;for(var qa=[],ho=void 0,ns=0;ns<le.length;++ns){var Mo=le[ns],xs=Mo.marker;if(xs.type=="bookmark"&&Mo.from==xr&&xs.widgetNode)qa.push(xs);else if(Mo.from<=xr&&(Mo.to==null||Mo.to>xr||xs.collapsed&&Mo.to==xr&&Mo.from==xr)){if(Mo.to!=null&&Mo.to!=xr&&Oi>Mo.to&&(Oi=Mo.to,Ca=""),xs.className&&(la+=" "+xs.className),xs.css&&(Ei=(Ei?Ei+";":"")+xs.css),xs.startStyle&&Mo.from==xr&&(Wa+=" "+xs.startStyle),xs.endStyle&&Mo.to==Oi&&(ho||(ho=[])).push(xs.endStyle,Mo.to),xs.title&&((Na||(Na={})).title=xs.title),xs.attributes)for(var Zs in xs.attributes)(Na||(Na={}))[Zs]=xs.attributes[Zs];xs.collapsed&&(!Ma||Pi(Ma.marker,xs)<0)&&(Ma=Mo)}else Mo.from>xr&&Oi>Mo.from&&(Oi=Mo.from)}if(ho)for(var yl=0;yl<ho.length;yl+=2)ho[yl+1]==Oi&&(Ca+=" "+ho[yl]);if(!Ma||Ma.from==xr)for(var ul=0;ul<qa.length;++ul)ma(B,0,qa[ul]);if(Ma&&(Ma.from||0)==xr){if(ma(B,(Ma.to==null?sr+1:Ma.to)-xr,Ma.marker,Ma.from==null),Ma.to==null)return;Ma.to==xr&&(Ma=!1)}}if(xr>=sr)break;for(var Pl=Math.min(sr,Oi);;){if(Kn){var Vl=xr+Kn.length;if(!Ma){var Il=Vl>Pl?Kn.slice(0,Pl-xr):Kn;B.addToken(B,Il,ni?ni+la:la,Wa,xr+Il.length==Oi?Ca:"",Ei,Na)}if(Vl>=Pl){Kn=Kn.slice(Pl-xr),xr=Pl;break}xr=Vl,Wa=""}Kn=ge.slice(Ke,Ke=ie[Ir++]),ni=qn(ie[Ir++],B.cm.options)}}}function ba(N,B,ie){this.line=B,this.rest=Xt(B),this.size=this.rest?$t(Ve(this.rest))-ie+1:1,this.node=this.text=null,this.hidden=br(N,B)}function bi(N,B,ie){for(var le=[],ge,Ke=B;Ke<ie;Ke=ge){var Rt=new ba(N.doc,Pe(N.doc,Ke),Ke);ge=Ke+Rt.size,le.push(Rt)}return le}var Pn=null;function ji(N){Pn?Pn.ops.push(N):N.ownsGroup=Pn={ops:[N],delayedCallbacks:[]}}function ha(N){var B=N.delayedCallbacks,ie=0;do{for(;ie<B.length;ie++)B[ie].call(null);for(var le=0;le<N.ops.length;le++){var ge=N.ops[le];if(ge.cursorActivityHandlers)for(;ge.cursorActivityCalled<ge.cursorActivityHandlers.length;)ge.cursorActivityHandlers[ge.cursorActivityCalled++].call(null,ge.cm)}}while(ie<B.length)}function ta(N,B){var ie=N.ownsGroup;if(!ie)return;try{ha(ie)}finally{Pn=null,B(ie)}}var ra=null;function Nr(N,B){var ie=nr(N,B);if(!ie.length)return;var le=Array.prototype.slice.call(arguments,2),ge;Pn?ge=Pn.delayedCallbacks:ra?ge=ra:(ge=ra=[],setTimeout(Er,0));for(var Ke=function(xr){ge.push(function(){return ie[xr].apply(null,le)})},Rt=0;Rt<ie.length;++Rt)Ke(Rt)}function Er(){var N=ra;ra=null;for(var B=0;B<N.length;++B)N[B]()}function On(N,B,ie,le){for(var ge=0;ge<B.changes.length;ge++){var Ke=B.changes[ge];Ke=="text"?cn(N,B):Ke=="gutter"?Nt(N,B,ie,le):Ke=="class"?Un(N,B):Ke=="widget"&&Lr(N,B,le)}B.changes=null}function gr(N){return N.node==N.text&&(N.node=I("div",null,null,"position: relative"),N.text.parentNode&&N.text.parentNode.replaceChild(N.node,N.text),N.node.appendChild(N.text),d&&l<8&&(N.node.style.zIndex=2)),N.node}function Pr(N,B){var ie=B.bgClass?B.bgClass+" "+(B.line.bgClass||""):B.line.bgClass;if(ie&&(ie+=" CodeMirror-linebackground"),B.background)ie?B.background.className=ie:(B.background.parentNode.removeChild(B.background),B.background=null);else if(ie){var le=gr(B);B.background=le.insertBefore(I("div",null,ie),le.firstChild),N.display.input.setUneditable(B.background)}}function Xr(N,B){var ie=N.display.externalMeasured;return ie&&ie.line==B.line?(N.display.externalMeasured=null,B.measure=ie.measure,ie.built):si(N,B)}function cn(N,B){var ie=B.text.className,le=Xr(N,B);B.text==B.node&&(B.node=le.pre),B.text.parentNode.replaceChild(le.pre,B.text),B.text=le.pre,le.bgClass!=B.bgClass||le.textClass!=B.textClass?(B.bgClass=le.bgClass,B.textClass=le.textClass,Un(N,B)):ie&&(B.text.className=ie)}function Un(N,B){Pr(N,B),B.line.wrapClass?gr(B).className=B.line.wrapClass:B.node!=B.text&&(B.node.className="");var ie=B.textClass?B.textClass+" "+(B.line.textClass||""):B.line.textClass;B.text.className=ie||""}function Nt(N,B,ie,le){if(B.gutter&&(B.node.removeChild(B.gutter),B.gutter=null),B.gutterBackground&&(B.node.removeChild(B.gutterBackground),B.gutterBackground=null),B.line.gutterClass){var ge=gr(B);B.gutterBackground=I("div",null,"CodeMirror-gutter-background "+B.line.gutterClass,"left: "+(N.options.fixedGutter?le.fixedPos:-le.gutterTotalWidth)+"px; width: "+le.gutterTotalWidth+"px"),N.display.input.setUneditable(B.gutterBackground),ge.insertBefore(B.gutterBackground,B.text)}var Ke=B.line.gutterMarkers;if(N.options.lineNumbers||Ke){var Rt=gr(B),sr=B.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(N.options.fixedGutter?le.fixedPos:-le.gutterTotalWidth)+"px");if(N.display.input.setUneditable(sr),Rt.insertBefore(sr,B.text),B.line.gutterClass&&(sr.className+=" "+B.line.gutterClass),N.options.lineNumbers&&(!Ke||!Ke["CodeMirror-linenumbers"])&&(B.lineNumber=sr.appendChild(I("div",hn(N.options,ie),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+le.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+N.display.lineNumInnerWidth+"px"))),Ke)for(var xr=0;xr<N.display.gutterSpecs.length;++xr){var Ir=N.display.gutterSpecs[xr].className,Kn=Ke.hasOwnProperty(Ir)&&Ke[Ir];Kn&&sr.appendChild(I("div",[Kn],"CodeMirror-gutter-elt","left: "+le.gutterLeft[Ir]+"px; width: "+le.gutterWidth[Ir]+"px"))}}}function Lr(N,B,ie){B.alignable&&(B.alignable=null);for(var le=_("CodeMirror-linewidget"),ge=B.node.firstChild,Ke=void 0;ge;ge=Ke)Ke=ge.nextSibling,le.test(ge.className)&&B.node.removeChild(ge);an(N,B,ie)}function Dr(N,B,ie,le){var ge=Xr(N,B);return B.text=B.node=ge.pre,ge.bgClass&&(B.bgClass=ge.bgClass),ge.textClass&&(B.textClass=ge.textClass),Un(N,B),Nt(N,B,ie,le),an(N,B,le),B.node}function an(N,B,ie){if(Cn(N,B.line,B,ie,!0),B.rest)for(var le=0;le<B.rest.length;le++)Cn(N,B.rest[le],B,ie,!1)}function Cn(N,B,ie,le,ge){if(!B.widgets)return;for(var Ke=gr(ie),Rt=0,sr=B.widgets;Rt<sr.length;++Rt){var xr=sr[Rt],Ir=I("div",[xr.node],"CodeMirror-linewidget"+(xr.className?" "+xr.className:""));xr.handleMouseEvents||Ir.setAttribute("cm-ignore-events","true"),Nn(xr,Ir,ie,le),N.display.input.setUneditable(Ir),ge&&xr.above?Ke.insertBefore(Ir,ie.gutter||ie.text):Ke.appendChild(Ir),Nr(xr,"redraw")}}function Nn(N,B,ie,le){if(N.noHScroll){(ie.alignable||(ie.alignable=[])).push(B);var ge=le.wrapperWidth;B.style.left=le.fixedPos+"px",N.coverGutter||(ge-=le.gutterTotalWidth,B.style.paddingLeft=le.gutterTotalWidth+"px"),B.style.width=ge+"px"}N.coverGutter&&(B.style.zIndex=5,B.style.position="relative",N.noHScroll||(B.style.marginLeft=-le.gutterTotalWidth+"px"))}function En(N){if(N.height!=null)return N.height;var B=N.doc.cm;if(!B)return 0;if(!U(document.body,N.node)){var ie="position: relative;";N.coverGutter&&(ie+="margin-left: -"+B.display.gutters.offsetWidth+"px;"),N.noHScroll&&(ie+="width: "+B.display.wrapper.clientWidth+"px;"),O(B.display.measure,I("div",[N.node],null,ie))}return N.height=N.node.parentNode.offsetHeight}function ei(N,B){for(var ie=qe(B);ie!=N.wrapper;ie=ie.parentNode)if(!ie||ie.nodeType==1&&ie.getAttribute("cm-ignore-events")=="true"||ie.parentNode==N.sizer&&ie!=N.mover)return!0}function Wn(N){return N.lineSpace.offsetTop}function gi(N){return N.mover.offsetHeight-N.lineSpace.offsetHeight}function Fi(N){if(N.cachedPaddingH)return N.cachedPaddingH;var B=O(N.measure,I("pre","x","CodeMirror-line-like")),ie=window.getComputedStyle?window.getComputedStyle(B):B.currentStyle,le={left:parseInt(ie.paddingLeft),right:parseInt(ie.paddingRight)};return!isNaN(le.left)&&!isNaN(le.right)&&(N.cachedPaddingH=le),le}function wi(N){return te-N.display.nativeBarWidth}function Ii(N){return N.display.scroller.clientWidth-wi(N)-N.display.barWidth}function Vi(N){return N.display.scroller.clientHeight-wi(N)-N.display.barHeight}function ea(N,B,ie){var le=N.options.lineWrapping,ge=le&&Ii(N);if(!B.measure.heights||le&&B.measure.width!=ge){var Ke=B.measure.heights=[];if(le){B.measure.width=ge;for(var Rt=B.text.firstChild.getClientRects(),sr=0;sr<Rt.length-1;sr++){var xr=Rt[sr],Ir=Rt[sr+1];Math.abs(xr.bottom-Ir.bottom)>2&&Ke.push((xr.bottom+Ir.top)/2-ie.top)}}Ke.push(ie.bottom-ie.top)}}function Xi(N,B,ie){if(N.line==B)return{map:N.measure.map,cache:N.measure.cache};for(var le=0;le<N.rest.length;le++)if(N.rest[le]==B)return{map:N.measure.maps[le],cache:N.measure.caches[le]};for(var ge=0;ge<N.rest.length;ge++)if($t(N.rest[ge])>ie)return{map:N.measure.maps[ge],cache:N.measure.caches[ge],before:!0}}function zi(N,B){B=Bt(B);var ie=$t(B),le=N.display.externalMeasured=new ba(N.doc,B,ie);le.lineN=ie;var ge=le.built=si(N,le);return le.text=ge.pre,O(N.display.lineMeasure,ge.pre),le}function Hi(N,B,ie,le){return Ta(N,ca(N,B),ie,le)}function Ji(N,B){if(B>=N.display.viewFrom&&B<N.display.viewTo)return N.display.view[uo(N,B)];var ie=N.display.externalMeasured;if(ie&&B>=ie.lineN&&B<ie.lineN+ie.size)return ie}function ca(N,B){var ie=$t(B),le=Ji(N,ie);le&&!le.text?le=null:le&&le.changes&&(On(N,le,ie,os(N)),N.curOp.forceUpdate=!0),le||(le=zi(N,B));var ge=Xi(le,B,ie);return{line:B,view:le,rect:null,map:ge.map,cache:ge.cache,before:ge.before,hasHeights:!1}}function Ta(N,B,ie,le,ge){B.before&&(ie=-1);var Ke=ie+(le||""),Rt;return B.cache.hasOwnProperty(Ke)?Rt=B.cache[Ke]:(B.rect||(B.rect=B.view.text.getBoundingClientRect()),B.hasHeights||(ea(N,B.view,B.rect),B.hasHeights=!0),Rt=va(N,B,ie,le),Rt.bogus||(B.cache[Ke]=Rt)),{left:Rt.left,right:Rt.right,top:ge?Rt.rtop:Rt.top,bottom:ge?Rt.rbottom:Rt.bottom}}var na={left:0,right:0,top:0,bottom:0};function Pa(N,B,ie){for(var le,ge,Ke,Rt,sr,xr,Ir=0;Ir<N.length;Ir+=3)if(sr=N[Ir],xr=N[Ir+1],B<sr?(ge=0,Ke=1,Rt="left"):B<xr?(ge=B-sr,Ke=ge+1):(Ir==N.length-3||B==xr&&N[Ir+3]>B)&&(Ke=xr-sr,ge=Ke-1,B>=xr&&(Rt="right")),ge!=null){if(le=N[Ir+2],sr==xr&&ie==(le.insertLeft?"left":"right")&&(Rt=ie),ie=="left"&&ge==0)for(;Ir&&N[Ir-2]==N[Ir-3]&&N[Ir-1].insertLeft;)le=N[(Ir-=3)+2],Rt="left";if(ie=="right"&&ge==xr-sr)for(;Ir<N.length-3&&N[Ir+3]==N[Ir+4]&&!N[Ir+5].insertLeft;)le=N[(Ir+=3)+2],Rt="right";break}return{node:le,start:ge,end:Ke,collapse:Rt,coverStart:sr,coverEnd:xr}}function La(N,B){var ie=na;if(B=="left")for(var le=0;le<N.length&&!((ie=N[le]).left!=ie.right);le++);else for(var ge=N.length-1;ge>=0&&!((ie=N[ge]).left!=ie.right);ge--);return ie}function va(N,B,ie,le){var ge=Pa(B.map,ie,le),Ke=ge.node,Rt=ge.start,sr=ge.end,xr=ge.collapse,Ir;if(Ke.nodeType==3){for(var Kn=0;Kn<4;Kn++){for(;Rt&&be(B.line.text.charAt(ge.coverStart+Rt));)--Rt;for(;ge.coverStart+sr<ge.coverEnd&&be(B.line.text.charAt(ge.coverStart+sr));)++sr;if(d&&l<9&&Rt==0&&sr==ge.coverEnd-ge.coverStart?Ir=Ke.parentNode.getBoundingClientRect():Ir=La(M(Ke,Rt,sr).getClientRects(),le),Ir.left||Ir.right||Rt==0)break;sr=Rt,Rt=Rt-1,xr="right"}d&&l<11&&(Ir=ga(N.display.measure,Ir))}else{Rt>0&&(xr=le="right");var ni;N.options.lineWrapping&&(ni=Ke.getClientRects()).length>1?Ir=ni[le=="right"?ni.length-1:0]:Ir=Ke.getBoundingClientRect()}if(d&&l<9&&!Rt&&(!Ir||!Ir.left&&!Ir.right)){var Ei=Ke.parentNode.getClientRects()[0];Ei?Ir={left:Ei.left,right:Ei.left+Io(N.display),top:Ei.top,bottom:Ei.bottom}:Ir=na}for(var Oi=Ir.top-B.rect.top,la=Ir.bottom-B.rect.top,Ca=(Oi+la)/2,Wa=B.view.measure.heights,Ma=0;Ma<Wa.length-1&&!(Ca<Wa[Ma]);Ma++);var Na=Ma?Wa[Ma-1]:0,qa=Wa[Ma],ho={left:(xr=="right"?Ir.right:Ir.left)-B.rect.left,right:(xr=="left"?Ir.left:Ir.right)-B.rect.left,top:Na,bottom:qa};return!Ir.left&&!Ir.right&&(ho.bogus=!0),N.options.singleCursorHeightPerLine||(ho.rtop=Oi,ho.rbottom=la),ho}function ga(N,B){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!lt(N))return B;var ie=screen.logicalXDPI/screen.deviceXDPI,le=screen.logicalYDPI/screen.deviceYDPI;return{left:B.left*ie,right:B.right*ie,top:B.top*le,bottom:B.bottom*le}}function Oa(N){if(N.measure&&(N.measure.cache={},N.measure.heights=null,N.rest))for(var B=0;B<N.rest.length;B++)N.measure.caches[B]={}}function Aa(N){N.display.externalMeasure=null,w(N.display.lineMeasure);for(var B=0;B<N.display.view.length;B++)Oa(N.display.view[B])}function Xa(N){Aa(N),N.display.cachedCharWidth=N.display.cachedTextHeight=N.display.cachedPaddingH=null,N.options.lineWrapping||(N.display.maxLineChanged=!0),N.display.lineNumChars=null}function _a(){return t&&c?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Va(){return t&&c?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Bi(N){var B=0;if(N.widgets)for(var ie=0;ie<N.widgets.length;++ie)N.widgets[ie].above&&(B+=En(N.widgets[ie]));return B}function io(N,B,ie,le,ge){if(!ge){var Ke=Bi(B);ie.top+=Ke,ie.bottom+=Ke}if(le=="line")return ie;le||(le="local");var Rt=Fr(B);if(le=="local"?Rt+=Wn(N.display):Rt-=N.display.viewOffset,le=="page"||le=="window"){var sr=N.display.lineSpace.getBoundingClientRect();Rt+=sr.top+(le=="window"?0:Va());var xr=sr.left+(le=="window"?0:_a());ie.left+=xr,ie.right+=xr}return ie.top+=Rt,ie.bottom+=Rt,ie}function oo(N,B,ie){if(ie=="div")return B;var le=B.left,ge=B.top;if(ie=="page")le-=_a(),ge-=Va();else if(ie=="local"||!ie){var Ke=N.display.sizer.getBoundingClientRect();le+=Ke.left,ge+=Ke.top}var Rt=N.display.lineSpace.getBoundingClientRect();return{left:le-Rt.left,top:ge-Rt.top}}function Qo(N,B,ie,le,ge){return le||(le=Pe(N.doc,B.line)),io(N,le,Hi(N,le,B.ch,ge),ie)}function mo(N,B,ie,le,ge,Ke){le=le||Pe(N.doc,B.line),ge||(ge=ca(N,le));function Rt(la,Ca){var Wa=Ta(N,ge,la,Ca?"right":"left",Ke);return Ca?Wa.left=Wa.right:Wa.right=Wa.left,io(N,le,Wa,ie)}var sr=Ct(le,N.doc.direction),xr=B.ch,Ir=B.sticky;if(xr>=le.text.length?(xr=le.text.length,Ir="before"):xr<=0&&(xr=0,Ir="after"),!sr)return Rt(Ir=="before"?xr-1:xr,Ir=="before");function Kn(la,Ca,Wa){var Ma=sr[Ca],Na=Ma.level==1;return Rt(Wa?la-1:la,Na!=Wa)}var ni=ke(sr,xr,Ir),Ei=xe,Oi=Kn(xr,ni,Ir=="before");return Ei!=null&&(Oi.other=Kn(xr,Ei,Ir!="before")),Oi}function Co(N,B){var ie=0;B=Ft(N.doc,B),N.options.lineWrapping||(ie=Io(N.display)*B.ch);var le=Pe(N.doc,B.line),ge=Fr(le)+Wn(N.display);return{left:ie,right:ie,top:ge,bottom:ge+le.height}}function ao(N,B,ie,le,ge){var Ke=Vt(N,B,ie);return Ke.xRel=ge,le&&(Ke.outside=le),Ke}function xo(N,B,ie){var le=N.doc;if(ie+=N.display.viewOffset,ie<0)return ao(le.first,0,null,-1,-1);var ge=Mr(le,ie),Ke=le.first+le.size-1;if(ge>Ke)return ao(le.first+le.size-1,Pe(le,Ke).text.length,null,1,1);B<0&&(B=0);for(var Rt=Pe(le,ge);;){var sr=Uo(N,Rt,ge,B,ie),xr=Yt(Rt,sr.ch+(sr.xRel>0||sr.outside>0?1:0));if(!xr)return sr;var Ir=xr.find(1);if(Ir.line==ge)return Ir;Rt=Pe(le,ge=Ir.line)}}function bo(N,B,ie,le){le-=Bi(B);var ge=B.text.length,Ke=Be(function(Rt){return Ta(N,ie,Rt-1).bottom<=le},ge,0);return ge=Be(function(Rt){return Ta(N,ie,Rt).top>le},Ke,ge),{begin:Ke,end:ge}}function to(N,B,ie,le){ie||(ie=ca(N,B));var ge=io(N,B,Ta(N,ie,le),"line").top;return bo(N,B,ie,ge)}function Jo(N,B,ie,le){return N.bottom<=ie?!1:N.top>ie?!0:(le?N.left:N.right)>B}function Uo(N,B,ie,le,ge){ge-=Fr(B);var Ke=ca(N,B),Rt=Bi(B),sr=0,xr=B.text.length,Ir=!0,Kn=Ct(B,N.doc.direction);if(Kn){var ni=(N.options.lineWrapping?ts:wo)(N,B,ie,Ke,Kn,le,ge);Ir=ni.level!=1,sr=Ir?ni.from:ni.to-1,xr=Ir?ni.to:ni.from-1}var Ei=null,Oi=null,la=Be(function(ns){var Mo=Ta(N,Ke,ns);return Mo.top+=Rt,Mo.bottom+=Rt,Jo(Mo,le,ge,!1)?(Mo.top<=ge&&Mo.left<=le&&(Ei=ns,Oi=Mo),!0):!1},sr,xr),Ca,Wa,Ma=!1;if(Oi){var Na=le-Oi.left<Oi.right-le,qa=Na==Ir;la=Ei+(qa?0:1),Wa=qa?"after":"before",Ca=Na?Oi.left:Oi.right}else{!Ir&&(la==xr||la==sr)&&la++,Wa=la==0?"after":la==B.text.length?"before":Ta(N,Ke,la-(Ir?1:0)).bottom+Rt<=ge==Ir?"after":"before";var ho=mo(N,Vt(ie,la,Wa),"line",B,Ke);Ca=ho.left,Ma=ge<ho.top?-1:ge>=ho.bottom?1:0}return la=Te(B.text,la,1),ao(ie,la,Wa,Ma,le-Ca)}function wo(N,B,ie,le,ge,Ke,Rt){var sr=Be(function(ni){var Ei=ge[ni],Oi=Ei.level!=1;return Jo(mo(N,Vt(ie,Oi?Ei.to:Ei.from,Oi?"before":"after"),"line",B,le),Ke,Rt,!0)},0,ge.length-1),xr=ge[sr];if(sr>0){var Ir=xr.level!=1,Kn=mo(N,Vt(ie,Ir?xr.from:xr.to,Ir?"after":"before"),"line",B,le);Jo(Kn,Ke,Rt,!0)&&Kn.top>Rt&&(xr=ge[sr-1])}return xr}function ts(N,B,ie,le,ge,Ke,Rt){var sr=bo(N,B,le,Rt),xr=sr.begin,Ir=sr.end;/\s/.test(B.text.charAt(Ir-1))&&Ir--;for(var Kn=null,ni=null,Ei=0;Ei<ge.length;Ei++){var Oi=ge[Ei];if(Oi.from>=Ir||Oi.to<=xr)continue;var la=Oi.level!=1,Ca=Ta(N,le,la?Math.min(Ir,Oi.to)-1:Math.max(xr,Oi.from)).right,Wa=Ca<Ke?Ke-Ca+1e9:Ca-Ke;(!Kn||ni>Wa)&&(Kn=Oi,ni=Wa)}return Kn||(Kn=ge[ge.length-1]),Kn.from<xr&&(Kn={from:xr,to:Kn.to,level:Kn.level}),Kn.to>Ir&&(Kn={from:Kn.from,to:Ir,level:Kn.level}),Kn}var Ia;function Oo(N){if(N.cachedTextHeight!=null)return N.cachedTextHeight;if(Ia==null){Ia=I("pre",null,"CodeMirror-line-like");for(var B=0;B<49;++B)Ia.appendChild(document.createTextNode("x")),Ia.appendChild(I("br"));Ia.appendChild(document.createTextNode("x"))}O(N.measure,Ia);var ie=Ia.offsetHeight/50;return ie>3&&(N.cachedTextHeight=ie),w(N.measure),ie||1}function Io(N){if(N.cachedCharWidth!=null)return N.cachedCharWidth;var B=I("span","xxxxxxxxxx"),ie=I("pre",[B],"CodeMirror-line-like");O(N.measure,ie);var le=B.getBoundingClientRect(),ge=(le.right-le.left)/10;return ge>2&&(N.cachedCharWidth=ge),ge||10}function os(N){for(var B=N.display,ie={},le={},ge=B.gutters.clientLeft,Ke=B.gutters.firstChild,Rt=0;Ke;Ke=Ke.nextSibling,++Rt){var sr=N.display.gutterSpecs[Rt].className;ie[sr]=Ke.offsetLeft+Ke.clientLeft+ge,le[sr]=Ke.clientWidth}return{fixedPos:So(B),gutterTotalWidth:B.gutters.offsetWidth,gutterLeft:ie,gutterWidth:le,wrapperWidth:B.wrapper.clientWidth}}function So(N){return N.scroller.getBoundingClientRect().left-N.sizer.getBoundingClientRect().left}function rs(N){var B=Oo(N.display),ie=N.options.lineWrapping,le=ie&&Math.max(5,N.display.scroller.clientWidth/Io(N.display)-3);return function(ge){if(br(N.doc,ge))return 0;var Ke=0;if(ge.widgets)for(var Rt=0;Rt<ge.widgets.length;Rt++)ge.widgets[Rt].height&&(Ke+=ge.widgets[Rt].height);return ie?Ke+(Math.ceil(ge.text.length/le)||1)*B:Ke+B}}function Ho(N){var B=N.doc,ie=rs(N);B.iter(function(le){var ge=ie(le);ge!=le.height&&Ot(le,ge)})}function _o(N,B,ie,le){var ge=N.display;if(!ie&&qe(B).getAttribute("cm-not-content")=="true")return null;var Ke,Rt,sr=ge.lineSpace.getBoundingClientRect();try{Ke=B.clientX-sr.left,Rt=B.clientY-sr.top}catch(ni){return null}var xr=xo(N,Ke,Rt),Ir;if(le&&xr.xRel>0&&(Ir=Pe(N.doc,xr.line).text).length==xr.ch){var Kn=V(Ir,Ir.length,N.options.tabSize)-Ir.length;xr=Vt(xr.line,Math.max(0,Math.round((Ke-Fi(N.display).left)/Io(N.display))-Kn))}return xr}function uo(N,B){if(B>=N.display.viewTo)return null;if(B-=N.display.viewFrom,B<0)return null;for(var ie=N.display.view,le=0;le<ie.length;le++)if(B-=ie[le].size,B<0)return le}function Ha(N,B,ie,le){B==null&&(B=N.doc.first),ie==null&&(ie=N.doc.first+N.doc.size),le||(le=0);var ge=N.display;if(le&&ie<ge.viewTo&&(ge.updateLineNumbers==null||ge.updateLineNumbers>B)&&(ge.updateLineNumbers=B),N.curOp.viewChanged=!0,B>=ge.viewTo)Ze&&kt(N.doc,B)<ge.viewTo&&_r(N);else if(ie<=ge.viewFrom)Ze&&hr(N.doc,ie+le)>ge.viewFrom?_r(N):(ge.viewFrom+=le,ge.viewTo+=le);else if(B<=ge.viewFrom&&ie>=ge.viewTo)_r(N);else if(B<=ge.viewFrom){var Ke=rn(N,ie,ie+le,1);Ke?(ge.view=ge.view.slice(Ke.index),ge.viewFrom=Ke.lineN,ge.viewTo+=le):_r(N)}else if(ie>=ge.viewTo){var Rt=rn(N,B,B,-1);Rt?(ge.view=ge.view.slice(0,Rt.index),ge.viewTo=Rt.lineN):_r(N)}else{var sr=rn(N,B,B,-1),xr=rn(N,ie,ie+le,1);sr&&xr?(ge.view=ge.view.slice(0,sr.index).concat(bi(N,sr.lineN,xr.lineN)).concat(ge.view.slice(xr.index)),ge.viewTo+=le):_r(N)}var Ir=ge.externalMeasured;Ir&&(ie<Ir.lineN?Ir.lineN+=le:B<Ir.lineN+Ir.size&&(ge.externalMeasured=null))}function vt(N,B,ie){N.curOp.viewChanged=!0;var le=N.display,ge=N.display.externalMeasured;if(ge&&B>=ge.lineN&&B<ge.lineN+ge.size&&(le.externalMeasured=null),B<le.viewFrom||B>=le.viewTo)return;var Ke=le.view[uo(N,B)];if(Ke.node==null)return;var Rt=Ke.changes||(Ke.changes=[]);G(Rt,ie)==-1&&Rt.push(ie)}function _r(N){N.display.viewFrom=N.display.viewTo=N.doc.first,N.display.view=[],N.display.viewOffset=0}function rn(N,B,ie,le){var ge=uo(N,B),Ke,Rt=N.display.view;if(!Ze||ie==N.doc.first+N.doc.size)return{index:ge,lineN:ie};for(var sr=N.display.viewFrom,xr=0;xr<ge;xr++)sr+=Rt[xr].size;if(sr!=B){if(le>0){if(ge==Rt.length-1)return null;Ke=sr+Rt[ge].size-B,ge++}else Ke=sr-B;B+=Ke,ie+=Ke}for(;kt(N.doc,ie)!=ie;){if(ge==(le<0?0:Rt.length-1))return null;ie+=le*Rt[ge-(le<0?1:0)].size,ge+=le}return{index:ge,lineN:ie}}function Jr(N,B,ie){var le=N.display,ge=le.view;ge.length==0||B>=le.viewTo||ie<=le.viewFrom?(le.view=bi(N,B,ie),le.viewFrom=B):(le.viewFrom>B?le.view=bi(N,B,le.viewFrom).concat(le.view):le.viewFrom<B&&(le.view=le.view.slice(uo(N,B))),le.viewFrom=B,le.viewTo<ie?le.view=le.view.concat(bi(N,le.viewTo,ie)):le.viewTo>ie&&(le.view=le.view.slice(0,uo(N,ie)))),le.viewTo=ie}function Jn(N){for(var B=N.display.view,ie=0,le=0;le<B.length;le++){var ge=B[le];!ge.hidden&&(!ge.node||ge.changes)&&++ie}return ie}function fn(N){N.display.input.showSelection(N.display.input.prepareSelection())}function Yr(N,B){B===void 0&&(B=!0);for(var ie=N.doc,le={},ge=le.cursors=document.createDocumentFragment(),Ke=le.selection=document.createDocumentFragment(),Rt=0;Rt<ie.sel.ranges.length;Rt++){if(!B&&Rt==ie.sel.primIndex)continue;var sr=ie.sel.ranges[Rt];if(sr.from().line>=N.display.viewTo||sr.to().line<N.display.viewFrom)continue;var xr=sr.empty();(xr||N.options.showCursorWhenSelecting)&&ii(N,sr.head,ge),xr||zn(N,sr,Ke)}return le}function ii(N,B,ie){var le=mo(N,B,"div",null,null,!N.options.singleCursorHeightPerLine),ge=ie.appendChild(I("div","\xA0","CodeMirror-cursor"));if(ge.style.left=le.left+"px",ge.style.top=le.top+"px",ge.style.height=Math.max(0,le.bottom-le.top)*N.options.cursorHeight+"px",le.other){var Ke=ie.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ke.style.display="",Ke.style.left=le.other.left+"px",Ke.style.top=le.other.top+"px",Ke.style.height=(le.other.bottom-le.other.top)*.85+"px"}}function on(N,B){return N.top-B.top||N.left-B.left}function zn(N,B,ie){var le=N.display,ge=N.doc,Ke=document.createDocumentFragment(),Rt=Fi(N.display),sr=Rt.left,xr=Math.max(le.sizerWidth,Ii(N)-le.sizer.offsetLeft)-Rt.right,Ir=ge.direction=="ltr";function Kn(qa,ho,ns,Mo){ho<0&&(ho=0),ho=Math.round(ho),Mo=Math.round(Mo),Ke.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+qa+`px;
top: `+ho+"px; width: "+(ns==null?xr-qa:ns)+`px;
height: `+(Mo-ho)+"px"))}function ni(qa,ho,ns){var Mo=Pe(ge,qa),xs=Mo.text.length,Zs,yl;function ul(Il,Gl){return Qo(N,Vt(qa,Il),"div",Mo,Gl)}function Pl(Il,Gl,Fl){var Ja=to(N,Mo,null,Il),vl=Gl=="ltr"==(Fl=="after")?"left":"right",gl=Fl=="after"?Ja.begin:Ja.end-(/\s/.test(Mo.text.charAt(Ja.end-1))?2:1);return ul(gl,vl)[vl]}var Vl=Ct(Mo,ge.direction);return fe(Vl,ho||0,ns==null?xs:ns,function(Il,Gl,Fl,Ja){var vl=Fl=="ltr",gl=ul(Il,vl?"left":"right"),El=ul(Gl-1,vl?"right":"left"),Bu=ho==null&&Il==0,Ks=ns==null&&Gl==xs,vs=Ja==0,lu=!Vl||Ja==Vl.length-1;if(El.top-gl.top<=3){var Kl=(Ir?Bu:Ks)&&vs,Uu=(Ir?Ks:Bu)&&lu,Eu=Kl?sr:(vl?gl:El).left,uu=Uu?xr:(vl?El:gl).right;Kn(Eu,gl.top,uu-Eu,gl.bottom)}else{var ku,Yl,Cu,Vu;vl?(ku=Ir&&Bu&&vs?sr:gl.left,Yl=Ir?xr:Pl(Il,Fl,"before"),Cu=Ir?sr:Pl(Gl,Fl,"after"),Vu=Ir&&Ks&&lu?xr:El.right):(ku=Ir?Pl(Il,Fl,"before"):sr,Yl=!Ir&&Bu&&vs?xr:gl.right,Cu=!Ir&&Ks&&lu?sr:El.left,Vu=Ir?Pl(Gl,Fl,"after"):xr),Kn(ku,gl.top,Yl-ku,gl.bottom),gl.bottom<El.top&&Kn(sr,gl.bottom,null,El.top),Kn(Cu,El.top,Vu-Cu,El.bottom)}(!Zs||on(gl,Zs)<0)&&(Zs=gl),on(El,Zs)<0&&(Zs=El),(!yl||on(gl,yl)<0)&&(yl=gl),on(El,yl)<0&&(yl=El)}),{start:Zs,end:yl}}var Ei=B.from(),Oi=B.to();if(Ei.line==Oi.line)ni(Ei.line,Ei.ch,Oi.ch);else{var la=Pe(ge,Ei.line),Ca=Pe(ge,Oi.line),Wa=Bt(la)==Bt(Ca),Ma=ni(Ei.line,Ei.ch,Wa?la.text.length+1:null).end,Na=ni(Oi.line,Wa?0:null,Oi.ch).start;Wa&&(Ma.top<Na.top-2?(Kn(Ma.right,Ma.top,null,Ma.bottom),Kn(sr,Na.top,Na.left,Na.bottom)):Kn(Ma.right,Ma.top,Na.left-Ma.right,Ma.bottom)),Ma.bottom<Na.top&&Kn(sr,Ma.bottom,null,Na.top)}ie.appendChild(Ke)}function ui(N){if(!N.state.focused)return;var B=N.display;clearInterval(B.blinker);var ie=!0;B.cursorDiv.style.visibility="",N.options.cursorBlinkRate>0?B.blinker=setInterval(function(){N.hasFocus()||vi(N),B.cursorDiv.style.visibility=(ie=!ie)?"":"hidden"},N.options.cursorBlinkRate):N.options.cursorBlinkRate<0&&(B.cursorDiv.style.visibility="hidden")}function di(N){N.state.focused||(N.display.input.focus(),Ti(N))}function li(N){N.state.delayingBlurEvent=!0,setTimeout(function(){N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1,vi(N))},100)}function Ti(N,B){if(N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1),N.options.readOnly=="nocursor")return;N.state.focused||(Gt(N,"focus",N,B),N.state.focused=!0,X(N.display.wrapper,"CodeMirror-focused"),!N.curOp&&N.display.selForContextMenu!=N.doc.sel&&(N.display.input.reset(),a&&setTimeout(function(){return N.display.input.reset(!0)},20)),N.display.input.receivedFocus()),ui(N)}function vi(N,B){if(N.state.delayingBlurEvent)return;N.state.focused&&(Gt(N,"blur",N,B),N.state.focused=!1,C(N.display.wrapper,"CodeMirror-focused")),clearInterval(N.display.blinker),setTimeout(function(){N.state.focused||(N.display.shift=!1)},150)}function yi(N){for(var B=N.display,ie=B.lineDiv.offsetTop,le=0;le<B.view.length;le++){var ge=B.view[le],Ke=N.options.lineWrapping,Rt=void 0,sr=0;if(ge.hidden)continue;if(d&&l<8){var xr=ge.node.offsetTop+ge.node.offsetHeight;Rt=xr-ie,ie=xr}else{var Ir=ge.node.getBoundingClientRect();Rt=Ir.bottom-Ir.top,!Ke&&ge.text.firstChild&&(sr=ge.text.firstChild.getBoundingClientRect().right-Ir.left-1)}var Kn=ge.line.height-Rt;if((Kn>.005||Kn<-.005)&&(Ot(ge.line,Rt),Ni(ge.line),ge.rest))for(var ni=0;ni<ge.rest.length;ni++)Ni(ge.rest[ni]);if(sr>N.display.sizerWidth){var Ei=Math.ceil(sr/Io(N.display));Ei>N.display.maxLineLength&&(N.display.maxLineLength=Ei,N.display.maxLine=ge.line,N.display.maxLineChanged=!0)}}}function Ni(N){if(N.widgets)for(var B=0;B<N.widgets.length;++B){var ie=N.widgets[B],le=ie.node.parentNode;le&&(ie.height=le.offsetHeight)}}function ia(N,B,ie){var le=ie&&ie.top!=null?Math.max(0,ie.top):N.scroller.scrollTop;le=Math.floor(le-Wn(N));var ge=ie&&ie.bottom!=null?ie.bottom:le+N.wrapper.clientHeight,Ke=Mr(B,le),Rt=Mr(B,ge);if(ie&&ie.ensure){var sr=ie.ensure.from.line,xr=ie.ensure.to.line;sr<Ke?(Ke=sr,Rt=Mr(B,Fr(Pe(B,sr))+N.wrapper.clientHeight)):Math.min(xr,B.lastLine())>=Rt&&(Ke=Mr(B,Fr(Pe(B,xr))-N.wrapper.clientHeight),Rt=xr)}return{from:Ke,to:Math.max(Rt,Ke+1)}}function Ki(N,B){if(pr(N,"scrollCursorIntoView"))return;var ie=N.display,le=ie.sizer.getBoundingClientRect(),ge=null;if(B.top+le.top<0?ge=!0:B.bottom+le.top>(window.innerHeight||document.documentElement.clientHeight)&&(ge=!1),ge!=null&&!r){var Ke=I("div","\u200B",null,`position: absolute;
top: `+(B.top-ie.viewOffset-Wn(N.display))+`px;
height: `+(B.bottom-B.top+wi(N)+ie.barHeight)+`px;
left: `+B.left+"px; width: "+Math.max(2,B.right-B.left)+"px;");N.display.lineSpace.appendChild(Ke),Ke.scrollIntoView(ge),N.display.lineSpace.removeChild(Ke)}}function fa(N,B,ie,le){le==null&&(le=0);var ge;!N.options.lineWrapping&&B==ie&&(B=B.ch?Vt(B.line,B.sticky=="before"?B.ch-1:B.ch,"after"):B,ie=B.sticky=="before"?Vt(B.line,B.ch+1,"before"):B);for(var Ke=0;Ke<5;Ke++){var Rt=!1,sr=mo(N,B),xr=!ie||ie==B?sr:mo(N,ie);ge={left:Math.min(sr.left,xr.left),top:Math.min(sr.top,xr.top)-le,right:Math.max(sr.left,xr.left),bottom:Math.max(sr.bottom,xr.bottom)+le};var Ir=Sa(N,ge),Kn=N.doc.scrollTop,ni=N.doc.scrollLeft;if(Ir.scrollTop!=null&&(Ea(N,Ir.scrollTop),Math.abs(N.doc.scrollTop-Kn)>1&&(Rt=!0)),Ir.scrollLeft!=null&&(Ka(N,Ir.scrollLeft),Math.abs(N.doc.scrollLeft-ni)>1&&(Rt=!0)),!Rt)break}return ge}function Ya(N,B){var ie=Sa(N,B);ie.scrollTop!=null&&Ea(N,ie.scrollTop),ie.scrollLeft!=null&&Ka(N,ie.scrollLeft)}function Sa(N,B){var ie=N.display,le=Oo(N.display);B.top<0&&(B.top=0);var ge=N.curOp&&N.curOp.scrollTop!=null?N.curOp.scrollTop:ie.scroller.scrollTop,Ke=Vi(N),Rt={};B.bottom-B.top>Ke&&(B.bottom=B.top+Ke);var sr=N.doc.height+gi(ie),xr=B.top<le,Ir=B.bottom>sr-le;if(B.top<ge)Rt.scrollTop=xr?0:B.top;else if(B.bottom>ge+Ke){var Kn=Math.min(B.top,(Ir?sr:B.bottom)-Ke);Kn!=ge&&(Rt.scrollTop=Kn)}var ni=N.options.fixedGutter?0:ie.gutters.offsetWidth,Ei=N.curOp&&N.curOp.scrollLeft!=null?N.curOp.scrollLeft:ie.scroller.scrollLeft-ni,Oi=Ii(N)-ie.gutters.offsetWidth,la=B.right-B.left>Oi;return la&&(B.right=B.left+Oi),B.left<10?Rt.scrollLeft=0:B.left<Ei?Rt.scrollLeft=Math.max(0,B.left+ni-(la?0:10)):B.right>Oi+Ei-3&&(Rt.scrollLeft=B.right+(la?0:10)-Oi),Rt}function wa(N,B){if(B==null)return;ro(N),N.curOp.scrollTop=(N.curOp.scrollTop==null?N.doc.scrollTop:N.curOp.scrollTop)+B}function Da(N){ro(N);var B=N.getCursor();N.curOp.scrollToPos={from:B,to:B,margin:N.options.cursorScrollMargin}}function ja(N,B,ie){(B!=null||ie!=null)&&ro(N),B!=null&&(N.curOp.scrollLeft=B),ie!=null&&(N.curOp.scrollTop=ie)}function ko(N,B){ro(N),N.curOp.scrollToPos=B}function ro(N){var B=N.curOp.scrollToPos;if(B){N.curOp.scrollToPos=null;var ie=Co(N,B.from),le=Co(N,B.to);pa(N,ie,le,B.margin)}}function pa(N,B,ie,le){var ge=Sa(N,{left:Math.min(B.left,ie.left),top:Math.min(B.top,ie.top)-le,right:Math.max(B.right,ie.right),bottom:Math.max(B.bottom,ie.bottom)+le});ja(N,ge.scrollLeft,ge.scrollTop)}function Ea(N,B){if(Math.abs(N.doc.scrollTop-B)<2)return;S||Qs(N,{top:B}),Fa(N,B,!0),S&&Qs(N),hs(N,100)}function Fa(N,B,ie){if(B=Math.max(0,Math.min(N.display.scroller.scrollHeight-N.display.scroller.clientHeight,B)),N.display.scroller.scrollTop==B&&!ie)return;N.doc.scrollTop=B,N.display.scrollbars.setScrollTop(B),N.display.scroller.scrollTop!=B&&(N.display.scroller.scrollTop=B)}function Ka(N,B,ie,le){if(B=Math.max(0,Math.min(B,N.display.scroller.scrollWidth-N.display.scroller.clientWidth)),(ie?B==N.doc.scrollLeft:Math.abs(N.doc.scrollLeft-B)<2)&&!le)return;N.doc.scrollLeft=B,al(N),N.display.scroller.scrollLeft!=B&&(N.display.scroller.scrollLeft=B),N.display.scrollbars.setScrollLeft(B)}function lo(N){var B=N.display,ie=B.gutters.offsetWidth,le=Math.round(N.doc.height+gi(N.display));return{clientHeight:B.scroller.clientHeight,viewHeight:B.wrapper.clientHeight,scrollWidth:B.scroller.scrollWidth,clientWidth:B.scroller.clientWidth,viewWidth:B.wrapper.clientWidth,barLeft:N.options.fixedGutter?ie:0,docHeight:le,scrollHeight:le+wi(N)+B.barHeight,nativeBarWidth:B.nativeBarWidth,gutterWidth:ie}}var so=function(B,ie,le){this.cm=le;var ge=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");ge.tabIndex=Ke.tabIndex=-1,B(ge),B(Ke),He(ge,"scroll",function(){ge.clientHeight&&ie(ge.scrollTop,"vertical")}),He(Ke,"scroll",function(){Ke.clientWidth&&ie(Ke.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};so.prototype.update=function(N){var B=N.scrollWidth>N.clientWidth+1,ie=N.scrollHeight>N.clientHeight+1,le=N.nativeBarWidth;if(ie){this.vert.style.display="block",this.vert.style.bottom=B?le+"px":"0";var ge=N.viewHeight-(B?le:0);this.vert.firstChild.style.height=Math.max(0,N.scrollHeight-N.clientHeight+ge)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(B){this.horiz.style.display="block",this.horiz.style.right=ie?le+"px":"0",this.horiz.style.left=N.barLeft+"px";var Ke=N.viewWidth-N.barLeft-(ie?le:0);this.horiz.firstChild.style.width=Math.max(0,N.scrollWidth-N.clientWidth+Ke)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&N.clientHeight>0&&(le==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ie?le:0,bottom:B?le:0}},so.prototype.setScrollLeft=function(N){this.horiz.scrollLeft!=N&&(this.horiz.scrollLeft=N),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},so.prototype.setScrollTop=function(N){this.vert.scrollTop!=N&&(this.vert.scrollTop=N),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},so.prototype.zeroWidthHack=function(){var N=v&&!u?"12px":"18px";this.horiz.style.height=this.vert.style.width=N,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Q,this.disableVert=new Q},so.prototype.enableZeroWidthBar=function(N,B,ie){N.style.pointerEvents="auto";function le(){var ge=N.getBoundingClientRect(),Ke=ie=="vert"?document.elementFromPoint(ge.right-1,(ge.top+ge.bottom)/2):document.elementFromPoint((ge.right+ge.left)/2,ge.bottom-1);Ke!=N?N.style.pointerEvents="none":B.set(1e3,le)}B.set(1e3,le)},so.prototype.clear=function(){var N=this.horiz.parentNode;N.removeChild(this.horiz),N.removeChild(this.vert)};var To=function(){};To.prototype.update=function(){return{bottom:0,right:0}},To.prototype.setScrollLeft=function(){},To.prototype.setScrollTop=function(){},To.prototype.clear=function(){};function Lo(N,B){B||(B=lo(N));var ie=N.display.barWidth,le=N.display.barHeight;is(N,B);for(var ge=0;ge<4&&ie!=N.display.barWidth||le!=N.display.barHeight;ge++)ie!=N.display.barWidth&&N.options.lineWrapping&&yi(N),is(N,lo(N)),ie=N.display.barWidth,le=N.display.barHeight}function is(N,B){var ie=N.display,le=ie.scrollbars.update(B);ie.sizer.style.paddingRight=(ie.barWidth=le.right)+"px",ie.sizer.style.paddingBottom=(ie.barHeight=le.bottom)+"px",ie.heightForcer.style.borderBottom=le.bottom+"px solid transparent",le.right&&le.bottom?(ie.scrollbarFiller.style.display="block",ie.scrollbarFiller.style.height=le.bottom+"px",ie.scrollbarFiller.style.width=le.right+"px"):ie.scrollbarFiller.style.display="",le.bottom&&N.options.coverGutterNextToScrollbar&&N.options.fixedGutter?(ie.gutterFiller.style.display="block",ie.gutterFiller.style.height=le.bottom+"px",ie.gutterFiller.style.width=B.gutterWidth+"px"):ie.gutterFiller.style.display=""}var cs={native:so,null:To};function Rs(N){N.display.scrollbars&&(N.display.scrollbars.clear(),N.display.scrollbars.addClass&&C(N.display.wrapper,N.display.scrollbars.addClass)),N.display.scrollbars=new cs[N.options.scrollbarStyle](function(B){N.display.wrapper.insertBefore(B,N.display.scrollbarFiller),He(B,"mousedown",function(){N.state.focused&&setTimeout(function(){return N.display.input.focus()},0)}),B.setAttribute("cm-not-content","true")},function(B,ie){ie=="horizontal"?Ka(N,B):Ea(N,B)},N),N.display.scrollbars.addClass&&X(N.display.wrapper,N.display.scrollbars.addClass)}var Ko=0;function as(N){N.curOp={cm:N,viewChanged:!1,startHeight:N.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:++Ko},ji(N.curOp)}function co(N){var B=N.curOp;B&&ta(B,function(ie){for(var le=0;le<ie.ops.length;le++)ie.ops[le].cm.curOp=null;Ao(ie)})}function Ao(N){for(var B=N.ops,ie=0;ie<B.length;ie++)$a(B[ie]);for(var le=0;le<B.length;le++)ss(B[le]);for(var ge=0;ge<B.length;ge++)_s(B[ge]);for(var Ke=0;Ke<B.length;Ke++)Fo(B[Ke]);for(var Rt=0;Rt<B.length;Rt++)il(B[Rt])}function $a(N){var B=N.cm,ie=B.display;Ll(B),N.updateMaxLine&&Fn(B),N.mustUpdate=N.viewChanged||N.forceUpdate||N.scrollTop!=null||N.scrollToPos&&(N.scrollToPos.from.line<ie.viewFrom||N.scrollToPos.to.line>=ie.viewTo)||ie.maxLineChanged&&B.options.lineWrapping,N.update=N.mustUpdate&&new Ns(B,N.mustUpdate&&{top:N.scrollTop,ensure:N.scrollToPos},N.forceUpdate)}function ss(N){N.updatedDisplay=N.mustUpdate&&ds(N.cm,N.update)}function _s(N){var B=N.cm,ie=B.display;N.updatedDisplay&&yi(B),N.barMeasure=lo(B),ie.maxLineChanged&&!B.options.lineWrapping&&(N.adjustWidthTo=Hi(B,ie.maxLine,ie.maxLine.text.length).left+3,B.display.sizerWidth=N.adjustWidthTo,N.barMeasure.scrollWidth=Math.max(ie.scroller.clientWidth,ie.sizer.offsetLeft+N.adjustWidthTo+wi(B)+B.display.barWidth),N.maxScrollLeft=Math.max(0,ie.sizer.offsetLeft+N.adjustWidthTo-Ii(B))),(N.updatedDisplay||N.selectionChanged)&&(N.preparedSelection=ie.input.prepareSelection())}function Fo(N){var B=N.cm;N.adjustWidthTo!=null&&(B.display.sizer.style.minWidth=N.adjustWidthTo+"px",N.maxScrollLeft<B.doc.scrollLeft&&Ka(B,Math.min(B.display.scroller.scrollLeft,N.maxScrollLeft),!0),B.display.maxLineChanged=!1);var ie=N.focus&&N.focus==P();N.preparedSelection&&B.display.input.showSelection(N.preparedSelection,ie),(N.updatedDisplay||N.startHeight!=B.doc.height)&&Lo(B,N.barMeasure),N.updatedDisplay&&Bs(B,N.barMeasure),N.selectionChanged&&ui(B),B.state.focused&&N.updateInput&&B.display.input.reset(N.typing),ie&&di(N.cm)}function il(N){var B=N.cm,ie=B.display,le=B.doc;if(N.updatedDisplay&&ks(B,N.update),ie.wheelStartX!=null&&(N.scrollTop!=null||N.scrollLeft!=null||N.scrollToPos)&&(ie.wheelStartX=ie.wheelStartY=null),N.scrollTop!=null&&Fa(B,N.scrollTop,N.forceScroll),N.scrollLeft!=null&&Ka(B,N.scrollLeft,!0,!0),N.scrollToPos){var ge=fa(B,Ft(le,N.scrollToPos.from),Ft(le,N.scrollToPos.to),N.scrollToPos.margin);Ki(B,ge)}var Ke=N.maybeHiddenMarkers,Rt=N.maybeUnhiddenMarkers;if(Ke)for(var sr=0;sr<Ke.length;++sr)Ke[sr].lines.length||Gt(Ke[sr],"hide");if(Rt)for(var xr=0;xr<Rt.length;++xr)Rt[xr].lines.length&&Gt(Rt[xr],"unhide");ie.wrapper.offsetHeight&&(le.scrollTop=B.display.scroller.scrollTop),N.changeObjs&&Gt(B,"changes",B,N.changeObjs),N.update&&N.update.finish()}function Eo(N,B){if(N.curOp)return B();as(N);try{return B()}finally{co(N)}}function zo(N,B){return function(){if(N.curOp)return B.apply(N,arguments);as(N);try{return B.apply(N,arguments)}finally{co(N)}}}function Fs(N){return function(){if(this.curOp)return N.apply(this,arguments);as(this);try{return N.apply(this,arguments)}finally{co(this)}}}function ms(N){return function(){var B=this.cm;if(!B||B.curOp)return N.apply(this,arguments);as(B);try{return N.apply(this,arguments)}finally{co(B)}}}function hs(N,B){N.doc.highlightFrontier<N.display.viewTo&&N.state.highlight.set(B,K(Sn,N))}function Sn(N){var B=N.doc;if(B.highlightFrontier>=N.display.viewTo)return;var ie=+new Date+N.options.workTime,le=ri(N,B.highlightFrontier),ge=[];B.iter(le.line,Math.min(B.first+B.size,N.display.viewTo+500),function(Ke){if(le.line>=N.display.viewFrom){var Rt=Ke.styles,sr=Ke.text.length>N.options.maxHighlightLength?Zt(B.mode,le.state):null,xr=dn(N,Ke,le,!0);sr&&(le.state=sr),Ke.styles=xr.styles;var Ir=Ke.styleClasses,Kn=xr.classes;Kn?Ke.styleClasses=Kn:Ir&&(Ke.styleClasses=null);for(var ni=!Rt||Rt.length!=Ke.styles.length||Ir!=Kn&&(!Ir||!Kn||Ir.bgClass!=Kn.bgClass||Ir.textClass!=Kn.textClass),Ei=0;!ni&&Ei<Rt.length;++Ei)ni=Rt[Ei]!=Ke.styles[Ei];ni&&ge.push(le.line),Ke.stateAfter=le.save(),le.nextLine()}else Ke.text.length<=N.options.maxHighlightLength&&$n(N,Ke.text,le),Ke.stateAfter=le.line%5==0?le.save():null,le.nextLine();if(+new Date>ie)return hs(N,N.options.workDelay),!0}),B.highlightFrontier=le.line,B.modeFrontier=Math.max(B.modeFrontier,le.line),ge.length&&Eo(N,function(){for(var Ke=0;Ke<ge.length;Ke++)vt(N,ge[Ke],"text")})}var Ns=function(B,ie,le){var ge=B.display;this.viewport=ie,this.visible=ia(ge,B.doc,ie),this.editorIsHidden=!ge.wrapper.offsetWidth,this.wrapperHeight=ge.wrapper.clientHeight,this.wrapperWidth=ge.wrapper.clientWidth,this.oldDisplayWidth=Ii(B),this.force=le,this.dims=os(B),this.events=[]};Ns.prototype.signal=function(N,B){Ht(N,B)&&this.events.push(arguments)},Ns.prototype.finish=function(){for(var N=0;N<this.events.length;N++)Gt.apply(null,this.events[N])};function Ll(N){var B=N.display;!B.scrollbarsClipped&&B.scroller.offsetWidth&&(B.nativeBarWidth=B.scroller.offsetWidth-B.scroller.clientWidth,B.heightForcer.style.height=wi(N)+"px",B.sizer.style.marginBottom=-B.nativeBarWidth+"px",B.sizer.style.borderRightWidth=wi(N)+"px",B.scrollbarsClipped=!0)}function el(N){if(N.hasFocus())return null;var B=P();if(!B||!U(N.display.lineDiv,B))return null;var ie={activeElt:B};if(window.getSelection){var le=window.getSelection();le.anchorNode&&le.extend&&U(N.display.lineDiv,le.anchorNode)&&(ie.anchorNode=le.anchorNode,ie.anchorOffset=le.anchorOffset,ie.focusNode=le.focusNode,ie.focusOffset=le.focusOffset)}return ie}function Gs(N){if(!N||!N.activeElt||N.activeElt==P())return;if(N.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(N.activeElt.nodeName)&&N.anchorNode&&U(document.body,N.anchorNode)&&U(document.body,N.focusNode)){var B=window.getSelection(),ie=document.createRange();ie.setEnd(N.anchorNode,N.anchorOffset),ie.collapse(!1),B.removeAllRanges(),B.addRange(ie),B.extend(N.focusNode,N.focusOffset)}}function ds(N,B){var ie=N.display,le=N.doc;if(B.editorIsHidden)return _r(N),!1;if(!B.force&&B.visible.from>=ie.viewFrom&&B.visible.to<=ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo)&&ie.renderedView==ie.view&&Jn(N)==0)return!1;Js(N)&&(_r(N),B.dims=os(N));var ge=le.first+le.size,Ke=Math.max(B.visible.from-N.options.viewportMargin,le.first),Rt=Math.min(ge,B.visible.to+N.options.viewportMargin);ie.viewFrom<Ke&&Ke-ie.viewFrom<20&&(Ke=Math.max(le.first,ie.viewFrom)),ie.viewTo>Rt&&ie.viewTo-Rt<20&&(Rt=Math.min(ge,ie.viewTo)),Ze&&(Ke=kt(N.doc,Ke),Rt=hr(N.doc,Rt));var sr=Ke!=ie.viewFrom||Rt!=ie.viewTo||ie.lastWrapHeight!=B.wrapperHeight||ie.lastWrapWidth!=B.wrapperWidth;Jr(N,Ke,Rt),ie.viewOffset=Fr(Pe(N.doc,ie.viewFrom)),N.display.mover.style.top=ie.viewOffset+"px";var xr=Jn(N);if(!sr&&xr==0&&!B.force&&ie.renderedView==ie.view&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo))return!1;var Ir=el(N);return xr>4&&(ie.lineDiv.style.display="none"),tl(N,ie.updateLineNumbers,B.dims),xr>4&&(ie.lineDiv.style.display=""),ie.renderedView=ie.view,Gs(Ir),w(ie.cursorDiv),w(ie.selectionDiv),ie.gutters.style.height=ie.sizer.style.minHeight=0,sr&&(ie.lastWrapHeight=B.wrapperHeight,ie.lastWrapWidth=B.wrapperWidth,hs(N,400)),ie.updateLineNumbers=null,!0}function ks(N,B){for(var ie=B.viewport,le=!0;;le=!1){if(!le||!N.options.lineWrapping||B.oldDisplayWidth==Ii(N)){if(ie&&ie.top!=null&&(ie={top:Math.min(N.doc.height+gi(N.display)-Vi(N),ie.top)}),B.visible=ia(N.display,N.doc,ie),B.visible.from>=N.display.viewFrom&&B.visible.to<=N.display.viewTo)break}else le&&(B.visible=ia(N.display,N.doc,ie));if(!ds(N,B))break;yi(N);var ge=lo(N);fn(N),Lo(N,ge),Bs(N,ge),B.force=!1}B.signal(N,"update",N),(N.display.viewFrom!=N.display.reportedViewFrom||N.display.viewTo!=N.display.reportedViewTo)&&(B.signal(N,"viewportChange",N,N.display.viewFrom,N.display.viewTo),N.display.reportedViewFrom=N.display.viewFrom,N.display.reportedViewTo=N.display.viewTo)}function Qs(N,B){var ie=new Ns(N,B);if(ds(N,ie)){yi(N),ks(N,ie);var le=lo(N);fn(N),Lo(N,le),Bs(N,le),ie.finish()}}function tl(N,B,ie){var le=N.display,ge=N.options.lineNumbers,Ke=le.lineDiv,Rt=Ke.firstChild;function sr(la){var Ca=la.nextSibling;return a&&v&&N.display.currentWheelTarget==la?la.style.display="none":la.parentNode.removeChild(la),Ca}for(var xr=le.view,Ir=le.viewFrom,Kn=0;Kn<xr.length;Kn++){var ni=xr[Kn];if(!ni.hidden)if(!ni.node||ni.node.parentNode!=Ke){var Ei=Dr(N,ni,Ir,ie);Ke.insertBefore(Ei,Rt)}else{for(;Rt!=ni.node;)Rt=sr(Rt);var Oi=ge&&B!=null&&B<=Ir&&ni.lineNumber;ni.changes&&(G(ni.changes,"gutter")>-1&&(Oi=!1),On(N,ni,Ir,ie)),Oi&&(w(ni.lineNumber),ni.lineNumber.appendChild(document.createTextNode(hn(N.options,Ir)))),Rt=ni.node.nextSibling}Ir+=ni.size}for(;Rt;)Rt=sr(Rt)}function Ss(N){var B=N.gutters.offsetWidth;N.sizer.style.marginLeft=B+"px"}function Bs(N,B){N.display.sizer.style.minHeight=B.docHeight+"px",N.display.heightForcer.style.top=B.docHeight+"px",N.display.gutters.style.height=B.docHeight+N.display.barHeight+wi(N)+"px"}function al(N){var B=N.display,ie=B.view;if(!B.alignWidgets&&(!B.gutters.firstChild||!N.options.fixedGutter))return;for(var le=So(B)-B.scroller.scrollLeft+N.doc.scrollLeft,ge=B.gutters.offsetWidth,Ke=le+"px",Rt=0;Rt<ie.length;Rt++)if(!ie[Rt].hidden){N.options.fixedGutter&&(ie[Rt].gutter&&(ie[Rt].gutter.style.left=Ke),ie[Rt].gutterBackground&&(ie[Rt].gutterBackground.style.left=Ke));var sr=ie[Rt].alignable;if(sr)for(var xr=0;xr<sr.length;xr++)sr[xr].style.left=Ke}N.options.fixedGutter&&(B.gutters.style.left=le+ge+"px")}function Js(N){if(!N.options.lineNumbers)return!1;var B=N.doc,ie=hn(N.options,B.first+B.size-1),le=N.display;if(ie.length!=le.lineNumChars){var ge=le.measure.appendChild(I("div",[I("div",ie)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ke=ge.firstChild.offsetWidth,Rt=ge.offsetWidth-Ke;return le.lineGutter.style.width="",le.lineNumInnerWidth=Math.max(Ke,le.lineGutter.offsetWidth-Rt)+1,le.lineNumWidth=le.lineNumInnerWidth+Rt,le.lineNumChars=le.lineNumInnerWidth?ie.length:-1,le.lineGutter.style.width=le.lineNumWidth+"px",Ss(N.display),!0}return!1}function Vo(N,B){for(var ie=[],le=!1,ge=0;ge<N.length;ge++){var Ke=N[ge],Rt=null;if(typeof Ke!="string"&&(Rt=Ke.style,Ke=Ke.className),Ke=="CodeMirror-linenumbers")if(B)le=!0;else continue;ie.push({className:Ke,style:Rt})}return B&&!le&&ie.push({className:"CodeMirror-linenumbers",style:null}),ie}function No(N){var B=N.gutters,ie=N.gutterSpecs;w(B),N.lineGutter=null;for(var le=0;le<ie.length;++le){var ge=ie[le],Ke=ge.className,Rt=ge.style,sr=B.appendChild(I("div",null,"CodeMirror-gutter "+Ke));Rt&&(sr.style.cssText=Rt),Ke=="CodeMirror-linenumbers"&&(N.lineGutter=sr,sr.style.width=(N.lineNumWidth||1)+"px")}B.style.display=ie.length?"":"none",Ss(N)}function fs(N){No(N.display),Ha(N),al(N)}function Ds(N,B,ie,le){var ge=this;this.input=ie,ge.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),ge.scrollbarFiller.setAttribute("cm-not-content","true"),ge.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),ge.gutterFiller.setAttribute("cm-not-content","true"),ge.lineDiv=k("div",null,"CodeMirror-code"),ge.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),ge.cursorDiv=I("div",null,"CodeMirror-cursors"),ge.measure=I("div",null,"CodeMirror-measure"),ge.lineMeasure=I("div",null,"CodeMirror-measure"),ge.lineSpace=k("div",[ge.measure,ge.lineMeasure,ge.selectionDiv,ge.cursorDiv,ge.lineDiv],null,"position: relative; outline: none");var Ke=k("div",[ge.lineSpace],"CodeMirror-lines");ge.mover=I("div",[Ke],null,"position: relative"),ge.sizer=I("div",[ge.mover],"CodeMirror-sizer"),ge.sizerWidth=null,ge.heightForcer=I("div",null,null,"position: absolute; height: "+te+"px; width: 1px;"),ge.gutters=I("div",null,"CodeMirror-gutters"),ge.lineGutter=null,ge.scroller=I("div",[ge.sizer,ge.heightForcer,ge.gutters],"CodeMirror-scroll"),ge.scroller.setAttribute("tabIndex","-1"),ge.wrapper=I("div",[ge.scrollbarFiller,ge.gutterFiller,ge.scroller],"CodeMirror"),d&&l<8&&(ge.gutters.style.zIndex=-1,ge.scroller.style.paddingRight=0),!a&&!(S&&h)&&(ge.scroller.draggable=!0),N&&(N.appendChild?N.appendChild(ge.wrapper):N(ge.wrapper)),ge.viewFrom=ge.viewTo=B.first,ge.reportedViewFrom=ge.reportedViewTo=B.first,ge.view=[],ge.renderedView=null,ge.externalMeasured=null,ge.viewOffset=0,ge.lastWrapHeight=ge.lastWrapWidth=0,ge.updateLineNumbers=null,ge.nativeBarWidth=ge.barHeight=ge.barWidth=0,ge.scrollbarsClipped=!1,ge.lineNumWidth=ge.lineNumInnerWidth=ge.lineNumChars=null,ge.alignWidgets=!1,ge.cachedCharWidth=ge.cachedTextHeight=ge.cachedPaddingH=null,ge.maxLine=null,ge.maxLineLength=0,ge.maxLineChanged=!1,ge.wheelDX=ge.wheelDY=ge.wheelStartX=ge.wheelStartY=null,ge.shift=!1,ge.selForContextMenu=null,ge.activeTouch=null,ge.gutterSpecs=Vo(le.gutters,le.lineNumbers),No(ge),ie.init(ge)}var go=0,zt=null;d?zt=-.53:S?zt=15:t?zt=-.7:e&&(zt=-1/3);function ur(N){var B=N.wheelDeltaX,ie=N.wheelDeltaY;return B==null&&N.detail&&N.axis==N.HORIZONTAL_AXIS&&(B=N.detail),ie==null&&N.detail&&N.axis==N.VERTICAL_AXIS?ie=N.detail:ie==null&&(ie=N.wheelDelta),{x:B,y:ie}}function Dn(N){var B=ur(N);return B.x*=zt,B.y*=zt,B}function fi(N,B){var ie=ur(B),le=ie.x,ge=ie.y,Ke=N.display,Rt=Ke.scroller,sr=Rt.scrollWidth>Rt.clientWidth,xr=Rt.scrollHeight>Rt.clientHeight;if(!(le&&sr||ge&&xr))return;if(ge&&v&&a){e:for(var Ir=B.target,Kn=Ke.view;Ir!=Rt;Ir=Ir.parentNode)for(var ni=0;ni<Kn.length;ni++)if(Kn[ni].node==Ir){N.display.currentWheelTarget=Ir;break e}}if(le&&!S&&!o&&zt!=null){ge&&xr&&Ea(N,Math.max(0,Rt.scrollTop+ge*zt)),Ka(N,Math.max(0,Rt.scrollLeft+le*zt)),(!ge||ge&&xr)&&Ge(B),Ke.wheelStartX=null;return}if(ge&&zt!=null){var Ei=ge*zt,Oi=N.doc.scrollTop,la=Oi+Ke.wrapper.clientHeight;Ei<0?Oi=Math.max(0,Oi+Ei-50):la=Math.min(N.doc.height,la+Ei+50),Qs(N,{top:Oi,bottom:la})}go<20&&(Ke.wheelStartX==null?(Ke.wheelStartX=Rt.scrollLeft,Ke.wheelStartY=Rt.scrollTop,Ke.wheelDX=le,Ke.wheelDY=ge,setTimeout(function(){if(Ke.wheelStartX==null)return;var Ca=Rt.scrollLeft-Ke.wheelStartX,Wa=Rt.scrollTop-Ke.wheelStartY,Ma=Wa&&Ke.wheelDY&&Wa/Ke.wheelDY||Ca&&Ke.wheelDX&&Ca/Ke.wheelDX;if(Ke.wheelStartX=Ke.wheelStartY=null,!Ma)return;zt=(zt*go+Ma)/(go+1),++go},200)):(Ke.wheelDX+=le,Ke.wheelDY+=ge))}var Mt=function(B,ie){this.ranges=B,this.primIndex=ie};Mt.prototype.primary=function(){return this.ranges[this.primIndex]},Mt.prototype.equals=function(N){if(N==this)return!0;if(N.primIndex!=this.primIndex||N.ranges.length!=this.ranges.length)return!1;for(var B=0;B<this.ranges.length;B++){var ie=this.ranges[B],le=N.ranges[B];if(!xt(ie.anchor,le.anchor)||!xt(ie.head,le.head))return!1}return!0},Mt.prototype.deepCopy=function(){for(var N=[],B=0;B<this.ranges.length;B++)N[B]=new ce(dr(this.ranges[B].anchor),dr(this.ranges[B].head));return new Mt(N,this.primIndex)},Mt.prototype.somethingSelected=function(){for(var N=0;N<this.ranges.length;N++)if(!this.ranges[N].empty())return!0;return!1},Mt.prototype.contains=function(N,B){B||(B=N);for(var ie=0;ie<this.ranges.length;ie++){var le=this.ranges[ie];if(yt(B,le.from())>=0&&yt(N,le.to())<=0)return ie}return-1};var ce=function(B,ie){this.anchor=B,this.head=ie};ce.prototype.from=function(){return Ut(this.anchor,this.head)},ce.prototype.to=function(){return er(this.anchor,this.head)},ce.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Se(N,B,ie){var le=N&&N.options.selectionsMayTouch,ge=B[ie];B.sort(function(Ei,Oi){return yt(Ei.from(),Oi.from())}),ie=G(B,ge);for(var Ke=1;Ke<B.length;Ke++){var Rt=B[Ke],sr=B[Ke-1],xr=yt(sr.to(),Rt.from());if(le&&!Rt.empty()?xr>0:xr>=0){var Ir=Ut(sr.from(),Rt.from()),Kn=er(sr.to(),Rt.to()),ni=sr.empty()?Rt.from()==Rt.head:sr.from()==sr.head;Ke<=ie&&--ie,B.splice(--Ke,2,new ce(ni?Kn:Ir,ni?Ir:Kn))}}return new Mt(B,ie)}function Ie(N,B){return new Mt([new ce(N,B||N)],0)}function Je(N){return N.text?Vt(N.from.line+N.text.length-1,Ve(N.text).length+(N.text.length==1?N.from.ch:0)):N.to}function Pt(N,B){if(yt(N,B.from)<0)return N;if(yt(N,B.to)<=0)return Je(B);var ie=N.line+B.text.length-(B.to.line-B.from.line)-1,le=N.ch;return N.line==B.to.line&&(le+=Je(B).ch-B.to.ch),Vt(ie,le)}function cr(N,B){for(var ie=[],le=0;le<N.sel.ranges.length;le++){var ge=N.sel.ranges[le];ie.push(new ce(Pt(ge.anchor,B),Pt(ge.head,B)))}return Se(N.cm,ie,N.sel.primIndex)}function Zr(N,B,ie){return N.line==B.line?Vt(ie.line,N.ch-B.ch+ie.ch):Vt(ie.line+(N.line-B.line),N.ch)}function vn(N,B,ie){for(var le=[],ge=Vt(N.first,0),Ke=ge,Rt=0;Rt<B.length;Rt++){var sr=B[Rt],xr=Zr(sr.from,ge,Ke),Ir=Zr(Je(sr),ge,Ke);if(ge=sr.to,Ke=Ir,ie=="around"){var Kn=N.sel.ranges[Rt],ni=yt(Kn.head,Kn.anchor)<0;le[Rt]=new ce(ni?Ir:xr,ni?xr:Ir)}else le[Rt]=new ce(xr,xr)}return new Mt(le,N.sel.primIndex)}function kn(N){N.doc.mode=oi(N.options,N.doc.modeOption),ci(N)}function ci(N){N.doc.iter(function(B){B.stateAfter&&(B.stateAfter=null),B.styles&&(B.styles=null)}),N.doc.modeFrontier=N.doc.highlightFrontier=N.doc.first,hs(N,100),N.state.modeGen++,N.curOp&&Ha(N)}function Si(N,B){return B.from.ch==0&&B.to.ch==0&&Ve(B.text)==""&&(!N.cm||N.cm.options.wholeLineUpdateBefore)}function Ai(N,B,ie,le){function ge(Na){return ie?ie[Na]:null}function Ke(Na,qa,ho){An(Na,qa,ho,le),Nr(Na,"change",Na,B)}function Rt(Na,qa){for(var ho=[],ns=Na;ns<qa;++ns)ho.push(new hi(Ir[ns],ge(ns),le));return ho}var sr=B.from,xr=B.to,Ir=B.text,Kn=Pe(N,sr.line),ni=Pe(N,xr.line),Ei=Ve(Ir),Oi=ge(Ir.length-1),la=xr.line-sr.line;if(B.full)N.insert(0,Rt(0,Ir.length)),N.remove(Ir.length,N.size-Ir.length);else if(Si(N,B)){var Ca=Rt(0,Ir.length-1);Ke(ni,ni.text,Oi),la&&N.remove(sr.line,la),Ca.length&&N.insert(sr.line,Ca)}else if(Kn==ni)if(Ir.length==1)Ke(Kn,Kn.text.slice(0,sr.ch)+Ei+Kn.text.slice(xr.ch),Oi);else{var Wa=Rt(1,Ir.length-1);Wa.push(new hi(Ei+Kn.text.slice(xr.ch),Oi,le)),Ke(Kn,Kn.text.slice(0,sr.ch)+Ir[0],ge(0)),N.insert(sr.line+1,Wa)}else if(Ir.length==1)Ke(Kn,Kn.text.slice(0,sr.ch)+Ir[0]+ni.text.slice(xr.ch),ge(0)),N.remove(sr.line+1,la);else{Ke(Kn,Kn.text.slice(0,sr.ch)+Ir[0],ge(0)),Ke(ni,Ei+ni.text.slice(xr.ch),Oi);var Ma=Rt(1,Ir.length-1);la>1&&N.remove(sr.line+1,la-1),N.insert(sr.line+1,Ma)}Nr(N,"change",N,B)}function Qi(N,B,ie){function le(ge,Ke,Rt){if(ge.linked)for(var sr=0;sr<ge.linked.length;++sr){var xr=ge.linked[sr];if(xr.doc==Ke)continue;var Ir=Rt&&xr.sharedHist;if(ie&&!Ir)continue;B(xr.doc,Ir),le(xr.doc,ge,Ir)}}le(N,null,!0)}function sa(N,B){if(B.cm)throw new Error("This document is already in use.");N.doc=B,B.cm=N,Ho(N),kn(N),Ua(N),N.options.lineWrapping||Fn(N),N.options.mode=B.modeOption,Ha(N)}function Ua(N){(N.doc.direction=="rtl"?X:C)(N.display.lineDiv,"CodeMirror-rtl")}function no(N){Eo(N,function(){Ua(N),Ha(N)})}function Wo(N){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=N||1}function Zo(N,B){var ie={from:dr(B.from),to:Je(B),text:rt(N,B.from,B.to)};return Ms(N,ie,B.from.line,B.to.line+1),Qi(N,function(le){return Ms(le,ie,B.from.line,B.to.line+1)},!0),ie}function Bo(N){for(;N.length;){var B=Ve(N);if(B.ranges)N.pop();else break}}function Es(N,B){if(B)return Bo(N.done),Ve(N.done);if(N.done.length&&!Ve(N.done).ranges)return Ve(N.done);if(N.done.length>1&&!N.done[N.done.length-2].ranges)return N.done.pop(),Ve(N.done)}function As(N,B,ie,le){var ge=N.history;ge.undone.length=0;var Ke=+new Date,Rt,sr;if((ge.lastOp==le||ge.lastOrigin==B.origin&&B.origin&&(B.origin.charAt(0)=="+"&&ge.lastModTime>Ke-(N.cm?N.cm.options.historyEventDelay:500)||B.origin.charAt(0)=="*"))&&(Rt=Es(ge,ge.lastOp==le)))sr=Ve(Rt.changes),yt(B.from,B.to)==0&&yt(B.from,sr.to)==0?sr.to=Je(B):Rt.changes.push(Zo(N,B));else{var xr=Ve(ge.done);for((!xr||!xr.ranges)&&vo(N.sel,ge.done),Rt={changes:[Zo(N,B)],generation:ge.generation},ge.done.push(Rt);ge.done.length>ge.undoDepth;)ge.done.shift(),ge.done[0].ranges||ge.done.shift()}ge.done.push(ie),ge.generation=++ge.maxGeneration,ge.lastModTime=ge.lastSelTime=Ke,ge.lastOp=ge.lastSelOp=le,ge.lastOrigin=ge.lastSelOrigin=B.origin,sr||Gt(N,"historyAdded")}function $o(N,B,ie,le){var ge=B.charAt(0);return ge=="*"||ge=="+"&&ie.ranges.length==le.ranges.length&&ie.somethingSelected()==le.somethingSelected()&&new Date-N.history.lastSelTime<=(N.cm?N.cm.options.historyEventDelay:500)}function Do(N,B,ie,le){var ge=N.history,Ke=le&&le.origin;ie==ge.lastSelOp||Ke&&ge.lastSelOrigin==Ke&&(ge.lastModTime==ge.lastSelTime&&ge.lastOrigin==Ke||$o(N,Ke,Ve(ge.done),B))?ge.done[ge.done.length-1]=B:vo(B,ge.done),ge.lastSelTime=+new Date,ge.lastSelOrigin=Ke,ge.lastSelOp=ie,le&&le.clearRedo!==!1&&Bo(ge.undone)}function vo(N,B){var ie=Ve(B);ie&&ie.ranges&&ie.equals(N)||B.push(N)}function Ms(N,B,ie,le){var ge=B["spans_"+N.id],Ke=0;N.iter(Math.max(N.first,ie),Math.min(N.first+N.size,le),function(Rt){Rt.markedSpans&&((ge||(ge=B["spans_"+N.id]={}))[Ke]=Rt.markedSpans),++Ke})}function rl(N){if(!N)return null;for(var B,ie=0;ie<N.length;++ie)N[ie].marker.explicitlyCleared?B||(B=N.slice(0,ie)):B&&B.push(N[ie]);return B?B.length?B:null:N}function gs(N,B){var ie=B["spans_"+N.id];if(!ie)return null;for(var le=[],ge=0;ge<B.text.length;++ge)le.push(rl(ie[ge]));return le}function Ra(N,B){var ie=gs(N,B),le=Vn(N,B);if(!ie)return le;if(!le)return ie;for(var ge=0;ge<ie.length;++ge){var Ke=ie[ge],Rt=le[ge];if(Ke&&Rt){e:for(var sr=0;sr<Rt.length;++sr){for(var xr=Rt[sr],Ir=0;Ir<Ke.length;++Ir)if(Ke[Ir].marker==xr.marker)continue e;Ke.push(xr)}}else Rt&&(ie[ge]=Rt)}return ie}function dl(N,B,ie){for(var le=[],ge=0;ge<N.length;++ge){var Ke=N[ge];if(Ke.ranges){le.push(ie?Mt.prototype.deepCopy.call(Ke):Ke);continue}var Rt=Ke.changes,sr=[];le.push({changes:sr});for(var xr=0;xr<Rt.length;++xr){var Ir=Rt[xr],Kn=void 0;if(sr.push({from:Ir.from,to:Ir.to,text:Ir.text}),B)for(var ni in Ir)(Kn=ni.match(/^spans_(\d+)$/))&&(G(B,Number(Kn[1]))>-1&&(Ve(sr)[ni]=Ir[ni],delete Ir[ni]))}}return le}function fl(N,B,ie,le){if(le){var ge=N.anchor;if(ie){var Ke=yt(B,ge)<0;Ke!=yt(ie,ge)<0?(ge=B,B=ie):Ke!=yt(B,ie)<0&&(B=ie)}return new ce(ge,B)}else return new ce(ie||B,B)}function Us(N,B,ie,le,ge){ge==null&&(ge=N.cm&&(N.cm.display.shift||N.extend)),Cs(N,new Mt([fl(N.sel.primary(),B,ie,ge)],0),le)}function Os(N,B,ie){for(var le=[],ge=N.cm&&(N.cm.display.shift||N.extend),Ke=0;Ke<N.sel.ranges.length;Ke++)le[Ke]=fl(N.sel.ranges[Ke],B[Ke],null,ge);var Rt=Se(N.cm,le,N.sel.primIndex);Cs(N,Rt,ie)}function Xs(N,B,ie,le){var ge=N.sel.ranges.slice(0);ge[B]=ie,Cs(N,Se(N.cm,ge,N.sel.primIndex),le)}function Ql(N,B,ie,le){Cs(N,Ie(B,ie),le)}function Ul(N,B,ie){var le={ranges:B.ranges,update:function(Ke){this.ranges=[];for(var Rt=0;Rt<Ke.length;Rt++)this.ranges[Rt]=new ce(Ft(N,Ke[Rt].anchor),Ft(N,Ke[Rt].head))},origin:ie&&ie.origin};return Gt(N,"beforeSelectionChange",N,le),N.cm&&Gt(N.cm,"beforeSelectionChange",N.cm,le),le.ranges!=B.ranges?Se(N.cm,le.ranges,le.ranges.length-1):B}function wl(N,B,ie){var le=N.history.done,ge=Ve(le);ge&&ge.ranges?(le[le.length-1]=B,Ws(N,B,ie)):Cs(N,B,ie)}function Cs(N,B,ie){Ws(N,B,ie),Do(N,N.sel,N.cm?N.cm.curOp.id:NaN,ie)}function Ws(N,B,ie){(Ht(N,"beforeSelectionChange")||N.cm&&Ht(N.cm,"beforeSelectionChange"))&&(B=Ul(N,B,ie));var le=ie&&ie.bias||(yt(B.primary().head,N.sel.primary().head)<0?-1:1);Cl(N,jo(N,B,le,!0)),!(ie&&ie.scroll===!1)&&N.cm&&Da(N.cm)}function Cl(N,B){if(B.equals(N.sel))return;N.sel=B,N.cm&&(N.cm.curOp.updateInput=1,N.cm.curOp.selectionChanged=!0,Qt(N.cm)),Nr(N,"cursorActivity",N)}function pl(N){Cl(N,jo(N,N.sel,null,!1))}function jo(N,B,ie,le){for(var ge,Ke=0;Ke<B.ranges.length;Ke++){var Rt=B.ranges[Ke],sr=B.ranges.length==N.sel.ranges.length&&N.sel.ranges[Ke],xr=qo(N,Rt.anchor,sr&&sr.anchor,ie,le),Ir=qo(N,Rt.head,sr&&sr.head,ie,le);(ge||xr!=Rt.anchor||Ir!=Rt.head)&&(ge||(ge=B.ranges.slice(0,Ke)),ge[Ke]=new ce(xr,Ir))}return ge?Se(N.cm,ge,B.primIndex):B}function yo(N,B,ie,le,ge){var Ke=Pe(N,B.line);if(Ke.markedSpans)for(var Rt=0;Rt<Ke.markedSpans.length;++Rt){var sr=Ke.markedSpans[Rt],xr=sr.marker,Ir="selectLeft"in xr?!xr.selectLeft:xr.inclusiveLeft,Kn="selectRight"in xr?!xr.selectRight:xr.inclusiveRight;if((sr.from==null||(Ir?sr.from<=B.ch:sr.from<B.ch))&&(sr.to==null||(Kn?sr.to>=B.ch:sr.to>B.ch))){if(ge&&(Gt(xr,"beforeCursorEnter"),xr.explicitlyCleared))if(Ke.markedSpans){--Rt;continue}else break;if(!xr.atomic)continue;if(ie){var ni=xr.find(le<0?1:-1),Ei=void 0;if((le<0?Kn:Ir)&&(ni=ps(N,ni,-le,ni&&ni.line==B.line?Ke:null)),ni&&ni.line==B.line&&(Ei=yt(ni,ie))&&(le<0?Ei<0:Ei>0))return yo(N,ni,B,le,ge)}var Oi=xr.find(le<0?-1:1);return(le<0?Ir:Kn)&&(Oi=ps(N,Oi,le,Oi.line==B.line?Ke:null)),Oi?yo(N,Oi,B,le,ge):null}}return B}function qo(N,B,ie,le,ge){var Ke=le||1,Rt=yo(N,B,ie,Ke,ge)||!ge&&yo(N,B,ie,Ke,!0)||yo(N,B,ie,-Ke,ge)||!ge&&yo(N,B,ie,-Ke,!0);return Rt||(N.cantEdit=!0,Vt(N.first,0))}function ps(N,B,ie,le){return ie<0&&B.ch==0?B.line>N.first?Ft(N,Vt(B.line-1)):null:ie>0&&B.ch==(le||Pe(N,B.line)).text.length?B.line<N.first+N.size-1?Vt(B.line+1,0):null:new Vt(B.line,B.ch+ie)}function Is(N){N.setSelection(Vt(N.firstLine(),0),Vt(N.lastLine()),se)}function es(N,B,ie){var le={canceled:!1,from:B.from,to:B.to,text:B.text,origin:B.origin,cancel:function(){return le.canceled=!0}};return ie&&(le.update=function(ge,Ke,Rt,sr){ge&&(le.from=Ft(N,ge)),Ke&&(le.to=Ft(N,Ke)),Rt&&(le.text=Rt),sr!==void 0&&(le.origin=sr)}),Gt(N,"beforeChange",N,le),N.cm&&Gt(N.cm,"beforeChange",N.cm,le),le.canceled?(N.cm&&(N.cm.curOp.updateInput=2),null):{from:le.from,to:le.to,text:le.text,origin:le.origin}}function Ls(N,B,ie){if(N.cm){if(!N.cm.curOp)return zo(N.cm,Ls)(N,B,ie);if(N.cm.state.suppressEdits)return}if((Ht(N,"beforeChange")||N.cm&&Ht(N.cm,"beforeChange"))&&(B=es(N,B,!0),!B))return;var le=it&&!ie&&jn(N,B.from,B.to);if(le)for(var ge=le.length-1;ge>=0;--ge)Ps(N,{from:le[ge].from,to:le[ge].to,text:ge?[""]:B.text,origin:B.origin});else Ps(N,B)}function Ps(N,B){if(B.text.length==1&&B.text[0]==""&&yt(B.from,B.to)==0)return;var ie=cr(N,B);As(N,B,ie,N.cm?N.cm.curOp.id:NaN),_l(N,B,ie,Vn(N,B));var le=[];Qi(N,function(ge,Ke){!Ke&&G(le,ge.history)==-1&&(ol(ge.history,B),le.push(ge.history)),_l(ge,B,null,Vn(ge,B))})}function ml(N,B,ie){var le=N.cm&&N.cm.state.suppressEdits;if(le&&!ie)return;for(var ge=N.history,Ke,Rt=N.sel,sr=B=="undo"?ge.done:ge.undone,xr=B=="undo"?ge.undone:ge.done,Ir=0;Ir<sr.length&&!(Ke=sr[Ir],ie?Ke.ranges&&!Ke.equals(N.sel):!Ke.ranges);Ir++);if(Ir==sr.length)return;for(ge.lastOrigin=ge.lastSelOrigin=null;;)if(Ke=sr.pop(),Ke.ranges){if(vo(Ke,xr),ie&&!Ke.equals(N.sel)){Cs(N,Ke,{clearRedo:!1});return}Rt=Ke}else if(le){sr.push(Ke);return}else break;var Kn=[];vo(Rt,xr),xr.push({changes:Kn,generation:ge.generation}),ge.generation=Ke.generation||++ge.maxGeneration;for(var ni=Ht(N,"beforeChange")||N.cm&&Ht(N.cm,"beforeChange"),Ei=function(Wa){var Ma=Ke.changes[Wa];if(Ma.origin=B,ni&&!es(N,Ma,!1))return sr.length=0,{};Kn.push(Zo(N,Ma));var Na=Wa?cr(N,Ma):Ve(sr);_l(N,Ma,Na,Ra(N,Ma)),!Wa&&N.cm&&N.cm.scrollIntoView({from:Ma.from,to:Je(Ma)});var qa=[];Qi(N,function(ho,ns){!ns&&G(qa,ho.history)==-1&&(ol(ho.history,Ma),qa.push(ho.history)),_l(ho,Ma,null,Ra(ho,Ma))})},Oi=Ke.changes.length-1;Oi>=0;--Oi){var la=Ei(Oi);if(la)return la.v}}function Rl(N,B){if(B==0)return;if(N.first+=B,N.sel=new Mt(dt(N.sel.ranges,function(ge){return new ce(Vt(ge.anchor.line+B,ge.anchor.ch),Vt(ge.head.line+B,ge.head.ch))}),N.sel.primIndex),N.cm){Ha(N.cm,N.first,N.first-B,B);for(var ie=N.cm.display,le=ie.viewFrom;le<ie.viewTo;le++)vt(N.cm,le,"gutter")}}function _l(N,B,ie,le){if(N.cm&&!N.cm.curOp)return zo(N.cm,_l)(N,B,ie,le);if(B.to.line<N.first){Rl(N,B.text.length-1-(B.to.line-B.from.line));return}if(B.from.line>N.lastLine())return;if(B.from.line<N.first){var ge=B.text.length-1-(N.first-B.from.line);Rl(N,ge),B={from:Vt(N.first,0),to:Vt(B.to.line+ge,B.to.ch),text:[Ve(B.text)],origin:B.origin}}var Ke=N.lastLine();B.to.line>Ke&&(B={from:B.from,to:Vt(Ke,Pe(N,Ke).text.length),text:[B.text[0]],origin:B.origin}),B.removed=rt(N,B.from,B.to),ie||(ie=cr(N,B)),N.cm?Bl(N.cm,B,le):Ai(N,B,le),Ws(N,ie,se),N.cantEdit&&qo(N,Vt(N.firstLine(),0))&&(N.cantEdit=!1)}function Bl(N,B,ie){var le=N.doc,ge=N.display,Ke=B.from,Rt=B.to,sr=!1,xr=Ke.line;N.options.lineWrapping||(xr=$t(Bt(Pe(le,Ke.line))),le.iter(xr,Rt.line+1,function(Oi){if(Oi==ge.maxLine)return sr=!0,!0})),le.sel.contains(B.from,B.to)>-1&&Qt(N),Ai(le,B,ie,rs(N)),N.options.lineWrapping||(le.iter(xr,Ke.line+B.text.length,function(Oi){var la=Xn(Oi);la>ge.maxLineLength&&(ge.maxLine=Oi,ge.maxLineLength=la,ge.maxLineChanged=!0,sr=!1)}),sr&&(N.curOp.updateMaxLine=!0)),Xe(le,Ke.line),hs(N,400);var Ir=B.text.length-(Rt.line-Ke.line)-1;B.full?Ha(N):Ke.line==Rt.line&&B.text.length==1&&!Si(N.doc,B)?vt(N,Ke.line,"text"):Ha(N,Ke.line,Rt.line+1,Ir);var Kn=Ht(N,"changes"),ni=Ht(N,"change");if(ni||Kn){var Ei={from:Ke,to:Rt,text:B.text,removed:B.removed,origin:B.origin};ni&&Nr(N,"change",N,Ei),Kn&&(N.curOp.changeObjs||(N.curOp.changeObjs=[])).push(Ei)}N.display.selForContextMenu=null}function jl(N,B,ie,le,ge){var Ke;le||(le=ie),yt(le,ie)<0&&(Ke=[le,ie],ie=Ke[0],le=Ke[1]),typeof B=="string"&&(B=N.splitLines(B)),Ls(N,{from:ie,to:le,text:B,origin:ge})}function kl(N,B,ie,le){ie<N.line?N.line+=le:B<N.line&&(N.line=B,N.ch=0)}function Xl(N,B,ie,le){for(var ge=0;ge<N.length;++ge){var Ke=N[ge],Rt=!0;if(Ke.ranges){Ke.copied||(Ke=N[ge]=Ke.deepCopy(),Ke.copied=!0);for(var sr=0;sr<Ke.ranges.length;sr++)kl(Ke.ranges[sr].anchor,B,ie,le),kl(Ke.ranges[sr].head,B,ie,le);continue}for(var xr=0;xr<Ke.changes.length;++xr){var Ir=Ke.changes[xr];if(ie<Ir.from.line)Ir.from=Vt(Ir.from.line+le,Ir.from.ch),Ir.to=Vt(Ir.to.line+le,Ir.to.ch);else if(B<=Ir.to.line){Rt=!1;break}}Rt||(N.splice(0,ge+1),ge=0)}}function ol(N,B){var ie=B.from.line,le=B.to.line,ge=B.text.length-(le-ie)-1;Xl(N.done,ie,le,ge),Xl(N.undone,ie,le,ge)}function Ys(N,B,ie,le){var ge=B,Ke=B;return typeof B=="number"?Ke=Pe(N,ir(N,B)):ge=$t(B),ge==null?null:(le(Ke,ge)&&N.cm&&vt(N.cm,ge,ie),Ke)}function sl(N){this.lines=N,this.parent=null;for(var B=0,ie=0;ie<N.length;++ie)N[ie].parent=this,B+=N[ie].height;this.height=B}sl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(B,ie){for(var le=B,ge=B+ie;le<ge;++le){var Ke=this.lines[le];this.height-=Ke.height,jr(Ke),Nr(Ke,"delete")}this.lines.splice(B,ie)},collapse:function(B){B.push.apply(B,this.lines)},insertInner:function(B,ie,le){this.height+=le,this.lines=this.lines.slice(0,B).concat(ie).concat(this.lines.slice(B));for(var ge=0;ge<ie.length;++ge)ie[ge].parent=this},iterN:function(B,ie,le){for(var ge=B+ie;B<ge;++B)if(le(this.lines[B]))return!0}};function nl(N){this.children=N;for(var B=0,ie=0,le=0;le<N.length;++le){var ge=N[le];B+=ge.chunkSize(),ie+=ge.height,ge.parent=this}this.size=B,this.height=ie,this.parent=null}nl.prototype={chunkSize:function(){return this.size},removeInner:function(B,ie){this.size-=ie;for(var le=0;le<this.children.length;++le){var ge=this.children[le],Ke=ge.chunkSize();if(B<Ke){var Rt=Math.min(ie,Ke-B),sr=ge.height;if(ge.removeInner(B,Rt),this.height-=sr-ge.height,Ke==Rt&&(this.children.splice(le--,1),ge.parent=null),(ie-=Rt)==0)break;B=0}else B-=Ke}if(this.size-ie<25&&(this.children.length>1||!(this.children[0]instanceof sl))){var xr=[];this.collapse(xr),this.children=[new sl(xr)],this.children[0].parent=this}},collapse:function(B){for(var ie=0;ie<this.children.length;++ie)this.children[ie].collapse(B)},insertInner:function(B,ie,le){this.size+=ie.length,this.height+=le;for(var ge=0;ge<this.children.length;++ge){var Ke=this.children[ge],Rt=Ke.chunkSize();if(B<=Rt){if(Ke.insertInner(B,ie,le),Ke.lines&&Ke.lines.length>50){for(var sr=Ke.lines.length%25+25,xr=sr;xr<Ke.lines.length;){var Ir=new sl(Ke.lines.slice(xr,xr+=25));Ke.height-=Ir.height,this.children.splice(++ge,0,Ir),Ir.parent=this}Ke.lines=Ke.lines.slice(0,sr),this.maybeSpill()}break}B-=Rt}},maybeSpill:function(){if(this.children.length<=10)return;var B=this;do{var ie=B.children.splice(B.children.length-5,5),le=new nl(ie);if(B.parent){B.size-=le.size,B.height-=le.height;var Ke=G(B.parent.children,B);B.parent.children.splice(Ke+1,0,le)}else{var ge=new nl(B.children);ge.parent=B,B.children=[ge,le],B=ge}le.parent=B.parent}while(B.children.length>10);B.parent.maybeSpill()},iterN:function(B,ie,le){for(var ge=0;ge<this.children.length;++ge){var Ke=this.children[ge],Rt=Ke.chunkSize();if(B<Rt){var sr=Math.min(ie,Rt-B);if(Ke.iterN(B,sr,le))return!0;if((ie-=sr)==0)break;B=0}else B-=Rt}}};var Sl=function(B,ie,le){if(le)for(var ge in le)le.hasOwnProperty(ge)&&(this[ge]=le[ge]);this.doc=B,this.node=ie};Sl.prototype.clear=function(){var N=this.doc.cm,B=this.line.widgets,ie=this.line,le=$t(ie);if(le==null||!B)return;for(var ge=0;ge<B.length;++ge)B[ge]==this&&B.splice(ge--,1);B.length||(ie.widgets=null);var Ke=En(this);Ot(ie,Math.max(0,ie.height-Ke)),N&&(Eo(N,function(){Ml(N,ie,-Ke),vt(N,le,"widget")}),Nr(N,"lineWidgetCleared",N,this,le))},Sl.prototype.changed=function(){var N=this,B=this.height,ie=this.doc.cm,le=this.line;this.height=null;var ge=En(this)-B;if(!ge)return;br(this.doc,le)||Ot(le,le.height+ge),ie&&Eo(ie,function(){ie.curOp.forceUpdate=!0,Ml(ie,le,ge),Nr(ie,"lineWidgetChanged",ie,N,$t(le))})},Jt(Sl);function Ml(N,B,ie){Fr(B)<(N.curOp&&N.curOp.scrollTop||N.doc.scrollTop)&&wa(N,ie)}function Wl(N,B,ie,le){var ge=new Sl(N,ie,le),Ke=N.cm;return Ke&&ge.noHScroll&&(Ke.display.alignWidgets=!0),Ys(N,B,"widget",function(Rt){var sr=Rt.widgets||(Rt.widgets=[]);if(ge.insertAt==null?sr.push(ge):sr.splice(Math.min(sr.length-1,Math.max(0,ge.insertAt)),0,ge),ge.line=Rt,Ke&&!br(N,Rt)){var xr=Fr(Rt)<N.scrollTop;Ot(Rt,Rt.height+En(ge)),xr&&wa(Ke,ge.height),Ke.curOp.forceUpdate=!0}return!0}),Ke&&Nr(Ke,"lineWidgetAdded",Ke,ge,typeof B=="number"?B:$t(B)),ge}var au=0,Nl=function(B,ie){this.lines=[],this.type=ie,this.doc=B,this.id=++au};Nl.prototype.clear=function(){if(this.explicitlyCleared)return;var N=this.doc.cm,B=N&&!N.curOp;if(B&&as(N),Ht(this,"clear")){var ie=this.find();ie&&Nr(this,"clear",ie.from,ie.to)}for(var le=null,ge=null,Ke=0;Ke<this.lines.length;++Ke){var Rt=this.lines[Ke],sr=mr(Rt.markedSpans,this);N&&!this.collapsed?vt(N,$t(Rt),"text"):N&&(sr.to!=null&&(ge=$t(Rt)),sr.from!=null&&(le=$t(Rt))),Rt.markedSpans=qr(Rt.markedSpans,sr),sr.from==null&&this.collapsed&&!br(this.doc,Rt)&&N&&Ot(Rt,Oo(N.display))}if(N&&this.collapsed&&!N.options.lineWrapping)for(var xr=0;xr<this.lines.length;++xr){var Ir=Bt(this.lines[xr]),Kn=Xn(Ir);Kn>N.display.maxLineLength&&(N.display.maxLine=Ir,N.display.maxLineLength=Kn,N.display.maxLineChanged=!0)}le!=null&&N&&this.collapsed&&Ha(N,le,ge+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,N&&pl(N.doc)),N&&Nr(N,"markerCleared",N,this,le,ge),B&&co(N),this.parent&&this.parent.clear()},Nl.prototype.find=function(N,B){N==null&&this.type=="bookmark"&&(N=1);for(var ie,le,ge=0;ge<this.lines.length;++ge){var Ke=this.lines[ge],Rt=mr(Ke.markedSpans,this);if(Rt.from!=null&&(ie=Vt(B?Ke:$t(Ke),Rt.from),N==-1))return ie;if(Rt.to!=null&&(le=Vt(B?Ke:$t(Ke),Rt.to),N==1))return le}return ie&&{from:ie,to:le}},Nl.prototype.changed=function(){var N=this,B=this.find(-1,!0),ie=this,le=this.doc.cm;if(!B||!le)return;Eo(le,function(){var ge=B.line,Ke=$t(B.line),Rt=Ji(le,Ke);if(Rt&&(Oa(Rt),le.curOp.selectionChanged=le.curOp.forceUpdate=!0),le.curOp.updateMaxLine=!0,!br(ie.doc,ge)&&ie.height!=null){var sr=ie.height;ie.height=null;var xr=En(ie)-sr;xr&&Ot(ge,ge.height+xr)}Nr(le,"markerChanged",le,N)})},Nl.prototype.attachLine=function(N){if(!this.lines.length&&this.doc.cm){var B=this.doc.cm.curOp;(!B.maybeHiddenMarkers||G(B.maybeHiddenMarkers,this)==-1)&&(B.maybeUnhiddenMarkers||(B.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(N)},Nl.prototype.detachLine=function(N){if(this.lines.splice(G(this.lines,N),1),!this.lines.length&&this.doc.cm){var B=this.doc.cm.curOp;(B.maybeHiddenMarkers||(B.maybeHiddenMarkers=[])).push(this)}},Jt(Nl);function $l(N,B,ie,le,ge){if(le&&le.shared)return Iu(N,B,ie,le,ge);if(N.cm&&!N.cm.curOp)return zo(N.cm,$l)(N,B,ie,le,ge);var Ke=new Nl(N,ge),Rt=yt(B,ie);if(le&&z(le,Ke,!1),Rt>0||Rt==0&&Ke.clearWhenEmpty!==!1)return Ke;if(Ke.replacedWith&&(Ke.collapsed=!0,Ke.widgetNode=k("span",[Ke.replacedWith],"CodeMirror-widget"),le.handleMouseEvents||Ke.widgetNode.setAttribute("cm-ignore-events","true"),le.insertLeft&&(Ke.widgetNode.insertLeft=!0)),Ke.collapsed){if(Dt(N,B.line,B,ie,Ke)||B.line!=ie.line&&Dt(N,ie.line,B,ie,Ke))throw new Error("Inserting collapsed marker partially overlapping an existing one");Lt()}Ke.addToHistory&&As(N,{from:B,to:ie,origin:"markText"},N.sel,NaN);var sr=B.line,xr=N.cm,Ir;if(N.iter(sr,ie.line+1,function(ni){xr&&Ke.collapsed&&!xr.options.lineWrapping&&Bt(ni)==xr.display.maxLine&&(Ir=!0),Ke.collapsed&&sr!=B.line&&Ot(ni,0),Qr(ni,new At(Ke,sr==B.line?B.ch:null,sr==ie.line?ie.ch:null)),++sr}),Ke.collapsed&&N.iter(B.line,ie.line+1,function(ni){br(N,ni)&&Ot(ni,0)}),Ke.clearOnEnter&&He(Ke,"beforeCursorEnter",function(){return Ke.clear()}),Ke.readOnly&&(ot(),(N.history.done.length||N.history.undone.length)&&N.clearHistory()),Ke.collapsed&&(Ke.id=++au,Ke.atomic=!0),xr){if(Ir&&(xr.curOp.updateMaxLine=!0),Ke.collapsed)Ha(xr,B.line,ie.line+1);else if(Ke.className||Ke.startStyle||Ke.endStyle||Ke.css||Ke.attributes||Ke.title)for(var Kn=B.line;Kn<=ie.line;Kn++)vt(xr,Kn,"text");Ke.atomic&&pl(xr.doc),Nr(xr,"markerAdded",xr,Ke)}return Ke}var tu=function(B,ie){this.markers=B,this.primary=ie;for(var le=0;le<B.length;++le)B[le].parent=this};tu.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var N=0;N<this.markers.length;++N)this.markers[N].clear();Nr(this,"clear")},tu.prototype.find=function(N,B){return this.primary.find(N,B)},Jt(tu);function Iu(N,B,ie,le,ge){le=z(le),le.shared=!1;var Ke=[$l(N,B,ie,le,ge)],Rt=Ke[0],sr=le.widgetNode;return Qi(N,function(xr){sr&&(le.widgetNode=sr.cloneNode(!0)),Ke.push($l(xr,Ft(xr,B),Ft(xr,ie),le,ge));for(var Ir=0;Ir<xr.linked.length;++Ir)if(xr.linked[Ir].isParent)return;Rt=Ve(Ke)}),new tu(Ke,Rt)}function pu(N){return N.findMarks(Vt(N.first,0),N.clipPos(Vt(N.lastLine())),function(B){return B.parent})}function mu(N,B){for(var ie=0;ie<B.length;ie++){var le=B[ie],ge=le.find(),Ke=N.clipPos(ge.from),Rt=N.clipPos(ge.to);if(yt(Ke,Rt)){var sr=$l(N,Ke,Rt,le.primary,le.primary.type);le.markers.push(sr),sr.parent=le}}}function gu(N){for(var B=function(ge){var Ke=N[ge],Rt=[Ke.primary.doc];Qi(Ke.primary.doc,function(Ir){return Rt.push(Ir)});for(var sr=0;sr<Ke.markers.length;sr++){var xr=Ke.markers[sr];G(Rt,xr.doc)==-1&&(xr.parent=null,Ke.markers.splice(sr--,1))}},ie=0;ie<N.length;ie++)B(ie)}var ql=0,Tl=function N(B,ie,le,ge,Ke){if(!(this instanceof N))return new N(B,ie,le,ge,Ke);le==null&&(le=0),nl.call(this,[new sl([new hi("",null)])]),this.first=le,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=le;var Rt=Vt(le,0);this.sel=Ie(Rt),this.history=new Wo(null),this.id=++ql,this.modeOption=ie,this.lineSep=ge,this.direction=Ke=="rtl"?"rtl":"ltr",this.extend=!1,typeof B=="string"&&(B=this.splitLines(B)),Ai(this,{from:Rt,to:Rt,text:B}),Cs(this,Ie(Rt),se)};Tl.prototype=et(nl.prototype,{constructor:Tl,iter:function(B,ie,le){le?this.iterN(B-this.first,ie-B,le):this.iterN(this.first,this.first+this.size,B)},insert:function(B,ie){for(var le=0,ge=0;ge<ie.length;++ge)le+=ie[ge].height;this.insertInner(B-this.first,ie,le)},remove:function(B,ie){this.removeInner(B-this.first,ie)},getValue:function(B){var ie=wt(this,this.first,this.first+this.size);return B===!1?ie:ie.join(B||this.lineSeparator())},setValue:ms(function(N){var B=Vt(this.first,0),ie=this.first+this.size-1;Ls(this,{from:B,to:Vt(ie,Pe(this,ie).text.length),text:this.splitLines(N),origin:"setValue",full:!0},!0),this.cm&&ja(this.cm,0,0),Cs(this,Ie(B),se)}),replaceRange:function(B,ie,le,ge){ie=Ft(this,ie),le=le?Ft(this,le):ie,jl(this,B,ie,le,ge)},getRange:function(B,ie,le){var ge=rt(this,Ft(this,B),Ft(this,ie));return le===!1?ge:ge.join(le||this.lineSeparator())},getLine:function(B){var ie=this.getLineHandle(B);return ie&&ie.text},getLineHandle:function(B){if(Vr(this,B))return Pe(this,B)},getLineNumber:function(B){return $t(B)},getLineHandleVisualStart:function(B){return typeof B=="number"&&(B=Pe(this,B)),Bt(B)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(B){return Ft(this,B)},getCursor:function(B){var ie=this.sel.primary(),le;return B==null||B=="head"?le=ie.head:B=="anchor"?le=ie.anchor:B=="end"||B=="to"||B===!1?le=ie.to():le=ie.from(),le},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ms(function(N,B,ie){Ql(this,Ft(this,typeof N=="number"?Vt(N,B||0):N),null,ie)}),setSelection:ms(function(N,B,ie){Ql(this,Ft(this,N),Ft(this,B||N),ie)}),extendSelection:ms(function(N,B,ie){Us(this,Ft(this,N),B&&Ft(this,B),ie)}),extendSelections:ms(function(N,B){Os(this,Kr(this,N),B)}),extendSelectionsBy:ms(function(N,B){var ie=dt(this.sel.ranges,N);Os(this,Kr(this,ie),B)}),setSelections:ms(function(N,B,ie){if(!N.length)return;for(var le=[],ge=0;ge<N.length;ge++)le[ge]=new ce(Ft(this,N[ge].anchor),Ft(this,N[ge].head));B==null&&(B=Math.min(N.length-1,this.sel.primIndex)),Cs(this,Se(this.cm,le,B),ie)}),addSelection:ms(function(N,B,ie){var le=this.sel.ranges.slice(0);le.push(new ce(Ft(this,N),Ft(this,B||N))),Cs(this,Se(this.cm,le,le.length-1),ie)}),getSelection:function(B){for(var ie=this.sel.ranges,le,ge=0;ge<ie.length;ge++){var Ke=rt(this,ie[ge].from(),ie[ge].to());le=le?le.concat(Ke):Ke}return B===!1?le:le.join(B||this.lineSeparator())},getSelections:function(B){for(var ie=[],le=this.sel.ranges,ge=0;ge<le.length;ge++){var Ke=rt(this,le[ge].from(),le[ge].to());B!==!1&&(Ke=Ke.join(B||this.lineSeparator())),ie[ge]=Ke}return ie},replaceSelection:function(B,ie,le){for(var ge=[],Ke=0;Ke<this.sel.ranges.length;Ke++)ge[Ke]=B;this.replaceSelections(ge,ie,le||"+input")},replaceSelections:ms(function(N,B,ie){for(var le=[],ge=this.sel,Ke=0;Ke<ge.ranges.length;Ke++){var Rt=ge.ranges[Ke];le[Ke]={from:Rt.from(),to:Rt.to(),text:this.splitLines(N[Ke]),origin:ie}}for(var sr=B&&B!="end"&&vn(this,le,B),xr=le.length-1;xr>=0;xr--)Ls(this,le[xr]);sr?wl(this,sr):this.cm&&Da(this.cm)}),undo:ms(function(){ml(this,"undo")}),redo:ms(function(){ml(this,"redo")}),undoSelection:ms(function(){ml(this,"undo",!0)}),redoSelection:ms(function(){ml(this,"redo",!0)}),setExtending:function(B){this.extend=B},getExtending:function(){return this.extend},historySize:function(){for(var B=this.history,ie=0,le=0,ge=0;ge<B.done.length;ge++)B.done[ge].ranges||++ie;for(var Ke=0;Ke<B.undone.length;Ke++)B.undone[Ke].ranges||++le;return{undo:ie,redo:le}},clearHistory:function(){var B=this;this.history=new Wo(this.history.maxGeneration),Qi(this,function(ie){return ie.history=B.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(B){return B&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(B){return this.history.generation==(B||this.cleanGeneration)},getHistory:function(){return{done:dl(this.history.done),undone:dl(this.history.undone)}},setHistory:function(B){var ie=this.history=new Wo(this.history.maxGeneration);ie.done=dl(B.done.slice(0),null,!0),ie.undone=dl(B.undone.slice(0),null,!0)},setGutterMarker:ms(function(N,B,ie){return Ys(this,N,"gutter",function(le){var ge=le.gutterMarkers||(le.gutterMarkers={});return ge[B]=ie,!ie&&$(ge)&&(le.gutterMarkers=null),!0})}),clearGutter:ms(function(N){var B=this;this.iter(function(ie){ie.gutterMarkers&&ie.gutterMarkers[N]&&Ys(B,ie,"gutter",function(){return ie.gutterMarkers[N]=null,$(ie.gutterMarkers)&&(ie.gutterMarkers=null),!0})})}),lineInfo:function(B){var ie;if(typeof B=="number"){if(!Vr(this,B))return null;if(ie=B,B=Pe(this,B),!B)return null}else if(ie=$t(B),ie==null)return null;return{line:ie,handle:B,text:B.text,gutterMarkers:B.gutterMarkers,textClass:B.textClass,bgClass:B.bgClass,wrapClass:B.wrapClass,widgets:B.widgets}},addLineClass:ms(function(N,B,ie){return Ys(this,N,B=="gutter"?"gutter":"class",function(le){var ge=B=="text"?"textClass":B=="background"?"bgClass":B=="gutter"?"gutterClass":"wrapClass";if(!le[ge])le[ge]=ie;else{if(_(ie).test(le[ge]))return!1;le[ge]+=" "+ie}return!0})}),removeLineClass:ms(function(N,B,ie){return Ys(this,N,B=="gutter"?"gutter":"class",function(le){var ge=B=="text"?"textClass":B=="background"?"bgClass":B=="gutter"?"gutterClass":"wrapClass",Ke=le[ge];if(Ke)if(ie==null)le[ge]=null;else{var Rt=Ke.match(_(ie));if(!Rt)return!1;var sr=Rt.index+Rt[0].length;le[ge]=Ke.slice(0,Rt.index)+(!Rt.index||sr==Ke.length?"":" ")+Ke.slice(sr)||null}else return!1;return!0})}),addLineWidget:ms(function(N,B,ie){return Wl(this,N,B,ie)}),removeLineWidget:function(B){B.clear()},markText:function(B,ie,le){return $l(this,Ft(this,B),Ft(this,ie),le,le&&le.type||"range")},setBookmark:function(B,ie){var le={replacedWith:ie&&(ie.nodeType==null?ie.widget:ie),insertLeft:ie&&ie.insertLeft,clearWhenEmpty:!1,shared:ie&&ie.shared,handleMouseEvents:ie&&ie.handleMouseEvents};return B=Ft(this,B),$l(this,B,B,le,"bookmark")},findMarksAt:function(B){B=Ft(this,B);var ie=[],le=Pe(this,B.line).markedSpans;if(le)for(var ge=0;ge<le.length;++ge){var Ke=le[ge];(Ke.from==null||Ke.from<=B.ch)&&(Ke.to==null||Ke.to>=B.ch)&&ie.push(Ke.marker.parent||Ke.marker)}return ie},findMarks:function(B,ie,le){B=Ft(this,B),ie=Ft(this,ie);var ge=[],Ke=B.line;return this.iter(B.line,ie.line+1,function(Rt){var sr=Rt.markedSpans;if(sr)for(var xr=0;xr<sr.length;xr++){var Ir=sr[xr];!(Ir.to!=null&&Ke==B.line&&B.ch>=Ir.to||Ir.from==null&&Ke!=B.line||Ir.from!=null&&Ke==ie.line&&Ir.from>=ie.ch)&&(!le||le(Ir.marker))&&ge.push(Ir.marker.parent||Ir.marker)}++Ke}),ge},getAllMarks:function(){var B=[];return this.iter(function(ie){var le=ie.markedSpans;if(le)for(var ge=0;ge<le.length;++ge)le[ge].from!=null&&B.push(le[ge].marker)}),B},posFromIndex:function(B){var ie,le=this.first,ge=this.lineSeparator().length;return this.iter(function(Ke){var Rt=Ke.text.length+ge;if(Rt>B)return ie=B,!0;B-=Rt,++le}),Ft(this,Vt(le,ie))},indexFromPos:function(B){B=Ft(this,B);var ie=B.ch;if(B.line<this.first||B.ch<0)return 0;var le=this.lineSeparator().length;return this.iter(this.first,B.line,function(ge){ie+=ge.text.length+le}),ie},copy:function(B){var ie=new Tl(wt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ie.scrollTop=this.scrollTop,ie.scrollLeft=this.scrollLeft,ie.sel=this.sel,ie.extend=!1,B&&(ie.history.undoDepth=this.history.undoDepth,ie.setHistory(this.getHistory())),ie},linkedDoc:function(B){B||(B={});var ie=this.first,le=this.first+this.size;B.from!=null&&B.from>ie&&(ie=B.from),B.to!=null&&B.to<le&&(le=B.to);var ge=new Tl(wt(this,ie,le),B.mode||this.modeOption,ie,this.lineSep,this.direction);return B.sharedHist&&(ge.history=this.history),(this.linked||(this.linked=[])).push({doc:ge,sharedHist:B.sharedHist}),ge.linked=[{doc:this,isParent:!0,sharedHist:B.sharedHist}],mu(ge,pu(this)),ge},unlinkDoc:function(B){if(B instanceof Ur&&(B=B.doc),this.linked)for(var ie=0;ie<this.linked.length;++ie){var le=this.linked[ie];if(le.doc!=B)continue;this.linked.splice(ie,1),B.unlinkDoc(this),gu(pu(this));break}if(B.history==this.history){var ge=[B.id];Qi(B,function(Ke){return ge.push(Ke.id)},!0),B.history=new Wo(null),B.history.done=dl(this.history.done,ge),B.history.undone=dl(this.history.undone,ge)}},iterLinkedDocs:function(B){Qi(this,B)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(B){return this.lineSep?B.split(this.lineSep):jt(B)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ms(function(N){if(N!="rtl"&&(N="ltr"),N==this.direction)return;this.direction=N,this.iter(function(B){return B.order=null}),this.cm&&no(this.cm)})}),Tl.prototype.eachLine=Tl.prototype.iter;var ll=0;function Hl(N){var B=this;if(vu(B),pr(B,N)||ei(B.display,N))return;Ge(N),d&&(ll=+new Date);var ie=_o(B,N,!0),le=N.dataTransfer.files;if(!ie||B.isReadOnly())return;if(le&&le.length&&window.FileReader&&window.File)for(var ge=le.length,Ke=Array(ge),Rt=0,sr=function(){++Rt==ge&&zo(B,function(){ie=Ft(B.doc,ie);var la={from:ie,to:ie,text:B.doc.splitLines(Ke.filter(function(Ca){return Ca!=null}).join(B.doc.lineSeparator())),origin:"paste"};Ls(B.doc,la),wl(B.doc,Ie(Ft(B.doc,ie),Ft(B.doc,Je(la))))})()},xr=function(la,Ca){if(B.options.allowDropFileTypes&&G(B.options.allowDropFileTypes,la.type)==-1){sr();return}var Wa=new FileReader;Wa.onerror=function(){return sr()},Wa.onload=function(){var Ma=Wa.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ma)){sr();return}Ke[Ca]=Ma,sr()},Wa.readAsText(la)},Ir=0;Ir<le.length;Ir++)xr(le[Ir],Ir);else{if(B.state.draggingText&&B.doc.sel.contains(ie)>-1){B.state.draggingText(N),setTimeout(function(){return B.display.input.focus()},20);return}try{var Kn=N.dataTransfer.getData("Text");if(Kn){var ni;if(B.state.draggingText&&!B.state.draggingText.copy&&(ni=B.listSelections()),Ws(B.doc,Ie(ie,ie)),ni)for(var Ei=0;Ei<ni.length;++Ei)jl(B.doc,"",ni[Ei].anchor,ni[Ei].head,"drag");B.replaceSelection(Kn,"around","paste"),B.display.input.focus()}}catch(Oi){}}}function xl(N,B){if(d&&(!N.state.draggingText||+new Date-ll<100)){ct(B);return}if(pr(N,B)||ei(N.display,B))return;if(B.dataTransfer.setData("Text",N.getSelection()),B.dataTransfer.effectAllowed="copyMove",B.dataTransfer.setDragImage&&!e){var ie=I("img",null,null,"position: fixed; left: 0; top: 0;");ie.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o&&(ie.width=ie.height=1,N.display.wrapper.appendChild(ie),ie._top=ie.offsetTop),B.dataTransfer.setDragImage(ie,0,0),o&&ie.parentNode.removeChild(ie)}}function xu(N,B){var ie=_o(N,B);if(!ie)return;var le=document.createDocumentFragment();ii(N,ie,le),N.display.dragCursor||(N.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),N.display.lineSpace.insertBefore(N.display.dragCursor,N.display.cursorDiv)),O(N.display.dragCursor,le)}function vu(N){N.display.dragCursor&&(N.display.lineSpace.removeChild(N.display.dragCursor),N.display.dragCursor=null)}function Au(N){if(!document.getElementsByClassName)return;for(var B=document.getElementsByClassName("CodeMirror"),ie=[],le=0;le<B.length;le++){var ge=B[le].CodeMirror;ge&&ie.push(ge)}ie.length&&ie[0].operation(function(){for(var Ke=0;Ke<ie.length;Ke++)N(ie[Ke])})}var Ol=!1;function cu(){if(Ol)return;du(),Ol=!0}function du(){var N;He(window,"resize",function(){N==null&&(N=setTimeout(function(){N=null,Au(Lu)},100))}),He(window,"blur",function(){return Au(vi)})}function Lu(N){var B=N.display;B.cachedCharWidth=B.cachedTextHeight=B.cachedPaddingH=null,B.scrollbarsClipped=!1,N.setSize()}for(var zl={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"},ru=0;ru<10;ru++)zl[ru+48]=zl[ru+96]=String(ru);for(var ou=65;ou<=90;ou++)zl[ou]=String.fromCharCode(ou);for(var su=1;su<=12;su++)zl[su+111]=zl[su+63235]="F"+su;var Jl={};Jl.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"},Jl.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"},Jl.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"},Jl.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"]},Jl.default=v?Jl.macDefault:Jl.pcDefault;function Du(N){var B=N.split(/-(?!$)/);N=B[B.length-1];for(var ie,le,ge,Ke,Rt=0;Rt<B.length-1;Rt++){var sr=B[Rt];if(/^(cmd|meta|m)$/i.test(sr))Ke=!0;else if(/^a(lt)?$/i.test(sr))ie=!0;else if(/^(c|ctrl|control)$/i.test(sr))le=!0;else if(/^s(hift)?$/i.test(sr))ge=!0;else throw new Error("Unrecognized modifier name: "+sr)}return ie&&(N="Alt-"+N),le&&(N="Ctrl-"+N),Ke&&(N="Cmd-"+N),ge&&(N="Shift-"+N),N}function Ru(N){var B={};for(var ie in N)if(N.hasOwnProperty(ie)){var le=N[ie];if(/^(name|fallthrough|(de|at)tach)$/.test(ie))continue;if(le=="..."){delete N[ie];continue}for(var ge=dt(ie.split(" "),Du),Ke=0;Ke<ge.length;Ke++){var Rt=void 0,sr=void 0;Ke==ge.length-1?(sr=ge.join(" "),Rt=le):(sr=ge.slice(0,Ke+1).join(" "),Rt="...");var xr=B[sr];if(!xr)B[sr]=Rt;else if(xr!=Rt)throw new Error("Inconsistent bindings for "+sr)}delete N[ie]}for(var Ir in B)N[Ir]=B[Ir];return N}function Zl(N,B,ie,le){B=hl(B);var ge=B.call?B.call(N,le):B[N];if(ge===!1)return"nothing";if(ge==="...")return"multi";if(ge!=null&&ie(ge))return"handled";if(B.fallthrough){if(Object.prototype.toString.call(B.fallthrough)!="[object Array]")return Zl(N,B.fallthrough,ie,le);for(var Ke=0;Ke<B.fallthrough.length;Ke++){var Rt=Zl(N,B.fallthrough[Ke],ie,le);if(Rt)return Rt}}}function yu(N){var B=typeof N=="string"?N:zl[N.keyCode];return B=="Ctrl"||B=="Alt"||B=="Shift"||B=="Mod"}function Su(N,B,ie){var le=N;return B.altKey&&le!="Alt"&&(N="Alt-"+N),(E?B.metaKey:B.ctrlKey)&&le!="Ctrl"&&(N="Ctrl-"+N),(E?B.ctrlKey:B.metaKey)&&le!="Mod"&&(N="Cmd-"+N),!ie&&B.shiftKey&&le!="Shift"&&(N="Shift-"+N),N}function bu(N,B){if(o&&N.keyCode==34&&N.char)return!1;var ie=zl[N.keyCode];return ie==null||N.altGraphKey?!1:(N.keyCode==3&&N.code&&(ie=N.code),Su(ie,N,B))}function hl(N){return typeof N=="string"?Jl[N]:N}function Dl(N,B){for(var ie=N.doc.sel.ranges,le=[],ge=0;ge<ie.length;ge++){for(var Ke=B(ie[ge]);le.length&&yt(Ke.from,Ve(le).to)<=0;){var Rt=le.pop();if(yt(Rt.from,Ke.from)<0){Ke.from=Rt.from;break}}le.push(Ke)}Eo(N,function(){for(var sr=le.length-1;sr>=0;sr--)jl(N.doc,"",le[sr].from,le[sr].to,"+delete");Da(N)})}function nu(N,B,ie){var le=Te(N.text,B+ie,ie);return le<0||le>N.text.length?null:le}function Nu(N,B,ie){var le=nu(N,B.ch,ie);return le==null?null:new Vt(B.line,le,ie<0?"after":"before")}function hu(N,B,ie,le,ge){if(N){B.doc.direction=="rtl"&&(ge=-ge);var Ke=Ct(ie,B.doc.direction);if(Ke){var Rt=ge<0?Ve(Ke):Ke[0],sr=ge<0==(Rt.level==1),xr=sr?"after":"before",Ir;if(Rt.level>0||B.doc.direction=="rtl"){var Kn=ca(B,ie);Ir=ge<0?ie.text.length-1:0;var ni=Ta(B,Kn,Ir).top;Ir=Be(function(Ei){return Ta(B,Kn,Ei).top==ni},ge<0==(Rt.level==1)?Rt.from:Rt.to-1,Ir),xr=="before"&&(Ir=nu(ie,Ir,1))}else Ir=ge<0?Rt.to:Rt.from;return new Vt(le,Ir,xr)}}return new Vt(le,ge<0?ie.text.length:0,ge<0?"before":"after")}function fu(N,B,ie,le){var ge=Ct(B,N.doc.direction);if(!ge)return Nu(B,ie,le);ie.ch>=B.text.length?(ie.ch=B.text.length,ie.sticky="before"):ie.ch<=0&&(ie.ch=0,ie.sticky="after");var Ke=ke(ge,ie.ch,ie.sticky),Rt=ge[Ke];if(N.doc.direction=="ltr"&&Rt.level%2==0&&(le>0?Rt.to>ie.ch:Rt.from<ie.ch))return Nu(B,ie,le);var sr=function(Na,qa){return nu(B,Na instanceof Vt?Na.ch:Na,qa)},xr,Ir=function(Na){return N.options.lineWrapping?(xr=xr||ca(N,B),to(N,B,xr,Na)):{begin:0,end:B.text.length}},Kn=Ir(ie.sticky=="before"?sr(ie,-1):ie.ch);if(N.doc.direction=="rtl"||Rt.level==1){var ni=Rt.level==1==le<0,Ei=sr(ie,ni?1:-1);if(Ei!=null&&(ni?Ei<=Rt.to&&Ei<=Kn.end:Ei>=Rt.from&&Ei>=Kn.begin)){var Oi=ni?"before":"after";return new Vt(ie.line,Ei,Oi)}}var la=function(Na,qa,ho){for(var ns=function(ul,Pl){return Pl?new Vt(ie.line,sr(ul,1),"before"):new Vt(ie.line,ul,"after")};Na>=0&&Na<ge.length;Na+=qa){var Mo=ge[Na],xs=qa>0==(Mo.level!=1),Zs=xs?ho.begin:sr(ho.end,-1);if(Mo.from<=Zs&&Zs<Mo.to)return ns(Zs,xs);if(Zs=xs?Mo.from:sr(Mo.to,-1),ho.begin<=Zs&&Zs<ho.end)return ns(Zs,xs)}},Ca=la(Ke+le,le,Kn);if(Ca)return Ca;var Wa=le>0?Kn.end:sr(Kn.begin,-1);return Wa!=null&&!(le>0&&Wa==B.text.length)&&(Ca=la(le>0?0:ge.length-1,le,Ir(Wa)),Ca)?Ca:null}var iu={selectAll:Is,singleSelection:function(B){return B.setSelection(B.getCursor("anchor"),B.getCursor("head"),se)},killLine:function(B){return Dl(B,function(ie){if(ie.empty()){var le=Pe(B.doc,ie.head.line).text.length;return ie.head.ch==le&&ie.head.line<B.lastLine()?{from:ie.head,to:Vt(ie.head.line+1,0)}:{from:ie.head,to:Vt(ie.head.line,le)}}else return{from:ie.from(),to:ie.to()}})},deleteLine:function(B){return Dl(B,function(ie){return{from:Vt(ie.from().line,0),to:Ft(B.doc,Vt(ie.to().line+1,0))}})},delLineLeft:function(B){return Dl(B,function(ie){return{from:Vt(ie.from().line,0),to:ie.from()}})},delWrappedLineLeft:function(B){return Dl(B,function(ie){var le=B.charCoords(ie.head,"div").top+5,ge=B.coordsChar({left:0,top:le},"div");return{from:ge,to:ie.from()}})},delWrappedLineRight:function(B){return Dl(B,function(ie){var le=B.charCoords(ie.head,"div").top+5,ge=B.coordsChar({left:B.display.lineDiv.offsetWidth+100,top:le},"div");return{from:ie.from(),to:ge}})},undo:function(B){return B.undo()},redo:function(B){return B.redo()},undoSelection:function(B){return B.undoSelection()},redoSelection:function(B){return B.redoSelection()},goDocStart:function(B){return B.extendSelection(Vt(B.firstLine(),0))},goDocEnd:function(B){return B.extendSelection(Vt(B.lastLine()))},goLineStart:function(B){return B.extendSelectionsBy(function(ie){return Ae(B,ie.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(B){return B.extendSelectionsBy(function(ie){return L(B,ie.head)},{origin:"+move",bias:1})},goLineEnd:function(B){return B.extendSelectionsBy(function(ie){return ee(B,ie.head.line)},{origin:"+move",bias:-1})},goLineRight:function(B){return B.extendSelectionsBy(function(ie){var le=B.cursorCoords(ie.head,"div").top+5;return B.coordsChar({left:B.display.lineDiv.offsetWidth+100,top:le},"div")},we)},goLineLeft:function(B){return B.extendSelectionsBy(function(ie){var le=B.cursorCoords(ie.head,"div").top+5;return B.coordsChar({left:0,top:le},"div")},we)},goLineLeftSmart:function(B){return B.extendSelectionsBy(function(ie){var le=B.cursorCoords(ie.head,"div").top+5,ge=B.coordsChar({left:0,top:le},"div");return ge.ch<B.getLine(ge.line).search(/\S/)?L(B,ie.head):ge},we)},goLineUp:function(B){return B.moveV(-1,"line")},goLineDown:function(B){return B.moveV(1,"line")},goPageUp:function(B){return B.moveV(-1,"page")},goPageDown:function(B){return B.moveV(1,"page")},goCharLeft:function(B){return B.moveH(-1,"char")},goCharRight:function(B){return B.moveH(1,"char")},goColumnLeft:function(B){return B.moveH(-1,"column")},goColumnRight:function(B){return B.moveH(1,"column")},goWordLeft:function(B){return B.moveH(-1,"word")},goGroupRight:function(B){return B.moveH(1,"group")},goGroupLeft:function(B){return B.moveH(-1,"group")},goWordRight:function(B){return B.moveH(1,"word")},delCharBefore:function(B){return B.deleteH(-1,"codepoint")},delCharAfter:function(B){return B.deleteH(1,"char")},delWordBefore:function(B){return B.deleteH(-1,"word")},delWordAfter:function(B){return B.deleteH(1,"word")},delGroupBefore:function(B){return B.deleteH(-1,"group")},delGroupAfter:function(B){return B.deleteH(1,"group")},indentAuto:function(B){return B.indentSelection("smart")},indentMore:function(B){return B.indentSelection("add")},indentLess:function(B){return B.indentSelection("subtract")},insertTab:function(B){return B.replaceSelection(" ")},insertSoftTab:function(B){for(var ie=[],le=B.listSelections(),ge=B.options.tabSize,Ke=0;Ke<le.length;Ke++){var Rt=le[Ke].from(),sr=V(B.getLine(Rt.line),Rt.ch,ge);ie.push(Qe(ge-sr%ge))}B.replaceSelections(ie)},defaultTab:function(B){B.somethingSelected()?B.indentSelection("add"):B.execCommand("insertTab")},transposeChars:function(B){return Eo(B,function(){for(var ie=B.listSelections(),le=[],ge=0;ge<ie.length;ge++){if(!ie[ge].empty())continue;var Ke=ie[ge].head,Rt=Pe(B.doc,Ke.line).text;if(Rt){if(Ke.ch==Rt.length&&(Ke=new Vt(Ke.line,Ke.ch-1)),Ke.ch>0)Ke=new Vt(Ke.line,Ke.ch+1),B.replaceRange(Rt.charAt(Ke.ch-1)+Rt.charAt(Ke.ch-2),Vt(Ke.line,Ke.ch-2),Ke,"+transpose");else if(Ke.line>B.doc.first){var sr=Pe(B.doc,Ke.line-1).text;sr&&(Ke=new Vt(Ke.line,1),B.replaceRange(Rt.charAt(0)+B.doc.lineSeparator()+sr.charAt(sr.length-1),Vt(Ke.line-1,sr.length-1),Ke,"+transpose"))}}le.push(new ce(Ke,Ke))}B.setSelections(le)})},newlineAndIndent:function(B){return Eo(B,function(){for(var ie=B.listSelections(),le=ie.length-1;le>=0;le--)B.replaceRange(B.doc.lineSeparator(),ie[le].anchor,ie[le].head,"+input");ie=B.listSelections();for(var ge=0;ge<ie.length;ge++)B.indentLine(ie[ge].from().line,null,!0);Da(B)})},openLine:function(B){return B.replaceSelection(`
`,"start")},toggleOverwrite:function(B){return B.toggleOverwrite()}};function Ae(N,B){var ie=Pe(N.doc,B),le=Bt(ie);return le!=ie&&(B=$t(le)),hu(!0,N,le,B,1)}function ee(N,B){var ie=Pe(N.doc,B),le=Wt(ie);return le!=ie&&(B=$t(le)),hu(!0,N,ie,B,-1)}function L(N,B){var ie=Ae(N,B.line),le=Pe(N.doc,ie.line),ge=Ct(le,N.doc.direction);if(!ge||ge[0].level==0){var Ke=Math.max(ie.ch,le.text.search(/\S/)),Rt=B.line==ie.line&&B.ch<=Ke&&B.ch;return Vt(ie.line,Rt?0:Ke,ie.sticky)}return ie}function W(N,B,ie){if(typeof B=="string"&&(B=iu[B],!B))return!1;N.display.input.ensurePolled();var le=N.display.shift,ge=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),ie&&(N.display.shift=!1),ge=B(N)!=q}finally{N.display.shift=le,N.state.suppressEdits=!1}return ge}function H(N,B,ie){for(var le=0;le<N.state.keyMaps.length;le++){var ge=Zl(B,N.state.keyMaps[le],ie,N);if(ge)return ge}return N.options.extraKeys&&Zl(B,N.options.extraKeys,ie,N)||Zl(B,N.options.keyMap,ie,N)}var Z=new Q;function ne(N,B,ie,le){var ge=N.state.keySeq;if(ge){if(yu(B))return"handled";if(/\'$/.test(B)?N.state.keySeq=null:Z.set(50,function(){N.state.keySeq==ge&&(N.state.keySeq=null,N.display.input.reset())}),ve(N,ge+" "+B,ie,le))return!0}return ve(N,B,ie,le)}function ve(N,B,ie,le){var ge=H(N,B,le);return ge=="multi"&&(N.state.keySeq=B),ge=="handled"&&Nr(N,"keyHandled",N,B,ie),(ge=="handled"||ge=="multi")&&(Ge(ie),ui(N)),!!ge}function Ce(N,B){var ie=bu(B,!0);return ie?B.shiftKey&&!N.state.keySeq?ne(N,"Shift-"+ie,B,function(le){return W(N,le,!0)})||ne(N,ie,B,function(le){if(typeof le=="string"?/^go[A-Z]/.test(le):le.motion)return W(N,le)}):ne(N,ie,B,function(le){return W(N,le)}):!1}function ze(N,B,ie){return ne(N,"'"+ie+"'",B,function(le){return W(N,le,!0)})}var st=null;function gt(N){var B=this;if(N.target&&N.target!=B.display.input.getField())return;if(B.curOp.focus=P(),pr(B,N))return;d&&l<11&&N.keyCode==27&&(N.returnValue=!1);var ie=N.keyCode;B.display.shift=ie==16||N.shiftKey;var le=Ce(B,N);o&&(st=le?ie:null,!le&&ie==88&&!St&&(v?N.metaKey:N.ctrlKey)&&B.replaceSelection("",null,"cut")),S&&!v&&!le&&ie==46&&N.shiftKey&&!N.ctrlKey&&document.execCommand&&document.execCommand("cut"),ie==18&&!/\bCodeMirror-crosshair\b/.test(B.display.lineDiv.className)&&tr(B)}function tr(N){var B=N.display.lineDiv;X(B,"CodeMirror-crosshair");function ie(le){(le.keyCode==18||!le.altKey)&&(C(B,"CodeMirror-crosshair"),ht(document,"keyup",ie),ht(document,"mouseover",ie))}He(document,"keyup",ie),He(document,"mouseover",ie)}function Or(N){N.keyCode==16&&(this.doc.sel.shift=!1),pr(this,N)}function Sr(N){var B=this;if(N.target&&N.target!=B.display.input.getField())return;if(ei(B.display,N)||pr(B,N)||N.ctrlKey&&!N.altKey||v&&N.metaKey)return;var ie=N.keyCode,le=N.charCode;if(o&&ie==st){st=null,Ge(N);return}if(o&&(!N.which||N.which<10)&&Ce(B,N))return;var ge=String.fromCharCode(le==null?ie:le);if(ge=="\b")return;if(ze(B,N,ge))return;B.display.input.onKeyPress(N)}var Wr=400,$r=function(B,ie,le){this.time=B,this.pos=ie,this.button=le};$r.prototype.compare=function(N,B,ie){return this.time+Wr>N&&yt(B,this.pos)==0&&ie==this.button};var Ln,Mn;function Zn(N,B){var ie=+new Date;return Mn&&Mn.compare(ie,N,B)?(Ln=Mn=null,"triple"):Ln&&Ln.compare(ie,N,B)?(Mn=new $r(ie,N,B),Ln=null,"double"):(Ln=new $r(ie,N,B),Mn=null,"single")}function xi(N){var B=this,ie=B.display;if(pr(B,N)||ie.activeTouch&&ie.input.supportsTouch())return;if(ie.input.ensurePolled(),ie.shift=N.shiftKey,ei(ie,N)){a||(ie.scroller.draggable=!1,setTimeout(function(){return ie.scroller.draggable=!0},100));return}if(bs(B,N))return;var le=_o(B,N),ge=me(N),Ke=le?Zn(le,ge):"single";if(window.focus(),ge==1&&B.state.selectingText&&B.state.selectingText(N),le&&ua(B,ge,le,Ke,N))return;ge==1?le?Zi(B,le,Ke,N):qe(N)==ie.scroller&&Ge(N):ge==2?(le&&Us(B.doc,le),setTimeout(function(){return ie.input.focus()},20)):ge==3&&(T?B.display.input.onContextMenu(N):li(B))}function ua(N,B,ie,le,ge){var Ke="Click";return le=="double"?Ke="Double"+Ke:le=="triple"&&(Ke="Triple"+Ke),Ke=(B==1?"Left":B==2?"Middle":"Right")+Ke,ne(N,Su(Ke,ge),ge,function(Rt){if(typeof Rt=="string"&&(Rt=iu[Rt]),!Rt)return!1;var sr=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),sr=Rt(N,ie)!=q}finally{N.state.suppressEdits=!1}return sr})}function Gi(N,B,ie){var le=N.getOption("configureMouse"),ge=le?le(N,B,ie):{};if(ge.unit==null){var Ke=A?ie.shiftKey&&ie.metaKey:ie.altKey;ge.unit=Ke?"rectangle":B=="single"?"char":B=="double"?"word":"line"}return(ge.extend==null||N.doc.extend)&&(ge.extend=N.doc.extend||ie.shiftKey),ge.addNew==null&&(ge.addNew=v?ie.metaKey:ie.ctrlKey),ge.moveOnDrag==null&&(ge.moveOnDrag=!(v?ie.altKey:ie.ctrlKey)),ge}function Zi(N,B,ie,le){d?setTimeout(K(di,N),0):N.curOp.focus=P();var ge=Gi(N,ie,le),Ke=N.doc.sel,Rt;N.options.dragDrop&&Kt&&!N.isReadOnly()&&ie=="single"&&(Rt=Ke.contains(B))>-1&&(yt((Rt=Ke.ranges[Rt]).from(),B)<0||B.xRel>0)&&(yt(Rt.to(),B)>0||B.xRel<0)?ka(N,le,B,ge):Ba(N,le,B,ge)}function ka(N,B,ie,le){var ge=N.display,Ke=!1,Rt=zo(N,function(Ir){a&&(ge.scroller.draggable=!1),N.state.draggingText=!1,ht(ge.wrapper.ownerDocument,"mouseup",Rt),ht(ge.wrapper.ownerDocument,"mousemove",sr),ht(ge.scroller,"dragstart",xr),ht(ge.scroller,"drop",Rt),Ke||(Ge(Ir),le.addNew||Us(N.doc,ie,null,null,le.extend),a&&!e||d&&l==9?setTimeout(function(){ge.wrapper.ownerDocument.body.focus({preventScroll:!0}),ge.input.focus()},20):ge.input.focus())}),sr=function(Kn){Ke=Ke||Math.abs(B.clientX-Kn.clientX)+Math.abs(B.clientY-Kn.clientY)>=10},xr=function(){return Ke=!0};a&&(ge.scroller.draggable=!0),N.state.draggingText=Rt,Rt.copy=!le.moveOnDrag,ge.scroller.dragDrop&&ge.scroller.dragDrop(),He(ge.wrapper.ownerDocument,"mouseup",Rt),He(ge.wrapper.ownerDocument,"mousemove",sr),He(ge.scroller,"dragstart",xr),He(ge.scroller,"drop",Rt),li(N),setTimeout(function(){return ge.input.focus()},20)}function Ga(N,B,ie){if(ie=="char")return new ce(B,B);if(ie=="word")return N.findWordAt(B);if(ie=="line")return new ce(Vt(B.line,0),Ft(N.doc,Vt(B.line+1,0)));var le=ie(N,B);return new ce(le.from,le.to)}function Ba(N,B,ie,le){var ge=N.display,Ke=N.doc;Ge(B);var Rt,sr,xr=Ke.sel,Ir=xr.ranges;if(le.addNew&&!le.extend?(sr=Ke.sel.contains(ie),sr>-1?Rt=Ir[sr]:Rt=new ce(ie,ie)):(Rt=Ke.sel.primary(),sr=Ke.sel.primIndex),le.unit=="rectangle")le.addNew||(Rt=new ce(ie,ie)),ie=_o(N,B,!0,!0),sr=-1;else{var Kn=Ga(N,ie,le.unit);le.extend?Rt=fl(Rt,Kn.anchor,Kn.head,le.extend):Rt=Kn}le.addNew?sr==-1?(sr=Ir.length,Cs(Ke,Se(N,Ir.concat([Rt]),sr),{scroll:!1,origin:"*mouse"})):Ir.length>1&&Ir[sr].empty()&&le.unit=="char"&&!le.extend?(Cs(Ke,Se(N,Ir.slice(0,sr).concat(Ir.slice(sr+1)),0),{scroll:!1,origin:"*mouse"}),xr=Ke.sel):Xs(Ke,sr,Rt,re):(sr=0,Cs(Ke,new Mt([Rt],0),re),xr=Ke.sel);var ni=ie;function Ei(qa){if(yt(ni,qa)==0)return;if(ni=qa,le.unit=="rectangle"){for(var ho=[],ns=N.options.tabSize,Mo=V(Pe(Ke,ie.line).text,ie.ch,ns),xs=V(Pe(Ke,qa.line).text,qa.ch,ns),Zs=Math.min(Mo,xs),yl=Math.max(Mo,xs),ul=Math.min(ie.line,qa.line),Pl=Math.min(N.lastLine(),Math.max(ie.line,qa.line));ul<=Pl;ul++){var Vl=Pe(Ke,ul).text,Il=Oe(Vl,Zs,ns);Zs==yl?ho.push(new ce(Vt(ul,Il),Vt(ul,Il))):Vl.length>Il&&ho.push(new ce(Vt(ul,Il),Vt(ul,Oe(Vl,yl,ns))))}ho.length||ho.push(new ce(ie,ie)),Cs(Ke,Se(N,xr.ranges.slice(0,sr).concat(ho),sr),{origin:"*mouse",scroll:!1}),N.scrollIntoView(qa)}else{var Gl=Rt,Fl=Ga(N,qa,le.unit),Ja=Gl.anchor,vl;yt(Fl.anchor,Ja)>0?(vl=Fl.head,Ja=Ut(Gl.from(),Fl.anchor)):(vl=Fl.anchor,Ja=er(Gl.to(),Fl.head));var gl=xr.ranges.slice(0);gl[sr]=xa(N,new ce(Ft(Ke,Ja),vl)),Cs(Ke,Se(N,gl,sr),re)}}var Oi=ge.wrapper.getBoundingClientRect(),la=0;function Ca(qa){var ho=++la,ns=_o(N,qa,!0,le.unit=="rectangle");if(!ns)return;if(yt(ns,ni)!=0){N.curOp.focus=P(),Ei(ns);var Mo=ia(ge,Ke);(ns.line>=Mo.to||ns.line<Mo.from)&&setTimeout(zo(N,function(){la==ho&&Ca(qa)}),150)}else{var xs=qa.clientY<Oi.top?-20:qa.clientY>Oi.bottom?20:0;xs&&setTimeout(zo(N,function(){if(la!=ho)return;ge.scroller.scrollTop+=xs,Ca(qa)}),50)}}function Wa(qa){N.state.selectingText=!1,la=Infinity,qa&&(Ge(qa),ge.input.focus()),ht(ge.wrapper.ownerDocument,"mousemove",Ma),ht(ge.wrapper.ownerDocument,"mouseup",Na),Ke.history.lastSelOrigin=null}var Ma=zo(N,function(qa){qa.buttons===0||!me(qa)?Wa(qa):Ca(qa)}),Na=zo(N,Wa);N.state.selectingText=Na,He(ge.wrapper.ownerDocument,"mousemove",Ma),He(ge.wrapper.ownerDocument,"mouseup",Na)}function xa(N,B){var ie=B.anchor,le=B.head,ge=Pe(N.doc,ie.line);if(yt(ie,le)==0&&ie.sticky==le.sticky)return B;var Ke=Ct(ge);if(!Ke)return B;var Rt=ke(Ke,ie.ch,ie.sticky),sr=Ke[Rt];if(sr.from!=ie.ch&&sr.to!=ie.ch)return B;var xr=Rt+(sr.from==ie.ch==(sr.level!=1)?0:1);if(xr==0||xr==Ke.length)return B;var Ir;if(le.line!=ie.line)Ir=(le.line-ie.line)*(N.doc.direction=="ltr"?1:-1)>0;else{var Kn=ke(Ke,le.ch,le.sticky),ni=Kn-Rt||(le.ch-ie.ch)*(sr.level==1?-1:1);Kn==xr-1||Kn==xr?Ir=ni<0:Ir=ni>0}var Ei=Ke[xr+(Ir?-1:0)],Oi=Ir==(Ei.level==1),la=Oi?Ei.from:Ei.to,Ca=Oi?"after":"before";return ie.ch==la&&ie.sticky==Ca?B:new ce(new Vt(ie.line,la,Ca),le)}function Go(N,B,ie,le){var ge,Ke;if(B.touches)ge=B.touches[0].clientX,Ke=B.touches[0].clientY;else try{ge=B.clientX,Ke=B.clientY}catch(Ei){return!1}if(ge>=Math.floor(N.display.gutters.getBoundingClientRect().right))return!1;le&&Ge(B);var Rt=N.display,sr=Rt.lineDiv.getBoundingClientRect();if(Ke>sr.bottom||!Ht(N,ie))return oe(B);Ke-=sr.top-Rt.viewOffset;for(var xr=0;xr<N.display.gutterSpecs.length;++xr){var Ir=Rt.gutters.childNodes[xr];if(Ir&&Ir.getBoundingClientRect().right>=ge){var Kn=Mr(N.doc,Ke),ni=N.display.gutterSpecs[xr];return Gt(N,ie,N,Kn,ni.className,B),oe(B)}}}function bs(N,B){return Go(N,B,"gutterClick",!0)}function ys(N,B){if(ei(N.display,B)||Ts(N,B))return;if(pr(N,B,"contextmenu"))return;T||N.display.input.onContextMenu(B)}function Ts(N,B){return Ht(N,"gutterContextMenu")?Go(N,B,"gutterContextMenu",!1):!1}function js(N){N.display.wrapper.className=N.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+N.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xa(N)}var ws={toString:function(){return"CodeMirror.Init"}},Hs={},Ee={};function Ye(N){var B=N.optionHandlers;function ie(le,ge,Ke,Rt){N.defaults[le]=ge,Ke&&(B[le]=Rt?function(sr,xr,Ir){Ir!=ws&&Ke(sr,xr,Ir)}:Ke)}N.defineOption=ie,N.Init=ws,ie("value","",function(le,ge){return le.setValue(ge)},!0),ie("mode",null,function(le,ge){le.doc.modeOption=ge,kn(le)},!0),ie("indentUnit",2,kn,!0),ie("indentWithTabs",!1),ie("smartIndent",!0),ie("tabSize",4,function(le){ci(le),Xa(le),Ha(le)},!0),ie("lineSeparator",null,function(le,ge){if(le.doc.lineSep=ge,!ge)return;var Ke=[],Rt=le.doc.first;le.doc.iter(function(xr){for(var Ir=0;;){var Kn=xr.text.indexOf(ge,Ir);if(Kn==-1)break;Ir=Kn+ge.length,Ke.push(Vt(Rt,Kn))}Rt++});for(var sr=Ke.length-1;sr>=0;sr--)jl(le.doc,ge,Ke[sr],Vt(Ke[sr].line,Ke[sr].ch+ge.length))}),ie("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(le,ge,Ke){le.state.specialChars=new RegExp(ge.source+(ge.test(" ")?"":"| "),"g"),Ke!=ws&&le.refresh()}),ie("specialCharPlaceholder",Ci,function(le){return le.refresh()},!0),ie("electricChars",!0),ie("inputStyle",h?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ie("spellcheck",!1,function(le,ge){return le.getInputField().spellcheck=ge},!0),ie("autocorrect",!1,function(le,ge){return le.getInputField().autocorrect=ge},!0),ie("autocapitalize",!1,function(le,ge){return le.getInputField().autocapitalize=ge},!0),ie("rtlMoveVisually",!b),ie("wholeLineUpdateBefore",!0),ie("theme","default",function(le){js(le),fs(le)},!0),ie("keyMap","default",function(le,ge,Ke){var Rt=hl(ge),sr=Ke!=ws&&hl(Ke);sr&&sr.detach&&sr.detach(le,Rt),Rt.attach&&Rt.attach(le,sr||null)}),ie("extraKeys",null),ie("configureMouse",null),ie("lineWrapping",!1,fr,!0),ie("gutters",[],function(le,ge){le.display.gutterSpecs=Vo(ge,le.options.lineNumbers),fs(le)},!0),ie("fixedGutter",!0,function(le,ge){le.display.gutters.style.left=ge?So(le.display)+"px":"0",le.refresh()},!0),ie("coverGutterNextToScrollbar",!1,function(le){return Lo(le)},!0),ie("scrollbarStyle","native",function(le){Rs(le),Lo(le),le.display.scrollbars.setScrollTop(le.doc.scrollTop),le.display.scrollbars.setScrollLeft(le.doc.scrollLeft)},!0),ie("lineNumbers",!1,function(le,ge){le.display.gutterSpecs=Vo(le.options.gutters,ge),fs(le)},!0),ie("firstLineNumber",1,fs,!0),ie("lineNumberFormatter",function(le){return le},fs,!0),ie("showCursorWhenSelecting",!1,fn,!0),ie("resetSelectionOnContextMenu",!0),ie("lineWiseCopyCut",!0),ie("pasteLinesPerSelection",!0),ie("selectionsMayTouch",!1),ie("readOnly",!1,function(le,ge){ge=="nocursor"&&(vi(le),le.display.input.blur()),le.display.input.readOnlyChanged(ge)}),ie("screenReaderLabel",null,function(le,ge){ge=ge===""?null:ge,le.display.input.screenReaderLabelChanged(ge)}),ie("disableInput",!1,function(le,ge){ge||le.display.input.reset()},!0),ie("dragDrop",!0,It),ie("allowDropFileTypes",null),ie("cursorBlinkRate",530),ie("cursorScrollMargin",0),ie("cursorHeight",1,fn,!0),ie("singleCursorHeightPerLine",!0,fn,!0),ie("workTime",100),ie("workDelay",100),ie("flattenSpans",!0,ci,!0),ie("addModeClass",!1,ci,!0),ie("pollInterval",100),ie("undoDepth",200,function(le,ge){return le.doc.history.undoDepth=ge}),ie("historyEventDelay",1250),ie("viewportMargin",10,function(le){return le.refresh()},!0),ie("maxHighlightLength",1e4,ci,!0),ie("moveInputWithCursor",!0,function(le,ge){ge||le.display.input.resetPosition()}),ie("tabindex",null,function(le,ge){return le.display.input.getField().tabIndex=ge||""}),ie("autofocus",null),ie("direction","ltr",function(le,ge){return le.doc.setDirection(ge)},!0),ie("phrases",null)}function It(N,B,ie){var le=ie&&ie!=ws;if(!B!=!le){var ge=N.display.dragFunctions,Ke=B?He:ht;Ke(N.display.scroller,"dragstart",ge.start),Ke(N.display.scroller,"dragenter",ge.enter),Ke(N.display.scroller,"dragover",ge.over),Ke(N.display.scroller,"dragleave",ge.leave),Ke(N.display.scroller,"drop",ge.drop)}}function fr(N){N.options.lineWrapping?(X(N.display.wrapper,"CodeMirror-wrap"),N.display.sizer.style.minWidth="",N.display.sizerWidth=null):(C(N.display.wrapper,"CodeMirror-wrap"),Fn(N)),Ho(N),Ha(N),Xa(N),setTimeout(function(){return Lo(N)},100)}function Ur(N,B){var ie=this;if(!(this instanceof Ur))return new Ur(N,B);this.options=B=B?z(B):{},z(Hs,B,!1);var le=B.value;typeof le=="string"?le=new Tl(le,B.mode,null,B.lineSeparator,B.direction):B.mode&&(le.modeOption=B.mode),this.doc=le;var ge=new Ur.inputStyles[B.inputStyle](this),Ke=this.display=new Ds(N,le,ge,B);Ke.wrapper.CodeMirror=this,js(this),B.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Rs(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 Q,keySeq:null,specialChars:null},B.autofocus&&!h&&Ke.input.focus(),d&&l<11&&setTimeout(function(){return ie.display.input.reset(!0)},20),ln(this),cu(),as(this),this.curOp.forceUpdate=!0,sa(this,le),B.autofocus&&!h||this.hasFocus()?setTimeout(function(){ie.hasFocus()&&!ie.state.focused&&Ti(ie)},20):vi(this);for(var Rt in Ee)Ee.hasOwnProperty(Rt)&&Ee[Rt](this,B[Rt],ws);Js(this),B.finishInit&&B.finishInit(this);for(var sr=0;sr<Ue.length;++sr)Ue[sr](this);co(this),a&&B.lineWrapping&&getComputedStyle(Ke.lineDiv).textRendering=="optimizelegibility"&&(Ke.lineDiv.style.textRendering="auto")}Ur.defaults=Hs,Ur.optionHandlers=Ee;function ln(N){var B=N.display;He(B.scroller,"mousedown",zo(N,xi)),d&&l<11?He(B.scroller,"dblclick",zo(N,function(xr){if(pr(N,xr))return;var Ir=_o(N,xr);if(!Ir||bs(N,xr)||ei(N.display,xr))return;Ge(xr);var Kn=N.findWordAt(Ir);Us(N.doc,Kn.anchor,Kn.head)})):He(B.scroller,"dblclick",function(xr){return pr(N,xr)||Ge(xr)}),He(B.scroller,"contextmenu",function(xr){return ys(N,xr)}),He(B.input.getField(),"contextmenu",function(xr){B.scroller.contains(xr.target)||ys(N,xr)});var ie,le={end:0};function ge(){B.activeTouch&&(ie=setTimeout(function(){return B.activeTouch=null},1e3),le=B.activeTouch,le.end=+new Date)}function Ke(xr){if(xr.touches.length!=1)return!1;var Ir=xr.touches[0];return Ir.radiusX<=1&&Ir.radiusY<=1}function Rt(xr,Ir){if(Ir.left==null)return!0;var Kn=Ir.left-xr.left,ni=Ir.top-xr.top;return Kn*Kn+ni*ni>20*20}He(B.scroller,"touchstart",function(xr){if(!pr(N,xr)&&!Ke(xr)&&!bs(N,xr)){B.input.ensurePolled(),clearTimeout(ie);var Ir=+new Date;B.activeTouch={start:Ir,moved:!1,prev:Ir-le.end<=300?le:null},xr.touches.length==1&&(B.activeTouch.left=xr.touches[0].pageX,B.activeTouch.top=xr.touches[0].pageY)}}),He(B.scroller,"touchmove",function(){B.activeTouch&&(B.activeTouch.moved=!0)}),He(B.scroller,"touchend",function(xr){var Ir=B.activeTouch;if(Ir&&!ei(B,xr)&&Ir.left!=null&&!Ir.moved&&new Date-Ir.start<300){var Kn=N.coordsChar(B.activeTouch,"page"),ni;!Ir.prev||Rt(Ir,Ir.prev)?ni=new ce(Kn,Kn):!Ir.prev.prev||Rt(Ir,Ir.prev.prev)?ni=N.findWordAt(Kn):ni=new ce(Vt(Kn.line,0),Ft(N.doc,Vt(Kn.line+1,0))),N.setSelection(ni.anchor,ni.head),N.focus(),Ge(xr)}ge()}),He(B.scroller,"touchcancel",ge),He(B.scroller,"scroll",function(){B.scroller.clientHeight&&(Ea(N,B.scroller.scrollTop),Ka(N,B.scroller.scrollLeft,!0),Gt(N,"scroll",N))}),He(B.scroller,"mousewheel",function(xr){return fi(N,xr)}),He(B.scroller,"DOMMouseScroll",function(xr){return fi(N,xr)}),He(B.wrapper,"scroll",function(){return B.wrapper.scrollTop=B.wrapper.scrollLeft=0}),B.dragFunctions={enter:function(Ir){pr(N,Ir)||ct(Ir)},over:function(Ir){pr(N,Ir)||(xu(N,Ir),ct(Ir))},start:function(Ir){return xl(N,Ir)},drop:zo(N,Hl),leave:function(Ir){pr(N,Ir)||vu(N)}};var sr=B.input.getField();He(sr,"keyup",function(xr){return Or.call(N,xr)}),He(sr,"keydown",zo(N,gt)),He(sr,"keypress",zo(N,Sr)),He(sr,"focus",function(xr){return Ti(N,xr)}),He(sr,"blur",function(xr){return vi(N,xr)})}var Ue=[];Ur.defineInitHook=function(N){return Ue.push(N)};function ae(N,B,ie,le){var ge=N.doc,Ke;ie==null&&(ie="add"),ie=="smart"&&(ge.mode.indent?Ke=ri(N,B).state:ie="prev");var Rt=N.options.tabSize,sr=Pe(ge,B),xr=V(sr.text,null,Rt);sr.stateAfter&&(sr.stateAfter=null);var Ir=sr.text.match(/^\s*/)[0],Kn;if(!le&&!/\S/.test(sr.text))Kn=0,ie="not";else if(ie=="smart"&&(Kn=ge.mode.indent(Ke,sr.text.slice(Ir.length),sr.text),Kn==q||Kn>150)){if(!le)return;ie="prev"}ie=="prev"?B>ge.first?Kn=V(Pe(ge,B-1).text,null,Rt):Kn=0:ie=="add"?Kn=xr+N.options.indentUnit:ie=="subtract"?Kn=xr-N.options.indentUnit:typeof ie=="number"&&(Kn=xr+ie),Kn=Math.max(0,Kn);var ni="",Ei=0;if(N.options.indentWithTabs)for(var Oi=Math.floor(Kn/Rt);Oi;--Oi)Ei+=Rt,ni+=" ";if(Ei<Kn&&(ni+=Qe(Kn-Ei)),ni!=Ir)return jl(ge,ni,Vt(B,0),Vt(B,Ir.length),"+input"),sr.stateAfter=null,!0;for(var la=0;la<ge.sel.ranges.length;la++){var Ca=ge.sel.ranges[la];if(Ca.head.line==B&&Ca.head.ch<Ir.length){var Wa=Vt(B,Ir.length);Xs(ge,la,new ce(Wa,Wa));break}}}var _e=null;function $e(N){_e=N}function Et(N,B,ie,le,ge){var Ke=N.doc;N.display.shift=!1,le||(le=Ke.sel);var Rt=+new Date-200,sr=ge=="paste"||N.state.pasteIncoming>Rt,xr=jt(B),Ir=null;if(sr&&le.ranges.length>1)if(_e&&_e.text.join(`
`)==B){if(le.ranges.length%_e.text.length==0){Ir=[];for(var Kn=0;Kn<_e.text.length;Kn++)Ir.push(Ke.splitLines(_e.text[Kn]))}}else xr.length==le.ranges.length&&N.options.pasteLinesPerSelection&&(Ir=dt(xr,function(Ma){return[Ma]}));for(var ni=N.curOp.updateInput,Ei=le.ranges.length-1;Ei>=0;Ei--){var Oi=le.ranges[Ei],la=Oi.from(),Ca=Oi.to();Oi.empty()&&(ie&&ie>0?la=Vt(la.line,la.ch-ie):N.state.overwrite&&!sr?Ca=Vt(Ca.line,Math.min(Pe(Ke,Ca.line).text.length,Ca.ch+Ve(xr).length)):sr&&_e&&_e.lineWise&&_e.text.join(`
`)==xr.join(`
`)&&(la=Ca=Vt(la.line,0)));var Wa={from:la,to:Ca,text:Ir?Ir[Ei%Ir.length]:xr,origin:ge||(sr?"paste":N.state.cutIncoming>Rt?"cut":"+input")};Ls(N.doc,Wa),Nr(N,"inputRead",N,Wa)}B&&!sr&&ar(N,B),Da(N),N.curOp.updateInput<2&&(N.curOp.updateInput=ni),N.curOp.typing=!0,N.state.pasteIncoming=N.state.cutIncoming=-1}function qt(N,B){var ie=N.clipboardData&&N.clipboardData.getData("Text");if(ie)return N.preventDefault(),!B.isReadOnly()&&!B.options.disableInput&&Eo(B,function(){return Et(B,ie,0,null,"paste")}),!0}function ar(N,B){if(!N.options.electricChars||!N.options.smartIndent)return;for(var ie=N.doc.sel,le=ie.ranges.length-1;le>=0;le--){var ge=ie.ranges[le];if(ge.head.ch>100||le&&ie.ranges[le-1].head.line==ge.head.line)continue;var Ke=N.getModeAt(ge.head),Rt=!1;if(Ke.electricChars){for(var sr=0;sr<Ke.electricChars.length;sr++)if(B.indexOf(Ke.electricChars.charAt(sr))>-1){Rt=ae(N,ge.head.line,"smart");break}}else Ke.electricInput&&(Ke.electricInput.test(Pe(N.doc,ge.head.line).text.slice(0,ge.head.ch))&&(Rt=ae(N,ge.head.line,"smart")));Rt&&Nr(N,"electricInput",N,ge.head.line)}}function lr(N){for(var B=[],ie=[],le=0;le<N.doc.sel.ranges.length;le++){var ge=N.doc.sel.ranges[le].head.line,Ke={anchor:Vt(ge,0),head:Vt(ge+1,0)};ie.push(Ke),B.push(N.getRange(Ke.anchor,Ke.head))}return{text:B,ranges:ie}}function Gr(N,B,ie,le){N.setAttribute("autocorrect",ie?"":"off"),N.setAttribute("autocapitalize",le?"":"off"),N.setAttribute("spellcheck",!!B)}function pn(){var N=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),B=I("div",[N],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return a?N.style.width="1000px":N.setAttribute("wrap","off"),s&&(N.style.border="1px solid black"),Gr(N),B}function zr(N){var B=N.optionHandlers,ie=N.helpers={};N.prototype={constructor:N,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ge,Ke){var Rt=this.options,sr=Rt[ge];if(Rt[ge]==Ke&&ge!="mode")return;Rt[ge]=Ke,B.hasOwnProperty(ge)&&zo(this,B[ge])(this,Ke,sr),Gt(this,"optionChange",this,ge)},getOption:function(ge){return this.options[ge]},getDoc:function(){return this.doc},addKeyMap:function(ge,Ke){this.state.keyMaps[Ke?"push":"unshift"](hl(ge))},removeKeyMap:function(ge){for(var Ke=this.state.keyMaps,Rt=0;Rt<Ke.length;++Rt)if(Ke[Rt]==ge||Ke[Rt].name==ge)return Ke.splice(Rt,1),!0},addOverlay:Fs(function(le,ge){var Ke=le.token?le:N.getMode(this.options,le);if(Ke.startState)throw new Error("Overlays may not be stateful.");Fe(this.state.overlays,{mode:Ke,modeSpec:le,opaque:ge&&ge.opaque,priority:ge&&ge.priority||0},function(Rt){return Rt.priority}),this.state.modeGen++,Ha(this)}),removeOverlay:Fs(function(le){for(var ge=this.state.overlays,Ke=0;Ke<ge.length;++Ke){var Rt=ge[Ke].modeSpec;if(Rt==le||typeof le=="string"&&Rt.name==le){ge.splice(Ke,1),this.state.modeGen++,Ha(this);return}}}),indentLine:Fs(function(le,ge,Ke){typeof ge!="string"&&typeof ge!="number"&&(ge==null?ge=this.options.smartIndent?"smart":"prev":ge=ge?"add":"subtract"),Vr(this.doc,le)&&ae(this,le,ge,Ke)}),indentSelection:Fs(function(le){for(var ge=this.doc.sel.ranges,Ke=-1,Rt=0;Rt<ge.length;Rt++){var sr=ge[Rt];if(sr.empty())sr.head.line>Ke&&(ae(this,sr.head.line,le,!0),Ke=sr.head.line,Rt==this.doc.sel.primIndex&&Da(this));else{var xr=sr.from(),Ir=sr.to(),Kn=Math.max(Ke,xr.line);Ke=Math.min(this.lastLine(),Ir.line-(Ir.ch?0:1))+1;for(var ni=Kn;ni<Ke;++ni)ae(this,ni,le);var Ei=this.doc.sel.ranges;xr.ch==0&&ge.length==Ei.length&&Ei[Rt].from().ch>0&&Xs(this.doc,Rt,new ce(xr,Ei[Rt].to()),se)}}}),getTokenAt:function(ge,Ke){return Wi(this,ge,Ke)},getLineTokens:function(ge,Ke){return Wi(this,Vt(ge),Ke,!0)},getTokenTypeAt:function(ge){ge=Ft(this.doc,ge);var Ke=yn(this,Pe(this.doc,ge.line)),Rt=0,sr=(Ke.length-1)/2,xr=ge.ch,Ir;if(xr==0)Ir=Ke[2];else for(;;){var Kn=Rt+sr>>1;if((Kn?Ke[Kn*2-1]:0)>=xr)sr=Kn;else if(Ke[Kn*2+1]<xr)Rt=Kn+1;else{Ir=Ke[Kn*2+2];break}}var ni=Ir?Ir.indexOf("overlay "):-1;return ni<0?Ir:ni==0?null:Ir.slice(0,ni-1)},getModeAt:function(ge){var Ke=this.doc.mode;return Ke.innerMode?N.innerMode(Ke,this.getTokenAt(ge).state).mode:Ke},getHelper:function(ge,Ke){return this.getHelpers(ge,Ke)[0]},getHelpers:function(ge,Ke){var Rt=[];if(!ie.hasOwnProperty(Ke))return Rt;var sr=ie[Ke],xr=this.getModeAt(ge);if(typeof xr[Ke]=="string")sr[xr[Ke]]&&Rt.push(sr[xr[Ke]]);else if(xr[Ke])for(var Ir=0;Ir<xr[Ke].length;Ir++){var Kn=sr[xr[Ke][Ir]];Kn&&Rt.push(Kn)}else xr.helperType&&sr[xr.helperType]?Rt.push(sr[xr.helperType]):sr[xr.name]&&Rt.push(sr[xr.name]);for(var ni=0;ni<sr._global.length;ni++){var Ei=sr._global[ni];Ei.pred(xr,this)&&G(Rt,Ei.val)==-1&&Rt.push(Ei.val)}return Rt},getStateAfter:function(ge,Ke){var Rt=this.doc;return ge=ir(Rt,ge==null?Rt.first+Rt.size-1:ge),ri(this,ge+1,Ke).state},cursorCoords:function(ge,Ke){var Rt,sr=this.doc.sel.primary();return ge==null?Rt=sr.head:typeof ge=="object"?Rt=Ft(this.doc,ge):Rt=ge?sr.from():sr.to(),mo(this,Rt,Ke||"page")},charCoords:function(ge,Ke){return Qo(this,Ft(this.doc,ge),Ke||"page")},coordsChar:function(ge,Ke){return ge=oo(this,ge,Ke||"page"),xo(this,ge.left,ge.top)},lineAtHeight:function(ge,Ke){return ge=oo(this,{top:ge,left:0},Ke||"page").top,Mr(this.doc,ge+this.display.viewOffset)},heightAtLine:function(ge,Ke,Rt){var sr=!1,xr;if(typeof ge=="number"){var Ir=this.doc.first+this.doc.size-1;ge<this.doc.first?ge=this.doc.first:ge>Ir&&(ge=Ir,sr=!0),xr=Pe(this.doc,ge)}else xr=ge;return io(this,xr,{top:0,left:0},Ke||"page",Rt||sr).top+(sr?this.doc.height-Fr(xr):0)},defaultTextHeight:function(){return Oo(this.display)},defaultCharWidth:function(){return Io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ge,Ke,Rt,sr,xr){var Ir=this.display;ge=mo(this,Ft(this.doc,ge));var Kn=ge.bottom,ni=ge.left;if(Ke.style.position="absolute",Ke.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ke),Ir.sizer.appendChild(Ke),sr=="over")Kn=ge.top;else if(sr=="above"||sr=="near"){var Ei=Math.max(Ir.wrapper.clientHeight,this.doc.height),Oi=Math.max(Ir.sizer.clientWidth,Ir.lineSpace.clientWidth);(sr=="above"||ge.bottom+Ke.offsetHeight>Ei)&&ge.top>Ke.offsetHeight?Kn=ge.top-Ke.offsetHeight:ge.bottom+Ke.offsetHeight<=Ei&&(Kn=ge.bottom),ni+Ke.offsetWidth>Oi&&(ni=Oi-Ke.offsetWidth)}Ke.style.top=Kn+"px",Ke.style.left=Ke.style.right="",xr=="right"?(ni=Ir.sizer.clientWidth-Ke.offsetWidth,Ke.style.right="0px"):(xr=="left"?ni=0:xr=="middle"&&(ni=(Ir.sizer.clientWidth-Ke.offsetWidth)/2),Ke.style.left=ni+"px"),Rt&&Ya(this,{left:ni,top:Kn,right:ni+Ke.offsetWidth,bottom:Kn+Ke.offsetHeight})},triggerOnKeyDown:Fs(gt),triggerOnKeyPress:Fs(Sr),triggerOnKeyUp:Or,triggerOnMouseDown:Fs(xi),execCommand:function(ge){if(iu.hasOwnProperty(ge))return iu[ge].call(null,this)},triggerElectric:Fs(function(le){ar(this,le)}),findPosH:function(ge,Ke,Rt,sr){var xr=1;Ke<0&&(xr=-1,Ke=-Ke);for(var Ir=Ft(this.doc,ge),Kn=0;Kn<Ke&&!(Ir=Hr(this.doc,Ir,xr,Rt,sr),Ir.hitSide);++Kn);return Ir},moveH:Fs(function(le,ge){var Ke=this;this.extendSelectionsBy(function(Rt){return Ke.display.shift||Ke.doc.extend||Rt.empty()?Hr(Ke.doc,Rt.head,le,ge,Ke.options.rtlMoveVisually):le<0?Rt.from():Rt.to()},we)}),deleteH:Fs(function(le,ge){var Ke=this.doc.sel,Rt=this.doc;Ke.somethingSelected()?Rt.replaceSelection("",null,"+delete"):Dl(this,function(sr){var xr=Hr(Rt,sr.head,le,ge,!1);return le<0?{from:xr,to:sr.head}:{from:sr.head,to:xr}})}),findPosV:function(ge,Ke,Rt,sr){var xr=1,Ir=sr;Ke<0&&(xr=-1,Ke=-Ke);for(var Kn=Ft(this.doc,ge),ni=0;ni<Ke;++ni){var Ei=mo(this,Kn,"div");if(Ir==null?Ir=Ei.left:Ei.left=Ir,Kn=un(this,Ei,xr,Rt),Kn.hitSide)break}return Kn},moveV:Fs(function(le,ge){var Ke=this,Rt=this.doc,sr=[],xr=!this.display.shift&&!Rt.extend&&Rt.sel.somethingSelected();if(Rt.extendSelectionsBy(function(Kn){if(xr)return le<0?Kn.from():Kn.to();var ni=mo(Ke,Kn.head,"div");Kn.goalColumn!=null&&(ni.left=Kn.goalColumn),sr.push(ni.left);var Ei=un(Ke,ni,le,ge);return ge=="page"&&Kn==Rt.sel.primary()&&wa(Ke,Qo(Ke,Ei,"div").top-ni.top),Ei},we),sr.length)for(var Ir=0;Ir<Rt.sel.ranges.length;Ir++)Rt.sel.ranges[Ir].goalColumn=sr[Ir]}),findWordAt:function(ge){var Ke=this.doc,Rt=Pe(Ke,ge.line).text,sr=ge.ch,xr=ge.ch;if(Rt){var Ir=this.getHelper(ge,"wordChars");(ge.sticky=="before"||xr==Rt.length)&&sr?--sr:++xr;for(var Kn=Rt.charAt(sr),ni=Y(Kn,Ir)?function(Ei){return Y(Ei,Ir)}:/\s/.test(Kn)?function(Ei){return/\s/.test(Ei)}:function(Ei){return!/\s/.test(Ei)&&!Y(Ei)};sr>0&&ni(Rt.charAt(sr-1));)--sr;for(;xr<Rt.length&&ni(Rt.charAt(xr));)++xr}return new ce(Vt(ge.line,sr),Vt(ge.line,xr))},toggleOverwrite:function(ge){if(ge!=null&&ge==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?X(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),Gt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==P()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Fs(function(le,ge){ja(this,le,ge)}),getScrollInfo:function(){var ge=this.display.scroller;return{left:ge.scrollLeft,top:ge.scrollTop,height:ge.scrollHeight-wi(this)-this.display.barHeight,width:ge.scrollWidth-wi(this)-this.display.barWidth,clientHeight:Vi(this),clientWidth:Ii(this)}},scrollIntoView:Fs(function(le,ge){le==null?(le={from:this.doc.sel.primary().head,to:null},ge==null&&(ge=this.options.cursorScrollMargin)):typeof le=="number"?le={from:Vt(le,0),to:null}:le.from==null&&(le={from:le,to:null}),le.to||(le.to=le.from),le.margin=ge||0,le.from.line!=null?ko(this,le):pa(this,le.from,le.to,le.margin)}),setSize:Fs(function(le,ge){var Ke=this,Rt=function(Ir){return typeof Ir=="number"||/^\d+$/.test(String(Ir))?Ir+"px":Ir};le!=null&&(this.display.wrapper.style.width=Rt(le)),ge!=null&&(this.display.wrapper.style.height=Rt(ge)),this.options.lineWrapping&&Aa(this);var sr=this.display.viewFrom;this.doc.iter(sr,this.display.viewTo,function(xr){if(xr.widgets){for(var Ir=0;Ir<xr.widgets.length;Ir++)if(xr.widgets[Ir].noHScroll){vt(Ke,sr,"widget");break}}++sr}),this.curOp.forceUpdate=!0,Gt(this,"refresh",this)}),operation:function(ge){return Eo(this,ge)},startOperation:function(){return as(this)},endOperation:function(){return co(this)},refresh:Fs(function(){var le=this.display.cachedTextHeight;Ha(this),this.curOp.forceUpdate=!0,Xa(this),ja(this,this.doc.scrollLeft,this.doc.scrollTop),Ss(this.display),(le==null||Math.abs(le-Oo(this.display))>.5||this.options.lineWrapping)&&Ho(this),Gt(this,"refresh",this)}),swapDoc:Fs(function(le){var ge=this.doc;return ge.cm=null,this.state.selectingText&&this.state.selectingText(),sa(this,le),Xa(this),this.display.input.reset(),ja(this,le.scrollLeft,le.scrollTop),this.curOp.forceScroll=!0,Nr(this,"swapDoc",this,ge),ge}),phrase:function(ge){var Ke=this.options.phrases;return Ke&&Object.prototype.hasOwnProperty.call(Ke,ge)?Ke[ge]:ge},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(N),N.registerHelper=function(le,ge,Ke){ie.hasOwnProperty(le)||(ie[le]=N[le]={_global:[]}),ie[le][ge]=Ke},N.registerGlobalHelper=function(le,ge,Ke,Rt){N.registerHelper(le,ge,Rt),ie[le]._global.push({pred:Ke,val:Rt})}}function Hr(N,B,ie,le,ge){var Ke=B,Rt=ie,sr=Pe(N,B.line),xr=ge&&N.direction=="rtl"?-ie:ie;function Ir(){var Na=B.line+xr;return Na<N.first||Na>=N.first+N.size?!1:(B=new Vt(Na,B.ch,B.sticky),sr=Pe(N,Na))}function Kn(Na){var qa;if(le=="codepoint"){var ho=sr.text.charCodeAt(B.ch+(le>0?0:-1));isNaN(ho)?qa=null:qa=new Vt(B.line,Math.max(0,Math.min(sr.text.length,B.ch+ie*(ho>=55296&&ho<56320?2:1))),-ie)}else ge?qa=fu(N.cm,sr,B,ie):qa=Nu(sr,B,ie);if(qa==null)if(!Na&&Ir())B=hu(ge,N.cm,sr,B.line,xr);else return!1;else B=qa;return!0}if(le=="char"||le=="codepoint")Kn();else if(le=="column")Kn(!0);else if(le=="word"||le=="group")for(var ni=null,Ei=le=="group",Oi=N.cm&&N.cm.getHelper(B,"wordChars"),la=!0;!(ie<0&&!Kn(!la));la=!1){var Ca=sr.text.charAt(B.ch)||`
`,Wa=Y(Ca,Oi)?"w":Ei&&Ca==`
`?"n":!Ei||/\s/.test(Ca)?null:"p";if(Ei&&!la&&!Wa&&(Wa="s"),ni&&ni!=Wa){ie<0&&(ie=1,Kn(),B.sticky="after");break}if(Wa&&(ni=Wa),ie>0&&!Kn(!la))break}var Ma=qo(N,B,Ke,Rt,!0);return xt(Ke,Ma)&&(Ma.hitSide=!0),Ma}function un(N,B,ie,le){var ge=N.doc,Ke=B.left,Rt;if(le=="page"){var sr=Math.min(N.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),xr=Math.max(sr-.5*Oo(N.display),3);Rt=(ie>0?B.bottom:B.top)+ie*xr}else le=="line"&&(Rt=ie>0?B.bottom+3:B.top-3);for(var Ir;!(Ir=xo(N,Ke,Rt),!Ir.outside);){if(ie<0?Rt<=0:Rt>=ge.height){Ir.hitSide=!0;break}Rt+=ie*5}return Ir}var bn=function(B){this.cm=B,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};bn.prototype.init=function(N){var B=this,ie=this,le=ie.cm,ge=ie.div=N.lineDiv;Gr(ge,le.options.spellcheck,le.options.autocorrect,le.options.autocapitalize);function Ke(sr){for(var xr=sr.target;xr;xr=xr.parentNode){if(xr==ge)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(xr.className))break}return!1}He(ge,"paste",function(sr){if(!Ke(sr)||pr(le,sr)||qt(sr,le))return;l<=11&&setTimeout(zo(le,function(){return B.updateFromDOM()}),20)}),He(ge,"compositionstart",function(sr){B.composing={data:sr.data,done:!1}}),He(ge,"compositionupdate",function(sr){B.composing||(B.composing={data:sr.data,done:!1})}),He(ge,"compositionend",function(sr){B.composing&&(sr.data!=B.composing.data&&B.readFromDOMSoon(),B.composing.done=!0)}),He(ge,"touchstart",function(){return ie.forceCompositionEnd()}),He(ge,"input",function(){B.composing||B.readFromDOMSoon()});function Rt(sr){if(!Ke(sr)||pr(le,sr))return;if(le.somethingSelected())$e({lineWise:!1,text:le.getSelections()}),sr.type=="cut"&&le.replaceSelection("",null,"cut");else if(le.options.lineWiseCopyCut){var xr=lr(le);$e({lineWise:!0,text:xr.text}),sr.type=="cut"&&le.operation(function(){le.setSelections(xr.ranges,0,se),le.replaceSelection("",null,"cut")})}else return;if(sr.clipboardData){sr.clipboardData.clearData();var Ir=_e.text.join(`
`);if(sr.clipboardData.setData("Text",Ir),sr.clipboardData.getData("Text")==Ir){sr.preventDefault();return}}var Kn=pn(),ni=Kn.firstChild;le.display.lineSpace.insertBefore(Kn,le.display.lineSpace.firstChild),ni.value=_e.text.join(`
`);var Ei=document.activeElement;j(ni),setTimeout(function(){le.display.lineSpace.removeChild(Kn),Ei.focus(),Ei==ge&&ie.showPrimarySelection()},50)}He(ge,"copy",Rt),He(ge,"cut",Rt)},bn.prototype.screenReaderLabelChanged=function(N){N?this.div.setAttribute("aria-label",N):this.div.removeAttribute("aria-label")},bn.prototype.prepareSelection=function(){var N=Yr(this.cm,!1);return N.focus=document.activeElement==this.div,N},bn.prototype.showSelection=function(N,B){if(!N||!this.cm.display.view.length)return;(N.focus||B)&&this.showPrimarySelection(),this.showMultipleSelections(N)},bn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bn.prototype.showPrimarySelection=function(){var N=this.getSelection(),B=this.cm,ie=B.doc.sel.primary(),le=ie.from(),ge=ie.to();if(B.display.viewTo==B.display.viewFrom||le.line>=B.display.viewTo||ge.line<B.display.viewFrom){N.removeAllRanges();return}var Ke=$i(B,N.anchorNode,N.anchorOffset),Rt=$i(B,N.focusNode,N.focusOffset);if(Ke&&!Ke.bad&&Rt&&!Rt.bad&&yt(Ut(Ke,Rt),le)==0&&yt(er(Ke,Rt),ge)==0)return;var sr=B.display.view,xr=le.line>=B.display.viewFrom&&Gn(B,le)||{node:sr[0].measure.map[2],offset:0},Ir=ge.line<B.display.viewTo&&Gn(B,ge);if(!Ir){var Kn=sr[sr.length-1].measure,ni=Kn.maps?Kn.maps[Kn.maps.length-1]:Kn.map;Ir={node:ni[ni.length-1],offset:ni[ni.length-2]-ni[ni.length-3]}}if(!xr||!Ir){N.removeAllRanges();return}var Ei=N.rangeCount&&N.getRangeAt(0),Oi;try{Oi=M(xr.node,xr.offset,Ir.offset,Ir.node)}catch(la){}Oi&&(!S&&B.state.focused?(N.collapse(xr.node,xr.offset),Oi.collapsed||(N.removeAllRanges(),N.addRange(Oi))):(N.removeAllRanges(),N.addRange(Oi)),Ei&&N.anchorNode==null?N.addRange(Ei):S&&this.startGracePeriod()),this.rememberSelection()},bn.prototype.startGracePeriod=function(){var N=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){N.gracePeriod=!1,N.selectionChanged()&&N.cm.operation(function(){return N.cm.curOp.selectionChanged=!0})},20)},bn.prototype.showMultipleSelections=function(N){O(this.cm.display.cursorDiv,N.cursors),O(this.cm.display.selectionDiv,N.selection)},bn.prototype.rememberSelection=function(){var N=this.getSelection();this.lastAnchorNode=N.anchorNode,this.lastAnchorOffset=N.anchorOffset,this.lastFocusNode=N.focusNode,this.lastFocusOffset=N.focusOffset},bn.prototype.selectionInEditor=function(){var N=this.getSelection();if(!N.rangeCount)return!1;var B=N.getRangeAt(0).commonAncestorContainer;return U(this.div,B)},bn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},bn.prototype.blur=function(){this.div.blur()},bn.prototype.getField=function(){return this.div},bn.prototype.supportsTouch=function(){return!0},bn.prototype.receivedFocus=function(){var N=this;this.selectionInEditor()?this.pollSelection():Eo(this.cm,function(){return N.cm.curOp.selectionChanged=!0});function B(){N.cm.state.focused&&(N.pollSelection(),N.polling.set(N.cm.options.pollInterval,B))}this.polling.set(this.cm.options.pollInterval,B)},bn.prototype.selectionChanged=function(){var N=this.getSelection();return N.anchorNode!=this.lastAnchorNode||N.anchorOffset!=this.lastAnchorOffset||N.focusNode!=this.lastFocusNode||N.focusOffset!=this.lastFocusOffset},bn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var N=this.getSelection(),B=this.cm;if(c&&t&&this.cm.display.gutterSpecs.length&&Li(N.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var ie=$i(B,N.anchorNode,N.anchorOffset),le=$i(B,N.focusNode,N.focusOffset);ie&&le&&Eo(B,function(){Cs(B.doc,Ie(ie,le),se),(ie.bad||le.bad)&&(B.curOp.selectionChanged=!0)})},bn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var N=this.cm,B=N.display,ie=N.doc.sel.primary(),le=ie.from(),ge=ie.to();if(le.ch==0&&le.line>N.firstLine()&&(le=Vt(le.line-1,Pe(N.doc,le.line-1).length)),ge.ch==Pe(N.doc,ge.line).text.length&&ge.line<N.lastLine()&&(ge=Vt(ge.line+1,0)),le.line<B.viewFrom||ge.line>B.viewTo-1)return!1;var Ke,Rt,sr;le.line==B.viewFrom||(Ke=uo(N,le.line))==0?(Rt=$t(B.view[0].line),sr=B.view[0].node):(Rt=$t(B.view[Ke].line),sr=B.view[Ke-1].node.nextSibling);var xr=uo(N,ge.line),Ir,Kn;if(xr==B.view.length-1?(Ir=B.viewTo-1,Kn=B.lineDiv.lastChild):(Ir=$t(B.view[xr+1].line)-1,Kn=B.view[xr+1].node.previousSibling),!sr)return!1;for(var ni=N.doc.splitLines(da(N,sr,Kn,Rt,Ir)),Ei=rt(N.doc,Vt(Rt,0),Vt(Ir,Pe(N.doc,Ir).text.length));ni.length>1&&Ei.length>1;)if(Ve(ni)==Ve(Ei))ni.pop(),Ei.pop(),Ir--;else if(ni[0]==Ei[0])ni.shift(),Ei.shift(),Rt++;else break;for(var Oi=0,la=0,Ca=ni[0],Wa=Ei[0],Ma=Math.min(Ca.length,Wa.length);Oi<Ma&&Ca.charCodeAt(Oi)==Wa.charCodeAt(Oi);)++Oi;for(var Na=Ve(ni),qa=Ve(Ei),ho=Math.min(Na.length-(ni.length==1?Oi:0),qa.length-(Ei.length==1?Oi:0));la<ho&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)++la;if(ni.length==1&&Ei.length==1&&Rt==le.line)for(;Oi&&Oi>le.ch&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)Oi--,la++;ni[ni.length-1]=Na.slice(0,Na.length-la).replace(/^\u200b+/,""),ni[0]=ni[0].slice(Oi).replace(/\u200b+$/,"");var ns=Vt(Rt,Oi),Mo=Vt(Ir,Ei.length?Ve(Ei).length-la:0);if(ni.length>1||ni[0]||yt(ns,Mo))return jl(N.doc,ni,ns,Mo,"+input"),!0},bn.prototype.ensurePolled=function(){this.forceCompositionEnd()},bn.prototype.reset=function(){this.forceCompositionEnd()},bn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},bn.prototype.readFromDOMSoon=function(){var N=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(N.readDOMTimeout=null,N.composing)if(N.composing.done)N.composing=null;else return;N.updateFromDOM()},80)},bn.prototype.updateFromDOM=function(){var N=this;(this.cm.isReadOnly()||!this.pollContent())&&Eo(this.cm,function(){return Ha(N.cm)})},bn.prototype.setUneditable=function(N){N.contentEditable="false"},bn.prototype.onKeyPress=function(N){if(N.charCode==0||this.composing)return;N.preventDefault(),this.cm.isReadOnly()||zo(this.cm,Et)(this.cm,String.fromCharCode(N.charCode==null?N.keyCode:N.charCode),0)},bn.prototype.readOnlyChanged=function(N){this.div.contentEditable=String(N!="nocursor")},bn.prototype.onContextMenu=function(){},bn.prototype.resetPosition=function(){},bn.prototype.needsContentAttribute=!0;function Gn(N,B){var ie=Ji(N,B.line);if(!ie||ie.hidden)return null;var le=Pe(N.doc,B.line),ge=Xi(ie,le,B.line),Ke=Ct(le,N.doc.direction),Rt="left";if(Ke){var sr=ke(Ke,B.ch);Rt=sr%2?"right":"left"}var xr=Pa(ge.map,B.ch,Rt);return xr.offset=xr.collapse=="right"?xr.end:xr.start,xr}function Li(N){for(var B=N;B;B=B.parentNode)if(/CodeMirror-gutter-wrapper/.test(B.className))return!0;return!1}function Mi(N,B){return B&&(N.bad=!0),N}function da(N,B,ie,le,ge){var Ke="",Rt=!1,sr=N.doc.lineSeparator(),xr=!1;function Ir(Oi){return function(la){return la.id==Oi}}function Kn(){Rt&&(Ke+=sr,xr&&(Ke+=sr),Rt=xr=!1)}function ni(Oi){Oi&&(Kn(),Ke+=Oi)}function Ei(Oi){if(Oi.nodeType==1){var la=Oi.getAttribute("cm-text");if(la){ni(la);return}var Ca=Oi.getAttribute("cm-marker"),Wa;if(Ca){var Ma=N.findMarks(Vt(le,0),Vt(ge+1,0),Ir(+Ca));Ma.length&&(Wa=Ma[0].find(0))&&ni(rt(N.doc,Wa.from,Wa.to).join(sr));return}if(Oi.getAttribute("contenteditable")=="false")return;var Na=/^(pre|div|p|li|table|br)$/i.test(Oi.nodeName);if(!/^br$/i.test(Oi.nodeName)&&Oi.textContent.length==0)return;Na&&Kn();for(var qa=0;qa<Oi.childNodes.length;qa++)Ei(Oi.childNodes[qa]);/^(pre|p)$/i.test(Oi.nodeName)&&(xr=!0),Na&&(Rt=!0)}else Oi.nodeType==3&&ni(Oi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Ei(B),B==ie);)B=B.nextSibling,xr=!1;return Ke}function $i(N,B,ie){var le;if(B==N.display.lineDiv){if(le=N.display.lineDiv.childNodes[ie],!le)return Mi(N.clipPos(Vt(N.display.viewTo-1)),!0);B=null,ie=0}else for(le=B;;le=le.parentNode){if(!le||le==N.display.lineDiv)return null;if(le.parentNode&&le.parentNode==N.display.lineDiv)break}for(var ge=0;ge<N.display.view.length;ge++){var Ke=N.display.view[ge];if(Ke.node==le)return Qa(Ke,B,ie)}}function Qa(N,B,ie){var le=N.text.firstChild,ge=!1;if(!B||!U(le,B))return Mi(Vt($t(N.line),0),!0);if(B==le&&(ge=!0,B=le.childNodes[ie],ie=0,!B)){var Ke=N.rest?Ve(N.rest):N.line;return Mi(Vt($t(Ke),Ke.text.length),ge)}var Rt=B.nodeType==3?B:null,sr=B;for(!Rt&&B.childNodes.length==1&&B.firstChild.nodeType==3&&(Rt=B.firstChild,ie&&(ie=Rt.nodeValue.length));sr.parentNode!=le;)sr=sr.parentNode;var xr=N.measure,Ir=xr.maps;function Kn(Wa,Ma,Na){for(var qa=-1;qa<(Ir?Ir.length:0);qa++)for(var ho=qa<0?xr.map:Ir[qa],ns=0;ns<ho.length;ns+=3){var Mo=ho[ns+2];if(Mo==Wa||Mo==Ma){var xs=$t(qa<0?N.line:N.rest[qa]),Zs=ho[ns]+Na;return(Na<0||Mo!=Wa)&&(Zs=ho[ns+(Na?1:0)]),Vt(xs,Zs)}}}var ni=Kn(Rt,sr,ie);if(ni)return Mi(ni,ge);for(var Ei=sr.nextSibling,Oi=Rt?Rt.nodeValue.length-ie:0;Ei;Ei=Ei.nextSibling){if(ni=Kn(Ei,Ei.firstChild,0),ni)return Mi(Vt(ni.line,ni.ch-Oi),ge);Oi+=Ei.textContent.length}for(var la=sr.previousSibling,Ca=ie;la;la=la.previousSibling){if(ni=Kn(la,la.firstChild,-1),ni)return Mi(Vt(ni.line,ni.ch+Ca),ge);Ca+=la.textContent.length}}var ya=function(B){this.cm=B,this.prevInput="",this.pollingFast=!1,this.polling=new Q,this.hasSelection=!1,this.composing=null};ya.prototype.init=function(N){var B=this,ie=this,le=this.cm;this.createField(N);var ge=this.textarea;N.wrapper.insertBefore(this.wrapper,N.wrapper.firstChild),s&&(ge.style.width="0px"),He(ge,"input",function(){d&&l>=9&&B.hasSelection&&(B.hasSelection=null),ie.poll()}),He(ge,"paste",function(Rt){if(pr(le,Rt)||qt(Rt,le))return;le.state.pasteIncoming=+new Date,ie.fastPoll()});function Ke(Rt){if(pr(le,Rt))return;if(le.somethingSelected())$e({lineWise:!1,text:le.getSelections()});else if(le.options.lineWiseCopyCut){var sr=lr(le);$e({lineWise:!0,text:sr.text}),Rt.type=="cut"?le.setSelections(sr.ranges,null,se):(ie.prevInput="",ge.value=sr.text.join(`
`),j(ge))}else return;Rt.type=="cut"&&(le.state.cutIncoming=+new Date)}He(ge,"cut",Ke),He(ge,"copy",Ke),He(N.scroller,"paste",function(Rt){if(ei(N,Rt)||pr(le,Rt))return;if(!ge.dispatchEvent){le.state.pasteIncoming=+new Date,ie.focus();return}var sr=new Event("paste");sr.clipboardData=Rt.clipboardData,ge.dispatchEvent(sr)}),He(N.lineSpace,"selectstart",function(Rt){ei(N,Rt)||Ge(Rt)}),He(ge,"compositionstart",function(){var Rt=le.getCursor("from");ie.composing&&ie.composing.range.clear(),ie.composing={start:Rt,range:le.markText(Rt,le.getCursor("to"),{className:"CodeMirror-composing"})}}),He(ge,"compositionend",function(){ie.composing&&(ie.poll(),ie.composing.range.clear(),ie.composing=null)})},ya.prototype.createField=function(N){this.wrapper=pn(),this.textarea=this.wrapper.firstChild},ya.prototype.screenReaderLabelChanged=function(N){N?this.textarea.setAttribute("aria-label",N):this.textarea.removeAttribute("aria-label")},ya.prototype.prepareSelection=function(){var N=this.cm,B=N.display,ie=N.doc,le=Yr(N);if(N.options.moveInputWithCursor){var ge=mo(N,ie.sel.primary().head,"div"),Ke=B.wrapper.getBoundingClientRect(),Rt=B.lineDiv.getBoundingClientRect();le.teTop=Math.max(0,Math.min(B.wrapper.clientHeight-10,ge.top+Rt.top-Ke.top)),le.teLeft=Math.max(0,Math.min(B.wrapper.clientWidth-10,ge.left+Rt.left-Ke.left))}return le},ya.prototype.showSelection=function(N){var B=this.cm,ie=B.display;O(ie.cursorDiv,N.cursors),O(ie.selectionDiv,N.selection),N.teTop!=null&&(this.wrapper.style.top=N.teTop+"px",this.wrapper.style.left=N.teLeft+"px")},ya.prototype.reset=function(N){if(this.contextMenuPending||this.composing)return;var B=this.cm;if(B.somethingSelected()){this.prevInput="";var ie=B.getSelection();this.textarea.value=ie,B.state.focused&&j(this.textarea),d&&l>=9&&(this.hasSelection=ie)}else N||(this.prevInput=this.textarea.value="",d&&l>=9&&(this.hasSelection=null))},ya.prototype.getField=function(){return this.textarea},ya.prototype.supportsTouch=function(){return!1},ya.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||P()!=this.textarea))try{this.textarea.focus()}catch(N){}},ya.prototype.blur=function(){this.textarea.blur()},ya.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ya.prototype.receivedFocus=function(){this.slowPoll()},ya.prototype.slowPoll=function(){var N=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){N.poll(),N.cm.state.focused&&N.slowPoll()})},ya.prototype.fastPoll=function(){var N=!1,B=this;B.pollingFast=!0;function ie(){var le=B.poll();!le&&!N?(N=!0,B.polling.set(60,ie)):(B.pollingFast=!1,B.slowPoll())}B.polling.set(20,ie)},ya.prototype.poll=function(){var N=this,B=this.cm,ie=this.textarea,le=this.prevInput;if(this.contextMenuPending||!B.state.focused||ut(ie)&&!le&&!this.composing||B.isReadOnly()||B.options.disableInput||B.state.keySeq)return!1;var ge=ie.value;if(ge==le&&!B.somethingSelected())return!1;if(d&&l>=9&&this.hasSelection===ge||v&&/[\uf700-\uf7ff]/.test(ge))return B.display.input.reset(),!1;if(B.doc.sel==B.display.selForContextMenu){var Ke=ge.charCodeAt(0);if(Ke==8203&&!le&&(le="\u200B"),Ke==8666)return this.reset(),this.cm.execCommand("undo")}for(var Rt=0,sr=Math.min(le.length,ge.length);Rt<sr&&le.charCodeAt(Rt)==ge.charCodeAt(Rt);)++Rt;return Eo(B,function(){Et(B,ge.slice(Rt),le.length-Rt,null,N.composing?"*compose":null),ge.length>1e3||ge.indexOf(`
`)>-1?ie.value=N.prevInput="":N.prevInput=ge,N.composing&&(N.composing.range.clear(),N.composing.range=B.markText(N.composing.start,B.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ya.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ya.prototype.onKeyPress=function(){d&&l>=9&&(this.hasSelection=null),this.fastPoll()},ya.prototype.onContextMenu=function(N){var B=this,ie=B.cm,le=ie.display,ge=B.textarea;B.contextMenuPending&&B.contextMenuPending();var Ke=_o(ie,N),Rt=le.scroller.scrollTop;if(!Ke||o)return;var sr=ie.options.resetSelectionOnContextMenu;sr&&ie.doc.sel.contains(Ke)==-1&&zo(ie,Cs)(ie.doc,Ie(Ke),se);var xr=ge.style.cssText,Ir=B.wrapper.style.cssText,Kn=B.wrapper.offsetParent.getBoundingClientRect();B.wrapper.style.cssText="position: static",ge.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(N.clientY-Kn.top-5)+"px; left: "+(N.clientX-Kn.left-5)+`px;
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ni;a&&(ni=window.scrollY),le.input.focus(),a&&window.scrollTo(null,ni),le.input.reset(),ie.somethingSelected()||(ge.value=B.prevInput=" "),B.contextMenuPending=Oi,le.selForContextMenu=ie.doc.sel,clearTimeout(le.detectingSelectAll);function Ei(){if(ge.selectionStart!=null){var Ca=ie.somethingSelected(),Wa="\u200B"+(Ca?ge.value:"");ge.value="\u21DA",ge.value=Wa,B.prevInput=Ca?"":"\u200B",ge.selectionStart=1,ge.selectionEnd=Wa.length,le.selForContextMenu=ie.doc.sel}}function Oi(){if(B.contextMenuPending!=Oi)return;if(B.contextMenuPending=!1,B.wrapper.style.cssText=Ir,ge.style.cssText=xr,d&&l<9&&le.scrollbars.setScrollTop(le.scroller.scrollTop=Rt),ge.selectionStart!=null){(!d||d&&l<9)&&Ei();var Ca=0,Wa=function Ma(){le.selForContextMenu==ie.doc.sel&&ge.selectionStart==0&&ge.selectionEnd>0&&B.prevInput=="\u200B"?zo(ie,Is)(ie):Ca++<10?le.detectingSelectAll=setTimeout(Ma,500):(le.selForContextMenu=null,le.input.reset())};le.detectingSelectAll=setTimeout(Wa,200)}}if(d&&l>=9&&Ei(),T){ct(N);var la=function Ca(){ht(window,"mouseup",Ca),setTimeout(Oi,20)};He(window,"mouseup",la)}else setTimeout(Oi,50)},ya.prototype.readOnlyChanged=function(N){N||this.reset(),this.textarea.disabled=N=="nocursor",this.textarea.readOnly=!!N},ya.prototype.setUneditable=function(){},ya.prototype.needsContentAttribute=!1;function fo(N,B){if(B=B?z(B):{},B.value=N.value,!B.tabindex&&N.tabIndex&&(B.tabindex=N.tabIndex),!B.placeholder&&N.placeholder&&(B.placeholder=N.placeholder),B.autofocus==null){var ie=P();B.autofocus=ie==N||N.getAttribute("autofocus")!=null&&ie==document.body}function le(){N.value=sr.getValue()}var ge;if(N.form&&(He(N.form,"submit",le),!B.leaveSubmitMethodAlone)){var Ke=N.form;ge=Ke.submit;try{var Rt=Ke.submit=function(){le(),Ke.submit=ge,Ke.submit(),Ke.submit=Rt}}catch(xr){}}B.finishInit=function(xr){xr.save=le,xr.getTextArea=function(){return N},xr.toTextArea=function(){xr.toTextArea=isNaN,le(),N.parentNode.removeChild(xr.getWrapperElement()),N.style.display="",N.form&&(ht(N.form,"submit",le),!B.leaveSubmitMethodAlone&&typeof N.form.submit=="function"&&(N.form.submit=ge))}},N.style.display="none";var sr=Ur(function(xr){return N.parentNode.insertBefore(xr,N.nextSibling)},B);return sr}function za(N){N.off=ht,N.on=He,N.wheelEventPixels=Dn,N.Doc=Tl,N.splitLines=jt,N.countColumn=V,N.findColumn=Oe,N.isWordChar=J,N.Pass=q,N.signal=Gt,N.Line=hi,N.changeEnd=Je,N.scrollbarModel=cs,N.Pos=Vt,N.cmpPos=yt,N.modes=tt,N.mimeModes=Cr,N.resolveMode=Bn,N.getMode=oi,N.modeExtensions=wn,N.extendMode=Rn,N.copyState=Zt,N.startState=De,N.innerMode=Tt,N.commands=iu,N.keyMap=Jl,N.keyName=bu,N.isModifierKey=yu,N.lookupKey=Zl,N.normalizeKeyMap=Ru,N.StringStream=Re,N.SharedTextMarker=tu,N.TextMarker=Nl,N.LineWidget=Sl,N.e_preventDefault=Ge,N.e_stopPropagation=pe,N.e_stop=ct,N.addClass=X,N.contains=U,N.rmClass=C,N.keyNames=zl}Ye(Ur),zr(Ur);var Xo="iter insert remove copy getEditor constructor".split(" ");for(var ls in Tl.prototype)Tl.prototype.hasOwnProperty(ls)&&G(Xo,ls)<0&&(Ur.prototype[ls]=function(N){return function(){return N.apply(this.doc,arguments)}}(Tl.prototype[ls]));return Jt(Tl),Ur.inputStyles={textarea:ya,contenteditable:bn},Ur.defineMode=function(N){!Ur.defaults.mode&&N!="null"&&(Ur.defaults.mode=N),nn.apply(this,arguments)},Ur.defineMIME=mn,Ur.defineMode("null",function(){return{token:function(B){return B.skipToEnd()}}}),Ur.defineMIME("text/plain","null"),Ur.defineExtension=function(N,B){Ur.prototype[N]=B},Ur.defineDocExtension=function(N,B){Tl.prototype[N]=B},Ur.fromTextArea=fo,za(Ur),Ur.version="5.58.2",Ur})},Vy0f:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("iYpf"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},W2nI:function(R,D,n){var y=n("IwbS"),g=n("ProS"),S=n("bYtY"),m=["itemStyle","opacity"],p=["emphasis","itemStyle","opacity"],f=["lineStyle","opacity"],d=["emphasis","lineStyle","opacity"];function l(u,r){return u.getVisual("opacity")||u.getModel().get(r)}function a(u,r,s){var c=u.getGraphicEl(),h=l(u,r);s!=null&&(h==null&&(h=1),h*=s),c.downplay&&c.downplay(),c.traverse(function(v){v.type!=="group"&&v.setStyle("opacity",h)})}function i(u,r){var s=l(u,r),c=u.getGraphicEl();c.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",s)}),c.highlight&&c.highlight()}var t=y.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(u,r){var s=r.extent;u.moveTo(r.x1,r.y1),u.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(u.lineTo(r.x2+s,r.y2),u.bezierCurveTo(r.cpx2+s,r.cpy2,r.cpx1+s,r.cpy1,r.x1+s,r.y1)):(u.lineTo(r.x2,r.y2+s),u.bezierCurveTo(r.cpx2,r.cpy2+s,r.cpx1,r.cpy1+s,r.x1,r.y1+s)),u.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),o=g.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(u,r,s){var c=this,h=u.getGraph(),v=this.group,A=u.layoutInfo,b=A.width,x=A.height,E=u.getData(),T=u.getData("edge"),_=u.get("orient");this._model=u,v.removeAll(),v.attr("position",[A.x,A.y]),h.eachEdge(function(C){var w=new t;w.dataIndex=C.dataIndex,w.seriesIndex=u.seriesIndex,w.dataType="edge";var O=C.getModel("lineStyle"),I=O.get("curveness"),k=C.node1.getLayout(),M=C.node1.getModel(),U=M.get("localX"),P=M.get("localY"),X=C.node2.getLayout(),F=C.node2.getModel(),j=F.get("localX"),K=F.get("localY"),z=C.getLayout(),V,Q,G,te,q,se,re,we;w.shape.extent=Math.max(1,z.dy),w.shape.orient=_,_==="vertical"?(V=(U!=null?U*b:k.x)+z.sy,Q=(P!=null?P*x:k.y)+k.dy,G=(j!=null?j*b:X.x)+z.ty,te=K!=null?K*x:X.y,q=V,se=Q*(1-I)+te*I,re=G,we=Q*I+te*(1-I)):(V=(U!=null?U*b:k.x)+k.dx,Q=(P!=null?P*x:k.y)+z.sy,G=j!=null?j*b:X.x,te=(K!=null?K*x:X.y)+z.ty,q=V*(1-I)+G*I,se=Q,re=V*I+G*(1-I),we=te),w.setShape({x1:V,y1:Q,x2:G,y2:te,cpx1:q,cpy1:se,cpx2:re,cpy2:we}),w.setStyle(O.getItemStyle());switch(w.style.fill){case"source":w.style.fill=C.node1.getVisual("color");break;case"target":w.style.fill=C.node2.getVisual("color");break}y.setHoverStyle(w,C.getModel("emphasis.lineStyle").getItemStyle()),v.add(w),T.setItemGraphicEl(C.dataIndex,w)}),h.eachNode(function(C){var w=C.getLayout(),O=C.getModel(),I=O.get("localX"),k=O.get("localY"),M=O.getModel("label"),U=O.getModel("emphasis.label"),P=new y.Rect({shape:{x:I!=null?I*b:w.x,y:k!=null?k*x:w.y,width:w.dx,height:w.dy},style:O.getModel("itemStyle").getItemStyle()}),X=C.getModel("emphasis.itemStyle").getItemStyle();y.setLabelStyle(P.style,X,M,U,{labelFetcher:u,labelDataIndex:C.dataIndex,defaultText:C.id,isRectText:!0}),P.setStyle("fill",C.getVisual("color")),y.setHoverStyle(P,X),v.add(P),E.setItemGraphicEl(C.dataIndex,P),P.dataType="node"}),E.eachItemGraphicEl(function(C,w){var O=E.getItemModel(w);O.get("draggable")&&(C.drift=function(I,k){c._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=k,this.dirty(),s.dispatchAction({type:"dragNode",seriesId:u.id,dataIndex:E.getRawIndex(w),localX:this.shape.x/b,localY:this.shape.y/x})},C.ondragend=function(){c._focusAdjacencyDisabled=!1},C.draggable=!0,C.cursor="move"),C.highlight=function(){this.trigger("emphasis")},C.downplay=function(){this.trigger("normal")},C.focusNodeAdjHandler&&C.off("mouseover",C.focusNodeAdjHandler),C.unfocusNodeAdjHandler&&C.off("mouseout",C.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(C.on("mouseover",C.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,dataIndex:C.dataIndex}))}),C.on("mouseout",C.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(s)}))}),T.eachItemGraphicEl(function(C,w){var O=T.getItemModel(w);C.focusNodeAdjHandler&&C.off("mouseover",C.focusNodeAdjHandler),C.unfocusNodeAdjHandler&&C.off("mouseout",C.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(C.on("mouseover",C.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,edgeDataIndex:C.dataIndex}))}),C.on("mouseout",C.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(s)}))}),!this._data&&u.get("animation")&&v.setClipPath(e(v.getBoundingRect(),u,function(){v.removeClipPath()})),this._data=u.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(u){var r=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){r._unfocusDelayTimer=null,u.dispatchAction({type:"unfocusNodeAdjacency",seriesId:r._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(u,r,s,c){var h=u.getData(),v=h.graph,A=c.dataIndex,b=h.getItemModel(A),x=c.edgeDataIndex;if(A==null&&x==null)return;var E=v.getNodeByIndex(A),T=v.getEdgeByIndex(x);if(v.eachNode(function(C){a(C,m,.1)}),v.eachEdge(function(C){a(C,f,.1)}),E){i(E,p);var _=b.get("focusNodeAdjacency");_==="outEdges"?S.each(E.outEdges,function(C){if(C.dataIndex<0)return;i(C,d),i(C.node2,p)}):_==="inEdges"?S.each(E.inEdges,function(C){if(C.dataIndex<0)return;i(C,d),i(C.node1,p)}):_==="allEdges"&&S.each(E.edges,function(C){if(C.dataIndex<0)return;i(C,d),C.node1!==E&&i(C.node1,p),C.node2!==E&&i(C.node2,p)})}T&&(i(T,d),i(T.node1,p),i(T.node2,p))},unfocusNodeAdjacency:function(u,r,s,c){var h=u.getGraph();h.eachNode(function(v){a(v,m)}),h.eachEdge(function(v){a(v,f)})}});function e(u,r,s){var c=new y.Rect({shape:{x:u.x-10,y:u.y-10,width:0,height:u.height+20}});return y.initProps(c,{shape:{width:u.width+20}},r,s),c}R.exports=o},W4dC:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=S.each,p=S.createHashMap,f=n("7DRL"),d=n("TIY9"),l=n("yS9w"),a=n("mFDi"),i={geoJSON:d,svg:l},t={load:function(r,s,c){var h=[],v=p(),A=p(),b,x=u(r);return m(x,function(E){var T=i[E.type].load(r,E,c);m(T.regions,function(C){var w=C.name;s&&s.hasOwnProperty(w)&&(C=C.cloneShallow(w=s[w])),h.push(C),v.set(w,C),A.set(w,C.center)});var _=T.boundingRect;_&&(b?b.union(_):b=_.clone())}),{regions:h,regionsMap:v,nameCoordMap:A,boundingRect:b||new a(0,0,0,0)}},makeGraphic:o("makeGraphic"),removeGraphic:o("removeGraphic")};function o(r){return function(s,c){var h=u(s),v=[];return m(h,function(A){var b=i[A.type][r];b&&v.push(b(s,A,c))}),v}}function e(r){}function u(r){var s=f.retrieveMap(r)||[];return s}R.exports=t},WGYa:function(R,D,n){var y=n("7yuC"),g=y.forceLayout,S=n("HF/U"),m=S.simpleLayout,p=n("lOQZ"),f=p.circularLayout,d=n("OELB"),l=d.linearMap,a=n("QBsz"),i=n("bYtY");function t(o){o.eachSeriesByType("graph",function(e){var u=e.coordinateSystem;if(u&&u.type!=="view")return;if(e.get("layout")==="force"){var r=e.preservedPoints||{},s=e.getGraph(),c=s.data,h=s.edgeData,v=e.getModel("force"),A=v.get("initLayout");e.preservedPoints?c.each(function(M){var U=c.getId(M);c.setItemLayout(M,r[U]||[NaN,NaN])}):!A||A==="none"?m(e):A==="circular"&&f(e,"value");var b=c.getDataExtent("value"),x=h.getDataExtent("value"),E=v.get("repulsion"),T=v.get("edgeLength");i.isArray(E)||(E=[E,E]),i.isArray(T)||(T=[T,T]),T=[T[1],T[0]];var _=c.mapArray("value",function(M,U){var P=c.getItemLayout(U),X=l(M,b,E);return isNaN(X)&&(X=(E[0]+E[1])/2),{w:X,rep:X,fixed:c.getItemModel(U).get("fixed"),p:!P||isNaN(P[0])||isNaN(P[1])?null:P}}),C=h.mapArray("value",function(M,U){var P=s.getEdgeByIndex(U),X=l(M,x,T);isNaN(X)&&(X=(T[0]+T[1])/2);var F=P.getModel();return{n1:_[P.node1.dataIndex],n2:_[P.node2.dataIndex],d:X,curveness:F.get("lineStyle.curveness")||0,ignoreForceLayout:F.get("ignoreForceLayout")}}),u=e.coordinateSystem,w=u.getBoundingRect(),O=g(_,C,{rect:w,gravity:v.get("gravity"),friction:v.get("friction")}),I=O.step;O.step=function(M){for(var U=0,P=_.length;U<P;U++)_[U].fixed&&a.copy(_[U].p,s.getNodeByIndex(U).getLayout());I(function(X,F,j){for(var K=0,z=X.length;K<z;K++)X[K].fixed||s.getNodeByIndex(K).setLayout(X[K].p),r[c.getId(K)]=X[K].p;for(var K=0,z=F.length;K<z;K++){var V=F[K],Q=s.getEdgeByIndex(K),G=V.n1.p,te=V.n2.p,q=Q.getLayout();q=q?q.slice():[],q[0]=q[0]||[],q[1]=q[1]||[],a.copy(q[0],G),a.copy(q[1],te),+V.curveness&&(q[2]=[(G[0]+te[0])/2-(G[1]-te[1])*V.curveness,(G[1]+te[1])/2-(te[0]-G[0])*V.curveness]),Q.setLayout(q)}M&&M(j)})},e.forceLayout=O,e.preservedPoints=r,O.step()}else e.forceLayout=null})}R.exports=t},"WN+l":function(R,D,n){var y=n("bYtY"),g=n("IwbS");function S(p,f,d,l){var a=d.axis;if(a.scale.isBlank())return;var i=d.getModel("splitArea"),t=i.getModel("areaStyle"),o=t.get("color"),e=l.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(!u.length)return;var r=o.length,s=p.__splitAreaColors,c=y.createHashMap(),h=0;if(s)for(var v=0;v<u.length;v++){var A=s.get(u[v].tickValue);if(A!=null){h=(A+(r-1)*v)%r;break}}var b=a.toGlobalCoord(u[0].coord),x=t.getAreaStyle();o=y.isArray(o)?o:[o];for(var v=1;v<u.length;v++){var E=a.toGlobalCoord(u[v].coord),T,_,C,w;a.isHorizontal()?(T=b,_=e.y,C=E-T,w=e.height,b=T+C):(T=e.x,_=b,C=e.width,w=E-_,b=_+w);var O=u[v-1].tickValue;O!=null&&c.set(O,h),f.add(new g.Rect({anid:O!=null?"area_"+O:null,shape:{x:T,y:_,width:C,height:w},style:y.defaults({fill:o[h]},x),silent:!0})),h=(h+1)%r}p.__splitAreaColors=c}function m(p){p.__splitAreaColors=null}D.rectCoordAxisBuildSplitArea=S,D.rectCoordAxisHandleRemove=m},WXVj:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("Bqw1")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="MinusSquareOutlined";var i=m.forwardRef(a);D.default=i},WYAk:function(R,D,n){(function(y,g){R.exports=D=g(n("Ib8C"))})(this,function(y){(function(){var g=y,S=g.lib,m=S.Base,p=g.enc,f=p.Utf8,d=g.algo,l=d.HMAC=m.extend({init:function(i,t){i=this._hasher=new i.init,typeof t=="string"&&(t=f.parse(t));var o=i.blockSize,e=o*4;t.sigBytes>e&&(t=i.finalize(t)),t.clamp();for(var u=this._oKey=t.clone(),r=this._iKey=t.clone(),s=u.words,c=r.words,h=0;h<o;h++)s[h]^=1549556828,c[h]^=909522486;u.sigBytes=r.sigBytes=e,this.reset()},reset:function(){var i=this._hasher;i.reset(),i.update(this._iKey)},update:function(i){return this._hasher.update(i),this},finalize:function(i){var t=this._hasher,o=t.finalize(i);t.reset();var e=t.finalize(this._oKey.clone().concat(o));return e}})})()})},Wqna:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=S.isObject,p=S.each,f=S.map,d=S.indexOf,l=S.retrieve,a=n("+TT/"),i=a.getLayoutRect,t=n("aX7z"),o=t.createScaleByModel,e=t.ifAxisCrossZero,u=t.niceScaleExtent,r=t.estimateLabelUnionRect,s=n("y+lR"),c=n("7AJT"),h=n("IDmD"),v=n("7hqr"),A=v.getStackedDimension;n("jtI2");function b(M,U,P){return M.getCoordSysModel()===U}function x(M,U,P){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(M,U,P),this.model=M}var E=x.prototype;E.type="grid",E.axisPointerEnabled=!0,E.getRect=function(){return this._rect},E.update=function(M,U){var P=this._axesMap;this._updateScale(M,this.model),p(P.x,function(F){u(F.scale,F.model)}),p(P.y,function(F){u(F.scale,F.model)});var X={};p(P.x,function(F){T(P,"y",F,X)}),p(P.y,function(F){T(P,"x",F,X)}),this.resize(this.model,U)};function T(M,U,P,X){P.getAxesOnZeroOf=function(){return j?[j]:[]};var F=M[U],j,K=P.model,z=K.get("axisLine.onZero"),V=K.get("axisLine.onZeroAxisIndex");if(!z)return;if(V!=null)_(F[V])&&(j=F[V]);else for(var Q in F)if(F.hasOwnProperty(Q)&&_(F[Q])&&!X[G(F[Q])]){j=F[Q];break}j&&(X[G(j)]=!0);function G(te){return te.dim+"_"+te.index}}function _(M){return M&&M.type!=="category"&&M.type!=="time"&&e(M)}E.resize=function(M,U,P){var X=i(M.getBoxLayoutParams(),{width:U.getWidth(),height:U.getHeight()});this._rect=X;var F=this._axesList;j(),!P&&M.get("containLabel")&&(p(F,function(K){if(!K.model.get("axisLabel.inside")){var z=r(K);if(z){var V=K.isHorizontal()?"height":"width",Q=K.model.get("axisLabel.margin");X[V]-=z[V]+Q,K.position==="top"?X.y+=z.height+Q:K.position==="left"&&(X.x+=z.width+Q)}}}),j());function j(){p(F,function(K){var z=K.isHorizontal(),V=z?[0,X.width]:[0,X.height],Q=K.inverse?1:0;K.setExtent(V[Q],V[1-Q]),C(K,z?X.x:X.y)})}},E.getAxis=function(M,U){var P=this._axesMap[M];if(P!=null){if(U==null){for(var X in P)if(P.hasOwnProperty(X))return P[X]}return P[U]}},E.getAxes=function(){return this._axesList.slice()},E.getCartesian=function(M,U){if(M!=null&&U!=null){var P="x"+M+"y"+U;return this._coordsMap[P]}m(M)&&(U=M.yAxisIndex,M=M.xAxisIndex);for(var X=0,F=this._coordsList;X<F.length;X++)if(F[X].getAxis("x").index===M||F[X].getAxis("y").index===U)return F[X]},E.getCartesians=function(){return this._coordsList.slice()},E.convertToPixel=function(M,U,P){var X=this._findConvertTarget(M,U);return X.cartesian?X.cartesian.dataToPoint(P):X.axis?X.axis.toGlobalCoord(X.axis.dataToCoord(P)):null},E.convertFromPixel=function(M,U,P){var X=this._findConvertTarget(M,U);return X.cartesian?X.cartesian.pointToData(P):X.axis?X.axis.coordToData(X.axis.toLocalCoord(P)):null},E._findConvertTarget=function(M,U){var P=U.seriesModel,X=U.xAxisModel||P&&P.getReferringComponents("xAxis")[0],F=U.yAxisModel||P&&P.getReferringComponents("yAxis")[0],j=U.gridModel,K=this._coordsList,z,V;if(P)z=P.coordinateSystem,d(K,z)<0&&(z=null);else if(X&&F)z=this.getCartesian(X.componentIndex,F.componentIndex);else if(X)V=this.getAxis("x",X.componentIndex);else if(F)V=this.getAxis("y",F.componentIndex);else if(j){var Q=j.coordinateSystem;Q===this&&(z=this._coordsList[0])}return{cartesian:z,axis:V}},E.containPoint=function(M){var U=this._coordsList[0];if(U)return U.containPoint(M)},E._initCartesian=function(M,U,P){var X={left:!1,right:!1,top:!1,bottom:!1},F={x:{},y:{}},j={x:0,y:0};if(U.eachComponent("xAxis",K("x"),this),U.eachComponent("yAxis",K("y"),this),!j.x||!j.y){this._axesMap={},this._axesList=[];return}this._axesMap=F,p(F.x,function(z,V){p(F.y,function(Q,G){var te="x"+V+"y"+G,q=new s(te);q.grid=this,q.model=M,this._coordsMap[te]=q,this._coordsList.push(q),q.addAxis(z),q.addAxis(Q)},this)},this);function K(z){return function(V,Q){if(!b(V,M,U))return;var G=V.get("position");z==="x"?G!=="top"&&G!=="bottom"&&(G=X.bottom?"top":"bottom"):G!=="left"&&G!=="right"&&(G=X.left?"right":"left"),X[G]=!0;var te=new c(z,o(V),[0,0],V.get("type"),G),q=te.type==="category";te.onBand=q&&V.get("boundaryGap"),te.inverse=V.get("inverse"),V.axis=te,te.model=V,te.grid=this,te.index=Q,this._axesList.push(te),F[z][Q]=te,j[z]++}}},E._updateScale=function(M,U){p(this._axesList,function(X){X.scale.setExtent(Infinity,-Infinity)}),M.eachSeries(function(X){if(I(X)){var F=O(X,M),j=F[0],K=F[1];if(!b(j,U,M)||!b(K,U,M))return;var z=this.getCartesian(j.componentIndex,K.componentIndex),V=X.getData(),Q=z.getAxis("x"),G=z.getAxis("y");V.type==="list"&&(P(V,Q,X),P(V,G,X))}},this);function P(X,F,j){p(X.mapDimension(F.dim,!0),function(K){F.scale.unionExtentFromData(X,A(X,K))})}},E.getTooltipAxes=function(M){var U=[],P=[];return p(this.getCartesians(),function(X){var F=M!=null&&M!=="auto"?X.getAxis(M):X.getBaseAxis(),j=X.getOtherAxis(F);d(U,F)<0&&U.push(F),d(P,j)<0&&P.push(j)}),{baseAxes:U,otherAxes:P}};function C(M,U){var P=M.getExtent(),X=P[0]+P[1];M.toGlobalCoord=M.dim==="x"?function(F){return F+U}:function(F){return X-F+U},M.toLocalCoord=M.dim==="x"?function(F){return F-U}:function(F){return X-F+U}}var w=["xAxis","yAxis"];function O(M,U){return f(w,function(P){var X=M.getReferringComponents(P)[0];return X})}function I(M){return M.get("coordinateSystem")==="cartesian2d"}x.create=function(M,U){var P=[];return M.eachComponent("grid",function(X,F){var j=new x(X,M,U);j.name="grid_"+F,j.resize(X,U,!0),X.coordinateSystem=j,P.push(j)}),M.eachSeries(function(X){if(!I(X))return;var F=O(X,M),j=F[0],K=F[1],z=j.getCoordSysModel(),V=z.coordinateSystem;X.coordinateSystem=V.getCartesian(j.componentIndex,K.componentIndex)}),P},x.dimensions=x.prototype.dimensions=s.prototype.dimensions,h.register("cartesian2d",x);var k=x;R.exports=k},"X+im":function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("KQeH")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="DownloadOutlined";var i=m.forwardRef(a);D.default=i},"X2/X":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},XAae:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("hwYd"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},XOKv:function(R,D,n){n("OXB0"),n("SA4+")},Xi7e:function(R,D,n){var y=n("KMkd"),g=n("adU4"),S=n("tMB7"),m=n("+6XX"),p=n("Z8oC");function f(d){var l=-1,a=d==null?0:d.length;for(this.clear();++l<a;){var i=d[l];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=g,f.prototype.get=S,f.prototype.has=m,f.prototype.set=p,R.exports=f},Xmg4:function(R,D,n){var y=n("bYtY"),g=n("LPTA"),S=g.devicePixelRatio,m=n("K2GJ"),p=n("3C/r");function f(){return!1}function d(i,t,o){var e=y.createCanvas(),u=t.getWidth(),r=t.getHeight(),s=e.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=u+"px",s.height=r+"px",e.setAttribute("data-zr-dom-id",i)),e.width=u*o,e.height=r*o,e}var l=function(t,o,e){var u;e=e||S,typeof t=="string"?u=d(t,o,e):y.isObject(t)&&(u=t,t=u.id),this.id=t,this.dom=u;var r=u.style;r&&(u.onselectstart=f,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",r.padding=0,r.margin=0,r["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=o,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=e};l.prototype={constructor:l,__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 t=this.dpr;this.domBack=d("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},resize:function(t,o){var e=this.dpr,u=this.dom,r=u.style,s=this.domBack;r&&(r.width=t+"px",r.height=o+"px"),u.width=t*e,u.height=o*e,s&&(s.width=t*e,s.height=o*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(t,o){var e=this.dom,u=this.ctx,r=e.width,s=e.height,o=o||this.clearColor,c=this.motionBlur&&!t,h=this.lastFrameAlpha,v=this.dpr;if(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,r/v,s/v)),u.clearRect(0,0,r,s),o&&o!=="transparent"){var A;o.colorStops?(A=o.__canvasGradient||m.getGradient(u,o,{x:0,y:0,width:r,height:s}),o.__canvasGradient=A):o.image&&(A=p.prototype.getCanvasPattern.call(o,u)),u.save(),u.fillStyle=A||o,u.fillRect(0,0,r,s),u.restore()}if(c){var b=this.domBack;u.save(),u.globalAlpha=h,u.drawImage(b,0,0,r,s),u.restore()}}};var a=l;R.exports=a},Xnb7:function(R,D,n){var y=n("1RvN"),g=new y(50);function S(d){if(typeof d=="string"){var l=g.get(d);return l&&l.image}else return d}function m(d,l,a,i,t){if(d)if(typeof d=="string"){if(l&&l.__zrImageSrc===d||!a)return l;var o=g.get(d),e={hostEl:a,cb:i,cbPayload:t};return o?(l=o.image,!f(l)&&o.pending.push(e)):(l=new Image,l.onload=l.onerror=p,g.put(d,l.__cachedImgObj={image:l,pending:[e]}),l.src=l.__zrImageSrc=d),l}else return d;else return l}function p(){var d=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var l=0;l<d.pending.length;l++){var a=d.pending[l],i=a.cb;i&&i(this,a.cbPayload),a.hostEl.dirty()}d.pending.length=0}function f(d){return d&&d.width&&d.height}D.findExistImage=S,D.createOrUpdateImage=m,D.isImageReady=f},XpcN:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("ProS"),m=n("bYtY"),p=n("oVpE"),f=p.createSymbol,d=n("IwbS"),l=n("eRkO"),a=l.makeBackground,i=n("+TT/"),t=m.curry,o=m.each,e=d.Group,u=S.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(v,A,b){var x=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!v.get("show",!0))return;var E=v.get("align"),T=v.get("orient");(!E||E==="auto")&&(E=v.get("left")==="right"&&T==="vertical"?"right":"left");var _=v.get("selector",!0),C=v.get("selectorPosition",!0);_&&(!C||C==="auto")&&(C=T==="horizontal"?"end":"start"),this.renderInner(E,v,A,b,_,T,C);var w=v.getBoxLayoutParams(),O={width:b.getWidth(),height:b.getHeight()},I=v.get("padding"),k=i.getLayoutRect(w,O,I),M=this.layoutInner(v,E,k,x,_,C),U=i.getLayoutRect(m.defaults({width:M.width,height:M.height},w),O,I);this.group.attr("position",[U.x-M.x,U.y-M.y]),this.group.add(this._backgroundEl=a(M,v))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(v,A,b,x,E,T,_){var C=this.getContentGroup(),w=m.createHashMap(),O=A.get("selectedMode"),I=[];b.eachRawSeries(function(k){!k.get("legendHoverLink")&&I.push(k.id)}),o(A.getData(),function(k,M){var U=k.get("name");if(!this.newlineDisabled&&(U===""||U===`
`)){C.add(new e({newline:!0}));return}var P=b.getSeriesByName(U)[0];if(w.get(U))return;if(P){var X=P.getData(),F=X.getVisual("color"),j=X.getVisual("borderColor");typeof F=="function"&&(F=F(P.getDataParams(0))),typeof j=="function"&&(j=j(P.getDataParams(0)));var K=X.getVisual("legendSymbol")||"roundRect",z=X.getVisual("symbol"),V=this._createItem(U,M,k,A,K,z,v,F,j,O);V.on("click",t(s,U,null,x,I)).on("mouseover",t(c,P.name,null,x,I)).on("mouseout",t(h,P.name,null,x,I)),w.set(U,!0)}else b.eachRawSeries(function(Q){if(w.get(U))return;if(Q.legendVisualProvider){var G=Q.legendVisualProvider;if(!G.containName(U))return;var te=G.indexOfName(U),q=G.getItemVisual(te,"color"),se=G.getItemVisual(te,"borderColor"),re="roundRect",we=this._createItem(U,M,k,A,re,null,v,q,se,O);we.on("click",t(s,null,U,x,I)).on("mouseover",t(c,null,U,x,I)).on("mouseout",t(h,null,U,x,I)),w.set(U,!0)}},this)},this),E&&this._createSelector(E,A,x,T,_)},_createSelector:function(v,A,b,x,E){var T=this.getSelectorGroup();o(v,function(C){_(C)});function _(C){var w=C.type,O=new d.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){b.dispatchAction({type:w==="all"?"legendAllSelect":"legendInverseSelect"})}});T.add(O);var I=A.getModel("selectorLabel"),k=A.getModel("emphasis.selectorLabel");d.setLabelStyle(O.style,O.hoverStyle={},I,k,{defaultText:C.title,isRectText:!1}),d.setHoverStyle(O)}},_createItem:function(v,A,b,x,E,T,_,C,w,O){var I=x.get("itemWidth"),k=x.get("itemHeight"),M=x.get("inactiveColor"),U=x.get("inactiveBorderColor"),P=x.get("symbolKeepAspect"),X=x.getModel("itemStyle"),F=x.isSelected(v),j=new e,K=b.getModel("textStyle"),z=b.get("icon"),V=b.getModel("tooltip"),Q=V.parentModel;E=z||E;var G=f(E,0,0,I,k,F?C:M,P==null?!0:P);if(j.add(r(G,E,X,w,U,F)),!z&&T&&(T!==E||T==="none")){var te=k*.8;T==="none"&&(T="circle");var q=f(T,(I-te)/2,(k-te)/2,te,te,F?C:M,P==null?!0:P);j.add(r(q,T,X,w,U,F))}var se=_==="left"?I+5:-5,re=_,we=x.get("formatter"),Oe=v;typeof we=="string"&&we?Oe=we.replace("{name}",v!=null?v:""):typeof we=="function"&&(Oe=we(v)),j.add(new d.Text({style:d.setTextStyle({},K,{text:Oe,x:se,y:k/2,textFill:F?K.getTextColor():M,textAlign:re,textVerticalAlign:"middle"})}));var Me=new d.Rect({shape:j.getBoundingRect(),invisible:!0,tooltip:V.get("show")?m.extend({content:v,formatter:Q.get("formatter",!0)||function(){return v},formatterParams:{componentType:"legend",legendIndex:x.componentIndex,name:v,$vars:["name"]}},V.option):null});return j.add(Me),j.eachChild(function(Qe){Qe.silent=!0}),Me.silent=!O,this.getContentGroup().add(j),d.setHoverStyle(j),j.__legendDataIndex=A,j},layoutInner:function(v,A,b,x,E,T){var _=this.getContentGroup(),C=this.getSelectorGroup();i.box(v.get("orient"),_,v.get("itemGap"),b.width,b.height);var w=_.getBoundingRect(),O=[-w.x,-w.y];if(E){i.box("horizontal",C,v.get("selectorItemGap",!0));var I=C.getBoundingRect(),k=[-I.x,-I.y],M=v.get("selectorButtonGap",!0),U=v.getOrient().index,P=U===0?"width":"height",X=U===0?"height":"width",F=U===0?"y":"x";T==="end"?k[U]+=w[P]+M:O[U]+=I[P]+M,k[1-U]+=w[X]/2-I[X]/2,C.attr("position",k),_.attr("position",O);var j={x:0,y:0};return j[P]=w[P]+M+I[P],j[X]=Math.max(w[X],I[X]),j[F]=Math.min(0,I[F]+k[1-U]),j}else return _.attr("position",O),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function r(v,A,b,x,E,T){var _;return A!=="line"&&A.indexOf("empty")<0?(_=b.getItemStyle(),v.style.stroke=x,T||(_.stroke=E)):_=b.getItemStyle(["borderWidth","borderColor"]),v.setStyle(_)}function s(v,A,b,x){h(v,A,b,x),b.dispatchAction({type:"legendToggleSelect",name:v!=null?v:A}),c(v,A,b,x)}function c(v,A,b,x){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"highlight",seriesName:v,name:A,excludeSeriesId:x})}function h(v,A,b,x){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"downplay",seriesName:v,name:A,excludeSeriesId:x})}R.exports=u},XuBP:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},XxSj:function(R,D,n){var y=n("bYtY"),g=n("Qe9p"),S=n("OELB"),m=S.linearMap,p=y.each,f=y.isObject,d=-1,l=function(T){var _=T.mappingMethod,C=T.type,w=this.option=y.clone(T);this.type=C,this.mappingMethod=_,this._normalizeData=b[_];var O=a[C];this.applyVisual=O.applyVisual,this.getColorMapper=O.getColorMapper,this._doMap=O._doMap[_],_==="piecewise"?(o(w),i(w)):_==="category"?w.categories?t(w):o(w,!0):(y.assert(_!=="linear"||w.dataExtent),o(w))};l.prototype={constructor:l,mapValueToVisual:function(T){var _=this._normalizeData(T);return this._doMap(_,T)},getNormalizer:function(){return y.bind(this._normalizeData,this)}};var a=l.visualHandlers={color:{applyVisual:r("color"),getColorMapper:function(){var T=this.option;return y.bind(T.mappingMethod==="category"?function(_,C){return!C&&(_=this._normalizeData(_)),s.call(this,_)}:function(_,C,w){var O=!!w;return!C&&(_=this._normalizeData(_)),w=g.fastLerp(_,T.parsedVisual,w),O?w:g.stringify(w,"rgba")},this)},_doMap:{linear:function(T){return g.stringify(g.fastLerp(T,this.option.parsedVisual),"rgba")},category:s,piecewise:function(T,_){var C=v.call(this,_);return C==null&&(C=g.stringify(g.fastLerp(T,this.option.parsedVisual),"rgba")),C},fixed:c}},colorHue:e(function(T,_){return g.modifyHSL(T,_)}),colorSaturation:e(function(T,_){return g.modifyHSL(T,null,_)}),colorLightness:e(function(T,_){return g.modifyHSL(T,null,null,_)}),colorAlpha:e(function(T,_){return g.modifyAlpha(T,_)}),opacity:{applyVisual:r("opacity"),_doMap:h([0,1])},liftZ:{applyVisual:r("liftZ"),_doMap:{linear:c,category:c,piecewise:c,fixed:c}},symbol:{applyVisual:function(T,_,C){var w=this.mapValueToVisual(T);if(y.isString(w))C("symbol",w);else if(f(w))for(var O in w)w.hasOwnProperty(O)&&C(O,w[O])},_doMap:{linear:u,category:s,piecewise:function(T,_){var C=v.call(this,_);return C==null&&(C=u.call(this,T)),C},fixed:c}},symbolSize:{applyVisual:r("symbolSize"),_doMap:h([0,1])}};function i(T){var _=T.pieceList;T.hasSpecialVisual=!1,y.each(_,function(C,w){C.originIndex=w,C.visual!=null&&(T.hasSpecialVisual=!0)})}function t(T){var _=T.categories,C=T.visual,w=T.categoryMap={};if(p(_,function(k,M){w[k]=M}),!y.isArray(C)){var O=[];y.isObject(C)?p(C,function(k,M){var U=w[M];O[U!=null?U:d]=k}):O[d]=C,C=A(T,O)}for(var I=_.length-1;I>=0;I--)C[I]==null&&(delete w[_[I]],_.pop())}function o(T,_){var C=T.visual,w=[];y.isObject(C)?p(C,function(I){w.push(I)}):C!=null&&w.push(C);var O={color:1,symbol:1};!_&&w.length===1&&!O.hasOwnProperty(T.type)&&(w[1]=w[0]),A(T,w)}function e(T){return{applyVisual:function(_,C,w){_=this.mapValueToVisual(_),w("color",T(C("color"),_))},_doMap:h([0,1])}}function u(T){var _=this.option.visual;return _[Math.round(m(T,[0,1],[0,_.length-1],!0))]||{}}function r(T){return function(_,C,w){w(T,this.mapValueToVisual(_))}}function s(T){var _=this.option.visual;return _[this.option.loop&&T!==d?T%_.length:T]}function c(){return this.option.visual[0]}function h(T){return{linear:function(_){return m(_,T,this.option.visual,!0)},category:s,piecewise:function(_,C){var w=v.call(this,C);return w==null&&(w=m(_,T,this.option.visual,!0)),w},fixed:c}}function v(T){var _=this.option,C=_.pieceList;if(_.hasSpecialVisual){var w=l.findPieceIndex(T,C),O=C[w];if(O&&O.visual)return O.visual[this.type]}}function A(T,_){return T.visual=_,T.type==="color"&&(T.parsedVisual=y.map(_,function(C){return g.parse(C)})),_}var b={linear:function(T){return m(T,this.option.dataExtent,[0,1],!0)},piecewise:function(T){var _=this.option.pieceList,C=l.findPieceIndex(T,_,!0);if(C!=null)return m(C,[0,_.length-1],[0,1],!0)},category:function(T){var _=this.option.categories?this.option.categoryMap[T]:T;return _==null?d:_},fixed:y.noop};l.listVisualTypes=function(){var T=[];return y.each(a,function(_,C){T.push(C)}),T},l.addVisualHandler=function(T,_){a[T]=_},l.isValidType=function(T){return a.hasOwnProperty(T)},l.eachVisual=function(T,_,C){y.isObject(T)?y.each(T,_,C):_.call(C,T)},l.mapVisual=function(T,_,C){var w,O=y.isArray(T)?[]:y.isObject(T)?{}:(w=!0,null);return l.eachVisual(T,function(I,k){var M=_.call(C,I,k);w?O=M:O[k]=M}),O},l.retrieveVisuals=function(T){var _={},C;return T&&p(a,function(w,O){T.hasOwnProperty(O)&&(_[O]=T[O],C=!0)}),C?_:null},l.prepareVisualTypes=function(T){if(f(T)){var _=[];p(T,function(C,w){_.push(w)}),T=_}else if(y.isArray(T))T=T.slice();else return[];return T.sort(function(C,w){return w==="color"&&C!=="color"&&C.indexOf("color")===0?1:-1}),T},l.dependsOn=function(T,_){return _==="color"?!!(T&&T.indexOf(_)===0):T===_},l.findPieceIndex=function(T,_,C){for(var w,O=Infinity,I=0,k=_.length;I<k;I++){var M=_[I].value;if(M!=null){if(M===T||typeof M=="string"&&M===T+"")return I;C&&F(M,I)}}for(var I=0,k=_.length;I<k;I++){var U=_[I],P=U.interval,X=U.close;if(P){if(P[0]===-Infinity){if(x(X[1],T,P[1]))return I}else if(P[1]===Infinity){if(x(X[0],P[0],T))return I}else if(x(X[0],P[0],T)&&x(X[1],T,P[1]))return I;C&&F(P[0],I),C&&F(P[1],I)}}if(C)return T===Infinity?_.length-1:T===-Infinity?0:w;function F(j,K){var z=Math.abs(j-T);z<O&&(O=z,w=K)}};function x(T,_,C){return T?_<=C:_<C}var E=l;R.exports=E},XzQk:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("KpQ+"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},"Y+p1":function(R,D,n){var y=n("wF/u");function g(S,m){return y(S,m)}R.exports=g},Y1PL:function(R,D,n){"use strict";n.r(D),n.d(D,"ResizableTextArea",function(){return E});var y=n("wx14"),g=n("1OyB"),S=n("vuIU"),m=n("Ji7U"),p=n("LK+K"),f=n("q1tI"),d=n("VTBJ"),l=n("rePB"),a=n("t23M"),i=n("bT9E"),t=n("TSYQ"),o=n.n(t),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
`,u=["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"],r={},s;function c(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=C.getAttribute("id")||C.getAttribute("data-reactid")||C.getAttribute("name");if(w&&r[O])return r[O];var I=window.getComputedStyle(C),k=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),M=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),U=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),P=u.map(function(F){return"".concat(F,":").concat(I.getPropertyValue(F))}).join(";"),X={sizingStyle:P,paddingSize:M,borderSize:U,boxSizing:k};return w&&O&&(r[O]=X),X}function h(C){var w=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;s||(s=document.createElement("textarea"),s.setAttribute("tab-index","-1"),s.setAttribute("aria-hidden","true"),document.body.appendChild(s)),C.getAttribute("wrap")?s.setAttribute("wrap",C.getAttribute("wrap")):s.removeAttribute("wrap");var k=c(C,w),M=k.paddingSize,U=k.borderSize,P=k.boxSizing,X=k.sizingStyle;s.setAttribute("style","".concat(X,";").concat(e)),s.value=C.value||C.placeholder||"";var F=Number.MIN_SAFE_INTEGER,j=Number.MAX_SAFE_INTEGER,K=s.scrollHeight,z;if(P==="border-box"?K+=U:P==="content-box"&&(K-=M),O!==null||I!==null){s.value=" ";var V=s.scrollHeight-M;O!==null&&(F=V*O,P==="border-box"&&(F=F+M+U),K=Math.max(F,K)),I!==null&&(j=V*I,P==="border-box"&&(j=j+M+U),z=K>j?"":"hidden",K=Math.min(j,K))}return{height:K,minHeight:F,maxHeight:j,overflowY:z,resize:"none"}}var v=n("Gytx"),A=n.n(v),b;(function(C){C[C.NONE=0]="NONE",C[C.RESIZING=1]="RESIZING",C[C.RESIZED=2]="RESIZED"})(b||(b={}));var x=function(C){Object(m.a)(O,C);var w=Object(p.a)(O);function O(I){var k;return Object(g.a)(this,O),k=w.call(this,I),k.nextFrameActionId=void 0,k.resizeFrameId=void 0,k.textArea=void 0,k.saveTextArea=function(M){k.textArea=M},k.handleResize=function(M){var U=k.state.resizeStatus,P=k.props,X=P.autoSize,F=P.onResize;if(U!==b.NONE)return;typeof F=="function"&&F(M),X&&k.resizeOnNextFrame()},k.resizeOnNextFrame=function(){cancelAnimationFrame(k.nextFrameActionId),k.nextFrameActionId=requestAnimationFrame(k.resizeTextarea)},k.resizeTextarea=function(){var M=k.props.autoSize;if(!M||!k.textArea)return;var U=M.minRows,P=M.maxRows,X=h(k.textArea,!1,U,P);k.setState({textareaStyles:X,resizeStatus:b.RESIZING},function(){cancelAnimationFrame(k.resizeFrameId),k.resizeFrameId=requestAnimationFrame(function(){k.setState({resizeStatus:b.RESIZED},function(){k.resizeFrameId=requestAnimationFrame(function(){k.setState({resizeStatus:b.NONE}),k.fixFirefoxAutoScroll()})})})})},k.renderTextArea=function(){var M=k.props,U=M.prefixCls,P=U===void 0?"rc-textarea":U,X=M.autoSize,F=M.onResize,j=M.className,K=M.disabled,z=k.state,V=z.textareaStyles,Q=z.resizeStatus,G=Object(i.a)(k.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),te=o()(P,j,Object(l.a)({},"".concat(P,"-disabled"),K));"value"in G&&(G.value=G.value||"");var q=Object(d.a)(Object(d.a)(Object(d.a)({},k.props.style),V),Q===b.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return f.createElement(a.a,{onResize:k.handleResize,disabled:!(X||F)},f.createElement("textarea",Object(y.a)({},G,{className:te,style:q,ref:k.saveTextArea})))},k.state={textareaStyles:{},resizeStatus:b.NONE},k}return Object(S.a)(O,[{key:"componentDidUpdate",value:function(k){(k.value!==this.props.value||!A()(k.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 k=this.textArea.selectionStart,M=this.textArea.selectionEnd;this.textArea.setSelectionRange(k,M)}}catch(U){}}},{key:"render",value:function(){return this.renderTextArea()}}]),O}(f.Component),E=x,T=function(C){Object(m.a)(O,C);var w=Object(p.a)(O);function O(I){var k;Object(g.a)(this,O),k=w.call(this,I),k.resizableTextArea=void 0,k.focus=function(){k.resizableTextArea.textArea.focus()},k.saveTextArea=function(U){k.resizableTextArea=U},k.handleChange=function(U){var P=k.props.onChange;k.setValue(U.target.value,function(){k.resizableTextArea.resizeTextarea()}),P&&P(U)},k.handleKeyDown=function(U){var P=k.props,X=P.onPressEnter,F=P.onKeyDown;U.keyCode===13&&X&&X(U),F&&F(U)};var M=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return k.state={value:M},k}return Object(S.a)(O,[{key:"setValue",value:function(k,M){"value"in this.props||this.setState({value:k},M)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return f.createElement(E,Object(y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(k){return"value"in k?{value:k.value}:null}}]),O}(f.Component),_=D.default=T},YCuv:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};D.default=y},YESw:function(R,D,n){var y=n("Cwc5"),g=y(Object,"create");R.exports=g},YH21:function(R,D,n){var y=n("H6uX");D.Dispatcher=y;var g=n("ItGF"),S=n("Ze12"),m=S.isCanvasEl,p=S.transformCoordWithViewport,f=typeof window!="undefined"&&!!window.addEventListener,d=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,l=[];function a(h,v,A,b){return A=A||{},b||!g.canvasSupported?i(h,v,A):g.browser.firefox&&v.layerX!=null&&v.layerX!==v.offsetX?(A.zrX=v.layerX,A.zrY=v.layerY):v.offsetX!=null?(A.zrX=v.offsetX,A.zrY=v.offsetY):i(h,v,A),A}function i(h,v,A){if(g.domSupported&&h.getBoundingClientRect){var b=v.clientX,x=v.clientY;if(m(h)){var E=h.getBoundingClientRect();A.zrX=b-E.left,A.zrY=x-E.top;return}else if(p(l,h,b,x)){A.zrX=l[0],A.zrY=l[1];return}}A.zrX=A.zrY=0}function t(h){return h||window.event}function o(h,v,A){if(v=t(v),v.zrX!=null)return v;var b=v.type,x=b&&b.indexOf("touch")>=0;if(!x)a(h,v,v,A),v.zrDelta=v.wheelDelta?v.wheelDelta/120:-(v.detail||0)/3;else{var E=b!=="touchend"?v.targetTouches[0]:v.changedTouches[0];E&&a(h,E,v,A)}var T=v.button;return v.which==null&&T!==void 0&&d.test(v.type)&&(v.which=T&1?1:T&2?3:T&4?2:0),v}function e(h,v,A,b){f?h.addEventListener(v,A,b):h.attachEvent("on"+v,A)}function u(h,v,A,b){f?h.removeEventListener(v,A,b):h.detachEvent("on"+v,A)}var r=f?function(h){h.preventDefault(),h.stopPropagation(),h.cancelBubble=!0}:function(h){h.returnValue=!1,h.cancelBubble=!0};function s(h){return h.which===2||h.which===3}function c(h){return h.which>1}D.clientToLocal=a,D.getNativeEvent=t,D.normalizeEvent=o,D.addEventListener=e,D.removeEventListener=u,D.stop=r,D.isMiddleOrRightButtonOnMouseUpDown=s,D.notLeftMouse=c},YJ9k:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function g(p,f){for(var d=0;d<f.length;d++){var l=f[d];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(p,l.key,l)}}function S(p,f,d){return f&&g(p.prototype,f),d&&g(p,d),p}var m=function(){function p(){y(this,p),this._listeners=new Map}return S(p,[{key:"addEventListener",value:function(d,l){this._listeners.has(d)||this._listeners.set(d,new Set),this._listeners.get(d).add(l)}},{key:"removeEventListener",value:function(d,l){this._listeners.has(d)&&this._listeners.get(d).delete(l)}},{key:"dispatchEvent",value:function(d){var l=this;return this._listeners.has(d.type)?(this._listeners.get(d.type).forEach(function(a){return a.call(l,d)}),!d.defaultPrevented):!0}}]),p}();D.default=m},YJCA:function(R,D,n){"use strict";n.d(D,"a",function(){return $}),n.d(D,"b",function(){return Te});var y=n("wx14"),g=n("ODXe"),S=n("vpQ4"),m=n("1OyB"),p=n("vuIU"),f=n("md7G"),d=n("foSv"),l=n("Ji7U"),a=n("JX7q"),i=n("rePB"),t=n("q1tI"),o=n.n(t),e=n("17x9"),u=n.n(e),r=n("i8i4"),s=n.n(r),c=n("QLaP"),h=n.n(c),v=n("KQm4"),A=function(){function Be(){Object(m.a)(this,Be),Object(i.a)(this,"refs",{})}return Object(p.a)(Be,[{key:"add",value:function(xe,ke){this.refs[xe]||(this.refs[xe]=[]),this.refs[xe].push(ke)}},{key:"remove",value:function(xe,ke){var nt=this.getIndex(xe,ke);nt!==-1&&this.refs[xe].splice(nt,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var xe=this;return this.refs[this.active.collection].find(function(ke){var nt=ke.node;return nt.sortableInfo.index==xe.active.index})}},{key:"getIndex",value:function(xe,ke){return this.refs[xe].indexOf(ke)}},{key:"getOrderedRefs",value:function(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[xe].sort(b)}}]),Be}();function b(Be,fe){var xe=Be.node.sortableInfo.index,ke=fe.node.sortableInfo.index;return xe-ke}function x(Be,fe,xe){return Be=Be.slice(),Be.splice(xe<0?Be.length+xe:xe,0,Be.splice(fe,1)[0]),Be}function E(Be,fe){return Object.keys(Be).reduce(function(xe,ke){return fe.indexOf(ke)===-1&&(xe[ke]=Be[ke]),xe},{})}var T={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},_=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Be=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],fe=(Array.prototype.slice.call(Be).join("").match(/-(moz|webkit|ms)-/)||Be.OLink===""&&["","o"])[1];switch(fe){case"ms":return"ms";default:return fe&&fe.length?fe[0].toUpperCase()+fe.substr(1):""}}();function C(Be,fe){Object.keys(fe).forEach(function(xe){Be.style[xe]=fe[xe]})}function w(Be,fe){Be.style["".concat(_,"Transform")]=fe==null?"":"translate3d(".concat(fe.x,"px,").concat(fe.y,"px,0)")}function O(Be,fe){Be.style["".concat(_,"TransitionDuration")]=fe==null?"":"".concat(fe,"ms")}function I(Be,fe){for(;Be;){if(fe(Be))return Be;Be=Be.parentNode}return null}function k(Be,fe,xe){return Math.max(Be,Math.min(xe,fe))}function M(Be){return Be.substr(-2)==="px"?parseFloat(Be):0}function U(Be){var fe=window.getComputedStyle(Be);return{bottom:M(fe.marginBottom),left:M(fe.marginLeft),right:M(fe.marginRight),top:M(fe.marginTop)}}function P(Be,fe){var xe=fe.displayName||fe.name;return xe?"".concat(Be,"(").concat(xe,")"):Be}function X(Be,fe){var xe=Be.getBoundingClientRect();return{top:xe.top+fe.top,left:xe.left+fe.left}}function F(Be){return Be.touches&&Be.touches.length?{x:Be.touches[0].pageX,y:Be.touches[0].pageY}:Be.changedTouches&&Be.changedTouches.length?{x:Be.changedTouches[0].pageX,y:Be.changedTouches[0].pageY}:{x:Be.pageX,y:Be.pageY}}function j(Be){return Be.touches&&Be.touches.length||Be.changedTouches&&Be.changedTouches.length}function K(Be,fe){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Be)return;var ke={left:xe.left+Be.offsetLeft,top:xe.top+Be.offsetTop};return Be.parentNode===fe?ke:K(Be.parentNode,fe,ke)}function z(Be,fe,xe){return Be<xe&&Be>fe?Be-1:Be>xe&&Be<fe?Be+1:Be}function V(Be){var fe=Be.lockOffset,xe=Be.width,ke=Be.height,nt=fe,Ct=fe,pt="px";if(typeof fe=="string"){var He=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(fe);h()(He!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',fe),nt=parseFloat(fe),Ct=parseFloat(fe),pt=He[1]}return h()(isFinite(nt)&&isFinite(Ct),"lockOffset value should be a finite. Given %s",fe),pt==="%"&&(nt=nt*xe/100,Ct=Ct*ke/100),{x:nt,y:Ct}}function Q(Be){var fe=Be.height,xe=Be.width,ke=Be.lockOffset,nt=Array.isArray(ke)?ke:[ke,ke];h()(nt.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",ke);var Ct=Object(g.a)(nt,2),pt=Ct[0],He=Ct[1];return[V({height:fe,lockOffset:pt,width:xe}),V({height:fe,lockOffset:He,width:xe})]}function G(Be){var fe=window.getComputedStyle(Be),xe=/(auto|scroll)/,ke=["overflow","overflowX","overflowY"];return ke.find(function(nt){return xe.test(fe[nt])})}function te(Be){return Be instanceof HTMLElement?G(Be)?Be:te(Be.parentNode):null}function q(Be){var fe=window.getComputedStyle(Be);return fe.display==="grid"?{x:M(fe.gridColumnGap),y:M(fe.gridRowGap)}:{x:0,y:0}}var se={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},re={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function we(Be){var fe="input, textarea, select, canvas, [contenteditable]",xe=Be.querySelectorAll(fe),ke=Be.cloneNode(!0),nt=Object(v.a)(ke.querySelectorAll(fe));return nt.forEach(function(Ct,pt){if(Ct.type!=="file"&&(Ct.value=xe[pt].value),Ct.type==="radio"&&Ct.name&&(Ct.name="__sortableClone__".concat(Ct.name)),Ct.tagName===re.Canvas&&xe[pt].width>0&&xe[pt].height>0){var He=Ct.getContext("2d");He.drawImage(xe[pt],0,0)}}),ke}function Oe(Be){var fe,xe,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return xe=fe=function(nt){Object(l.a)(Ct,nt);function Ct(){return Object(m.a)(this,Ct),Object(f.a)(this,Object(d.a)(Ct).apply(this,arguments))}return Object(p.a)(Ct,[{key:"componentDidMount",value:function(){var He=Object(r.findDOMNode)(this);He.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return h()(ke.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 He=ke.withRef?"wrappedInstance":null;return Object(t.createElement)(Be,Object(y.a)({ref:He},this.props))}}]),Ct}(t.Component),Object(i.a)(fe,"displayName",P("sortableHandle",Be)),xe}function Me(Be){return Be.sortableHandle!=null}var Qe=function(){function Be(fe,xe){Object(m.a)(this,Be),this.container=fe,this.onScrollCallback=xe}return Object(p.a)(Be,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(xe){var ke=this,nt=xe.translate,Ct=xe.minTranslate,pt=xe.maxTranslate,He=xe.width,nr=xe.height,ht={x:0,y:0},Gt={x:1,y:1},pr={x:10,y:10},Qt=this.container,Ht=Qt.scrollTop,Jt=Qt.scrollLeft,Ge=Qt.scrollHeight,pe=Qt.scrollWidth,oe=Qt.clientHeight,ct=Qt.clientWidth,qe=Ht===0,me=Ge-Ht-oe===0,Kt=Jt===0,vr=pe-Jt-ct===0;nt.y>=pt.y-nr/2&&!me?(ht.y=1,Gt.y=pr.y*Math.abs((pt.y-nr/2-nt.y)/nr)):nt.x>=pt.x-He/2&&!vr?(ht.x=1,Gt.x=pr.x*Math.abs((pt.x-He/2-nt.x)/He)):nt.y<=Ct.y+nr/2&&!qe?(ht.y=-1,Gt.y=pr.y*Math.abs((nt.y-nr/2-Ct.y)/nr)):nt.x<=Ct.x+He/2&&!Kt&&(ht.x=-1,Gt.x=pr.x*Math.abs((nt.x-He/2-Ct.x)/He)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(ht.x!==0||ht.y!==0)&&(this.interval=setInterval(function(){ke.isAutoScrolling=!0;var bt={left:Gt.x*ht.x,top:Gt.y*ht.y};ke.container.scrollTop+=bt.top,ke.container.scrollLeft+=bt.left,ke.onScrollCallback(bt)},5))}}]),Be}();function Ve(Be){var fe=Be.node;return{height:fe.offsetHeight,width:fe.offsetWidth}}function dt(Be){var fe=[re.Input,re.Textarea,re.Select,re.Option,re.Button];return fe.indexOf(Be.target.tagName)!==-1?!0:!!I(Be.target,function(xe){return xe.contentEditable==="true"})}var Fe={axis:u.a.oneOf(["x","y","xy"]),contentWindow:u.a.any,disableAutoscroll:u.a.bool,distance:u.a.number,getContainer:u.a.func,getHelperDimensions:u.a.func,helperClass:u.a.string,helperContainer:u.a.oneOfType([u.a.func,typeof HTMLElement=="undefined"?u.a.any:u.a.instanceOf(HTMLElement)]),hideSortableGhost:u.a.bool,keyboardSortingTransitionDuration:u.a.number,lockAxis:u.a.string,lockOffset:u.a.oneOfType([u.a.number,u.a.string,u.a.arrayOf(u.a.oneOfType([u.a.number,u.a.string]))]),lockToContainerEdges:u.a.bool,onSortEnd:u.a.func,onSortMove:u.a.func,onSortOver:u.a.func,onSortStart:u.a.func,pressDelay:u.a.number,pressThreshold:u.a.number,keyCodes:u.a.shape({lift:u.a.arrayOf(u.a.number),drop:u.a.arrayOf(u.a.number),cancel:u.a.arrayOf(u.a.number),up:u.a.arrayOf(u.a.number),down:u.a.arrayOf(u.a.number)}),shouldCancelStart:u.a.func,transitionDuration:u.a.number,updateBeforeSortStart:u.a.func,useDragHandle:u.a.bool,useWindowAsScrollContainer:u.a.bool},ue={lift:[se.SPACE],drop:[se.SPACE],cancel:[se.ESC],up:[se.UP,se.LEFT],down:[se.DOWN,se.RIGHT]},et={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:Ve,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:ue,shouldCancelStart:dt,transitionDuration:300,useWindowAsScrollContainer:!1},he=Object.keys(Fe);function J(Be){h()(!(Be.distance&&Be.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 Y(Be,fe){try{var xe=Be()}catch(ke){return fe(!0,ke)}return xe&&xe.then?xe.then(fe.bind(null,!1),fe.bind(null,!0)):fe(!1,value)}function $(Be){var fe,xe,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return xe=fe=function(nt){Object(l.a)(Ct,nt);function Ct(pt){var He;return Object(m.a)(this,Ct),He=Object(f.a)(this,Object(d.a)(Ct).call(this,pt)),Object(i.a)(Object(a.a)(Object(a.a)(He)),"state",{}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"handleStart",function(nr){var ht=He.props,Gt=ht.distance,pr=ht.shouldCancelStart;if(nr.button===2||pr(nr))return;He.touched=!0,He.position=F(nr);var Qt=I(nr.target,function(ct){return ct.sortableInfo!=null});if(Qt&&Qt.sortableInfo&&He.nodeIsChild(Qt)&&!He.state.sorting){var Ht=He.props.useDragHandle,Jt=Qt.sortableInfo,Ge=Jt.index,pe=Jt.collection,oe=Jt.disabled;if(oe)return;if(Ht&&!I(nr.target,Me))return;He.manager.active={collection:pe,index:Ge},!j(nr)&&nr.target.tagName===re.Anchor&&nr.preventDefault(),Gt||(He.props.pressDelay===0?He.handlePress(nr):He.pressTimer=setTimeout(function(){return He.handlePress(nr)},He.props.pressDelay))}}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"nodeIsChild",function(nr){return nr.sortableInfo.manager===He.manager}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"handleMove",function(nr){var ht=He.props,Gt=ht.distance,pr=ht.pressThreshold;if(!He.state.sorting&&He.touched&&!He._awaitingUpdateBeforeSortStart){var Qt=F(nr),Ht={x:He.position.x-Qt.x,y:He.position.y-Qt.y},Jt=Math.abs(Ht.x)+Math.abs(Ht.y);He.delta=Ht,!Gt&&(!pr||Jt>=pr)?(clearTimeout(He.cancelTimer),He.cancelTimer=setTimeout(He.cancel,0)):Gt&&Jt>=Gt&&He.manager.isActive()&&He.handlePress(nr)}}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"handleEnd",function(){He.touched=!1,He.cancel()}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"cancel",function(){var nr=He.props.distance,ht=He.state.sorting;ht||(nr||clearTimeout(He.pressTimer),He.manager.active=null)}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"handlePress",function(nr){try{var ht=He.manager.getActive(),Gt=function(){if(ht){var pr=function(){var _t=me.sortableInfo.index,jt=U(me),ut=q(He.container),St=He.scrollContainer.getBoundingClientRect(),mt=Jt({index:_t,node:me,collection:Kt});if(He.node=me,He.margin=jt,He.gridGap=ut,He.width=mt.width,He.height=mt.height,He.marginOffset={x:He.margin.left+He.margin.right+He.gridGap.x,y:Math.max(He.margin.top,He.margin.bottom,He.gridGap.y)},He.boundingClientRect=me.getBoundingClientRect(),He.containerBoundingRect=St,He.index=_t,He.newIndex=_t,He.axis={x:Ht.indexOf("x")>=0,y:Ht.indexOf("y")>=0},He.offsetEdge=K(me,He.container),vr?He.initialOffset=F(Object(S.a)({},nr,{pageX:He.boundingClientRect.left,pageY:He.boundingClientRect.top})):He.initialOffset=F(nr),He.initialScroll={left:He.scrollContainer.scrollLeft,top:He.scrollContainer.scrollTop},He.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},He.helper=He.helperContainer.appendChild(we(me)),C(He.helper,{boxSizing:"border-box",height:"".concat(He.height,"px"),left:"".concat(He.boundingClientRect.left-jt.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(He.boundingClientRect.top-jt.top,"px"),width:"".concat(He.width,"px")}),vr&&He.helper.focus(),pe&&(He.sortableGhost=me,C(me,{opacity:0,visibility:"hidden"})),He.minTranslate={},He.maxTranslate={},vr){var lt=qe?{top:0,left:0,width:He.contentWindow.innerWidth,height:He.contentWindow.innerHeight}:He.containerBoundingRect,tt=lt.top,Cr=lt.left,nn=lt.width,mn=lt.height,Bn=tt+mn,oi=Cr+nn;He.axis.x&&(He.minTranslate.x=Cr-He.boundingClientRect.left,He.maxTranslate.x=oi-(He.boundingClientRect.left+He.width)),He.axis.y&&(He.minTranslate.y=tt-He.boundingClientRect.top,He.maxTranslate.y=Bn-(He.boundingClientRect.top+He.height))}else He.axis.x&&(He.minTranslate.x=(qe?0:St.left)-He.boundingClientRect.left-He.width/2,He.maxTranslate.x=(qe?He.contentWindow.innerWidth:St.left+St.width)-He.boundingClientRect.left-He.width/2),He.axis.y&&(He.minTranslate.y=(qe?0:St.top)-He.boundingClientRect.top-He.height/2,He.maxTranslate.y=(qe?He.contentWindow.innerHeight:St.top+St.height)-He.boundingClientRect.top-He.height/2);Ge&&Ge.split(" ").forEach(function(wn){return He.helper.classList.add(wn)}),He.listenerNode=nr.touches?me:He.contentWindow,vr?(He.listenerNode.addEventListener("wheel",He.handleKeyEnd,!0),He.listenerNode.addEventListener("mousedown",He.handleKeyEnd,!0),He.listenerNode.addEventListener("keydown",He.handleKeyDown)):(T.move.forEach(function(wn){return He.listenerNode.addEventListener(wn,He.handleSortMove,!1)}),T.end.forEach(function(wn){return He.listenerNode.addEventListener(wn,He.handleSortEnd,!1)})),He.setState({sorting:!0,sortingIndex:_t}),ct&&ct({node:me,index:_t,collection:Kt,isKeySorting:vr,nodes:He.manager.getOrderedRefs(),helper:He.helper},nr),vr&&He.keyMove(0)},Qt=He.props,Ht=Qt.axis,Jt=Qt.getHelperDimensions,Ge=Qt.helperClass,pe=Qt.hideSortableGhost,oe=Qt.updateBeforeSortStart,ct=Qt.onSortStart,qe=Qt.useWindowAsScrollContainer,me=ht.node,Kt=ht.collection,vr=He.manager.isKeySorting,bt=function(){if(typeof oe=="function"){He._awaitingUpdateBeforeSortStart=!0;var or=Y(function(){var _t=me.sortableInfo.index;return Promise.resolve(oe({collection:Kt,index:_t,node:me,isKeySorting:vr},nr)).then(function(){})},function(_t,jt){if(He._awaitingUpdateBeforeSortStart=!1,_t)throw jt;return jt});if(or&&or.then)return or.then(function(){})}}();return bt&&bt.then?bt.then(pr):pr(bt)}}();return Promise.resolve(Gt&&Gt.then?Gt.then(function(){}):void 0)}catch(pr){return Promise.reject(pr)}}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"handleSortMove",function(nr){var ht=He.props.onSortMove;typeof nr.preventDefault=="function"&&nr.preventDefault(),He.updateHelperPosition(nr),He.animateNodes(),He.autoscroll(),ht&&ht(nr)}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"handleSortEnd",function(nr){var ht=He.props,Gt=ht.hideSortableGhost,pr=ht.onSortEnd,Qt=He.manager,Ht=Qt.active.collection,Jt=Qt.isKeySorting,Ge=He.manager.getOrderedRefs();He.listenerNode&&(Jt?(He.listenerNode.removeEventListener("wheel",He.handleKeyEnd,!0),He.listenerNode.removeEventListener("mousedown",He.handleKeyEnd,!0),He.listenerNode.removeEventListener("keydown",He.handleKeyDown)):(T.move.forEach(function(me){return He.listenerNode.removeEventListener(me,He.handleSortMove)}),T.end.forEach(function(me){return He.listenerNode.removeEventListener(me,He.handleSortEnd)}))),He.helper.parentNode.removeChild(He.helper),Gt&&He.sortableGhost&&C(He.sortableGhost,{opacity:"",visibility:""});for(var pe=0,oe=Ge.length;pe<oe;pe++){var ct=Ge[pe],qe=ct.node;ct.edgeOffset=null,ct.boundingClientRect=null,w(qe,null),O(qe,null),ct.translate=null}He.autoScroller.clear(),He.manager.active=null,He.manager.isKeySorting=!1,He.setState({sorting:!1,sortingIndex:null}),typeof pr=="function"&&pr({collection:Ht,newIndex:He.newIndex,oldIndex:He.index,isKeySorting:Jt,nodes:Ge},nr),He.touched=!1}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"autoscroll",function(){var nr=He.props.disableAutoscroll,ht=He.manager.isKeySorting;if(nr){He.autoScroller.clear();return}if(ht){var Gt=Object(S.a)({},He.translate),pr=0,Qt=0;He.axis.x&&(Gt.x=Math.min(He.maxTranslate.x,Math.max(He.minTranslate.x,He.translate.x)),pr=He.translate.x-Gt.x),He.axis.y&&(Gt.y=Math.min(He.maxTranslate.y,Math.max(He.minTranslate.y,He.translate.y)),Qt=He.translate.y-Gt.y),He.translate=Gt,w(He.helper,He.translate),He.scrollContainer.scrollLeft+=pr,He.scrollContainer.scrollTop+=Qt;return}He.autoScroller.update({height:He.height,maxTranslate:He.maxTranslate,minTranslate:He.minTranslate,translate:He.translate,width:He.width})}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"onAutoScroll",function(nr){He.translate.x+=nr.left,He.translate.y+=nr.top,He.animateNodes()}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"handleKeyDown",function(nr){var ht=nr.keyCode,Gt=He.props,pr=Gt.shouldCancelStart,Qt=Gt.keyCodes,Ht=Qt===void 0?{}:Qt,Jt=Object(S.a)({},ue,Ht);if(He.manager.active&&!He.manager.isKeySorting||!He.manager.active&&(!Jt.lift.includes(ht)||pr(nr)||!He.isValidSortingTarget(nr)))return;nr.stopPropagation(),nr.preventDefault(),Jt.lift.includes(ht)&&!He.manager.active?He.keyLift(nr):Jt.drop.includes(ht)&&He.manager.active?He.keyDrop(nr):Jt.cancel.includes(ht)?(He.newIndex=He.manager.active.index,He.keyDrop(nr)):Jt.up.includes(ht)?He.keyMove(-1):Jt.down.includes(ht)&&He.keyMove(1)}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"keyLift",function(nr){var ht=nr.target,Gt=I(ht,function(Jt){return Jt.sortableInfo!=null}),pr=Gt.sortableInfo,Qt=pr.index,Ht=pr.collection;He.initialFocusedNode=ht,He.manager.isKeySorting=!0,He.manager.active={index:Qt,collection:Ht},He.handlePress(nr)}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"keyMove",function(nr){var ht=He.manager.getOrderedRefs(),Gt=ht[ht.length-1].node.sortableInfo.index,pr=He.newIndex+nr,Qt=He.newIndex;if(pr<0||pr>Gt)return;He.prevIndex=Qt,He.newIndex=pr;var Ht=z(He.newIndex,He.prevIndex,He.index),Jt=ht.find(function(vr){var bt=vr.node;return bt.sortableInfo.index===Ht}),Ge=Jt.node,pe=He.containerScrollDelta,oe=Jt.boundingClientRect||X(Ge,pe),ct=Jt.translate||{x:0,y:0},qe={top:oe.top+ct.y-pe.top,left:oe.left+ct.x-pe.left},me=Qt<pr,Kt={x:me&&He.axis.x?Ge.offsetWidth-He.width:0,y:me&&He.axis.y?Ge.offsetHeight-He.height:0};He.handleSortMove({pageX:qe.left+Kt.x,pageY:qe.top+Kt.y,ignoreTransition:nr===0})}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"keyDrop",function(nr){He.handleSortEnd(nr),He.initialFocusedNode&&He.initialFocusedNode.focus()}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"handleKeyEnd",function(nr){He.manager.active&&He.keyDrop(nr)}),Object(i.a)(Object(a.a)(Object(a.a)(He)),"isValidSortingTarget",function(nr){var ht=He.props.useDragHandle,Gt=nr.target,pr=I(Gt,function(Qt){return Qt.sortableInfo!=null});return pr&&pr.sortableInfo&&!pr.sortableInfo.disabled&&(ht?Me(Gt):Gt.sortableInfo)}),J(pt),He.manager=new A,He.events={end:He.handleEnd,move:He.handleMove,start:He.handleStart},He}return Object(p.a)(Ct,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var He=this,nr=this.props.useWindowAsScrollContainer,ht=this.getContainer();Promise.resolve(ht).then(function(Gt){He.container=Gt,He.document=He.container.ownerDocument||document;var pr=He.props.contentWindow||He.document.defaultView||window;He.contentWindow=typeof pr=="function"?pr():pr,He.scrollContainer=nr?He.document.scrollingElement||He.document.documentElement:te(He.container)||He.container,He.autoScroller=new Qe(He.scrollContainer,He.onAutoScroll),Object.keys(He.events).forEach(function(Qt){return T[Qt].forEach(function(Ht){return He.container.addEventListener(Ht,He.events[Qt],!1)})}),He.container.addEventListener("keydown",He.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var He=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(nr){return T[nr].forEach(function(ht){return He.container.removeEventListener(ht,He.events[nr])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(He){var nr=this.props,ht=nr.lockAxis,Gt=nr.lockOffset,pr=nr.lockToContainerEdges,Qt=nr.transitionDuration,Ht=nr.keyboardSortingTransitionDuration,Jt=Ht===void 0?Qt:Ht,Ge=this.manager.isKeySorting,pe=He.ignoreTransition,oe=F(He),ct={x:oe.x-this.initialOffset.x,y:oe.y-this.initialOffset.y};if(ct.y-=window.pageYOffset-this.initialWindowScroll.top,ct.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=ct,pr){var qe=Q({height:this.height,lockOffset:Gt,width:this.width}),me=Object(g.a)(qe,2),Kt=me[0],vr=me[1],bt={x:this.width/2-Kt.x,y:this.height/2-Kt.y},or={x:this.width/2-vr.x,y:this.height/2-vr.y};ct.x=k(this.minTranslate.x+bt.x,this.maxTranslate.x-or.x,ct.x),ct.y=k(this.minTranslate.y+bt.y,this.maxTranslate.y-or.y,ct.y)}ht==="x"?ct.y=0:ht==="y"&&(ct.x=0),Ge&&Jt&&!pe&&O(this.helper,Jt),w(this.helper,ct)}},{key:"animateNodes",value:function(){var He=this.props,nr=He.transitionDuration,ht=He.hideSortableGhost,Gt=He.onSortOver,pr=this.containerScrollDelta,Qt=this.windowScrollDelta,Ht=this.manager.getOrderedRefs(),Jt={left:this.offsetEdge.left+this.translate.x+pr.left,top:this.offsetEdge.top+this.translate.y+pr.top},Ge=this.manager.isKeySorting,pe=this.newIndex;this.newIndex=null;for(var oe=0,ct=Ht.length;oe<ct;oe++){var qe=Ht[oe].node,me=qe.sortableInfo.index,Kt=qe.offsetWidth,vr=qe.offsetHeight,bt={height:this.height>vr?vr/2:this.height/2,width:this.width>Kt?Kt/2:this.width/2},or=Ge&&me>this.index&&me<=pe,_t=Ge&&me<this.index&&me>=pe,jt={x:0,y:0},ut=Ht[oe].edgeOffset;ut||(ut=K(qe,this.container),Ht[oe].edgeOffset=ut,Ge&&(Ht[oe].boundingClientRect=X(qe,pr)));var St=oe<Ht.length-1&&Ht[oe+1],mt=oe>0&&Ht[oe-1];if(St&&!St.edgeOffset&&(St.edgeOffset=K(St.node,this.container),Ge&&(St.boundingClientRect=X(St.node,pr))),me===this.index){ht&&(this.sortableGhost=qe,C(qe,{opacity:0,visibility:"hidden"}));continue}nr&&O(qe,nr),this.axis.x?this.axis.y?_t||me<this.index&&(Jt.left+Qt.left-bt.width<=ut.left&&Jt.top+Qt.top<=ut.top+bt.height||Jt.top+Qt.top+bt.height<=ut.top)?(jt.x=this.width+this.marginOffset.x,ut.left+jt.x>this.containerBoundingRect.width-bt.width&&(St&&(jt.x=St.edgeOffset.left-ut.left,jt.y=St.edgeOffset.top-ut.top)),this.newIndex===null&&(this.newIndex=me)):(or||me>this.index&&(Jt.left+Qt.left+bt.width>=ut.left&&Jt.top+Qt.top+bt.height>=ut.top||Jt.top+Qt.top+bt.height>=ut.top+vr))&&(jt.x=-(this.width+this.marginOffset.x),ut.left+jt.x<this.containerBoundingRect.left+bt.width&&(mt&&(jt.x=mt.edgeOffset.left-ut.left,jt.y=mt.edgeOffset.top-ut.top)),this.newIndex=me):or||me>this.index&&Jt.left+Qt.left+bt.width>=ut.left?(jt.x=-(this.width+this.marginOffset.x),this.newIndex=me):(_t||me<this.index&&Jt.left+Qt.left<=ut.left+bt.width)&&(jt.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=me)):this.axis.y&&(or||me>this.index&&Jt.top+Qt.top+bt.height>=ut.top?(jt.y=-(this.height+this.marginOffset.y),this.newIndex=me):(_t||me<this.index&&Jt.top+Qt.top<=ut.top+bt.height)&&(jt.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=me))),w(qe,jt),Ht[oe].translate=jt}this.newIndex==null&&(this.newIndex=this.index),Ge&&(this.newIndex=pe);var lt=Ge?this.prevIndex:pe;Gt&&this.newIndex!==lt&&Gt({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:lt,isKeySorting:Ge,nodes:Ht,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return h()(ke.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 He=this.props.getContainer;return typeof He!="function"?Object(r.findDOMNode)(this):He(ke.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var He=ke.withRef?"wrappedInstance":null;return Object(t.createElement)(Be,Object(y.a)({ref:He},E(this.props,he)))}},{key:"helperContainer",get:function(){var He=this.props.helperContainer;return typeof He=="function"?He():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var He=this.props.useWindowAsScrollContainer;return He?{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}}}]),Ct}(t.Component),Object(i.a)(fe,"displayName",P("sortableList",Be)),Object(i.a)(fe,"defaultProps",et),Object(i.a)(fe,"propTypes",Fe),Object(i.a)(fe,"childContextTypes",{manager:u.a.object.isRequired}),xe}var de={index:u.a.number.isRequired,collection:u.a.oneOfType([u.a.number,u.a.string]),disabled:u.a.bool},be=Object.keys(de);function Te(Be){var fe,xe,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return xe=fe=function(nt){Object(l.a)(Ct,nt);function Ct(){return Object(m.a)(this,Ct),Object(f.a)(this,Object(d.a)(Ct).apply(this,arguments))}return Object(p.a)(Ct,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(He){this.node&&(He.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),He.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),He.collection!==this.props.collection&&(this.unregister(He.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var He=this.props,nr=He.collection,ht=He.disabled,Gt=He.index,pr=Object(r.findDOMNode)(this);pr.sortableInfo={collection:nr,disabled:ht,index:Gt,manager:this.context.manager},this.node=pr,this.ref={node:pr},this.context.manager.add(nr,this.ref)}},{key:"unregister",value:function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(He,this.ref)}},{key:"getWrappedInstance",value:function(){return h()(ke.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 He=ke.withRef?"wrappedInstance":null;return Object(t.createElement)(Be,Object(y.a)({ref:He},E(this.props,be)))}}]),Ct}(t.Component),Object(i.a)(fe,"displayName",P("sortableElement",Be)),Object(i.a)(fe,"contextTypes",{manager:u.a.object.isRequired}),Object(i.a)(fe,"propTypes",de),Object(i.a)(fe,"defaultProps",{collection:0}),xe}},YNAk:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("QyFq")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="CaretDownFilled";var i=m.forwardRef(a);D.default=i},YNf1:function(R,D,n){var y=n("IwbS"),g=n("6Ic6"),S=.3,m=g.extend({type:"parallel",init:function(){this._dataGroup=new y.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(o,e,u,r){var s=this._dataGroup,c=o.getData(),h=this._data,v=o.coordinateSystem,A=v.dimensions,b=l(o);c.diff(h).add(x).update(E).remove(T).execute();function x(C){var w=d(c,s,C,A,v);a(w,c,C,b)}function E(C,w){var O=h.getItemGraphicEl(w),I=f(c,C,A,v);c.setItemGraphicEl(C,O);var k=r&&r.animation===!1?null:o;y.updateProps(O,{shape:{points:I}},k,C),a(O,c,C,b)}function T(C){var w=h.getItemGraphicEl(C);s.remove(w)}if(!this._initialized){this._initialized=!0;var _=p(v,o,function(){setTimeout(function(){s.removeClipPath()})});s.setClipPath(_)}this._data=c},incrementalPrepareRender:function(o,e,u){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(o,e,u){for(var r=e.getData(),s=e.coordinateSystem,c=s.dimensions,h=l(e),v=o.start;v<o.end;v++){var A=d(r,this._dataGroup,v,c,s);A.incremental=!0,a(A,r,v,h)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function p(o,e,u){var r=o.model,s=o.getRect(),c=new y.Rect({shape:{x:s.x,y:s.y,width:s.width,height:s.height}}),h=r.get("layout")==="horizontal"?"width":"height";return c.setShape(h,0),y.initProps(c,{shape:{width:s.width,height:s.height}},e,u),c}function f(o,e,u,r){for(var s=[],c=0;c<u.length;c++){var h=u[c],v=o.get(o.mapDimension(h),e);i(v,r.getAxis(h).type)||s.push(r.dataToPoint(v,h))}return s}function d(o,e,u,r,s){var c=f(o,u,r,s),h=new y.Polyline({shape:{points:c},silent:!0,z2:10});return e.add(h),o.setItemGraphicEl(u,h),h}function l(o){var e=o.get("smooth",!0);return e===!0&&(e=S),{lineStyle:o.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:S}}function a(o,e,u,r){var s=r.lineStyle;if(e.hasItemOption){var c=e.getItemModel(u).getModel("lineStyle");s=c.getLineStyle()}o.useStyle(s);var h=o.style;h.fill=null,h.stroke=e.getItemVisual(u,"color"),h.opacity=e.getItemVisual(u,"opacity"),r.smooth&&(o.shape.smooth=r.smooth)}function i(o,e){return e==="category"?o==null:o==null||isNaN(o)}var t=m;R.exports=t},YOMW:function(R,D,n){var y=n("bYtY"),g={get:function(p,f,d){var l=y.clone((S[p]||{})[f]);return d&&y.isArray(l)?l[l.length-1]:l}},S={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]}},m=g;R.exports=m},YXkt:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=n("Qxkt"),p=n("gPAo"),f=n("7G+c"),d=n("KxfA"),l=d.defaultDimValueGetters,a=d.DefaultDataProvider,i=n("L0Ub"),t=i.summarizeDimensions,o=n("Vi4m"),e=S.isObject,u="undefined",r=-1,s="e\0\0",c={float:typeof Float64Array===u?Array:Float64Array,int:typeof Int32Array===u?Array:Int32Array,ordinal:Array,number:Array,time:Array},h=typeof Uint32Array===u?Array:Uint32Array,v=typeof Int32Array===u?Array:Int32Array,A=typeof Uint16Array===u?Array:Uint16Array;function b(G){return G._rawCount>65535?h:A}function x(G){var te=G.constructor;return te===Array?G.slice():new te(G)}var E=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],T=["_extent","_approximateExtent","_rawExtent"];function _(G,te){S.each(E.concat(te.__wrappedMethods||[]),function(q){te.hasOwnProperty(q)&&(G[q]=te[q])}),G.__wrappedMethods=te.__wrappedMethods,S.each(T,function(q){G[q]=S.clone(te[q])}),G._calculationInfo=S.extend(te._calculationInfo)}var C=function(G,te){G=G||["x","y"];for(var q={},se=[],re={},we=0;we<G.length;we++){var Oe=G[we];S.isString(Oe)?Oe=new o({name:Oe}):Oe instanceof o||(Oe=new o(Oe));var Me=Oe.name;Oe.type=Oe.type||"float",Oe.coordDim||(Oe.coordDim=Me,Oe.coordDimIndex=0),Oe.otherDims=Oe.otherDims||{},se.push(Me),q[Me]=Oe,Oe.index=we,Oe.createInvertedIndices&&(re[Me]=[])}this.dimensions=se,this._dimensionInfos=q,this.hostModel=te,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=t(this),this._invertedIndicesMap=re,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},w=C.prototype;w.type="list",w.hasItemOption=!0,w.getDimension=function(G){return(typeof G=="number"||!isNaN(G)&&!this._dimensionInfos.hasOwnProperty(G))&&(G=this.dimensions[G]),G},w.getDimensionInfo=function(G){return this._dimensionInfos[this.getDimension(G)]},w.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},w.mapDimension=function(G,te){var q=this._dimensionsSummary;if(te==null)return q.encodeFirstDimNotExtra[G];var se=q.encode[G];return te===!0?(se||[]).slice():se&&se[te]},w.initData=function(G,te,q){var se=f.isInstance(G)||S.isArrayLike(G);se&&(G=new a(G,this.dimensions.length)),this._rawData=G,this._storage={},this._indices=null,this._nameList=te||[],this._idList=[],this._nameRepeatCount={},q||(this.hasItemOption=!1),this.defaultDimValueGetter=l[this._rawData.getSource().sourceFormat],this._dimValueGetter=q=q||this.defaultDimValueGetter,this._dimValueGetterArrayRows=l.arrayRows,this._rawExtent={},this._initDataFromProvider(0,G.count()),G.pure&&(this.hasItemOption=!1)},w.getProvider=function(){return this._rawData},w.appendData=function(G){var te=this._rawData,q=this.count();te.appendData(G);var se=te.count();te.persistent||(se+=q),this._initDataFromProvider(q,se)},w.appendValues=function(G,te){for(var q=this._chunkSize,se=this._storage,re=this.dimensions,we=re.length,Oe=this._rawExtent,Me=this.count(),Qe=Me+Math.max(G.length,te?te.length:0),Ve=this._chunkCount,dt=0;dt<we;dt++){var Fe=re[dt];Oe[Fe]||(Oe[Fe]=z()),se[Fe]||(se[Fe]=[]),O(se,this._dimensionInfos[Fe],q,Ve,Qe),this._chunkCount=se[Fe].length}for(var ue=new Array(we),et=Me;et<Qe;et++){for(var he=et-Me,J=Math.floor(et/q),Y=et%q,$=0;$<we;$++){var Fe=re[$],de=this._dimValueGetterArrayRows(G[he]||ue,Fe,he,$);se[Fe][J][Y]=de;var be=Oe[Fe];de<be[0]&&(be[0]=de),de>be[1]&&(be[1]=de)}te&&(this._nameList[et]=te[he])}this._rawCount=this._count=Qe,this._extent={},I(this)},w._initDataFromProvider=function(G,te){if(G>=te)return;for(var q=this._chunkSize,se=this._rawData,re=this._storage,we=this.dimensions,Oe=we.length,Me=this._dimensionInfos,Qe=this._nameList,Ve=this._idList,dt=this._rawExtent,Fe=this._nameRepeatCount={},ue,et=this._chunkCount,he=0;he<Oe;he++){var J=we[he];dt[J]||(dt[J]=z());var Y=Me[J];Y.otherDims.itemName===0&&(ue=this._nameDimIdx=he),Y.otherDims.itemId===0&&(this._idDimIdx=he),re[J]||(re[J]=[]),O(re,Y,q,et,te),this._chunkCount=re[J].length}for(var $=new Array(Oe),de=G;de<te;de++){$=se.getItem(de,$);for(var be=Math.floor(de/q),Te=de%q,Be=0;Be<Oe;Be++){var J=we[Be],fe=re[J][be],xe=this._dimValueGetter($,J,de,Be);fe[Te]=xe;var ke=dt[J];xe<ke[0]&&(ke[0]=xe),xe>ke[1]&&(ke[1]=xe)}if(!se.pure){var nt=Qe[de];if($&&nt==null){if($.name!=null)Qe[de]=nt=$.name;else if(ue!=null){var Ct=we[ue],pt=re[Ct][be];if(pt){nt=pt[Te];var He=Me[Ct].ordinalMeta;He&&He.categories.length&&(nt=He.categories[nt])}}}var nr=$==null?null:$.id;nr==null&&nt!=null&&(Fe[nt]=Fe[nt]||0,nr=nt,Fe[nt]>0&&(nr+="__ec__"+Fe[nt]),Fe[nt]++),nr!=null&&(Ve[de]=nr)}}!se.persistent&&se.clean&&se.clean(),this._rawCount=this._count=te,this._extent={},I(this)};function O(G,te,q,se,re){var we=c[te.type],Oe=se-1,Me=te.name,Qe=G[Me][Oe];if(Qe&&Qe.length<q){for(var Ve=new we(Math.min(re-Oe*q,q)),dt=0;dt<Qe.length;dt++)Ve[dt]=Qe[dt];G[Me][Oe]=Ve}for(var Fe=se*q;Fe<re;Fe+=q)G[Me].push(new we(Math.min(re-Fe,q)))}function I(G){var te=G._invertedIndicesMap;S.each(te,function(q,se){var re=G._dimensionInfos[se],we=re.ordinalMeta;if(we){q=te[se]=new v(we.categories.length);for(var Oe=0;Oe<q.length;Oe++)q[Oe]=r;for(var Oe=0;Oe<G._count;Oe++)q[G.get(se,Oe)]=Oe}})}function k(G,te,q){var se;if(te!=null){var re=G._chunkSize,we=Math.floor(q/re),Oe=q%re,Me=G.dimensions[te],Qe=G._storage[Me][we];if(Qe){se=Qe[Oe];var Ve=G._dimensionInfos[Me].ordinalMeta;Ve&&Ve.categories.length&&(se=Ve.categories[se])}}return se}w.count=function(){return this._count},w.getIndices=function(){var G,te=this._indices;if(te){var q=te.constructor,se=this._count;if(q===Array){G=new q(se);for(var re=0;re<se;re++)G[re]=te[re]}else G=new q(te.buffer,0,se)}else for(var q=b(this),G=new q(this.count()),re=0;re<G.length;re++)G[re]=re;return G},w.get=function(G,te){if(!(te>=0&&te<this._count))return NaN;var q=this._storage;if(!q[G])return NaN;te=this.getRawIndex(te);var se=Math.floor(te/this._chunkSize),re=te%this._chunkSize,we=q[G][se],Oe=we[re];return Oe},w.getByRawIndex=function(G,te){if(!(te>=0&&te<this._rawCount))return NaN;var q=this._storage[G];if(!q)return NaN;var se=Math.floor(te/this._chunkSize),re=te%this._chunkSize,we=q[se];return we[re]},w._getFast=function(G,te){var q=Math.floor(te/this._chunkSize),se=te%this._chunkSize,re=this._storage[G][q];return re[se]},w.getValues=function(G,te){var q=[];S.isArray(G)||(te=G,G=this.dimensions);for(var se=0,re=G.length;se<re;se++)q.push(this.get(G[se],te));return q},w.hasValue=function(G){for(var te=this._dimensionsSummary.dataDimsOnCoord,q=0,se=te.length;q<se;q++)if(isNaN(this.get(te[q],G)))return!1;return!0},w.getDataExtent=function(G){G=this.getDimension(G);var te=this._storage[G],q=z();if(!te)return q;var se=this.count(),re=!this._indices,we;if(re)return this._rawExtent[G].slice();if(we=this._extent[G],we)return we.slice();we=q;for(var Oe=we[0],Me=we[1],Qe=0;Qe<se;Qe++){var Ve=this._getFast(G,this.getRawIndex(Qe));Ve<Oe&&(Oe=Ve),Ve>Me&&(Me=Ve)}return we=[Oe,Me],this._extent[G]=we,we},w.getApproximateExtent=function(G){return G=this.getDimension(G),this._approximateExtent[G]||this.getDataExtent(G)},w.setApproximateExtent=function(G,te){te=this.getDimension(te),this._approximateExtent[te]=G.slice()},w.getCalculationInfo=function(G){return this._calculationInfo[G]},w.setCalculationInfo=function(G,te){e(G)?S.extend(this._calculationInfo,G):this._calculationInfo[G]=te},w.getSum=function(G){var te=this._storage[G],q=0;if(te)for(var se=0,re=this.count();se<re;se++){var we=this.get(G,se);isNaN(we)||(q+=we)}return q},w.getMedian=function(G){var te=[];this.each(G,function(re,we){isNaN(re)||te.push(re)});var q=[].concat(te).sort(function(re,we){return re-we}),se=this.count();return se===0?0:se%2===1?q[(se-1)/2]:(q[se/2]+q[se/2-1])/2},w.rawIndexOf=function(G,te){var q=G&&this._invertedIndicesMap[G],se=q[te];return se==null||isNaN(se)?r:se},w.indexOfName=function(G){for(var te=0,q=this.count();te<q;te++)if(this.getName(te)===G)return te;return-1},w.indexOfRawIndex=function(G){if(G>=this._rawCount||G<0)return-1;if(!this._indices)return G;var te=this._indices,q=te[G];if(q!=null&&q<this._count&&q===G)return G;for(var se=0,re=this._count-1;se<=re;){var we=(se+re)/2|0;if(te[we]<G)se=we+1;else if(te[we]>G)re=we-1;else return we}return-1},w.indicesOfNearest=function(G,te,q){var se=this._storage,re=se[G],we=[];if(!re)return we;q==null&&(q=Infinity);for(var Oe=Infinity,Me=-1,Qe=0,Ve=0,dt=this.count();Ve<dt;Ve++){var Fe=te-this.get(G,Ve),ue=Math.abs(Fe);ue<=q&&((ue<Oe||ue===Oe&&Fe>=0&&Me<0)&&(Oe=ue,Me=Fe,Qe=0),Fe===Me&&(we[Qe++]=Ve))}return we.length=Qe,we},w.getRawIndex=M;function M(G){return G}function U(G){return G<this._count&&G>=0?this._indices[G]:-1}w.getRawDataItem=function(G){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(G));for(var te=[],q=0;q<this.dimensions.length;q++){var se=this.dimensions[q];te.push(this.get(se,G))}return te},w.getName=function(G){var te=this.getRawIndex(G);return this._nameList[te]||k(this,this._nameDimIdx,te)||""},w.getId=function(G){return P(this,this.getRawIndex(G))};function P(G,te){var q=G._idList[te];return q==null&&(q=k(G,G._idDimIdx,te)),q==null&&(q=s+te),q}function X(G){return S.isArray(G)||(G=[G]),G}function F(G,te){for(var q=0;q<te.length;q++)G._dimensionInfos[te[q]]||console.error("Unkown dimension "+te[q])}w.each=function(G,te,q,se){"use strict";if(!this._count)return;typeof G=="function"&&(se=q,q=te,te=G,G=[]),q=q||se||this,G=S.map(X(G),this.getDimension,this);for(var re=G.length,we=0;we<this.count();we++)switch(re){case 0:te.call(q,we);break;case 1:te.call(q,this.get(G[0],we),we);break;case 2:te.call(q,this.get(G[0],we),this.get(G[1],we),we);break;default:for(var Oe=0,Me=[];Oe<re;Oe++)Me[Oe]=this.get(G[Oe],we);Me[Oe]=we,te.apply(q,Me)}},w.filterSelf=function(G,te,q,se){"use strict";if(!this._count)return;typeof G=="function"&&(se=q,q=te,te=G,G=[]),q=q||se||this,G=S.map(X(G),this.getDimension,this);for(var re=this.count(),we=b(this),Oe=new we(re),Me=[],Qe=G.length,Ve=0,dt=G[0],Fe=0;Fe<re;Fe++){var ue,et=this.getRawIndex(Fe);if(Qe===0)ue=te.call(q,Fe);else if(Qe===1){var he=this._getFast(dt,et);ue=te.call(q,he,Fe)}else{for(var J=0;J<Qe;J++)Me[J]=this._getFast(dt,et);Me[J]=Fe,ue=te.apply(q,Me)}ue&&(Oe[Ve++]=et)}return Ve<re&&(this._indices=Oe),this._count=Ve,this._extent={},this.getRawIndex=this._indices?U:M,this},w.selectRange=function(G){"use strict";if(!this._count)return;var te=[];for(var q in G)G.hasOwnProperty(q)&&te.push(q);var se=te.length;if(!se)return;var re=this.count(),we=b(this),Oe=new we(re),Me=0,Qe=te[0],Ve=G[Qe][0],dt=G[Qe][1],Fe=!1;if(!this._indices){var ue=0;if(se===1){for(var et=this._storage[te[0]],he=0;he<this._chunkCount;he++)for(var J=et[he],Y=Math.min(this._count-he*this._chunkSize,this._chunkSize),$=0;$<Y;$++){var de=J[$];(de>=Ve&&de<=dt||isNaN(de))&&(Oe[Me++]=ue),ue++}Fe=!0}else if(se===2){for(var et=this._storage[Qe],be=this._storage[te[1]],Te=G[te[1]][0],Be=G[te[1]][1],he=0;he<this._chunkCount;he++)for(var J=et[he],fe=be[he],Y=Math.min(this._count-he*this._chunkSize,this._chunkSize),$=0;$<Y;$++){var de=J[$],xe=fe[$];(de>=Ve&&de<=dt||isNaN(de))&&(xe>=Te&&xe<=Be||isNaN(xe))&&(Oe[Me++]=ue),ue++}Fe=!0}}if(!Fe)if(se===1)for(var $=0;$<re;$++){var ke=this.getRawIndex($),de=this._getFast(Qe,ke);(de>=Ve&&de<=dt||isNaN(de))&&(Oe[Me++]=ke)}else for(var $=0;$<re;$++){for(var nt=!0,ke=this.getRawIndex($),he=0;he<se;he++){var Ct=te[he],de=this._getFast(q,ke);(de<G[Ct][0]||de>G[Ct][1])&&(nt=!1)}nt&&(Oe[Me++]=this.getRawIndex($))}return Me<re&&(this._indices=Oe),this._count=Me,this._extent={},this.getRawIndex=this._indices?U:M,this},w.mapArray=function(G,te,q,se){"use strict";typeof G=="function"&&(se=q,q=te,te=G,G=[]),q=q||se||this;var re=[];return this.each(G,function(){re.push(te&&te.apply(this,arguments))},q),re};function j(G,te){var q=G.dimensions,se=new C(S.map(q,G.getDimensionInfo,G),G.hostModel);_(se,G);for(var re=se._storage={},we=G._storage,Oe=0;Oe<q.length;Oe++){var Me=q[Oe];we[Me]&&(S.indexOf(te,Me)>=0?(re[Me]=K(we[Me]),se._rawExtent[Me]=z(),se._extent[Me]=null):re[Me]=we[Me])}return se}function K(G){for(var te=new Array(G.length),q=0;q<G.length;q++)te[q]=x(G[q]);return te}function z(){return[Infinity,-Infinity]}w.map=function(G,te,q,se){"use strict";q=q||se||this,G=S.map(X(G),this.getDimension,this);var re=j(this,G);re._indices=this._indices,re.getRawIndex=re._indices?U:M;for(var we=re._storage,Oe=[],Me=this._chunkSize,Qe=G.length,Ve=this.count(),dt=[],Fe=re._rawExtent,ue=0;ue<Ve;ue++){for(var et=0;et<Qe;et++)dt[et]=this.get(G[et],ue);dt[Qe]=ue;var he=te&&te.apply(q,dt);if(he!=null){typeof he!="object"&&(Oe[0]=he,he=Oe);for(var J=this.getRawIndex(ue),Y=Math.floor(J/Me),$=J%Me,de=0;de<he.length;de++){var be=G[de],Te=he[de],Be=Fe[be],fe=we[be];fe&&(fe[Y][$]=Te),Te<Be[0]&&(Be[0]=Te),Te>Be[1]&&(Be[1]=Te)}}}return re},w.downSample=function(G,te,q,se){for(var re=j(this,[G]),we=re._storage,Oe=[],Me=Math.floor(1/te),Qe=we[G],Ve=this.count(),dt=this._chunkSize,Fe=re._rawExtent[G],ue=new(b(this))(Ve),et=0,he=0;he<Ve;he+=Me){Me>Ve-he&&(Me=Ve-he,Oe.length=Me);for(var J=0;J<Me;J++){var Y=this.getRawIndex(he+J),$=Math.floor(Y/dt),de=Y%dt;Oe[J]=Qe[$][de]}var be=q(Oe),Te=this.getRawIndex(Math.min(he+se(Oe,be)||0,Ve-1)),Be=Math.floor(Te/dt),fe=Te%dt;Qe[Be][fe]=be,be<Fe[0]&&(Fe[0]=be),be>Fe[1]&&(Fe[1]=be),ue[et++]=Te}return re._count=et,re._indices=ue,re.getRawIndex=U,re},w.getItemModel=function(G){var te=this.hostModel;return new m(this.getRawDataItem(G),te,te&&te.ecModel)},w.diff=function(G){var te=this;return new p(G?G.getIndices():[],this.getIndices(),function(q){return P(G,q)},function(q){return P(te,q)})},w.getVisual=function(G){var te=this._visual;return te&&te[G]},w.setVisual=function(G,te){if(e(G)){for(var q in G)G.hasOwnProperty(q)&&this.setVisual(q,G[q]);return}this._visual=this._visual||{},this._visual[G]=te},w.setLayout=function(G,te){if(e(G)){for(var q in G)G.hasOwnProperty(q)&&this.setLayout(q,G[q]);return}this._layout[G]=te},w.getLayout=function(G){return this._layout[G]},w.getItemLayout=function(G){return this._itemLayouts[G]},w.setItemLayout=function(G,te,q){this._itemLayouts[G]=q?S.extend(this._itemLayouts[G]||{},te):te},w.clearItemLayouts=function(){this._itemLayouts.length=0},w.getItemVisual=function(G,te,q){var se=this._itemVisuals[G],re=se&&se[te];return re==null&&!q?this.getVisual(te):re},w.setItemVisual=function(G,te,q){var se=this._itemVisuals[G]||{},re=this.hasItemVisual;if(this._itemVisuals[G]=se,e(te)){for(var we in te)te.hasOwnProperty(we)&&(se[we]=te[we],re[we]=!0);return}se[te]=q,re[te]=!0},w.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var V=function(G){G.seriesIndex=this.seriesIndex,G.dataIndex=this.dataIndex,G.dataType=this.dataType};w.setItemGraphicEl=function(G,te){var q=this.hostModel;te&&(te.dataIndex=G,te.dataType=this.dataType,te.seriesIndex=q&&q.seriesIndex,te.type==="group"&&te.traverse(V,te)),this._graphicEls[G]=te},w.getItemGraphicEl=function(G){return this._graphicEls[G]},w.eachItemGraphicEl=function(G,te){S.each(this._graphicEls,function(q,se){q&&(G&&G.call(te,q,se))})},w.cloneShallow=function(G){if(!G){var te=S.map(this.dimensions,this.getDimensionInfo,this);G=new C(te,this.hostModel)}if(G._storage=this._storage,_(G,this),this._indices){var q=this._indices.constructor;G._indices=new q(this._indices)}else G._indices=null;return G.getRawIndex=G._indices?U:M,G},w.wrapMethod=function(G,te){var q=this[G];if(typeof q!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(G),this[G]=function(){var se=q.apply(this,arguments);return te.apply(this,[se].concat(S.slice(arguments)))}},w.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],w.CHANGABLE_METHODS=["filterSelf","selectRange"];var Q=C;R.exports=Q},YgsL:function(R,D,n){var y=n("QBsz"),g=y.distance;function S(p,f,d,l,a,i,t){var o=(d-p)*.5,e=(l-f)*.5;return(2*(f-d)+o+e)*t+(-3*(f-d)-2*o-e)*i+o*a+f}function m(p,f){for(var d=p.length,l=[],a=0,i=1;i<d;i++)a+=g(p[i-1],p[i]);var t=a/2;t=t<d?d:t;for(var i=0;i<t;i++){var o=i/(t-1)*(f?d:d-1),e=Math.floor(o),u=o-e,r,s=p[e%d],c,h;f?(r=p[(e-1+d)%d],c=p[(e+1)%d],h=p[(e+2)%d]):(r=p[e===0?e:e-1],c=p[e>d-2?d-1:e+1],h=p[e>d-3?d-1:e+2]);var v=u*u,A=u*v;l.push([S(r[0],s[0],c[0],h[0],u,v,A),S(r[1],s[1],c[1],h[1],u,v,A)])}return l}R.exports=m},Yl7c:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=".",p="___EC__COMPONENT__CONTAINER___";function f(r){var s={main:"",sub:""};return r&&(r=r.split(m),s.main=r[0]||"",s.sub=r[1]||""),s}function d(r){S.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function l(r,s){r.$constructor=r,r.extend=function(c){var h=this,v=function(){c.$constructor?c.$constructor.apply(this,arguments):h.apply(this,arguments)};return S.extend(v.prototype,c),v.extend=this.extend,v.superCall=t,v.superApply=o,S.inherits(v,this),v.superClass=h,v}}var a=0;function i(r){var s=["__\0is_clz",a++,Math.random().toFixed(3)].join("_");r.prototype[s]=!0,r.isInstance=function(c){return!!(c&&c[s])}}function t(r,s){var c=S.slice(arguments,2);return this.superClass.prototype[s].apply(r,c)}function o(r,s,c){return this.superClass.prototype[s].apply(r,c)}function e(r,s){s=s||{};var c={};r.registerClass=function(A,b){if(b){if(d(b),b=f(b),!b.sub)c[b.main]=A;else if(b.sub!==p){var x=h(b);x[b.sub]=A}}return A},r.getClass=function(A,b,x){var E=c[A];if(E&&E[p]&&(E=b?E[b]:null),x&&!E)throw new Error(b?"Component "+A+"."+(b||"")+" not exists. Load it first.":A+".type should be specified.");return E},r.getClassesByMainType=function(A){A=f(A);var b=[],x=c[A.main];return x&&x[p]?S.each(x,function(E,T){T!==p&&b.push(E)}):b.push(x),b},r.hasClass=function(A){return A=f(A),!!c[A.main]},r.getAllClassMainTypes=function(){var A=[];return S.each(c,function(b,x){A.push(x)}),A},r.hasSubTypes=function(A){A=f(A);var b=c[A.main];return b&&b[p]},r.parseClassType=f;function h(A){var b=c[A.main];return(!b||!b[p])&&(b=c[A.main]={},b[p]=!0),b}if(s.registerWhenExtend){var v=r.extend;v&&(r.extend=function(A){var b=v.call(this,A);return r.registerClass(b,A.type)})}return r}function u(r,s){}D.parseClassType=f,D.enableClassExtend=l,D.enableClassCheck=i,D.enableClassManagement=e,D.setReadOnly=u},Ynxi:function(R,D,n){var y=n("bYtY"),g=n("ProS"),S=n("IwbS"),m=n("+TT/"),p=m.getLayoutRect,f=n("7aKB"),d=f.windowOpen;g.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"}}}),g.extendComponentView({type:"title",render:function(l,a,i){if(this.group.removeAll(),!l.get("show"))return;var t=this.group,o=l.getModel("textStyle"),e=l.getModel("subtextStyle"),u=l.get("textAlign"),r=y.retrieve2(l.get("textBaseline"),l.get("textVerticalAlign")),s=new S.Text({style:S.setTextStyle({},o,{text:l.get("text"),textFill:o.getTextColor()},{disableBox:!0}),z2:10}),c=s.getBoundingRect(),h=l.get("subtext"),v=new S.Text({style:S.setTextStyle({},e,{text:h,textFill:e.getTextColor(),y:c.height+l.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),A=l.get("link"),b=l.get("sublink"),x=l.get("triggerEvent",!0);s.silent=!A&&!x,v.silent=!b&&!x,A&&s.on("click",function(){d(A,"_"+l.get("target"))}),b&&v.on("click",function(){d(A,"_"+l.get("subtarget"))}),s.eventData=v.eventData=x?{componentType:"title",componentIndex:l.componentIndex}:null,t.add(s),h&&t.add(v);var E=t.getBoundingRect(),T=l.getBoxLayoutParams();T.width=E.width,T.height=E.height;var _=p(T,{width:i.getWidth(),height:i.getHeight()},l.get("padding"));u||(u=l.get("left")||l.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),r||(r=l.get("top")||l.get("bottom"),r==="center"&&(r="middle"),r==="bottom"?_.y+=_.height:r==="middle"&&(_.y+=_.height/2),r=r||"top"),t.attr("position",[_.x,_.y]);var C={textAlign:u,textVerticalAlign:r};s.setStyle(C),v.setStyle(C),E=t.getBoundingRect();var w=_.margin,O=l.getItemStyle(["color","opacity"]);O.fill=l.get("backgroundColor");var I=new S.Rect({shape:{x:E.x-w[3],y:E.y-w[0],width:E.width+w[1]+w[3],height:E.height+w[0]+w[2],r:l.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});t.add(I)}})},Ywus:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("DO2E")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="DeleteOutlined";var i=m.forwardRef(a);D.default=i},Z0Lh:function(R,D,n){"use strict";var y=n("TqRt");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var g=y(n("pVnL")),S=y(n("HjOm")),m=y(n("Z6rY")),p={lang:(0,g.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"]},S.default),timePickerLocale:(0,g.default)({},m.default)};p.lang.ok="\u786E \u5B9A";var f=p;D.default=f},Z1HP:function(R,D,n){var y=n("ycre"),g=n("quyA"),S=n("q4HE");function m(p){return g(p)?S(p):y(p)}R.exports=m},Z1r0:function(R,D){function n(y){var g=y.findComponents({mainType:"legend"});if(!g||!g.length)return;y.eachSeriesByType("graph",function(S){var m=S.getCategoriesData(),p=S.getGraph(),f=p.data,d=m.mapArray(m.getName);f.filterSelf(function(l){var a=f.getItemModel(l),i=a.getShallow("category");if(i!=null){typeof i=="number"&&(i=d[i]);for(var t=0;t<g.length;t++)if(!g[t].isSelected(i))return!1}return!0})},this)}R.exports=n},Z1wy:function(R,D,n){var y=n("ProS");n("ThAp"),n("pmaE"),n("SehX"),n("7uqq");var g=n("zuHt"),S=n("VPsl"),m=n("9u0u"),p=n("lELe"),f=n("d4KN");y.registerLayout(g),y.registerVisual(S),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,m),y.registerPreprocessor(p),f("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(R,D,n){var y=n("MwEJ"),g=n("T4UG"),S=g.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(m,p){return y(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}});R.exports=S},Z6rY:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},g=y;D.default=g},Z8oC:function(R,D,n){var y=n("y1pI");function g(S,m){var p=this.__data__,f=y(p,S);return f<0?(++this.size,p.push([S,m])):p[f][1]=m,this}R.exports=g},Z8zF:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("ProS"),m=n("bYtY"),p=n("IwbS"),f=n("56rv"),d=f.setLabel,l=n("Qxkt"),a=n("tceW"),i=n("y+Vt"),t=n("4fz+"),o=n("iLNv"),e=o.throttle,u=n("sK/D"),r=u.createClipPath,s=n("wr5s"),c=["itemStyle","barBorderWidth"],h=[0,0];m.extend(l.prototype,a);function v(V,Q){var G=V.getArea&&V.getArea();if(V.type==="cartesian2d"){var te=V.getBaseAxis();if(te.type!=="category"||!te.onBand){var q=Q.getLayout("bandWidth");te.isHorizontal()?(G.x-=q,G.width+=q*2):(G.y-=q,G.height+=q*2)}}return G}var A=S.extendChartView({type:"bar",render:function(V,Q,G){this._updateDrawMode(V);var te=V.get("coordinateSystem");return(te==="cartesian2d"||te==="polar")&&(this._isLargeDraw?this._renderLarge(V,Q,G):this._renderNormal(V,Q,G)),this.group},incrementalPrepareRender:function(V,Q,G){this._clear(),this._updateDrawMode(V)},incrementalRender:function(V,Q,G,te){this._incrementalRenderLarge(V,Q)},_updateDrawMode:function(V){var Q=V.pipelineContext.large;(this._isLargeDraw==null||Q^this._isLargeDraw)&&(this._isLargeDraw=Q,this._clear())},_renderNormal:function(V,Q,G){var te=this.group,q=V.getData(),se=this._data,re=V.coordinateSystem,we=re.getBaseAxis(),Oe;re.type==="cartesian2d"?Oe=we.isHorizontal():re.type==="polar"&&(Oe=we.dim==="angle");var Me=V.isAnimationEnabled()?V:null,Qe=V.get("clip",!0),Ve=v(re,q);te.removeClipPath();var dt=V.get("roundCap",!0),Fe=V.get("showBackground",!0),ue=V.getModel("backgroundStyle"),et=ue.get("barBorderRadius")||0,he=[],J=this._backgroundEls||[];q.diff(se).add(function(de){var be=q.getItemModel(de),Te=w[re.type](q,de,be);if(Fe){var Be=w[re.type](q,de),fe=z(re,Oe,Be);fe.useStyle(ue.getBarItemStyle()),re.type==="cartesian2d"&&fe.setShape("r",et),he[de]=fe}if(!q.hasValue(de))return;if(Qe){var xe=E[re.type](Ve,Te);if(xe){te.remove(ke);return}}var ke=T[re.type](de,Te,Oe,Me,!1,dt);q.setItemGraphicEl(de,ke),te.add(ke),I(ke,q,de,be,Te,V,Oe,re.type==="polar")}).update(function(de,be){var Te=q.getItemModel(de),Be=w[re.type](q,de,Te);if(Fe){var fe=J[be];fe.useStyle(ue.getBarItemStyle()),re.type==="cartesian2d"&&fe.setShape("r",et),he[de]=fe;var xe=w[re.type](q,de),ke=K(Oe,xe,re);p.updateProps(fe,{shape:ke},Me,de)}var nt=se.getItemGraphicEl(be);if(!q.hasValue(de)){te.remove(nt);return}if(Qe){var Ct=E[re.type](Ve,Be);if(Ct){te.remove(nt);return}}nt?p.updateProps(nt,{shape:Be},Me,de):nt=T[re.type](de,Be,Oe,Me,!0,dt),q.setItemGraphicEl(de,nt),te.add(nt),I(nt,q,de,Te,Be,V,Oe,re.type==="polar")}).remove(function(de){var be=se.getItemGraphicEl(de);re.type==="cartesian2d"?be&&_(de,Me,be):be&&C(de,Me,be)}).execute();var Y=this._backgroundGroup||(this._backgroundGroup=new t);Y.removeAll();for(var $=0;$<he.length;++$)Y.add(he[$]);te.add(Y),this._backgroundEls=he,this._data=q},_renderLarge:function(V,Q,G){this._clear(),U(V,this.group);var te=V.get("clip",!0)?r(V.coordinateSystem,!1,V):null;te?this.group.setClipPath(te):this.group.removeClipPath()},_incrementalRenderLarge:function(V,Q){this._removeBackground(),U(Q,this.group,!0)},dispose:m.noop,remove:function(V){this._clear(V)},_clear:function(V){var Q=this.group,G=this._data;V&&V.get("animation")&&G&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],G.eachItemGraphicEl(function(te){te.type==="sector"?C(te.dataIndex,V,te):_(te.dataIndex,V,te)})):Q.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),b=Math.max,x=Math.min,E={cartesian2d:function(V,Q){var G=Q.width<0?-1:1,te=Q.height<0?-1:1;G<0&&(Q.x+=Q.width,Q.width=-Q.width),te<0&&(Q.y+=Q.height,Q.height=-Q.height);var q=b(Q.x,V.x),se=x(Q.x+Q.width,V.x+V.width),re=b(Q.y,V.y),we=x(Q.y+Q.height,V.y+V.height);Q.x=q,Q.y=re,Q.width=se-q,Q.height=we-re;var Oe=Q.width<0||Q.height<0;return G<0&&(Q.x+=Q.width,Q.width=-Q.width),te<0&&(Q.y+=Q.height,Q.height=-Q.height),Oe},polar:function(V){return!1}},T={cartesian2d:function(V,Q,G,te,q){var se=new p.Rect({shape:m.extend({},Q),z2:1});if(se.name="item",te){var re=se.shape,we=G?"height":"width",Oe={};re[we]=0,Oe[we]=Q[we],p[q?"updateProps":"initProps"](se,{shape:Oe},te,V)}return se},polar:function(V,Q,G,te,q,se){var re=Q.startAngle<Q.endAngle,we=!G&&se?s:p.Sector,Oe=new we({shape:m.defaults({clockwise:re},Q),z2:1});if(Oe.name="item",te){var Me=Oe.shape,Qe=G?"r":"endAngle",Ve={};Me[Qe]=G?0:Q.startAngle,Ve[Qe]=Q[Qe],p[q?"updateProps":"initProps"](Oe,{shape:Ve},te,V)}return Oe}};function _(V,Q,G){G.style.text=null,p.updateProps(G,{shape:{width:0}},Q,V,function(){G.parent&&G.parent.remove(G)})}function C(V,Q,G){G.style.text=null,p.updateProps(G,{shape:{r:G.shape.r0}},Q,V,function(){G.parent&&G.parent.remove(G)})}var w={cartesian2d:function(V,Q,G){var te=V.getItemLayout(Q),q=G?k(G,te):0,se=te.width>0?1:-1,re=te.height>0?1:-1;return{x:te.x+se*q/2,y:te.y+re*q/2,width:te.width-se*q,height:te.height-re*q}},polar:function(V,Q,G){var te=V.getItemLayout(Q);return{cx:te.cx,cy:te.cy,r0:te.r0,r:te.r,startAngle:te.startAngle,endAngle:te.endAngle}}};function O(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function I(V,Q,G,te,q,se,re,we){var Oe=Q.getItemVisual(G,"color"),Me=Q.getItemVisual(G,"opacity"),Qe=Q.getVisual("borderColor"),Ve=te.getModel("itemStyle"),dt=te.getModel("emphasis.itemStyle").getBarItemStyle();we||V.setShape("r",Ve.get("barBorderRadius")||0),V.useStyle(m.defaults({stroke:O(q)?"none":Qe,fill:O(q)?"none":Oe,opacity:Me},Ve.getBarItemStyle()));var Fe=te.getShallow("cursor");Fe&&V.attr("cursor",Fe);var ue=re?q.height>0?"bottom":"top":q.width>0?"left":"right";we||d(V.style,dt,te,Oe,se,G,ue),O(q)&&(dt.fill=dt.stroke="none"),p.setHoverStyle(V,dt)}function k(V,Q){var G=V.get(c)||0,te=isNaN(Q.width)?Number.MAX_VALUE:Math.abs(Q.width),q=isNaN(Q.height)?Number.MAX_VALUE:Math.abs(Q.height);return Math.min(G,te,q)}var M=i.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,Q){for(var G=Q.points,te=this.__startPoint,q=this.__baseDimIdx,se=0;se<G.length;se+=2)te[q]=G[se+q],V.moveTo(te[0],te[1]),V.lineTo(G[se],G[se+1])}});function U(V,Q,G){var te=V.getData(),q=[],se=te.getLayout("valueAxisHorizontal")?1:0;q[1-se]=te.getLayout("valueAxisStart");var re=te.getLayout("largeDataIndices"),we=te.getLayout("barWidth"),Oe=V.getModel("backgroundStyle"),Me=V.get("showBackground",!0);if(Me){var Qe=te.getLayout("largeBackgroundPoints"),Ve=[];Ve[1-se]=te.getLayout("backgroundStart");var dt=new M({shape:{points:Qe},incremental:!!G,__startPoint:Ve,__baseDimIdx:se,__largeDataIndices:re,__barWidth:we,silent:!0,z2:0});j(dt,Oe,te),Q.add(dt)}var Fe=new M({shape:{points:te.getLayout("largePoints")},incremental:!!G,__startPoint:q,__baseDimIdx:se,__largeDataIndices:re,__barWidth:we});Q.add(Fe),F(Fe,V,te),Fe.seriesIndex=V.seriesIndex,V.get("silent")||(Fe.on("mousedown",P),Fe.on("mousemove",P))}var P=e(function(V){var Q=this,G=X(Q,V.offsetX,V.offsetY);Q.dataIndex=G>=0?G:null},30,!1);function X(V,Q,G){var te=V.__baseDimIdx,q=1-te,se=V.shape.points,re=V.__largeDataIndices,we=Math.abs(V.__barWidth/2),Oe=V.__startPoint[q];h[0]=Q,h[1]=G;for(var Me=h[te],Qe=h[1-te],Ve=Me-we,dt=Me+we,Fe=0,ue=se.length/2;Fe<ue;Fe++){var et=Fe*2,he=se[et+te],J=se[et+q];if(he>=Ve&&he<=dt&&(Oe<=J?Qe>=Oe&&Qe<=J:Qe>=J&&Qe<=Oe))return re[Fe]}return-1}function F(V,Q,G){var te=G.getVisual("borderColor")||G.getVisual("color"),q=Q.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle(q),V.style.fill=null,V.style.stroke=te,V.style.lineWidth=G.getLayout("barWidth")}function j(V,Q,G){var te=Q.get("borderColor")||Q.get("color"),q=Q.getItemStyle(["color","borderColor"]);V.useStyle(q),V.style.fill=null,V.style.stroke=te,V.style.lineWidth=G.getLayout("barWidth")}function K(V,Q,G){var te,q=G.type==="polar";return q?te=G.getArea():te=G.grid.getRect(),q?{cx:te.cx,cy:te.cy,r0:V?te.r0:Q.r0,r:V?te.r:Q.r,startAngle:V?Q.startAngle:0,endAngle:V?Q.endAngle:Math.PI*2}:{x:V?Q.x:te.x,y:V?te.y:Q.y,width:V?Q.width:te.width,height:V?te.height:Q.height}}function z(V,Q,G){var te=V.type==="polar"?p.Sector:p.Rect;return new te({shape:K(Q,G,V),silent:!0,z2:0})}R.exports=A},ZBwS:function(R,D){var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},y=-1,g=1,S=0;n.Diff=function(m,p){return[m,p]},n.prototype.diff_main=function(m,p,f,d){typeof d=="undefined"&&(this.Diff_Timeout<=0?d=Number.MAX_VALUE:d=new Date().getTime()+this.Diff_Timeout*1e3);var l=d;if(m==null||p==null)throw new Error("Null input. (diff_main)");if(m==p)return m?[new n.Diff(S,m)]:[];typeof f=="undefined"&&(f=!0);var a=f,i=this.diff_commonPrefix(m,p),t=m.substring(0,i);m=m.substring(i),p=p.substring(i),i=this.diff_commonSuffix(m,p);var o=m.substring(m.length-i);m=m.substring(0,m.length-i),p=p.substring(0,p.length-i);var e=this.diff_compute_(m,p,a,l);return t&&e.unshift(new n.Diff(S,t)),o&&e.push(new n.Diff(S,o)),this.diff_cleanupMerge(e),e},n.prototype.diff_compute_=function(m,p,f,d){var l;if(!m)return[new n.Diff(g,p)];if(!p)return[new n.Diff(y,m)];var a=m.length>p.length?m:p,i=m.length>p.length?p:m,t=a.indexOf(i);if(t!=-1)return l=[new n.Diff(g,a.substring(0,t)),new n.Diff(S,i),new n.Diff(g,a.substring(t+i.length))],m.length>p.length&&(l[0][0]=l[2][0]=y),l;if(i.length==1)return[new n.Diff(y,m),new n.Diff(g,p)];var o=this.diff_halfMatch_(m,p);if(o){var e=o[0],u=o[1],r=o[2],s=o[3],c=o[4],h=this.diff_main(e,r,f,d),v=this.diff_main(u,s,f,d);return h.concat([new n.Diff(S,c)],v)}return f&&m.length>100&&p.length>100?this.diff_lineMode_(m,p,d):this.diff_bisect_(m,p,d)},n.prototype.diff_lineMode_=function(m,p,f){var d=this.diff_linesToChars_(m,p);m=d.chars1,p=d.chars2;var l=d.lineArray,a=this.diff_main(m,p,!1,f);this.diff_charsToLines_(a,l),this.diff_cleanupSemantic(a),a.push(new n.Diff(S,""));for(var i=0,t=0,o=0,e="",u="";i<a.length;){switch(a[i][0]){case g:o++,u+=a[i][1];break;case y:t++,e+=a[i][1];break;case S:if(t>=1&&o>=1){a.splice(i-t-o,t+o),i=i-t-o;for(var r=this.diff_main(e,u,!1,f),s=r.length-1;s>=0;s--)a.splice(i,0,r[s]);i=i+r.length}o=0,t=0,e="",u="";break}i++}return a.pop(),a},n.prototype.diff_bisect_=function(m,p,f){for(var d=m.length,l=p.length,a=Math.ceil((d+l)/2),i=a,t=2*a,o=new Array(t),e=new Array(t),u=0;u<t;u++)o[u]=-1,e[u]=-1;o[i+1]=0,e[i+1]=0;for(var r=d-l,s=r%2!=0,c=0,h=0,v=0,A=0,b=0;b<a&&!(new Date().getTime()>f);b++){for(var x=-b+c;x<=b-h;x+=2){var E=i+x,T;x==-b||x!=b&&o[E-1]<o[E+1]?T=o[E+1]:T=o[E-1]+1;for(var _=T-x;T<d&&_<l&&m.charAt(T)==p.charAt(_);)T++,_++;if(o[E]=T,T>d)h+=2;else if(_>l)c+=2;else if(s){var C=i+r-x;if(C>=0&&C<t&&e[C]!=-1){var w=d-e[C];if(T>=w)return this.diff_bisectSplit_(m,p,T,_,f)}}}for(var O=-b+v;O<=b-A;O+=2){var C=i+O,w;O==-b||O!=b&&e[C-1]<e[C+1]?w=e[C+1]:w=e[C-1]+1;for(var I=w-O;w<d&&I<l&&m.charAt(d-w-1)==p.charAt(l-I-1);)w++,I++;if(e[C]=w,w>d)A+=2;else if(I>l)v+=2;else if(!s){var E=i+r-O;if(E>=0&&E<t&&o[E]!=-1){var T=o[E],_=i+T-E;if(w=d-w,T>=w)return this.diff_bisectSplit_(m,p,T,_,f)}}}}return[new n.Diff(y,m),new n.Diff(g,p)]},n.prototype.diff_bisectSplit_=function(m,p,f,d,l){var a=m.substring(0,f),i=p.substring(0,d),t=m.substring(f),o=p.substring(d),e=this.diff_main(a,i,!1,l),u=this.diff_main(t,o,!1,l);return e.concat(u)},n.prototype.diff_linesToChars_=function(m,p){var f=[],d={};f[0]="";function l(o){for(var e="",u=0,r=-1,s=f.length;r<o.length-1;){r=o.indexOf(`
`,u),r==-1&&(r=o.length-1);var c=o.substring(u,r+1);(d.hasOwnProperty?d.hasOwnProperty(c):d[c]!==void 0)?e+=String.fromCharCode(d[c]):(s==a&&(c=o.substring(u),r=o.length),e+=String.fromCharCode(s),d[c]=s,f[s++]=c),u=r+1}return e}var a=4e4,i=l(m);a=65535;var t=l(p);return{chars1:i,chars2:t,lineArray:f}},n.prototype.diff_charsToLines_=function(m,p){for(var f=0;f<m.length;f++){for(var d=m[f][1],l=[],a=0;a<d.length;a++)l[a]=p[d.charCodeAt(a)];m[f][1]=l.join("")}},n.prototype.diff_commonPrefix=function(m,p){if(!m||!p||m.charAt(0)!=p.charAt(0))return 0;for(var f=0,d=Math.min(m.length,p.length),l=d,a=0;f<l;)m.substring(a,l)==p.substring(a,l)?(f=l,a=f):d=l,l=Math.floor((d-f)/2+f);return l},n.prototype.diff_commonSuffix=function(m,p){if(!m||!p||m.charAt(m.length-1)!=p.charAt(p.length-1))return 0;for(var f=0,d=Math.min(m.length,p.length),l=d,a=0;f<l;)m.substring(m.length-l,m.length-a)==p.substring(p.length-l,p.length-a)?(f=l,a=f):d=l,l=Math.floor((d-f)/2+f);return l},n.prototype.diff_commonOverlap_=function(m,p){var f=m.length,d=p.length;if(f==0||d==0)return 0;f>d?m=m.substring(f-d):f<d&&(p=p.substring(0,f));var l=Math.min(f,d);if(m==p)return l;for(var a=0,i=1;;){var t=m.substring(l-i),o=p.indexOf(t);if(o==-1)return a;i+=o,(o==0||m.substring(l-i)==p.substring(0,i))&&(a=i,i++)}},n.prototype.diff_halfMatch_=function(m,p){if(this.Diff_Timeout<=0)return null;var f=m.length>p.length?m:p,d=m.length>p.length?p:m;if(f.length<4||d.length*2<f.length)return null;var l=this;function a(h,v,A){for(var b=h.substring(A,A+Math.floor(h.length/4)),x=-1,E="",T,_,C,w;(x=v.indexOf(b,x+1))!=-1;){var O=l.diff_commonPrefix(h.substring(A),v.substring(x)),I=l.diff_commonSuffix(h.substring(0,A),v.substring(0,x));E.length<I+O&&(E=v.substring(x-I,x)+v.substring(x,x+O),T=h.substring(0,A-I),_=h.substring(A+O),C=v.substring(0,x-I),w=v.substring(x+O))}return E.length*2>=h.length?[T,_,C,w,E]:null}var i=a(f,d,Math.ceil(f.length/4)),t=a(f,d,Math.ceil(f.length/2)),o;if(!i&&!t)return null;t?i?o=i[4].length>t[4].length?i:t:o=t:o=i;var e,u,r,s;m.length>p.length?(e=o[0],u=o[1],r=o[2],s=o[3]):(r=o[0],s=o[1],e=o[2],u=o[3]);var c=o[4];return[e,u,r,s,c]},n.prototype.diff_cleanupSemantic=function(m){for(var p=!1,f=[],d=0,l=null,a=0,i=0,t=0,o=0,e=0;a<m.length;)m[a][0]==S?(f[d++]=a,i=o,t=e,o=0,e=0,l=m[a][1]):(m[a][0]==g?o+=m[a][1].length:e+=m[a][1].length,l&&l.length<=Math.max(i,t)&&l.length<=Math.max(o,e)&&(m.splice(f[d-1],0,new n.Diff(y,l)),m[f[d-1]+1][0]=g,d--,d--,a=d>0?f[d-1]:-1,i=0,t=0,o=0,e=0,l=null,p=!0)),a++;for(p&&this.diff_cleanupMerge(m),this.diff_cleanupSemanticLossless(m),a=1;a<m.length;){if(m[a-1][0]==y&&m[a][0]==g){var u=m[a-1][1],r=m[a][1],s=this.diff_commonOverlap_(u,r),c=this.diff_commonOverlap_(r,u);s>=c?(s>=u.length/2||s>=r.length/2)&&(m.splice(a,0,new n.Diff(S,r.substring(0,s))),m[a-1][1]=u.substring(0,u.length-s),m[a+1][1]=r.substring(s),a++):(c>=u.length/2||c>=r.length/2)&&(m.splice(a,0,new n.Diff(S,u.substring(0,c))),m[a-1][0]=g,m[a-1][1]=r.substring(0,r.length-c),m[a+1][0]=y,m[a+1][1]=u.substring(c),a++),a++}a++}},n.prototype.diff_cleanupSemanticLossless=function(m){function p(c,h){if(!c||!h)return 6;var v=c.charAt(c.length-1),A=h.charAt(0),b=v.match(n.nonAlphaNumericRegex_),x=A.match(n.nonAlphaNumericRegex_),E=b&&v.match(n.whitespaceRegex_),T=x&&A.match(n.whitespaceRegex_),_=E&&v.match(n.linebreakRegex_),C=T&&A.match(n.linebreakRegex_),w=_&&c.match(n.blanklineEndRegex_),O=C&&h.match(n.blanklineStartRegex_);return w||O?5:_||C?4:b&&!E&&T?3:E||T?2:b||x?1:0}for(var f=1;f<m.length-1;){if(m[f-1][0]==S&&m[f+1][0]==S){var d=m[f-1][1],l=m[f][1],a=m[f+1][1],i=this.diff_commonSuffix(d,l);if(i){var t=l.substring(l.length-i);d=d.substring(0,d.length-i),l=t+l.substring(0,l.length-i),a=t+a}for(var o=d,e=l,u=a,r=p(d,l)+p(l,a);l.charAt(0)===a.charAt(0);){d+=l.charAt(0),l=l.substring(1)+a.charAt(0),a=a.substring(1);var s=p(d,l)+p(l,a);s>=r&&(r=s,o=d,e=l,u=a)}m[f-1][1]!=o&&(o?m[f-1][1]=o:(m.splice(f-1,1),f--),m[f][1]=e,u?m[f+1][1]=u:(m.splice(f+1,1),f--))}f++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(m){for(var p=!1,f=[],d=0,l=null,a=0,i=!1,t=!1,o=!1,e=!1;a<m.length;)m[a][0]==S?(m[a][1].length<this.Diff_EditCost&&(o||e)?(f[d++]=a,i=o,t=e,l=m[a][1]):(d=0,l=null),o=e=!1):(m[a][0]==y?e=!0:o=!0,l&&(i&&t&&o&&e||l.length<this.Diff_EditCost/2&&i+t+o+e==3)&&(m.splice(f[d-1],0,new n.Diff(y,l)),m[f[d-1]+1][0]=g,d--,l=null,i&&t?(o=e=!0,d=0):(d--,a=d>0?f[d-1]:-1,o=e=!1),p=!0)),a++;p&&this.diff_cleanupMerge(m)},n.prototype.diff_cleanupMerge=function(m){m.push(new n.Diff(S,""));for(var p=0,f=0,d=0,l="",a="",i;p<m.length;)switch(m[p][0]){case g:d++,a+=m[p][1],p++;break;case y:f++,l+=m[p][1],p++;break;case S:f+d>1?(f!==0&&d!==0&&(i=this.diff_commonPrefix(a,l),i!==0&&(p-f-d>0&&m[p-f-d-1][0]==S?m[p-f-d-1][1]+=a.substring(0,i):(m.splice(0,0,new n.Diff(S,a.substring(0,i))),p++),a=a.substring(i),l=l.substring(i)),i=this.diff_commonSuffix(a,l),i!==0&&(m[p][1]=a.substring(a.length-i)+m[p][1],a=a.substring(0,a.length-i),l=l.substring(0,l.length-i))),p-=f+d,m.splice(p,f+d),l.length&&(m.splice(p,0,new n.Diff(y,l)),p++),a.length&&(m.splice(p,0,new n.Diff(g,a)),p++),p++):p!==0&&m[p-1][0]==S?(m[p-1][1]+=m[p][1],m.splice(p,1)):p++,d=0,f=0,l="",a="";break}m[m.length-1][1]===""&&m.pop();var t=!1;for(p=1;p<m.length-1;)m[p-1][0]==S&&m[p+1][0]==S&&(m[p][1].substring(m[p][1].length-m[p-1][1].length)==m[p-1][1]?(m[p][1]=m[p-1][1]+m[p][1].substring(0,m[p][1].length-m[p-1][1].length),m[p+1][1]=m[p-1][1]+m[p+1][1],m.splice(p-1,1),t=!0):m[p][1].substring(0,m[p+1][1].length)==m[p+1][1]&&(m[p-1][1]+=m[p+1][1],m[p][1]=m[p][1].substring(m[p+1][1].length)+m[p+1][1],m.splice(p+1,1),t=!0)),p++;t&&this.diff_cleanupMerge(m)},n.prototype.diff_xIndex=function(m,p){var f=0,d=0,l=0,a=0,i;for(i=0;i<m.length&&!(m[i][0]!==g&&(f+=m[i][1].length),m[i][0]!==y&&(d+=m[i][1].length),f>p);i++)l=f,a=d;return m.length!=i&&m[i][0]===y?a:a+(p-l)},n.prototype.diff_prettyHtml=function(m){for(var p=[],f=/&/g,d=/</g,l=/>/g,a=/\n/g,i=0;i<m.length;i++){var t=m[i][0],o=m[i][1],e=o.replace(f,"&amp;").replace(d,"&lt;").replace(l,"&gt;").replace(a,"&para;<br>");switch(t){case g:p[i]='<ins style="background:#e6ffe6;">'+e+"</ins>";break;case y:p[i]='<del style="background:#ffe6e6;">'+e+"</del>";break;case S:p[i]="<span>"+e+"</span>";break}}return p.join("")},n.prototype.diff_text1=function(m){for(var p=[],f=0;f<m.length;f++)m[f][0]!==g&&(p[f]=m[f][1]);return p.join("")},n.prototype.diff_text2=function(m){for(var p=[],f=0;f<m.length;f++)m[f][0]!==y&&(p[f]=m[f][1]);return p.join("")},n.prototype.diff_levenshtein=function(m){for(var p=0,f=0,d=0,l=0;l<m.length;l++){var a=m[l][0],i=m[l][1];switch(a){case g:f+=i.length;break;case y:d+=i.length;break;case S:p+=Math.max(f,d),f=0,d=0;break}}return p+=Math.max(f,d),p},n.prototype.diff_toDelta=function(m){for(var p=[],f=0;f<m.length;f++)switch(m[f][0]){case g:p[f]="+"+encodeURI(m[f][1]);break;case y:p[f]="-"+m[f][1].length;break;case S:p[f]="="+m[f][1].length;break}return p.join(" ").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(m,p){for(var f=[],d=0,l=0,a=p.split(/\t/g),i=0;i<a.length;i++){var t=a[i].substring(1);switch(a[i].charAt(0)){case"+":try{f[d++]=new n.Diff(g,decodeURI(t))}catch(u){throw new Error("Illegal escape in diff_fromDelta: "+t)}break;case"-":case"=":var o=parseInt(t,10);if(isNaN(o)||o<0)throw new Error("Invalid number in diff_fromDelta: "+t);var e=m.substring(l,l+=o);a[i].charAt(0)=="="?f[d++]=new n.Diff(S,e):f[d++]=new n.Diff(y,e);break;default:if(a[i])throw new Error("Invalid diff operation in diff_fromDelta: "+a[i])}}if(l!=m.length)throw new Error("Delta length ("+l+") does not equal source text length ("+m.length+").");return f},n.prototype.match_main=function(m,p,f){if(m==null||p==null||f==null)throw new Error("Null input. (match_main)");return f=Math.max(0,Math.min(f,m.length)),m==p?0:m.length?m.substring(f,f+p.length)==p?f:this.match_bitap_(m,p,f):-1},n.prototype.match_bitap_=function(m,p,f){if(p.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var d=this.match_alphabet_(p),l=this;function a(T,_){var C=T/p.length,w=Math.abs(f-_);return l.Match_Distance?C+w/l.Match_Distance:w?1:C}var i=this.Match_Threshold,t=m.indexOf(p,f);t!=-1&&(i=Math.min(a(0,t),i),t=m.lastIndexOf(p,f+p.length),t!=-1&&(i=Math.min(a(0,t),i)));var o=1<<p.length-1;t=-1;for(var e,u,r=p.length+m.length,s,c=0;c<p.length;c++){for(e=0,u=r;e<u;)a(c,f+u)<=i?e=u:r=u,u=Math.floor((r-e)/2+e);r=u;var h=Math.max(1,f-u+1),v=Math.min(f+u,m.length)+p.length,A=Array(v+2);A[v+1]=(1<<c)-1;for(var b=v;b>=h;b--){var x=d[m.charAt(b-1)];if(c===0?A[b]=(A[b+1]<<1|1)&x:A[b]=(A[b+1]<<1|1)&x|((s[b+1]|s[b])<<1|1)|s[b+1],A[b]&o){var E=a(c,b-1);if(E<=i)if(i=E,t=b-1,t>f)h=Math.max(1,2*f-t);else break}}if(a(c+1,f)>i)break;s=A}return t},n.prototype.match_alphabet_=function(m){for(var p={},f=0;f<m.length;f++)p[m.charAt(f)]=0;for(var f=0;f<m.length;f++)p[m.charAt(f)]|=1<<m.length-f-1;return p},n.prototype.patch_addContext_=function(m,p){if(p.length==0)return;if(m.start2===null)throw Error("patch not initialized");for(var f=p.substring(m.start2,m.start2+m.length1),d=0;p.indexOf(f)!=p.lastIndexOf(f)&&f.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)d+=this.Patch_Margin,f=p.substring(m.start2-d,m.start2+m.length1+d);d+=this.Patch_Margin;var l=p.substring(m.start2-d,m.start2);l&&m.diffs.unshift(new n.Diff(S,l));var a=p.substring(m.start2+m.length1,m.start2+m.length1+d);a&&m.diffs.push(new n.Diff(S,a)),m.start1-=l.length,m.start2-=l.length,m.length1+=l.length+a.length,m.length2+=l.length+a.length},n.prototype.patch_make=function(m,p,f){var d,l;if(typeof m=="string"&&typeof p=="string"&&typeof f=="undefined")d=m,l=this.diff_main(d,p,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(m&&typeof m=="object"&&typeof p=="undefined"&&typeof f=="undefined")l=m,d=this.diff_text1(l);else if(typeof m=="string"&&p&&typeof p=="object"&&typeof f=="undefined")d=m,l=p;else if(typeof m=="string"&&typeof p=="string"&&f&&typeof f=="object")d=m,l=f;else throw new Error("Unknown call format to patch_make.");if(l.length===0)return[];for(var a=[],i=new n.patch_obj,t=0,o=0,e=0,u=d,r=d,s=0;s<l.length;s++){var c=l[s][0],h=l[s][1];!t&&c!==S&&(i.start1=o,i.start2=e);switch(c){case g:i.diffs[t++]=l[s],i.length2+=h.length,r=r.substring(0,e)+h+r.substring(e);break;case y:i.length1+=h.length,i.diffs[t++]=l[s],r=r.substring(0,e)+r.substring(e+h.length);break;case S:h.length<=2*this.Patch_Margin&&t&&l.length!=s+1?(i.diffs[t++]=l[s],i.length1+=h.length,i.length2+=h.length):h.length>=2*this.Patch_Margin&&(t&&(this.patch_addContext_(i,u),a.push(i),i=new n.patch_obj,t=0,u=r,o=e));break}c!==g&&(o+=h.length),c!==y&&(e+=h.length)}return t&&(this.patch_addContext_(i,u),a.push(i)),a},n.prototype.patch_deepCopy=function(m){for(var p=[],f=0;f<m.length;f++){var d=m[f],l=new n.patch_obj;l.diffs=[];for(var a=0;a<d.diffs.length;a++)l.diffs[a]=new n.Diff(d.diffs[a][0],d.diffs[a][1]);l.start1=d.start1,l.start2=d.start2,l.length1=d.length1,l.length2=d.length2,p[f]=l}return p},n.prototype.patch_apply=function(m,p){if(m.length==0)return[p,[]];m=this.patch_deepCopy(m);var f=this.patch_addPadding(m);p=f+p+f,this.patch_splitMax(m);for(var d=0,l=[],a=0;a<m.length;a++){var i=m[a].start2+d,t=this.diff_text1(m[a].diffs),o,e=-1;if(t.length>this.Match_MaxBits?(o=this.match_main(p,t.substring(0,this.Match_MaxBits),i),o!=-1&&(e=this.match_main(p,t.substring(t.length-this.Match_MaxBits),i+t.length-this.Match_MaxBits),(e==-1||o>=e)&&(o=-1))):o=this.match_main(p,t,i),o==-1)l[a]=!1,d-=m[a].length2-m[a].length1;else{l[a]=!0,d=o-i;var u;if(e==-1?u=p.substring(o,o+t.length):u=p.substring(o,e+this.Match_MaxBits),t==u)p=p.substring(0,o)+this.diff_text2(m[a].diffs)+p.substring(o+t.length);else{var r=this.diff_main(t,u,!1);if(t.length>this.Match_MaxBits&&this.diff_levenshtein(r)/t.length>this.Patch_DeleteThreshold)l[a]=!1;else{this.diff_cleanupSemanticLossless(r);for(var s=0,c,h=0;h<m[a].diffs.length;h++){var v=m[a].diffs[h];v[0]!==S&&(c=this.diff_xIndex(r,s)),v[0]===g?p=p.substring(0,o+c)+v[1]+p.substring(o+c):v[0]===y&&(p=p.substring(0,o+c)+p.substring(o+this.diff_xIndex(r,s+v[1].length))),v[0]!==y&&(s+=v[1].length)}}}}}return p=p.substring(f.length,p.length-f.length),[p,l]},n.prototype.patch_addPadding=function(m){for(var p=this.Patch_Margin,f="",d=1;d<=p;d++)f+=String.fromCharCode(d);for(var d=0;d<m.length;d++)m[d].start1+=p,m[d].start2+=p;var l=m[0],a=l.diffs;if(a.length==0||a[0][0]!=S)a.unshift(new n.Diff(S,f)),l.start1-=p,l.start2-=p,l.length1+=p,l.length2+=p;else if(p>a[0][1].length){var i=p-a[0][1].length;a[0][1]=f.substring(a[0][1].length)+a[0][1],l.start1-=i,l.start2-=i,l.length1+=i,l.length2+=i}if(l=m[m.length-1],a=l.diffs,a.length==0||a[a.length-1][0]!=S)a.push(new n.Diff(S,f)),l.length1+=p,l.length2+=p;else if(p>a[a.length-1][1].length){var i=p-a[a.length-1][1].length;a[a.length-1][1]+=f.substring(0,i),l.length1+=i,l.length2+=i}return f},n.prototype.patch_splitMax=function(m){for(var p=this.Match_MaxBits,f=0;f<m.length;f++){if(m[f].length1<=p)continue;var d=m[f];m.splice(f--,1);for(var l=d.start1,a=d.start2,i="";d.diffs.length!==0;){var t=new n.patch_obj,o=!0;for(t.start1=l-i.length,t.start2=a-i.length,i!==""&&(t.length1=t.length2=i.length,t.diffs.push(new n.Diff(S,i)));d.diffs.length!==0&&t.length1<p-this.Patch_Margin;){var e=d.diffs[0][0],u=d.diffs[0][1];e===g?(t.length2+=u.length,a+=u.length,t.diffs.push(d.diffs.shift()),o=!1):e===y&&t.diffs.length==1&&t.diffs[0][0]==S&&u.length>2*p?(t.length1+=u.length,l+=u.length,o=!1,t.diffs.push(new n.Diff(e,u)),d.diffs.shift()):(u=u.substring(0,p-t.length1-this.Patch_Margin),t.length1+=u.length,l+=u.length,e===S?(t.length2+=u.length,a+=u.length):o=!1,t.diffs.push(new n.Diff(e,u)),u==d.diffs[0][1]?d.diffs.shift():d.diffs[0][1]=d.diffs[0][1].substring(u.length))}i=this.diff_text2(t.diffs),i=i.substring(i.length-this.Patch_Margin);var r=this.diff_text1(d.diffs).substring(0,this.Patch_Margin);r!==""&&(t.length1+=r.length,t.length2+=r.length,t.diffs.length!==0&&t.diffs[t.diffs.length-1][0]===S?t.diffs[t.diffs.length-1][1]+=r:t.diffs.push(new n.Diff(S,r))),o||m.splice(++f,0,t)}}},n.prototype.patch_toText=function(m){for(var p=[],f=0;f<m.length;f++)p[f]=m[f];return p.join("")},n.prototype.patch_fromText=function(m){var p=[];if(!m)return p;for(var f=m.split(`
`),d=0,l=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;d<f.length;){var a=f[d].match(l);if(!a)throw new Error("Invalid patch string: "+f[d]);var i=new n.patch_obj;for(p.push(i),i.start1=parseInt(a[1],10),a[2]===""?(i.start1--,i.length1=1):a[2]=="0"?i.length1=0:(i.start1--,i.length1=parseInt(a[2],10)),i.start2=parseInt(a[3],10),a[4]===""?(i.start2--,i.length2=1):a[4]=="0"?i.length2=0:(i.start2--,i.length2=parseInt(a[4],10)),d++;d<f.length;){var t=f[d].charAt(0);try{var o=decodeURI(f[d].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+o)}if(t=="-")i.diffs.push(new n.Diff(y,o));else if(t=="+")i.diffs.push(new n.Diff(g,o));else if(t==" ")i.diffs.push(new n.Diff(S,o));else{if(t=="@")break;if(!(t===""))throw new Error('Invalid patch mode "'+t+'" in: '+o)}d++}}return p},n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},n.patch_obj.prototype.toString=function(){var m,p;this.length1===0?m=this.start1+",0":this.length1==1?m=this.start1+1:m=this.start1+1+","+this.length1,this.length2===0?p=this.start2+",0":this.length2==1?p=this.start2+1:p=this.start2+1+","+this.length2;for(var f=["@@ -"+m+" +"+p+` @@
`],d,l=0;l<this.diffs.length;l++){switch(this.diffs[l][0]){case g:d="+";break;case y:d="-";break;case S:d=" ";break}f[l+1]=d+encodeURI(this.diffs[l][1])+`
`}return f.join("").replace(/%20/g," ")},R.exports=n,R.exports.diff_match_patch=n,R.exports.DIFF_DELETE=y,R.exports.DIFF_INSERT=g,R.exports.DIFF_EQUAL=S},ZCgT:function(R,D,n){var y=n("tLB3"),g=1/0,S=17976931348623157e292;function m(p){if(!p)return p===0?p:0;if(p=y(p),p===g||p===-g){var f=p<0?-1:1;return f*S}return p===p?p:0}R.exports=m},ZLWo:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},ZMnZ:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("2oIt")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="UpOutlined";var i=m.forwardRef(a);D.default=i},ZTPi:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("q1tI"),f=n("rePB"),d=n("ODXe"),l=n("Ff2n"),a=n("VTBJ"),i=n("TSYQ"),t=n.n(i),o=n("Zm9Q"),e=n("6cGi"),u=n("KQm4"),r=n("xEkU"),s=n.n(r),c=n("1OyB"),h=n("vuIU"),v=n("Ji7U"),A=n("LK+K"),b=n("m+aA"),x=n("Kwbf"),E=n("c+Xe"),T=n("bdgK"),_="rc-observer-key",C=function(en){Object(v.a)(Yn,en);var Tn=Object(A.a)(Yn);function Yn(){var Yt;return Object(c.a)(this,Yn),Yt=Tn.apply(this,arguments),Yt.resizeObserver=null,Yt.childNode=null,Yt.currentElement=null,Yt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Yt.onResize=function(Dt){var Bt=Yt.props.onResize,Wt=Dt[0].target,Xt=Wt.getBoundingClientRect(),kt=Xt.width,hr=Xt.height,br=Wt.offsetWidth,wr=Wt.offsetHeight,Fr=Math.floor(kt),Xn=Math.floor(hr);if(Yt.state.width!==Fr||Yt.state.height!==Xn||Yt.state.offsetWidth!==br||Yt.state.offsetHeight!==wr){var Fn={width:Fr,height:Xn,offsetWidth:br,offsetHeight:wr};Yt.setState(Fn),Bt&&Promise.resolve().then(function(){Bt(Object(a.a)(Object(a.a)({},Fn),{},{offsetWidth:br,offsetHeight:wr}))})}},Yt.setChildNode=function(Dt){Yt.childNode=Dt},Yt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var Dt=this.props.disabled;if(Dt){this.destroyObserver();return}var Bt=Object(b.a)(this.childNode||this),Wt=Bt!==this.currentElement;Wt&&(this.destroyObserver(),this.currentElement=Bt),!this.resizeObserver&&Bt&&(this.resizeObserver=new T.default(this.onResize),this.resizeObserver.observe(Bt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var Dt=this.props.children,Bt=Object(o.a)(Dt);if(Bt.length>1)Object(x.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Bt.length===0)return Object(x.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Wt=Bt[0];if(p.isValidElement(Wt)&&Object(E.c)(Wt)){var Xt=Wt.ref;Bt[0]=p.cloneElement(Wt,{ref:Object(E.a)(Xt,this.setChildNode)})}return Bt.length===1?Bt[0]:Bt.map(function(kt,hr){return!p.isValidElement(kt)||"key"in kt&&kt.key!==null?kt:p.cloneElement(kt,{key:"".concat(_,"-").concat(hr)})})}}]),Yn}(p.Component);C.displayName="ResizeObserver";var w=C;function O(en){var Tn=Object(p.useRef)(),Yn=Object(p.useRef)(!1);function Yt(){for(var Dt=arguments.length,Bt=new Array(Dt),Wt=0;Wt<Dt;Wt++)Bt[Wt]=arguments[Wt];Yn.current||(s.a.cancel(Tn.current),Tn.current=s()(function(){en.apply(void 0,Bt)}))}return Object(p.useEffect)(function(){return function(){Yn.current=!0,s.a.cancel(Tn.current)}},[]),Yt}function I(en){var Tn=Object(p.useRef)([]),Yn=Object(p.useState)({}),Yt=Object(d.a)(Yn,2),Dt=Yt[1],Bt=Object(p.useRef)(typeof en=="function"?en():en),Wt=O(function(){var kt=Bt.current;Tn.current.forEach(function(hr){kt=hr(kt)}),Tn.current=[],Bt.current=kt,Dt({})});function Xt(kt){Tn.current.push(kt),Wt()}return[Bt.current,Xt]}var k=n("4IlW");function M(en,Tn){var Yn,Yt=en.prefixCls,Dt=en.id,Bt=en.active,Wt=en.rtl,Xt=en.tab,kt=Xt.key,hr=Xt.tab,br=Xt.disabled,wr=Xt.closeIcon,Fr=en.tabBarGutter,Xn=en.tabPosition,Fn=en.closable,hi=en.renderWrapper,An=en.removeAriaLabel,jr=en.editable,In=en.onClick,Qn=en.onRemove,qn=en.onFocus,si="".concat(Yt,"-tab");p.useEffect(function(){return Qn},[]);var Ci={};Xn==="top"||Xn==="bottom"?Ci[Wt?"marginLeft":"marginRight"]=Fr:Ci.marginBottom=Fr;var ki=jr&&Fn!==!1&&!br;function Ri(aa){if(br)return;In(aa)}function oa(aa){aa.preventDefault(),aa.stopPropagation(),jr.onEdit("remove",{key:kt,event:aa})}var ma=p.createElement("div",{key:kt,ref:Tn,className:t()(si,(Yn={},Object(f.a)(Yn,"".concat(si,"-with-remove"),ki),Object(f.a)(Yn,"".concat(si,"-active"),Bt),Object(f.a)(Yn,"".concat(si,"-disabled"),br),Yn)),style:Ci,onClick:Ri},p.createElement("div",{role:"tab","aria-selected":Bt,id:Dt&&"".concat(Dt,"-tab-").concat(kt),className:"".concat(si,"-btn"),"aria-controls":Dt&&"".concat(Dt,"-panel-").concat(kt),"aria-disabled":br,tabIndex:br?null:0,onClick:function(ba){ba.stopPropagation(),Ri(ba)},onKeyDown:function(ba){[k.a.SPACE,k.a.ENTER].includes(ba.which)&&(ba.preventDefault(),Ri(ba))},onFocus:qn},hr),ki&&p.createElement("button",{type:"button","aria-label":An||"remove",tabIndex:0,className:"".concat(si,"-remove"),onClick:function(ba){ba.stopPropagation(),oa(ba)}},wr||jr.removeIcon||"\xD7"));return hi&&(ma=hi(ma)),ma}var U=p.forwardRef(M),P={width:0,height:0,left:0,top:0};function X(en,Tn,Yn){return Object(p.useMemo)(function(){for(var Yt,Dt=new Map,Bt=Tn.get((Yt=en[0])===null||Yt===void 0?void 0:Yt.key)||P,Wt=Bt.left+Bt.width,Xt=0;Xt<en.length;Xt+=1){var kt=en[Xt].key,hr=Tn.get(kt);if(!hr){var br;hr=Tn.get((br=en[Xt-1])===null||br===void 0?void 0:br.key)||P}var wr=Dt.get(kt)||Object(a.a)({},hr);wr.right=Wt-wr.left-wr.width,Dt.set(kt,wr)}return Dt},[en.map(function(Yt){return Yt.key}).join("_"),Tn,Yn])}var F={width:0,height:0,left:0,top:0,right:0};function j(en,Tn,Yn,Yt,Dt){var Bt=Dt.tabs,Wt=Dt.tabPosition,Xt=Dt.rtl,kt,hr,br;["top","bottom"].includes(Wt)?(kt="width",hr=Xt?"right":"left",br=Math.abs(Tn.left)):(kt="height",hr="top",br=-Tn.top);var wr=Tn[kt],Fr=Yn[kt],Xn=Yt[kt],Fn=wr;return Fr+Xn>wr&&(Fn=wr-Xn),Object(p.useMemo)(function(){if(!Bt.length)return[0,0];for(var hi=Bt.length,An=hi,jr=0;jr<hi;jr+=1){var In=en.get(Bt[jr].key)||F;if(In[hr]+In[kt]>br+Fn){An=jr-1;break}}for(var Qn=0,qn=hi-1;qn>=0;qn-=1){var si=en.get(Bt[qn].key)||F;if(si[hr]<br){Qn=qn+1;break}}return[Qn,An]},[en,br,Fn,Wt,Bt.map(function(hi){return hi.key}).join("_"),Xt])}var K=n("wx14"),z=n("JX7q"),V=n("I8Z2"),Q=n("bT9E"),G=n("2GS6"),te=n("Gytx"),q=n.n(te),se=n("U8pU"),re=/iPhone/i,we=/iPod/i,Oe=/iPad/i,Me=/\bAndroid(?:.+)Mobile\b/i,Qe=/Android/i,Ve=/\bAndroid(?:.+)SD4930UR\b/i,dt=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Fe=/Windows Phone/i,ue=/\bWindows(?:.+)ARM\b/i,et=/BlackBerry/i,he=/BB10/i,J=/Opera Mini/i,Y=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i;function de(en,Tn){return en.test(Tn)}function be(en){var Tn=en||(typeof navigator!="undefined"?navigator.userAgent:""),Yn=(Tn||"").split("[FBAN");if(typeof Yn[1]!="undefined"){var Yt=Yn,Dt=Object(d.a)(Yt,1);Tn=Dt[0]}if(Yn=Tn.split("Twitter"),typeof Yn[1]!="undefined"){var Bt=Yn,Wt=Object(d.a)(Bt,1);Tn=Wt[0]}var Xt={apple:{phone:de(re,Tn)&&!de(Fe,Tn),ipod:de(we,Tn),tablet:!de(re,Tn)&&de(Oe,Tn)&&!de(Fe,Tn),device:(de(re,Tn)||de(we,Tn)||de(Oe,Tn))&&!de(Fe,Tn)},amazon:{phone:de(Ve,Tn),tablet:!de(Ve,Tn)&&de(dt,Tn),device:de(Ve,Tn)||de(dt,Tn)},android:{phone:!de(Fe,Tn)&&de(Ve,Tn)||!de(Fe,Tn)&&de(Me,Tn),tablet:!de(Fe,Tn)&&!de(Ve,Tn)&&!de(Me,Tn)&&(de(dt,Tn)||de(Qe,Tn)),device:!de(Fe,Tn)&&(de(Ve,Tn)||de(dt,Tn)||de(Me,Tn)||de(Qe,Tn))||de(/\bokhttp\b/i,Tn)},windows:{phone:de(Fe,Tn),tablet:de(ue,Tn),device:de(Fe,Tn)||de(ue,Tn)},other:{blackberry:de(et,Tn),blackberry10:de(he,Tn),opera:de(J,Tn),firefox:de($,Tn),chrome:de(Y,Tn),device:de(et,Tn)||de(he,Tn)||de(J,Tn)||de($,Tn)||de(Y,Tn)},any:null,phone:null,tablet:null};return Xt.any=Xt.apple.device||Xt.android.device||Xt.windows.device||Xt.other.device,Xt.phone=Xt.apple.phone||Xt.android.phone||Xt.windows.phone,Xt.tablet=Xt.apple.tablet||Xt.android.tablet||Xt.windows.tablet,Xt}var Te=Object(a.a)(Object(a.a)({},be()),{},{isMobile:be}),Be=Te;function fe(){}function xe(en,Tn,Yn){var Yt=Tn||"";return en.key||"".concat(Yt,"item_").concat(Yn)}function ke(en){return"".concat(en,"-menu-")}function nt(en,Tn){var Yn=-1;p.Children.forEach(en,function(Yt){Yn+=1,Yt&&Yt.type&&Yt.type.isMenuItemGroup?p.Children.forEach(Yt.props.children,function(Dt){Yn+=1,Tn(Dt,Yn)}):Tn(Yt,Yn)})}function Ct(en,Tn,Yn){if(!en||Yn.find)return;p.Children.forEach(en,function(Yt){if(Yt){var Dt=Yt.type;if(!Dt||!(Dt.isSubMenu||Dt.isMenuItem||Dt.isMenuItemGroup))return;Tn.indexOf(Yt.key)!==-1?Yn.find=!0:Yt.props.children&&Ct(Yt.props.children,Tn,Yn)}})}var pt=["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"],He=function(Tn){var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=Tn&&typeof Tn.getBoundingClientRect=="function"&&Tn.getBoundingClientRect().width;if(Yt){if(Yn){var Dt=getComputedStyle(Tn),Bt=Dt.marginLeft,Wt=Dt.marginRight;Yt+=+Bt.replace("px","")+ +Wt.replace("px","")}Yt=+Yt.toFixed(6)}return Yt||0},nr=function(Tn,Yn,Yt){Tn&&Object(se.a)(Tn.style)==="object"&&(Tn.style[Yn]=Yt)},ht=function(){return Be.any},Gt=n("i8i4"),pr=n("uciX"),Qt=n("wgJM"),Ht=n("8XRh"),Jt={adjustX:1,adjustY:1},Ge={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]}},pe={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]}},oe=Ge,ct=0,qe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},me=function(Tn,Yn,Yt){var Dt=ke(Yn),Bt=Tn.getState();Tn.setState({defaultActiveFirst:Object(a.a)(Object(a.a)({},Bt.defaultActiveFirst),{},Object(f.a)({},Dt,Yt))})},Kt=function(en){Object(v.a)(Yn,en);var Tn=Object(A.a)(Yn);function Yn(Yt){var Dt;Object(c.a)(this,Yn),Dt=Tn.call(this,Yt),Dt.onDestroy=function(br){Dt.props.onDestroy(br)},Dt.onKeyDown=function(br){var wr=br.keyCode,Fr=Dt.menuInstance,Xn=Dt.props.store,Fn=Dt.getVisible();if(wr===k.a.ENTER)return Dt.onTitleClick(br),me(Xn,Dt.props.eventKey,!0),!0;if(wr===k.a.RIGHT)return Fn?Fr.onKeyDown(br):(Dt.triggerOpenChange(!0),me(Xn,Dt.props.eventKey,!0)),!0;if(wr===k.a.LEFT){var hi;if(Fn)hi=Fr.onKeyDown(br);else return;return hi||(Dt.triggerOpenChange(!1),hi=!0),hi}return Fn&&(wr===k.a.UP||wr===k.a.DOWN)?Fr.onKeyDown(br):void 0},Dt.onOpenChange=function(br){Dt.props.onOpenChange(br)},Dt.onPopupVisibleChange=function(br){Dt.triggerOpenChange(br,br?"mouseenter":"mouseleave")},Dt.onMouseEnter=function(br){var wr=Dt.props,Fr=wr.eventKey,Xn=wr.onMouseEnter,Fn=wr.store;me(Fn,Dt.props.eventKey,!1),Xn({key:Fr,domEvent:br})},Dt.onMouseLeave=function(br){var wr=Dt.props,Fr=wr.parentMenu,Xn=wr.eventKey,Fn=wr.onMouseLeave;Fr.subMenuInstance=Object(z.a)(Dt),Fn({key:Xn,domEvent:br})},Dt.onTitleMouseEnter=function(br){var wr=Dt.props,Fr=wr.eventKey,Xn=wr.onItemHover,Fn=wr.onTitleMouseEnter;Xn({key:Fr,hover:!0}),Fn({key:Fr,domEvent:br})},Dt.onTitleMouseLeave=function(br){var wr=Dt.props,Fr=wr.parentMenu,Xn=wr.eventKey,Fn=wr.onItemHover,hi=wr.onTitleMouseLeave;Fr.subMenuInstance=Object(z.a)(Dt),Fn({key:Xn,hover:!1}),hi({key:Xn,domEvent:br})},Dt.onTitleClick=function(br){var wr=Object(z.a)(Dt),Fr=wr.props;if(Fr.onTitleClick({key:Fr.eventKey,domEvent:br}),Fr.triggerSubMenuAction==="hover")return;Dt.triggerOpenChange(!Dt.getVisible(),"click"),me(Fr.store,Dt.props.eventKey,!1)},Dt.onSubMenuClick=function(br){typeof Dt.props.onClick=="function"&&Dt.props.onClick(Dt.addKeyPath(br))},Dt.onSelect=function(br){Dt.props.onSelect(br)},Dt.onDeselect=function(br){Dt.props.onDeselect(br)},Dt.getPrefixCls=function(){return"".concat(Dt.props.rootPrefixCls,"-submenu")},Dt.getActiveClassName=function(){return"".concat(Dt.getPrefixCls(),"-active")},Dt.getDisabledClassName=function(){return"".concat(Dt.getPrefixCls(),"-disabled")},Dt.getSelectedClassName=function(){return"".concat(Dt.getPrefixCls(),"-selected")},Dt.getOpenClassName=function(){return"".concat(Dt.props.rootPrefixCls,"-submenu-open")},Dt.getVisible=function(){return Dt.state.isOpen},Dt.getMode=function(){return Dt.state.mode},Dt.saveMenuInstance=function(br){Dt.menuInstance=br},Dt.addKeyPath=function(br){return Object(a.a)(Object(a.a)({},br),{},{keyPath:(br.keyPath||[]).concat(Dt.props.eventKey)})},Dt.triggerOpenChange=function(br,wr){var Fr=Dt.props.eventKey,Xn=function(){Dt.onOpenChange({key:Fr,item:Object(z.a)(Dt),trigger:wr,open:br})};wr==="mouseenter"?Dt.mouseenterTimeout=setTimeout(function(){Xn()},0):Xn()},Dt.isChildrenSelected=function(){var br={find:!1};return Ct(Dt.props.children,Dt.props.selectedKeys,br),br.find},Dt.isInlineMode=function(){return Dt.getMode()==="inline"},Dt.adjustWidth=function(){if(!Dt.subMenuTitle||!Dt.menuInstance)return;var br=Gt.findDOMNode(Dt.menuInstance);if(br.offsetWidth>=Dt.subMenuTitle.offsetWidth)return;br.style.minWidth="".concat(Dt.subMenuTitle.offsetWidth,"px")},Dt.saveSubMenuTitle=function(br){Dt.subMenuTitle=br},Dt.getBaseProps=function(){var br=Object(z.a)(Dt),wr=br.props,Fr=Dt.getMode();return{mode:Fr==="horizontal"?"vertical":Fr,visible:Dt.getVisible(),level:wr.level+1,inlineIndent:wr.inlineIndent,focusable:!1,onClick:Dt.onSubMenuClick,onSelect:Dt.onSelect,onDeselect:Dt.onDeselect,onDestroy:Dt.onDestroy,selectedKeys:wr.selectedKeys,eventKey:"".concat(wr.eventKey,"-menu-"),openKeys:wr.openKeys,motion:wr.motion,onOpenChange:Dt.onOpenChange,subMenuOpenDelay:wr.subMenuOpenDelay,parentMenu:Object(z.a)(Dt),subMenuCloseDelay:wr.subMenuCloseDelay,forceSubMenuRender:wr.forceSubMenuRender,triggerSubMenuAction:wr.triggerSubMenuAction,builtinPlacements:wr.builtinPlacements,defaultActiveFirst:wr.store.getState().defaultActiveFirst[ke(wr.eventKey)],multiple:wr.multiple,prefixCls:wr.rootPrefixCls,id:Dt.internalMenuId,manualRef:Dt.saveMenuInstance,itemIcon:wr.itemIcon,expandIcon:wr.expandIcon,direction:wr.direction}},Dt.getMotion=function(br,wr){var Fr=Object(z.a)(Dt),Xn=Fr.haveRendered,Fn=Dt.props,hi=Fn.motion,An=Fn.rootPrefixCls,jr=Object(a.a)(Object(a.a)({},hi),{},{leavedClassName:"".concat(An,"-hidden"),removeOnLeave:!1,motionAppear:Xn||!wr||br!=="inline"});return jr};var Bt=Yt.store,Wt=Yt.eventKey,Xt=Bt.getState(),kt=Xt.defaultActiveFirst;Dt.isRootMenu=!1;var hr=!1;return kt&&(hr=kt[Wt]),me(Bt,Wt,hr),Dt.state={mode:Yt.mode,isOpen:Yt.isOpen},Dt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Dt=this,Bt=this.props,Wt=Bt.mode,Xt=Bt.parentMenu,kt=Bt.manualRef,hr=Bt.isOpen,br=function(){Dt.setState({mode:Wt,isOpen:hr})},wr=hr!==this.state.isOpen,Fr=Wt!==this.state.mode;if((Fr||wr)&&(Qt.a.cancel(this.updateStateRaf),Fr?this.updateStateRaf=Object(Qt.a)(br):br()),kt&&kt(this),Wt!=="horizontal"||!(Xt==null?void 0:Xt.isRootMenu)||!hr)return;this.minWidthTimeout=setTimeout(function(){return Dt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Dt=this.props,Bt=Dt.onDestroy,Wt=Dt.eventKey;Bt&&Bt(Wt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Qt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Dt,Bt){var Wt=this.getBaseProps();return p.createElement(Bn,Object(K.a)({},Wt,{id:this.internalMenuId,className:Dt,style:Bt}),this.props.children)}},{key:"renderChildren",value:function(){var Dt=this,Bt=this.getBaseProps(),Wt=Bt.mode,Xt=Bt.visible,kt=Bt.forceSubMenuRender,hr=Bt.direction,br=this.getMotion(Wt,Xt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Xt||kt,!this.haveOpened)return p.createElement("div",null);var wr=t()("".concat(Bt.prefixCls,"-sub"),Object(f.a)({},"".concat(Bt.prefixCls,"-rtl"),hr==="rtl"));return this.isInlineMode()?p.createElement(Ht.b,Object(K.a)({visible:Bt.visible,forceRender:kt},br),function(Fr){var Xn=Fr.className,Fn=Fr.style,hi=t()(wr,Xn);return Dt.renderPopupMenu(hi,Fn)}):this.renderPopupMenu(wr)}},{key:"render",value:function(){var Dt,Bt,Wt,Xt=Object(a.a)({},this.props),kt=this.getVisible(),hr=this.getPrefixCls(),br=this.isInlineMode(),wr=this.getMode(),Fr=t()(hr,"".concat(hr,"-").concat(wr),(Dt={},Object(f.a)(Dt,Xt.className,!!Xt.className),Object(f.a)(Dt,this.getOpenClassName(),kt),Object(f.a)(Dt,this.getActiveClassName(),Xt.active||kt&&!br),Object(f.a)(Dt,this.getDisabledClassName(),Xt.disabled),Object(f.a)(Dt,this.getSelectedClassName(),this.isChildrenSelected()),Dt));this.internalMenuId||(Xt.eventKey?this.internalMenuId="".concat(Xt.eventKey,"$Menu"):(ct+=1,this.internalMenuId="$__$".concat(ct,"$Menu")));var Xn={},Fn={},hi={};Xt.disabled||(Xn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Fn={onClick:this.onTitleClick},hi={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var An={},jr=Xt.direction,In=jr==="rtl";br&&(In?An.paddingRight=Xt.inlineIndent*Xt.level:An.paddingLeft=Xt.inlineIndent*Xt.level);var Qn={};this.getVisible()&&(Qn={"aria-owns":this.internalMenuId});var qn=null;wr!=="horizontal"&&(qn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qn=p.createElement(this.props.expandIcon,Object(a.a)({},this.props))));var si=p.createElement("div",Object(K.a)({ref:this.saveSubMenuTitle,style:An,className:"".concat(hr,"-title"),role:"button"},hi,Fn,{"aria-expanded":kt},Qn,{"aria-haspopup":"true",title:typeof Xt.title=="string"?Xt.title:void 0}),Xt.title,qn||p.createElement("i",{className:"".concat(hr,"-arrow")})),Ci=this.renderChildren(),ki=((Bt=Xt.parentMenu)===null||Bt===void 0?void 0:Bt.isRootMenu)?Xt.parentMenu.props.getPopupContainer:function(Er){return Er.parentNode},Ri=qe[wr],oa=Xt.popupOffset?{offset:Xt.popupOffset}:{},ma=t()((Wt={},Object(f.a)(Wt,Xt.popupClassName,Xt.popupClassName&&!br),Object(f.a)(Wt,"".concat(hr,"-rtl"),In),Wt)),aa=Xt.disabled,ba=Xt.triggerSubMenuAction,bi=Xt.subMenuOpenDelay,Pn=Xt.forceSubMenuRender,ji=Xt.subMenuCloseDelay,ha=Xt.builtinPlacements;pt.forEach(function(Er){return delete Xt[Er]}),delete Xt.onClick;var ta=In?Object(a.a)(Object(a.a)({},pe),ha):Object(a.a)(Object(a.a)({},Ge),ha);delete Xt.direction;var ra=this.getBaseProps(),Nr=br?null:this.getMotion(ra.mode,ra.visible);return p.createElement("li",Object(K.a)({},Xt,Xn,{className:Fr,role:"menuitem"}),p.createElement(pr.a,{prefixCls:hr,popupClassName:t()("".concat(hr,"-popup"),ma),getPopupContainer:ki,builtinPlacements:ta,popupPlacement:Ri,popupVisible:br?!1:kt,popupAlign:oa,popup:br?null:Ci,action:aa||br?[]:[ba],mouseEnterDelay:bi,mouseLeaveDelay:ji,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Pn,popupMotion:Nr},si),br?Ci:null)}}]),Yn}(p.Component);Kt.defaultProps={onMouseEnter:fe,onMouseLeave:fe,onTitleMouseEnter:fe,onTitleMouseLeave:fe,onTitleClick:fe,manualRef:fe,mode:"vertical",title:""};var vr=Object(V.b)(function(en,Tn){var Yn=en.openKeys,Yt=en.activeKey,Dt=en.selectedKeys,Bt=Tn.eventKey,Wt=Tn.subMenuKey;return{isOpen:Yn.indexOf(Bt)>-1,active:Yt[Wt]===Bt,selectedKeys:Dt}})(Kt);vr.isSubMenu=!0;var bt=vr,or="menuitem-overflowed",_t=.5,jt=function(en){Object(v.a)(Yn,en);var Tn=Object(A.a)(Yn);function Yn(){var Yt;return Object(c.a)(this,Yn),Yt=Tn.apply(this,arguments),Yt.resizeObserver=null,Yt.mutationObserver=null,Yt.originalTotalWidth=0,Yt.overflowedItems=[],Yt.menuItemSizes=[],Yt.cancelFrameId=null,Yt.state={lastVisibleIndex:void 0},Yt.childRef=p.createRef(),Yt.getMenuItemNodes=function(){var Dt=Yt.props.prefixCls,Bt=Yt.childRef.current;return Bt?[].slice.call(Bt.children).filter(function(Wt){return Wt.className.split(" ").indexOf("".concat(Dt,"-overflowed-submenu"))<0}):[]},Yt.getOverflowedSubMenuItem=function(Dt,Bt,Wt){var Xt=Yt.props,kt=Xt.overflowedIndicator,hr=Xt.level,br=Xt.mode,wr=Xt.prefixCls,Fr=Xt.theme;if(hr!==1||br!=="horizontal")return null;var Xn=Yt.props.children[0],Fn=Xn.props,hi=Fn.children,An=Fn.title,jr=Fn.style,In=Object(l.a)(Fn,["children","title","style"]),Qn=Object(a.a)({},jr),qn="".concat(Dt,"-overflowed-indicator"),si="".concat(Dt,"-overflowed-indicator");Bt.length===0&&Wt!==!0?Qn=Object(a.a)(Object(a.a)({},Qn),{},{display:"none"}):Wt&&(Qn=Object(a.a)(Object(a.a)({},Qn),{},{visibility:"hidden",position:"absolute"}),qn="".concat(qn,"-placeholder"),si="".concat(si,"-placeholder"));var Ci=Fr?"".concat(wr,"-").concat(Fr):"",ki={};return pt.forEach(function(Ri){In[Ri]!==void 0&&(ki[Ri]=In[Ri])}),p.createElement(bt,Object(K.a)({title:kt,className:"".concat(wr,"-overflowed-submenu"),popupClassName:Ci},ki,{key:qn,eventKey:si,disabled:!1,style:Qn}),Bt)},Yt.setChildrenWidthAndResize=function(){if(Yt.props.mode!=="horizontal")return;var Dt=Yt.childRef.current;if(!Dt)return;var Bt=Dt.children;if(!Bt||Bt.length===0)return;var Wt=Dt.children[Bt.length-1];nr(Wt,"display","inline-block");var Xt=Yt.getMenuItemNodes(),kt=Xt.filter(function(hr){return hr.className.split(" ").indexOf(or)>=0});kt.forEach(function(hr){nr(hr,"display","inline-block")}),Yt.menuItemSizes=Xt.map(function(hr){return He(hr,!0)}),kt.forEach(function(hr){nr(hr,"display","none")}),Yt.overflowedIndicatorWidth=He(Dt.children[Dt.children.length-1],!0),Yt.originalTotalWidth=Yt.menuItemSizes.reduce(function(hr,br){return hr+br},0),Yt.handleResize(),nr(Wt,"display","none")},Yt.handleResize=function(){if(Yt.props.mode!=="horizontal")return;var Dt=Yt.childRef.current;if(!Dt)return;var Bt=He(Dt);Yt.overflowedItems=[];var Wt=0,Xt;Yt.originalTotalWidth>Bt+_t&&(Xt=-1,Yt.menuItemSizes.forEach(function(kt){Wt+=kt,Wt+Yt.overflowedIndicatorWidth<=Bt&&(Xt+=1)})),Yt.setState({lastVisibleIndex:Xt})},Yt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){var Dt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Bt=this.childRef.current;if(!Bt)return;this.resizeObserver=new T.default(function(Wt){Wt.forEach(function(){var Xt=Dt.cancelFrameId;cancelAnimationFrame(Xt),Dt.cancelFrameId=requestAnimationFrame(Dt.setChildrenWidthAndResize)})}),[].slice.call(Bt.children).concat(Bt).forEach(function(Wt){Dt.resizeObserver.observe(Wt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Dt.resizeObserver.disconnect(),[].slice.call(Bt.children).concat(Bt).forEach(function(Wt){Dt.resizeObserver.observe(Wt)}),Dt.setChildrenWidthAndResize()}),this.mutationObserver.observe(Bt,{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(Dt){var Bt=this,Wt=this.state.lastVisibleIndex;return(Dt||[]).reduce(function(Xt,kt,hr){var br=kt;if(Bt.props.mode==="horizontal"){var wr=Bt.getOverflowedSubMenuItem(kt.props.eventKey,[]);Wt!==void 0&&Bt.props.className.indexOf("".concat(Bt.props.prefixCls,"-root"))!==-1&&(hr>Wt&&(br=p.cloneElement(kt,{style:{display:"none"},eventKey:"".concat(kt.props.eventKey,"-hidden"),className:"".concat(or)})),hr===Wt+1&&(Bt.overflowedItems=Dt.slice(Wt+1).map(function(Xn){return p.cloneElement(Xn,{key:Xn.props.eventKey,mode:"vertical-left"})}),wr=Bt.getOverflowedSubMenuItem(kt.props.eventKey,Bt.overflowedItems)));var Fr=[].concat(Object(u.a)(Xt),[wr,br]);return hr===Dt.length-1&&Fr.push(Bt.getOverflowedSubMenuItem(kt.props.eventKey,[],!0)),Fr}return[].concat(Object(u.a)(Xt),[br])},[])}},{key:"render",value:function(){var Dt=this.props,Bt=Dt.visible,Wt=Dt.prefixCls,Xt=Dt.overflowedIndicator,kt=Dt.mode,hr=Dt.level,br=Dt.tag,wr=Dt.children,Fr=Dt.theme,Xn=Object(l.a)(Dt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Fn=br;return p.createElement(Fn,Object(K.a)({ref:this.childRef},Xn),this.renderChildren(wr))}}]),Yn}(p.Component);jt.defaultProps={tag:"div",className:""};var ut=jt;function St(en){return en.length?en.every(function(Tn){return!!Tn.props.disabled}):!0}function mt(en,Tn,Yn){var Yt=en.getState();en.setState({activeKey:Object(a.a)(Object(a.a)({},Yt.activeKey),{},Object(f.a)({},Tn,Yn))})}function lt(en){return en.eventKey||"0-menu-"}function tt(en,Tn){var Yn=Tn,Yt=en.children,Dt=en.eventKey;if(Yn){var Bt;if(nt(Yt,function(Wt,Xt){Wt&&Wt.props&&!Wt.props.disabled&&Yn===xe(Wt,Dt,Xt)&&(Bt=!0)}),Bt)return Yn}return Yn=null,en.defaultActiveFirst&&nt(Yt,function(Wt,Xt){!Yn&&Wt&&!Wt.props.disabled&&(Yn=xe(Wt,Dt,Xt))}),Yn}function Cr(en){if(!en)return;var Tn=this.instanceArray.indexOf(en);Tn!==-1?this.instanceArray[Tn]=en:this.instanceArray.push(en)}var nn=function(en){Object(v.a)(Yn,en);var Tn=Object(A.a)(Yn);function Yn(Yt){var Dt;return Object(c.a)(this,Yn),Dt=Tn.call(this,Yt),Dt.onKeyDown=function(Bt,Wt){var Xt=Bt.keyCode,kt;if(Dt.getFlatInstanceArray().forEach(function(br){br&&br.props.active&&br.onKeyDown&&(kt=br.onKeyDown(Bt))}),kt)return 1;var hr=null;return(Xt===k.a.UP||Xt===k.a.DOWN)&&(hr=Dt.step(Xt===k.a.UP?-1:1)),hr?(Bt.preventDefault(),mt(Dt.props.store,lt(Dt.props),hr.props.eventKey),typeof Wt=="function"&&Wt(hr),1):void 0},Dt.onItemHover=function(Bt){var Wt=Bt.key,Xt=Bt.hover;mt(Dt.props.store,lt(Dt.props),Xt?Wt:null)},Dt.onDeselect=function(Bt){Dt.props.onDeselect(Bt)},Dt.onSelect=function(Bt){Dt.props.onSelect(Bt)},Dt.onClick=function(Bt){Dt.props.onClick(Bt)},Dt.onOpenChange=function(Bt){Dt.props.onOpenChange(Bt)},Dt.onDestroy=function(Bt){Dt.props.onDestroy(Bt)},Dt.getFlatInstanceArray=function(){return Dt.instanceArray},Dt.step=function(Bt){var Wt=Dt.getFlatInstanceArray(),Xt=Dt.props.store.getState().activeKey[lt(Dt.props)],kt=Wt.length;if(!kt)return null;Bt<0&&(Wt=Wt.concat().reverse());var hr=-1;if(Wt.every(function(Xn,Fn){return Xn&&Xn.props.eventKey===Xt?(hr=Fn,!1):!0}),!Dt.props.defaultActiveFirst&&hr!==-1&&St(Wt.slice(hr,kt-1)))return;var br=(hr+1)%kt,wr=br;do{var Fr=Wt[wr];if(!Fr||Fr.props.disabled)wr=(wr+1)%kt;else return Fr}while(wr!==br);return null},Dt.renderCommonMenuItem=function(Bt,Wt,Xt){var kt=Dt.props.store.getState(),hr=Object(z.a)(Dt),br=hr.props,wr=xe(Bt,br.eventKey,Wt),Fr=Bt.props;if(!Fr||typeof Bt.type=="string")return Bt;var Xn=wr===kt.activeKey,Fn=Object(a.a)(Object(a.a)({mode:Fr.mode||br.mode,level:br.level,inlineIndent:br.inlineIndent,renderMenuItem:Dt.renderMenuItem,rootPrefixCls:br.prefixCls,index:Wt,parentMenu:br.parentMenu,manualRef:Fr.disabled?void 0:Object(G.a)(Bt.ref,Cr.bind(Object(z.a)(Dt))),eventKey:wr,active:!Fr.disabled&&Xn,multiple:br.multiple,onClick:function(An){(Fr.onClick||fe)(An),Dt.onClick(An)},onItemHover:Dt.onItemHover,motion:br.motion,subMenuOpenDelay:br.subMenuOpenDelay,subMenuCloseDelay:br.subMenuCloseDelay,forceSubMenuRender:br.forceSubMenuRender,onOpenChange:Dt.onOpenChange,onDeselect:Dt.onDeselect,onSelect:Dt.onSelect,builtinPlacements:br.builtinPlacements,itemIcon:Fr.itemIcon||Dt.props.itemIcon,expandIcon:Fr.expandIcon||Dt.props.expandIcon},Xt),{},{direction:br.direction});return(br.mode==="inline"||ht())&&(Fn.triggerSubMenuAction="click"),p.cloneElement(Bt,Object(a.a)(Object(a.a)({},Fn),{},{key:wr||Wt}))},Dt.renderMenuItem=function(Bt,Wt,Xt){if(!Bt)return null;var kt=Dt.props.store.getState(),hr={openKeys:kt.openKeys,selectedKeys:kt.selectedKeys,triggerSubMenuAction:Dt.props.triggerSubMenuAction,subMenuKey:Xt};return Dt.renderCommonMenuItem(Bt,Wt,hr)},Yt.store.setState({activeKey:Object(a.a)(Object(a.a)({},Yt.store.getState().activeKey),{},Object(f.a)({},Yt.eventKey,tt(Yt,Yt.activeKey)))}),Dt.instanceArray=[],Dt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Dt){return this.props.visible||Dt.visible||this.props.className!==Dt.className||!q()(this.props.style,Dt.style)}},{key:"componentDidUpdate",value:function(Dt){var Bt=this.props,Wt="activeKey"in Bt?Bt.activeKey:Bt.store.getState().activeKey[lt(Bt)],Xt=tt(Bt,Wt);if(Xt!==Wt)mt(Bt.store,lt(Bt),Xt);else if("activeKey"in Dt){var kt=tt(Dt,Dt.activeKey);Xt!==kt&&mt(Bt.store,lt(Bt),Xt)}}},{key:"render",value:function(){var Dt=this,Bt=Object(K.a)({},this.props);this.instanceArray=[];var Wt=t()(Bt.prefixCls,Bt.className,"".concat(Bt.prefixCls,"-").concat(Bt.mode)),Xt={className:Wt,role:Bt.role||"menu"};Bt.id&&(Xt.id=Bt.id),Bt.focusable&&(Xt.tabIndex=0,Xt.onKeyDown=this.onKeyDown);var kt=Bt.prefixCls,hr=Bt.eventKey,br=Bt.visible,wr=Bt.level,Fr=Bt.mode,Xn=Bt.overflowedIndicator,Fn=Bt.theme;return pt.forEach(function(hi){return delete Bt[hi]}),delete Bt.onClick,p.createElement(ut,Object(K.a)({},Bt,{prefixCls:kt,mode:Fr,tag:"ul",level:wr,theme:Fn,visible:br,overflowedIndicator:Xn},Xt),Object(o.a)(Bt.children).map(function(hi,An){return Dt.renderMenuItem(hi,An,hr||"0-menu-")}))}}]),Yn}(p.Component);nn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:fe};var mn=Object(V.b)()(nn),Bn=mn;function oi(en,Tn,Yn){var Yt=en.prefixCls,Dt=en.motion,Bt=en.defaultMotions,Wt=Bt===void 0?{}:Bt,Xt=en.openAnimation,kt=en.openTransitionName,hr=Tn.switchingModeFromInline;if(Dt)return Dt;if(Object(se.a)(Xt)==="object"&&Xt)Object(x.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Xt=="string")return{motionName:"".concat(Yt,"-open-").concat(Xt)};if(kt)return{motionName:kt};var br=Wt[Yn];return br||(hr?null:Wt.other)}var wn=function(en){Object(v.a)(Yn,en);var Tn=Object(A.a)(Yn);function Yn(Yt){var Dt;Object(c.a)(this,Yn),Dt=Tn.call(this,Yt),Dt.onSelect=function(Xt){var kt=Object(z.a)(Dt),hr=kt.props;if(hr.selectable){var br=Dt.store.getState(),wr=br.selectedKeys,Fr=Xt.key;hr.multiple?wr=wr.concat([Fr]):wr=[Fr],"selectedKeys"in hr||Dt.store.setState({selectedKeys:wr}),hr.onSelect(Object(a.a)(Object(a.a)({},Xt),{},{selectedKeys:wr}))}},Dt.onClick=function(Xt){var kt=Dt.getRealMenuMode(),hr=Object(z.a)(Dt),br=hr.store,wr=hr.props.onOpenChange;kt!=="inline"&&!("openKeys"in Dt.props)&&(br.setState({openKeys:[]}),wr([])),Dt.props.onClick(Xt)},Dt.onKeyDown=function(Xt,kt){Dt.innerMenu.getWrappedInstance().onKeyDown(Xt,kt)},Dt.onOpenChange=function(Xt){var kt=Object(z.a)(Dt),hr=kt.props,br=Dt.store.getState().openKeys.concat(),wr=!1,Fr=function(Fn){var hi=!1;if(Fn.open)hi=br.indexOf(Fn.key)===-1,hi&&br.push(Fn.key);else{var An=br.indexOf(Fn.key);hi=An!==-1,hi&&br.splice(An,1)}wr=wr||hi};Array.isArray(Xt)?Xt.forEach(Fr):Fr(Xt),wr&&("openKeys"in Dt.props||Dt.store.setState({openKeys:br}),hr.onOpenChange(br))},Dt.onDeselect=function(Xt){var kt=Object(z.a)(Dt),hr=kt.props;if(hr.selectable){var br=Dt.store.getState().selectedKeys.concat(),wr=Xt.key,Fr=br.indexOf(wr);Fr!==-1&&br.splice(Fr,1),"selectedKeys"in hr||Dt.store.setState({selectedKeys:br}),hr.onDeselect(Object(a.a)(Object(a.a)({},Xt),{},{selectedKeys:br}))}},Dt.onMouseEnter=function(Xt){Dt.restoreModeVerticalFromInline();var kt=Dt.props.onMouseEnter;kt&&kt(Xt)},Dt.onTransitionEnd=function(Xt){var kt=Xt.propertyName==="width"&&Xt.target===Xt.currentTarget,hr=Xt.target.className,br=Object.prototype.toString.call(hr)==="[object SVGAnimatedString]"?hr.animVal:hr,wr=Xt.propertyName==="font-size"&&br.indexOf("anticon")>=0;(kt||wr)&&Dt.restoreModeVerticalFromInline()},Dt.setInnerMenu=function(Xt){Dt.innerMenu=Xt},Dt.isRootMenu=!0;var Bt=Yt.defaultSelectedKeys,Wt=Yt.defaultOpenKeys;return"selectedKeys"in Yt&&(Bt=Yt.selectedKeys||[]),"openKeys"in Yt&&(Wt=Yt.openKeys||[]),Dt.store=Object(V.c)({selectedKeys:Bt,openKeys:Wt,activeKey:{"0-menu-":tt(Yt,Yt.activeKey)}}),Dt.state={switchingModeFromInline:!1,prevProps:Yt,inlineOpenKeys:[],store:Dt.store},Dt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Dt){var Bt=this.props,Wt=Bt.siderCollapsed,Xt=Bt.inlineCollapsed,kt=Bt.onOpenChange;(!Dt.inlineCollapsed&&Xt||!Dt.siderCollapsed&&Wt)&&kt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Dt=this.props.collapsedWidth,Bt=this.store,Wt=this.prevOpenKeys,Xt=this.getInlineCollapsed()&&(Dt===0||Dt==="0"||Dt==="0px");Xt?(this.prevOpenKeys=Bt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Wt&&(this.store.setState({openKeys:Wt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Dt=this.props.mode,Bt=this.state.switchingModeFromInline,Wt=this.getInlineCollapsed();return Bt&&Wt?"inline":Wt?"vertical":Dt}},{key:"getInlineCollapsed",value:function(){var Dt=this.props,Bt=Dt.inlineCollapsed,Wt=Dt.siderCollapsed;return Wt!==void 0?Wt:Bt}},{key:"restoreModeVerticalFromInline",value:function(){var Dt=this.state.switchingModeFromInline;Dt&&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 Dt=Object(a.a)({},Object(Q.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Bt=this.getRealMenuMode();return Dt.className+=" ".concat(Dt.prefixCls,"-root"),Dt.direction==="rtl"&&(Dt.className+=" ".concat(Dt.prefixCls,"-rtl")),Dt=Object(a.a)(Object(a.a)({},Dt),{},{mode:Bt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:oi(this.props,this.state,Bt)}),delete Dt.openAnimation,delete Dt.openTransitionName,p.createElement(V.a,{store:this.store},p.createElement(Bn,Object(K.a)({},Dt,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Dt,Bt){var Wt=Bt.prevProps,Xt=Bt.store,kt=Xt.getState(),hr={},br={prevProps:Dt};return Wt.mode==="inline"&&Dt.mode!=="inline"&&(br.switchingModeFromInline=!0),"openKeys"in Dt?hr.openKeys=Dt.openKeys||[]:((Dt.inlineCollapsed&&!Wt.inlineCollapsed||Dt.siderCollapsed&&!Wt.siderCollapsed)&&(br.switchingModeFromInline=!0,br.inlineOpenKeys=kt.openKeys,hr.openKeys=[]),(!Dt.inlineCollapsed&&Wt.inlineCollapsed||!Dt.siderCollapsed&&Wt.siderCollapsed)&&(hr.openKeys=Bt.inlineOpenKeys,br.inlineOpenKeys=[])),Object.keys(hr).length&&Xt.setState(hr),br}}]),Yn}(p.Component);wn.defaultProps={selectable:!0,onClick:fe,onSelect:fe,onOpenChange:fe,onDeselect:fe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:p.createElement("span",null,"\xB7\xB7\xB7")};var Rn=wn,Zt=function(en){Object(v.a)(Yn,en);var Tn=Object(A.a)(Yn);function Yn(){var Yt;return Object(c.a)(this,Yn),Yt=Tn.apply(this,arguments),Yt.onKeyDown=function(Dt){var Bt=Dt.keyCode;return Bt===k.a.ENTER?(Yt.onClick(Dt),!0):void 0},Yt.onMouseLeave=function(Dt){var Bt=Yt.props,Wt=Bt.eventKey,Xt=Bt.onItemHover,kt=Bt.onMouseLeave;Xt({key:Wt,hover:!1}),kt({key:Wt,domEvent:Dt})},Yt.onMouseEnter=function(Dt){var Bt=Yt.props,Wt=Bt.eventKey,Xt=Bt.onItemHover,kt=Bt.onMouseEnter;Xt({key:Wt,hover:!0}),kt({key:Wt,domEvent:Dt})},Yt.onClick=function(Dt){var Bt=Yt.props,Wt=Bt.eventKey,Xt=Bt.multiple,kt=Bt.onClick,hr=Bt.onSelect,br=Bt.onDeselect,wr=Bt.isSelected,Fr={key:Wt,keyPath:[Wt],item:Object(z.a)(Yt),domEvent:Dt};kt(Fr),Xt?wr?br(Fr):hr(Fr):wr||hr(Fr)},Yt.saveNode=function(Dt){Yt.node=Dt},Yt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Dt=this.props;Dt.onDestroy&&Dt.onDestroy(Dt.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 Dt,Bt=Object(a.a)({},this.props),Wt=t()(this.getPrefixCls(),Bt.className,(Dt={},Object(f.a)(Dt,this.getActiveClassName(),!Bt.disabled&&Bt.active),Object(f.a)(Dt,this.getSelectedClassName(),Bt.isSelected),Object(f.a)(Dt,this.getDisabledClassName(),Bt.disabled),Dt)),Xt=Object(a.a)(Object(a.a)({},Bt.attribute),{},{title:typeof Bt.title=="string"?Bt.title:void 0,className:Wt,role:Bt.role||"menuitem","aria-disabled":Bt.disabled});Bt.role==="option"?Xt=Object(a.a)(Object(a.a)({},Xt),{},{role:"option","aria-selected":Bt.isSelected}):(Bt.role===null||Bt.role==="none")&&(Xt.role="none");var kt={onClick:Bt.disabled?null:this.onClick,onMouseLeave:Bt.disabled?null:this.onMouseLeave,onMouseEnter:Bt.disabled?null:this.onMouseEnter},hr=Object(a.a)({},Bt.style);Bt.mode==="inline"&&(Bt.direction==="rtl"?hr.paddingRight=Bt.inlineIndent*Bt.level:hr.paddingLeft=Bt.inlineIndent*Bt.level),pt.forEach(function(wr){return delete Bt[wr]}),delete Bt.direction;var br=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(br=p.createElement(this.props.itemIcon,this.props)),p.createElement("li",Object(K.a)({},Object(Q.a)(Bt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Xt,kt,{style:hr,ref:this.saveNode}),Bt.children,br)}}]),Yn}(p.Component);Zt.isMenuItem=!0,Zt.defaultProps={onSelect:fe,onMouseEnter:fe,onMouseLeave:fe,manualRef:fe};var Tt=Object(V.b)(function(en,Tn){var Yn=en.activeKey,Yt=en.selectedKeys,Dt=Tn.eventKey,Bt=Tn.subMenuKey;return{active:Yn[Bt]===Dt,isSelected:Array.isArray(Yt)?Yt.indexOf(Dt)!==-1:Yt===Dt}})(Zt),De=Tt,Re=function(en){Object(v.a)(Yn,en);var Tn=Object(A.a)(Yn);function Yn(){var Yt;return Object(c.a)(this,Yn),Yt=Tn.apply(this,arguments),Yt.renderInnerMenuItem=function(Dt){var Bt=Yt.props,Wt=Bt.renderMenuItem,Xt=Bt.index;return Wt(Dt,Xt,Yt.props.subMenuKey)},Yt}return Object(h.a)(Yn,[{key:"render",value:function(){var Dt=Object(K.a)({},this.props),Bt=Dt.className,Wt=Bt===void 0?"":Bt,Xt=Dt.rootPrefixCls,kt="".concat(Xt,"-item-group-title"),hr="".concat(Xt,"-item-group-list"),br=Dt.title,wr=Dt.children;return pt.forEach(function(Fr){return delete Dt[Fr]}),delete Dt.direction,p.createElement("li",Object(K.a)({},Dt,{onClick:function(Xn){return Xn.stopPropagation()},className:"".concat(Wt," ").concat(Xt,"-item-group")}),p.createElement("div",{className:kt,title:typeof br=="string"?br:void 0},br),p.createElement("ul",{className:hr},p.Children.map(wr,this.renderInnerMenuItem)))}}]),Yn}(p.Component);Re.isMenuItemGroup=!0,Re.defaultProps={disabled:!0};var Pe=Re,rt=function(Tn){var Yn=Tn.className,Yt=Tn.rootPrefixCls,Dt=Tn.style;return p.createElement("li",{className:"".concat(Yn," ").concat(Yt,"-item-divider"),style:Dt})};rt.defaultProps={disabled:!0,className:"",style:{}};var wt=rt,Ot=Rn,$t={adjustX:1,adjustY:1},Mr=[0,0],Vr={topLeft:{points:["bl","tl"],overflow:$t,offset:[0,-4],targetOffset:Mr},topCenter:{points:["bc","tc"],overflow:$t,offset:[0,-4],targetOffset:Mr},topRight:{points:["br","tr"],overflow:$t,offset:[0,-4],targetOffset:Mr},bottomLeft:{points:["tl","bl"],overflow:$t,offset:[0,4],targetOffset:Mr},bottomCenter:{points:["tc","bc"],overflow:$t,offset:[0,4],targetOffset:Mr},bottomRight:{points:["tr","br"],overflow:$t,offset:[0,4],targetOffset:Mr}},hn=Vr,Vt=k.a.ESC,yt=k.a.TAB;function xt(en){var Tn=en.visible,Yn=en.setTriggerVisible,Yt=en.triggerRef,Dt=en.menuRef,Bt=en.onVisibleChange,Wt=en.autoFocus,Xt=p.useRef(!1),kt=function(){if(Tn&&Yt.current){var Fr,Xn,Fn,hi;(Fr=Yt.current)===null||Fr===void 0||((Xn=Fr.triggerRef)===null||Xn===void 0||((Fn=Xn.current)===null||Fn===void 0||((hi=Fn.focus)===null||hi===void 0)))||hi.call(Fn),Yn(!1),typeof Bt=="function"&&Bt(!1)}},hr=function(){var Fr,Xn;(Fr=Dt.current)===null||Fr===void 0||((Xn=Fr.focus)===null||Xn===void 0)||Xn.call(Fr),Xt.current=!0},br=function(Fr){var Xn;switch(Fr.keyCode){case Vt:kt();break;case yt:!Xt.current&&((Xn=Dt.current)===null||Xn===void 0?void 0:Xn.focus)?(Fr.preventDefault(),hr()):kt();break}};p.useEffect(function(){return Tn?(window.addEventListener("keydown",br),Wt&&Object(Qt.a)(hr,3),function(){window.removeEventListener("keydown",br),Xt.current=!1}):function(){Xt.current=!1}},[Tn])}var dr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function er(en,Tn){var Yn=en.arrow,Yt=Yn===void 0?!1:Yn,Dt=en.prefixCls,Bt=Dt===void 0?"rc-dropdown":Dt,Wt=en.transitionName,Xt=en.animation,kt=en.align,hr=en.placement,br=hr===void 0?"bottomLeft":hr,wr=en.placements,Fr=wr===void 0?hn:wr,Xn=en.getPopupContainer,Fn=en.showAction,hi=en.hideAction,An=en.overlayClassName,jr=en.overlayStyle,In=en.visible,Qn=en.trigger,qn=Qn===void 0?["hover"]:Qn,si=en.autoFocus,Ci=Object(l.a)(en,dr),ki=p.useState(),Ri=Object(d.a)(ki,2),oa=Ri[0],ma=Ri[1],aa="visible"in en?In:oa,ba=p.useRef(null);p.useImperativeHandle(Tn,function(){return ba.current});var bi=p.useRef(null),Pn="".concat(Bt,"-menu");xt({visible:aa,setTriggerVisible:ma,triggerRef:ba,menuRef:bi,onVisibleChange:en.onVisibleChange,autoFocus:si});var ji=function(){var cn=en.overlay,Un;return typeof cn=="function"?Un=cn():Un=cn,Un},ha=function(cn){var Un=en.onOverlayClick,Nt=ji().props;ma(!1),Un&&Un(cn),Nt.onClick&&Nt.onClick(cn)},ta=function(cn){var Un=en.onVisibleChange;ma(cn),typeof Un=="function"&&Un(cn)},ra=function(){var cn,Un=ji(),Nt=Object(E.a)(bi,Un.ref),Lr=(cn={prefixCls:Pn},Object(f.a)(cn,"data-dropdown-inject",!0),Object(f.a)(cn,"onClick",ha),Object(f.a)(cn,"ref",Object(E.c)(Un)?Nt:void 0),cn);return typeof Un.type=="string"&&(delete Lr.prefixCls,delete Lr["data-dropdown-inject"]),p.createElement(p.Fragment,null,Yt&&p.createElement("div",{className:"".concat(Bt,"-arrow")}),p.cloneElement(Un,Lr))},Nr=function(){var cn=en.overlay;return typeof cn=="function"?ra:ra()},Er=function(){var cn=en.minOverlayWidthMatchTrigger,Un=en.alignPoint;return"minOverlayWidthMatchTrigger"in en?cn:!Un},On=function(){var cn=en.openClassName;return cn!==void 0?cn:"".concat(Bt,"-open")},gr=function(){var cn=en.children,Un=cn.props?cn.props:{},Nt=t()(Un.className,On());return aa&&cn?p.cloneElement(cn,{className:Nt}):cn},Pr=hi;return!Pr&&qn.indexOf("contextMenu")!==-1&&(Pr=["click"]),p.createElement(pr.a,Object(a.a)(Object(a.a)({builtinPlacements:Fr},Ci),{},{prefixCls:Bt,ref:ba,popupClassName:t()(An,Object(f.a)({},"".concat(Bt,"-show-arrow"),Yt)),popupStyle:jr,action:qn,showAction:Fn,hideAction:Pr||[],popupPlacement:br,popupAlign:kt,popupTransitionName:Wt,popupAnimation:Xt,popupVisible:aa,stretch:Er()?"minWidth":"",popup:Nr(),onPopupVisibleChange:ta,getPopupContainer:Xn}),gr())}var Ut=p.forwardRef(er),ir=Ut;function Ft(en,Tn){var Yn=en.prefixCls,Yt=en.editable,Dt=en.locale,Bt=en.style;return!Yt||Yt.showAdd===!1?null:p.createElement("button",{ref:Tn,type:"button",className:"".concat(Yn,"-nav-add"),style:Bt,"aria-label":(Dt==null?void 0:Dt.addAriaLabel)||"Add tab",onClick:function(Xt){Yt.onEdit("add",{event:Xt})}},Yt.addIcon||"+")}var rr=p.forwardRef(Ft);function Kr(en,Tn){var Yn=en.prefixCls,Yt=en.id,Dt=en.tabs,Bt=en.locale,Wt=en.mobile,Xt=en.moreIcon,kt=Xt===void 0?"More":Xt,hr=en.moreTransitionName,br=en.style,wr=en.className,Fr=en.editable,Xn=en.tabBarGutter,Fn=en.rtl,hi=en.onTabClick,An=Object(p.useState)(!1),jr=Object(d.a)(An,2),In=jr[0],Qn=jr[1],qn=Object(p.useState)(null),si=Object(d.a)(qn,2),Ci=si[0],ki=si[1],Ri="".concat(Yt,"-more-popup"),oa="".concat(Yn,"-dropdown"),ma=Ci!==null?"".concat(Ri,"-").concat(Ci):null,aa=Bt==null?void 0:Bt.dropdownAriaLabel,ba=p.createElement(Ot,{onClick:function(Nr){var Er=Nr.key,On=Nr.domEvent;hi(Er,On),Qn(!1)},id:Ri,tabIndex:-1,role:"listbox","aria-activedescendant":ma,selectedKeys:[Ci],"aria-label":aa!==void 0?aa:"expanded dropdown"},Dt.map(function(ra){return p.createElement(De,{key:ra.key,id:"".concat(Ri,"-").concat(ra.key),role:"option","aria-controls":Yt&&"".concat(Yt,"-panel-").concat(ra.key),disabled:ra.disabled},ra.tab)}));function bi(ra){for(var Nr=Dt.filter(function(Xr){return!Xr.disabled}),Er=Nr.findIndex(function(Xr){return Xr.key===Ci})||0,On=Nr.length,gr=0;gr<On;gr+=1){Er=(Er+ra+On)%On;var Pr=Nr[Er];if(!Pr.disabled){ki(Pr.key);return}}}function Pn(ra){var Nr=ra.which;if(!In){[k.a.DOWN,k.a.SPACE,k.a.ENTER].includes(Nr)&&(Qn(!0),ra.preventDefault());return}switch(Nr){case k.a.UP:bi(-1),ra.preventDefault();break;case k.a.DOWN:bi(1),ra.preventDefault();break;case k.a.ESC:Qn(!1);break;case k.a.SPACE:case k.a.ENTER:Ci!==null&&hi(Ci,ra);break}}Object(p.useEffect)(function(){var ra=document.getElementById(ma);ra&&ra.scrollIntoView&&ra.scrollIntoView(!1)},[Ci]),Object(p.useEffect)(function(){In||ki(null)},[In]);var ji=Object(f.a)({},Fn?"marginLeft":"marginRight",Xn);Dt.length||(ji.visibility="hidden",ji.order=1);var ha=t()(Object(f.a)({},"".concat(oa,"-rtl"),Fn)),ta=Wt?null:p.createElement(ir,{prefixCls:oa,overlay:ba,trigger:["hover"],visible:In,transitionName:hr,onVisibleChange:Qn,overlayClassName:ha,mouseEnterDelay:.1,mouseLeaveDelay:.1},p.createElement("button",{type:"button",className:"".concat(Yn,"-nav-more"),style:ji,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Ri,id:"".concat(Yt,"-more"),"aria-expanded":In,onKeyDown:Pn},kt));return p.createElement("div",{className:t()("".concat(Yn,"-nav-operations"),wr),style:br,ref:Tn},ta,p.createElement(rr,{prefixCls:Yn,locale:Bt,editable:Fr}))}var Rr=p.forwardRef(Kr),kr=Object(p.createContext)(null),dn=.1,yn=.01,ri=20,$n=Math.pow(.995,ri);function pi(){var en=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(en)||/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(en.substr(0,4)))}function _i(en,Tn){var Yn=Object(p.useState)(),Yt=Object(d.a)(Yn,2),Dt=Yt[0],Bt=Yt[1],Wt=Object(p.useState)(0),Xt=Object(d.a)(Wt,2),kt=Xt[0],hr=Xt[1],br=Object(p.useState)(0),wr=Object(d.a)(br,2),Fr=wr[0],Xn=wr[1],Fn=Object(p.useState)(),hi=Object(d.a)(Fn,2),An=hi[0],jr=hi[1],In=Object(p.useRef)();function Qn(aa){var ba=aa.touches[0],bi=ba.screenX,Pn=ba.screenY;Bt({x:bi,y:Pn}),window.clearInterval(In.current)}function qn(aa){if(!Dt)return;aa.preventDefault();var ba=aa.touches[0],bi=ba.screenX,Pn=ba.screenY;Bt({x:bi,y:Pn});var ji=bi-Dt.x,ha=Pn-Dt.y;Tn(ji,ha);var ta=Date.now();hr(ta),Xn(ta-kt),jr({x:ji,y:ha})}function si(){if(!Dt)return;if(Bt(null),jr(null),An){var aa=An.x/Fr,ba=An.y/Fr,bi=Math.abs(aa),Pn=Math.abs(ba);if(Math.max(bi,Pn)<dn)return;var ji=aa,ha=ba;In.current=window.setInterval(function(){if(Math.abs(ji)<yn&&Math.abs(ha)<yn){window.clearInterval(In.current);return}ji*=$n,ha*=$n,Tn(ji*ri,ha*ri)},ri)}}var Ci=Object(p.useRef)(0),ki=Object(p.useRef)(!1),Ri=Object(p.useRef)();function oa(aa){var ba=aa.deltaX,bi=aa.deltaY,Pn=0,ji=Math.abs(ba),ha=Math.abs(bi);ji===ha?Pn=Ri.current==="x"?ba:bi:ji>ha?(Pn=ba,Ri.current="x"):(Pn=bi,Ri.current="y");var ta=Date.now();ta-Ci.current>100&&(ki.current=!1),(Tn(-Pn,-Pn)||ki.current)&&(aa.preventDefault(),ki.current=!0),Ci.current=ta}var ma=Object(p.useRef)(null);ma.current={onTouchStart:Qn,onTouchMove:qn,onTouchEnd:si,onWheel:oa},p.useEffect(function(){function aa(ji){ma.current.onTouchStart(ji)}function ba(ji){ma.current.onTouchMove(ji)}function bi(ji){ma.current.onTouchEnd(ji)}function Pn(ji){ma.current.onWheel(ji)}return document.addEventListener("touchmove",ba,{passive:!1}),document.addEventListener("touchend",bi,{passive:!1}),en.current.addEventListener("touchstart",aa,{passive:!1}),en.current.addEventListener("wheel",Pn),function(){document.removeEventListener("touchmove",ba),document.removeEventListener("touchend",bi)}},[])}function Di(){var en=Object(p.useRef)(new Map);function Tn(Yt){return en.current.has(Yt)||en.current.set(Yt,p.createRef()),en.current.get(Yt)}function Yn(Yt){en.current.delete(Yt)}return[Tn,Yn]}function Wi(en,Tn){var Yn=p.useRef(en),Yt=p.useState({}),Dt=Object(d.a)(Yt,2),Bt=Dt[1];function Wt(Xt){var kt=typeof Xt=="function"?Xt(Yn.current):Xt;kt!==Yn.current&&Tn(kt,Yn.current),Yn.current=kt,Bt({})}return[Yn.current,Wt]}var at=function(Tn){var Yn=Tn.position,Yt=Tn.prefixCls,Dt=Tn.extra;if(!Dt)return null;var Bt,Wt=Dt;return Yn==="right"&&(Bt=Wt.right||!Wt.left&&Wt||null),Yn==="left"&&(Bt=Wt.left||null),Bt?p.createElement("div",{className:"".concat(Yt,"-extra-content")},Bt):null};function Le(en,Tn){var Yn,Yt=p.useContext(kr),Dt=Yt.prefixCls,Bt=Yt.tabs,Wt=en.className,Xt=en.style,kt=en.id,hr=en.animated,br=en.activeKey,wr=en.rtl,Fr=en.extra,Xn=en.editable,Fn=en.locale,hi=en.tabPosition,An=en.tabBarGutter,jr=en.children,In=en.onTabClick,Qn=en.onTabScroll,qn=Object(p.useRef)(),si=Object(p.useRef)(),Ci=Object(p.useRef)(),ki=Object(p.useRef)(),Ri=Di(),oa=Object(d.a)(Ri,2),ma=oa[0],aa=oa[1],ba=hi==="top"||hi==="bottom",bi=Wi(0,function(ui,di){ba&&Qn&&Qn({direction:ui>di?"left":"right"})}),Pn=Object(d.a)(bi,2),ji=Pn[0],ha=Pn[1],ta=Wi(0,function(ui,di){!ba&&Qn&&Qn({direction:ui>di?"top":"bottom"})}),ra=Object(d.a)(ta,2),Nr=ra[0],Er=ra[1],On=Object(p.useState)(0),gr=Object(d.a)(On,2),Pr=gr[0],Xr=gr[1],cn=Object(p.useState)(0),Un=Object(d.a)(cn,2),Nt=Un[0],Lr=Un[1],Dr=Object(p.useState)(0),an=Object(d.a)(Dr,2),Cn=an[0],Nn=an[1],En=Object(p.useState)(0),ei=Object(d.a)(En,2),Wn=ei[0],gi=ei[1],Fi=Object(p.useState)(null),wi=Object(d.a)(Fi,2),Ii=wi[0],Vi=wi[1],ea=Object(p.useState)(null),Xi=Object(d.a)(ea,2),zi=Xi[0],Hi=Xi[1],Ji=Object(p.useState)(0),ca=Object(d.a)(Ji,2),Ta=ca[0],na=ca[1],Pa=Object(p.useState)(0),La=Object(d.a)(Pa,2),va=La[0],ga=La[1],Oa=I(new Map),Aa=Object(d.a)(Oa,2),Xa=Aa[0],_a=Aa[1],Va=X(Bt,Xa,Pr),Bi="".concat(Dt,"-nav-operations-hidden"),io=0,oo=0;ba?wr?(io=0,oo=Math.max(0,Pr-Ii)):(io=Math.min(0,Ii-Pr),oo=0):(io=Math.min(0,zi-Nt),oo=0);function Qo(ui){return ui<io?[io,!1]:ui>oo?[oo,!1]:[ui,!0]}var mo=Object(p.useRef)(),Co=Object(p.useState)(),ao=Object(d.a)(Co,2),xo=ao[0],bo=ao[1];function to(){bo(Date.now())}function Jo(){window.clearTimeout(mo.current)}_i(qn,function(ui,di){var li=!1;function Ti(vi,yi){vi(function(Ni){var ia=Qo(Ni+yi),Ki=Object(d.a)(ia,2),fa=Ki[0],Ya=Ki[1];return li=Ya,fa})}if(ba){if(Ii>=Pr)return li;Ti(ha,ui)}else{if(zi>=Nt)return li;Ti(Er,di)}return Jo(),to(),li}),Object(p.useEffect)(function(){return Jo(),xo&&(mo.current=window.setTimeout(function(){bo(0)},100)),Jo},[xo]);function Uo(){var ui=arguments.length>0&&arguments[0]!==void 0?arguments[0]:br,di=Va.get(ui);if(!di)return;if(ba){var li=ji;wr?di.right<ji?li=di.right:di.right+di.width>ji+Ii&&(li=di.right+di.width-Ii):di.left<-ji?li=-di.left:di.left+di.width>-ji+Ii&&(li=-(di.left+di.width-Ii)),Er(0),ha(Qo(li)[0])}else{var Ti=Nr;di.top<-Nr?Ti=-di.top:di.top+di.height>-Nr+zi&&(Ti=-(di.top+di.height-zi)),ha(0),Er(Qo(Ti)[0])}}var wo=j(Va,{width:Ii,height:zi,left:ji,top:Nr},{width:Cn,height:Wn},{width:Ta,height:va},Object(a.a)(Object(a.a)({},en),{},{tabs:Bt})),ts=Object(d.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=Bt.map(function(ui){var di=ui.key;return p.createElement(U,{id:kt,prefixCls:Dt,key:di,rtl:wr,tab:ui,closable:ui.closable,editable:Xn,active:di===br,tabPosition:hi,tabBarGutter:An,renderWrapper:jr,removeAriaLabel:Fn==null?void 0:Fn.removeAriaLabel,ref:ma(di),onClick:function(Ti){In(di,Ti)},onRemove:function(){aa(di)},onFocus:function(){Uo(di),to(),wr||(qn.current.scrollLeft=0),qn.current.scrollTop=0}})}),os=O(function(){var ui,di,li,Ti,vi,yi,Ni,ia,Ki,fa=((ui=qn.current)===null||ui===void 0?void 0:ui.offsetWidth)||0,Ya=((di=qn.current)===null||di===void 0?void 0:di.offsetHeight)||0,Sa=((li=ki.current)===null||li===void 0?void 0:li.offsetWidth)||0,wa=((Ti=ki.current)===null||Ti===void 0?void 0:Ti.offsetHeight)||0,Da=((vi=Ci.current)===null||vi===void 0?void 0:vi.offsetWidth)||0,ja=((yi=Ci.current)===null||yi===void 0?void 0:yi.offsetHeight)||0;Vi(fa),Hi(Ya),na(Sa),ga(wa);var ko=(((Ni=si.current)===null||Ni===void 0?void 0:Ni.offsetWidth)||0)-Sa,ro=(((ia=si.current)===null||ia===void 0?void 0:ia.offsetHeight)||0)-wa;Xr(ko),Lr(ro);var pa=(Ki=Ci.current)===null||Ki===void 0?void 0:Ki.className.includes(Bi);Nn(ko-(pa?0:Da)),gi(ro-(pa?0:ja)),_a(function(){var Ea=new Map;return Bt.forEach(function(Fa){var Ka=Fa.key,lo=ma(Ka).current;lo&&Ea.set(Ka,{width:lo.offsetWidth,height:lo.offsetHeight,left:lo.offsetLeft,top:lo.offsetTop})}),Ea})}),So=Bt.slice(0,Ia),rs=Bt.slice(Oo+1),Ho=[].concat(Object(u.a)(So),Object(u.a)(rs)),_o=Object(p.useState)(),uo=Object(d.a)(_o,2),Ha=uo[0],vt=uo[1],_r=Va.get(br),rn=Object(p.useRef)();function Jr(){s.a.cancel(rn.current)}Object(p.useEffect)(function(){var ui={};return _r&&(ba?(wr?ui.right=_r.right:ui.left=_r.left,ui.width=_r.width):(ui.top=_r.top,ui.height=_r.height)),Jr(),rn.current=s()(function(){vt(ui)}),Jr},[_r,ba,wr]),Object(p.useEffect)(function(){Uo()},[br,_r,Va,ba]),Object(p.useEffect)(function(){os()},[wr,An,br,Bt.map(function(ui){return ui.key}).join("_")]);var Jn=!!Ho.length,fn="".concat(Dt,"-nav-wrap"),Yr,ii,on,zn;return ba?wr?(ii=ji>0,Yr=ji+Ii<Pr):(Yr=ji<0,ii=-ji+Ii<Pr):(on=Nr<0,zn=-Nr+zi<Nt),p.createElement("div",{ref:Tn,role:"tablist",className:t()("".concat(Dt,"-nav"),Wt),style:Xt,onKeyDown:function(){to()}},p.createElement(at,{position:"left",extra:Fr,prefixCls:Dt}),p.createElement(w,{onResize:os},p.createElement("div",{className:t()(fn,(Yn={},Object(f.a)(Yn,"".concat(fn,"-ping-left"),Yr),Object(f.a)(Yn,"".concat(fn,"-ping-right"),ii),Object(f.a)(Yn,"".concat(fn,"-ping-top"),on),Object(f.a)(Yn,"".concat(fn,"-ping-bottom"),zn),Yn)),ref:qn},p.createElement(w,{onResize:os},p.createElement("div",{ref:si,className:"".concat(Dt,"-nav-list"),style:{transform:"translate(".concat(ji,"px, ").concat(Nr,"px)"),transition:xo?"none":void 0}},Io,p.createElement(rr,{ref:ki,prefixCls:Dt,locale:Fn,editable:Xn,style:{visibility:Jn?"hidden":null}}),p.createElement("div",{className:t()("".concat(Dt,"-ink-bar"),Object(f.a)({},"".concat(Dt,"-ink-bar-animated"),hr.inkBar)),style:Ha}))))),p.createElement(Rr,Object.assign({},en,{ref:Ci,prefixCls:Dt,tabs:Ho,className:!Jn&&Bi})),p.createElement(at,{position:"right",extra:Fr,prefixCls:Dt}))}var je=p.forwardRef(Le);function Xe(en){var Tn=en.id,Yn=en.activeKey,Yt=en.animated,Dt=en.tabPosition,Bt=en.rtl,Wt=en.destroyInactiveTabPane,Xt=p.useContext(kr),kt=Xt.prefixCls,hr=Xt.tabs,br=Yt.tabPane,wr=hr.findIndex(function(Fr){return Fr.key===Yn});return p.createElement("div",{className:t()("".concat(kt,"-content-holder"))},p.createElement("div",{className:t()("".concat(kt,"-content"),"".concat(kt,"-content-").concat(Dt),Object(f.a)({},"".concat(kt,"-content-animated"),br)),style:wr&&br?Object(f.a)({},Bt?"marginRight":"marginLeft","-".concat(wr,"00%")):null},hr.map(function(Fr){return p.cloneElement(Fr.node,{key:Fr.key,prefixCls:kt,tabKey:Fr.key,id:Tn,animated:br,active:Fr.key===Yn,destroyInactiveTabPane:Wt})})))}function it(en){var Tn=en.prefixCls,Yn=en.forceRender,Yt=en.className,Dt=en.style,Bt=en.id,Wt=en.active,Xt=en.animated,kt=en.destroyInactiveTabPane,hr=en.tabKey,br=en.children,wr=p.useState(Yn),Fr=Object(d.a)(wr,2),Xn=Fr[0],Fn=Fr[1];p.useEffect(function(){Wt?Fn(!0):kt&&Fn(!1)},[Wt,kt]);var hi={};return Wt||(Xt?(hi.visibility="hidden",hi.height=0,hi.overflowY="hidden"):hi.display="none"),p.createElement("div",{id:Bt&&"".concat(Bt,"-panel-").concat(hr),role:"tabpanel",tabIndex:Wt?0:-1,"aria-labelledby":Bt&&"".concat(Bt,"-tab-").concat(hr),"aria-hidden":!Wt,style:Object(a.a)(Object(a.a)({},hi),Dt),className:t()("".concat(Tn,"-tabpane"),Wt&&"".concat(Tn,"-tabpane-active"),Yt)},(Wt||Xn||Yn)&&br)}var Ze=0;function ot(en){return Object(o.a)(en).map(function(Tn){if(p.isValidElement(Tn)){var Yn=Tn.key!==void 0?String(Tn.key):void 0;return Object(a.a)(Object(a.a)({key:Yn},Tn.props),{},{node:Tn})}return null}).filter(function(Tn){return Tn})}function Lt(en,Tn){var Yn,Yt=en.id,Dt=en.prefixCls,Bt=Dt===void 0?"rc-tabs":Dt,Wt=en.className,Xt=en.children,kt=en.direction,hr=en.activeKey,br=en.defaultActiveKey,wr=en.editable,Fr=en.animated,Xn=en.tabPosition,Fn=Xn===void 0?"top":Xn,hi=en.tabBarGutter,An=en.tabBarStyle,jr=en.tabBarExtraContent,In=en.locale,Qn=en.moreIcon,qn=en.moreTransitionName,si=en.destroyInactiveTabPane,Ci=en.renderTabBar,ki=en.onChange,Ri=en.onTabClick,oa=en.onTabScroll,ma=Object(l.a)(en,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),aa=ot(Xt),ba=kt==="rtl",bi;Fr===!1?bi={inkBar:!1,tabPane:!1}:bi=Object(a.a)({inkBar:!0,tabPane:!1},Fr!==!0?Fr:null);var Pn=Object(p.useState)(!1),ji=Object(d.a)(Pn,2),ha=ji[0],ta=ji[1];Object(p.useEffect)(function(){ta(pi())},[]);var ra=Object(e.a)(function(){var Wn;return(Wn=aa[0])===null||Wn===void 0?void 0:Wn.key},{value:hr,defaultValue:br}),Nr=Object(d.a)(ra,2),Er=Nr[0],On=Nr[1],gr=Object(p.useState)(function(){return aa.findIndex(function(Wn){return Wn.key===Er})}),Pr=Object(d.a)(gr,2),Xr=Pr[0],cn=Pr[1];Object(p.useEffect)(function(){var Wn=aa.findIndex(function(Fi){return Fi.key===Er});if(Wn===-1){var gi;Wn=Math.max(0,Math.min(Xr,aa.length-1)),On((gi=aa[Wn])===null||gi===void 0?void 0:gi.key)}cn(Wn)},[aa.map(function(Wn){return Wn.key}).join("_"),Er,Xr]);var Un=Object(e.a)(null,{value:Yt}),Nt=Object(d.a)(Un,2),Lr=Nt[0],Dr=Nt[1],an=Fn;ha&&!["left","right"].includes(Fn)&&(an="top"),Object(p.useEffect)(function(){Yt||(Dr("rc-tabs-".concat(Ze)),Ze+=1)},[]);function Cn(Wn,gi){Ri==null||Ri(Wn,gi),On(Wn),ki==null||ki(Wn)}var Nn={id:Lr,activeKey:Er,animated:bi,tabPosition:an,rtl:ba,mobile:ha},En,ei=Object(a.a)(Object(a.a)({},Nn),{},{editable:wr,locale:In,moreIcon:Qn,moreTransitionName:qn,tabBarGutter:hi,onTabClick:Cn,onTabScroll:oa,extra:jr,style:An,panes:Xt});return Ci?En=Ci(ei,je):En=p.createElement(je,Object.assign({},ei)),p.createElement(kr.Provider,{value:{tabs:aa,prefixCls:Bt}},p.createElement("div",Object.assign({ref:Tn,id:Yt,className:t()(Bt,"".concat(Bt,"-").concat(an),(Yn={},Object(f.a)(Yn,"".concat(Bt,"-mobile"),ha),Object(f.a)(Yn,"".concat(Bt,"-editable"),wr),Object(f.a)(Yn,"".concat(Bt,"-rtl"),ba),Yn),Wt)},ma),En,p.createElement(Xe,Object.assign({destroyInactiveTabPane:si},Nn,{animated:bi}))))}var At=p.forwardRef(Lt);At.TabPane=it;var mr=At,qr=mr,Qr=n("cCPh"),gn=n.n(Qr),yr=n("fNCr"),Vn=n.n(yr),Br=n("V/uB"),jn=n.n(Br),xn=n("uaoM"),tn=n("H84U"),ti=function(en,Tn){var Yn={};for(var Yt in en)Object.prototype.hasOwnProperty.call(en,Yt)&&Tn.indexOf(Yt)<0&&(Yn[Yt]=en[Yt]);if(en!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Yt=Object.getOwnPropertySymbols(en);Dt<Yt.length;Dt++)Tn.indexOf(Yt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(en,Yt[Dt])&&(Yn[Yt[Dt]]=en[Yt[Dt]]);return Yn};function mi(en){var Tn,Yn=en.type,Yt=en.className,Dt=en.size,Bt=en.onEdit,Wt=en.hideAdd,Xt=en.centered,kt=en.addIcon,hr=ti(en,["type","className","size","onEdit","hideAdd","centered","addIcon"]),br=hr.prefixCls,wr=p.useContext(tn.b),Fr=wr.getPrefixCls,Xn=wr.direction,Fn=Fr("tabs",br),hi;return Yn==="editable-card"&&(hi={onEdit:function(jr,In){var Qn=In.key,qn=In.event;Bt==null||Bt(jr==="add"?qn:Qn,jr)},removeIcon:p.createElement(jn.a,null),addIcon:kt||p.createElement(Vn.a,null),showAdd:Wt!==!0}),Object(xn.a)(!("onPrevClick"in hr)&&!("onNextClick"in hr),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),p.createElement(qr,g()({direction:Xn},hr,{moreTransitionName:"slide-up",className:t()(Yt,(Tn={},m()(Tn,"".concat(Fn,"-").concat(Dt),Dt),m()(Tn,"".concat(Fn,"-card"),["card","editable-card"].includes(Yn)),m()(Tn,"".concat(Fn,"-editable-card"),Yn==="editable-card"),m()(Tn,"".concat(Fn,"-centered"),Xt),Tn)),editable:hi,moreIcon:p.createElement(gn.a,null),prefixCls:Fn}))}mi.TabPane=it;var Pi=D.a=mi},ZTW2:function(R,D,n){},ZWlE:function(R,D,n){var y=n("bYtY"),g=n("4NO4");function S(f){m(f),p(f)}function m(f){if(f.parallel)return;var d=!1;y.each(f.series,function(l){l&&l.type==="parallel"&&(d=!0)}),d&&(f.parallel=[{}])}function p(f){var d=g.normalizeToArray(f.parallelAxis);y.each(d,function(l){if(!y.isObject(l))return;var a=l.parallelIndex||0,i=g.normalizeToArray(f.parallel)[a];i&&i.parallelAxisDefault&&y.merge(l,i.parallelAxisDefault,!1)})}R.exports=S},ZX9x:function(R,D,n){"use strict";n.d(D,"a",function(){return I}),n.d(D,"b",function(){return U});var y=n("lSNA"),g=n.n(y),S=n("pVnL"),m=n.n(S),p=n("lwsE"),f=n.n(p),d=n("W8MJ"),l=n.n(d),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),u=n("TSYQ"),r=n.n(u),s=n("BGR+"),c=n("T1rO"),h=n.n(c),v=n("fEPi"),A=n.n(v),b=n("DFhj"),x=n.n(b),E=n("PKem"),T=n("H84U"),_=function(X){return!isNaN(parseFloat(X))&&isFinite(X)},C=_,w=function(P,X){var F={};for(var j in P)Object.prototype.hasOwnProperty.call(P,j)&&X.indexOf(j)<0&&(F[j]=P[j]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,j=Object.getOwnPropertySymbols(P);K<j.length;K++)X.indexOf(j[K])<0&&Object.prototype.propertyIsEnumerable.call(P,j[K])&&(F[j[K]]=P[j[K]]);return F},O={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},I=e.createContext({}),k=function(){var P=0;return function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return P+=1,"".concat(X).concat(P)}}(),M=function(P){i()(F,P);var X=o()(F);function F(j){var K;f()(this,F),K=X.call(this,j),K.responsiveHandler=function(Q){K.setState({below:Q.matches});var G=K.props.onBreakpoint,te=K.state.collapsed;G&&G(Q.matches),te!==Q.matches&&K.setCollapsed(Q.matches,"responsive")},K.setCollapsed=function(Q,G){"collapsed"in K.props||K.setState({collapsed:Q});var te=K.props.onCollapse;te&&te(Q,G)},K.toggle=function(){var Q=!K.state.collapsed;K.setCollapsed(Q,"clickTrigger")},K.renderSider=function(Q){var G,te=Q.getPrefixCls,q=K.props,se=q.prefixCls,re=q.className,we=q.theme,Oe=q.collapsible,Me=q.reverseArrow,Qe=q.trigger,Ve=q.style,dt=q.width,Fe=q.collapsedWidth,ue=q.zeroWidthTriggerStyle,et=q.children,he=w(q,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),J=K.state,Y=J.collapsed,$=J.below,de=te("layout-sider",se),be=Object(s.default)(he,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Te=Y?Fe:dt,Be=C(Te)?"".concat(Te,"px"):String(Te),fe=parseFloat(String(Fe||0))===0?e.createElement("span",{onClick:K.toggle,className:r()("".concat(de,"-zero-width-trigger"),"".concat(de,"-zero-width-trigger-").concat(Me?"right":"left")),style:ue},Qe||e.createElement(h.a,null)):null,xe={expanded:Me?e.createElement(A.a,null):e.createElement(x.a,null),collapsed:Me?e.createElement(x.a,null):e.createElement(A.a,null)},ke=Y?"collapsed":"expanded",nt=xe[ke],Ct=Qe!==null?fe||e.createElement("div",{className:"".concat(de,"-trigger"),onClick:K.toggle,style:{width:Be}},Qe||nt):null,pt=m()(m()({},Ve),{flex:"0 0 ".concat(Be),maxWidth:Be,minWidth:Be,width:Be}),He=r()(re,de,"".concat(de,"-").concat(we),(G={},g()(G,"".concat(de,"-collapsed"),!!Y),g()(G,"".concat(de,"-has-trigger"),Oe&&Qe!==null&&!fe),g()(G,"".concat(de,"-below"),!!$),g()(G,"".concat(de,"-zero-width"),parseFloat(Be)===0),G));return e.createElement("aside",m()({className:He},be,{style:pt}),e.createElement("div",{className:"".concat(de,"-children")},et),Oe||$&&fe?Ct:null)},K.uniqueId=k("ant-sider-");var z;typeof window!="undefined"&&(z=window.matchMedia),z&&j.breakpoint&&j.breakpoint in O&&(K.mql=z("(max-width: ".concat(O[j.breakpoint],")")));var V;return"collapsed"in j?V=j.collapsed:V=j.defaultCollapsed,K.state={collapsed:V,below:!1},K}return l()(F,[{key:"componentDidMount",value:function(){var K;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(K=this.props)===null||K===void 0||K.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var K,z;(K=this===null||this===void 0?void 0:this.mql)===null||K===void 0||K.removeListener(this.responsiveHandler),(z=this.props)===null||z===void 0||z.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var K=this.state.collapsed,z=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:K,collapsedWidth:z}},e.createElement(T.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(K){return"collapsed"in K?{collapsed:K.collapsed}:null}}]),F}(e.Component);M.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var U=function(P){i()(F,P);var X=o()(F);function F(){return f()(this,F),X.apply(this,arguments)}return l()(F,[{key:"render",value:function(){var K=this;return e.createElement(E.a.Consumer,null,function(z){return e.createElement(M,m()({},z,K.props))})}}]),F}(e.Component)},ZYIC:function(R,D,n){var y=n("zM3Q"),g={seriesType:"lines",plan:y(),reset:function(S){var m=S.coordinateSystem,p=S.get("polyline"),f=S.pipelineContext.large;function d(l,a){var i=[];if(f){var t,o=l.end-l.start;if(p){for(var e=0,u=l.start;u<l.end;u++)e+=S.getLineCoordsCount(u);t=new Float32Array(o+e*2)}else t=new Float32Array(o*4);for(var r=0,s=[],u=l.start;u<l.end;u++){var c=S.getLineCoords(u,i);p&&(t[r++]=c);for(var h=0;h<c;h++)s=m.dataToPoint(i[h],!1,s),t[r++]=s[0],t[r++]=s[1]}a.setLayout("linesPoints",t)}else for(var u=l.start;u<l.end;u++){var v=a.getItemModel(u),c=S.getLineCoords(u,i),A=[];if(p)for(var b=0;b<c;b++)A.push(m.dataToPoint(i[b]));else{A[0]=m.dataToPoint(i[0]),A[1]=m.dataToPoint(i[1]);var x=v.get("lineStyle.curveness");+x&&(A[2]=[(A[0][0]+A[1][0])/2-(A[0][1]-A[1][1])*x,(A[0][1]+A[1][1])/2-(A[1][0]-A[0][0])*x])}a.setItemLayout(u,A)}}return{progress:d}}};R.exports=g},Ze12:function(R,D,n){var y=n("ItGF"),g=n("hOwI"),S=g.buildTransformer,m="___zrEVENTSAVED",p=[];function f(t,o,e,u,r){return d(p,o,u,r,!0)&&d(t,e,p[0],p[1])}function d(t,o,e,u,r){if(o.getBoundingClientRect&&y.domSupported&&!i(o)){var s=o[m]||(o[m]={}),c=l(o,s),h=a(c,s,r);if(h)return h(t,e,u),!0}return!1}function l(t,o){var e=o.markers;if(e)return e;e=o.markers=[];for(var u=["left","right"],r=["top","bottom"],s=0;s<4;s++){var c=document.createElement("div"),h=c.style,v=s%2,A=(s>>1)%2;h.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",u[v]+":0",r[A]+":0",u[1-v]+":auto",r[1-A]+":auto",""].join("!important;"),t.appendChild(c),e.push(c)}return e}function a(t,o,e){for(var u=e?"invTrans":"trans",r=o[u],s=o.srcCoords,c=!0,h=[],v=[],A=0;A<4;A++){var b=t[A].getBoundingClientRect(),x=2*A,E=b.left,T=b.top;h.push(E,T),c=c&&s&&E===s[x]&&T===s[x+1],v.push(t[A].offsetLeft,t[A].offsetTop)}return c&&r?r:(o.srcCoords=h,o[u]=e?S(v,h):S(h,v))}function i(t){return t.nodeName.toUpperCase()==="CANVAS"}D.transformLocalCoord=f,D.transformCoordWithViewport=d,D.isCanvasEl=i},Znkb:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("ProS"),m=n("zTMp"),p=S.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(i,t,o,e){this.axisPointerClass&&m.fixValue(i),p.superApply(this,"render",arguments),f(this,i,t,o,e,!0)},updateAxisPointer:function(i,t,o,e,u){f(this,i,t,o,e,!1)},remove:function(i,t){var o=this._axisPointer;o&&o.remove(t),p.superApply(this,"remove",arguments)},dispose:function(i,t){d(this,t),p.superApply(this,"dispose",arguments)}});function f(i,t,o,e,u,r){var s=p.getAxisPointerClass(i.axisPointerClass);if(!s)return;var c=m.getAxisPointerModel(t);c?(i._axisPointer||(i._axisPointer=new s)).render(t,c,e,r):d(i,e)}function d(i,t,o){var e=i._axisPointer;e&&e.dispose(t,o),i._axisPointer=null}var l=[];p.registerAxisPointerClass=function(i,t){l[i]=t},p.getAxisPointerClass=function(i){return i&&l[i]};var a=p;R.exports=a},"Znn+":function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("9ama"),m=n.n(S)},ZqQs:function(R,D,n){var y=n("bYtY");function g(f){var d=f&&f.timeline;y.isArray(d)||(d=d?[d]:[]),y.each(d,function(l){if(!l)return;S(l)})}function S(f){var d=f.type,l={number:"value",time:"time"};if(l[d]&&(f.axisType=l[d],delete f.type),m(f),p(f,"controlPosition")){var a=f.controlStyle||(f.controlStyle={});p(a,"position")||(a.position=f.controlPosition),a.position==="none"&&!p(a,"show")&&(a.show=!1,delete a.position),delete f.controlPosition}y.each(f.data||[],function(i){y.isObject(i)&&!y.isArray(i)&&(!p(i,"value")&&p(i,"name")&&(i.value=i.name),m(i))})}function m(f){var d=f.itemStyle||(f.itemStyle={}),l=d.emphasis||(d.emphasis={}),a=f.label||f.label||{},i=a.normal||(a.normal={}),t={normal:1,emphasis:1};y.each(a,function(o,e){!t[e]&&!p(i,e)&&(i[e]=o)}),l.label&&!p(a,"emphasis")&&(a.emphasis=l.label,delete l.label)}function p(f,d){return f.hasOwnProperty(d)}R.exports=g},Zvw2:function(R,D,n){var y=n("bYtY"),g=n("hM6l"),S=function(p,f,d,l,a){g.call(this,p,f,d),this.type=l||"value",this.position=a||"bottom",this.orient=null};S.prototype={constructor:S,model:null,isHorizontal:function(){var p=this.position;return p==="top"||p==="bottom"},pointToData:function(p,f){return this.coordinateSystem.pointToData(p,f)[0]},toGlobalCoord:null,toLocalCoord:null},y.inherits(S,g);var m=S;R.exports=m},ZxNd:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};D.default=y},a7Wl:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},a9QJ:function(R,D){var n={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function y(g,S){if(g==="world"){var m=n[S.name];if(m){var p=S.center;p[0]=m[0],p[1]=m[1]}}}R.exports=y},aHsQ:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("6D9b"),m=n.n(S)},aKvl:function(R,D,n){var y=n("Sj9i"),g=y.quadraticProjectPoint;function S(m,p,f,d,l,a,i,t,o){if(i===0)return!1;var e=i;if(o>p+e&&o>d+e&&o>a+e||o<p-e&&o<d-e&&o<a-e||t>m+e&&t>f+e&&t>l+e||t<m-e&&t<f-e&&t<l-e)return!1;var u=g(m,p,f,d,l,a,t,o,null);return u<=e/2}D.containStroke=S},aTJb:function(R,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(R,D,n){var y=n("3gBT"),g=n("ItGF"),S=n("bYtY"),m=n("0s+r"),p=n("r6Bn"),f=n("7SHv"),d=n("MKOG"),l=n("zarK");/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var a=!g.canvasSupported,i={canvas:f},t={},o="4.3.1";function e(v,A){var b=new h(y(),v,A);return t[b.id]=b,b}function u(v){if(v)v.dispose();else{for(var A in t)t.hasOwnProperty(A)&&t[A].dispose();t={}}return this}function r(v){return t[v]}function s(v,A){i[v]=A}function c(v){delete t[v]}var h=function(A,b,x){x=x||{},this.dom=b,this.id=A;var E=this,T=new p,_=x.renderer;if(a){if(!i.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");_="vml"}else(!_||!i[_])&&(_="canvas");var C=new i[_](b,T,x,A);this.storage=T,this.painter=C;var w=!g.node&&!g.worker?new l(C.getViewportRoot(),C.root):null;this.handler=new m(T,C,w,C.root),this.animation=new d({stage:{update:S.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var O=T.delFromStorage,I=T.addToStorage;T.delFromStorage=function(k){O.call(T,k),k&&k.removeSelfFromZr(E)},T.addToStorage=function(k){I.call(T,k),k.addSelfToZr(E)}};h.prototype={constructor:h,getId:function(){return this.id},add:function(A){this.storage.addRoot(A),this._needsRefresh=!0},remove:function(A){this.storage.delRoot(A),this._needsRefresh=!0},configLayer:function(A,b){this.painter.configLayer&&this.painter.configLayer(A,b),this._needsRefresh=!0},setBackgroundColor:function(A){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(A),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 A;this._needsRefresh&&(A=!0,this.refreshImmediately()),this._needsRefreshHover&&(A=!0,this.refreshHoverImmediately()),A&&this.trigger("rendered")},addHover:function(A,b){if(this.painter.addHover){var x=this.painter.addHover(A,b);return this.refreshHover(),x}},removeHover:function(A){this.painter.removeHover&&(this.painter.removeHover(A),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(A){A=A||{},this.painter.resize(A.width,A.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(A,b){return this.painter.pathToImage(A,b)},setCursorStyle:function(A){this.handler.setCursorStyle(A)},findHover:function(A,b){return this.handler.findHover(A,b)},on:function(A,b,x){this.handler.on(A,b,x)},off:function(A,b){this.handler.off(A,b)},trigger:function(A,b){this.handler.trigger(A,b)},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,c(this.id)}},D.version=o,D.init=e,D.dispose=u,D.getInstance=r,D.registerPainter=s},aX7z:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=n("GMDS"),p=n("ieMj"),f=n("4NgU"),d=n("OELB"),l=n("nVfU"),a=l.prepareLayoutBarSeries,i=l.makeColumnLayout,t=l.retrieveColumnLayout,o=n("mFDi");n("IWp7"),n("jCoz");function e(T,_){var C=T.type,w=_.getMin(),O=_.getMax(),I=T.getExtent(),k,M,U;C==="ordinal"?k=_.getCategories().length:(M=_.get("boundaryGap"),S.isArray(M)||(M=[M||0,M||0]),typeof M[0]=="boolean"&&(M=[0,0]),M[0]=d.parsePercent(M[0],1),M[1]=d.parsePercent(M[1],1),U=I[1]-I[0]||Math.abs(I[0])),w==="dataMin"?w=I[0]:typeof w=="function"&&(w=w({min:I[0],max:I[1]})),O==="dataMax"?O=I[1]:typeof O=="function"&&(O=O({min:I[0],max:I[1]}));var P=w!=null,X=O!=null;w==null&&(w=C==="ordinal"?k?0:NaN:I[0]-M[0]*U),O==null&&(O=C==="ordinal"?k?k-1:NaN:I[1]+M[1]*U),(w==null||!isFinite(w))&&(w=NaN),(O==null||!isFinite(O))&&(O=NaN),T.setBlank(S.eqNaN(w)||S.eqNaN(O)||C==="ordinal"&&!T.getOrdinalMeta().categories.length),_.getNeedCrossZero()&&(w>0&&O>0&&!P&&(w=0),w<0&&O<0&&!X&&(O=0));var F=_.ecModel;if(F&&C==="time"){var j=a("bar",F),K;if(S.each(j,function(Q){K|=Q.getBaseAxis()===_.axis}),K){var z=i(j),V=u(w,O,_,z);w=V.min,O=V.max}}return{extent:[w,O],fixMin:P,fixMax:X}}function u(T,_,C,w){var O=C.axis.getExtent(),I=O[1]-O[0],k=t(w,C.axis);if(k===void 0)return{min:T,max:_};var M=Infinity;S.each(k,function(K){M=Math.min(K.offset,M)});var U=-Infinity;S.each(k,function(K){U=Math.max(K.offset+K.width,U)}),M=Math.abs(M),U=Math.abs(U);var P=M+U,X=_-T,F=1-(M+U)/I,j=X/F-X;return _+=j*(U/P),T-=j*(M/P),{min:T,max:_}}function r(T,_){var C=e(T,_),w=C.extent,O=_.get("splitNumber");T.type==="log"&&(T.base=_.get("logBase"));var I=T.type;T.setExtent(w[0],w[1]),T.niceExtent({splitNumber:O,fixMin:C.fixMin,fixMax:C.fixMax,minInterval:I==="interval"||I==="time"?_.get("minInterval"):null,maxInterval:I==="interval"||I==="time"?_.get("maxInterval"):null});var k=_.get("interval");k!=null&&(T.setInterval&&T.setInterval(k))}function s(T,_){if(_=_||T.get("type"),_)switch(_){case"category":return new m(T.getOrdinalMeta?T.getOrdinalMeta():T.getCategories(),[Infinity,-Infinity]);case"value":return new p;default:return(f.getClass(_)||p).create(T)}}function c(T){var _=T.scale.getExtent(),C=_[0],w=_[1];return!(C>0&&w>0||C<0&&w<0)}function h(T){var _=T.getLabelModel().get("formatter"),C=T.type==="category"?T.scale.getExtent()[0]:null;return typeof _=="string"?(_=function(w){return function(O){return O=T.scale.getLabel(O),w.replace("{value}",O!=null?O:"")}}(_),_):typeof _=="function"?function(w,O){return C!=null&&(O=w-C),_(v(T,w),O)}:function(w){return T.scale.getLabel(w)}}function v(T,_){return T.type==="category"?T.scale.getLabel(_):_}function A(T){var _=T.model,C=T.scale;if(!_.get("axisLabel.show")||C.isBlank())return;var w=T.type==="category",O,I,k=C.getExtent();w?I=C.count():(O=C.getTicks(),I=O.length);var M=T.getLabelModel(),U=h(T),P,X=1;I>40&&(X=Math.ceil(I/40));for(var F=0;F<I;F+=X){var j=O?O[F]:k[0]+F,K=U(j),z=M.getTextRect(K),V=b(z,M.get("rotate")||0);P?P.union(V):P=V}return P}function b(T,_){var C=_*Math.PI/180,w=T.plain(),O=w.width,I=w.height,k=O*Math.cos(C)+I*Math.sin(C),M=O*Math.sin(C)+I*Math.cos(C),U=new o(w.x,w.y,k,M);return U}function x(T){var _=T.get("interval");return _==null?"auto":_}function E(T){return T.type==="category"&&x(T.getLabelModel())===0}D.getScaleExtent=e,D.niceScaleExtent=r,D.createScaleByModel=s,D.ifAxisCrossZero=c,D.makeLabelFormatter=h,D.getAxisRawValue=v,D.estimateLabelUnionRect=A,D.getOptionCategoryInterval=x,D.shouldShowAllLabels=E},adU4:function(R,D,n){var y=n("y1pI"),g=Array.prototype,S=g.splice;function m(p){var f=this.__data__,d=y(f,p);if(d<0)return!1;var l=f.length-1;return d==l?f.pop():S.call(f,d,1),--this.size,!0}R.exports=m},"af/B":function(R,D,n){var y=n("bYtY"),g=y.each,S=y.map,m=y.isFunction,p=y.createHashMap,f=y.noop,d=n("9H2F"),l=d.createTask,a=n("iRjW"),i=a.getUID,t=n("fmMI"),o=n("hD7B"),e=n("4NO4"),u=e.normalizeToArray;function r(K,z,V,Q){this.ecInstance=K,this.api=z,this.unfinished;var V=this._dataProcessorHandlers=V.slice(),Q=this._visualHandlers=Q.slice();this._allHandlers=V.concat(Q),this._stageTaskMap=p()}var s=r.prototype;s.restoreData=function(K,z){K.restoreData(z),this._stageTaskMap.each(function(V){var Q=V.overallTask;Q&&Q.dirty()})},s.getPerformArgs=function(K,z){if(!K.__pipeline)return;var V=this._pipelineMap.get(K.__pipeline.id),Q=V.context,G=!z&&V.progressiveEnabled&&(!Q||Q.progressiveRender)&&K.__idxInPipeline>V.blockIndex,te=G?V.step:null,q=Q&&Q.modDataCount,se=q!=null?Math.ceil(q/te):null;return{step:te,modBy:se,modDataCount:q}},s.getPipeline=function(K){return this._pipelineMap.get(K)},s.updateStreamModes=function(K,z){var V=this._pipelineMap.get(K.uid),Q=K.getData(),G=Q.count(),te=V.progressiveEnabled&&z.incrementalPrepareRender&&G>=V.threshold,q=K.get("large")&&G>=K.get("largeThreshold"),se=K.get("progressiveChunkMode")==="mod"?G:null;K.pipelineContext=V.context={progressiveRender:te,modDataCount:se,large:q}},s.restorePipelines=function(K){var z=this,V=z._pipelineMap=p();K.eachSeries(function(Q){var G=Q.getProgressive(),te=Q.uid;V.set(te,{id:te,head:null,tail:null,threshold:Q.getProgressiveThreshold(),progressiveEnabled:G&&!(Q.preventIncremental&&Q.preventIncremental()),blockIndex:-1,step:Math.round(G||700),count:0}),k(z,Q,Q.dataTask)})},s.prepareStageTasks=function(){var K=this._stageTaskMap,z=this.ecInstance.getModel(),V=this.api;g(this._allHandlers,function(Q){var G=K.get(Q.uid)||K.set(Q.uid,[]);Q.reset&&v(this,Q,G,z,V),Q.overallReset&&A(this,Q,G,z,V)},this)},s.prepareView=function(K,z,V,Q){var G=K.renderTask,te=G.context;te.model=z,te.ecModel=V,te.api=Q,G.__block=!K.incrementalPrepareRender,k(this,z,G)},s.performDataProcessorTasks=function(K,z){c(this,this._dataProcessorHandlers,K,z,{block:!0})},s.performVisualTasks=function(K,z,V){c(this,this._visualHandlers,K,z,V)};function c(K,z,V,Q,G){G=G||{};var te;g(z,function(se,re){if(G.visualType&&G.visualType!==se.visualType)return;var we=K._stageTaskMap.get(se.uid),Oe=we.seriesTaskMap,Me=we.overallTask;if(Me){var Qe,Ve=Me.agentStubMap;Ve.each(function(Fe){q(G,Fe)&&(Fe.dirty(),Qe=!0)}),Qe&&Me.dirty(),h(Me,Q);var dt=K.getPerformArgs(Me,G.block);Ve.each(function(Fe){Fe.perform(dt)}),te|=Me.perform(dt)}else Oe&&Oe.each(function(Fe,ue){q(G,Fe)&&Fe.dirty();var et=K.getPerformArgs(Fe,G.block);et.skip=!se.performRawSeries&&V.isSeriesFiltered(Fe.context.model),h(Fe,Q),te|=Fe.perform(et)})});function q(se,re){return se.setDirty&&(!se.dirtyMap||se.dirtyMap.get(re.__pipeline.id))}K.unfinished|=te}s.performSeriesTasks=function(K){var z;K.eachSeries(function(V){z|=V.dataTask.perform()}),this.unfinished|=z},s.plan=function(){this._pipelineMap.each(function(K){var z=K.tail;do{if(z.__block){K.blockIndex=z.__idxInPipeline;break}z=z.getUpstream()}while(z)})};var h=s.updatePayload=function(K,z){z!=="remain"&&(K.context.payload=z)};function v(K,z,V,Q,G){var te=V.seriesTaskMap||(V.seriesTaskMap=p()),q=z.seriesType,se=z.getTargetSeries;z.createOnAllSeries?Q.eachRawSeries(re):q?Q.eachRawSeriesByType(q,re):se&&se(Q,G).each(re);function re(Oe){var Me=Oe.uid,Qe=te.get(Me)||te.set(Me,l({plan:_,reset:C,count:I}));Qe.context={model:Oe,ecModel:Q,api:G,useClearVisual:z.isVisual&&!z.isLayout,plan:z.plan,reset:z.reset,scheduler:K},k(K,Oe,Qe)}var we=K._pipelineMap;te.each(function(Oe,Me){we.get(Me)||(Oe.dispose(),te.removeKey(Me))})}function A(K,z,V,Q,G){var te=V.overallTask=V.overallTask||l({reset:b});te.context={ecModel:Q,api:G,overallReset:z.overallReset,scheduler:K};var q=te.agentStubMap=te.agentStubMap||p(),se=z.seriesType,re=z.getTargetSeries,we=!0,Oe=z.modifyOutputEnd;se?Q.eachRawSeriesByType(se,Me):re?re(Q,G).each(Me):(we=!1,g(Q.getSeries(),Me));function Me(Ve){var dt=Ve.uid,Fe=q.get(dt);Fe||(Fe=q.set(dt,l({reset:x,onDirty:T})),te.dirty()),Fe.context={model:Ve,overallProgress:we,modifyOutputEnd:Oe},Fe.agent=te,Fe.__block=we,k(K,Ve,Fe)}var Qe=K._pipelineMap;q.each(function(Ve,dt){Qe.get(dt)||(Ve.dispose(),te.dirty(),q.removeKey(dt))})}function b(K){K.overallReset(K.ecModel,K.api,K.payload)}function x(K,z){return K.overallProgress&&E}function E(){this.agent.dirty(),this.getDownstream().dirty()}function T(){this.agent&&this.agent.dirty()}function _(K){return K.plan&&K.plan(K.model,K.ecModel,K.api,K.payload)}function C(K){K.useClearVisual&&K.data.clearAllVisual();var z=K.resetDefines=u(K.reset(K.model,K.ecModel,K.api,K.payload));return z.length>1?S(z,function(V,Q){return O(Q)}):w}var w=O(0);function O(K){return function(z,V){var Q=V.data,G=V.resetDefines[K];if(G&&G.dataEach)for(var te=z.start;te<z.end;te++)G.dataEach(Q,te);else G&&G.progress&&G.progress(z,Q)}}function I(K){return K.data.count()}function k(K,z,V){var Q=z.uid,G=K._pipelineMap.get(Q);!G.head&&(G.head=V),G.tail&&G.tail.pipe(V),G.tail=V,V.__idxInPipeline=G.count++,V.__pipeline=G}r.wrapStageHandler=function(K,z){return m(K)&&(K={overallReset:K,seriesType:M(K)}),K.uid=i("stageHandler"),z&&(K.visualType=z),K};function M(K){X=null;try{K(U,P)}catch(z){}return X}var U={},P={},X;F(U,t),F(P,o),U.eachSeriesByType=U.eachRawSeriesByType=function(K){X=K},U.eachComponent=function(K){K.mainType==="series"&&K.subType&&(X=K.subType)};function F(K,z){for(var V in z.prototype)K[V]=f}var j=r;R.exports=j},akwb:function(R,D,n){var y=n("RSch"),g=n("bYtY"),S=n("D9ME"),m=n("QBsz");function p(l,a,i){S.call(this,l,a,i),this._lastFrame=0,this._lastFramePercent=0}var f=p.prototype;f.createLine=function(l,a,i){return new y(l,a,i)},f.updateAnimationPoints=function(l,a){this._points=a;for(var i=[0],t=0,o=1;o<a.length;o++){var e=a[o-1],u=a[o];t+=m.dist(e,u),i.push(t)}if(t===0)return;for(var o=0;o<i.length;o++)i[o]/=t;this._offsets=i,this._length=t},f.getLineLength=function(l){return this._length},f.updateSymbolPosition=function(l){var a=l.__t,i=this._points,t=this._offsets,o=i.length;if(!t)return;var e=this._lastFrame,u;if(a<this._lastFramePercent){var r=Math.min(e+1,o-1);for(u=r;u>=0&&!(t[u]<=a);u--);u=Math.min(u,o-2)}else{for(var u=e;u<o&&!(t[u]>a);u++);u=Math.min(u-1,o-2)}m.lerp(l.position,i[u],i[u+1],(a-t[u])/(t[u+1]-t[u]));var s=i[u+1][0]-i[u][0],c=i[u+1][1]-i[u][1];l.rotation=-Math.atan2(c,s)-Math.PI/2,this._lastFrame=u,this._lastFramePercent=a,l.ignore=!1},g.inherits(p,S);var d=p;R.exports=d},apAg:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("bsht")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="SearchOutlined";var i=m.forwardRef(a);D.default=i},as94:function(R,D,n){var y=n("7aKB"),g=n("3LNs"),S=n("IwbS"),m=n("/y7N"),p=n("Fofx"),f=n("+rIm"),d=n("Znkb"),l=g.extend({makeElOption:function(o,e,u,r,s){var c=u.axis;c.dim==="angle"&&(this.animationThreshold=Math.PI/18);var h=c.polar,v=h.getOtherAxis(c),A=v.getExtent(),b;b=c["dataTo"+y.capitalFirst(c.dim)](e);var x=r.get("type");if(x&&x!=="none"){var E=m.buildElStyle(r),T=i[x](c,h,b,A,E);T.style=E,o.graphicKey=T.type,o.pointer=T}var _=r.get("label.margin"),C=a(e,u,r,h,_);m.buildLabelElOption(o,u,r,s,C)}});function a(o,e,u,r,s){var c=e.axis,h=c.dataToCoord(o),v=r.getAngleAxis().getExtent()[0];v=v/180*Math.PI;var A=r.getRadiusAxis().getExtent(),b,x,E;if(c.dim==="radius"){var T=p.create();p.rotate(T,T,v),p.translate(T,T,[r.cx,r.cy]),b=S.applyTransform([h,-s],T);var _=e.getModel("axisLabel").get("rotate")||0,C=f.innerTextLayout(v,_*Math.PI/180,-1);x=C.textAlign,E=C.textVerticalAlign}else{var w=A[1];b=r.coordToPoint([w+s,h]);var O=r.cx,I=r.cy;x=Math.abs(b[0]-O)/w<.3?"center":b[0]>O?"left":"right",E=Math.abs(b[1]-I)/w<.3?"middle":b[1]>I?"top":"bottom"}return{position:b,align:x,verticalAlign:E}}var i={line:function(o,e,u,r,s){return o.dim==="angle"?{type:"Line",shape:m.makeLineShape(e.coordToPoint([r[0],u]),e.coordToPoint([r[1],u]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:u}}},shadow:function(o,e,u,r,s){var c=Math.max(1,o.getBandWidth()),h=Math.PI/180;return o.dim==="angle"?{type:"Sector",shape:m.makeSectorShape(e.cx,e.cy,r[0],r[1],(-u-c/2)*h,(-u+c/2)*h)}:{type:"Sector",shape:m.makeSectorShape(e.cx,e.cy,u-c/2,u+c/2,0,Math.PI*2)}}};d.registerAxisPointerClass("PolarAxisPointer",l);var t=l;R.exports=t},b56q:function(R,D,n){},b80T:function(R,D,n){var y=n("UNi/"),g=n("03A+"),S=n("Z0cm"),m=n("DSRE"),p=n("wJg7"),f=n("c6wG"),d=Object.prototype,l=d.hasOwnProperty;function a(i,t){var o=S(i),e=!o&&g(i),u=!o&&!e&&m(i),r=!o&&!e&&!u&&f(i),s=o||e||u||r,c=s?y(i.length,String):[],h=c.length;for(var v in i)(t||l.call(i,v))&&!(s&&(v=="length"||u&&(v=="offset"||v=="parent")||r&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||p(v,h)))&&c.push(v);return c}R.exports=a},b80e:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("gKaM")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="DoubleLeftOutlined";var i=m.forwardRef(a);D.default=i},b9oc:function(R,D,n){var y=n("bYtY"),g=y.each,S="\0_ec_hist_store";function m(a,i){var t=l(a);g(i,function(o,e){for(var u=t.length-1;u>=0;u--){var r=t[u];if(r[e])break}if(u<0){var s=a.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(s){var c=s.getPercentRange();t[0][e]={dataZoomId:e,start:c[0],end:c[1]}}}}),t.push(i)}function p(a){var i=l(a),t=i[i.length-1];i.length>1&&i.pop();var o={};return g(t,function(e,u){for(var r=i.length-1;r>=0;r--){var e=i[r][u];if(e){o[u]=e;break}}}),o}function f(a){a[S]=null}function d(a){return l(a).length}function l(a){var i=a[S];return i||(i=a[S]=[{}]),i}D.push=m,D.pop=p,D.clear=f,D.count=d},bBKM:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("ProS"),m=n("bYtY"),p=n("+rIm"),f=n("IwbS"),d=["axisLine","axisTickLabel","axisName"],l=S.extendComponentView({type:"radar",render:function(a,i,t){var o=this.group;o.removeAll(),this._buildAxes(a),this._buildSplitLineAndArea(a)},_buildAxes:function(a){var i=a.coordinateSystem,t=i.getIndicatorAxes(),o=m.map(t,function(e){var u=new p(e.model,{position:[i.cx,i.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});m.each(o,function(e){m.each(d,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(a){var i=a.coordinateSystem,t=i.getIndicatorAxes();if(!t.length)return;var o=a.get("shape"),e=a.getModel("splitLine"),u=a.getModel("splitArea"),r=e.getModel("lineStyle"),s=u.getModel("areaStyle"),c=e.get("show"),h=u.get("show"),v=r.get("color"),A=s.get("color");v=m.isArray(v)?v:[v],A=m.isArray(A)?A:[A];var b=[],x=[];function E(j,K,z){var V=z%K.length;return j[V]=j[V]||[],V}if(o==="circle")for(var T=t[0].getTicksCoords(),_=i.cx,C=i.cy,w=0;w<T.length;w++){if(c){var O=E(b,v,w);b[O].push(new f.Circle({shape:{cx:_,cy:C,r:T[w].coord}}))}if(h&&w<T.length-1){var O=E(x,A,w);x[O].push(new f.Ring({shape:{cx:_,cy:C,r0:T[w].coord,r:T[w+1].coord}}))}}else for(var I,k=m.map(t,function(j,K){var z=j.getTicksCoords();return I=I==null?z.length-1:Math.min(z.length-1,I),m.map(z,function(V){return i.coordToPoint(V.coord,K)})}),M=[],w=0;w<=I;w++){for(var U=[],P=0;P<t.length;P++)U.push(k[P][w]);if(U[0]&&U.push(U[0].slice()),c){var O=E(b,v,w);b[O].push(new f.Polyline({shape:{points:U}}))}if(h&&M){var O=E(x,A,w-1);x[O].push(new f.Polygon({shape:{points:U.concat(M)}}))}M=U.slice().reverse()}var X=r.getLineStyle(),F=s.getAreaStyle();m.each(x,function(j,K){this.group.add(f.mergePath(j,{style:m.defaults({stroke:"none",fill:A[K%A.length]},F),silent:!0}))},this),m.each(b,function(j,K){this.group.add(f.mergePath(j,{style:m.defaults({fill:"none",stroke:v[K%v.length]},X),silent:!0}))},this)}});R.exports=l},bBL8:function(R,D,n){var y=n("ProS");n("LPzL"),n("rfSb"),n("JVwQ");var g=n("UnoB"),S=n("cbJ4"),m=n("0/Rx");y.registerLayout(g),y.registerVisual(S),y.registerProcessor(m("themeRiver"))},bE4E:function(R,D,n){},bE4q:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("RIqP"),f=n.n(p),d=n("q1tI"),l=n("TSYQ"),a=n.n(l),i=n("Zm9Q"),t=n("HQEm"),o=n.n(t),e=n("XBQK"),u=n("H84U"),r=function(M,U){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&U.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,X=Object.getOwnPropertySymbols(M);F<X.length;F++)U.indexOf(X[F])<0&&Object.prototype.propertyIsEnumerable.call(M,X[F])&&(P[X[F]]=M[X[F]]);return P},s=function(U){var P=U.prefixCls,X=U.separator,F=X===void 0?"/":X,j=U.children,K=U.overlay,z=U.dropdownProps,V=r(U,["prefixCls","separator","children","overlay","dropdownProps"]),Q=d.useContext(u.b),G=Q.getPrefixCls,te=G("breadcrumb",P),q=function(we){return K?d.createElement(e.a,g()({overlay:K,placement:"bottomCenter"},z),d.createElement("span",{className:"".concat(te,"-overlay-link")},we,d.createElement(o.a,null))):we},se;return"href"in V?se=d.createElement("a",g()({className:"".concat(te,"-link")},V),j):se=d.createElement("span",g()({className:"".concat(te,"-link")},V),j),se=q(se),j?d.createElement("span",null,se,F&&F!==""&&d.createElement("span",{className:"".concat(te,"-separator")},F)):null};s.__ANT_BREADCRUMB_ITEM=!0;var c=s,h=function(U){var P=U.children,X=d.useContext(u.b),F=X.getPrefixCls,j=F("breadcrumb");return d.createElement("span",{className:"".concat(j,"-separator")},P||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var v=h,A=n("BvKs"),b=n("uaoM"),x=n("0n0R"),E=function(M,U){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&U.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,X=Object.getOwnPropertySymbols(M);F<X.length;F++)U.indexOf(X[F])<0&&Object.prototype.propertyIsEnumerable.call(M,X[F])&&(P[X[F]]=M[X[F]]);return P};function T(M,U){if(!M.breadcrumbName)return null;var P=Object.keys(U).join("|"),X=M.breadcrumbName.replace(new RegExp(":(".concat(P,")"),"g"),function(F,j){return U[j]||F});return X}function _(M,U,P,X){var F=P.indexOf(M)===P.length-1,j=T(M,U);return F?d.createElement("span",null,j):d.createElement("a",{href:"#/".concat(X.join("/"))},j)}var C=function(U,P){return U=(U||"").replace(/^\//,""),Object.keys(P).forEach(function(X){U=U.replace(":".concat(X),P[X])}),U},w=function(U){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=arguments.length>2?arguments[2]:void 0,F=f()(U),j=C(P,X);return j&&F.push(j),F},O=function(U){var P=U.prefixCls,X=U.separator,F=X===void 0?"/":X,j=U.style,K=U.className,z=U.routes,V=U.children,Q=U.itemRender,G=Q===void 0?_:Q,te=U.params,q=te===void 0?{}:te,se=E(U,["prefixCls","separator","style","className","routes","children","itemRender","params"]),re=d.useContext(u.b),we=re.getPrefixCls,Oe=re.direction,Me,Qe=we("breadcrumb",P);if(z&&z.length>0){var Ve=[];Me=z.map(function(Fe){var ue=C(Fe.path,q);ue&&Ve.push(ue);var et;return Fe.children&&Fe.children.length&&(et=d.createElement(A.a,null,Fe.children.map(function(he){return d.createElement(A.a.Item,{key:he.path||he.breadcrumbName},G(he,q,z,w(Ve,he.path,q)))}))),d.createElement(c,{overlay:et,separator:F,key:ue||Fe.breadcrumbName},G(Fe,q,z,Ve))})}else V&&(Me=Object(i.a)(V).map(function(Fe,ue){return Fe&&(Object(b.a)(Fe.type&&(Fe.type.__ANT_BREADCRUMB_ITEM===!0||Fe.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(x.a)(Fe,{separator:F,key:ue}))}));var dt=a()(K,Qe,m()({},"".concat(Qe,"-rtl"),Oe==="rtl"));return d.createElement("div",g()({className:dt,style:j},se),Me)};O.Item=c,O.Separator=v;var I=O,k=D.a=I},bKJz:function(R,D,n){},bLfw:function(R,D,n){var y=n("bYtY"),g=n("Qxkt"),S=n("iRjW"),m=n("Yl7c"),p=m.enableClassManagement,f=m.parseClassType,d=n("4NO4"),l=d.makeInner,a=n("+TT/"),i=n("3hzK"),t=l(),o=g.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(r,s,c,h){g.call(this,r,s,c,h),this.uid=S.getUID("ec_cpt_model")},init:function(r,s,c,h){this.mergeDefaultAndTheme(r,c)},mergeDefaultAndTheme:function(r,s){var c=this.layoutMode,h=c?a.getLayoutParams(r):{},v=s.getTheme();y.merge(r,v.get(this.mainType)),y.merge(r,this.getDefaultOption()),c&&a.mergeLayoutParam(r,h,c)},mergeOption:function(r,s){y.merge(this.option,r,!0);var c=this.layoutMode;c&&a.mergeLayoutParam(this.option,r,c)},optionUpdated:function(r,s){},getDefaultOption:function(){var r=t(this);if(!r.defaultOption){for(var s=[],c=this.constructor;c;){var h=c.prototype.defaultOption;h&&s.push(h),c=c.superClass}for(var v={},A=s.length-1;A>=0;A--)v=y.merge(v,s[A],!0);r.defaultOption=v}return r.defaultOption},getReferringComponents:function(r){return this.ecModel.queryComponents({mainType:r,index:this.get(r+"Index",!0),id:this.get(r+"Id",!0)})}});p(o,{registerWhenExtend:!0}),S.enableSubTypeDefaulter(o),S.enableTopologicalTravel(o,e);function e(r){var s=[];return y.each(o.getClassesByMainType(r),function(c){s=s.concat(c.prototype.dependencies||[])}),s=y.map(s,function(c){return f(c).main}),r!=="dataset"&&y.indexOf(s,"dataset")<=0&&s.unshift("dataset"),s}y.mixin(o,i);var u=o;R.exports=u},bMXI:function(R,D,n){var y=n("bYtY"),g=n("QBsz"),S=n("Fofx"),m=n("mFDi"),p=n("DN4a"),f=g.applyTransform;function d(){p.call(this)}y.mixin(d,p);function l(t){this.name=t,this.zoomLimit,p.call(this),this._roamTransformable=new d,this._rawTransformable=new d,this._center,this._zoom}l.prototype={constructor:l,type:"view",dimensions:["x","y"],setBoundingRect:function(t,o,e,u){return this._rect=new m(t,o,e,u),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,o,e,u){this.transformTo(t,o,e,u),this._viewRect=new m(t,o,e,u)},transformTo:function(t,o,e,u){var r=this.getBoundingRect(),s=this._rawTransformable;s.transform=r.calculateTransform(new m(t,o,e,u)),s.decomposeTransform(),this._updateTransform()},setCenter:function(t){if(!t)return;this._center=t,this._updateCenterAndZoom()},setZoom:function(t){t=t||1;var o=this.zoomLimit;o&&(o.max!=null&&(t=Math.min(o.max,t)),o.min!=null&&(t=Math.max(o.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),o=t.x+t.width/2,e=t.y+t.height/2;return[o,e]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),o=this._roamTransformable,e=this.getDefaultCenter(),u=this.getCenter(),r=this.getZoom();u=g.applyTransform([],u,t),e=g.applyTransform([],e,t),o.origin=u,o.position=[e[0]-u[0],e[1]-u[1]],o.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,o=this._rawTransformable;o.parent=t,t.updateTransform(),o.updateTransform(),S.copy(this.transform||(this.transform=[]),o.transform||S.create()),this._rawTransform=o.getLocalTransform(),this.invTransform=this.invTransform||[],S.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,o=this._rawTransformable;return{roamTransform:t?y.slice(t):S.create(),rawScale:y.slice(o.scale),rawPosition:y.slice(o.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,o,e){var u=o?this._rawTransform:this.transform;return e=e||[],u?f(e,t,u):g.copy(e,t)},pointToData:function(t){var o=this.invTransform;return o?f([],t,o):[t[0],t[1]]},convertToPixel:y.curry(a,"dataToPoint"),convertFromPixel:y.curry(a,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},y.mixin(l,p);function a(t,o,e,u){var r=e.seriesModel,s=r?r.coordinateSystem:null;return s===this?s[t](u):null}var i=l;R.exports=i},bNin:function(R,D,n){var y=n("bYtY"),g=n("IwbS"),S=n("FBjb"),m=n("Itpr"),p=m.radialCoordinate,f=n("ProS"),d=n("4mN7"),l=n("bMXI"),a=n("Ae+d"),i=n("SgGq"),t=n("xSat"),o=t.onIrrelevantElement,e=n("Tghj"),u=e.__DEV__,r=n("OELB"),s=r.parsePercent,c=g.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(_,C){var w=C.childPoints,O=w.length,I=C.parentPoint,k=w[0],M=w[O-1];if(O===1){_.moveTo(I[0],I[1]),_.lineTo(k[0],k[1]);return}var U=C.orient,P=U==="TB"||U==="BT"?0:1,X=1-P,F=s(C.forkPosition,1),j=[];j[P]=I[P],j[X]=I[X]+(M[X]-I[X])*F,_.moveTo(I[0],I[1]),_.lineTo(j[0],j[1]),_.moveTo(k[0],k[1]),j[P]=k[P],_.lineTo(j[0],j[1]),j[P]=M[P],_.lineTo(j[0],j[1]),_.lineTo(M[0],M[1]);for(var K=1;K<O-1;K++){var z=w[K];_.moveTo(z[0],z[1]),j[P]=z[P],_.lineTo(j[0],j[1])}}}),h=f.extendChartView({type:"tree",init:function(_,C){this._oldTree,this._mainGroup=new g.Group,this._controller=new i(C.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(_,C,w,O){var I=_.getData(),k=_.layoutInfo,M=this._mainGroup,U=_.get("layout");U==="radial"?M.attr("position",[k.x+k.width/2,k.y+k.height/2]):M.attr("position",[k.x,k.y]),this._updateViewCoordSys(_,k,U),this._updateController(_,C,w);var P=this._data,X={expandAndCollapse:_.get("expandAndCollapse"),layout:U,edgeShape:_.get("edgeShape"),edgeForkPosition:_.get("edgeForkPosition"),orient:_.getOrient(),curvature:_.get("lineStyle.curveness"),symbolRotate:_.get("symbolRotate"),symbolOffset:_.get("symbolOffset"),hoverAnimation:_.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};I.diff(P).add(function(F){v(I,F)&&b(I,F,null,M,_,X)}).update(function(F,j){var K=P.getItemGraphicEl(j);if(!v(I,F)){K&&E(P,j,K,M,_,X);return}b(I,F,K,M,_,X)}).remove(function(F){var j=P.getItemGraphicEl(F);j&&E(P,F,j,M,_,X)}).execute(),this._nodeScaleRatio=_.get("nodeScaleRatio"),this._updateNodeAndLinkScale(_),X.expandAndCollapse===!0&&I.eachItemGraphicEl(function(F,j){F.off("click").on("click",function(){w.dispatchAction({type:"treeExpandAndCollapse",seriesId:_.id,dataIndex:j})})}),this._data=I},_updateViewCoordSys:function(_){var C=_.getData(),w=[];C.each(function(P){var X=C.getItemLayout(P);X&&!isNaN(X.x)&&!isNaN(X.y)&&w.push([+X.x,+X.y])});var O=[],I=[];d.fromPoints(w,O,I);var k=this._min,M=this._max;I[0]-O[0]===0&&(O[0]=k?k[0]:O[0]-1,I[0]=M?M[0]:I[0]+1),I[1]-O[1]===0&&(O[1]=k?k[1]:O[1]-1,I[1]=M?M[1]:I[1]+1);var U=_.coordinateSystem=new l;U.zoomLimit=_.get("scaleLimit"),U.setBoundingRect(O[0],O[1],I[0]-O[0],I[1]-O[1]),U.setCenter(_.get("center")),U.setZoom(_.get("zoom")),this.group.attr({position:U.position,scale:U.scale}),this._viewCoordSys=U,this._min=O,this._max=I},_updateController:function(_,C,w){var O=this._controller,I=this._controllerHost,k=this.group;O.setPointerChecker(function(M,U,P){var X=k.getBoundingRect();return X.applyTransform(k.transform),X.contain(U,P)&&!o(M,w,_)}),O.enable(_.get("roam")),I.zoomLimit=_.get("scaleLimit"),I.zoom=_.coordinateSystem.getZoom(),O.off("pan").off("zoom").on("pan",function(M){a.updateViewOnPan(I,M.dx,M.dy),w.dispatchAction({seriesId:_.id,type:"treeRoam",dx:M.dx,dy:M.dy})},this).on("zoom",function(M){a.updateViewOnZoom(I,M.scale,M.originX,M.originY),w.dispatchAction({seriesId:_.id,type:"treeRoam",zoom:M.scale,originX:M.originX,originY:M.originY}),this._updateNodeAndLinkScale(_)},this)},_updateNodeAndLinkScale:function(_){var C=_.getData(),w=this._getNodeGlobalScale(_),O=[w,w];C.eachItemGraphicEl(function(I,k){I.attr("scale",O)})},_getNodeGlobalScale:function(_){var C=_.coordinateSystem;if(C.type!=="view")return 1;var w=this._nodeScaleRatio,O=C.scale,I=O&&O[0]||1,k=C.getZoom(),M=(k-1)*w+1;return M/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function v(_,C){var w=_.getItemLayout(C);return w&&!isNaN(w.x)&&!isNaN(w.y)&&_.getItemVisual(C,"symbol")!=="none"}function A(_,C,w){return w.itemModel=C,w.itemStyle=C.getModel("itemStyle").getItemStyle(),w.hoverItemStyle=C.getModel("emphasis.itemStyle").getItemStyle(),w.lineStyle=C.getModel("lineStyle").getLineStyle(),w.labelModel=C.getModel("label"),w.hoverLabelModel=C.getModel("emphasis.label"),_.isExpand===!1&&_.children.length!==0?w.symbolInnerColor=w.itemStyle.fill:w.symbolInnerColor="#fff",w}function b(_,C,w,O,I,k){var M=!w,U=_.tree.getNodeByDataIndex(C),P=U.getModel(),k=A(U,P,k),X=_.tree.root,F=U.parentNode===X?U:U.parentNode||U,j=_.getItemGraphicEl(F.dataIndex),K=F.getLayout(),z=j?{x:j.position[0],y:j.position[1],rawX:j.__radialOldRawX,rawY:j.__radialOldRawY}:K,V=U.getLayout();M?(w=new S(_,C,k),w.attr("position",[z.x,z.y])):w.updateData(_,C,k),w.__radialOldRawX=w.__radialRawX,w.__radialOldRawY=w.__radialRawY,w.__radialRawX=V.rawX,w.__radialRawY=V.rawY,O.add(w),_.setItemGraphicEl(C,w),g.updateProps(w,{position:[V.x,V.y]},I);var Q=w.getSymbolPath();if(k.layout==="radial"){var G=X.children[0],te=G.getLayout(),q=G.children.length,se,re;if(V.x===te.x&&U.isExpand===!0){var we={};we.x=(G.children[0].getLayout().x+G.children[q-1].getLayout().x)/2,we.y=(G.children[0].getLayout().y+G.children[q-1].getLayout().y)/2,se=Math.atan2(we.y-te.y,we.x-te.x),se<0&&(se=Math.PI*2+se),re=we.x<te.x,re&&(se=se-Math.PI)}else se=Math.atan2(V.y-te.y,V.x-te.x),se<0&&(se=Math.PI*2+se),U.children.length===0||U.children.length!==0&&U.isExpand===!1?(re=V.x<te.x,re&&(se=se-Math.PI)):(re=V.x>te.x,re||(se=se-Math.PI));var Oe=re?"left":"right",Me=k.labelModel.get("rotate"),Qe=Me*(Math.PI/180);Q.setStyle({textPosition:k.labelModel.get("position")||Oe,textRotation:Me==null?-se:Qe,textOrigin:"center",verticalAlign:"middle"})}x(I,U,X,w,z,K,V,O,k)}function x(_,C,w,O,I,k,M,U,P){var X=P.edgeShape,F=O.__edge;if(X==="curve")C.parentNode&&C.parentNode!==w&&(F||(F=O.__edge=new g.BezierCurve({shape:T(P,I,I),style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),g.updateProps(F,{shape:T(P,k,M),style:{opacity:1}},_));else if(X==="polyline"&&(P.layout==="orthogonal"&&(C!==w&&C.children&&C.children.length!==0&&C.isExpand===!0))){for(var j=C.children,K=[],z=0;z<j.length;z++){var V=j[z].getLayout();K.push([V.x,V.y])}F||(F=O.__edge=new c({shape:{parentPoint:[M.x,M.y],childPoints:[[M.x,M.y]],orient:P.orient,forkPosition:P.edgeForkPosition},style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),g.updateProps(F,{shape:{parentPoint:[M.x,M.y],childPoints:K},style:{opacity:1}},_)}U.add(F)}function E(_,C,w,O,I,k){for(var M=_.tree.getNodeByDataIndex(C),U=_.tree.root,P=M.getModel(),k=A(M,P,k),X=M.parentNode===U?M:M.parentNode||M,F=k.edgeShape,j;j=X.getLayout(),j==null;)X=X.parentNode===U?X:X.parentNode||X;g.updateProps(w,{position:[j.x+1,j.y+1]},I,function(){O.remove(w),_.setItemGraphicEl(C,null)}),w.fadeOut(null,{keepLabel:!0});var K=_.getItemGraphicEl(X.dataIndex),z=K.__edge,V=w.__edge||(X.isExpand===!1||X.children.length===1?z:void 0),F=k.edgeShape;V&&(F==="curve"?g.updateProps(V,{shape:T(k,j,j),style:{opacity:0}},I,function(){O.remove(V)}):F==="polyline"&&k.layout==="orthogonal"&&g.updateProps(V,{shape:{parentPoint:[j.x,j.y],childPoints:[[j.x,j.y]]},style:{opacity:0}},I,function(){O.remove(V)}))}function T(_,C,w){var O,I,k,M,U=_.orient,P,X,F,j;if(_.layout==="radial"){P=C.rawX,F=C.rawY,X=w.rawX,j=w.rawY;var K=p(P,F),z=p(P,F+(j-F)*_.curvature),V=p(X,j+(F-j)*_.curvature),Q=p(X,j);return{x1:K.x,y1:K.y,x2:Q.x,y2:Q.y,cpx1:z.x,cpy1:z.y,cpx2:V.x,cpy2:V.y}}else P=C.x,F=C.y,X=w.x,j=w.y,(U==="LR"||U==="RL")&&(O=P+(X-P)*_.curvature,I=F,k=X+(P-X)*_.curvature,M=j),(U==="TB"||U==="BT")&&(O=P,I=F+(j-F)*_.curvature,k=X,M=j+(F-j)*_.curvature);return{x1:P,y1:F,x2:X,y2:j,cpx1:O,cpy1:I,cpx2:k,cpy2:M}}R.exports=h},bQjk:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("OLod"))})(this,function(y){return function(g){var S=y,m=S.lib,p=m.CipherParams,f=S.enc,d=f.Hex,l=S.format,a=l.Hex={stringify:function(t){return t.ciphertext.toString(d)},parse:function(t){var o=d.parse(t);return p.create({ciphertext:o})}}}(),y.format.Hex})},bT9E:function(R,D,n){"use strict";n.d(D,"a",function(){return g});var y=n("VTBJ");function g(S,m){var p=Object(y.a)({},S);return Array.isArray(m)&&m.forEach(function(f){delete p[f]}),p}},bX4T:function(R,D,n){"use strict";n.d(D,"a",function(){return l});var y=n("VTBJ"),g=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,S=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,m="".concat(g," ").concat(S).split(/[\s\n]+/),p="aria-",f="data-";function d(a,i){return a.indexOf(i)===0}function l(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t;i===!1?t={aria:!0,data:!0,attr:!0}:i===!0?t={aria:!0}:t=Object(y.a)({},i);var o={};return Object.keys(a).forEach(function(e){(t.aria&&(e==="role"||d(e,p))||t.data&&d(e,f)||t.attr&&m.includes(e))&&(o[e]=a[e])}),o}},bYtY:function(R,D){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},y={"[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},g=Object.prototype.toString,S=Array.prototype,m=S.forEach,p=S.filter,f=S.slice,d=S.map,l=S.reduce,a={};function i(Fe,ue){Fe==="createCanvas"&&(c=null),a[Fe]=ue}function t(Fe){if(Fe==null||typeof Fe!="object")return Fe;var ue=Fe,et=g.call(Fe);if(et==="[object Array]"){if(!Oe(Fe)){ue=[];for(var he=0,J=Fe.length;he<J;he++)ue[he]=t(Fe[he])}}else if(y[et]){if(!Oe(Fe)){var Y=Fe.constructor;if(Fe.constructor.from)ue=Y.from(Fe);else{ue=new Y(Fe.length);for(var he=0,J=Fe.length;he<J;he++)ue[he]=t(Fe[he])}}}else if(!n[et]&&!Oe(Fe)&&!j(Fe)){ue={};for(var $ in Fe)Fe.hasOwnProperty($)&&(ue[$]=t(Fe[$]))}return ue}function o(Fe,ue,et){if(!P(ue)||!P(Fe))return et?t(ue):Fe;for(var he in ue)if(ue.hasOwnProperty(he)){var J=Fe[he],Y=ue[he];P(Y)&&P(J)&&!k(Y)&&!k(J)&&!j(Y)&&!j(J)&&!X(Y)&&!X(J)&&!Oe(Y)&&!Oe(J)?o(J,Y,et):(et||!(he in Fe))&&(Fe[he]=t(ue[he],!0))}return Fe}function e(Fe,ue){for(var et=Fe[0],he=1,J=Fe.length;he<J;he++)et=o(et,Fe[he],ue);return et}function u(Fe,ue){for(var et in ue)ue.hasOwnProperty(et)&&(Fe[et]=ue[et]);return Fe}function r(Fe,ue,et){for(var he in ue)ue.hasOwnProperty(he)&&(et?ue[he]!=null:Fe[he]==null)&&(Fe[he]=ue[he]);return Fe}var s=function(){return a.createCanvas()};a.createCanvas=function(){return document.createElement("canvas")};var c;function h(){return c||(c=s().getContext("2d")),c}function v(Fe,ue){if(Fe){if(Fe.indexOf)return Fe.indexOf(ue);for(var et=0,he=Fe.length;et<he;et++)if(Fe[et]===ue)return et}return-1}function A(Fe,ue){var et=Fe.prototype;function he(){}he.prototype=ue.prototype,Fe.prototype=new he;for(var J in et)et.hasOwnProperty(J)&&(Fe.prototype[J]=et[J]);Fe.prototype.constructor=Fe,Fe.superClass=ue}function b(Fe,ue,et){Fe="prototype"in Fe?Fe.prototype:Fe,ue="prototype"in ue?ue.prototype:ue,r(Fe,ue,et)}function x(Fe){return Fe?typeof Fe=="string"?!1:typeof Fe.length=="number":void 0}function E(Fe,ue,et){if(!(Fe&&ue))return;if(Fe.forEach&&Fe.forEach===m)Fe.forEach(ue,et);else if(Fe.length===+Fe.length)for(var he=0,J=Fe.length;he<J;he++)ue.call(et,Fe[he],he,Fe);else for(var Y in Fe)Fe.hasOwnProperty(Y)&&ue.call(et,Fe[Y],Y,Fe)}function T(Fe,ue,et){if(!(Fe&&ue))return;if(Fe.map&&Fe.map===d)return Fe.map(ue,et);for(var he=[],J=0,Y=Fe.length;J<Y;J++)he.push(ue.call(et,Fe[J],J,Fe));return he}function _(Fe,ue,et,he){if(!(Fe&&ue))return;if(Fe.reduce&&Fe.reduce===l)return Fe.reduce(ue,et,he);for(var J=0,Y=Fe.length;J<Y;J++)et=ue.call(he,et,Fe[J],J,Fe);return et}function C(Fe,ue,et){if(!(Fe&&ue))return;if(Fe.filter&&Fe.filter===p)return Fe.filter(ue,et);for(var he=[],J=0,Y=Fe.length;J<Y;J++)ue.call(et,Fe[J],J,Fe)&&he.push(Fe[J]);return he}function w(Fe,ue,et){if(!(Fe&&ue))return;for(var he=0,J=Fe.length;he<J;he++)if(ue.call(et,Fe[he],he,Fe))return Fe[he]}function O(Fe,ue){var et=f.call(arguments,2);return function(){return Fe.apply(ue,et.concat(f.call(arguments)))}}function I(Fe){var ue=f.call(arguments,1);return function(){return Fe.apply(this,ue.concat(f.call(arguments)))}}function k(Fe){return g.call(Fe)==="[object Array]"}function M(Fe){return typeof Fe=="function"}function U(Fe){return g.call(Fe)==="[object String]"}function P(Fe){var ue=typeof Fe;return ue==="function"||!!Fe&&ue==="object"}function X(Fe){return!!n[g.call(Fe)]}function F(Fe){return!!y[g.call(Fe)]}function j(Fe){return typeof Fe=="object"&&typeof Fe.nodeType=="number"&&typeof Fe.ownerDocument=="object"}function K(Fe){return Fe!==Fe}function z(Fe){for(var ue=0,et=arguments.length;ue<et;ue++)if(arguments[ue]!=null)return arguments[ue]}function V(Fe,ue){return Fe!=null?Fe:ue}function Q(Fe,ue,et){return Fe!=null?Fe:ue!=null?ue:et}function G(){return Function.call.apply(f,arguments)}function te(Fe){if(typeof Fe=="number")return[Fe,Fe,Fe,Fe];var ue=Fe.length;return ue===2?[Fe[0],Fe[1],Fe[0],Fe[1]]:ue===3?[Fe[0],Fe[1],Fe[2],Fe[1]]:Fe}function q(Fe,ue){if(!Fe)throw new Error(ue)}function se(Fe){return Fe==null?null:typeof Fe.trim=="function"?Fe.trim():Fe.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var re="__ec_primitive__";function we(Fe){Fe[re]=!0}function Oe(Fe){return Fe[re]}function Me(Fe){var ue=k(Fe);this.data={};var et=this;Fe instanceof Me?Fe.each(he):Fe&&E(Fe,he);function he(J,Y){ue?et.set(J,Y):et.set(Y,J)}}Me.prototype={constructor:Me,get:function(ue){return this.data.hasOwnProperty(ue)?this.data[ue]:null},set:function(ue,et){return this.data[ue]=et},each:function(ue,et){et!==void 0&&(ue=O(ue,et));for(var he in this.data)this.data.hasOwnProperty(he)&&ue(this.data[he],he)},removeKey:function(ue){delete this.data[ue]}};function Qe(Fe){return new Me(Fe)}function Ve(Fe,ue){for(var et=new Fe.constructor(Fe.length+ue.length),he=0;he<Fe.length;he++)et[he]=Fe[he];var J=Fe.length;for(he=0;he<ue.length;he++)et[he+J]=ue[he];return et}function dt(){}D.$override=i,D.clone=t,D.merge=o,D.mergeAll=e,D.extend=u,D.defaults=r,D.createCanvas=s,D.getContext=h,D.indexOf=v,D.inherits=A,D.mixin=b,D.isArrayLike=x,D.each=E,D.map=T,D.reduce=_,D.filter=C,D.find=w,D.bind=O,D.curry=I,D.isArray=k,D.isFunction=M,D.isString=U,D.isObject=P,D.isBuiltInObject=X,D.isTypedArray=F,D.isDom=j,D.eqNaN=K,D.retrieve=z,D.retrieve2=V,D.retrieve3=Q,D.slice=G,D.normalizeCssArray=te,D.assert=q,D.trim=se,D.setAsPrimitive=we,D.isPrimitive=Oe,D.createHashMap=Qe,D.concatArray=Ve,D.noop=dt},bZqE:function(R,D){function n(g,S,m){for(var p=[g],f=[],d;d=p.pop();)if(f.push(d),d.isExpand){var l=d.children;if(l.length)for(var a=0;a<l.length;a++)p.push(l[a])}for(;d=f.pop();)S(d,m)}function y(g,S){for(var m=[g],p;p=m.pop();)if(S(p),p.isExpand){var f=p.children;if(f.length)for(var d=f.length-1;d>=0;d--)m.push(f[d])}}D.eachAfter=n,D.eachBefore=y},bbsP:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("CWI+"),m=n.n(S)},bogI:function(R,D,n){"use strict";n.d(D,"a",function(){return y});var y=function(S){if(!S)return null;var m=typeof S=="function";return m?S():S}},bsht:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},bx4M:function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("pVnL"),m=n.n(S),p=n("q1tI"),f=n("TSYQ"),d=n.n(f),l=n("BGR+"),a=n("H84U"),i=function(T,_){var C={};for(var w in T)Object.prototype.hasOwnProperty.call(T,w)&&_.indexOf(w)<0&&(C[w]=T[w]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(T);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(T,w[O])&&(C[w[O]]=T[w[O]]);return C},t=function(_){return p.createElement(a.a,null,function(C){var w=C.getPrefixCls,O=_.prefixCls,I=_.className,k=_.hoverable,M=k===void 0?!0:k,U=i(_,["prefixCls","className","hoverable"]),P=w("card",O),X=d()("".concat(P,"-grid"),I,g()({},"".concat(P,"-grid-hoverable"),M));return p.createElement("div",m()({},U,{className:X}))})},o=t,e=function(T,_){var C={};for(var w in T)Object.prototype.hasOwnProperty.call(T,w)&&_.indexOf(w)<0&&(C[w]=T[w]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(T);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(T,w[O])&&(C[w[O]]=T[w[O]]);return C},u=function(_){return p.createElement(a.a,null,function(C){var w=C.getPrefixCls,O=_.prefixCls,I=_.className,k=_.avatar,M=_.title,U=_.description,P=e(_,["prefixCls","className","avatar","title","description"]),X=w("card",O),F=d()("".concat(X,"-meta"),I),j=k?p.createElement("div",{className:"".concat(X,"-meta-avatar")},k):null,K=M?p.createElement("div",{className:"".concat(X,"-meta-title")},M):null,z=U?p.createElement("div",{className:"".concat(X,"-meta-description")},U):null,V=K||z?p.createElement("div",{className:"".concat(X,"-meta-detail")},K,z):null;return p.createElement("div",m()({},P,{className:F}),j,V)})},r=u,s=n("ZTPi"),c=n("BMrR"),h=n("kPKH"),v=n("3Nzz"),A=function(T,_){var C={};for(var w in T)Object.prototype.hasOwnProperty.call(T,w)&&_.indexOf(w)<0&&(C[w]=T[w]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(T);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(T,w[O])&&(C[w[O]]=T[w[O]]);return C};function b(T){var _=T.map(function(C,w){return p.createElement("li",{style:{width:"".concat(100/T.length,"%")},key:"action-".concat(w)},p.createElement("span",null,C))});return _}var x=function(_){var C,w,O=p.useContext(a.b),I=O.getPrefixCls,k=O.direction,M=p.useContext(v.b),U=function(pr){_.onTabChange&&_.onTabChange(pr)},P=function(){var pr;return p.Children.forEach(_.children,function(Qt){Qt&&Qt.type&&Qt.type===o&&(pr=!0)}),pr},X=_.prefixCls,F=_.className,j=_.extra,K=_.headStyle,z=K===void 0?{}:K,V=_.bodyStyle,Q=V===void 0?{}:V,G=_.title,te=_.loading,q=_.bordered,se=q===void 0?!0:q,re=_.size,we=_.type,Oe=_.cover,Me=_.actions,Qe=_.tabList,Ve=_.children,dt=_.activeTabKey,Fe=_.defaultActiveTabKey,ue=_.tabBarExtraContent,et=_.hoverable,he=_.tabProps,J=he===void 0?{}:he,Y=A(_,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),$=I("card",X),de=Q.padding===0||Q.padding==="0px"?{padding:24}:void 0,be=p.createElement("div",{className:"".concat($,"-loading-block")}),Te=p.createElement("div",{className:"".concat($,"-loading-content"),style:de},p.createElement(c.a,{gutter:8},p.createElement(h.a,{span:22},be)),p.createElement(c.a,{gutter:8},p.createElement(h.a,{span:8},be),p.createElement(h.a,{span:15},be)),p.createElement(c.a,{gutter:8},p.createElement(h.a,{span:6},be),p.createElement(h.a,{span:18},be)),p.createElement(c.a,{gutter:8},p.createElement(h.a,{span:13},be),p.createElement(h.a,{span:9},be)),p.createElement(c.a,{gutter:8},p.createElement(h.a,{span:4},be),p.createElement(h.a,{span:3},be),p.createElement(h.a,{span:16},be))),Be=dt!==void 0,fe=m()(m()({},J),(C={},g()(C,Be?"activeKey":"defaultActiveKey",Be?dt:Fe),g()(C,"tabBarExtraContent",ue),C)),xe,ke=Qe&&Qe.length?p.createElement(s.a,m()({size:"large"},fe,{className:"".concat($,"-head-tabs"),onChange:U}),Qe.map(function(Gt){return p.createElement(s.a.TabPane,{tab:Gt.tab,disabled:Gt.disabled,key:Gt.key})})):null;(G||j||ke)&&(xe=p.createElement("div",{className:"".concat($,"-head"),style:z},p.createElement("div",{className:"".concat($,"-head-wrapper")},G&&p.createElement("div",{className:"".concat($,"-head-title")},G),j&&p.createElement("div",{className:"".concat($,"-extra")},j)),ke));var nt=Oe?p.createElement("div",{className:"".concat($,"-cover")},Oe):null,Ct=p.createElement("div",{className:"".concat($,"-body"),style:Q},te?Te:Ve),pt=Me&&Me.length?p.createElement("ul",{className:"".concat($,"-actions")},b(Me)):null,He=Object(l.default)(Y,["onTabChange"]),nr=re||M,ht=d()($,F,(w={},g()(w,"".concat($,"-loading"),te),g()(w,"".concat($,"-bordered"),se),g()(w,"".concat($,"-hoverable"),et),g()(w,"".concat($,"-contain-grid"),P()),g()(w,"".concat($,"-contain-tabs"),Qe&&Qe.length),g()(w,"".concat($,"-").concat(nr),nr),g()(w,"".concat($,"-type-").concat(we),!!we),g()(w,"".concat($,"-rtl"),k==="rtl"),w));return p.createElement("div",m()({},He,{className:ht}),xe,nt,Ct,pt)};x.Grid=o,x.Meta=r;var E=D.a=x},c2i1:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=n("Yl7c"),p=m.enableClassCheck;function f(e){return"_EC_"+e}var d=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},l=d.prototype;l.type="graph",l.isDirected=function(){return this._directed},l.addNode=function(e,u){e=e==null?""+u:""+e;var r=this._nodesMap;if(r[f(e)])return;var s=new a(e,u);return s.hostGraph=this,this.nodes.push(s),r[f(e)]=s,s},l.getNodeByIndex=function(e){var u=this.data.getRawIndex(e);return this.nodes[u]},l.getNodeById=function(e){return this._nodesMap[f(e)]},l.addEdge=function(e,u,r){var s=this._nodesMap,c=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof u=="number"&&(u=this.nodes[u]),a.isInstance(e)||(e=s[f(e)]),a.isInstance(u)||(u=s[f(u)]),!e||!u)return;var h=e.id+"-"+u.id;if(c[h])return;var v=new i(e,u,r);return v.hostGraph=this,this._directed&&(e.outEdges.push(v),u.inEdges.push(v)),e.edges.push(v),e!==u&&u.edges.push(v),this.edges.push(v),c[h]=v,v},l.getEdgeByIndex=function(e){var u=this.edgeData.getRawIndex(e);return this.edges[u]},l.getEdge=function(e,u){a.isInstance(e)&&(e=e.id),a.isInstance(u)&&(u=u.id);var r=this._edgesMap;return this._directed?r[e+"-"+u]:r[e+"-"+u]||r[u+"-"+e]},l.eachNode=function(e,u){for(var r=this.nodes,s=r.length,c=0;c<s;c++)r[c].dataIndex>=0&&e.call(u,r[c],c)},l.eachEdge=function(e,u){for(var r=this.edges,s=r.length,c=0;c<s;c++)r[c].dataIndex>=0&&r[c].node1.dataIndex>=0&&r[c].node2.dataIndex>=0&&e.call(u,r[c],c)},l.breadthFirstTraverse=function(e,u,r,s){if(a.isInstance(u)||(u=this._nodesMap[f(u)]),!u)return;for(var c=r==="out"?"outEdges":r==="in"?"inEdges":"edges",h=0;h<this.nodes.length;h++)this.nodes[h].__visited=!1;if(e.call(s,u,null))return;for(var v=[u];v.length;)for(var A=v.shift(),b=A[c],h=0;h<b.length;h++){var x=b[h],E=x.node1===A?x.node2:x.node1;if(!E.__visited){if(e.call(s,E,A))return;v.push(E),E.__visited=!0}}},l.update=function(){for(var e=this.data,u=this.edgeData,r=this.nodes,s=this.edges,c=0,h=r.length;c<h;c++)r[c].dataIndex=-1;for(var c=0,h=e.count();c<h;c++)r[e.getRawIndex(c)].dataIndex=c;u.filterSelf(function(v){var A=s[u.getRawIndex(v)];return A.node1.dataIndex>=0&&A.node2.dataIndex>=0});for(var c=0,h=s.length;c<h;c++)s[c].dataIndex=-1;for(var c=0,h=u.count();c<h;c++)s[u.getRawIndex(c)].dataIndex=c},l.clone=function(){for(var e=new d(this._directed),u=this.nodes,r=this.edges,s=0;s<u.length;s++)e.addNode(u[s].id,u[s].dataIndex);for(var s=0;s<r.length;s++){var c=r[s];e.addEdge(c.node1.id,c.node2.id,c.dataIndex)}return e};function a(e,u){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=u==null?-1:u}a.prototype={constructor:a,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 u=this.hostGraph,r=u.data.getItemModel(this.dataIndex);return r.getModel(e)}};function i(e,u,r){this.node1=e,this.node2=u,this.dataIndex=r==null?-1:r}i.prototype.getModel=function(e){if(this.dataIndex<0)return;var u=this.hostGraph,r=u.edgeData.getItemModel(this.dataIndex);return r.getModel(e)};var t=function(e,u){return{getValue:function(r){var s=this[e][u];return s.get(s.getDimension(r||"value"),this.dataIndex)},setVisual:function(r,s){this.dataIndex>=0&&this[e][u].setItemVisual(this.dataIndex,r,s)},getVisual:function(r,s){return this[e][u].getItemVisual(this.dataIndex,r,s)},setLayout:function(r,s){this.dataIndex>=0&&this[e][u].setItemLayout(this.dataIndex,r,s)},getLayout:function(){return this[e][u].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][u].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][u].getRawIndex(this.dataIndex)}}};S.mixin(a,t("hostGraph","data")),S.mixin(i,t("hostGraph","edgeData")),d.Node=a,d.Edge=i,p(a),p(i);var o=d;R.exports=o},c3jg:function(R,D,n){"use strict";n.d(D,"e",function(){return d}),n.d(D,"c",function(){return a}),n.d(D,"d",function(){return i}),n.d(D,"a",function(){return o}),n.d(D,"f",function(){return e}),n.d(D,"b",function(){return u});var y=n("KQm4"),g=n("VTBJ"),S=n("Ff2n"),m=n("Zm9Q"),p=n("Kwbf"),f=n("wPhX");function d(r,s){return r!=null?r:s}function l(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function c(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(A){var b=A.key,x=A.children;Object(p.a)(b!=null,"Tree node must have a certain key: [".concat(v).concat(b,"]"));var E=String(b);Object(p.a)(!s.has(E)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(E)),s.set(E,!0),c(x,"".concat(v).concat(E," > "))})}c(r)}function a(r){function s(c){var h=Object(m.a)(c);return h.map(function(v){if(!Object(f.i)(v))return Object(p.a)(!v,"Tree/TreeNode can only accept TreeNode as children."),null;var A=v.key,b=v.props,x=b.children,E=Object(S.a)(b,["children"]),T=Object(g.a)({key:A},E),_=s(x);return _.length&&(T.children=_),T}).filter(function(v){return v})}return s(r)}function i(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=new Set(s===!0?[]:s),h=[];function v(A){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return A.map(function(x,E){var T=Object(f.h)(b?b.pos:"0",E),_=d(x.key,T),C=Object(g.a)(Object(g.a)({},x),{},{parent:b,pos:T,children:null,data:x,isStart:[].concat(Object(y.a)(b?b.isStart:[]),[E===0]),isEnd:[].concat(Object(y.a)(b?b.isEnd:[]),[E===A.length-1])});return h.push(C),s===!0||c.has(_)?C.children=v(x.children||[],C):C.children=[],C})}return v(r),h}function t(r,s,c){var h;c?typeof c=="string"?h=function(b){return b[c]}:typeof c=="function"&&(h=function(b){return c(b)}):h=function(b,x){return d(b.key,x)};function v(A,b,x){var E=A?A.children:r,T=A?Object(f.h)(x.pos,b):"0";if(A){var _=h(A,T),C={node:A,index:b,pos:T,key:_,parentPos:x.node?x.pos:null,level:x.level+1};s(C)}E&&E.forEach(function(w,O){v(w,O,{node:A,pos:T,level:x?x.level+1:-1})})}v(null)}function o(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=s.initWrapper,h=s.processEntity,v=s.onProcessFinished,A=arguments.length>2?arguments[2]:void 0,b={},x={},E={posEntities:b,keyEntities:x};return c&&(E=c(E)||E),t(r,function(T){var _=T.node,C=T.index,w=T.pos,O=T.key,I=T.parentPos,k=T.level,M={node:_,index:C,key:O,pos:w,level:k},U=d(O,w);b[w]=M,x[U]=M,M.parent=b[I],M.parent&&(M.parent.children=M.parent.children||[],M.parent.children.push(M)),h&&h(M,E)},A),v&&v(E),E}function e(r,s){var c=s.expandedKeys,h=s.selectedKeys,v=s.loadedKeys,A=s.loadingKeys,b=s.checkedKeys,x=s.halfCheckedKeys,E=s.dragOverNodeKey,T=s.dropPosition,_=s.keyEntities,C=_[r],w={eventKey:r,expanded:c.indexOf(r)!==-1,selected:h.indexOf(r)!==-1,loaded:v.indexOf(r)!==-1,loading:A.indexOf(r)!==-1,checked:b.indexOf(r)!==-1,halfChecked:x.indexOf(r)!==-1,pos:String(C?C.pos:""),dragOver:E===r&&T===0,dragOverGapTop:E===r&&T===-1,dragOverGapBottom:E===r&&T===1};return w}function u(r){var s=r.data,c=r.expanded,h=r.selected,v=r.checked,A=r.loaded,b=r.loading,x=r.halfChecked,E=r.dragOver,T=r.dragOverGapTop,_=r.dragOverGapBottom,C=r.pos,w=r.active,O=Object(g.a)(Object(g.a)({},s),{},{expanded:c,selected:h,checked:v,loaded:A,loading:b,halfChecked:x,dragOver:E,dragOverGapTop:T,dragOverGapBottom:_,pos:C,active:w});return"props"in O||Object.defineProperty(O,"props",{get:function(){return Object(p.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),O}},c5Ni:function(R,D,n){},c5fP:function(R,D,n){"use strict";function y(ht){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(pr){return typeof pr}:y=function(pr){return pr&&typeof Symbol=="function"&&pr.constructor===Symbol&&pr!==Symbol.prototype?"symbol":typeof pr},y(ht)}Object.defineProperty(D,"__esModule",{value:!0}),D._tr_init=nt,D._tr_stored_block=Ct,D._tr_flush_block=He,D._tr_tally=nr,D._tr_align=pt;var g=m(n("6BzB"));function S(){if(typeof WeakMap!="function")return null;var ht=new WeakMap;return S=function(){return ht},ht}function m(ht){if(ht&&ht.__esModule)return ht;if(ht===null||y(ht)!=="object"&&typeof ht!="function")return{default:ht};var Gt=S();if(Gt&&Gt.has(ht))return Gt.get(ht);var pr={},Qt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ht in ht)if(Object.prototype.hasOwnProperty.call(ht,Ht)){var Jt=Qt?Object.getOwnPropertyDescriptor(ht,Ht):null;Jt&&(Jt.get||Jt.set)?Object.defineProperty(pr,Ht,Jt):pr[Ht]=ht[Ht]}return pr.default=ht,Gt&&Gt.set(ht,pr),pr}var p=4,f=0,d=1,l=2;function a(ht){for(var Gt=ht.length;--Gt>=0;)ht[Gt]=0}var i=0,t=1,o=2,e=3,u=258,r=29,s=256,c=s+1+r,h=30,v=19,A=2*c+1,b=15,x=16,E=7,T=256,_=16,C=17,w=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],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],U=512,P=new Array((c+2)*2);a(P);var X=new Array(h*2);a(X);var F=new Array(U);a(F);var j=new Array(u-e+1);a(j);var K=new Array(r);a(K);var z=new Array(h);a(z);function V(ht,Gt,pr,Qt,Ht){this.static_tree=ht,this.extra_bits=Gt,this.extra_base=pr,this.elems=Qt,this.max_length=Ht,this.has_stree=ht&&ht.length}var Q,G,te;function q(ht,Gt){this.dyn_tree=ht,this.max_code=0,this.stat_desc=Gt}function se(ht){return ht<256?F[ht]:F[256+(ht>>>7)]}function re(ht,Gt){ht.pending_buf[ht.pending++]=Gt&255,ht.pending_buf[ht.pending++]=Gt>>>8&255}function we(ht,Gt,pr){ht.bi_valid>x-pr?(ht.bi_buf|=Gt<<ht.bi_valid&65535,re(ht,ht.bi_buf),ht.bi_buf=Gt>>x-ht.bi_valid,ht.bi_valid+=pr-x):(ht.bi_buf|=Gt<<ht.bi_valid&65535,ht.bi_valid+=pr)}function Oe(ht,Gt,pr){we(ht,pr[Gt*2],pr[Gt*2+1])}function Me(ht,Gt){var pr=0;do pr|=ht&1,ht>>>=1,pr<<=1;while(--Gt>0);return pr>>>1}function Qe(ht){ht.bi_valid===16?(re(ht,ht.bi_buf),ht.bi_buf=0,ht.bi_valid=0):ht.bi_valid>=8&&(ht.pending_buf[ht.pending++]=ht.bi_buf&255,ht.bi_buf>>=8,ht.bi_valid-=8)}function Ve(ht,Gt){var pr=Gt.dyn_tree,Qt=Gt.max_code,Ht=Gt.stat_desc.static_tree,Jt=Gt.stat_desc.has_stree,Ge=Gt.stat_desc.extra_bits,pe=Gt.stat_desc.extra_base,oe=Gt.stat_desc.max_length,ct,qe,me,Kt,vr,bt,or=0;for(Kt=0;Kt<=b;Kt++)ht.bl_count[Kt]=0;for(pr[ht.heap[ht.heap_max]*2+1]=0,ct=ht.heap_max+1;ct<A;ct++){if(qe=ht.heap[ct],Kt=pr[pr[qe*2+1]*2+1]+1,Kt>oe&&(Kt=oe,or++),pr[qe*2+1]=Kt,qe>Qt)continue;ht.bl_count[Kt]++,vr=0,qe>=pe&&(vr=Ge[qe-pe]),bt=pr[qe*2],ht.opt_len+=bt*(Kt+vr),Jt&&(ht.static_len+=bt*(Ht[qe*2+1]+vr))}if(or===0)return;do{for(Kt=oe-1;ht.bl_count[Kt]===0;)Kt--;ht.bl_count[Kt]--,ht.bl_count[Kt+1]+=2,ht.bl_count[oe]--,or-=2}while(or>0);for(Kt=oe;Kt!==0;Kt--)for(qe=ht.bl_count[Kt];qe!==0;){if(me=ht.heap[--ct],me>Qt)continue;pr[me*2+1]!==Kt&&(ht.opt_len+=(Kt-pr[me*2+1])*pr[me*2],pr[me*2+1]=Kt),qe--}}function dt(ht,Gt,pr){var Qt=new Array(b+1),Ht=0,Jt,Ge;for(Jt=1;Jt<=b;Jt++)Qt[Jt]=Ht=Ht+pr[Jt-1]<<1;for(Ge=0;Ge<=Gt;Ge++){var pe=ht[Ge*2+1];if(pe===0)continue;ht[Ge*2]=Me(Qt[pe]++,pe)}}function Fe(){var ht,Gt,pr,Qt,Ht,Jt=new Array(b+1);for(pr=0,Qt=0;Qt<r-1;Qt++)for(K[Qt]=pr,ht=0;ht<1<<O[Qt];ht++)j[pr++]=Qt;for(j[pr-1]=Qt,Ht=0,Qt=0;Qt<16;Qt++)for(z[Qt]=Ht,ht=0;ht<1<<I[Qt];ht++)F[Ht++]=Qt;for(Ht>>=7;Qt<h;Qt++)for(z[Qt]=Ht<<7,ht=0;ht<1<<I[Qt]-7;ht++)F[256+Ht++]=Qt;for(Gt=0;Gt<=b;Gt++)Jt[Gt]=0;for(ht=0;ht<=143;)P[ht*2+1]=8,ht++,Jt[8]++;for(;ht<=255;)P[ht*2+1]=9,ht++,Jt[9]++;for(;ht<=279;)P[ht*2+1]=7,ht++,Jt[7]++;for(;ht<=287;)P[ht*2+1]=8,ht++,Jt[8]++;for(dt(P,c+1,Jt),ht=0;ht<h;ht++)X[ht*2+1]=5,X[ht*2]=Me(ht,5);Q=new V(P,O,s+1,c,b),G=new V(X,I,0,h,b),te=new V(new Array(0),k,0,v,E)}function ue(ht){var Gt;for(Gt=0;Gt<c;Gt++)ht.dyn_ltree[Gt*2]=0;for(Gt=0;Gt<h;Gt++)ht.dyn_dtree[Gt*2]=0;for(Gt=0;Gt<v;Gt++)ht.bl_tree[Gt*2]=0;ht.dyn_ltree[T*2]=1,ht.opt_len=ht.static_len=0,ht.last_lit=ht.matches=0}function et(ht){ht.bi_valid>8?re(ht,ht.bi_buf):ht.bi_valid>0&&(ht.pending_buf[ht.pending++]=ht.bi_buf),ht.bi_buf=0,ht.bi_valid=0}function he(ht,Gt,pr,Qt){et(ht),Qt&&(re(ht,pr),re(ht,~pr)),g.arraySet(ht.pending_buf,ht.window,Gt,pr,ht.pending),ht.pending+=pr}function J(ht,Gt,pr,Qt){var Ht=Gt*2,Jt=pr*2;return ht[Ht]<ht[Jt]||ht[Ht]===ht[Jt]&&Qt[Gt]<=Qt[pr]}function Y(ht,Gt,pr){for(var Qt=ht.heap[pr],Ht=pr<<1;Ht<=ht.heap_len&&!(Ht<ht.heap_len&&J(Gt,ht.heap[Ht+1],ht.heap[Ht],ht.depth)&&Ht++,J(Gt,Qt,ht.heap[Ht],ht.depth));)ht.heap[pr]=ht.heap[Ht],pr=Ht,Ht<<=1;ht.heap[pr]=Qt}function $(ht,Gt,pr){var Qt,Ht,Jt=0,Ge,pe;if(ht.last_lit!==0)do Qt=ht.pending_buf[ht.d_buf+Jt*2]<<8|ht.pending_buf[ht.d_buf+Jt*2+1],Ht=ht.pending_buf[ht.l_buf+Jt],Jt++,Qt===0?Oe(ht,Ht,Gt):(Ge=j[Ht],Oe(ht,Ge+s+1,Gt),pe=O[Ge],pe!==0&&(Ht-=K[Ge],we(ht,Ht,pe)),Qt--,Ge=se(Qt),Oe(ht,Ge,pr),pe=I[Ge],pe!==0&&(Qt-=z[Ge],we(ht,Qt,pe)));while(Jt<ht.last_lit);Oe(ht,T,Gt)}function de(ht,Gt){var pr=Gt.dyn_tree,Qt=Gt.stat_desc.static_tree,Ht=Gt.stat_desc.has_stree,Jt=Gt.stat_desc.elems,Ge,pe,oe=-1,ct;for(ht.heap_len=0,ht.heap_max=A,Ge=0;Ge<Jt;Ge++)pr[Ge*2]!==0?(ht.heap[++ht.heap_len]=oe=Ge,ht.depth[Ge]=0):pr[Ge*2+1]=0;for(;ht.heap_len<2;)ct=ht.heap[++ht.heap_len]=oe<2?++oe:0,pr[ct*2]=1,ht.depth[ct]=0,ht.opt_len--,Ht&&(ht.static_len-=Qt[ct*2+1]);for(Gt.max_code=oe,Ge=ht.heap_len>>1;Ge>=1;Ge--)Y(ht,pr,Ge);ct=Jt;do Ge=ht.heap[1],ht.heap[1]=ht.heap[ht.heap_len--],Y(ht,pr,1),pe=ht.heap[1],ht.heap[--ht.heap_max]=Ge,ht.heap[--ht.heap_max]=pe,pr[ct*2]=pr[Ge*2]+pr[pe*2],ht.depth[ct]=(ht.depth[Ge]>=ht.depth[pe]?ht.depth[Ge]:ht.depth[pe])+1,pr[Ge*2+1]=pr[pe*2+1]=ct,ht.heap[1]=ct++,Y(ht,pr,1);while(ht.heap_len>=2);ht.heap[--ht.heap_max]=ht.heap[1],Ve(ht,Gt),dt(pr,oe,ht.bl_count)}function be(ht,Gt,pr){var Qt,Ht=-1,Jt,Ge=Gt[0*2+1],pe=0,oe=7,ct=4;for(Ge===0&&(oe=138,ct=3),Gt[(pr+1)*2+1]=65535,Qt=0;Qt<=pr;Qt++){if(Jt=Ge,Ge=Gt[(Qt+1)*2+1],++pe<oe&&Jt===Ge)continue;pe<ct?ht.bl_tree[Jt*2]+=pe:Jt!==0?(Jt!==Ht&&ht.bl_tree[Jt*2]++,ht.bl_tree[_*2]++):pe<=10?ht.bl_tree[C*2]++:ht.bl_tree[w*2]++,pe=0,Ht=Jt,Ge===0?(oe=138,ct=3):Jt===Ge?(oe=6,ct=3):(oe=7,ct=4)}}function Te(ht,Gt,pr){var Qt,Ht=-1,Jt,Ge=Gt[0*2+1],pe=0,oe=7,ct=4;for(Ge===0&&(oe=138,ct=3),Qt=0;Qt<=pr;Qt++){if(Jt=Ge,Ge=Gt[(Qt+1)*2+1],++pe<oe&&Jt===Ge)continue;if(pe<ct)do Oe(ht,Jt,ht.bl_tree);while(--pe!==0);else Jt!==0?(Jt!==Ht&&(Oe(ht,Jt,ht.bl_tree),pe--),Oe(ht,_,ht.bl_tree),we(ht,pe-3,2)):pe<=10?(Oe(ht,C,ht.bl_tree),we(ht,pe-3,3)):(Oe(ht,w,ht.bl_tree),we(ht,pe-11,7));pe=0,Ht=Jt,Ge===0?(oe=138,ct=3):Jt===Ge?(oe=6,ct=3):(oe=7,ct=4)}}function Be(ht){var Gt;for(be(ht,ht.dyn_ltree,ht.l_desc.max_code),be(ht,ht.dyn_dtree,ht.d_desc.max_code),de(ht,ht.bl_desc),Gt=v-1;Gt>=3&&!(ht.bl_tree[M[Gt]*2+1]!==0);Gt--);return ht.opt_len+=3*(Gt+1)+5+5+4,Gt}function fe(ht,Gt,pr,Qt){var Ht;for(we(ht,Gt-257,5),we(ht,pr-1,5),we(ht,Qt-4,4),Ht=0;Ht<Qt;Ht++)we(ht,ht.bl_tree[M[Ht]*2+1],3);Te(ht,ht.dyn_ltree,Gt-1),Te(ht,ht.dyn_dtree,pr-1)}function xe(ht){var Gt=4093624447,pr;for(pr=0;pr<=31;pr++,Gt>>>=1)if(Gt&1&&ht.dyn_ltree[pr*2]!==0)return f;if(ht.dyn_ltree[9*2]!==0||ht.dyn_ltree[10*2]!==0||ht.dyn_ltree[13*2]!==0)return d;for(pr=32;pr<s;pr++)if(ht.dyn_ltree[pr*2]!==0)return d;return f}var ke=!1;function nt(ht){ke||(Fe(),ke=!0),ht.l_desc=new q(ht.dyn_ltree,Q),ht.d_desc=new q(ht.dyn_dtree,G),ht.bl_desc=new q(ht.bl_tree,te),ht.bi_buf=0,ht.bi_valid=0,ue(ht)}function Ct(ht,Gt,pr,Qt){we(ht,(i<<1)+(Qt?1:0),3),he(ht,Gt,pr,!0)}function pt(ht){we(ht,t<<1,3),Oe(ht,T,P),Qe(ht)}function He(ht,Gt,pr,Qt){var Ht,Jt,Ge=0;ht.level>0?(ht.strm.data_type===l&&(ht.strm.data_type=xe(ht)),de(ht,ht.l_desc),de(ht,ht.d_desc),Ge=Be(ht),Ht=ht.opt_len+3+7>>>3,Jt=ht.static_len+3+7>>>3,Jt<=Ht&&(Ht=Jt)):Ht=Jt=pr+5,pr+4<=Ht&&Gt!==-1?Ct(ht,Gt,pr,Qt):ht.strategy===p||Jt===Ht?(we(ht,(t<<1)+(Qt?1:0),3),$(ht,P,X)):(we(ht,(o<<1)+(Qt?1:0),3),fe(ht,ht.l_desc.max_code+1,ht.d_desc.max_code+1,Ge+1),$(ht,ht.dyn_ltree,ht.dyn_dtree)),ue(ht),Qt&&et(ht)}function nr(ht,Gt,pr){return ht.pending_buf[ht.d_buf+ht.last_lit*2]=Gt>>>8&255,ht.pending_buf[ht.d_buf+ht.last_lit*2+1]=Gt&255,ht.pending_buf[ht.l_buf+ht.last_lit]=pr&255,ht.last_lit++,Gt===0?ht.dyn_ltree[pr*2]++:(ht.matches++,Gt--,ht.dyn_ltree[(j[pr]+s+1)*2]++,ht.dyn_dtree[se(Gt)*2]++),ht.last_lit===ht.lit_bufsize-1}},c6wG:function(R,D,n){var y=n("dD9F"),g=n("sEf8"),S=n("mdPL"),m=S&&S.isTypedArray,p=m?g(m):y;R.exports=p},c8qY:function(R,D,n){var y=n("IwbS"),g=n("fls0");function S(o){this._ctor=o||g,this.group=new y.Group}var m=S.prototype;m.isPersistent=function(){return!0},m.updateData=function(o){var e=this,u=e.group,r=e._lineData;e._lineData=o,r||u.removeAll();var s=l(o);o.diff(r).add(function(c){p(e,o,c,s)}).update(function(c,h){f(e,r,o,h,c,s)}).remove(function(c){u.remove(r.getItemGraphicEl(c))}).execute()};function p(o,e,u,r){var s=e.getItemLayout(u);if(!i(s))return;var c=new o._ctor(e,u,r);e.setItemGraphicEl(u,c),o.group.add(c)}function f(o,e,u,r,s,c){var h=e.getItemGraphicEl(r);if(!i(u.getItemLayout(s))){o.group.remove(h);return}h?h.updateData(u,s,c):h=new o._ctor(u,s,c),u.setItemGraphicEl(s,h),o.group.add(h)}m.updateLayout=function(){var o=this._lineData;if(!o)return;o.eachItemGraphicEl(function(e,u){e.updateLayout(o,u)},this)},m.incrementalPrepareUpdate=function(o){this._seriesScope=l(o),this._lineData=null,this.group.removeAll()};function d(o){return o.animators&&o.animators.length>0}m.incrementalUpdate=function(o,e){function u(h){!h.isGroup&&!d(h)&&(h.incremental=h.useHoverLayer=!0)}for(var r=o.start;r<o.end;r++){var s=e.getItemLayout(r);if(i(s)){var c=new this._ctor(e,r,this._seriesScope);c.traverse(u),this.group.add(c),e.setItemGraphicEl(r,c)}}};function l(o){var e=o.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}m.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},m._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};function a(o){return isNaN(o[0])||isNaN(o[1])}function i(o){return!a(o[0])&&!a(o[1])}var t=S;R.exports=t},cCMj:function(R,D,n){var y=n("bYtY"),g={updateSelectedMap:function(S){this._targetList=y.isArray(S)?S.slice():[],this._selectTargetMap=y.reduce(S||[],function(m,p){return m.set(p.name,p),m},y.createHashMap())},select:function(S,m){var p=m!=null?this._targetList[m]:this._selectTargetMap.get(S),f=this.get("selectedMode");f==="single"&&this._selectTargetMap.each(function(d){d.selected=!1}),p&&(p.selected=!0)},unSelect:function(S,m){var p=m!=null?this._targetList[m]:this._selectTargetMap.get(S);p&&(p.selected=!1)},toggleSelected:function(S,m){var p=m!=null?this._targetList[m]:this._selectTargetMap.get(S);if(p!=null)return this[p.selected?"unSelect":"select"](S,m),p.selected},isSelected:function(S,m){var p=m!=null?this._targetList[m]:this._selectTargetMap.get(S);return p&&p.selected}};R.exports=g},cVA7:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("MT78"),g=p(y),S=n("t3Fx"),m=p(S);function p(i){return i&&i.__esModule?i:{default:i}}function f(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function d(i,t){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:i}function l(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t)}var a=function(i){l(t,i);function t(o){f(this,t);var e=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o));return e.echartsLib=g.default,e}return t}(m.default);D.default=a},cWXX:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("oIFs"),m=n.n(S)},ca2m:function(R,D,n){var y=n("bYtY"),g={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)"]}}},S={};S.categoryAxis=y.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},g),S.valueAxis=y.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},g),S.timeAxis=y.defaults({scale:!0,min:"dataMin",max:"dataMax"},S.valueAxis),S.logAxis=y.defaults({scale:!0,logBase:10},S.valueAxis);var m=S;R.exports=m},cbJ4:function(R,D,n){var y=n("bYtY"),g=y.createHashMap;function S(m){m.eachSeriesByType("themeRiver",function(p){var f=p.getData(),d=p.getRawData(),l=p.get("color"),a=g();f.each(function(i){a.set(f.getRawIndex(i),i)}),d.each(function(i){var t=d.getName(i),o=l[(p.nameMap.get(t)-1)%l.length];d.setItemVisual(i,"color",o);var e=a.get(i);e!=null&&f.setItemVisual(e,"color",o)})})}R.exports=S},chpo:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=1,g=function(){return"".concat(y++)};D.default=g},cpOr:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("T4UG"),m=n("YXkt"),p=n("bYtY"),f=p.concatArray,d=p.mergeAll,l=p.map,a=n("7aKB"),i=a.encodeHTML,t=n("IDmD"),o=typeof Uint32Array=="undefined"?Array:Uint32Array,e=typeof Float64Array=="undefined"?Array:Float64Array;function u(c){var h=c.data;h&&h[0]&&h[0][0]&&h[0][0].coord&&(c.data=l(h,function(v){var A=[v[0].coord,v[1].coord],b={coords:A};return v[0].name&&(b.fromName=v[0].name),v[1].name&&(b.toName=v[1].name),d([b,v[0],v[1]])}))}var r=S.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(c){c.data=c.data||[],u(c);var h=this._processFlatCoordsArray(c.data);this._flatCoords=h.flatCoords,this._flatCoordsOffset=h.flatCoordsOffset,h.flatCoords&&(c.data=new Float32Array(h.count)),r.superApply(this,"init",arguments)},mergeOption:function(c){if(c.data=c.data||[],u(c),c.data){var h=this._processFlatCoordsArray(c.data);this._flatCoords=h.flatCoords,this._flatCoordsOffset=h.flatCoordsOffset,h.flatCoords&&(c.data=new Float32Array(h.count))}r.superApply(this,"mergeOption",arguments)},appendData:function(c){var h=this._processFlatCoordsArray(c.data);h.flatCoords&&(this._flatCoords?(this._flatCoords=f(this._flatCoords,h.flatCoords),this._flatCoordsOffset=f(this._flatCoordsOffset,h.flatCoordsOffset)):(this._flatCoords=h.flatCoords,this._flatCoordsOffset=h.flatCoordsOffset),c.data=new Float32Array(h.count)),this.getRawData().appendData(c.data)},_getCoordsFromItemModel:function(c){var h=this.getData().getItemModel(c),v=h.option instanceof Array?h.option:h.getShallow("coords");return v},getLineCoordsCount:function(c){return this._flatCoordsOffset?this._flatCoordsOffset[c*2+1]:this._getCoordsFromItemModel(c).length},getLineCoords:function(c,h){if(this._flatCoordsOffset){for(var v=this._flatCoordsOffset[c*2],A=this._flatCoordsOffset[c*2+1],b=0;b<A;b++)h[b]=h[b]||[],h[b][0]=this._flatCoords[v+b*2],h[b][1]=this._flatCoords[v+b*2+1];return A}else{for(var x=this._getCoordsFromItemModel(c),b=0;b<x.length;b++)h[b]=h[b]||[],h[b][0]=x[b][0],h[b][1]=x[b][1];return x.length}},_processFlatCoordsArray:function(c){var h=0;if(this._flatCoords&&(h=this._flatCoords.length),typeof c[0]=="number"){for(var v=c.length,A=new o(v),b=new e(v),x=0,E=0,T=0,_=0;_<v;){T++;var C=c[_++];A[E++]=x+h,A[E++]=C;for(var w=0;w<C;w++){var O=c[_++],I=c[_++];b[x++]=O,b[x++]=I,_>v}}return{flatCoordsOffset:new Uint32Array(A.buffer,0,E),flatCoords:b,count:T}}return{flatCoordsOffset:null,flatCoords:null,count:c.length}},getInitialData:function(c,h){var v=new m(["value"],this);return v.hasItemOption=!1,v.initData(c.data,[],function(A,b,x,E){if(A instanceof Array)return NaN;v.hasItemOption=!0;var T=A.value;if(T!=null)return T instanceof Array?T[E]:T}),v},formatTooltip:function(c){var h=this.getData(),v=h.getItemModel(c),A=v.get("name");if(A)return A;var b=v.get("fromName"),x=v.get("toName"),E=[];return b!=null&&E.push(b),x!=null&&E.push(x),i(E.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var c=this.option.progressive;return c==null?this.option.large?1e4:this.get("progressive"):c},getProgressiveThreshold:function(){var c=this.option.progressiveThreshold;return c==null?this.option.large?2e4:this.get("progressiveThreshold"):c},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}}}),s=r;R.exports=s},crZl:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("IwbS"),m=n("7aKB"),p=n("+TT/"),f=n("XxSj"),d=y.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(l,a){this.ecModel=l,this.api=a,this.visualMapModel},render:function(l,a,i,t){if(this.visualMapModel=l,l.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(l){var a=this.visualMapModel,i=m.normalizeCssArray(a.get("padding")||0),t=l.getBoundingRect();l.add(new S.Rect({z2:-1,silent:!0,shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[3]+i[1],height:t.height+i[0]+i[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},getControllerVisual:function(l,a,i){i=i||{};var t=i.forceState,o=this.visualMapModel,e={};if(a==="symbol"&&(e.symbol=o.get("itemSymbol")),a==="color"){var u=o.get("contentColor");e.color=u}function r(v){return e[v]}function s(v,A){e[v]=A}var c=o.controllerVisuals[t||o.getValueState(l)],h=f.prepareVisualTypes(c);return g.each(h,function(v){var A=c[v];i.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",A=c.__alphaForOpacity),f.dependsOn(v,a)&&(A&&A.applyVisual(l,r,s))}),e[a]},positionGroup:function(l){var a=this.visualMapModel,i=this.api;p.positionElement(l,a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:g.noop});R.exports=d},crp1:function(R,D,n){"use strict";n.d(D,"b",function(){return lt}),n.d(D,"a",function(){return mn});var y={},g=function(yt,xt,dr,er,Ut){var ir=y[xt]||(y[xt]=URL.createObjectURL(new Blob([yt],{type:"text/javascript"}))),Ft=new Worker(ir);return Ft.onerror=function(rr){return Ut(rr.error,null)},Ft.onmessage=function(rr){return Ut(null,rr.data)},Ft.postMessage(dr,er),Ft},S=Uint8Array,m=Uint16Array,p=Uint32Array,f=new 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,0,0,0]),d=new S([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new S([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(yt,xt){for(var dr=new m(31),er=0;er<31;++er)dr[er]=xt+=1<<yt[er-1];for(var Ut=new p(dr[30]),er=1;er<30;++er)for(var ir=dr[er];ir<dr[er+1];++ir)Ut[ir]=ir-dr[er]<<5|er;return[dr,Ut]},i=a(f,2),t=i[0],o=i[1];t[28]=258,o[258]=28;for(var e=a(d,0),u=e[0],r=e[1],s=new m(32768),c=0;c<32768;++c){var h=(c&43690)>>>1|(c&21845)<<1;h=(h&52428)>>>2|(h&13107)<<2,h=(h&61680)>>>4|(h&3855)<<4,s[c]=((h&65280)>>>8|(h&255)<<8)>>>1}for(var v=function(yt,xt,dr){for(var er=yt.length,Ut=0,ir=new m(xt);Ut<er;++Ut)++ir[yt[Ut]-1];var Ft=new m(xt);for(Ut=0;Ut<xt;++Ut)Ft[Ut]=Ft[Ut-1]+ir[Ut-1]<<1;var rr;if(dr){rr=new m(1<<xt);var Kr=15-xt;for(Ut=0;Ut<er;++Ut)if(yt[Ut])for(var Rr=Ut<<4|yt[Ut],kr=xt-yt[Ut],dn=Ft[yt[Ut]-1]++<<kr,yn=dn|(1<<kr)-1;dn<=yn;++dn)rr[s[dn]>>>Kr]=Rr}else for(rr=new m(er),Ut=0;Ut<er;++Ut)rr[Ut]=s[Ft[yt[Ut]-1]++]>>>15-yt[Ut];return rr},A=new S(288),c=0;c<144;++c)A[c]=8;for(var c=144;c<256;++c)A[c]=9;for(var c=256;c<280;++c)A[c]=7;for(var c=280;c<288;++c)A[c]=8;for(var b=new S(32),c=0;c<32;++c)b[c]=5;var x=v(A,9,0),E=v(A,9,1),T=v(b,5,0),_=v(b,5,1),C=function(yt){for(var xt=yt[0],dr=1;dr<yt.length;++dr)yt[dr]>xt&&(xt=yt[dr]);return xt},w=function(yt,xt,dr){var er=xt/8>>0;return(yt[er]|yt[er+1]<<8)>>>(xt&7)&dr},O=function(yt,xt){var dr=xt/8>>0;return(yt[dr]|yt[dr+1]<<8|yt[dr+2]<<16)>>>(xt&7)},I=function(yt){return(yt/8>>0)+(yt&7&&1)},k=function(yt,xt,dr){(xt==null||xt<0)&&(xt=0),(dr==null||dr>yt.length)&&(dr=yt.length);var er=new(yt instanceof m?m:yt instanceof p?p:S)(dr-xt);return er.set(yt.subarray(xt,dr)),er},M=function(yt,xt,dr){var er=yt.length,Ut=!xt||dr,ir=!dr||dr.i;dr||(dr={}),xt||(xt=new S(er*3));var Ft=function(Yn){var Yt=xt.length;if(Yn>Yt){var Dt=new S(Math.max(Yt*2,Yn));Dt.set(xt),xt=Dt}},rr=dr.f||0,Kr=dr.p||0,Rr=dr.b||0,kr=dr.l,dn=dr.d,yn=dr.m,ri=dr.n,$n=er*8;do{if(!kr){dr.f=rr=w(yt,Kr,1);var pi=w(yt,Kr+1,3);if(Kr+=3,pi)if(pi==1)kr=E,dn=_,yn=9,ri=5;else if(pi==2){var at=w(yt,Kr,31)+257,Le=w(yt,Kr+10,15)+4,je=at+w(yt,Kr+5,31)+1;Kr+=14;for(var Xe=new S(je),it=new S(19),Ze=0;Ze<Le;++Ze)it[l[Ze]]=w(yt,Kr+Ze*3,7);Kr+=Le*3;var ot=C(it),Lt=(1<<ot)-1;if(!ir&&Kr+je*(ot+7)>$n)break;for(var At=v(it,ot,1),Ze=0;Ze<je;){var mr=At[w(yt,Kr,Lt)];Kr+=mr&15;var _i=mr>>>4;if(_i<16)Xe[Ze++]=_i;else{var qr=0,Qr=0;for(_i==16?(Qr=3+w(yt,Kr,3),Kr+=2,qr=Xe[Ze-1]):_i==17?(Qr=3+w(yt,Kr,7),Kr+=3):_i==18&&(Qr=11+w(yt,Kr,127),Kr+=7);Qr--;)Xe[Ze++]=qr}}var gn=Xe.subarray(0,at),yr=Xe.subarray(at);yn=C(gn),ri=C(yr),kr=v(gn,yn,1),dn=v(yr,ri,1)}else throw"invalid block type";else{var _i=I(Kr)+4,Di=yt[_i-4]|yt[_i-3]<<8,Wi=_i+Di;if(Wi>er){if(ir)throw"unexpected EOF";break}Ut&&Ft(Rr+Di),xt.set(yt.subarray(_i,Wi),Rr),dr.b=Rr+=Di,dr.p=Kr=Wi*8;continue}if(Kr>$n)throw"unexpected EOF"}Ut&&Ft(Rr+131072);for(var Vn=(1<<yn)-1,Br=(1<<ri)-1,jn=yn+ri+18;ir||Kr+jn<$n;){var qr=kr[O(yt,Kr)&Vn],xn=qr>>>4;if(Kr+=qr&15,Kr>$n)throw"unexpected EOF";if(!qr)throw"invalid length/literal";if(xn<256)xt[Rr++]=xn;else if(xn==256){kr=null;break}else{var tn=xn-254;if(xn>264){var Ze=xn-257,ti=f[Ze];tn=w(yt,Kr,(1<<ti)-1)+t[Ze],Kr+=ti}var mi=dn[O(yt,Kr)&Br],Pi=mi>>>4;if(!mi)throw"invalid distance";Kr+=mi&15;var yr=u[Pi];if(Pi>3){var ti=d[Pi];yr+=O(yt,Kr)&(1<<ti)-1,Kr+=ti}if(Kr>$n)throw"unexpected EOF";Ut&&Ft(Rr+131072);for(var en=Rr+tn;Rr<en;Rr+=4)xt[Rr]=xt[Rr-yr],xt[Rr+1]=xt[Rr+1-yr],xt[Rr+2]=xt[Rr+2-yr],xt[Rr+3]=xt[Rr+3-yr];Rr=en}}dr.l=kr,dr.p=Kr,dr.b=Rr,kr&&(rr=1,dr.m=yn,dr.d=dn,dr.n=ri)}while(!rr);return Rr==xt.length?xt:k(xt,0,Rr)},U=function(yt,xt,dr){dr<<=xt&7;var er=xt/8>>0;yt[er]|=dr,yt[er+1]|=dr>>>8},P=function(yt,xt,dr){dr<<=xt&7;var er=xt/8>>0;yt[er]|=dr,yt[er+1]|=dr>>>8,yt[er+2]|=dr>>>16},X=function(yt,xt){for(var dr=[],er=0;er<yt.length;++er)yt[er]&&dr.push({s:er,f:yt[er]});var Ut=dr.length,ir=dr.slice();if(!Ut)return[new S(0),0];if(Ut==1){var Ft=new S(dr[0].s+1);return Ft[dr[0].s]=1,[Ft,1]}dr.sort(function(je,Xe){return je.f-Xe.f}),dr.push({s:-1,f:25001});var rr=dr[0],Kr=dr[1],Rr=0,kr=1,dn=2;for(dr[0]={s:-1,f:rr.f+Kr.f,l:rr,r:Kr};kr!=Ut-1;)rr=dr[dr[Rr].f<dr[dn].f?Rr++:dn++],Kr=dr[Rr!=kr&&dr[Rr].f<dr[dn].f?Rr++:dn++],dr[kr++]={s:-1,f:rr.f+Kr.f,l:rr,r:Kr};for(var yn=ir[0].s,er=1;er<Ut;++er)ir[er].s>yn&&(yn=ir[er].s);var ri=new m(yn+1),$n=F(dr[kr-1],ri,0);if($n>xt){var er=0,pi=0,_i=$n-xt,Di=1<<_i;for(ir.sort(function(Xe,it){return ri[it.s]-ri[Xe.s]||Xe.f-it.f});er<Ut;++er){var Wi=ir[er].s;if(ri[Wi]>xt)pi+=Di-(1<<$n-ri[Wi]),ri[Wi]=xt;else break}for(pi>>>=_i;pi>0;){var at=ir[er].s;ri[at]<xt?pi-=1<<xt-ri[at]++-1:++er}for(;er>=0&&pi;--er){var Le=ir[er].s;ri[Le]==xt&&(--ri[Le],++pi)}$n=xt}return[new S(ri),$n]},F=function Vt(yt,xt,dr){return yt.s==-1?Math.max(Vt(yt.l,xt,dr+1),Vt(yt.r,xt,dr+1)):xt[yt.s]=dr},j=function(yt){for(var xt=yt.length;xt&&!yt[--xt];);for(var dr=new m(++xt),er=0,Ut=yt[0],ir=1,Ft=function(Rr){dr[er++]=Rr},rr=1;rr<=xt;++rr)if(yt[rr]==Ut&&rr!=xt)++ir;else{if(!Ut&&ir>2){for(;ir>138;ir-=138)Ft(32754);ir>2&&(Ft(ir>10?ir-11<<5|28690:ir-3<<5|12305),ir=0)}else if(ir>3){for(Ft(Ut),--ir;ir>6;ir-=6)Ft(8304);ir>2&&(Ft(ir-3<<5|8208),ir=0)}for(;ir--;)Ft(Ut);ir=1,Ut=yt[rr]}return[dr.subarray(0,er),xt]},K=function(yt,xt){for(var dr=0,er=0;er<xt.length;++er)dr+=yt[er]*xt[er];return dr},z=function(yt,xt,dr){var er=dr.length,Ut=I(xt+2);yt[Ut]=er&255,yt[Ut+1]=er>>>8,yt[Ut+2]=yt[Ut]^255,yt[Ut+3]=yt[Ut+1]^255;for(var ir=0;ir<er;++ir)yt[Ut+ir+4]=dr[ir];return(Ut+4+er)*8},V=function(yt,xt,dr,er,Ut,ir,Ft,rr,Kr,Rr,kr){U(xt,kr++,dr),++Ut[256];for(var dn=X(Ut,15),yn=dn[0],ri=dn[1],$n=X(ir,15),pi=$n[0],_i=$n[1],Di=j(yn),Wi=Di[0],at=Di[1],Le=j(pi),je=Le[0],Xe=Le[1],it=new m(19),Ze=0;Ze<Wi.length;++Ze)it[Wi[Ze]&31]++;for(var Ze=0;Ze<je.length;++Ze)it[je[Ze]&31]++;for(var ot=X(it,7),Lt=ot[0],At=ot[1],mr=19;mr>4&&!Lt[l[mr-1]];--mr);var qr=Rr+5<<3,Qr=K(Ut,A)+K(ir,b)+Ft,gn=K(Ut,yn)+K(ir,pi)+Ft+14+3*mr+K(it,Lt)+(2*it[16]+3*it[17]+7*it[18]);if(qr<=Qr&&qr<=gn)return z(xt,kr,yt.subarray(Kr,Kr+Rr));var yr,Vn,Br,jn;if(U(xt,kr,1+(gn<Qr)),kr+=2,gn<Qr){yr=v(yn,ri,0),Vn=yn,Br=v(pi,_i,0),jn=pi;var xn=v(Lt,At,0);U(xt,kr,at-257),U(xt,kr+5,Xe-1),U(xt,kr+10,mr-4),kr+=14;for(var Ze=0;Ze<mr;++Ze)U(xt,kr+3*Ze,Lt[l[Ze]]);kr+=3*mr;for(var tn=[Wi,je],ti=0;ti<2;++ti)for(var mi=tn[ti],Ze=0;Ze<mi.length;++Ze){var Pi=mi[Ze]&31;U(xt,kr,xn[Pi]),kr+=Lt[Pi],Pi>15&&(U(xt,kr,mi[Ze]>>>5&127),kr+=mi[Ze]>>>12)}}else yr=x,Vn=A,Br=T,jn=b;for(var Ze=0;Ze<rr;++Ze)if(er[Ze]>255){var Pi=er[Ze]>>>18&31;P(xt,kr,yr[Pi+257]),kr+=Vn[Pi+257],Pi>7&&(U(xt,kr,er[Ze]>>>23&31),kr+=f[Pi]);var en=er[Ze]&31;P(xt,kr,Br[en]),kr+=jn[en],en>3&&(P(xt,kr,er[Ze]>>>5&8191),kr+=d[en])}else P(xt,kr,yr[er[Ze]]),kr+=Vn[er[Ze]];return P(xt,kr,yr[256]),kr+Vn[256]},Q=new p([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new S(0),te=function(yt,xt,dr,er,Ut,ir){var Ft=yt.length,rr=new S(er+Ft+5*(1+Math.floor(Ft/7e3))+Ut),Kr=rr.subarray(er,rr.length-Ut),Rr=0;if(!xt||Ft<8)for(var kr=0;kr<=Ft;kr+=65535){var dn=kr+65535;dn<Ft?Rr=z(Kr,Rr,yt.subarray(kr,dn)):(Kr[kr]=ir,Rr=z(Kr,Rr,yt.subarray(kr,Ft)))}else{for(var yn=Q[xt-1],ri=yn>>>13,$n=yn&8191,pi=(1<<dr)-1,_i=new m(32768),Di=new m(pi+1),Wi=Math.ceil(dr/3),at=2*Wi,Le=function(br){return(yt[br]^yt[br+1]<<Wi^yt[br+2]<<at)&pi},je=new p(25e3),Xe=new m(288),it=new m(32),Ze=0,ot=0,kr=0,Lt=0,At=0,mr=0;kr<Ft;++kr){var qr=Le(kr),Qr=kr&32767,gn=Di[qr];if(_i[Qr]=gn,Di[qr]=Qr,At<=kr){var yr=Ft-kr;if((Ze>7e3||Lt>24576)&&yr>423){Rr=V(yt,Kr,0,je,Xe,it,ot,Lt,mr,kr-mr,Rr),Lt=Ze=ot=0,mr=kr;for(var Vn=0;Vn<286;++Vn)Xe[Vn]=0;for(var Vn=0;Vn<30;++Vn)it[Vn]=0}var Br=2,jn=0,xn=$n,tn=Qr-gn&32767;if(yr>2&&qr==Le(kr-tn))for(var ti=Math.min(ri,yr)-1,mi=Math.min(32767,kr),Pi=Math.min(258,yr);tn<=mi&&--xn&&Qr!=gn;){if(yt[kr+Br]==yt[kr+Br-tn]){for(var en=0;en<Pi&&yt[kr+en]==yt[kr+en-tn];++en);if(en>Br){if(Br=en,jn=tn,en>ti)break;for(var Tn=Math.min(tn,en-2),Yn=0,Vn=0;Vn<Tn;++Vn){var Yt=kr-tn+Vn+32768&32767,Dt=_i[Yt],Bt=Yt-Dt+32768&32767;Bt>Yn&&(Yn=Bt,gn=Yt)}}}Qr=gn,gn=_i[Qr],tn+=Qr-gn+32768&32767}if(jn){je[Lt++]=268435456|o[Br]<<18|r[jn];var Wt=o[Br]&31,Xt=r[jn]&31;ot+=f[Wt]+d[Xt],++Xe[257+Wt],++it[Xt],At=kr+Br,++Ze}else je[Lt++]=yt[kr],++Xe[yt[kr]]}}Rr=V(yt,Kr,ir,je,Xe,it,ot,Lt,mr,kr-mr,Rr),ir||(Rr=z(Kr,Rr,G))}return k(rr,0,er+I(Rr)+Ut)},q=function(){for(var Vt=new p(256),yt=0;yt<256;++yt){for(var xt=yt,dr=9;--dr;)xt=(xt&1&&3988292384)^xt>>>1;Vt[yt]=xt}return Vt}(),se=function(){var yt=4294967295;return{p:function(dr){for(var er=yt,Ut=0;Ut<dr.length;++Ut)er=q[er&255^dr[Ut]]^er>>>8;yt=er},d:function(){return yt^4294967295}}},re=function(){var yt=1,xt=0;return{p:function(er){for(var Ut=yt,ir=xt,Ft=er.length,rr=0;rr!=Ft;){for(var Kr=Math.min(rr+5552,Ft);rr<Kr;++rr)Ut+=er[rr],ir+=Ut;Ut%=65521,ir%=65521}yt=Ut,xt=ir},d:function(){return(yt>>>8<<16|(xt&255)<<8|xt>>>8)+((yt&255)<<23)*2}}},we=function(yt,xt,dr,er,Ut){return te(yt,xt.level==null?6:xt.level,xt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(yt.length)))*1.5):12+xt.mem,dr,er,!Ut)},Oe=function(yt,xt){var dr={};for(var er in yt)dr[er]=yt[er];for(var er in xt)dr[er]=xt[er];return dr},Me=function(yt,xt,dr){for(var er=yt(),Ut=yt.toString(),ir=Ut.slice(Ut.indexOf("[")+1,Ut.lastIndexOf("]")).replace(/ /g,"").split(","),Ft=0;Ft<er.length;++Ft){var rr=er[Ft],Kr=ir[Ft];if(typeof rr=="function"){xt+=";"+Kr+"=";var Rr=rr.toString();if(rr.prototype)if(Rr.indexOf("[native code]")!=-1){var kr=Rr.indexOf(" ",8)+1;xt+=Rr.slice(kr,Rr.indexOf("(",kr))}else{xt+=Rr;for(var dn in rr.prototype)xt+=";"+Kr+".prototype."+dn+"="+rr.prototype[dn].toString()}else xt+=Rr}else dr[Kr]=rr}return[xt,dr]},Qe=[],Ve=function(yt){var xt=[];for(var dr in yt)(yt[dr]instanceof S||yt[dr]instanceof m||yt[dr]instanceof p)&&xt.push((yt[dr]=new yt[dr].constructor(yt[dr])).buffer);return xt},dt=function(yt,xt,dr,er){var Ut;if(!Qe[dr]){for(var ir="",Ft={},rr=yt.length-1,Kr=0;Kr<rr;++Kr)Ut=Me(yt[Kr],ir,Ft),ir=Ut[0],Ft=Ut[1];Qe[dr]=Me(yt[rr],ir,Ft)}var Rr=Oe({},Qe[dr][1]);return g(Qe[dr][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+xt.toString()+"}",dr,Rr,Ve(Rr),er)},Fe=function(){return[S,m,p,f,d,l,t,u,E,_,s,v,C,w,O,I,k,M,ct,$,de]},ue=function(){return[S,m,p,f,d,l,o,r,x,A,T,b,s,Q,G,v,U,P,X,F,j,K,z,V,I,k,te,we,Jt,$]},et=function(){return[nt,He,ke,se,q]},he=function(){return[Ct,pt]},J=function(){return[nr,ke,re]},Y=function(){return[ht]},$=function(yt){return postMessage(yt,[yt.buffer])},de=function(yt){return yt&&yt.size&&new S(yt.size)},be=function(yt,xt,dr,er,Ut,ir){var Ft=dt(dr,er,Ut,function(rr,Kr){Ft.terminate(),ir(rr,Kr)});return xt.consume||(yt=new S(yt)),Ft.postMessage([yt,xt],[yt.buffer]),function(){Ft.terminate()}},Te=function(yt){return yt.ondata=function(xt,dr){return postMessage([xt,dr],[xt.buffer])},function(xt){return yt.push(xt.data[0],xt.data[1])}},Be=function(yt,xt,dr,er,Ut){var ir,Ft=dt(yt,er,Ut,function(rr,Kr){rr?(Ft.terminate(),xt.ondata.call(xt,rr)):(Kr[1]&&Ft.terminate(),xt.ondata.call(xt,rr,Kr[0],Kr[1]))});Ft.postMessage(dr),xt.push=function(rr,Kr){if(ir)throw"stream finished";if(!xt.ondata)throw"no stream handler";Ft.postMessage([rr,ir=Kr],[rr.buffer])},xt.terminate=function(){Ft.terminate()}},fe=function(yt,xt){return yt[xt]|yt[xt+1]<<8},xe=function(yt,xt){return(yt[xt]|yt[xt+1]<<8|yt[xt+2]<<16)+(yt[xt+3]<<23)*2},ke=function(yt,xt,dr){for(;dr;++xt)yt[xt]=dr,dr>>>=8},nt=function(yt,xt){var dr=xt.filename;if(yt[0]=31,yt[1]=139,yt[2]=8,yt[8]=xt.level<2?4:xt.level==9?2:0,yt[9]=3,xt.mtime!=0&&ke(yt,4,Math.floor(new Date(xt.mtime||Date.now())/1e3)),dr){yt[3]=8;for(var er=0;er<=dr.length;++er)yt[er+10]=dr.charCodeAt(er)}},Ct=function(yt){if(yt[0]!=31||yt[1]!=139||yt[2]!=8)throw"invalid gzip data";var xt=yt[3],dr=10;xt&4&&(dr+=yt[10]|(yt[11]<<8)+2);for(var er=(xt>>3&1)+(xt>>4&1);er>0;er-=!yt[dr++]);return dr+(xt&2)},pt=function(yt){var xt=yt.length;return(yt[xt-4]|yt[xt-3]<<8|yt[xt-2]<<16)+2*(yt[xt-1]<<23)},He=function(yt){return 10+(yt.filename&&yt.filename.length+1||0)},nr=function(yt,xt){var dr=xt.level,er=dr==0?0:dr<6?1:dr==9?3:2;yt[0]=120,yt[1]=er<<6|(er?32-2*er:1)},ht=function(yt){if((yt[0]&15)!=8||yt[0]>>>4>7||(yt[0]<<8|yt[1])%31)throw"invalid zlib data";if(yt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Gt(Vt,yt){return!yt&&typeof Vt=="function"&&(yt=Vt,Vt={}),this.ondata=yt,Vt}var pr=function(){function Vt(yt,xt){!xt&&typeof yt=="function"&&(xt=yt,yt={}),this.ondata=xt,this.o=yt||{}}return Vt.prototype.p=function(yt,xt){this.ondata(we(yt,this.o,0,0,!xt),xt)},Vt.prototype.push=function(yt,xt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=xt,this.p(yt,xt||!1)},Vt}(),Qt=function(){function Vt(yt,xt){Be([ue,function(){return[Te,pr]}],this,Gt.call(this,yt,xt),function(dr){var er=new pr(dr.data);onmessage=Te(er)},6)}return Vt}();function Ht(Vt,yt,xt){if(xt||(xt=yt,yt={}),typeof xt!="function")throw"no callback";return be(Vt,yt,[ue],function(dr){return $(Jt(dr.data[0],dr.data[1]))},0,xt)}function Jt(Vt,yt){return yt===void 0&&(yt={}),we(Vt,yt,0,0)}var Ge=function(){function Vt(yt){this.s={},this.p=new S(0),this.ondata=yt}return Vt.prototype.e=function(yt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var xt=this.p.length,dr=new S(xt+yt.length);dr.set(this.p),dr.set(yt,xt),this.p=dr},Vt.prototype.c=function(yt){this.d=this.s.i=yt||!1;var xt=this.s.b,dr=M(this.p,this.o,this.s);this.ondata(k(dr,xt,this.s.b),this.d),this.o=k(dr,this.s.b-32768),this.s.b=this.o.length,this.p=k(this.p,this.s.p/8>>0),this.s.p&=7},Vt.prototype.push=function(yt,xt){this.e(yt),this.c(xt)},Vt}(),pe=function(){function Vt(yt){this.ondata=yt,Be([Fe,function(){return[Te,Ge]}],this,0,function(){var xt=new Ge;onmessage=Te(xt)},7)}return Vt}();function oe(Vt,yt,xt){if(xt||(xt=yt,yt={}),typeof xt!="function")throw"no callback";return be(Vt,yt,[Fe],function(dr){return $(ct(dr.data[0],de(dr.data[1])))},1,xt)}function ct(Vt,yt){return M(Vt,yt)}var qe=function(){function Vt(yt,xt){this.c=se(),this.l=0,this.v=1,pr.call(this,yt,xt)}return Vt.prototype.push=function(yt,xt){pr.prototype.push.call(this,yt,xt)},Vt.prototype.p=function(yt,xt){this.c.p(yt),this.l+=yt.length;var dr=we(yt,this.o,this.v&&He(this.o),xt&&8,!xt);this.v&&(nt(dr,this.o),this.v=0),xt&&(ke(dr,dr.length-8,this.c.d()),ke(dr,dr.length-4,this.l)),this.ondata(dr,xt)},Vt}(),me=function(){function Vt(yt,xt){Be([ue,et,function(){return[Te,pr,qe]}],this,Gt.call(this,yt,xt),function(dr){var er=new qe(dr.data);onmessage=Te(er)},8)}return Vt}();function Kt(Vt,yt,xt){if(xt||(xt=yt,yt={}),typeof xt!="function")throw"no callback";return be(Vt,yt,[ue,et,function(){return[vr]}],function(dr){return $(vr(dr.data[0],dr.data[1]))},2,xt)}function vr(Vt,yt){yt===void 0&&(yt={});var xt=se(),dr=Vt.length;xt.p(Vt);var er=we(Vt,yt,He(yt),8),Ut=er.length;return nt(er,yt),ke(er,Ut-8,xt.d()),ke(er,Ut-4,dr),er}var bt=function(){function Vt(yt){this.v=1,Ge.call(this,yt)}return Vt.prototype.push=function(yt,xt){if(Ge.prototype.e.call(this,yt),this.v){var dr=Ct(this.p);if(dr>=this.p.length&&!xt)return;this.p=this.p.subarray(dr),this.v=0}if(xt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Ge.prototype.c.call(this,xt)},Vt}(),or=function(){function Vt(yt){this.ondata=yt,Be([Fe,he,function(){return[Te,Ge,bt]}],this,0,function(){var xt=new bt;onmessage=Te(xt)},9)}return Vt}();function _t(Vt,yt,xt){if(xt||(xt=yt,yt={}),typeof xt!="function")throw"no callback";return be(Vt,yt,[Fe,he,function(){return[jt]}],function(dr){return $(jt(dr.data[0]))},3,xt)}function jt(Vt,yt){return M(Vt.subarray(Ct(Vt),-8),yt||new S(pt(Vt)))}var ut=function(){function Vt(yt,xt){this.c=re(),this.v=1,pr.call(this,yt,xt)}return Vt.prototype.push=function(yt,xt){pr.prototype.push.call(this,yt,xt)},Vt.prototype.p=function(yt,xt){this.c.p(yt);var dr=we(yt,this.o,this.v&&2,xt&&4,!xt);this.v&&(nr(dr,this.o),this.v=0),xt&&ke(dr,dr.length-4,this.c.d()),this.ondata(dr,xt)},Vt}(),St=function(){function Vt(yt,xt){Be([ue,J,function(){return[Te,pr,ut]}],this,Gt.call(this,yt,xt),function(dr){var er=new ut(dr.data);onmessage=Te(er)},10)}return Vt}();function mt(Vt,yt,xt){if(xt||(xt=yt,yt={}),typeof xt!="function")throw"no callback";return be(Vt,yt,[ue,J,function(){return[lt]}],function(dr){return $(lt(dr.data[0],dr.data[1]))},4,xt)}function lt(Vt,yt){yt===void 0&&(yt={});var xt=re();xt.p(Vt);var dr=we(Vt,yt,2,4);return nr(dr,yt),ke(dr,dr.length-4,xt.d()),dr}var tt=function(){function Vt(yt){this.v=1,Ge.call(this,yt)}return Vt.prototype.push=function(yt,xt){if(Ge.prototype.e.call(this,yt),this.v){if(this.p.length<2&&!xt)return;this.p=this.p.subarray(2),this.v=0}if(xt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ge.prototype.c.call(this,xt)},Vt}(),Cr=function(){function Vt(yt){this.ondata=yt,Be([Fe,Y,function(){return[Te,Ge,tt]}],this,0,function(){var xt=new tt;onmessage=Te(xt)},11)}return Vt}();function nn(Vt,yt,xt){if(xt||(xt=yt,yt={}),typeof xt!="function")throw"no callback";return be(Vt,yt,[Fe,Y,function(){return[mn]}],function(dr){return $(mn(dr.data[0],de(dr.data[1])))},5,xt)}function mn(Vt,yt){return M((ht(Vt),Vt.subarray(2,-4)),yt)}var Bn=function(){function Vt(yt){this.G=bt,this.I=Ge,this.Z=tt,this.ondata=yt}return Vt.prototype.push=function(yt,xt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(yt,xt);else{if(this.p&&this.p.length){var dr=new S(this.p.length+yt.length);dr.set(this.p),dr.set(yt,this.p.length)}else this.p=yt;if(this.p.length>2){var er=this,Ut=function(){er.ondata.apply(er,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(Ut):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(Ut):new this.Z(Ut),this.s.push(this.p,xt),this.p=null}}},Vt}(),oi=function(){function Vt(yt){this.G=or,this.I=pe,this.Z=Cr,this.ondata=yt}return Vt.prototype.push=function(yt,xt){Bn.prototype.push.call(this,yt,xt)},Vt}();function wn(Vt,yt,xt){if(xt||(xt=yt,yt={}),typeof xt!="function")throw"no callback";return Vt[0]==31&&Vt[1]==139&&Vt[2]==8?_t(Vt,yt,xt):(Vt[0]&15)!=8||Vt[0]>>4>7||(Vt[0]<<8|Vt[1])%31?oe(Vt,yt,xt):nn(Vt,yt,xt)}function Rn(Vt,yt){return Vt[0]==31&&Vt[1]==139&&Vt[2]==8?jt(Vt,yt):(Vt[0]&15)!=8||Vt[0]>>4>7||(Vt[0]<<8|Vt[1])%31?ct(Vt,yt):mn(Vt,yt)}var Zt=function Vt(yt,xt,dr,er){for(var Ut in yt){var ir=yt[Ut],Ft=xt+Ut;ir instanceof S?dr[Ft]=[ir,er]:Array.isArray(ir)?dr[Ft]=[ir[0],Oe(er,ir[1])]:Vt(ir,Ft+"/",dr,er)}};function Tt(Vt,yt){var xt=Vt.length;if(!yt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Vt);for(var dr=new S(Vt.length+(Vt.length>>>1)),er=0,Ut=function(Rr){dr[er++]=Rr},ir=0;ir<xt;++ir){if(er+5>dr.length){var Ft=new S(er+8+(xt-ir<<1));Ft.set(dr),dr=Ft}var rr=Vt.charCodeAt(ir);rr<128||yt?Ut(rr):rr<2048?(Ut(192|rr>>>6),Ut(128|rr&63)):rr>55295&&rr<57344?(rr=65536+(rr&1023<<10)|Vt.charCodeAt(++ir)&1023,Ut(240|rr>>>18),Ut(128|rr>>>12&63),Ut(128|rr>>>6&63),Ut(128|rr&63)):(Ut(224|rr>>>12),Ut(128|rr>>>6&63),Ut(128|rr&63))}return k(dr,0,er)}function De(Vt,yt){var xt="";if(!yt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Vt);for(var dr=0;dr<Vt.length;){var er=Vt[dr++];er<128||yt?xt+=String.fromCharCode(er):er<224?xt+=String.fromCharCode((er&31)<<6|Vt[dr++]&63):er<240?xt+=String.fromCharCode((er&15)<<12|(Vt[dr++]&63)<<6|Vt[dr++]&63):(er=((er&15)<<18|(Vt[dr++]&63)<<12|(Vt[dr++]&63)<<6|Vt[dr++]&63)-65536,xt+=String.fromCharCode(55296|er>>10,56320|er&1023))}return xt}var Re=function(yt,xt){return xt+30+fe(yt,xt+26)+fe(yt,xt+28)},Pe=function(yt,xt,dr){var er=fe(yt,xt+28),Ut=De(yt.subarray(xt+46,xt+46+er),!(fe(yt,xt+8)&2048)),ir=xt+46+er,Ft=dr?rt(yt,ir):[xe(yt,xt+20),xe(yt,xt+24),xe(yt,xt+42)],rr=Ft[0],Kr=Ft[1],Rr=Ft[2];return[fe(yt,xt+10),rr,Kr,Ut,ir+fe(yt,xt+30)+fe(yt,xt+32),Rr]},rt=function(yt,xt){for(;fe(yt,xt)!=1;xt+=4+fe(yt,xt+2));return[xe(yt,xt+12),xe(yt,xt+4),xe(yt,xt+20)]},wt=function(yt,xt,dr,er,Ut,ir,Ft,rr,Kr,Rr){var kr=ir.length,dn=er.length;ke(yt,xt,Kr!=null?33639248:67324752),xt+=4,Kr!=null&&(yt[xt]=20,xt+=2),yt[xt]=20,xt+=2,yt[xt++]=Rr==8&&(rr.level==1?6:rr.level<6?4:rr.level==9?2:0),yt[xt++]=Ft&&8,yt[xt]=Rr,xt+=2;var yn=new Date(rr.mtime||Date.now()),ri=yn.getFullYear()-1980;if(ri<0||ri>119)throw"date not in range 1980-2099";ke(yt,xt,(ri<<24)*2|yn.getMonth()+1<<21|yn.getDate()<<16|yn.getHours()<<11|yn.getMinutes()<<5|yn.getSeconds()>>>1),xt+=4,ke(yt,xt,dr),ke(yt,xt+4,dn),ke(yt,xt+8,Ut),ke(yt,xt+12,kr),xt+=16,Kr!=null&&(ke(yt,xt+=10,Kr),xt+=4),yt.set(ir,xt),xt+=kr,Kr==null&&yt.set(er,xt)},Ot=function(yt,xt,dr,er,Ut){ke(yt,xt,101010256),ke(yt,xt+8,dr),ke(yt,xt+10,dr),ke(yt,xt+12,er),ke(yt,xt+16,Ut)};function $t(Vt,yt,xt){if(xt||(xt=yt,yt={}),typeof xt!="function")throw"no callback";var dr={};Zt(Vt,"",dr,yt);var er=Object.keys(dr),Ut=er.length,ir=0,Ft=0,rr=Ut,Kr=new Array(Ut),Rr=[],kr=function(){for(var pi=0;pi<Rr.length;++pi)Rr[pi]()},dn=function(){var pi=new S(Ft+22),_i=ir,Di=Ft-ir;Ft=0;for(var Wi=0;Wi<rr;++Wi){var at=Kr[Wi];try{wt(pi,Ft,at.c,at.d,at.m,at.n,at.u,at.p,null,at.t),wt(pi,ir,at.c,at.d,at.m,at.n,at.u,at.p,Ft,at.t),ir+=46+at.n.length,Ft+=30+at.n.length+at.d.length}catch(Le){return xt(Le,null)}}Ot(pi,ir,Kr.length,Di,_i),xt(null,pi)};Ut||dn();for(var yn=function(pi){var _i=er[pi],Di=dr[_i],Wi=Di[0],at=Di[1],Le=se(),je=Wi.length;Le.p(Wi);var Xe=Tt(_i),it=Xe.length,Ze=at.level==0?0:8,ot=function(At,mr){if(At)kr(),xt(At,null);else{var qr=mr.length;Kr[pi]={t:Ze,d:mr,m:je,c:Le.d(),u:_i.length!=qr,n:Xe,p:at},ir+=30+it+qr,Ft+=76+2*it+qr,--Ut||dn()}};if(Xe.length>65535&&ot("filename too long",null),!Ze)ot(null,Wi);else if(je<16e4)try{ot(null,Jt(Wi,at))}catch(Lt){ot(Lt,null)}else Rr.push(Ht(Wi,at,ot))},ri=0;ri<rr;++ri)yn(ri);return kr}function Mr(Vt,yt){yt===void 0&&(yt={});var xt={},dr=[];Zt(Vt,"",xt,yt);var er=0,Ut=0;for(var ir in xt){var Ft=xt[ir],rr=Ft[0],Kr=Ft[1],Rr=Kr.level==0?0:8,kr=Tt(ir),dn=kr.length;if(kr.length>65535)throw"filename too long";var yn=Rr?Jt(rr,Kr):rr,ri=yn.length,$n=se();$n.p(rr),dr.push({t:Rr,d:yn,m:rr.length,c:$n.d(),u:ir.length!=dn,n:kr,o:er,p:Kr}),er+=30+dn+ri,Ut+=76+2*dn+ri}for(var pi=new S(Ut+22),_i=er,Di=Ut-er,Wi=0;Wi<dr.length;++Wi){var at=dr[Wi];wt(pi,at.o,at.c,at.d,at.m,at.n,at.u,at.p,null,at.t),wt(pi,er,at.c,at.d,at.m,at.n,at.u,at.p,at.o,at.t),er+=46+at.n.length}return Ot(pi,er,dr.length,Di,_i),pi}function Vr(Vt,yt){if(typeof yt!="function")throw"no callback";for(var xt=[],dr=function(){for(var yn=0;yn<xt.length;++yn)xt[yn]()},er={},Ut=Vt.length-22;xe(Vt,Ut)!=101010256;--Ut)if(!Ut||Vt.length-Ut>65558){yt("invalid zip file",null);return}var ir=fe(Vt,Ut+8);ir||yt(null,{});var Ft=ir,rr=xe(Vt,Ut+16),Kr=rr==4294967295;if(Kr){if(Ut=xe(Vt,Ut-12),xe(Vt,Ut)!=101075792)throw"invalid zip file";Ft=ir=xe(Vt,Ut+32),rr=xe(Vt,Ut+48)}for(var Rr=function(yn){var ri=Pe(Vt,rr,Kr),$n=ri[0],pi=ri[1],_i=ri[2],Di=ri[3],Wi=ri[4],at=ri[5],Le=Re(Vt,at);rr=Wi;var je=function(Ze,ot){Ze?(dr(),yt(Ze,null)):(er[Di]=ot,--ir||yt(null,er))};if(!$n)je(null,k(Vt,Le,Le+pi));else if($n==8){var Xe=Vt.subarray(Le,Le+pi);if(pi<32e4)try{je(null,ct(Xe,new S(_i)))}catch(it){je(it,null)}else xt.push(oe(Xe,{size:_i},je))}else je("unknown compression type "+$n,null)},kr=0;kr<Ft;++kr)Rr(kr);return dr}function hn(Vt){for(var yt={},xt=Vt.length-22;xe(Vt,xt)!=101010256;--xt)if(!xt||Vt.length-xt>65558)throw"invalid zip file";var dr=fe(Vt,xt+8);if(!dr)return{};var er=xe(Vt,xt+16),Ut=er==4294967295;if(Ut){if(xt=xe(Vt,xt-12),xe(Vt,xt)!=101075792)throw"invalid zip file";dr=xe(Vt,xt+32),er=xe(Vt,xt+48)}for(var ir=0;ir<dr;++ir){var Ft=Pe(Vt,er,Ut),rr=Ft[0],Kr=Ft[1],Rr=Ft[2],kr=Ft[3],dn=Ft[4],yn=Ft[5],ri=Re(Vt,yn);if(er=dn,!rr)yt[kr]=k(Vt,ri,ri+Kr);else if(rr==8)yt[kr]=ct(Vt.subarray(ri,ri+Kr),new S(Rr));else throw"unknown compression type "+rr}return yt}},cv67:function(R,D,n){(function(y,g){R.exports=D=g(n("Ib8C"))})(this,function(y){return function(g){var S=y,m=S.lib,p=m.WordArray,f=m.Hasher,d=S.algo,l=[];(function(){for(var u=0;u<64;u++)l[u]=g.abs(g.sin(u+1))*4294967296|0})();var a=d.MD5=f.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(r,s){for(var c=0;c<16;c++){var h=s+c,v=r[h];r[h]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var A=this._hash.words,b=r[s+0],x=r[s+1],E=r[s+2],T=r[s+3],_=r[s+4],C=r[s+5],w=r[s+6],O=r[s+7],I=r[s+8],k=r[s+9],M=r[s+10],U=r[s+11],P=r[s+12],X=r[s+13],F=r[s+14],j=r[s+15],K=A[0],z=A[1],V=A[2],Q=A[3];K=i(K,z,V,Q,b,7,l[0]),Q=i(Q,K,z,V,x,12,l[1]),V=i(V,Q,K,z,E,17,l[2]),z=i(z,V,Q,K,T,22,l[3]),K=i(K,z,V,Q,_,7,l[4]),Q=i(Q,K,z,V,C,12,l[5]),V=i(V,Q,K,z,w,17,l[6]),z=i(z,V,Q,K,O,22,l[7]),K=i(K,z,V,Q,I,7,l[8]),Q=i(Q,K,z,V,k,12,l[9]),V=i(V,Q,K,z,M,17,l[10]),z=i(z,V,Q,K,U,22,l[11]),K=i(K,z,V,Q,P,7,l[12]),Q=i(Q,K,z,V,X,12,l[13]),V=i(V,Q,K,z,F,17,l[14]),z=i(z,V,Q,K,j,22,l[15]),K=t(K,z,V,Q,x,5,l[16]),Q=t(Q,K,z,V,w,9,l[17]),V=t(V,Q,K,z,U,14,l[18]),z=t(z,V,Q,K,b,20,l[19]),K=t(K,z,V,Q,C,5,l[20]),Q=t(Q,K,z,V,M,9,l[21]),V=t(V,Q,K,z,j,14,l[22]),z=t(z,V,Q,K,_,20,l[23]),K=t(K,z,V,Q,k,5,l[24]),Q=t(Q,K,z,V,F,9,l[25]),V=t(V,Q,K,z,T,14,l[26]),z=t(z,V,Q,K,I,20,l[27]),K=t(K,z,V,Q,X,5,l[28]),Q=t(Q,K,z,V,E,9,l[29]),V=t(V,Q,K,z,O,14,l[30]),z=t(z,V,Q,K,P,20,l[31]),K=o(K,z,V,Q,C,4,l[32]),Q=o(Q,K,z,V,I,11,l[33]),V=o(V,Q,K,z,U,16,l[34]),z=o(z,V,Q,K,F,23,l[35]),K=o(K,z,V,Q,x,4,l[36]),Q=o(Q,K,z,V,_,11,l[37]),V=o(V,Q,K,z,O,16,l[38]),z=o(z,V,Q,K,M,23,l[39]),K=o(K,z,V,Q,X,4,l[40]),Q=o(Q,K,z,V,b,11,l[41]),V=o(V,Q,K,z,T,16,l[42]),z=o(z,V,Q,K,w,23,l[43]),K=o(K,z,V,Q,k,4,l[44]),Q=o(Q,K,z,V,P,11,l[45]),V=o(V,Q,K,z,j,16,l[46]),z=o(z,V,Q,K,E,23,l[47]),K=e(K,z,V,Q,b,6,l[48]),Q=e(Q,K,z,V,O,10,l[49]),V=e(V,Q,K,z,F,15,l[50]),z=e(z,V,Q,K,C,21,l[51]),K=e(K,z,V,Q,P,6,l[52]),Q=e(Q,K,z,V,T,10,l[53]),V=e(V,Q,K,z,M,15,l[54]),z=e(z,V,Q,K,x,21,l[55]),K=e(K,z,V,Q,I,6,l[56]),Q=e(Q,K,z,V,j,10,l[57]),V=e(V,Q,K,z,w,15,l[58]),z=e(z,V,Q,K,X,21,l[59]),K=e(K,z,V,Q,_,6,l[60]),Q=e(Q,K,z,V,U,10,l[61]),V=e(V,Q,K,z,E,15,l[62]),z=e(z,V,Q,K,k,21,l[63]),A[0]=A[0]+K|0,A[1]=A[1]+z|0,A[2]=A[2]+V|0,A[3]=A[3]+Q|0},_doFinalize:function(){var r=this._data,s=r.words,c=this._nDataBytes*8,h=r.sigBytes*8;s[h>>>5]|=128<<24-h%32;var v=g.floor(c/4294967296),A=c;s[(h+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,s[(h+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,r.sigBytes=(s.length+1)*4,this._process();for(var b=this._hash,x=b.words,E=0;E<4;E++){var T=x[E];x[E]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return b},clone:function(){var r=f.clone.call(this);return r._hash=this._hash.clone(),r}});function i(u,r,s,c,h,v,A){var b=u+(r&s|~r&c)+h+A;return(b<<v|b>>>32-v)+r}function t(u,r,s,c,h,v,A){var b=u+(r&c|s&~c)+h+A;return(b<<v|b>>>32-v)+r}function o(u,r,s,c,h,v,A){var b=u+(r^s^c)+h+A;return(b<<v|b>>>32-v)+r}function e(u,r,s,c,h,v,A){var b=u+(s^(r|~c))+h+A;return(b<<v|b>>>32-v)+r}S.MD5=f._createHelper(a),S.HmacMD5=f._createHmacHelper(a)}(Math),y.MD5})},czTT:function(R,D,n){},d4KN:function(R,D,n){var y=n("ProS"),g=n("bYtY");function S(m,p){g.each(p,function(f){f.update="updateView",y.registerAction(f,function(d,l){var a={};return l.eachComponent({mainType:"series",subType:m,query:d},function(i){i[f.method]&&i[f.method](d.name,d.dataIndex);var t=i.getData();t.each(function(o){var e=t.getName(o);a[e]=i.isSelected(e)||!1})}),{name:d.name,selected:a,seriesId:d.seriesId}})})}R.exports=S},dBmv:function(R,D,n){var y=n("ProS"),g=n("szbU");n("vF/C"),n("qwVE"),n("MHoB"),n("PNag"),n("1u/T"),y.registerPreprocessor(g)},dD9F:function(R,D,n){var y=n("NykK"),g=n("shjB"),S=n("ExA7"),m="[object Arguments]",p="[object Array]",f="[object Boolean]",d="[object Date]",l="[object Error]",a="[object Function]",i="[object Map]",t="[object Number]",o="[object Object]",e="[object RegExp]",u="[object Set]",r="[object String]",s="[object WeakMap]",c="[object ArrayBuffer]",h="[object DataView]",v="[object Float32Array]",A="[object Float64Array]",b="[object Int8Array]",x="[object Int16Array]",E="[object Int32Array]",T="[object Uint8Array]",_="[object Uint8ClampedArray]",C="[object Uint16Array]",w="[object Uint32Array]",O={};O[v]=O[A]=O[b]=O[x]=O[E]=O[T]=O[_]=O[C]=O[w]=!0,O[m]=O[p]=O[c]=O[f]=O[h]=O[d]=O[l]=O[a]=O[i]=O[t]=O[o]=O[e]=O[u]=O[r]=O[s]=!1;function I(k){return S(k)&&g(k.length)&&!!O[y(k)]}R.exports=I},"dF/Y":function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="DownloadOutlined";var d=D.a=g.forwardRef(f)},dMvE:function(R,D){var n={linear:function(S){return S},quadraticIn:function(S){return S*S},quadraticOut:function(S){return S*(2-S)},quadraticInOut:function(S){return(S*=2)<1?.5*S*S:-.5*(--S*(S-2)-1)},cubicIn:function(S){return S*S*S},cubicOut:function(S){return--S*S*S+1},cubicInOut:function(S){return(S*=2)<1?.5*S*S*S:.5*((S-=2)*S*S+2)},quarticIn:function(S){return S*S*S*S},quarticOut:function(S){return 1- --S*S*S*S},quarticInOut:function(S){return(S*=2)<1?.5*S*S*S*S:-.5*((S-=2)*S*S*S-2)},quinticIn:function(S){return S*S*S*S*S},quinticOut:function(S){return--S*S*S*S*S+1},quinticInOut:function(S){return(S*=2)<1?.5*S*S*S*S*S:.5*((S-=2)*S*S*S*S+2)},sinusoidalIn:function(S){return 1-Math.cos(S*Math.PI/2)},sinusoidalOut:function(S){return Math.sin(S*Math.PI/2)},sinusoidalInOut:function(S){return .5*(1-Math.cos(Math.PI*S))},exponentialIn:function(S){return S===0?0:Math.pow(1024,S-1)},exponentialOut:function(S){return S===1?1:1-Math.pow(2,-10*S)},exponentialInOut:function(S){return S===0?0:S===1?1:(S*=2)<1?.5*Math.pow(1024,S-1):.5*(-Math.pow(2,-10*(S-1))+2)},circularIn:function(S){return 1-Math.sqrt(1-S*S)},circularOut:function(S){return Math.sqrt(1- --S*S)},circularInOut:function(S){return(S*=2)<1?-.5*(Math.sqrt(1-S*S)-1):.5*(Math.sqrt(1-(S-=2)*S)+1)},elasticIn:function(S){var m,p=.1,f=.4;return S===0?0:S===1?1:(!p||p<1?(p=1,m=f/4):m=f*Math.asin(1/p)/(2*Math.PI),-(p*Math.pow(2,10*(S-=1))*Math.sin((S-m)*(2*Math.PI)/f)))},elasticOut:function(S){var m,p=.1,f=.4;return S===0?0:S===1?1:(!p||p<1?(p=1,m=f/4):m=f*Math.asin(1/p)/(2*Math.PI),p*Math.pow(2,-10*S)*Math.sin((S-m)*(2*Math.PI)/f)+1)},elasticInOut:function(S){var m,p=.1,f=.4;return S===0?0:S===1?1:(!p||p<1?(p=1,m=f/4):m=f*Math.asin(1/p)/(2*Math.PI),(S*=2)<1?-.5*(p*Math.pow(2,10*(S-=1))*Math.sin((S-m)*(2*Math.PI)/f)):p*Math.pow(2,-10*(S-=1))*Math.sin((S-m)*(2*Math.PI)/f)*.5+1)},backIn:function(S){var m=1.70158;return S*S*((m+1)*S-m)},backOut:function(S){var m=1.70158;return--S*S*((m+1)*S+m)+1},backInOut:function(S){var m=1.70158*1.525;return(S*=2)<1?.5*(S*S*((m+1)*S-m)):.5*((S-=2)*S*((m+1)*S+m)+2)},bounceIn:function(S){return 1-n.bounceOut(1-S)},bounceOut:function(S){return S<1/2.75?7.5625*S*S:S<2/2.75?7.5625*(S-=1.5/2.75)*S+.75:S<2.5/2.75?7.5625*(S-=2.25/2.75)*S+.9375:7.5625*(S-=2.625/2.75)*S+.984375},bounceInOut:function(S){return S<.5?n.bounceIn(S*2)*.5:n.bounceOut(S*2-1)*.5+.5}},y=n;R.exports=y},diRs:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("q1tI"),m=n.n(S),p=n("3S7+"),f=n("H84U"),d=n("bogI"),l=function(i,t){var o={};for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&t.indexOf(e)<0&&(o[e]=i[e]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,e=Object.getOwnPropertySymbols(i);u<e.length;u++)t.indexOf(e[u])<0&&Object.prototype.propertyIsEnumerable.call(i,e[u])&&(o[e[u]]=i[e[u]]);return o},a=S.forwardRef(function(i,t){var o=i.prefixCls,e=i.title,u=i.content,r=l(i,["prefixCls","title","content"]),s=S.useContext(f.b),c=s.getPrefixCls,h=function(b){return S.createElement(S.Fragment,null,e&&S.createElement("div",{className:"".concat(b,"-title")},Object(d.a)(e)),S.createElement("div",{className:"".concat(b,"-inner-content")},Object(d.a)(u)))},v=c("popover",o);return S.createElement(p.a,g()({},r,{prefixCls:v,ref:t,overlay:h(v)}))});a.displayName="Popover",a.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},D.a=a},digP:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(S,m){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:m}},{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:S}}]}},name:"file",theme:"twotone"};D.default=y},dm2S:function(R,D,n){"use strict";n.d(D,"a",function(){return m});var y=n("ODXe"),g=n("q1tI"),S=n.n(g);function m(p){var f=g.useRef(!1),d=g.useState(p),l=Object(y.a)(d,2),a=l[0],i=l[1];g.useEffect(function(){return f.current=!1,function(){f.current=!0}},[]);function t(o,e){if(e&&f.current)return;i(o)}return[a,t]}},dmGj:function(R,D,n){var y=n("DEFe"),g=n("ProS"),S=g.extendComponentView({type:"geo",init:function(m,p){var f=new y(p,!0);this._mapDraw=f,this.group.add(f.group)},render:function(m,p,f,d){if(d&&d.type==="geoToggleSelect"&&d.from===this.uid)return;var l=this._mapDraw;m.get("show")?l.draw(m,p,f,this,d):this._mapDraw.group.removeAll(),this.group.silent=m.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});R.exports=S},dnwI:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("YH21"),m=n("Kagy"),p=n("IUWy"),f=m.toolbox.dataView,d=new Array(60).join("-"),l=" ";function a(x){var E={},T=[],_=[];return x.eachRawSeries(function(C){var w=C.coordinateSystem;if(w&&(w.type==="cartesian2d"||w.type==="polar")){var O=w.getBaseAxis();if(O.type==="category"){var I=O.dim+"_"+O.index;E[I]||(E[I]={categoryAxis:O,valueAxis:w.getOtherAxis(O),series:[]},_.push({axisDim:O.dim,axisIndex:O.index})),E[I].series.push(C)}else T.push(C)}else T.push(C)}),{seriesGroupByCategoryAxis:E,other:T,meta:_}}function i(x){var E=[];return g.each(x,function(T,_){var C=T.categoryAxis,w=T.valueAxis,O=w.dim,I=[" "].concat(g.map(T.series,function(F){return F.name})),k=[C.model.getCategories()];g.each(T.series,function(F){k.push(F.getRawData().mapArray(O,function(j){return j}))});for(var M=[I.join(l)],U=0;U<k[0].length;U++){for(var P=[],X=0;X<k.length;X++)P.push(k[X][U]);M.push(P.join(l))}E.push(M.join(`
`))}),E.join(`
`+d+`
`)}function t(x){return g.map(x,function(E){var T=E.getRawData(),_=[E.name],C=[];return T.each(T.dimensions,function(){for(var w=arguments.length,O=arguments[w-1],I=T.getName(O),k=0;k<w-1;k++)C[k]=arguments[k];_.push((I?I+l:"")+C.join(l))}),_.join(`
`)}).join(`
`+d+`
`)}function o(x){var E=a(x);return{value:g.filter([i(E.seriesGroupByCategoryAxis),t(E.other)],function(T){return T.replace(/[\n\t\s]/g,"")}).join(`
`+d+`
`),meta:E.meta}}function e(x){return x.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function u(x){var E=x.slice(0,x.indexOf(`
`));if(E.indexOf(l)>=0)return!0}var r=new RegExp("["+l+"]+","g");function s(x){for(var E=x.split(/\n+/g),T=e(E.shift()).split(r),_=[],C=g.map(T,function(k){return{name:k,data:[]}}),w=0;w<E.length;w++){var O=e(E[w]).split(r);_.push(O.shift());for(var I=0;I<O.length;I++)C[I]&&(C[I].data[w]=O[I])}return{series:C,categories:_}}function c(x){for(var E=x.split(/\n+/g),T=e(E.shift()),_=[],C=0;C<E.length;C++){var w=e(E[C]).split(r),O="",I,k=!1;isNaN(w[0])?(k=!0,O=w[0],w=w.slice(1),_[C]={name:O,value:[]},I=_[C].value):I=_[C]=[];for(var M=0;M<w.length;M++)I.push(+w[M]);I.length===1&&(k?_[C].value=I[0]:_[C]=I[0])}return{name:T,data:_}}function h(x,E){var T=x.split(new RegExp(`
*`+d+`
*`,"g")),_={series:[]};return g.each(T,function(C,w){if(u(C)){var O=s(C),I=E[w],k=I.axisDim+"Axis";I&&(_[k]=_[k]||[],_[k][I.axisIndex]={data:O.categories},_.series=_.series.concat(O.series))}else{var O=c(C);_.series.push(O)}}),_}function v(x){this._dom=null,this.model=x}v.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:g.clone(f.title),lang:g.clone(f.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},v.prototype.onclick=function(x,E){var T=E.getDom(),_=this.model;this._dom&&T.removeChild(this._dom);var C=document.createElement("div");C.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",C.style.backgroundColor=_.get("backgroundColor")||"#fff";var w=document.createElement("h4"),O=_.get("lang")||[];w.innerHTML=O[0]||_.get("title"),w.style.cssText="margin: 10px 20px;",w.style.color=_.get("textColor");var I=document.createElement("div"),k=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var M=_.get("optionToContent"),U=_.get("contentToOption"),P=o(x);if(typeof M=="function"){var X=M(E.getOption());typeof X=="string"?I.innerHTML=X:g.isDom(X)&&I.appendChild(X)}else I.appendChild(k),k.readOnly=_.get("readOnly"),k.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",k.style.color=_.get("textColor"),k.style.borderColor=_.get("textareaBorderColor"),k.style.backgroundColor=_.get("textareaColor"),k.value=P.value;var F=P.meta,j=document.createElement("div");j.style.cssText="position:absolute;bottom:0;left:0;right:0;";var K="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",z=document.createElement("div"),V=document.createElement("div");K+=";background-color:"+_.get("buttonColor"),K+=";color:"+_.get("buttonTextColor");var Q=this;function G(){T.removeChild(C),Q._dom=null}S.addEventListener(z,"click",G),S.addEventListener(V,"click",function(){var te;try{typeof U=="function"?te=U(I,E.getOption()):te=h(k.value,F)}catch(q){throw G(),new Error("Data view format error "+q)}te&&E.dispatchAction({type:"changeDataView",newOption:te}),G()}),z.innerHTML=O[1],V.innerHTML=O[2],V.style.cssText=K,z.style.cssText=K,!_.get("readOnly")&&j.appendChild(V),j.appendChild(z),C.appendChild(w),C.appendChild(I),C.appendChild(j),I.style.height=T.clientHeight-80+"px",T.appendChild(C),this._dom=C},v.prototype.remove=function(x,E){this._dom&&E.getDom().removeChild(this._dom)},v.prototype.dispose=function(x,E){this.remove(x,E)};function A(x,E){return g.map(x,function(T,_){var C=E&&E[_];return g.isObject(C)&&!g.isArray(C)?(g.isObject(T)&&!g.isArray(T)&&(T=T.value),g.defaults({value:T},C)):T})}p.register("dataView",v),y.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(x,E){var T=[];g.each(x.newOption.series,function(_){var C=E.getSeriesByName(_.name)[0];if(!C)T.push(g.extend({type:"scatter"},_));else{var w=C.get("data");T.push({name:_.name,data:A(_.data,w)})}}),E.mergeOption(g.defaults({series:T},x.newOption))});var b=v;R.exports=b},dqUG:function(R,D,n){var y=n("Gev7"),g=n("bYtY"),S=n("6GrX"),m=n("pzxd"),p=n("gut8"),f=p.ContextCachedBy,d=function(i){y.call(this,i)};d.prototype={constructor:d,type:"text",brush:function(i,t){var o=this.style;this.__dirty&&m.normalizeTextStyle(o,!0),o.fill=o.stroke=o.shadowBlur=o.shadowColor=o.shadowOffsetX=o.shadowOffsetY=null;var e=o.text;if(e!=null&&(e+=""),!m.needDrawText(e,o)){i.__attrCachedBy=f.NONE;return}this.setTransform(i),m.renderText(this,i,e,o,null,t),this.restoreTransform(i)},getBoundingRect:function(){var i=this.style;if(this.__dirty&&m.normalizeTextStyle(i,!0),!this._rect){var t=i.text;t!=null?t+="":t="";var o=S.getBoundingRect(i.text+"",i.font,i.textAlign,i.textVerticalAlign,i.textPadding,i.textLineHeight,i.rich);if(o.x+=i.x||0,o.y+=i.y||0,m.getStroke(i.textStroke,i.textStrokeWidth)){var e=i.textStrokeWidth;o.x-=e/2,o.y-=e/2,o.width+=e,o.height+=e}this._rect=o}return this._rect}},g.inherits(d,y);var l=d;R.exports=l},dtIV:function(R,D,n){"use strict";n.r(D),function(y){n.d(D,"AcroForm",function(){return qe}),n.d(D,"AcroFormAppearance",function(){return oe}),n.d(D,"AcroFormButton",function(){return Gt}),n.d(D,"AcroFormCheckBox",function(){return Jt}),n.d(D,"AcroFormChoiceField",function(){return pt}),n.d(D,"AcroFormComboBox",function(){return nr}),n.d(D,"AcroFormEditBox",function(){return ht}),n.d(D,"AcroFormListBox",function(){return He}),n.d(D,"AcroFormPasswordField",function(){return pe}),n.d(D,"AcroFormPushButton",function(){return pr}),n.d(D,"AcroFormRadioButton",function(){return Qt}),n.d(D,"AcroFormTextField",function(){return Ge}),n.d(D,"GState",function(){return X}),n.d(D,"ShadingPattern",function(){return j}),n.d(D,"TilingPattern",function(){return K}),n.d(D,"jsPDF",function(){return z});var g=n("cDf5"),S=n.n(g),m=n("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 p=function(){return typeof window!="undefined"?window:typeof y!="undefined"?y:typeof self!="undefined"?self:this}();function f(){p.console&&typeof p.console.log=="function"&&p.console.log.apply(p.console,arguments)}var d={log:f,warn:function(Le){p.console&&(typeof p.console.warn=="function"?p.console.warn.apply(p.console,arguments):f.call(null,arguments))},error:function(Le){p.console&&(typeof p.console.error=="function"?p.console.error.apply(p.console,arguments):f(Le))}};function l(at,Le,je){var Xe=new XMLHttpRequest;Xe.open("GET",at),Xe.responseType="blob",Xe.onload=function(){e(Xe.response,Le,je)},Xe.onerror=function(){d.error("could not download file")},Xe.send()}function a(at){var Le=new XMLHttpRequest;Le.open("HEAD",at,!1);try{Le.send()}catch(je){}return Le.status>=200&&Le.status<=299}function i(at){try{at.dispatchEvent(new MouseEvent("click"))}catch(je){var Le=document.createEvent("MouseEvents");Le.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),at.dispatchEvent(Le)}}var t,o,e=p.saveAs||((typeof window=="undefined"?"undefined":S()(window))!=="object"||window!==p?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(at,Le,je){var Xe=p.URL||p.webkitURL,it=document.createElement("a");Le=Le||at.name||"download",it.download=Le,it.rel="noopener",typeof at=="string"?(it.href=at,it.origin!==location.origin?a(it.href)?l(at,Le,je):i(it,it.target="_blank"):i(it)):(it.href=Xe.createObjectURL(at),setTimeout(function(){Xe.revokeObjectURL(it.href)},4e4),setTimeout(function(){i(it)},0))}:"msSaveOrOpenBlob"in navigator?function(at,Le,je){if(Le=Le||at.name||"download",typeof at=="string")if(a(at))l(at,Le,je);else{var Xe=document.createElement("a");Xe.href=at,Xe.target="_blank",setTimeout(function(){i(Xe)})}else navigator.msSaveOrOpenBlob(function(it,Ze){return Ze===void 0?Ze={autoBom:!1}:S()(Ze)!=="object"&&(d.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(it.type)?new Blob([String.fromCharCode(65279),it],{type:it.type}):it}(at,je),Le)}:function(at,Le,je,Xe){if((Xe=Xe||open("","_blank"))&&(Xe.document.title=Xe.document.body.innerText="downloading..."),typeof at=="string")return l(at,Le,je);var it=at.type==="application/octet-stream",Ze=/constructor/i.test(p.HTMLElement)||p.safari,ot=/CriOS\/[\d]+/.test(navigator.userAgent);if((ot||it&&Ze)&&(typeof FileReader=="undefined"?"undefined":S()(FileReader))==="object"){var Lt=new FileReader;Lt.onloadend=function(){var qr=Lt.result;qr=ot?qr:qr.replace(/^data:[^;]*;/,"data:attachment/file;"),Xe?Xe.location.href=qr:location=qr,Xe=null},Lt.readAsDataURL(at)}else{var At=p.URL||p.webkitURL,mr=At.createObjectURL(at);Xe?Xe.location=mr:location.href=mr,Xe=null,setTimeout(function(){At.revokeObjectURL(mr)},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 u(at){var Le;at=at||"",this.ok=!1,at.charAt(0)=="#"&&(at=at.substr(1,6)),at={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"}[at=(at=at.replace(/ /g,"")).toLowerCase()]||at;for(var je=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(At){return[parseInt(At[1]),parseInt(At[2]),parseInt(At[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(At){return[parseInt(At[1],16),parseInt(At[2],16),parseInt(At[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(At){return[parseInt(At[1]+At[1],16),parseInt(At[2]+At[2],16),parseInt(At[3]+At[3],16)]}}],Xe=0;Xe<je.length;Xe++){var it=je[Xe].re,Ze=je[Xe].process,ot=it.exec(at);ot&&(Le=Ze(ot),this.r=Le[0],this.g=Le[1],this.b=Le[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 Lt=this.r.toString(16),At=this.g.toString(16),mr=this.b.toString(16);return Lt.length==1&&(Lt="0"+Lt),At.length==1&&(At="0"+At),mr.length==1&&(mr="0"+mr),"#"+Lt+At+mr}}/**
* @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 r(at,Le){var je=at[0],Xe=at[1],it=at[2],Ze=at[3];je=c(je,Xe,it,Ze,Le[0],7,-680876936),Ze=c(Ze,je,Xe,it,Le[1],12,-389564586),it=c(it,Ze,je,Xe,Le[2],17,606105819),Xe=c(Xe,it,Ze,je,Le[3],22,-1044525330),je=c(je,Xe,it,Ze,Le[4],7,-176418897),Ze=c(Ze,je,Xe,it,Le[5],12,1200080426),it=c(it,Ze,je,Xe,Le[6],17,-1473231341),Xe=c(Xe,it,Ze,je,Le[7],22,-45705983),je=c(je,Xe,it,Ze,Le[8],7,1770035416),Ze=c(Ze,je,Xe,it,Le[9],12,-1958414417),it=c(it,Ze,je,Xe,Le[10],17,-42063),Xe=c(Xe,it,Ze,je,Le[11],22,-1990404162),je=c(je,Xe,it,Ze,Le[12],7,1804603682),Ze=c(Ze,je,Xe,it,Le[13],12,-40341101),it=c(it,Ze,je,Xe,Le[14],17,-1502002290),je=h(je,Xe=c(Xe,it,Ze,je,Le[15],22,1236535329),it,Ze,Le[1],5,-165796510),Ze=h(Ze,je,Xe,it,Le[6],9,-1069501632),it=h(it,Ze,je,Xe,Le[11],14,643717713),Xe=h(Xe,it,Ze,je,Le[0],20,-373897302),je=h(je,Xe,it,Ze,Le[5],5,-701558691),Ze=h(Ze,je,Xe,it,Le[10],9,38016083),it=h(it,Ze,je,Xe,Le[15],14,-660478335),Xe=h(Xe,it,Ze,je,Le[4],20,-405537848),je=h(je,Xe,it,Ze,Le[9],5,568446438),Ze=h(Ze,je,Xe,it,Le[14],9,-1019803690),it=h(it,Ze,je,Xe,Le[3],14,-187363961),Xe=h(Xe,it,Ze,je,Le[8],20,1163531501),je=h(je,Xe,it,Ze,Le[13],5,-1444681467),Ze=h(Ze,je,Xe,it,Le[2],9,-51403784),it=h(it,Ze,je,Xe,Le[7],14,1735328473),je=v(je,Xe=h(Xe,it,Ze,je,Le[12],20,-1926607734),it,Ze,Le[5],4,-378558),Ze=v(Ze,je,Xe,it,Le[8],11,-2022574463),it=v(it,Ze,je,Xe,Le[11],16,1839030562),Xe=v(Xe,it,Ze,je,Le[14],23,-35309556),je=v(je,Xe,it,Ze,Le[1],4,-1530992060),Ze=v(Ze,je,Xe,it,Le[4],11,1272893353),it=v(it,Ze,je,Xe,Le[7],16,-155497632),Xe=v(Xe,it,Ze,je,Le[10],23,-1094730640),je=v(je,Xe,it,Ze,Le[13],4,681279174),Ze=v(Ze,je,Xe,it,Le[0],11,-358537222),it=v(it,Ze,je,Xe,Le[3],16,-722521979),Xe=v(Xe,it,Ze,je,Le[6],23,76029189),je=v(je,Xe,it,Ze,Le[9],4,-640364487),Ze=v(Ze,je,Xe,it,Le[12],11,-421815835),it=v(it,Ze,je,Xe,Le[15],16,530742520),je=A(je,Xe=v(Xe,it,Ze,je,Le[2],23,-995338651),it,Ze,Le[0],6,-198630844),Ze=A(Ze,je,Xe,it,Le[7],10,1126891415),it=A(it,Ze,je,Xe,Le[14],15,-1416354905),Xe=A(Xe,it,Ze,je,Le[5],21,-57434055),je=A(je,Xe,it,Ze,Le[12],6,1700485571),Ze=A(Ze,je,Xe,it,Le[3],10,-1894986606),it=A(it,Ze,je,Xe,Le[10],15,-1051523),Xe=A(Xe,it,Ze,je,Le[1],21,-2054922799),je=A(je,Xe,it,Ze,Le[8],6,1873313359),Ze=A(Ze,je,Xe,it,Le[15],10,-30611744),it=A(it,Ze,je,Xe,Le[6],15,-1560198380),Xe=A(Xe,it,Ze,je,Le[13],21,1309151649),je=A(je,Xe,it,Ze,Le[4],6,-145523070),Ze=A(Ze,je,Xe,it,Le[11],10,-1120210379),it=A(it,Ze,je,Xe,Le[2],15,718787259),Xe=A(Xe,it,Ze,je,Le[9],21,-343485551),at[0]=O(je,at[0]),at[1]=O(Xe,at[1]),at[2]=O(it,at[2]),at[3]=O(Ze,at[3])}function s(at,Le,je,Xe,it,Ze){return Le=O(O(Le,at),O(Xe,Ze)),O(Le<<it|Le>>>32-it,je)}function c(at,Le,je,Xe,it,Ze,ot){return s(Le&je|~Le&Xe,at,Le,it,Ze,ot)}function h(at,Le,je,Xe,it,Ze,ot){return s(Le&Xe|je&~Xe,at,Le,it,Ze,ot)}function v(at,Le,je,Xe,it,Ze,ot){return s(Le^je^Xe,at,Le,it,Ze,ot)}function A(at,Le,je,Xe,it,Ze,ot){return s(je^(Le|~Xe),at,Le,it,Ze,ot)}function b(at){var Le,je=at.length,Xe=[1732584193,-271733879,-1732584194,271733878];for(Le=64;Le<=at.length;Le+=64)r(Xe,x(at.substring(Le-64,Le)));at=at.substring(Le-64);var it=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Le=0;Le<at.length;Le++)it[Le>>2]|=at.charCodeAt(Le)<<(Le%4<<3);if(it[Le>>2]|=128<<(Le%4<<3),Le>55)for(r(Xe,it),Le=0;Le<16;Le++)it[Le]=0;return it[14]=8*je,r(Xe,it),Xe}function x(at){var Le,je=[];for(Le=0;Le<64;Le+=4)je[Le>>2]=at.charCodeAt(Le)+(at.charCodeAt(Le+1)<<8)+(at.charCodeAt(Le+2)<<16)+(at.charCodeAt(Le+3)<<24);return je}t=p.atob.bind(p),o=p.btoa.bind(p);var E="0123456789abcdef".split("");function T(at){for(var Le="",je=0;je<4;je++)Le+=E[at>>8*je+4&15]+E[at>>8*je&15];return Le}function _(at){return String.fromCharCode((255&at)>>0,(65280&at)>>8,(16711680&at)>>16,(4278190080&at)>>24)}function C(at){return b(at).map(_).join("")}var w=function(at){for(var Le=0;Le<at.length;Le++)at[Le]=T(at[Le]);return at.join("")}(b("hello"))!="5d41402abc4b2a76b9719d911017c592";function O(at,Le){if(w){var je=(65535&at)+(65535&Le);return(at>>16)+(Le>>16)+(je>>16)<<16|65535&je}return at+Le&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(at,Le){var je,Xe,it,Ze;if(at!==je){for(var ot=(it=at,Ze=1+(256/at.length>>0),new Array(Ze+1).join(it)),Lt=[],At=0;At<256;At++)Lt[At]=At;var mr=0;for(At=0;At<256;At++){var qr=Lt[At];mr=(mr+qr+ot.charCodeAt(At))%256,Lt[At]=Lt[mr],Lt[mr]=qr}je=at,Xe=Lt}else Lt=Xe;var Qr=Le.length,gn=0,yr=0,Vn="";for(At=0;At<Qr;At++)yr=(yr+(qr=Lt[gn=(gn+1)%256]))%256,Lt[gn]=Lt[yr],Lt[yr]=qr,ot=Lt[(Lt[gn]+Lt[yr])%256],Vn+=String.fromCharCode(Le.charCodeAt(At)^ot);return Vn}/**
* @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 k={print:4,modify:8,copy:16,"annot-forms":32};function M(at,Le,je,Xe){this.v=1,this.r=2;var it=192;at.forEach(function(Lt){if(k.perm!==void 0)throw new Error("Invalid permission: "+Lt);it+=k[Lt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Ze=(Le+this.padding).substr(0,32),ot=(je+this.padding).substr(0,32);this.O=this.processOwnerPassword(Ze,ot),this.P=-(1+(255^it)),this.encryptionKey=C(Ze+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Xe)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function U(at){if(/[^\u0000-\u00ff]/.test(at))throw new Error("Invalid PDF Name Object: "+at+", Only accept ASCII characters.");for(var Le="",je=at.length,Xe=0;Xe<je;Xe++){var it=at.charCodeAt(Xe);it<33||it===35||it===37||it===40||it===41||it===47||it===60||it===62||it===91||it===93||it===123||it===125||it>126?Le+="#"+("0"+it.toString(16)).slice(-2):Le+=at[Xe]}return Le}function P(at){if(S()(at)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Le={};this.subscribe=function(je,Xe,it){if(it=it||!1,typeof je!="string"||typeof Xe!="function"||typeof it!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Le.hasOwnProperty(je)||(Le[je]={});var Ze=Math.random().toString(35);return Le[je][Ze]=[Xe,!!it],Ze},this.unsubscribe=function(je){for(var Xe in Le)if(Le[Xe][je])return delete Le[Xe][je],Object.keys(Le[Xe]).length===0&&delete Le[Xe],!0;return!1},this.publish=function(je){if(Le.hasOwnProperty(je)){var Xe=Array.prototype.slice.call(arguments,1),it=[];for(var Ze in Le[je]){var ot=Le[je][Ze];try{ot[0].apply(at,Xe)}catch(Lt){p.console&&d.error("jsPDF PubSub Error",Lt.message,Lt)}ot[1]&&it.push(Ze)}it.length&&it.forEach(this.unsubscribe)}},this.getTopics=function(){return Le}}function X(at){if(!(this instanceof X))return new X(at);var Le="opacity,stroke-opacity".split(",");for(var je in at)at.hasOwnProperty(je)&&Le.indexOf(je)>=0&&(this[je]=at[je]);this.id="",this.objectNumber=-1}function F(at,Le){this.gState=at,this.matrix=Le,this.id="",this.objectNumber=-1}function j(at,Le,je,Xe,it){if(!(this instanceof j))return new j(at,Le,je,Xe,it);this.type=at==="axial"?2:3,this.coords=Le,this.colors=je,F.call(this,Xe,it)}function K(at,Le,je,Xe,it){if(!(this instanceof K))return new K(at,Le,je,Xe,it);this.boundingBox=at,this.xStep=Le,this.yStep=je,this.stream="",this.cloneIndex=0,F.call(this,Xe,it)}function z(at){var Le,je=typeof arguments[0]=="string"?arguments[0]:"p",Xe=arguments[1],it=arguments[2],Ze=arguments[3],ot=[],Lt=1,At=16,mr="S",qr=null;S()(at=at||{})==="object"&&(je=at.orientation,Xe=at.unit||Xe,it=at.format||it,Ze=at.compress||at.compressPdf||Ze,(qr=at.encryption||null)!==null&&(qr.userPassword=qr.userPassword||"",qr.ownerPassword=qr.ownerPassword||"",qr.userPermissions=qr.userPermissions||[]),Lt=typeof at.userUnit=="number"?Math.abs(at.userUnit):1,at.precision!==void 0&&(Le=at.precision),at.floatPrecision!==void 0&&(At=at.floatPrecision),mr=at.defaultPathOperation||"S"),ot=at.filters||(Ze===!0?["FlateEncode"]:ot),Xe=Xe||"mm",je=(""+(je||"P")).toLowerCase();var Qr=at.putOnlyUsedFonts||!1,gn={},yr={internal:{},__private__:{}};yr.__private__.PubSub=P;var Vn="1.3",Br=yr.__private__.getPdfVersion=function(){return Vn};yr.__private__.setPdfVersion=function(zt){Vn=zt};var jn={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]};yr.__private__.getPageFormats=function(){return jn};var xn=yr.__private__.getPageFormat=function(zt){return jn[zt]};it=it||"a4";var tn={COMPAT:"compat",ADVANCED:"advanced"},ti=tn.COMPAT;function mi(){this.saveGraphicsState(),Pn(new na(Dr,0,0,-Dr,0,Ds()*Dr).toString()+" cm"),this.setFontSize(this.getFontSize()/Dr),mr="n",ti=tn.ADVANCED}function Pi(){this.restoreGraphicsState(),mr="S",ti=tn.COMPAT}var en=yr.__private__.combineFontStyleAndFontWeight=function(zt,ur){if(zt=="bold"&&ur=="normal"||zt=="bold"&&ur==400||zt=="normal"&&ur=="italic"||zt=="bold"&&ur=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return ur&&(zt=ur==400||ur==="normal"?zt==="italic"?"italic":"normal":ur!=700&&ur!=="bold"||zt!=="normal"?(ur==700?"bold":ur)+""+zt:"bold"),zt};yr.advancedAPI=function(zt){var ur=ti===tn.COMPAT;return ur&&mi.call(this),typeof zt!="function"||(zt(this),ur&&Pi.call(this)),this},yr.compatAPI=function(zt){var ur=ti===tn.ADVANCED;return ur&&Pi.call(this),typeof zt!="function"||(zt(this),ur&&mi.call(this)),this},yr.isAdvancedAPI=function(){return ti===tn.ADVANCED};var Tn,Yn=function(ur){if(ti!==tn.ADVANCED)throw new Error(ur+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Yt=yr.roundToPrecision=yr.__private__.roundToPrecision=function(zt,ur){var Dn=Le||ur;if(isNaN(zt)||isNaN(Dn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return zt.toFixed(Dn).replace(/0+$/,"")};Tn=yr.hpf=yr.__private__.hpf=typeof At=="number"?function(zt){if(isNaN(zt))throw new Error("Invalid argument passed to jsPDF.hpf");return Yt(zt,At)}:At==="smart"?function(zt){if(isNaN(zt))throw new Error("Invalid argument passed to jsPDF.hpf");return Yt(zt,zt>-1&&zt<1?16:5)}:function(zt){if(isNaN(zt))throw new Error("Invalid argument passed to jsPDF.hpf");return Yt(zt,16)};var Dt=yr.f2=yr.__private__.f2=function(zt){if(isNaN(zt))throw new Error("Invalid argument passed to jsPDF.f2");return Yt(zt,2)},Bt=yr.__private__.f3=function(zt){if(isNaN(zt))throw new Error("Invalid argument passed to jsPDF.f3");return Yt(zt,3)},Wt=yr.scale=yr.__private__.scale=function(zt){if(isNaN(zt))throw new Error("Invalid argument passed to jsPDF.scale");return ti===tn.COMPAT?zt*Dr:ti===tn.ADVANCED?zt:void 0},Xt=function(ur){return ti===tn.COMPAT?Ds()-ur:ti===tn.ADVANCED?ur:void 0},kt=function(ur){return Wt(Xt(ur))};yr.__private__.setPrecision=yr.setPrecision=function(zt){typeof parseInt(zt,10)=="number"&&(Le=parseInt(zt,10))};var hr,br="00000000000000000000000000000000",wr=yr.__private__.getFileId=function(){return br},Fr=yr.__private__.setFileId=function(zt){return br=zt!==void 0&&/^[a-fA-F0-9]{32}$/.test(zt)?zt.toUpperCase():br.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),qr!==null&&(wa=new M(qr.userPermissions,qr.userPassword,qr.ownerPassword,br)),br};yr.setFileId=function(zt){return Fr(zt),this},yr.getFileId=function(){return wr()};var Xn=yr.__private__.convertDateToPDFDate=function(zt){var ur=zt.getTimezoneOffset(),Dn=ur<0?"+":"-",fi=Math.floor(Math.abs(ur/60)),Mt=Math.abs(ur%60),ce=[Dn,In(fi),"'",In(Mt),"'"].join("");return["D:",zt.getFullYear(),In(zt.getMonth()+1),In(zt.getDate()),In(zt.getHours()),In(zt.getMinutes()),In(zt.getSeconds()),ce].join("")},Fn=yr.__private__.convertPDFDateToDate=function(zt){var ur=parseInt(zt.substr(2,4),10),Dn=parseInt(zt.substr(6,2),10)-1,fi=parseInt(zt.substr(8,2),10),Mt=parseInt(zt.substr(10,2),10),ce=parseInt(zt.substr(12,2),10),Se=parseInt(zt.substr(14,2),10);return new Date(ur,Dn,fi,Mt,ce,Se,0)},hi=yr.__private__.setCreationDate=function(zt){var ur;if(zt===void 0&&(zt=new Date),zt instanceof Date)ur=Xn(zt);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(zt))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ur=zt}return hr=ur},An=yr.__private__.getCreationDate=function(zt){var ur=hr;return zt==="jsDate"&&(ur=Fn(hr)),ur};yr.setCreationDate=function(zt){return hi(zt),this},yr.getCreationDate=function(zt){return An(zt)};var jr,In=yr.__private__.padd2=function(zt){return("0"+parseInt(zt)).slice(-2)},Qn=yr.__private__.padd2Hex=function(zt){return("00"+(zt=zt.toString())).substr(zt.length)},qn=0,si=[],Ci=[],ki=0,Ri=[],oa=[],ma=!1,aa=Ci,ba=function(){qn=0,ki=0,Ci=[],si=[],Ri=[],_a=Oa(),Va=Oa()};yr.__private__.setCustomOutputDestination=function(zt){ma=!0,aa=zt};var bi=function(ur){ma||(aa=ur)};yr.__private__.resetCustomOutputDestination=function(){ma=!1,aa=Ci};var Pn=yr.__private__.out=function(zt){return zt=zt.toString(),ki+=zt.length+1,aa.push(zt),aa},ji=yr.__private__.write=function(zt){return Pn(arguments.length===1?zt.toString():Array.prototype.join.call(arguments," "))},ha=yr.__private__.getArrayBuffer=function(zt){for(var ur=zt.length,Dn=new ArrayBuffer(ur),fi=new Uint8Array(Dn);ur--;)fi[ur]=zt.charCodeAt(ur);return Dn},ta=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];yr.__private__.getStandardFonts=function(){return ta};var ra=at.fontSize||16;yr.__private__.setFontSize=yr.setFontSize=function(zt){return ra=ti===tn.ADVANCED?zt/Dr:zt,this};var Nr,Er=yr.__private__.getFontSize=yr.getFontSize=function(){return ti===tn.COMPAT?ra:ra*Dr},On=at.R2L||!1;yr.__private__.setR2L=yr.setR2L=function(zt){return On=zt,this},yr.__private__.getR2L=yr.getR2L=function(){return On};var gr,Pr=yr.__private__.setZoomMode=function(zt){var ur=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(zt))Nr=zt;else if(isNaN(zt)){if(ur.indexOf(zt)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+zt+'" is not recognized.');Nr=zt}else Nr=parseInt(zt,10)};yr.__private__.getZoomMode=function(){return Nr};var Xr,cn=yr.__private__.setPageMode=function(zt){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(zt)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+zt+'" is not recognized.');gr=zt};yr.__private__.getPageMode=function(){return gr};var Un=yr.__private__.setLayoutMode=function(zt){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(zt)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+zt+'" is not recognized.');Xr=zt};yr.__private__.getLayoutMode=function(){return Xr},yr.__private__.setDisplayMode=yr.setDisplayMode=function(zt,ur,Dn){return Pr(zt),Un(ur),cn(Dn),this};var Nt={title:"",subject:"",author:"",keywords:"",creator:""};yr.__private__.getDocumentProperty=function(zt){if(Object.keys(Nt).indexOf(zt)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Nt[zt]},yr.__private__.getDocumentProperties=function(){return Nt},yr.__private__.setDocumentProperties=yr.setProperties=yr.setDocumentProperties=function(zt){for(var ur in Nt)Nt.hasOwnProperty(ur)&&zt[ur]&&(Nt[ur]=zt[ur]);return this},yr.__private__.setDocumentProperty=function(zt,ur){if(Object.keys(Nt).indexOf(zt)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Nt[zt]=ur};var Lr,Dr,an,Cn,Nn,En={},ei={},Wn=[],gi={},Fi={},wi={},Ii={},Vi=null,ea=0,Xi=[],zi=new P(yr),Hi=at.hotfixes||[],Ji={},ca={},Ta=[],na=function zt(ur,Dn,fi,Mt,ce,Se){if(!(this instanceof zt))return new zt(ur,Dn,fi,Mt,ce,Se);isNaN(ur)&&(ur=1),isNaN(Dn)&&(Dn=0),isNaN(fi)&&(fi=0),isNaN(Mt)&&(Mt=1),isNaN(ce)&&(ce=0),isNaN(Se)&&(Se=0),this._matrix=[ur,Dn,fi,Mt,ce,Se]};Object.defineProperty(na.prototype,"sx",{get:function(){return this._matrix[0]},set:function(ur){this._matrix[0]=ur}}),Object.defineProperty(na.prototype,"shy",{get:function(){return this._matrix[1]},set:function(ur){this._matrix[1]=ur}}),Object.defineProperty(na.prototype,"shx",{get:function(){return this._matrix[2]},set:function(ur){this._matrix[2]=ur}}),Object.defineProperty(na.prototype,"sy",{get:function(){return this._matrix[3]},set:function(ur){this._matrix[3]=ur}}),Object.defineProperty(na.prototype,"tx",{get:function(){return this._matrix[4]},set:function(ur){this._matrix[4]=ur}}),Object.defineProperty(na.prototype,"ty",{get:function(){return this._matrix[5]},set:function(ur){this._matrix[5]=ur}}),Object.defineProperty(na.prototype,"a",{get:function(){return this._matrix[0]},set:function(ur){this._matrix[0]=ur}}),Object.defineProperty(na.prototype,"b",{get:function(){return this._matrix[1]},set:function(ur){this._matrix[1]=ur}}),Object.defineProperty(na.prototype,"c",{get:function(){return this._matrix[2]},set:function(ur){this._matrix[2]=ur}}),Object.defineProperty(na.prototype,"d",{get:function(){return this._matrix[3]},set:function(ur){this._matrix[3]=ur}}),Object.defineProperty(na.prototype,"e",{get:function(){return this._matrix[4]},set:function(ur){this._matrix[4]=ur}}),Object.defineProperty(na.prototype,"f",{get:function(){return this._matrix[5]},set:function(ur){this._matrix[5]=ur}}),Object.defineProperty(na.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(na.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(na.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(na.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),na.prototype.join=function(zt){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Tn).join(zt)},na.prototype.multiply=function(zt){var ur=zt.sx*this.sx+zt.shy*this.shx,Dn=zt.sx*this.shy+zt.shy*this.sy,fi=zt.shx*this.sx+zt.sy*this.shx,Mt=zt.shx*this.shy+zt.sy*this.sy,ce=zt.tx*this.sx+zt.ty*this.shx+this.tx,Se=zt.tx*this.shy+zt.ty*this.sy+this.ty;return new na(ur,Dn,fi,Mt,ce,Se)},na.prototype.decompose=function(){var zt=this.sx,ur=this.shy,Dn=this.shx,fi=this.sy,Mt=this.tx,ce=this.ty,Se=Math.sqrt(zt*zt+ur*ur),Ie=(zt/=Se)*Dn+(ur/=Se)*fi;Dn-=zt*Ie,fi-=ur*Ie;var Je=Math.sqrt(Dn*Dn+fi*fi);return Ie/=Je,zt*(fi/=Je)<ur*(Dn/=Je)&&(zt=-zt,ur=-ur,Ie=-Ie,Se=-Se),{scale:new na(Se,0,0,Je,0,0),translate:new na(1,0,0,1,Mt,ce),rotate:new na(zt,ur,-ur,zt,0,0),skew:new na(1,0,Ie,1,0,0)}},na.prototype.toString=function(zt){return this.join(" ")},na.prototype.inversed=function(){var zt=this.sx,ur=this.shy,Dn=this.shx,fi=this.sy,Mt=this.tx,ce=this.ty,Se=1/(zt*fi-ur*Dn),Ie=fi*Se,Je=-ur*Se,Pt=-Dn*Se,cr=zt*Se;return new na(Ie,Je,Pt,cr,-Ie*Mt-Pt*ce,-Je*Mt-cr*ce)},na.prototype.applyToPoint=function(zt){var ur=zt.x*this.sx+zt.y*this.shx+this.tx,Dn=zt.x*this.shy+zt.y*this.sy+this.ty;return new tl(ur,Dn)},na.prototype.applyToRectangle=function(zt){var ur=this.applyToPoint(zt),Dn=this.applyToPoint(new tl(zt.x+zt.w,zt.y+zt.h));return new Ss(ur.x,ur.y,Dn.x-ur.x,Dn.y-ur.y)},na.prototype.clone=function(){var zt=this.sx,ur=this.shy,Dn=this.shx,fi=this.sy,Mt=this.tx,ce=this.ty;return new na(zt,ur,Dn,fi,Mt,ce)},yr.Matrix=na;var Pa=yr.matrixMult=function(zt,ur){return ur.multiply(zt)},La=new na(1,0,0,1,0,0);yr.unitMatrix=yr.identityMatrix=La;var va=function(ur,Dn){if(!Fi[ur]){var fi=(Dn instanceof j?"Sh":"P")+(Object.keys(gi).length+1).toString(10);Dn.id=fi,Fi[ur]=fi,gi[fi]=Dn,zi.publish("addPattern",Dn)}};yr.ShadingPattern=j,yr.TilingPattern=K,yr.addShadingPattern=function(zt,ur){return Yn("addShadingPattern()"),va(zt,ur),this},yr.beginTilingPattern=function(zt){Yn("beginTilingPattern()"),al(zt.boundingBox[0],zt.boundingBox[1],zt.boundingBox[2]-zt.boundingBox[0],zt.boundingBox[3]-zt.boundingBox[1],zt.matrix)},yr.endTilingPattern=function(zt,ur){Yn("endTilingPattern()"),ur.stream=oa[jr].join(`
`),va(zt,ur),zi.publish("endTilingPattern",ur),Ta.pop().restore()};var ga=yr.__private__.newObject=function(){var zt=Oa();return Aa(zt,!0),zt},Oa=yr.__private__.newObjectDeferred=function(){return qn++,si[qn]=function(){return ki},qn},Aa=function(ur,Dn){return Dn=typeof Dn=="boolean"&&Dn,si[ur]=ki,Dn&&Pn(ur+" 0 obj"),ur},Xa=yr.__private__.newAdditionalObject=function(){var zt={objId:Oa(),content:""};return Ri.push(zt),zt},_a=Oa(),Va=Oa(),Bi=yr.__private__.decodeColorString=function(zt){var ur=zt.split(" ");if(ur.length!==2||ur[1]!=="g"&&ur[1]!=="G")ur.length===5&&(ur[4]==="k"||ur[4]==="K")&&(ur=[(1-ur[0])*(1-ur[3]),(1-ur[1])*(1-ur[3]),(1-ur[2])*(1-ur[3]),"r"]);else{var Dn=parseFloat(ur[0]);ur=[Dn,Dn,Dn,"r"]}for(var fi="#",Mt=0;Mt<3;Mt++)fi+=("0"+Math.floor(255*parseFloat(ur[Mt])).toString(16)).slice(-2);return fi},io=yr.__private__.encodeColorString=function(zt){var ur;typeof zt=="string"&&(zt={ch1:zt});var Dn=zt.ch1,fi=zt.ch2,Mt=zt.ch3,ce=zt.ch4,Se=zt.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Dn=="string"&&Dn.charAt(0)!=="#"){var Ie=new u(Dn);if(Ie.ok)Dn=Ie.toHex();else if(!/^\d*\.?\d*$/.test(Dn))throw new Error('Invalid color "'+Dn+'" passed to jsPDF.encodeColorString.')}if(typeof Dn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Dn)&&(Dn="#"+Dn[1]+Dn[1]+Dn[2]+Dn[2]+Dn[3]+Dn[3]),typeof Dn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Dn)){var Je=parseInt(Dn.substr(1),16);Dn=Je>>16&255,fi=Je>>8&255,Mt=255&Je}if(fi===void 0||ce===void 0&&Dn===fi&&fi===Mt)if(typeof Dn=="string")ur=Dn+" "+Se[0];else switch(zt.precision){case 2:ur=Dt(Dn/255)+" "+Se[0];break;case 3:default:ur=Bt(Dn/255)+" "+Se[0]}else if(ce===void 0||S()(ce)==="object"){if(ce&&!isNaN(ce.a)&&ce.a===0)return ur=["1.","1.","1.",Se[1]].join(" ");if(typeof Dn=="string")ur=[Dn,fi,Mt,Se[1]].join(" ");else switch(zt.precision){case 2:ur=[Dt(Dn/255),Dt(fi/255),Dt(Mt/255),Se[1]].join(" ");break;default:case 3:ur=[Bt(Dn/255),Bt(fi/255),Bt(Mt/255),Se[1]].join(" ")}}else if(typeof Dn=="string")ur=[Dn,fi,Mt,ce,Se[2]].join(" ");else switch(zt.precision){case 2:ur=[Dt(Dn),Dt(fi),Dt(Mt),Dt(ce),Se[2]].join(" ");break;case 3:default:ur=[Bt(Dn),Bt(fi),Bt(Mt),Bt(ce),Se[2]].join(" ")}return ur},oo=yr.__private__.getFilters=function(){return ot},Qo=yr.__private__.putStream=function(zt){var ur=(zt=zt||{}).data||"",Dn=zt.filters||oo(),fi=zt.alreadyAppliedFilters||[],Mt=zt.addLength1||!1,ce=ur.length,Se=zt.objectId,Ie=function(Ai){return Ai};if(qr!==null&&Se===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");qr!==null&&(Ie=wa.encryptor(Se,0));var Je={};Dn===!0&&(Dn=["FlateEncode"]);var Pt=zt.additionalKeyValues||[],cr=(Je=z.API.processDataByFilters!==void 0?z.API.processDataByFilters(ur,Dn):{data:ur,reverseChain:[]}).reverseChain+(Array.isArray(fi)?fi.join(" "):fi.toString());if(Je.data.length!==0&&(Pt.push({key:"Length",value:Je.data.length}),Mt===!0&&Pt.push({key:"Length1",value:ce})),cr.length!=0)if(cr.split("/").length-1==1)Pt.push({key:"Filter",value:cr});else{Pt.push({key:"Filter",value:"["+cr+"]"});for(var Zr=0;Zr<Pt.length;Zr+=1)if(Pt[Zr].key==="DecodeParms"){for(var vn=[],kn=0;kn<Je.reverseChain.split("/").length-1;kn+=1)vn.push("null");vn.push(Pt[Zr].value),Pt[Zr].value="["+vn.join(" ")+"]"}}Pn("<<");for(var ci=0;ci<Pt.length;ci++)Pn("/"+Pt[ci].key+" "+Pt[ci].value);Pn(">>"),Je.data.length!==0&&(Pn("stream"),Pn(Ie(Je.data)),Pn("endstream"))},mo=yr.__private__.putPage=function(zt){var ur=zt.number,Dn=zt.data,fi=zt.objId,Mt=zt.contentsObjId;Aa(fi,!0),Pn("<</Type /Page"),Pn("/Parent "+zt.rootDictionaryObjId+" 0 R"),Pn("/Resources "+zt.resourceDictionaryObjId+" 0 R"),Pn("/MediaBox ["+parseFloat(Tn(zt.mediaBox.bottomLeftX))+" "+parseFloat(Tn(zt.mediaBox.bottomLeftY))+" "+Tn(zt.mediaBox.topRightX)+" "+Tn(zt.mediaBox.topRightY)+"]"),zt.cropBox!==null&&Pn("/CropBox ["+Tn(zt.cropBox.bottomLeftX)+" "+Tn(zt.cropBox.bottomLeftY)+" "+Tn(zt.cropBox.topRightX)+" "+Tn(zt.cropBox.topRightY)+"]"),zt.bleedBox!==null&&Pn("/BleedBox ["+Tn(zt.bleedBox.bottomLeftX)+" "+Tn(zt.bleedBox.bottomLeftY)+" "+Tn(zt.bleedBox.topRightX)+" "+Tn(zt.bleedBox.topRightY)+"]"),zt.trimBox!==null&&Pn("/TrimBox ["+Tn(zt.trimBox.bottomLeftX)+" "+Tn(zt.trimBox.bottomLeftY)+" "+Tn(zt.trimBox.topRightX)+" "+Tn(zt.trimBox.topRightY)+"]"),zt.artBox!==null&&Pn("/ArtBox ["+Tn(zt.artBox.bottomLeftX)+" "+Tn(zt.artBox.bottomLeftY)+" "+Tn(zt.artBox.topRightX)+" "+Tn(zt.artBox.topRightY)+"]"),typeof zt.userUnit=="number"&&zt.userUnit!==1&&Pn("/UserUnit "+zt.userUnit),zi.publish("putPage",{objId:fi,pageContext:Xi[ur],pageNumber:ur,page:Dn}),Pn("/Contents "+Mt+" 0 R"),Pn(">>"),Pn("endobj");var ce=Dn.join(`
`);return ti===tn.ADVANCED&&(ce+=`
Q`),Aa(Mt,!0),Qo({data:ce,filters:oo(),objectId:Mt}),Pn("endobj"),fi},Co=yr.__private__.putPages=function(){var zt,ur,Dn=[];for(zt=1;zt<=ea;zt++)Xi[zt].objId=Oa(),Xi[zt].contentsObjId=Oa();for(zt=1;zt<=ea;zt++)Dn.push(mo({number:zt,data:oa[zt],objId:Xi[zt].objId,contentsObjId:Xi[zt].contentsObjId,mediaBox:Xi[zt].mediaBox,cropBox:Xi[zt].cropBox,bleedBox:Xi[zt].bleedBox,trimBox:Xi[zt].trimBox,artBox:Xi[zt].artBox,userUnit:Xi[zt].userUnit,rootDictionaryObjId:_a,resourceDictionaryObjId:Va}));Aa(_a,!0),Pn("<</Type /Pages");var fi="/Kids [";for(ur=0;ur<ea;ur++)fi+=Dn[ur]+" 0 R ";Pn(fi+"]"),Pn("/Count "+ea),Pn(">>"),Pn("endobj"),zi.publish("postPutPages")},ao=function(ur){zi.publish("putFont",{font:ur,out:Pn,newObject:ga,putStream:Qo}),ur.isAlreadyPutted!==!0&&(ur.objectNumber=ga(),Pn("<<"),Pn("/Type /Font"),Pn("/BaseFont /"+U(ur.postScriptName)),Pn("/Subtype /Type1"),typeof ur.encoding=="string"&&Pn("/Encoding /"+ur.encoding),Pn("/FirstChar 32"),Pn("/LastChar 255"),Pn(">>"),Pn("endobj"))},xo=function(){for(var ur in En)En.hasOwnProperty(ur)&&(Qr===!1||Qr===!0&&gn.hasOwnProperty(ur))&&ao(En[ur])},bo=function(ur){ur.objectNumber=ga();var Dn=[];Dn.push({key:"Type",value:"/XObject"}),Dn.push({key:"Subtype",value:"/Form"}),Dn.push({key:"BBox",value:"["+[Tn(ur.x),Tn(ur.y),Tn(ur.x+ur.width),Tn(ur.y+ur.height)].join(" ")+"]"}),Dn.push({key:"Matrix",value:"["+ur.matrix.toString()+"]"});var fi=ur.pages[1].join(`
`);Qo({data:fi,additionalKeyValues:Dn,objectId:ur.objectNumber}),Pn("endobj")},to=function(){for(var ur in Ji)Ji.hasOwnProperty(ur)&&bo(Ji[ur])},Jo=function(ur,Dn){var fi,Mt=[],ce=1/(Dn-1);for(fi=0;fi<1;fi+=ce)Mt.push(fi);if(Mt.push(1),ur[0].offset!=0){var Se={offset:0,color:ur[0].color};ur.unshift(Se)}if(ur[ur.length-1].offset!=1){var Ie={offset:1,color:ur[ur.length-1].color};ur.push(Ie)}for(var Je="",Pt=0,cr=0;cr<Mt.length;cr++){for(fi=Mt[cr];fi>ur[Pt+1].offset;)Pt++;var Zr=ur[Pt].offset,vn=(fi-Zr)/(ur[Pt+1].offset-Zr),kn=ur[Pt].color,ci=ur[Pt+1].color;Je+=Qn(Math.round((1-vn)*kn[0]+vn*ci[0]).toString(16))+Qn(Math.round((1-vn)*kn[1]+vn*ci[1]).toString(16))+Qn(Math.round((1-vn)*kn[2]+vn*ci[2]).toString(16))}return Je.trim()},Uo=function(ur,Dn){Dn||(Dn=21);var fi=ga(),Mt=Jo(ur.colors,Dn),ce=[];ce.push({key:"FunctionType",value:"0"}),ce.push({key:"Domain",value:"[0.0 1.0]"}),ce.push({key:"Size",value:"["+Dn+"]"}),ce.push({key:"BitsPerSample",value:"8"}),ce.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ce.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Qo({data:Mt,additionalKeyValues:ce,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:fi}),Pn("endobj"),ur.objectNumber=ga(),Pn("<< /ShadingType "+ur.type),Pn("/ColorSpace /DeviceRGB");var Se="/Coords ["+Tn(parseFloat(ur.coords[0]))+" "+Tn(parseFloat(ur.coords[1]))+" ";ur.type===2?Se+=Tn(parseFloat(ur.coords[2]))+" "+Tn(parseFloat(ur.coords[3])):Se+=Tn(parseFloat(ur.coords[2]))+" "+Tn(parseFloat(ur.coords[3]))+" "+Tn(parseFloat(ur.coords[4]))+" "+Tn(parseFloat(ur.coords[5])),Pn(Se+="]"),ur.matrix&&Pn("/Matrix ["+ur.matrix.toString()+"]"),Pn("/Function "+fi+" 0 R"),Pn("/Extend [true true]"),Pn(">>"),Pn("endobj")},wo=function(ur,Dn){var fi=Oa(),Mt=ga();Dn.push({resourcesOid:fi,objectOid:Mt}),ur.objectNumber=Mt;var ce=[];ce.push({key:"Type",value:"/Pattern"}),ce.push({key:"PatternType",value:"1"}),ce.push({key:"PaintType",value:"1"}),ce.push({key:"TilingType",value:"1"}),ce.push({key:"BBox",value:"["+ur.boundingBox.map(Tn).join(" ")+"]"}),ce.push({key:"XStep",value:Tn(ur.xStep)}),ce.push({key:"YStep",value:Tn(ur.yStep)}),ce.push({key:"Resources",value:fi+" 0 R"}),ur.matrix&&ce.push({key:"Matrix",value:"["+ur.matrix.toString()+"]"}),Qo({data:ur.stream,additionalKeyValues:ce,objectId:ur.objectNumber}),Pn("endobj")},ts=function(ur){var Dn;for(Dn in gi)gi.hasOwnProperty(Dn)&&(gi[Dn]instanceof j?Uo(gi[Dn]):gi[Dn]instanceof K&&wo(gi[Dn],ur))},Ia=function(ur){for(var Dn in ur.objectNumber=ga(),Pn("<<"),ur)switch(Dn){case"opacity":Pn("/ca "+Dt(ur[Dn]));break;case"stroke-opacity":Pn("/CA "+Dt(ur[Dn]))}Pn(">>"),Pn("endobj")},Oo=function(){var ur;for(ur in wi)wi.hasOwnProperty(ur)&&Ia(wi[ur])},Io=function(){for(var ur in Pn("/XObject <<"),Ji)Ji.hasOwnProperty(ur)&&Ji[ur].objectNumber>=0&&Pn("/"+ur+" "+Ji[ur].objectNumber+" 0 R");zi.publish("putXobjectDict"),Pn(">>")},os=function(){wa.oid=ga(),Pn("<<"),Pn("/Filter /Standard"),Pn("/V "+wa.v),Pn("/R "+wa.r),Pn("/U <"+wa.toHexString(wa.U)+">"),Pn("/O <"+wa.toHexString(wa.O)+">"),Pn("/P "+wa.P),Pn(">>"),Pn("endobj")},So=function(){for(var ur in Pn("/Font <<"),En)En.hasOwnProperty(ur)&&(Qr===!1||Qr===!0&&gn.hasOwnProperty(ur))&&Pn("/"+ur+" "+En[ur].objectNumber+" 0 R");Pn(">>")},rs=function(){if(Object.keys(gi).length>0){for(var ur in Pn("/Shading <<"),gi)gi.hasOwnProperty(ur)&&gi[ur]instanceof j&&gi[ur].objectNumber>=0&&Pn("/"+ur+" "+gi[ur].objectNumber+" 0 R");zi.publish("putShadingPatternDict"),Pn(">>")}},Ho=function(ur){if(Object.keys(gi).length>0){for(var Dn in Pn("/Pattern <<"),gi)gi.hasOwnProperty(Dn)&&gi[Dn]instanceof yr.TilingPattern&&gi[Dn].objectNumber>=0&&gi[Dn].objectNumber<ur&&Pn("/"+Dn+" "+gi[Dn].objectNumber+" 0 R");zi.publish("putTilingPatternDict"),Pn(">>")}},_o=function(){if(Object.keys(wi).length>0){var ur;for(ur in Pn("/ExtGState <<"),wi)wi.hasOwnProperty(ur)&&wi[ur].objectNumber>=0&&Pn("/"+ur+" "+wi[ur].objectNumber+" 0 R");zi.publish("putGStateDict"),Pn(">>")}},uo=function(ur){Aa(ur.resourcesOid,!0),Pn("<<"),Pn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),So(),rs(),Ho(ur.objectOid),_o(),Io(),Pn(">>"),Pn("endobj")},Ha=function(){var ur=[];xo(),Oo(),to(),ts(ur),zi.publish("putResources"),ur.forEach(uo),uo({resourcesOid:Va,objectOid:Number.MAX_SAFE_INTEGER}),zi.publish("postPutResources")},vt=function(){zi.publish("putAdditionalObjects");for(var ur=0;ur<Ri.length;ur++){var Dn=Ri[ur];Aa(Dn.objId,!0),Pn(Dn.content),Pn("endobj")}zi.publish("postPutAdditionalObjects")},_r=function(ur){ei[ur.fontName]=ei[ur.fontName]||{},ei[ur.fontName][ur.fontStyle]=ur.id},rn=function(ur,Dn,fi,Mt,ce){var Se={id:"F"+(Object.keys(En).length+1).toString(10),postScriptName:ur,fontName:Dn,fontStyle:fi,encoding:Mt,isStandardFont:ce||!1,metadata:{}};return zi.publish("addFont",{font:Se,instance:this}),En[Se.id]=Se,_r(Se),Se.id},Jr=function(ur){for(var Dn=0,fi=ta.length;Dn<fi;Dn++){var Mt=rn.call(this,ur[Dn][0],ur[Dn][1],ur[Dn][2],ta[Dn][3],!0);Qr===!1&&(gn[Mt]=!0);var ce=ur[Dn][0].split("-");_r({id:Mt,fontName:ce[0],fontStyle:ce[1]||""})}zi.publish("addFonts",{fonts:En,dictionary:ei})},Jn=function(ur){return ur.foo=function(){try{return ur.apply(this,arguments)}catch(Mt){var Dn=Mt.stack||"";~Dn.indexOf(" at ")&&(Dn=Dn.split(" at ")[1]);var fi="Error in function "+Dn.split(`
`)[0].split("<")[0]+": "+Mt.message;if(!p.console)throw new Error(fi);p.console.error(fi,Mt),p.alert&&alert(fi)}},ur.foo.bar=ur,ur.foo},fn=function(ur,Dn){var fi,Mt,ce,Se,Ie,Je,Pt,cr,Zr;if(ce=(Dn=Dn||{}).sourceEncoding||"Unicode",Ie=Dn.outputEncoding,(Dn.autoencode||Ie)&&En[Lr].metadata&&En[Lr].metadata[ce]&&En[Lr].metadata[ce].encoding&&(Se=En[Lr].metadata[ce].encoding,!Ie&&En[Lr].encoding&&(Ie=En[Lr].encoding),!Ie&&Se.codePages&&(Ie=Se.codePages[0]),typeof Ie=="string"&&(Ie=Se[Ie]),Ie)){for(Pt=!1,Je=[],fi=0,Mt=ur.length;fi<Mt;fi++)(cr=Ie[ur.charCodeAt(fi)])?Je.push(String.fromCharCode(cr)):Je.push(ur[fi]),Je[fi].charCodeAt(0)>>8&&(Pt=!0);ur=Je.join("")}for(fi=ur.length;Pt===void 0&&fi!==0;)ur.charCodeAt(fi-1)>>8&&(Pt=!0),fi--;if(!Pt)return ur;for(Je=Dn.noBOM?[]:[254,255],fi=0,Mt=ur.length;fi<Mt;fi++){if((Zr=(cr=ur.charCodeAt(fi))>>8)>>8)throw new Error("Character at position "+fi+" of string '"+ur+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Je.push(Zr),Je.push(cr-(Zr<<8))}return String.fromCharCode.apply(void 0,Je)},Yr=yr.__private__.pdfEscape=yr.pdfEscape=function(zt,ur){return fn(zt,ur).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ii=yr.__private__.beginPage=function(zt){oa[++ea]=[],Xi[ea]={objId:0,contentsObjId:0,userUnit:Number(Lt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(zt[0]),topRightY:Number(zt[1])}},ui(ea),bi(oa[jr])},on=function(ur,Dn){var fi,Mt,ce;switch(je=Dn||je,typeof ur=="string"&&(fi=xn(ur.toLowerCase()),Array.isArray(fi)&&(Mt=fi[0],ce=fi[1])),Array.isArray(ur)&&(Mt=ur[0]*Dr,ce=ur[1]*Dr),isNaN(Mt)&&(Mt=it[0],ce=it[1]),(Mt>14400||ce>14400)&&(d.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Mt=Math.min(14400,Mt),ce=Math.min(14400,ce)),it=[Mt,ce],je.substr(0,1)){case"l":ce>Mt&&(it=[ce,Mt]);break;case"p":Mt>ce&&(it=[ce,Mt])}ii(it),ss(Ao),Pn(hs),ds!==0&&Pn(ds+" J"),ks!==0&&Pn(ks+" j"),zi.publish("addPage",{pageNumber:ea})},zn=function(ur){ur>0&&ur<=ea&&(oa.splice(ur,1),Xi.splice(ur,1),ea--,jr>ea&&(jr=ea),this.setPage(jr))},ui=function(ur){ur>0&&ur<=ea&&(jr=ur)},di=yr.__private__.getNumberOfPages=yr.getNumberOfPages=function(){return oa.length-1},li=function(ur,Dn,fi){var Mt,ce=void 0;return fi=fi||{},ur=ur!==void 0?ur:En[Lr].fontName,Dn=Dn!==void 0?Dn:En[Lr].fontStyle,Mt=ur.toLowerCase(),ei[Mt]!==void 0&&ei[Mt][Dn]!==void 0?ce=ei[Mt][Dn]:ei[ur]!==void 0&&ei[ur][Dn]!==void 0?ce=ei[ur][Dn]:fi.disableWarning===!1&&d.warn("Unable to look up font label for font '"+ur+"', '"+Dn+"'. Refer to getFontList() for available fonts."),ce||fi.noFallback||(ce=ei.times[Dn])==null&&(ce=ei.times.normal),ce},Ti=yr.__private__.putInfo=function(){var zt=ga(),ur=function(Mt){return Mt};for(var Dn in qr!==null&&(ur=wa.encryptor(zt,0)),Pn("<<"),Pn("/Producer ("+Yr(ur("jsPDF "+z.version))+")"),Nt)Nt.hasOwnProperty(Dn)&&Nt[Dn]&&Pn("/"+Dn.substr(0,1).toUpperCase()+Dn.substr(1)+" ("+Yr(ur(Nt[Dn]))+")");Pn("/CreationDate ("+Yr(ur(hr))+")"),Pn(">>"),Pn("endobj")},vi=yr.__private__.putCatalog=function(zt){var ur=(zt=zt||{}).rootDictionaryObjId||_a;switch(ga(),Pn("<<"),Pn("/Type /Catalog"),Pn("/Pages "+ur+" 0 R"),Nr||(Nr="fullwidth"),Nr){case"fullwidth":Pn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Pn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Pn("/OpenAction [3 0 R /Fit]");break;case"original":Pn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Dn=""+Nr;Dn.substr(Dn.length-1)==="%"&&(Nr=parseInt(Nr)/100),typeof Nr=="number"&&Pn("/OpenAction [3 0 R /XYZ null null "+Dt(Nr)+"]")}switch(Xr||(Xr="continuous"),Xr){case"continuous":Pn("/PageLayout /OneColumn");break;case"single":Pn("/PageLayout /SinglePage");break;case"two":case"twoleft":Pn("/PageLayout /TwoColumnLeft");break;case"tworight":Pn("/PageLayout /TwoColumnRight")}gr&&Pn("/PageMode /"+gr),zi.publish("putCatalog"),Pn(">>"),Pn("endobj")},yi=yr.__private__.putTrailer=function(){Pn("trailer"),Pn("<<"),Pn("/Size "+(qn+1)),Pn("/Root "+qn+" 0 R"),Pn("/Info "+(qn-1)+" 0 R"),qr!==null&&Pn("/Encrypt "+wa.oid+" 0 R"),Pn("/ID [ <"+br+"> <"+br+"> ]"),Pn(">>")},Ni=yr.__private__.putHeader=function(){Pn("%PDF-"+Vn),Pn("%\xBA\xDF\xAC\xE0")},ia=yr.__private__.putXRef=function(){var zt="0000000000";Pn("xref"),Pn("0 "+(qn+1)),Pn("0000000000 65535 f ");for(var ur=1;ur<=qn;ur++)typeof si[ur]=="function"?Pn((zt+si[ur]()).slice(-10)+" 00000 n "):si[ur]!==void 0?Pn((zt+si[ur]).slice(-10)+" 00000 n "):Pn("0000000000 00000 n ")},Ki=yr.__private__.buildDocument=function(){ba(),bi(Ci),zi.publish("buildDocument"),Ni(),Co(),vt(),Ha(),qr!==null&&os(),Ti(),vi();var zt=ki;return ia(),yi(),Pn("startxref"),Pn(""+zt),Pn("%%EOF"),bi(oa[jr]),Ci.join(`
`)},fa=yr.__private__.getBlob=function(zt){return new Blob([ha(zt)],{type:"application/pdf"})},Ya=yr.output=yr.__private__.output=Jn(function(zt,ur){switch(typeof(ur=ur||{})=="string"?ur={filename:ur}:ur.filename=ur.filename||"generated.pdf",zt){case void 0:return Ki();case"save":yr.save(ur.filename);break;case"arraybuffer":return ha(Ki());case"blob":return fa(Ki());case"bloburi":case"bloburl":if(p.URL!==void 0&&typeof p.URL.createObjectURL=="function")return p.URL&&p.URL.createObjectURL(fa(Ki()))||void 0;d.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Dn="",fi=Ki();try{Dn=o(fi)}catch(kn){Dn=o(unescape(encodeURIComponent(fi)))}return"data:application/pdf;filename="+ur.filename+";base64,"+Dn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(p)==="[object Window]"){var Mt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ce=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';ur.pdfObjectUrl&&(Mt=ur.pdfObjectUrl,ce="");var Se='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Mt+'"'+ce+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(ur)+");</script></body></html>",Ie=p.open();return Ie!==null&&Ie.document.write(Se),Ie}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(p)==="[object Window]"){var Je='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(ur.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+ur.filename+'" width="500px" height="400px" /></body></html>',Pt=p.open();if(Pt!==null){Pt.document.write(Je);var cr=this;Pt.document.documentElement.querySelector("#pdfViewer").onload=function(){Pt.document.title=ur.filename,Pt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(cr.output("bloburl"))}}return Pt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(p)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Zr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",ur)+'"></iframe></body></html>',vn=p.open();if(vn!==null&&(vn.document.write(Zr),vn.document.title=ur.filename),vn||typeof safari=="undefined")return vn;break;case"datauri":case"dataurl":return p.document.location.href=this.output("datauristring",ur);default:return null}}),Sa=function(ur){return Array.isArray(Hi)===!0&&Hi.indexOf(ur)>-1};switch(Xe){case"pt":Dr=1;break;case"mm":Dr=72/25.4;break;case"cm":Dr=72/2.54;break;case"in":Dr=72;break;case"px":Dr=Sa("px_scaling")==1?.75:96/72;break;case"pc":case"em":Dr=12;break;case"ex":Dr=6;break;default:if(typeof Xe!="number")throw new Error("Invalid unit: "+Xe);Dr=Xe}var wa=null;hi(),Fr();var Da=function(ur){return qr!==null?wa.encryptor(ur,0):function(Dn){return Dn}},ja=yr.__private__.getPageInfo=yr.getPageInfo=function(zt){if(isNaN(zt)||zt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Xi[zt].objId,pageNumber:zt,pageContext:Xi[zt]}},ko=yr.__private__.getPageInfoByObjId=function(zt){if(isNaN(zt)||zt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var ur in Xi)if(Xi[ur].objId===zt)break;return ja(ur)},ro=yr.__private__.getCurrentPageInfo=yr.getCurrentPageInfo=function(){return{objId:Xi[jr].objId,pageNumber:jr,pageContext:Xi[jr]}};yr.addPage=function(){return on.apply(this,arguments),this},yr.setPage=function(){return ui.apply(this,arguments),bi.call(this,oa[jr]),this},yr.insertPage=function(zt){return this.addPage(),this.movePage(jr,zt),this},yr.movePage=function(zt,ur){var Dn,fi;if(zt>ur){Dn=oa[zt],fi=Xi[zt];for(var Mt=zt;Mt>ur;Mt--)oa[Mt]=oa[Mt-1],Xi[Mt]=Xi[Mt-1];oa[ur]=Dn,Xi[ur]=fi,this.setPage(ur)}else if(zt<ur){Dn=oa[zt],fi=Xi[zt];for(var ce=zt;ce<ur;ce++)oa[ce]=oa[ce+1],Xi[ce]=Xi[ce+1];oa[ur]=Dn,Xi[ur]=fi,this.setPage(ur)}return this},yr.deletePage=function(){return zn.apply(this,arguments),this},yr.__private__.text=yr.text=function(zt,ur,Dn,fi,Mt){var ce,Se,Ie,Je,Pt,cr,Zr,vn,kn,ci=(fi=fi||{}).scope||this;if(typeof zt=="number"&&typeof ur=="number"&&(typeof Dn=="string"||Array.isArray(Dn))){var Si=Dn;Dn=ur,ur=zt,zt=Si}if(arguments[3]instanceof na==!1?(Ie=arguments[4],Je=arguments[5],S()(Zr=arguments[3])==="object"&&Zr!==null||(typeof Ie=="string"&&(Je=Ie,Ie=null),typeof Zr=="string"&&(Je=Zr,Zr=null),typeof Zr=="number"&&(Ie=Zr,Zr=null),fi={flags:Zr,angle:Ie,align:Je})):(Yn("The transform parameter of text() with a Matrix value"),kn=Mt),isNaN(ur)||isNaN(Dn)||zt==null)throw new Error("Invalid arguments passed to jsPDF.text");if(zt.length===0)return ci;var Ai="",Qi=!1,sa=typeof fi.lineHeightFactor=="number"?fi.lineHeightFactor:co,Ua=ci.internal.scaleFactor;function no(ol){return ol=ol.split(" ").join(Array(fi.TabLen||9).join(" ")),Yr(ol,Zr)}function Wo(ol){for(var Ys,sl=ol.concat(),nl=[],Sl=sl.length;Sl--;)typeof(Ys=sl.shift())=="string"?nl.push(Ys):Array.isArray(ol)&&(Ys.length===1||Ys[1]===void 0&&Ys[2]===void 0)?nl.push(Ys[0]):nl.push([Ys[0],Ys[1],Ys[2]]);return nl}function Zo(ol,Ys){var sl;if(typeof ol=="string")sl=Ys(ol)[0];else if(Array.isArray(ol)){for(var nl,Sl,Ml=ol.concat(),Wl=[],au=Ml.length;au--;)typeof(nl=Ml.shift())=="string"?Wl.push(Ys(nl)[0]):Array.isArray(nl)&&typeof nl[0]=="string"&&(Sl=Ys(nl[0],nl[1],nl[2]),Wl.push([Sl[0],Sl[1],Sl[2]]));sl=Wl}return sl}var Bo=!1,Es=!0;if(typeof zt=="string")Bo=!0;else if(Array.isArray(zt)){var As=zt.concat();Se=[];for(var $o,Do=As.length;Do--;)(typeof($o=As.shift())!="string"||Array.isArray($o)&&typeof $o[0]!="string")&&(Es=!1);Bo=Es}if(Bo===!1)throw new Error('Type of text must be string or Array. "'+zt+'" is not recognized.');typeof zt=="string"&&(zt=zt.match(/[\r?\n]/)?zt.split(/\r\n|\r|\n/g):[zt]);var vo=ra/ci.internal.scaleFactor,Ms=vo*(sa-1);switch(fi.baseline){case"bottom":Dn-=Ms;break;case"top":Dn+=vo-Ms;break;case"hanging":Dn+=vo-2*Ms;break;case"middle":Dn+=vo/2-Ms}if((cr=fi.maxWidth||0)>0&&(typeof zt=="string"?zt=ci.splitTextToSize(zt,cr):Object.prototype.toString.call(zt)==="[object Array]"&&(zt=zt.reduce(function(ol,Ys){return ol.concat(ci.splitTextToSize(Ys,cr))},[]))),ce={text:zt,x:ur,y:Dn,options:fi,mutex:{pdfEscape:Yr,activeFontKey:Lr,fonts:En,activeFontSize:ra}},zi.publish("preProcessText",ce),zt=ce.text,Ie=(fi=ce.options).angle,kn instanceof na==!1&&Ie&&typeof Ie=="number"){Ie*=Math.PI/180,fi.rotationDirection===0&&(Ie=-Ie),ti===tn.ADVANCED&&(Ie=-Ie);var rl=Math.cos(Ie),gs=Math.sin(Ie);kn=new na(rl,gs,-gs,rl,0,0)}else Ie&&Ie instanceof na&&(kn=Ie);ti!==tn.ADVANCED||kn||(kn=La),(Pt=fi.charSpace||el)!==void 0&&(Ai+=Tn(Wt(Pt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(vn=fi.horizontalScale)!==void 0&&(Ai+=Tn(100*vn)+` Tz
`),fi.lang;var Ra=-1,dl=fi.renderingMode!==void 0?fi.renderingMode:fi.stroke,fl=ci.internal.getCurrentPageInfo().pageContext;switch(dl){case 0:case!1:case"fill":Ra=0;break;case 1:case!0:case"stroke":Ra=1;break;case 2:case"fillThenStroke":Ra=2;break;case 3:case"invisible":Ra=3;break;case 4:case"fillAndAddForClipping":Ra=4;break;case 5:case"strokeAndAddPathForClipping":Ra=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ra=6;break;case 7:case"addToPathForClipping":Ra=7}var Us=fl.usedRenderingMode!==void 0?fl.usedRenderingMode:-1;Ra!==-1?Ai+=Ra+` Tr
`:Us!==-1&&(Ai+=`0 Tr
`),Ra!==-1&&(fl.usedRenderingMode=Ra),Je=fi.align||"left";var Os,Xs=ra*sa,Ql=ci.internal.pageSize.getWidth(),Ul=En[Lr];Pt=fi.charSpace||el,cr=fi.maxWidth||0,Zr=Object.assign({autoencode:!0,noBOM:!0},fi.flags);var wl=[];if(Object.prototype.toString.call(zt)==="[object Array]"){var Cs;Se=Wo(zt),Je!=="left"&&(Os=Se.map(function(ol){return ci.getStringUnitWidth(ol,{font:Ul,charSpace:Pt,fontSize:ra,doKerning:!1})*ra/Ua}));var Ws,Cl=0;if(Je==="right"){ur-=Os[0],zt=[],Do=Se.length;for(var pl=0;pl<Do;pl++)pl===0?(Ws=Eo(ur),Cs=zo(Dn)):(Ws=Wt(Cl-Os[pl]),Cs=-Xs),zt.push([Se[pl],Ws,Cs]),Cl=Os[pl]}else if(Je==="center"){ur-=Os[0]/2,zt=[],Do=Se.length;for(var jo=0;jo<Do;jo++)jo===0?(Ws=Eo(ur),Cs=zo(Dn)):(Ws=Wt((Cl-Os[jo])/2),Cs=-Xs),zt.push([Se[jo],Ws,Cs]),Cl=Os[jo]}else if(Je==="left"){zt=[],Do=Se.length;for(var yo=0;yo<Do;yo++)zt.push(Se[yo])}else{if(Je!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');zt=[],Do=Se.length,cr=cr!==0?cr:Ql;for(var qo=0;qo<Do;qo++)Cs=qo===0?zo(Dn):-Xs,Ws=qo===0?Eo(ur):0,qo<Do-1?wl.push(Tn(Wt((cr-Os[qo])/(Se[qo].split(" ").length-1)))):wl.push(0),zt.push([Se[qo],Ws,Cs])}}var ps=typeof fi.R2L=="boolean"?fi.R2L:On;ps===!0&&(zt=Zo(zt,function(ol,Ys,sl){return[ol.split("").reverse().join(""),Ys,sl]})),ce={text:zt,x:ur,y:Dn,options:fi,mutex:{pdfEscape:Yr,activeFontKey:Lr,fonts:En,activeFontSize:ra}},zi.publish("postProcessText",ce),zt=ce.text,Qi=ce.mutex.isHex||!1;var Is=En[Lr].encoding;Is!=="WinAnsiEncoding"&&Is!=="StandardEncoding"||(zt=Zo(zt,function(ol,Ys,sl){return[no(ol),Ys,sl]})),Se=Wo(zt),zt=[];for(var es,Ls,Ps,ml=0,Rl=1,_l=Array.isArray(Se[0])?Rl:ml,Bl="",jl=function(Ys,sl,nl){var Sl="";return nl instanceof na?(nl=typeof fi.angle=="number"?Pa(nl,new na(1,0,0,1,Ys,sl)):Pa(new na(1,0,0,1,Ys,sl),nl),ti===tn.ADVANCED&&(nl=Pa(new na(1,0,0,-1,0,0),nl)),Sl=nl.join(" ")+` Tm
`):Sl=Tn(Ys)+" "+Tn(sl)+` Td
`,Sl},kl=0;kl<Se.length;kl++){switch(Bl="",_l){case Rl:Ps=(Qi?"<":"(")+Se[kl][0]+(Qi?">":")"),es=parseFloat(Se[kl][1]),Ls=parseFloat(Se[kl][2]);break;case ml:Ps=(Qi?"<":"(")+Se[kl]+(Qi?">":")"),es=Eo(ur),Ls=zo(Dn)}wl!==void 0&&wl[kl]!==void 0&&(Bl=wl[kl]+` Tw
`),kl===0?zt.push(Bl+jl(es,Ls,kn)+Ps):_l===ml?zt.push(Bl+Ps):_l===Rl&&zt.push(Bl+jl(es,Ls,kn)+Ps)}zt=_l===ml?zt.join(` Tj
T* `):zt.join(` Tj
`),zt+=` Tj
`;var Xl=`BT
/`;return Xl+=Lr+" "+ra+` Tf
`,Xl+=Tn(ra*sa)+` TL
`,Xl+=Ns+`
`,Xl+=Ai,Xl+=zt,Pn(Xl+="ET"),gn[Lr]=!0,ci};var pa=yr.__private__.clip=yr.clip=function(zt){return Pn(zt==="evenodd"?"W*":"W"),this};yr.clipEvenOdd=function(){return pa("evenodd")},yr.__private__.discardPath=yr.discardPath=function(){return Pn("n"),this};var Ea=yr.__private__.isValidStyle=function(zt){var ur=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(zt)!==-1&&(ur=!0),ur};yr.__private__.setDefaultPathOperation=yr.setDefaultPathOperation=function(zt){return Ea(zt)&&(mr=zt),this};var Fa=yr.__private__.getStyle=yr.getStyle=function(zt){var ur=mr;switch(zt){case"D":case"S":ur="S";break;case"F":ur="f";break;case"FD":case"DF":ur="B";break;case"f":case"f*":case"B":case"B*":ur=zt}return ur},Ka=yr.close=function(){return Pn("h"),this};yr.stroke=function(){return Pn("S"),this},yr.fill=function(zt){return lo("f",zt),this},yr.fillEvenOdd=function(zt){return lo("f*",zt),this},yr.fillStroke=function(zt){return lo("B",zt),this},yr.fillStrokeEvenOdd=function(zt){return lo("B*",zt),this};var lo=function(ur,Dn){S()(Dn)==="object"?Lo(Dn,ur):Pn(ur)},so=function(ur){ur===null||ti===tn.ADVANCED&&ur===void 0||(ur=Fa(ur),Pn(ur))};function To(zt,ur,Dn,fi,Mt){var ce=new K(ur||this.boundingBox,Dn||this.xStep,fi||this.yStep,this.gState,Mt||this.matrix);ce.stream=this.stream;var Se=zt+"$$"+this.cloneIndex+++"$$";return va(Se,ce),ce}var Lo=function(ur,Dn){var fi=Fi[ur.key],Mt=gi[fi];if(Mt instanceof j)Pn("q"),Pn(is(Dn)),Mt.gState&&yr.setGState(Mt.gState),Pn(ur.matrix.toString()+" cm"),Pn("/"+fi+" sh"),Pn("Q");else if(Mt instanceof K){var ce=new na(1,0,0,-1,0,Ds());ur.matrix&&(ce=ce.multiply(ur.matrix||La),fi=To.call(Mt,ur.key,ur.boundingBox,ur.xStep,ur.yStep,ce).id),Pn("q"),Pn("/Pattern cs"),Pn("/"+fi+" scn"),Mt.gState&&yr.setGState(Mt.gState),Pn(Dn),Pn("Q")}},is=function(ur){switch(ur){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},cs=yr.moveTo=function(zt,ur){return Pn(Tn(Wt(zt))+" "+Tn(kt(ur))+" m"),this},Rs=yr.lineTo=function(zt,ur){return Pn(Tn(Wt(zt))+" "+Tn(kt(ur))+" l"),this},Ko=yr.curveTo=function(zt,ur,Dn,fi,Mt,ce){return Pn([Tn(Wt(zt)),Tn(kt(ur)),Tn(Wt(Dn)),Tn(kt(fi)),Tn(Wt(Mt)),Tn(kt(ce)),"c"].join(" ")),this};yr.__private__.line=yr.line=function(zt,ur,Dn,fi,Mt){if(isNaN(zt)||isNaN(ur)||isNaN(Dn)||isNaN(fi)||!Ea(Mt))throw new Error("Invalid arguments passed to jsPDF.line");return ti===tn.COMPAT?this.lines([[Dn-zt,fi-ur]],zt,ur,[1,1],Mt||"S"):this.lines([[Dn-zt,fi-ur]],zt,ur,[1,1]).stroke()},yr.__private__.lines=yr.lines=function(zt,ur,Dn,fi,Mt,ce){var Se,Ie,Je,Pt,cr,Zr,vn,kn,ci,Si,Ai,Qi;if(typeof zt=="number"&&(Qi=Dn,Dn=ur,ur=zt,zt=Qi),fi=fi||[1,1],ce=ce||!1,isNaN(ur)||isNaN(Dn)||!Array.isArray(zt)||!Array.isArray(fi)||!Ea(Mt)||typeof ce!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(cs(ur,Dn),Se=fi[0],Ie=fi[1],Pt=zt.length,Si=ur,Ai=Dn,Je=0;Je<Pt;Je++)(cr=zt[Je]).length===2?(Si=cr[0]*Se+Si,Ai=cr[1]*Ie+Ai,Rs(Si,Ai)):(Zr=cr[0]*Se+Si,vn=cr[1]*Ie+Ai,kn=cr[2]*Se+Si,ci=cr[3]*Ie+Ai,Si=cr[4]*Se+Si,Ai=cr[5]*Ie+Ai,Ko(Zr,vn,kn,ci,Si,Ai));return ce&&Ka(),so(Mt),this},yr.path=function(zt){for(var ur=0;ur<zt.length;ur++){var Dn=zt[ur],fi=Dn.c;switch(Dn.op){case"m":cs(fi[0],fi[1]);break;case"l":Rs(fi[0],fi[1]);break;case"c":Ko.apply(this,fi);break;case"h":Ka()}}return this},yr.__private__.rect=yr.rect=function(zt,ur,Dn,fi,Mt){if(isNaN(zt)||isNaN(ur)||isNaN(Dn)||isNaN(fi)||!Ea(Mt))throw new Error("Invalid arguments passed to jsPDF.rect");return ti===tn.COMPAT&&(fi=-fi),Pn([Tn(Wt(zt)),Tn(kt(ur)),Tn(Wt(Dn)),Tn(Wt(fi)),"re"].join(" ")),so(Mt),this},yr.__private__.triangle=yr.triangle=function(zt,ur,Dn,fi,Mt,ce,Se){if(isNaN(zt)||isNaN(ur)||isNaN(Dn)||isNaN(fi)||isNaN(Mt)||isNaN(ce)||!Ea(Se))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Dn-zt,fi-ur],[Mt-Dn,ce-fi],[zt-Mt,ur-ce]],zt,ur,[1,1],Se,!0),this},yr.__private__.roundedRect=yr.roundedRect=function(zt,ur,Dn,fi,Mt,ce,Se){if(isNaN(zt)||isNaN(ur)||isNaN(Dn)||isNaN(fi)||isNaN(Mt)||isNaN(ce)||!Ea(Se))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ie=4/3*(Math.SQRT2-1);return Mt=Math.min(Mt,.5*Dn),ce=Math.min(ce,.5*fi),this.lines([[Dn-2*Mt,0],[Mt*Ie,0,Mt,ce-ce*Ie,Mt,ce],[0,fi-2*ce],[0,ce*Ie,-Mt*Ie,ce,-Mt,ce],[2*Mt-Dn,0],[-Mt*Ie,0,-Mt,-ce*Ie,-Mt,-ce],[0,2*ce-fi],[0,-ce*Ie,Mt*Ie,-ce,Mt,-ce]],zt+Mt,ur,[1,1],Se,!0),this},yr.__private__.ellipse=yr.ellipse=function(zt,ur,Dn,fi,Mt){if(isNaN(zt)||isNaN(ur)||isNaN(Dn)||isNaN(fi)||!Ea(Mt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ce=4/3*(Math.SQRT2-1)*Dn,Se=4/3*(Math.SQRT2-1)*fi;return cs(zt+Dn,ur),Ko(zt+Dn,ur-Se,zt+ce,ur-fi,zt,ur-fi),Ko(zt-ce,ur-fi,zt-Dn,ur-Se,zt-Dn,ur),Ko(zt-Dn,ur+Se,zt-ce,ur+fi,zt,ur+fi),Ko(zt+ce,ur+fi,zt+Dn,ur+Se,zt+Dn,ur),so(Mt),this},yr.__private__.circle=yr.circle=function(zt,ur,Dn,fi){if(isNaN(zt)||isNaN(ur)||isNaN(Dn)||!Ea(fi))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(zt,ur,Dn,Dn,fi)},yr.setFont=function(zt,ur,Dn){return Dn&&(ur=en(ur,Dn)),Lr=li(zt,ur,{disableWarning:!1}),this};var as=yr.__private__.getFont=yr.getFont=function(){return En[li.apply(yr,arguments)]};yr.__private__.getFontList=yr.getFontList=function(){var zt,ur,Dn={};for(zt in ei)if(ei.hasOwnProperty(zt))for(ur in Dn[zt]=[],ei[zt])ei[zt].hasOwnProperty(ur)&&Dn[zt].push(ur);return Dn},yr.addFont=function(zt,ur,Dn,fi,Mt){var ce=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ce.indexOf(arguments[3])!==-1?Mt=arguments[3]:arguments[3]&&ce.indexOf(arguments[3])==-1&&(Dn=en(Dn,fi)),Mt=Mt||"Identity-H",rn.call(this,zt,ur,Dn,Mt)};var co,Ao=at.lineWidth||.200025,$a=yr.__private__.getLineWidth=yr.getLineWidth=function(){return Ao},ss=yr.__private__.setLineWidth=yr.setLineWidth=function(zt){return Ao=zt,Pn(Tn(Wt(zt))+" w"),this};yr.__private__.setLineDash=z.API.setLineDash=z.API.setLineDashPattern=function(zt,ur){if(zt=zt||[],ur=ur||0,isNaN(ur)||!Array.isArray(zt))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return zt=zt.map(function(Dn){return Tn(Wt(Dn))}).join(" "),ur=Tn(Wt(ur)),Pn("["+zt+"] "+ur+" d"),this};var _s=yr.__private__.getLineHeight=yr.getLineHeight=function(){return ra*co};yr.__private__.getLineHeight=yr.getLineHeight=function(){return ra*co};var Fo=yr.__private__.setLineHeightFactor=yr.setLineHeightFactor=function(zt){return typeof(zt=zt||1.15)=="number"&&(co=zt),this},il=yr.__private__.getLineHeightFactor=yr.getLineHeightFactor=function(){return co};Fo(at.lineHeight);var Eo=yr.__private__.getHorizontalCoordinate=function(zt){return Wt(zt)},zo=yr.__private__.getVerticalCoordinate=function(zt){return ti===tn.ADVANCED?zt:Xi[jr].mediaBox.topRightY-Xi[jr].mediaBox.bottomLeftY-Wt(zt)},Fs=yr.__private__.getHorizontalCoordinateString=yr.getHorizontalCoordinateString=function(zt){return Tn(Eo(zt))},ms=yr.__private__.getVerticalCoordinateString=yr.getVerticalCoordinateString=function(zt){return Tn(zo(zt))},hs=at.strokeColor||"0 G";yr.__private__.getStrokeColor=yr.getDrawColor=function(){return Bi(hs)},yr.__private__.setStrokeColor=yr.setDrawColor=function(zt,ur,Dn,fi){return hs=io({ch1:zt,ch2:ur,ch3:Dn,ch4:fi,pdfColorType:"draw",precision:2}),Pn(hs),this};var Sn=at.fillColor||"0 g";yr.__private__.getFillColor=yr.getFillColor=function(){return Bi(Sn)},yr.__private__.setFillColor=yr.setFillColor=function(zt,ur,Dn,fi){return Sn=io({ch1:zt,ch2:ur,ch3:Dn,ch4:fi,pdfColorType:"fill",precision:2}),Pn(Sn),this};var Ns=at.textColor||"0 g",Ll=yr.__private__.getTextColor=yr.getTextColor=function(){return Bi(Ns)};yr.__private__.setTextColor=yr.setTextColor=function(zt,ur,Dn,fi){return Ns=io({ch1:zt,ch2:ur,ch3:Dn,ch4:fi,pdfColorType:"text",precision:3}),this};var el=at.charSpace,Gs=yr.__private__.getCharSpace=yr.getCharSpace=function(){return parseFloat(el||0)};yr.__private__.setCharSpace=yr.setCharSpace=function(zt){if(isNaN(zt))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return el=zt,this};var ds=0;yr.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},yr.__private__.setLineCap=yr.setLineCap=function(zt){var ur=yr.CapJoinStyles[zt];if(ur===void 0)throw new Error("Line cap style of '"+zt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ds=ur,Pn(ur+" J"),this};var ks=0;yr.__private__.setLineJoin=yr.setLineJoin=function(zt){var ur=yr.CapJoinStyles[zt];if(ur===void 0)throw new Error("Line join style of '"+zt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ks=ur,Pn(ur+" j"),this},yr.__private__.setLineMiterLimit=yr.__private__.setMiterLimit=yr.setLineMiterLimit=yr.setMiterLimit=function(zt){if(zt=zt||0,isNaN(zt))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Pn(Tn(Wt(zt))+" M"),this},yr.GState=X,yr.setGState=function(zt){(zt=typeof zt=="string"?wi[Ii[zt]]:Qs(null,zt)).equals(Vi)||(Pn("/"+zt.id+" gs"),Vi=zt)};var Qs=function(ur,Dn){if(!ur||!Ii[ur]){var fi=!1;for(var Mt in wi)if(wi.hasOwnProperty(Mt)&&wi[Mt].equals(Dn)){fi=!0;break}if(fi)Dn=wi[Mt];else{var ce="GS"+(Object.keys(wi).length+1).toString(10);wi[ce]=Dn,Dn.id=ce}return ur&&(Ii[ur]=Dn.id),zi.publish("addGState",Dn),Dn}};yr.addGState=function(zt,ur){return Qs(zt,ur),this},yr.saveGraphicsState=function(){return Pn("q"),Wn.push({key:Lr,size:ra,color:Ns}),this},yr.restoreGraphicsState=function(){Pn("Q");var zt=Wn.pop();return Lr=zt.key,ra=zt.size,Ns=zt.color,Vi=null,this},yr.setCurrentTransformationMatrix=function(zt){return Pn(zt.toString()+" cm"),this},yr.comment=function(zt){return Pn("#"+zt),this};var tl=function(ur,Dn){var fi=ur||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return fi},set:function(Ie){isNaN(Ie)||(fi=parseFloat(Ie))}});var Mt=Dn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Mt},set:function(Ie){isNaN(Ie)||(Mt=parseFloat(Ie))}});var ce="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ce},set:function(Ie){ce=Ie.toString()}}),this},Ss=function(ur,Dn,fi,Mt){tl.call(this,ur,Dn),this.type="rect";var ce=fi||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ce},set:function(Je){isNaN(Je)||(ce=parseFloat(Je))}});var Se=Mt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Se},set:function(Je){isNaN(Je)||(Se=parseFloat(Je))}}),this},Bs=function(){this.page=ea,this.currentPage=jr,this.pages=oa.slice(0),this.pagesContext=Xi.slice(0),this.x=an,this.y=Cn,this.matrix=Nn,this.width=No(jr),this.height=Ds(jr),this.outputDestination=aa,this.id="",this.objectNumber=-1};Bs.prototype.restore=function(){ea=this.page,jr=this.currentPage,Xi=this.pagesContext,oa=this.pages,an=this.x,Cn=this.y,Nn=this.matrix,fs(jr,this.width),go(jr,this.height),aa=this.outputDestination};var al=function(ur,Dn,fi,Mt,ce){Ta.push(new Bs),ea=jr=0,oa=[],an=ur,Cn=Dn,Nn=ce,ii([fi,Mt])},Js=function(ur){if(ca[ur])Ta.pop().restore();else{var Dn=new Bs,fi="Xo"+(Object.keys(Ji).length+1).toString(10);Dn.id=fi,ca[ur]=fi,Ji[fi]=Dn,zi.publish("addFormObject",Dn),Ta.pop().restore()}};for(var Vo in yr.beginFormObject=function(zt,ur,Dn,fi,Mt){return al(zt,ur,Dn,fi,Mt),this},yr.endFormObject=function(zt){return Js(zt),this},yr.doFormObject=function(zt,ur){var Dn=Ji[ca[zt]];return Pn("q"),Pn(ur.toString()+" cm"),Pn("/"+Dn.id+" Do"),Pn("Q"),this},yr.getFormObject=function(zt){var ur=Ji[ca[zt]];return{x:ur.x,y:ur.y,width:ur.width,height:ur.height,matrix:ur.matrix}},yr.save=function(zt,ur){return zt=zt||"generated.pdf",(ur=ur||{}).returnPromise=ur.returnPromise||!1,ur.returnPromise===!1?(e(fa(Ki()),zt),typeof e.unload=="function"&&p.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(Dn,fi){try{var Mt=e(fa(Ki()),zt);typeof e.unload=="function"&&p.setTimeout&&setTimeout(e.unload,911),Dn(Mt)}catch(ce){fi(ce.message)}})},z.API)z.API.hasOwnProperty(Vo)&&(Vo==="events"&&z.API.events.length?function(zt,ur){var Dn,fi,Mt;for(Mt=ur.length-1;Mt!==-1;Mt--)Dn=ur[Mt][0],fi=ur[Mt][1],zt.subscribe.apply(zt,[Dn].concat(typeof fi=="function"?[fi]:fi))}(zi,z.API.events):yr[Vo]=z.API[Vo]);var No=yr.getPageWidth=function(zt){return(Xi[zt=zt||jr].mediaBox.topRightX-Xi[zt].mediaBox.bottomLeftX)/Dr},fs=yr.setPageWidth=function(zt,ur){Xi[zt].mediaBox.topRightX=ur*Dr+Xi[zt].mediaBox.bottomLeftX},Ds=yr.getPageHeight=function(zt){return(Xi[zt=zt||jr].mediaBox.topRightY-Xi[zt].mediaBox.bottomLeftY)/Dr},go=yr.setPageHeight=function(zt,ur){Xi[zt].mediaBox.topRightY=ur*Dr+Xi[zt].mediaBox.bottomLeftY};return yr.internal={pdfEscape:Yr,getStyle:Fa,getFont:as,getFontSize:Er,getCharSpace:Gs,getTextColor:Ll,getLineHeight:_s,getLineHeightFactor:il,getLineWidth:$a,write:ji,getHorizontalCoordinate:Eo,getVerticalCoordinate:zo,getCoordinateString:Fs,getVerticalCoordinateString:ms,collections:{},newObject:ga,newAdditionalObject:Xa,newObjectDeferred:Oa,newObjectDeferredBegin:Aa,getFilters:oo,putStream:Qo,events:zi,scaleFactor:Dr,pageSize:{getWidth:function(){return No(jr)},setWidth:function(ur){fs(jr,ur)},getHeight:function(){return Ds(jr)},setHeight:function(ur){go(jr,ur)}},encryptionOptions:qr,encryption:wa,getEncryptor:Da,output:Ya,getNumberOfPages:di,pages:oa,out:Pn,f2:Dt,f3:Bt,getPageInfo:ja,getPageInfoByObjId:ko,getCurrentPageInfo:ro,getPDFVersion:Br,Point:tl,Rectangle:Ss,Matrix:na,hasHotfix:Sa},Object.defineProperty(yr.internal.pageSize,"width",{get:function(){return No(jr)},set:function(ur){fs(jr,ur)},enumerable:!0,configurable:!0}),Object.defineProperty(yr.internal.pageSize,"height",{get:function(){return Ds(jr)},set:function(ur){go(jr,ur)},enumerable:!0,configurable:!0}),Jr.call(yr,ta),Lr="F1",on(it,je),zi.publish("initialized"),yr}M.prototype.lsbFirstWord=function(at){return String.fromCharCode(at>>0&255,at>>8&255,at>>16&255,at>>24&255)},M.prototype.toHexString=function(at){return at.split("").map(function(Le){return("0"+(255&Le.charCodeAt(0)).toString(16)).slice(-2)}).join("")},M.prototype.hexToBytes=function(at){for(var Le=[],je=0;je<at.length;je+=2)Le.push(String.fromCharCode(parseInt(at.substr(je,2),16)));return Le.join("")},M.prototype.processOwnerPassword=function(at,Le){return I(C(Le).substr(0,5),at)},M.prototype.encryptor=function(at,Le){var je=C(this.encryptionKey+String.fromCharCode(255&at,at>>8&255,at>>16&255,255&Le,Le>>8&255)).substr(0,10);return function(Xe){return I(je,Xe)}},X.prototype.equals=function(at){var Le,je="id,objectNumber,equals";if(!at||S()(at)!==S()(this))return!1;var Xe=0;for(Le in this)if(!(je.indexOf(Le)>=0)){if(this.hasOwnProperty(Le)&&!at.hasOwnProperty(Le))return!1;if(this[Le]!==at[Le])return!1;Xe++}for(Le in at)at.hasOwnProperty(Le)&&je.indexOf(Le)<0&&Xe--;return Xe===0},z.API={events:[]},z.version="2.5.1";var V=z.API,Q=1,G=function(Le){return Le.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},te=function(Le){return Le.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},q=function(Le){return Le.toFixed(2)},se=function(Le){return Le.toFixed(5)};V.__acroform__={};var re=function(Le,je){Le.prototype=Object.create(je.prototype),Le.prototype.constructor=Le},we=function(Le){return Le*Q},Oe=function(Le){var je=new ke,Xe=oe.internal.getHeight(Le)||0,it=oe.internal.getWidth(Le)||0;return je.BBox=[0,0,Number(q(it)),Number(q(Xe))],je},Me=V.__acroform__.setBit=function(at,Le){if(at=at||0,Le=Le||0,isNaN(at)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return at|=1<<Le},Qe=V.__acroform__.clearBit=function(at,Le){if(at=at||0,Le=Le||0,isNaN(at)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return at&=~(1<<Le)},Ve=V.__acroform__.getBit=function(at,Le){if(isNaN(at)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(at&1<<Le)==0?0:1},dt=V.__acroform__.getBitForPdf=function(at,Le){if(isNaN(at)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ve(at,Le-1)},Fe=V.__acroform__.setBitForPdf=function(at,Le){if(isNaN(at)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Me(at,Le-1)},ue=V.__acroform__.clearBitForPdf=function(at,Le){if(isNaN(at)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Qe(at,Le-1)},et=V.__acroform__.calculateCoordinates=function(at,Le){var je=Le.internal.getHorizontalCoordinate,Xe=Le.internal.getVerticalCoordinate,it=at[0],Ze=at[1],ot=at[2],Lt=at[3],At={};return At.lowerLeft_X=je(it)||0,At.lowerLeft_Y=Xe(Ze+Lt)||0,At.upperRight_X=je(it+ot)||0,At.upperRight_Y=Xe(Ze)||0,[Number(q(At.lowerLeft_X)),Number(q(At.lowerLeft_Y)),Number(q(At.upperRight_X)),Number(q(At.upperRight_Y))]},he=function(Le){if(Le.appearanceStreamContent)return Le.appearanceStreamContent;if(Le.V||Le.DV){var je=[],Xe=Le._V||Le.DV,it=J(Le,Xe),Ze=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id;je.push("/Tx BMC"),je.push("q"),je.push("BT"),je.push(Le.scope.__private__.encodeColorString(Le.color)),je.push("/"+Ze+" "+q(it.fontSize)+" Tf"),je.push("1 0 0 1 0 0 Tm"),je.push(it.text),je.push("ET"),je.push("Q"),je.push("EMC");var ot=Oe(Le);return ot.scope=Le.scope,ot.stream=je.join(`
`),ot}},J=function(Le,je){var Xe=Le.fontSize===0?Le.maxFontSize:Le.fontSize,it={text:"",fontSize:""},Ze=(je=(je=je.substr(0,1)=="("?je.substr(1):je).substr(je.length-1)==")"?je.substr(0,je.length-1):je).split(" ");Ze=Le.multiline?Ze.map(function(Wt){return Wt.split(`
`)}):Ze.map(function(Wt){return[Wt]});var ot=Xe,Lt=oe.internal.getHeight(Le)||0;Lt=Lt<0?-Lt:Lt;var At=oe.internal.getWidth(Le)||0;At=At<0?-At:At;var mr=function(Xt,kt,hr){if(Xt+1<Ze.length){var br=kt+" "+Ze[Xt+1][0];return Y(br,Le,hr).width<=At-4}return!1};ot++;e:for(;ot>0;){je="",ot--;var qr,Qr,gn=Y("3",Le,ot).height,yr=Le.multiline?Lt-ot:(Lt-gn)/2,Vn=yr+=2,Br=0,jn=0,xn=0;if(ot<=0){je=`(...) Tj
`,je+="% Width of Text: "+Y(je,Le,ot=12).width+", FieldWidth:"+At+`
`;break}for(var tn="",ti=0,mi=0;mi<Ze.length;mi++)if(Ze.hasOwnProperty(mi)){var Pi=!1;if(Ze[mi].length!==1&&xn!==Ze[mi].length-1){if((gn+2)*(ti+2)+2>Lt)continue e;tn+=Ze[mi][xn],Pi=!0,jn=mi,mi--}else{tn=(tn+=Ze[mi][xn]+" ").substr(tn.length-1)==" "?tn.substr(0,tn.length-1):tn;var en=parseInt(mi),Tn=mr(en,tn,ot),Yn=mi>=Ze.length-1;if(Tn&&!Yn){tn+=" ",xn=0;continue}if(Tn||Yn){if(Yn)jn=en;else if(Le.multiline&&(gn+2)*(ti+2)+2>Lt)continue e}else{if(!Le.multiline)continue e;if((gn+2)*(ti+2)+2>Lt)continue e;jn=en}}for(var Yt="",Dt=Br;Dt<=jn;Dt++){var Bt=Ze[Dt];if(Le.multiline){if(Dt===jn){Yt+=Bt[xn]+" ",xn=(xn+1)%Bt.length;continue}if(Dt===Br){Yt+=Bt[Bt.length-1]+" ";continue}}Yt+=Bt[0]+" "}switch(Yt=Yt.substr(Yt.length-1)==" "?Yt.substr(0,Yt.length-1):Yt,Qr=Y(Yt,Le,ot).width,Le.textAlign){case"right":qr=At-Qr-2;break;case"center":qr=(At-Qr)/2;break;case"left":default:qr=2}je+=q(qr)+" "+q(Vn)+` Td
`,je+="("+G(Yt)+`) Tj
`,je+=-q(qr)+` 0 Td
`,Vn=-(ot+2),Qr=0,Br=Pi?jn:jn+1,ti++,tn=""}break}return it.text=je,it.fontSize=ot,it},Y=function(Le,je,Xe){var it=je.scope.internal.getFont(je.fontName,je.fontStyle),Ze=je.scope.getStringUnitWidth(Le,{font:it,fontSize:parseFloat(Xe),charSpace:0})*parseFloat(Xe);return{height:je.scope.getStringUnitWidth("3",{font:it,fontSize:parseFloat(Xe),charSpace:0})*parseFloat(Xe)*1.5,width:Ze}},$={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},de=function(Le,je){var Xe={type:"reference",object:Le};je.internal.getPageInfo(Le.page).pageContext.annotations.find(function(it){return it.type===Xe.type&&it.object===Xe.object})===void 0&&je.internal.getPageInfo(Le.page).pageContext.annotations.push(Xe)},be=function(Le,je){for(var Xe in Le)if(Le.hasOwnProperty(Xe)){var it=Xe,Ze=Le[Xe];je.internal.newObjectDeferredBegin(Ze.objId,!0),S()(Ze)==="object"&&typeof Ze.putStream=="function"&&Ze.putStream(),delete Le[it]}},Te=function(Le,je){if(je.scope=Le,Le.internal!==void 0&&(Le.internal.acroformPlugin===void 0||Le.internal.acroformPlugin.isInitialized===!1)){if(Ct.FieldNum=0,Le.internal.acroformPlugin=JSON.parse(JSON.stringify($)),Le.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Q=Le.internal.scaleFactor,Le.internal.acroformPlugin.acroFormDictionaryRoot=new nt,Le.internal.acroformPlugin.acroFormDictionaryRoot.scope=Le,Le.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Le.internal.events.subscribe("postPutResources",function(){!function(Xe){Xe.internal.events.unsubscribe(Xe.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Xe.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Xe.internal.acroformPlugin.printedOut=!0}(Le)}),Le.internal.events.subscribe("buildDocument",function(){!function(Xe){Xe.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var it=Xe.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Ze in it)if(it.hasOwnProperty(Ze)){var ot=it[Ze];ot.objId=void 0,ot.hasAnnotation&&de(ot,Xe)}}(Le)}),Le.internal.events.subscribe("putCatalog",function(){!function(Xe){if(Xe.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Xe.internal.write("/AcroForm "+Xe.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Le)}),Le.internal.events.subscribe("postPutPages",function(Xe){!function(it,Ze){var ot=!it;for(var Lt in it||(Ze.internal.newObjectDeferredBegin(Ze.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Ze.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),it=it||Ze.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(it.hasOwnProperty(Lt)){var At=it[Lt],mr=[],qr=At.Rect;if(At.Rect&&(At.Rect=et(At.Rect,Ze)),Ze.internal.newObjectDeferredBegin(At.objId,!0),At.DA=oe.createDefaultAppearanceStream(At),S()(At)==="object"&&typeof At.getKeyValueListForStream=="function"&&(mr=At.getKeyValueListForStream()),At.Rect=qr,At.hasAppearanceStream&&!At.appearanceStreamContent){var Qr=he(At);mr.push({key:"AP",value:"<</N "+Qr+">>"}),Ze.internal.acroformPlugin.xForms.push(Qr)}if(At.appearanceStreamContent){var gn="";for(var yr in At.appearanceStreamContent)if(At.appearanceStreamContent.hasOwnProperty(yr)){var Vn=At.appearanceStreamContent[yr];if(gn+="/"+yr+" ",gn+="<<",Object.keys(Vn).length>=1||Array.isArray(Vn)){for(var Lt in Vn)if(Vn.hasOwnProperty(Lt)){var Br=Vn[Lt];typeof Br=="function"&&(Br=Br.call(Ze,At)),gn+="/"+Lt+" "+Br+" ",Ze.internal.acroformPlugin.xForms.indexOf(Br)>=0||Ze.internal.acroformPlugin.xForms.push(Br)}}else typeof(Br=Vn)=="function"&&(Br=Br.call(Ze,At)),gn+="/"+Lt+" "+Br,Ze.internal.acroformPlugin.xForms.indexOf(Br)>=0||Ze.internal.acroformPlugin.xForms.push(Br);gn+=">>"}mr.push({key:"AP",value:`<<
`+gn+">>"})}Ze.internal.putStream({additionalKeyValues:mr,objectId:At.objId}),Ze.internal.out("endobj")}ot&&be(Ze.internal.acroformPlugin.xForms,Ze)}(Xe,Le)}),Le.internal.acroformPlugin.isInitialized=!0}},Be=V.__acroform__.arrayToPdfArray=function(at,Le,je){var Xe=function(Lt){return Lt};if(Array.isArray(at)){for(var it="[",Ze=0;Ze<at.length;Ze++)switch(Ze!==0&&(it+=" "),S()(at[Ze])){case"boolean":case"number":case"object":it+=at[Ze].toString();break;case"string":at[Ze].substr(0,1)!=="/"?(Le!==void 0&&je&&(Xe=je.internal.getEncryptor(Le)),it+="("+G(Xe(at[Ze].toString()))+")"):it+=at[Ze].toString()}return it+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},fe=function(Le,je,Xe){var it=function(ot){return ot};return je!==void 0&&Xe&&(it=Xe.internal.getEncryptor(je)),(Le=Le||"").toString(),Le="("+G(it(Le))+")"},xe=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(je){this._objId=je}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};xe.prototype.toString=function(){return this.objId+" 0 R"},xe.prototype.putStream=function(){var at=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:at,objectId:this.objId}),this.scope.internal.out("endobj")},xe.prototype.getKeyValueListForStream=function(){var at=[],Le=Object.getOwnPropertyNames(this).filter(function(Ze){return Ze!="content"&&Ze!="appearanceStreamContent"&&Ze!="scope"&&Ze!="objId"&&Ze.substring(0,1)!="_"});for(var je in Le)if(Object.getOwnPropertyDescriptor(this,Le[je]).configurable===!1){var Xe=Le[je],it=this[Xe];it&&(Array.isArray(it)?at.push({key:Xe,value:Be(it,this.objId,this.scope)}):it instanceof xe?(it.scope=this.scope,at.push({key:Xe,value:it.objId+" 0 R"})):typeof it!="function"&&at.push({key:Xe,value:it}))}return at};var ke=function(){xe.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 Le,je=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return je},set:function(it){je=it}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(it){Le=it.trim()},get:function(){return Le||null}})};re(ke,xe);var nt=function(){xe.call(this);var Le,je=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return je.length>0?je:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return je}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Le){var it=function(ot){return ot};return this.scope&&(it=this.scope.internal.getEncryptor(this.objId)),"("+G(it(Le))+")"}},set:function(it){Le=it}})};re(nt,xe);var Ct=function at(){xe.call(this);var Le=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Le},set:function(tn){if(isNaN(tn))throw new Error('Invalid value "'+tn+'" for attribute F supplied.');Le=tn}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(Le,3))},set:function(tn){Boolean(tn)===!0?this.F=Fe(Le,3):this.F=ue(Le,3)}});var je=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return je},set:function(tn){if(isNaN(tn))throw new Error('Invalid value "'+tn+'" for attribute Ff supplied.');je=tn}});var Xe=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Xe.length!==0)return Xe},set:function(tn){Xe=tn!==void 0?tn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[0])?0:Xe[0]},set:function(tn){Xe[0]=tn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[1])?0:Xe[1]},set:function(tn){Xe[1]=tn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[2])?0:Xe[2]},set:function(tn){Xe[2]=tn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[3])?0:Xe[3]},set:function(tn){Xe[3]=tn}});var it="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return it},set:function(tn){switch(tn){case"/Btn":case"/Tx":case"/Ch":case"/Sig":it=tn;break;default:throw new Error('Invalid value "'+tn+'" 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 Ht)return;Ze="FieldObject"+at.FieldNum++}var tn=function(mi){return mi};return this.scope&&(tn=this.scope.internal.getEncryptor(this.objId)),"("+G(tn(Ze))+")"},set:function(tn){Ze=tn.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Ze},set:function(tn){Ze=tn}});var ot="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return ot},set:function(tn){ot=tn}});var Lt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Lt},set:function(tn){Lt=tn}});var At=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return At},set:function(tn){At=tn}});var mr=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return mr===void 0?50/Q:mr},set:function(tn){mr=tn}});var qr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return qr},set:function(tn){qr=tn}});var Qr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Qr||this instanceof Ht||this instanceof Ge))return fe(Qr,this.objId,this.scope)},set:function(tn){tn=tn.toString(),Qr=tn}});var gn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(gn)return this instanceof Gt==!1?fe(gn,this.objId,this.scope):gn},set:function(tn){tn=tn.toString(),gn=this instanceof Gt==!1?tn.substr(0,1)==="("?te(tn.substr(1,tn.length-2)):te(tn):tn}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Gt==!0?te(gn.substr(1,gn.length-1)):gn},set:function(tn){tn=tn.toString(),gn=this instanceof Gt==!0?"/"+tn:tn}});var yr=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(yr)return yr},set:function(tn){this.V=tn}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(yr)return this instanceof Gt==!1?fe(yr,this.objId,this.scope):yr},set:function(tn){tn=tn.toString(),yr=this instanceof Gt==!1?tn.substr(0,1)==="("?te(tn.substr(1,tn.length-2)):te(tn):tn}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Gt==!0?te(yr.substr(1,yr.length-1)):yr},set:function(tn){tn=tn.toString(),yr=this instanceof Gt==!0?"/"+tn:tn}}),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 Vn,Br=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Br},set:function(tn){tn=Boolean(tn),Br=tn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(Vn)return Vn},set:function(tn){Vn=tn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,1))},set:function(tn){Boolean(tn)===!0?this.Ff=Fe(this.Ff,1):this.Ff=ue(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,2))},set:function(tn){Boolean(tn)===!0?this.Ff=Fe(this.Ff,2):this.Ff=ue(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,3))},set:function(tn){Boolean(tn)===!0?this.Ff=Fe(this.Ff,3):this.Ff=ue(this.Ff,3)}});var jn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(jn!==null)return jn},set:function(tn){if([0,1,2].indexOf(tn)===-1)throw new Error('Invalid value "'+tn+'" for attribute Q supplied.');jn=tn}}),Object.defineProperty(this,"textAlign",{get:function(){var tn;switch(jn){case 0:default:tn="left";break;case 1:tn="center";break;case 2:tn="right"}return tn},configurable:!0,enumerable:!0,set:function(tn){switch(tn){case"right":case 2:jn=2;break;case"center":case 1:jn=1;break;case"left":case 0:default:jn=0}}})};re(Ct,xe);var pt=function(){Ct.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Le=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Le},set:function(it){Le=it}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Le},set:function(it){Le=it}});var je=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Be(je,this.objId,this.scope)},set:function(it){var Ze,ot;ot=[],typeof(Ze=it)=="string"&&(ot=function(Lt,At,mr){mr||(mr=1);for(var qr,Qr=[];qr=At.exec(Lt);)Qr.push(qr[mr]);return Qr}(Ze,/\((.*?)\)/g)),je=ot}}),this.getOptions=function(){return je},this.setOptions=function(Xe){je=Xe,this.sort&&je.sort()},this.addOption=function(Xe){Xe=(Xe=Xe||"").toString(),je.push(Xe),this.sort&&je.sort()},this.removeOption=function(Xe,it){for(it=it||!1,Xe=(Xe=Xe||"").toString();je.indexOf(Xe)!==-1&&(je.splice(je.indexOf(Xe),1),it!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,18))},set:function(it){Boolean(it)===!0?this.Ff=Fe(this.Ff,18):this.Ff=ue(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,19))},set:function(it){this.combo===!0&&(Boolean(it)===!0?this.Ff=Fe(this.Ff,19):this.Ff=ue(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,20))},set:function(it){Boolean(it)===!0?(this.Ff=Fe(this.Ff,20),je.sort()):this.Ff=ue(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,22))},set:function(it){Boolean(it)===!0?this.Ff=Fe(this.Ff,22):this.Ff=ue(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,23))},set:function(it){Boolean(it)===!0?this.Ff=Fe(this.Ff,23):this.Ff=ue(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,27))},set:function(it){Boolean(it)===!0?this.Ff=Fe(this.Ff,27):this.Ff=ue(this.Ff,27)}}),this.hasAppearanceStream=!1};re(pt,Ct);var He=function(){pt.call(this),this.fontName="helvetica",this.combo=!1};re(He,pt);var nr=function(){He.call(this),this.combo=!0};re(nr,He);var ht=function(){nr.call(this),this.edit=!0};re(ht,nr);var Gt=function(){Ct.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,15))},set:function(it){Boolean(it)===!0?this.Ff=Fe(this.Ff,15):this.Ff=ue(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,16))},set:function(it){Boolean(it)===!0?this.Ff=Fe(this.Ff,16):this.Ff=ue(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,17))},set:function(it){Boolean(it)===!0?this.Ff=Fe(this.Ff,17):this.Ff=ue(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,26))},set:function(it){Boolean(it)===!0?this.Ff=Fe(this.Ff,26):this.Ff=ue(this.Ff,26)}});var Le,je={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var it=function(At){return At};if(this.scope&&(it=this.scope.internal.getEncryptor(this.objId)),Object.keys(je).length!==0){var Ze,ot=[];for(Ze in ot.push("<<"),je)ot.push("/"+Ze+" ("+G(it(je[Ze]))+")");return ot.push(">>"),ot.join(`
`)}},set:function(it){S()(it)==="object"&&(je=it)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return je.CA||""},set:function(it){typeof it=="string"&&(je.CA=it)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Le},set:function(it){Le=it}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Le.substr(1,Le.length-1)},set:function(it){Le="/"+it}})};re(Gt,Ct);var pr=function(){Gt.call(this),this.pushButton=!0};re(pr,Gt);var Qt=function(){Gt.call(this),this.radio=!0,this.pushButton=!1;var Le=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Le},set:function(Xe){Le=Xe!==void 0?Xe:[]}})};re(Qt,Gt);var Ht=function(){var Le,je;Ct.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Le},set:function(ot){Le=ot}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return je},set:function(ot){je=ot}});var Xe,it={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ot=function(qr){return qr};this.scope&&(ot=this.scope.internal.getEncryptor(this.objId));var Lt,At=[];for(Lt in At.push("<<"),it)At.push("/"+Lt+" ("+G(ot(it[Lt]))+")");return At.push(">>"),At.join(`
`)},set:function(ot){S()(ot)==="object"&&(it=ot)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return it.CA||""},set:function(ot){typeof ot=="string"&&(it.CA=ot)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Xe},set:function(ot){Xe=ot}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Xe.substr(1,Xe.length-1)},set:function(ot){Xe="/"+ot}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=oe.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};re(Ht,Ct),Qt.prototype.setAppearance=function(at){if(!("createAppearanceStream"in at)||!("getCA"in at))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Le in this.Kids)if(this.Kids.hasOwnProperty(Le)){var je=this.Kids[Le];je.appearanceStreamContent=at.createAppearanceStream(je.optionName),je.caption=at.getCA()}},Qt.prototype.createOption=function(at){var Le=new Ht;return Le.Parent=this,Le.optionName=at,this.Kids.push(Le),ct.call(this.scope,Le),Le};var Jt=function(){Gt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=oe.CheckBox.createAppearanceStream()};re(Jt,Gt);var Ge=function(){Ct.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,13))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,13):this.Ff=ue(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,21))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,21):this.Ff=ue(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,23))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,23):this.Ff=ue(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,24))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,24):this.Ff=ue(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,25))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,25):this.Ff=ue(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,26))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,26):this.Ff=ue(this.Ff,26)}});var Le=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Le},set:function(Xe){Le=Xe}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Le},set:function(Xe){Number.isInteger(Xe)&&(Le=Xe)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};re(Ge,Ct);var pe=function(){Ge.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(dt(this.Ff,14))},set:function(je){Boolean(je)===!0?this.Ff=Fe(this.Ff,14):this.Ff=ue(this.Ff,14)}}),this.password=!0};re(pe,Ge);var oe={CheckBox:{createAppearanceStream:function(){return{N:{On:oe.CheckBox.YesNormal},D:{On:oe.CheckBox.YesPushDown,Off:oe.CheckBox.OffPushDown}}},YesPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[],it=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id,Ze=Le.scope.__private__.encodeColorString(Le.color),ot=J(Le,Le.caption);return Xe.push("0.749023 g"),Xe.push("0 0 "+q(oe.internal.getWidth(Le))+" "+q(oe.internal.getHeight(Le))+" re"),Xe.push("f"),Xe.push("BMC"),Xe.push("q"),Xe.push("0 0 1 rg"),Xe.push("/"+it+" "+q(ot.fontSize)+" Tf "+Ze),Xe.push("BT"),Xe.push(ot.text),Xe.push("ET"),Xe.push("Q"),Xe.push("EMC"),je.stream=Xe.join(`
`),je},YesNormal:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id,it=Le.scope.__private__.encodeColorString(Le.color),Ze=[],ot=oe.internal.getHeight(Le),Lt=oe.internal.getWidth(Le),At=J(Le,Le.caption);return Ze.push("1 g"),Ze.push("0 0 "+q(Lt)+" "+q(ot)+" re"),Ze.push("f"),Ze.push("q"),Ze.push("0 0 1 rg"),Ze.push("0 0 "+q(Lt-1)+" "+q(ot-1)+" re"),Ze.push("W"),Ze.push("n"),Ze.push("0 g"),Ze.push("BT"),Ze.push("/"+Xe+" "+q(At.fontSize)+" Tf "+it),Ze.push(At.text),Ze.push("ET"),Ze.push("Q"),je.stream=Ze.join(`
`),je},OffPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[];return Xe.push("0.749023 g"),Xe.push("0 0 "+q(oe.internal.getWidth(Le))+" "+q(oe.internal.getHeight(Le))+" re"),Xe.push("f"),je.stream=Xe.join(`
`),je}},RadioButton:{Circle:{createAppearanceStream:function(Le){var je={D:{Off:oe.RadioButton.Circle.OffPushDown},N:{}};return je.N[Le]=oe.RadioButton.Circle.YesNormal,je.D[Le]=oe.RadioButton.Circle.YesPushDown,je},getCA:function(){return"l"},YesNormal:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[],it=oe.internal.getWidth(Le)<=oe.internal.getHeight(Le)?oe.internal.getWidth(Le)/4:oe.internal.getHeight(Le)/4;it=Number((.9*it).toFixed(5));var Ze=oe.internal.Bezier_C,ot=Number((it*Ze).toFixed(5));return Xe.push("q"),Xe.push("1 0 0 1 "+se(oe.internal.getWidth(Le)/2)+" "+se(oe.internal.getHeight(Le)/2)+" cm"),Xe.push(it+" 0 m"),Xe.push(it+" "+ot+" "+ot+" "+it+" 0 "+it+" c"),Xe.push("-"+ot+" "+it+" -"+it+" "+ot+" -"+it+" 0 c"),Xe.push("-"+it+" -"+ot+" -"+ot+" -"+it+" 0 -"+it+" c"),Xe.push(ot+" -"+it+" "+it+" -"+ot+" "+it+" 0 c"),Xe.push("f"),Xe.push("Q"),je.stream=Xe.join(`
`),je},YesPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[],it=oe.internal.getWidth(Le)<=oe.internal.getHeight(Le)?oe.internal.getWidth(Le)/4:oe.internal.getHeight(Le)/4;it=Number((.9*it).toFixed(5));var Ze=Number((2*it).toFixed(5)),ot=Number((Ze*oe.internal.Bezier_C).toFixed(5)),Lt=Number((it*oe.internal.Bezier_C).toFixed(5));return Xe.push("0.749023 g"),Xe.push("q"),Xe.push("1 0 0 1 "+se(oe.internal.getWidth(Le)/2)+" "+se(oe.internal.getHeight(Le)/2)+" cm"),Xe.push(Ze+" 0 m"),Xe.push(Ze+" "+ot+" "+ot+" "+Ze+" 0 "+Ze+" c"),Xe.push("-"+ot+" "+Ze+" -"+Ze+" "+ot+" -"+Ze+" 0 c"),Xe.push("-"+Ze+" -"+ot+" -"+ot+" -"+Ze+" 0 -"+Ze+" c"),Xe.push(ot+" -"+Ze+" "+Ze+" -"+ot+" "+Ze+" 0 c"),Xe.push("f"),Xe.push("Q"),Xe.push("0 g"),Xe.push("q"),Xe.push("1 0 0 1 "+se(oe.internal.getWidth(Le)/2)+" "+se(oe.internal.getHeight(Le)/2)+" cm"),Xe.push(it+" 0 m"),Xe.push(it+" "+Lt+" "+Lt+" "+it+" 0 "+it+" c"),Xe.push("-"+Lt+" "+it+" -"+it+" "+Lt+" -"+it+" 0 c"),Xe.push("-"+it+" -"+Lt+" -"+Lt+" -"+it+" 0 -"+it+" c"),Xe.push(Lt+" -"+it+" "+it+" -"+Lt+" "+it+" 0 c"),Xe.push("f"),Xe.push("Q"),je.stream=Xe.join(`
`),je},OffPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[],it=oe.internal.getWidth(Le)<=oe.internal.getHeight(Le)?oe.internal.getWidth(Le)/4:oe.internal.getHeight(Le)/4;it=Number((.9*it).toFixed(5));var Ze=Number((2*it).toFixed(5)),ot=Number((Ze*oe.internal.Bezier_C).toFixed(5));return Xe.push("0.749023 g"),Xe.push("q"),Xe.push("1 0 0 1 "+se(oe.internal.getWidth(Le)/2)+" "+se(oe.internal.getHeight(Le)/2)+" cm"),Xe.push(Ze+" 0 m"),Xe.push(Ze+" "+ot+" "+ot+" "+Ze+" 0 "+Ze+" c"),Xe.push("-"+ot+" "+Ze+" -"+Ze+" "+ot+" -"+Ze+" 0 c"),Xe.push("-"+Ze+" -"+ot+" -"+ot+" -"+Ze+" 0 -"+Ze+" c"),Xe.push(ot+" -"+Ze+" "+Ze+" -"+ot+" "+Ze+" 0 c"),Xe.push("f"),Xe.push("Q"),je.stream=Xe.join(`
`),je}},Cross:{createAppearanceStream:function(Le){var je={D:{Off:oe.RadioButton.Cross.OffPushDown},N:{}};return je.N[Le]=oe.RadioButton.Cross.YesNormal,je.D[Le]=oe.RadioButton.Cross.YesPushDown,je},getCA:function(){return"8"},YesNormal:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[],it=oe.internal.calculateCross(Le);return Xe.push("q"),Xe.push("1 1 "+q(oe.internal.getWidth(Le)-2)+" "+q(oe.internal.getHeight(Le)-2)+" re"),Xe.push("W"),Xe.push("n"),Xe.push(q(it.x1.x)+" "+q(it.x1.y)+" m"),Xe.push(q(it.x2.x)+" "+q(it.x2.y)+" l"),Xe.push(q(it.x4.x)+" "+q(it.x4.y)+" m"),Xe.push(q(it.x3.x)+" "+q(it.x3.y)+" l"),Xe.push("s"),Xe.push("Q"),je.stream=Xe.join(`
`),je},YesPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=oe.internal.calculateCross(Le),it=[];return it.push("0.749023 g"),it.push("0 0 "+q(oe.internal.getWidth(Le))+" "+q(oe.internal.getHeight(Le))+" re"),it.push("f"),it.push("q"),it.push("1 1 "+q(oe.internal.getWidth(Le)-2)+" "+q(oe.internal.getHeight(Le)-2)+" re"),it.push("W"),it.push("n"),it.push(q(Xe.x1.x)+" "+q(Xe.x1.y)+" m"),it.push(q(Xe.x2.x)+" "+q(Xe.x2.y)+" l"),it.push(q(Xe.x4.x)+" "+q(Xe.x4.y)+" m"),it.push(q(Xe.x3.x)+" "+q(Xe.x3.y)+" l"),it.push("s"),it.push("Q"),je.stream=it.join(`
`),je},OffPushDown:function(Le){var je=Oe(Le);je.scope=Le.scope;var Xe=[];return Xe.push("0.749023 g"),Xe.push("0 0 "+q(oe.internal.getWidth(Le))+" "+q(oe.internal.getHeight(Le))+" re"),Xe.push("f"),je.stream=Xe.join(`
`),je}}},createDefaultAppearanceStream:function(Le){var je=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id,Xe=Le.scope.__private__.encodeColorString(Le.color);return"/"+je+" "+Le.fontSize+" Tf "+Xe}};oe.internal={Bezier_C:.551915024494,calculateCross:function(Le){var je=oe.internal.getWidth(Le),Xe=oe.internal.getHeight(Le),it=Math.min(je,Xe);return{x1:{x:(je-it)/2,y:(Xe-it)/2+it},x2:{x:(je-it)/2+it,y:(Xe-it)/2},x3:{x:(je-it)/2,y:(Xe-it)/2},x4:{x:(je-it)/2+it,y:(Xe-it)/2+it}}}},oe.internal.getWidth=function(at){var Le=0;return S()(at)==="object"&&(Le=we(at.Rect[2])),Le},oe.internal.getHeight=function(at){var Le=0;return S()(at)==="object"&&(Le=we(at.Rect[3])),Le};var ct=V.addField=function(at){if(Te(this,at),!(at instanceof Ct))throw new Error("Invalid argument passed to jsPDF.addField.");var Le;return(Le=at).scope.internal.acroformPlugin.printedOut&&(Le.scope.internal.acroformPlugin.printedOut=!1,Le.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Le.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Le),at.page=at.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=pt,V.AcroFormListBox=He,V.AcroFormComboBox=nr,V.AcroFormEditBox=ht,V.AcroFormButton=Gt,V.AcroFormPushButton=pr,V.AcroFormRadioButton=Qt,V.AcroFormCheckBox=Jt,V.AcroFormTextField=Ge,V.AcroFormPasswordField=pe,V.AcroFormAppearance=oe,V.AcroForm={ChoiceField:pt,ListBox:He,ComboBox:nr,EditBox:ht,Button:Gt,PushButton:pr,RadioButton:Qt,CheckBox:Jt,TextField:Ge,PasswordField:pe,Appearance:oe},z.AcroForm={ChoiceField:pt,ListBox:He,ComboBox:nr,EditBox:ht,Button:Gt,PushButton:pr,RadioButton:Qt,CheckBox:Jt,TextField:Ge,PasswordField:pe,Appearance:oe};var qe=z.AcroForm;function me(at){return at.reduce(function(Le,je,Xe){return Le[je]=Xe,Le},{})}!function(at){at.__addimage__={};var Le="UNKNOWN",je={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]]},Xe=at.__addimage__.getImageFileTypeByImageData=function(Bt,Wt){var Xt,kt,hr,br,wr,Fr=Le;if((Wt=Wt||Le)==="RGBA"||Bt.data!==void 0&&Bt.data instanceof Uint8ClampedArray&&"height"in Bt&&"width"in Bt)return"RGBA";if(en(Bt))for(wr in je)for(hr=je[wr],Xt=0;Xt<hr.length;Xt+=1){for(br=!0,kt=0;kt<hr[Xt].length;kt+=1)if(hr[Xt][kt]!==void 0&&hr[Xt][kt]!==Bt[kt]){br=!1;break}if(br===!0){Fr=wr;break}}else for(wr in je)for(hr=je[wr],Xt=0;Xt<hr.length;Xt+=1){for(br=!0,kt=0;kt<hr[Xt].length;kt+=1)if(hr[Xt][kt]!==void 0&&hr[Xt][kt]!==Bt.charCodeAt(kt)){br=!1;break}if(br===!0){Fr=wr;break}}return Fr===Le&&Wt!==Le&&(Fr=Wt),Fr},it=function Bt(Wt){for(var Xt=this.internal.write,kt=this.internal.putStream,hr=(0,this.internal.getFilters)();hr.indexOf("FlateEncode")!==-1;)hr.splice(hr.indexOf("FlateEncode"),1);Wt.objectId=this.internal.newObject();var br=[];if(br.push({key:"Type",value:"/XObject"}),br.push({key:"Subtype",value:"/Image"}),br.push({key:"Width",value:Wt.width}),br.push({key:"Height",value:Wt.height}),Wt.colorSpace===jn.INDEXED?br.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Wt.palette.length/3-1)+" "+("sMask"in Wt&&Wt.sMask!==void 0?Wt.objectId+2:Wt.objectId+1)+" 0 R]"}):(br.push({key:"ColorSpace",value:"/"+Wt.colorSpace}),Wt.colorSpace===jn.DEVICE_CMYK&&br.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),br.push({key:"BitsPerComponent",value:Wt.bitsPerComponent}),"decodeParameters"in Wt&&Wt.decodeParameters!==void 0&&br.push({key:"DecodeParms",value:"<<"+Wt.decodeParameters+">>"}),"transparency"in Wt&&Array.isArray(Wt.transparency)){for(var wr="",Fr=0,Xn=Wt.transparency.length;Fr<Xn;Fr++)wr+=Wt.transparency[Fr]+" "+Wt.transparency[Fr]+" ";br.push({key:"Mask",value:"["+wr+"]"})}Wt.sMask!==void 0&&br.push({key:"SMask",value:Wt.objectId+1+" 0 R"});var Fn=Wt.filter!==void 0?["/"+Wt.filter]:void 0;if(kt({data:Wt.data,additionalKeyValues:br,alreadyAppliedFilters:Fn,objectId:Wt.objectId}),Xt("endobj"),"sMask"in Wt&&Wt.sMask!==void 0){var hi="/Predictor "+Wt.predictor+" /Colors 1 /BitsPerComponent "+Wt.bitsPerComponent+" /Columns "+Wt.width,An={width:Wt.width,height:Wt.height,colorSpace:"DeviceGray",bitsPerComponent:Wt.bitsPerComponent,decodeParameters:hi,data:Wt.sMask};"filter"in Wt&&(An.filter=Wt.filter),Bt.call(this,An)}if(Wt.colorSpace===jn.INDEXED){var jr=this.internal.newObject();kt({data:Yn(new Uint8Array(Wt.palette)),objectId:jr}),Xt("endobj")}},Ze=function(){var Wt=this.internal.collections.addImage_images;for(var Xt in Wt)it.call(this,Wt[Xt])},ot=function(){var Wt,Xt=this.internal.collections.addImage_images,kt=this.internal.write;for(var hr in Xt)kt("/I"+(Wt=Xt[hr]).index,Wt.objectId,"0","R")},Lt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Ze),this.internal.events.subscribe("putXobjectDict",ot))},At=function(){var Wt=this.internal.collections.addImage_images;return Lt.call(this),Wt},mr=function(){return Object.keys(this.internal.collections.addImage_images).length},qr=function(Wt){return typeof at["process"+Wt.toUpperCase()]=="function"},Qr=function(Wt){return S()(Wt)==="object"&&Wt.nodeType===1},gn=function(Wt,Xt){if(Wt.nodeName==="IMG"&&Wt.hasAttribute("src")){var kt=""+Wt.getAttribute("src");if(kt.indexOf("data:image/")===0)return t(unescape(kt).split("base64,").pop());var hr=at.loadFile(kt,!0);if(hr!==void 0)return hr}if(Wt.nodeName==="CANVAS"){if(Wt.width===0||Wt.height===0)throw new Error("Given canvas must have data. Canvas width: "+Wt.width+", height: "+Wt.height);var br;switch(Xt){case"PNG":br="image/png";break;case"WEBP":br="image/webp";break;case"JPEG":case"JPG":default:br="image/jpeg"}return t(Wt.toDataURL(br,1).split("base64,").pop())}},yr=function(Wt){var Xt=this.internal.collections.addImage_images;if(Xt){for(var kt in Xt)if(Wt===Xt[kt].alias)return Xt[kt]}},Vn=function(Wt,Xt,kt){return Wt||Xt||(Wt=-96,Xt=-96),Wt<0&&(Wt=-1*kt.width*72/Wt/this.internal.scaleFactor),Xt<0&&(Xt=-1*kt.height*72/Xt/this.internal.scaleFactor),Wt===0&&(Wt=Xt*kt.width/kt.height),Xt===0&&(Xt=Wt*kt.height/kt.width),[Wt,Xt]},Br=function(Wt,Xt,kt,hr,br,wr){var Fr=Vn.call(this,kt,hr,br),Xn=this.internal.getCoordinateString,Fn=this.internal.getVerticalCoordinateString,hi=At.call(this);if(kt=Fr[0],hr=Fr[1],hi[br.index]=br,wr){wr*=Math.PI/180;var An=Math.cos(wr),jr=Math.sin(wr),In=function(si){return si.toFixed(4)},Qn=[In(An),In(jr),In(-1*jr),In(An),0,0,"cm"]}this.internal.write("q"),wr?(this.internal.write([1,"0","0",1,Xn(Wt),Fn(Xt+hr),"cm"].join(" ")),this.internal.write(Qn.join(" ")),this.internal.write([Xn(kt),"0","0",Xn(hr),"0","0","cm"].join(" "))):this.internal.write([Xn(kt),"0","0",Xn(hr),Xn(Wt),Fn(Xt+hr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+br.index+" Do"),this.internal.write("Q")},jn=at.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"};at.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 xn=at.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},tn=at.__addimage__.sHashCode=function(Bt){var Wt,Xt,kt=0;if(typeof Bt=="string")for(Xt=Bt.length,Wt=0;Wt<Xt;Wt++)kt=(kt<<5)-kt+Bt.charCodeAt(Wt),kt|=0;else if(en(Bt))for(Xt=Bt.byteLength/2,Wt=0;Wt<Xt;Wt++)kt=(kt<<5)-kt+Bt[Wt],kt|=0;return kt},ti=at.__addimage__.validateStringAsBase64=function(Bt){(Bt=Bt||"").toString().trim();var Wt=!0;return Bt.length===0&&(Wt=!1),Bt.length%4!=0&&(Wt=!1),/^[A-Za-z0-9+/]+$/.test(Bt.substr(0,Bt.length-2))===!1&&(Wt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Bt.substr(-2))===!1&&(Wt=!1),Wt},mi=at.__addimage__.extractImageFromDataUrl=function(Bt){var Wt=(Bt=Bt||"").split("base64,"),Xt=null;if(Wt.length===2){var kt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Wt[0]);Array.isArray(kt)&&(Xt={mimeType:kt[1],charset:kt[2],data:Wt[1]})}return Xt},Pi=at.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};at.__addimage__.isArrayBuffer=function(Bt){return Pi()&&Bt instanceof ArrayBuffer};var en=at.__addimage__.isArrayBufferView=function(Bt){return Pi()&&typeof Uint32Array!="undefined"&&(Bt instanceof Int8Array||Bt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&Bt instanceof Uint8ClampedArray||Bt instanceof Int16Array||Bt instanceof Uint16Array||Bt instanceof Int32Array||Bt instanceof Uint32Array||Bt instanceof Float32Array||Bt instanceof Float64Array)},Tn=at.__addimage__.binaryStringToUint8Array=function(Bt){for(var Wt=Bt.length,Xt=new Uint8Array(Wt),kt=0;kt<Wt;kt++)Xt[kt]=Bt.charCodeAt(kt);return Xt},Yn=at.__addimage__.arrayBufferToBinaryString=function(Bt){for(var Wt="",Xt=en(Bt)?Bt:new Uint8Array(Bt),kt=0;kt<Xt.length;kt+=8192)Wt+=String.fromCharCode.apply(null,Xt.subarray(kt,kt+8192));return Wt};at.addImage=function(){var Bt,Wt,Xt,kt,hr,br,wr,Fr,Xn;if(typeof arguments[1]=="number"?(Wt=Le,Xt=arguments[1],kt=arguments[2],hr=arguments[3],br=arguments[4],wr=arguments[5],Fr=arguments[6],Xn=arguments[7]):(Wt=arguments[1],Xt=arguments[2],kt=arguments[3],hr=arguments[4],br=arguments[5],wr=arguments[6],Fr=arguments[7],Xn=arguments[8]),S()(Bt=arguments[0])==="object"&&!Qr(Bt)&&"imageData"in Bt){var Fn=Bt;Bt=Fn.imageData,Wt=Fn.format||Wt||Le,Xt=Fn.x||Xt||0,kt=Fn.y||kt||0,hr=Fn.w||Fn.width||hr,br=Fn.h||Fn.height||br,wr=Fn.alias||wr,Fr=Fn.compression||Fr,Xn=Fn.rotation||Fn.angle||Xn}var hi=this.internal.getFilters();if(Fr===void 0&&hi.indexOf("FlateEncode")!==-1&&(Fr="SLOW"),isNaN(Xt)||isNaN(kt))throw new Error("Invalid coordinates passed to jsPDF.addImage");Lt.call(this);var An=Yt.call(this,Bt,Wt,wr,Fr);return Br.call(this,Xt,kt,hr,br,An,Xn),this};var Yt=function(Wt,Xt,kt,hr){var br,wr,Fr;if(typeof Wt=="string"&&Xe(Wt)===Le){Wt=unescape(Wt);var Xn=Dt(Wt,!1);(Xn!==""||(Xn=at.loadFile(Wt,!0))!==void 0)&&(Wt=Xn)}if(Qr(Wt)&&(Wt=gn(Wt,Xt)),Xt=Xe(Wt,Xt),!qr(Xt))throw new Error("addImage does not support files of type '"+Xt+"', please ensure that a plugin for '"+Xt+"' support is added.");if(((Fr=kt)==null||Fr.length===0)&&(kt=function(Fn){return typeof Fn=="string"||en(Fn)?tn(Fn):en(Fn.data)?tn(Fn.data):null}(Wt)),(br=yr.call(this,kt))||(Pi()&&(Wt instanceof Uint8Array||Xt==="RGBA"||(wr=Wt,Wt=Tn(Wt))),br=this["process"+Xt.toUpperCase()](Wt,mr.call(this),kt,function(Fn){return Fn&&typeof Fn=="string"&&(Fn=Fn.toUpperCase()),Fn in at.image_compression?Fn:xn.NONE}(hr),wr)),!br)throw new Error("An unknown error occurred whilst processing the image.");return br},Dt=at.__addimage__.convertBase64ToBinaryString=function(Bt,Wt){var Xt;Wt=typeof Wt!="boolean"||Wt;var kt,hr="";if(typeof Bt=="string"){kt=(Xt=mi(Bt))!==null?Xt.data:Bt;try{hr=t(kt)}catch(br){if(Wt)throw ti(kt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+br.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return hr};at.getImageProperties=function(Bt){var Wt,Xt,kt="";if(Qr(Bt)&&(Bt=gn(Bt)),typeof Bt=="string"&&Xe(Bt)===Le&&((kt=Dt(Bt,!1))===""&&(kt=at.loadFile(Bt)||""),Bt=kt),Xt=Xe(Bt),!qr(Xt))throw new Error("addImage does not support files of type '"+Xt+"', please ensure that a plugin for '"+Xt+"' support is added.");if(!Pi()||Bt instanceof Uint8Array||(Bt=Tn(Bt)),!(Wt=this["process"+Xt.toUpperCase()](Bt)))throw new Error("An unknown error occurred whilst processing the image");return Wt.fileType=Xt,Wt}}(z.API),function(at){var Le=function(Xe){if(Xe!==void 0&&Xe!="")return!0};z.API.events.push(["addPage",function(je){this.internal.getPageInfo(je.pageNumber).pageContext.annotations=[]}]),at.events.push(["putPage",function(je){for(var Xe,it,Ze,ot=this.internal.getCoordinateString,Lt=this.internal.getVerticalCoordinateString,At=this.internal.getPageInfoByObjId(je.objId),mr=je.pageContext.annotations,qr=!1,Qr=0;Qr<mr.length&&!qr;Qr++)switch((Xe=mr[Qr]).type){case"link":(Le(Xe.options.url)||Le(Xe.options.pageNumber))&&(qr=!0);break;case"reference":case"text":case"freetext":qr=!0}if(qr!=0){this.internal.write("/Annots [");for(var gn=0;gn<mr.length;gn++){Xe=mr[gn];var yr=this.internal.pdfEscape,Vn=this.internal.getEncryptor(je.objId);switch(Xe.type){case"reference":this.internal.write(" "+Xe.object.objId+" 0 R ");break;case"text":var Br=this.internal.newAdditionalObject(),jn=this.internal.newAdditionalObject(),xn=this.internal.getEncryptor(Br.objId),tn=Xe.title||"Note";Ze="<</Type /Annot /Subtype /Text "+(it="/Rect ["+ot(Xe.bounds.x)+" "+Lt(Xe.bounds.y+Xe.bounds.h)+" "+ot(Xe.bounds.x+Xe.bounds.w)+" "+Lt(Xe.bounds.y)+"] ")+"/Contents ("+yr(xn(Xe.contents))+")",Ze+=" /Popup "+jn.objId+" 0 R",Ze+=" /P "+At.objId+" 0 R",Ze+=" /T ("+yr(xn(tn))+") >>",Br.content=Ze;var ti=Br.objId+" 0 R";Ze="<</Type /Annot /Subtype /Popup "+(it="/Rect ["+ot(Xe.bounds.x+30)+" "+Lt(Xe.bounds.y+Xe.bounds.h)+" "+ot(Xe.bounds.x+Xe.bounds.w+30)+" "+Lt(Xe.bounds.y)+"] ")+" /Parent "+ti,Xe.open&&(Ze+=" /Open true"),Ze+=" >>",jn.content=Ze,this.internal.write(Br.objId,"0 R",jn.objId,"0 R");break;case"freetext":it="/Rect ["+ot(Xe.bounds.x)+" "+Lt(Xe.bounds.y)+" "+ot(Xe.bounds.x+Xe.bounds.w)+" "+Lt(Xe.bounds.y+Xe.bounds.h)+"] ";var mi=Xe.color||"#000000";Ze="<</Type /Annot /Subtype /FreeText "+it+"/Contents ("+yr(Vn(Xe.contents))+")",Ze+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+mi+")",Ze+=" /Border [0 0 0]",Ze+=" >>",this.internal.write(Ze);break;case"link":if(Xe.options.name){var Pi=this.annotations._nameMap[Xe.options.name];Xe.options.pageNumber=Pi.page,Xe.options.top=Pi.y}else Xe.options.top||(Xe.options.top=0);if(it="/Rect ["+Xe.finalBounds.x+" "+Xe.finalBounds.y+" "+Xe.finalBounds.w+" "+Xe.finalBounds.h+"] ",Ze="",Xe.options.url)Ze="<</Type /Annot /Subtype /Link "+it+"/Border [0 0 0] /A <</S /URI /URI ("+yr(Vn(Xe.options.url))+") >>";else if(Xe.options.pageNumber)switch(Ze="<</Type /Annot /Subtype /Link "+it+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Xe.options.pageNumber).objId+" 0 R",Xe.options.magFactor=Xe.options.magFactor||"XYZ",Xe.options.magFactor){case"Fit":Ze+=" /Fit]";break;case"FitH":Ze+=" /FitH "+Xe.options.top+"]";break;case"FitV":Xe.options.left=Xe.options.left||0,Ze+=" /FitV "+Xe.options.left+"]";break;case"XYZ":default:var en=Lt(Xe.options.top);Xe.options.left=Xe.options.left||0,Xe.options.zoom===void 0&&(Xe.options.zoom=0),Ze+=" /XYZ "+Xe.options.left+" "+en+" "+Xe.options.zoom+"]"}Ze!=""&&(Ze+=" >>",this.internal.write(Ze))}}this.internal.write("]")}}]),at.createAnnotation=function(je){var Xe=this.internal.getCurrentPageInfo();switch(je.type){case"link":this.link(je.bounds.x,je.bounds.y,je.bounds.w,je.bounds.h,je);break;case"text":case"freetext":Xe.pageContext.annotations.push(je)}},at.link=function(je,Xe,it,Ze,ot){var Lt=this.internal.getCurrentPageInfo(),At=this.internal.getCoordinateString,mr=this.internal.getVerticalCoordinateString;Lt.pageContext.annotations.push({finalBounds:{x:At(je),y:mr(Xe),w:At(je+it),h:mr(Xe+Ze)},options:ot,type:"link"})},at.textWithLink=function(je,Xe,it,Ze){var ot,Lt,At=this.getTextWidth(je),mr=this.internal.getLineHeight()/this.internal.scaleFactor;if(Ze.maxWidth!==void 0){Lt=Ze.maxWidth;var qr=this.splitTextToSize(je,Lt).length;ot=Math.ceil(mr*qr)}else Lt=At,ot=mr;return this.text(je,Xe,it,Ze),it+=.2*mr,Ze.align==="center"&&(Xe-=At/2),Ze.align==="right"&&(Xe-=At),this.link(Xe,it-mr,Lt,ot,Ze),At},at.getTextWidth=function(je){var Xe=this.internal.getFontSize();return this.getStringUnitWidth(je)*Xe/this.internal.scaleFactor}}(z.API),function(at){var Le={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]},je={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}},Xe={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},it=[1570,1571,1573,1575];at.__arabicParser__={};var Ze=at.__arabicParser__.isInArabicSubstitutionA=function(Br){return Le[Br.charCodeAt(0)]!==void 0},ot=at.__arabicParser__.isArabicLetter=function(Br){return typeof Br=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Br)},Lt=at.__arabicParser__.isArabicEndLetter=function(Br){return ot(Br)&&Ze(Br)&&Le[Br.charCodeAt(0)].length<=2},At=at.__arabicParser__.isArabicAlfLetter=function(Br){return ot(Br)&&it.indexOf(Br.charCodeAt(0))>=0};at.__arabicParser__.arabicLetterHasIsolatedForm=function(Br){return ot(Br)&&Ze(Br)&&Le[Br.charCodeAt(0)].length>=1};var mr=at.__arabicParser__.arabicLetterHasFinalForm=function(Br){return ot(Br)&&Ze(Br)&&Le[Br.charCodeAt(0)].length>=2};at.__arabicParser__.arabicLetterHasInitialForm=function(Br){return ot(Br)&&Ze(Br)&&Le[Br.charCodeAt(0)].length>=3};var qr=at.__arabicParser__.arabicLetterHasMedialForm=function(Br){return ot(Br)&&Ze(Br)&&Le[Br.charCodeAt(0)].length==4},Qr=at.__arabicParser__.resolveLigatures=function(Br){var jn=0,xn=je,tn="",ti=0;for(jn=0;jn<Br.length;jn+=1)xn[Br.charCodeAt(jn)]!==void 0?(ti++,typeof(xn=xn[Br.charCodeAt(jn)])=="number"&&(tn+=String.fromCharCode(xn),xn=je,ti=0),jn===Br.length-1&&(xn=je,tn+=Br.charAt(jn-(ti-1)),jn-=ti-1,ti=0)):(xn=je,tn+=Br.charAt(jn-ti),jn-=ti,ti=0);return tn};at.__arabicParser__.isArabicDiacritic=function(Br){return Br!==void 0&&Xe[Br.charCodeAt(0)]!==void 0};var gn=at.__arabicParser__.getCorrectForm=function(Br,jn,xn){return ot(Br)?Ze(Br)===!1?-1:!mr(Br)||!ot(jn)&&!ot(xn)||!ot(xn)&&Lt(jn)||Lt(Br)&&!ot(jn)||Lt(Br)&&At(jn)||Lt(Br)&&Lt(jn)?0:qr(Br)&&ot(jn)&&!Lt(jn)&&ot(xn)&&mr(xn)?3:Lt(Br)||!ot(xn)?1:2:-1},yr=function(jn){var xn=0,tn=0,ti=0,mi="",Pi="",en="",Tn=(jn=jn||"").split("\\s+"),Yn=[];for(xn=0;xn<Tn.length;xn+=1){for(Yn.push(""),tn=0;tn<Tn[xn].length;tn+=1)mi=Tn[xn][tn],Pi=Tn[xn][tn-1],en=Tn[xn][tn+1],ot(mi)?(ti=gn(mi,Pi,en),Yn[xn]+=ti!==-1?String.fromCharCode(Le[mi.charCodeAt(0)][ti]):mi):Yn[xn]+=mi;Yn[xn]=Qr(Yn[xn])}return Yn.join(" ")},Vn=at.__arabicParser__.processArabic=at.processArabic=function(){var Br,jn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,xn=[];if(Array.isArray(jn)){var tn=0;for(xn=[],tn=0;tn<jn.length;tn+=1)Array.isArray(jn[tn])?xn.push([yr(jn[tn][0]),jn[tn][1],jn[tn][2]]):xn.push([yr(jn[tn])]);Br=xn}else Br=yr(jn);return typeof arguments[0]=="string"?Br:(arguments[0].text=Br,arguments[0])};at.events.push(["preProcessText",Vn])}(z.API),z.API.autoPrint=function(at){var Le;switch((at=at||{}).variant=at.variant||"non-conform",at.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){Le=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 "+Le+" 0 R")})}return this},function(at){var Le=function(){var Xe=void 0;Object.defineProperty(this,"pdf",{get:function(){return Xe},set:function(mr){Xe=mr}});var it=150;Object.defineProperty(this,"width",{get:function(){return it},set:function(mr){it=isNaN(mr)||Number.isInteger(mr)===!1||mr<0?150:mr,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=it+1)}});var Ze=300;Object.defineProperty(this,"height",{get:function(){return Ze},set:function(mr){Ze=isNaN(mr)||Number.isInteger(mr)===!1||mr<0?300:mr,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Ze+1)}});var ot=[];Object.defineProperty(this,"childNodes",{get:function(){return ot},set:function(mr){ot=mr}});var Lt={};Object.defineProperty(this,"style",{get:function(){return Lt},set:function(mr){Lt=mr}}),Object.defineProperty(this,"parentNode",{})};Le.prototype.getContext=function(je,Xe){var it;if((je=je||"2d")!=="2d")return null;for(it in Xe)this.pdf.context2d.hasOwnProperty(it)&&(this.pdf.context2d[it]=Xe[it]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Le.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},at.events.push(["initialized",function(){this.canvas=new Le,this.canvas.pdf=this}])}(z.API),function(at){var Le={left:0,top:0,bottom:0,right:0},je=!1,Xe=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({},Le),this.internal.__cell__.margins.width=this.getPageWidth(),it.call(this))},it=function(){this.internal.__cell__.lastCell=new Ze,this.internal.__cell__.pages=1},Ze=function(){var mr=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return mr},set:function(xn){mr=xn}});var qr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return qr},set:function(xn){qr=xn}});var Qr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Qr},set:function(xn){Qr=xn}});var gn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return gn},set:function(xn){gn=xn}});var yr=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return yr},set:function(xn){yr=xn}});var Vn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Vn},set:function(xn){Vn=xn}});var Br=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return Br},set:function(xn){Br=xn}}),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]},at.setHeaderFunction=function(At){return Xe.call(this),this.internal.__cell__.headerFunction=typeof At=="function"?At:void 0,this},at.getTextDimensions=function(At,mr){Xe.call(this);var qr=(mr=mr||{}).fontSize||this.getFontSize(),Qr=mr.font||this.getFont(),gn=mr.scaleFactor||this.internal.scaleFactor,yr=0,Vn=0,Br=0,jn=this;if(!Array.isArray(At)&&typeof At!="string"){if(typeof At!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");At=String(At)}var xn=mr.maxWidth;xn>0?typeof At=="string"?At=this.splitTextToSize(At,xn):Object.prototype.toString.call(At)==="[object Array]"&&(At=At.reduce(function(ti,mi){return ti.concat(jn.splitTextToSize(mi,xn))},[])):At=Array.isArray(At)?At:[At];for(var tn=0;tn<At.length;tn++)yr<(Br=this.getStringUnitWidth(At[tn],{font:Qr})*qr)&&(yr=Br);return yr!==0&&(Vn=At.length),{w:yr/=gn,h:Math.max((Vn*qr*this.getLineHeightFactor()-qr*(this.getLineHeightFactor()-1))/gn,0)}},at.cellAddPage=function(){Xe.call(this),this.addPage();var At=this.internal.__cell__.margins||Le;return this.internal.__cell__.lastCell=new Ze(At.left,At.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ot=at.cell=function(){var At;At=arguments[0]instanceof Ze?arguments[0]:new Ze(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Xe.call(this);var mr=this.internal.__cell__.lastCell,qr=this.internal.__cell__.padding,Qr=this.internal.__cell__.margins||Le,gn=this.internal.__cell__.tableHeaderRow,yr=this.internal.__cell__.printHeaders;return mr.lineNumber!==void 0&&(mr.lineNumber===At.lineNumber?(At.x=(mr.x||0)+(mr.width||0),At.y=mr.y||0):mr.y+mr.height+At.height+Qr.bottom>this.getPageHeight()?(this.cellAddPage(),At.y=Qr.top,yr&&gn&&(this.printHeaderRow(At.lineNumber,!0),At.y+=gn[0].height)):At.y=mr.y+mr.height||At.y),At.text[0]!==void 0&&(this.rect(At.x,At.y,At.width,At.height,je===!0?"FD":void 0),At.align==="right"?this.text(At.text,At.x+At.width-qr,At.y+qr,{align:"right",baseline:"top"}):At.align==="center"?this.text(At.text,At.x+At.width/2,At.y+qr,{align:"center",baseline:"top",maxWidth:At.width-qr-qr}):this.text(At.text,At.x+qr,At.y+qr,{align:"left",baseline:"top",maxWidth:At.width-qr-qr})),this.internal.__cell__.lastCell=At,this};at.table=function(At,mr,qr,Qr,gn){if(Xe.call(this),!qr)throw new Error("No data for PDF table.");var yr,Vn,Br,jn,xn=[],tn=[],ti=[],mi={},Pi={},en=[],Tn=[],Yn=(gn=gn||{}).autoSize||!1,Yt=gn.printHeaders!==!1,Dt=gn.css&&gn.css["font-size"]!==void 0?16*gn.css["font-size"]:gn.fontSize||12,Bt=gn.margins||Object.assign({width:this.getPageWidth()},Le),Wt=typeof gn.padding=="number"?gn.padding:3,Xt=gn.headerBackgroundColor||"#c8c8c8",kt=gn.headerTextColor||"#000";if(it.call(this),this.internal.__cell__.printHeaders=Yt,this.internal.__cell__.margins=Bt,this.internal.__cell__.table_font_size=Dt,this.internal.__cell__.padding=Wt,this.internal.__cell__.headerBackgroundColor=Xt,this.internal.__cell__.headerTextColor=kt,this.setFontSize(Dt),Qr==null)tn=xn=Object.keys(qr[0]),ti=xn.map(function(){return"left"});else if(Array.isArray(Qr)&&S()(Qr[0])==="object")for(xn=Qr.map(function(Fn){return Fn.name}),tn=Qr.map(function(Fn){return Fn.prompt||Fn.name||""}),ti=Qr.map(function(Fn){return Fn.align||"left"}),yr=0;yr<Qr.length;yr+=1)Pi[Qr[yr].name]=Qr[yr].width*(19.049976/25.4);else Array.isArray(Qr)&&typeof Qr[0]=="string"&&(tn=xn=Qr,ti=xn.map(function(){return"left"}));if(Yn||Array.isArray(Qr)&&typeof Qr[0]=="string")for(yr=0;yr<xn.length;yr+=1){for(mi[jn=xn[yr]]=qr.map(function(Fn){return Fn[jn]}),this.setFont(void 0,"bold"),en.push(this.getTextDimensions(tn[yr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Vn=mi[jn],this.setFont(void 0,"normal"),Br=0;Br<Vn.length;Br+=1)en.push(this.getTextDimensions(Vn[Br],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Pi[jn]=Math.max.apply(null,en)+Wt+Wt,en=[]}if(Yt){var hr={};for(yr=0;yr<xn.length;yr+=1)hr[xn[yr]]={},hr[xn[yr]].text=tn[yr],hr[xn[yr]].align=ti[yr];var br=Lt.call(this,hr,Pi);Tn=xn.map(function(Fn){return new Ze(At,mr,Pi[Fn],br,hr[Fn].text,void 0,hr[Fn].align)}),this.setTableHeaderRow(Tn),this.printHeaderRow(1,!1)}var wr=Qr.reduce(function(Fn,hi){return Fn[hi.name]=hi.align,Fn},{});for(yr=0;yr<qr.length;yr+=1){"rowStart"in gn&&gn.rowStart instanceof Function&&gn.rowStart({row:yr,data:qr[yr]},this);var Fr=Lt.call(this,qr[yr],Pi);for(Br=0;Br<xn.length;Br+=1){var Xn=qr[yr][xn[Br]];"cellStart"in gn&&gn.cellStart instanceof Function&&gn.cellStart({row:yr,col:Br,data:Xn},this),ot.call(this,new Ze(At,mr,Pi[xn[Br]],Fr,Xn,yr+2,wr[xn[Br]]))}}return this.internal.__cell__.table_x=At,this.internal.__cell__.table_y=mr,this};var Lt=function(mr,qr){var Qr=this.internal.__cell__.padding,gn=this.internal.__cell__.table_font_size,yr=this.internal.scaleFactor;return Object.keys(mr).map(function(Vn){var Br=mr[Vn];return this.splitTextToSize(Br.hasOwnProperty("text")?Br.text:Br,qr[Vn]-Qr-Qr)},this).map(function(Vn){return this.getLineHeightFactor()*Vn.length*gn/yr+Qr+Qr},this).reduce(function(Vn,Br){return Math.max(Vn,Br)},0)};at.setTableHeaderRow=function(At){Xe.call(this),this.internal.__cell__.tableHeaderRow=At},at.printHeaderRow=function(At,mr){if(Xe.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var qr;if(je=!0,typeof this.internal.__cell__.headerFunction=="function"){var Qr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Ze(Qr[0],Qr[1],Qr[2],Qr[3],void 0,-1)}this.setFont(void 0,"bold");for(var gn=[],yr=0;yr<this.internal.__cell__.tableHeaderRow.length;yr+=1){qr=this.internal.__cell__.tableHeaderRow[yr].clone(),mr&&(qr.y=this.internal.__cell__.margins.top||0,gn.push(qr)),qr.lineNumber=At;var Vn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),ot.call(this,qr),this.setTextColor(Vn)}gn.length>0&&this.setTableHeaderRow(gn),this.setFont(void 0,"normal"),je=!1}}(z.API);var Kt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},vr=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],bt=me(vr),or=[100,200,300,400,500,600,700,800,900],_t=me(or);function jt(at){var Le=at.family.replace(/"|'/g,"").toLowerCase(),je=function(Ze){return Kt[Ze=Ze||"normal"]?Ze:"normal"}(at.style),Xe=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}}(at.weight),it=function(Ze){return typeof bt[Ze=Ze||"normal"]=="number"?Ze:"normal"}(at.stretch);return{family:Le,style:je,weight:Xe,stretch:it,src:at.src||[],ref:at.ref||{name:Le,style:[it,je,Xe].join(" ")}}}function ut(at,Le,je,Xe){var it;for(it=je;it>=0&&it<Le.length;it+=Xe)if(at[Le[it]])return at[Le[it]];for(it=je;it>=0&&it<Le.length;it-=Xe)if(at[Le[it]])return at[Le[it]]}var St={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},mt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function lt(at){return[at.stretch,at.style,at.weight,at.family].join(" ")}function tt(at,Le,je){for(var Xe=(je=je||{}).defaultFontFamily||"times",it=Object.assign({},St,je.genericFontFamilies||{}),Ze=null,ot=null,Lt=0;Lt<Le.length;++Lt)if(it[(Ze=jt(Le[Lt])).family]&&(Ze.family=it[Ze.family]),at.hasOwnProperty(Ze.family)){ot=at[Ze.family];break}if(!(ot=ot||at[Xe]))throw new Error("Could not find a font-family for the rule '"+lt(Ze)+"' and default family '"+Xe+"'.");if(ot=function(At,mr){if(mr[At])return mr[At];var qr=bt[At],Qr=qr<=bt.normal?-1:1,gn=ut(mr,vr,qr,Qr);if(!gn)throw new Error("Could not find a matching font-stretch value for "+At);return gn}(Ze.stretch,ot),ot=function(At,mr){if(mr[At])return mr[At];for(var qr=Kt[At],Qr=0;Qr<qr.length;++Qr)if(mr[qr[Qr]])return mr[qr[Qr]];throw new Error("Could not find a matching font-style for "+At)}(Ze.style,ot),!(ot=function(At,mr){if(mr[At])return mr[At];if(At===400&&mr[500])return mr[500];if(At===500&&mr[400])return mr[400];var qr=_t[At],Qr=ut(mr,or,qr,At<400?-1:1);if(!Qr)throw new Error("Could not find a matching font-weight for value "+At);return Qr}(Ze.weight,ot)))throw new Error("Failed to resolve a font for the rule '"+lt(Ze)+"'.");return ot}function Cr(at){return at.trimLeft()}function nn(at,Le){for(var je=0;je<at.length;){if(at.charAt(je)===Le)return[at.substring(0,je),at.substring(je+1)];je+=1}return null}function mn(at){var Le=at.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Le===null?null:[Le[0],at.substring(Le[0].length)]}var Bn,oi,wn,Rn=["times"];!function(at){var Le,je,Xe,it,Ze,ot,Lt,At,mr,qr=function(jr){return jr=jr||{},this.isStrokeTransparent=jr.isStrokeTransparent||!1,this.strokeOpacity=jr.strokeOpacity||1,this.strokeStyle=jr.strokeStyle||"#000000",this.fillStyle=jr.fillStyle||"#000000",this.isFillTransparent=jr.isFillTransparent||!1,this.fillOpacity=jr.fillOpacity||1,this.font=jr.font||"10px sans-serif",this.textBaseline=jr.textBaseline||"alphabetic",this.textAlign=jr.textAlign||"left",this.lineWidth=jr.lineWidth||1,this.lineJoin=jr.lineJoin||"miter",this.lineCap=jr.lineCap||"butt",this.path=jr.path||[],this.transform=jr.transform!==void 0?jr.transform.clone():new At,this.globalCompositeOperation=jr.globalCompositeOperation||"normal",this.globalAlpha=jr.globalAlpha||1,this.clip_path=jr.clip_path||[],this.currentPoint=jr.currentPoint||new ot,this.miterLimit=jr.miterLimit||10,this.lastPoint=jr.lastPoint||new ot,this.lineDashOffset=jr.lineDashOffset||0,this.lineDash=jr.lineDash||[],this.margin=jr.margin||[0,0,0,0],this.prevPageLastElemOffset=jr.prevPageLastElemOffset||0,this.ignoreClearRect=typeof jr.ignoreClearRect!="boolean"||jr.ignoreClearRect,this};at.events.push(["initialized",function(){this.context2d=new Qr(this),Le=this.internal.f2,je=this.internal.getCoordinateString,Xe=this.internal.getVerticalCoordinateString,it=this.internal.getHorizontalCoordinate,Ze=this.internal.getVerticalCoordinate,ot=this.internal.Point,Lt=this.internal.Rectangle,At=this.internal.Matrix,mr=new qr}]);var Qr=function(jr){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var In=jr;Object.defineProperty(this,"pdf",{get:function(){return In}});var Qn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Qn},set:function(ji){Qn=Boolean(ji)}});var qn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return qn},set:function(ji){qn=Boolean(ji)}});var si=0;Object.defineProperty(this,"posX",{get:function(){return si},set:function(ji){isNaN(ji)||(si=ji)}});var Ci=0;Object.defineProperty(this,"posY",{get:function(){return Ci},set:function(ji){isNaN(ji)||(Ci=ji)}}),Object.defineProperty(this,"margin",{get:function(){return mr.margin},set:function(ji){var ha;typeof ji=="number"?ha=[ji,ji,ji,ji]:((ha=new Array(4))[0]=ji[0],ha[1]=ji.length>=2?ji[1]:ha[0],ha[2]=ji.length>=3?ji[2]:ha[0],ha[3]=ji.length>=4?ji[3]:ha[1]),mr.margin=ha}});var ki=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ki},set:function(ji){ki=ji}});var Ri=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ri},set:function(ji){Ri=ji}});var oa=[];Object.defineProperty(this,"pageBreaks",{get:function(){return oa},set:function(ji){oa=ji}}),Object.defineProperty(this,"ctx",{get:function(){return mr},set:function(ji){ji instanceof qr&&(mr=ji)}}),Object.defineProperty(this,"path",{get:function(){return mr.path},set:function(ji){mr.path=ji}});var ma=[];Object.defineProperty(this,"ctxStack",{get:function(){return ma},set:function(ji){ma=ji}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ji){var ha;ha=gn(ji),this.ctx.fillStyle=ha.style,this.ctx.isFillTransparent=ha.a===0,this.ctx.fillOpacity=ha.a,this.pdf.setFillColor(ha.r,ha.g,ha.b,{a:ha.a}),this.pdf.setTextColor(ha.r,ha.g,ha.b,{a:ha.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ji){var ha=gn(ji);this.ctx.strokeStyle=ha.style,this.ctx.isStrokeTransparent=ha.a===0,this.ctx.strokeOpacity=ha.a,ha.a===0?this.pdf.setDrawColor(255,255,255):(ha.a,this.pdf.setDrawColor(ha.r,ha.g,ha.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ji){["butt","round","square"].indexOf(ji)!==-1&&(this.ctx.lineCap=ji,this.pdf.setLineCap(ji))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ji){isNaN(ji)||(this.ctx.lineWidth=ji,this.pdf.setLineWidth(ji))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ji){["bevel","round","miter"].indexOf(ji)!==-1&&(this.ctx.lineJoin=ji,this.pdf.setLineJoin(ji))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ji){isNaN(ji)||(this.ctx.miterLimit=ji,this.pdf.setMiterLimit(ji))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ji){this.ctx.textBaseline=ji}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ji){["right","end","center","left","start"].indexOf(ji)!==-1&&(this.ctx.textAlign=ji)}});var aa=null;function ba(Pn,ji){if(aa===null){var ha=function(ta){var ra=[];return Object.keys(ta).forEach(function(Nr){ta[Nr].forEach(function(Er){var On=null;switch(Er){case"bold":On={family:Nr,weight:"bold"};break;case"italic":On={family:Nr,style:"italic"};break;case"bolditalic":On={family:Nr,weight:"bold",style:"italic"};break;case"":case"normal":On={family:Nr}}On!==null&&(On.ref={name:Nr,style:Er},ra.push(On))})}),ra}(Pn.getFontList());aa=function(ta){for(var ra={},Nr=0;Nr<ta.length;++Nr){var Er=jt(ta[Nr]),On=Er.family,gr=Er.stretch,Pr=Er.style,Xr=Er.weight;ra[On]=ra[On]||{},ra[On][gr]=ra[On][gr]||{},ra[On][gr][Pr]=ra[On][gr][Pr]||{},ra[On][gr][Pr][Xr]=Er}return ra}(ha.concat(ji))}return aa}var bi=null;Object.defineProperty(this,"fontFaces",{get:function(){return bi},set:function(ji){aa=null,bi=ji}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ji){var ha;if(this.ctx.font=ji,(ha=/^\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(ji))!==null){var ta=ha[1],ra=(ha[2],ha[3]),Nr=ha[4],Er=(ha[5],ha[6]),On=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Nr)[2];Nr=On==="px"?Math.floor(parseFloat(Nr)*this.pdf.internal.scaleFactor):On==="em"?Math.floor(parseFloat(Nr)*this.pdf.getFontSize()):Math.floor(parseFloat(Nr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Nr);var gr=function(Dr){var an,Cn,Nn=[],En=Dr.trim();if(En==="")return Rn;if(En in mt)return[mt[En]];for(;En!=="";){switch(Cn=null,an=(En=Cr(En)).charAt(0)){case'"':case"'":Cn=nn(En.substring(1),an);break;default:Cn=mn(En)}if(Cn===null)return Rn;if(Nn.push(Cn[0]),(En=Cr(Cn[1]))!==""&&En.charAt(0)!==",")return Rn;En=En.replace(/^,/,"")}return Nn}(Er);if(this.fontFaces){var Pr=tt(ba(this.pdf,this.fontFaces),gr.map(function(Dr){return{family:Dr,stretch:"normal",weight:ra,style:ta}}));this.pdf.setFont(Pr.ref.name,Pr.ref.style)}else{var Xr="";(ra==="bold"||parseInt(ra,10)>=700||ta==="bold")&&(Xr="bold"),ta==="italic"&&(Xr+="italic"),Xr.length===0&&(Xr="normal");for(var cn="",Un={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"},Nt=0;Nt<gr.length;Nt++){if(this.pdf.internal.getFont(gr[Nt],Xr,{noFallback:!0,disableWarning:!0})!==void 0){cn=gr[Nt];break}if(Xr==="bolditalic"&&this.pdf.internal.getFont(gr[Nt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)cn=gr[Nt],Xr="bold";else if(this.pdf.internal.getFont(gr[Nt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){cn=gr[Nt],Xr="normal";break}}if(cn===""){for(var Lr=0;Lr<gr.length;Lr++)if(Un[gr[Lr]]){cn=Un[gr[Lr]];break}}cn=cn===""?"Times":cn,this.pdf.setFont(cn,Xr)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ji){this.ctx.globalCompositeOperation=ji}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ji){this.ctx.globalAlpha=ji}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ji){this.ctx.lineDashOffset=ji,hi.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ji){this.ctx.lineDash=ji,hi.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ji){this.ctx.ignoreClearRect=Boolean(ji)}})};Qr.prototype.setLineDash=function(An){this.lineDash=An},Qr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Qr.prototype.fill=function(){mi.call(this,"fill",!1)},Qr.prototype.stroke=function(){mi.call(this,"stroke",!1)},Qr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Qr.prototype.moveTo=function(An,jr){if(isNaN(An)||isNaN(jr))throw d.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var In=this.ctx.transform.applyToPoint(new ot(An,jr));this.path.push({type:"mt",x:In.x,y:In.y}),this.ctx.lastPoint=new ot(An,jr)},Qr.prototype.closePath=function(){var An=new ot(0,0),jr=0;for(jr=this.path.length-1;jr!==-1;jr--)if(this.path[jr].type==="begin"&&S()(this.path[jr+1])==="object"&&typeof this.path[jr+1].x=="number"){An=new ot(this.path[jr+1].x,this.path[jr+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new ot(An.x,An.y)},Qr.prototype.lineTo=function(An,jr){if(isNaN(An)||isNaN(jr))throw d.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var In=this.ctx.transform.applyToPoint(new ot(An,jr));this.path.push({type:"lt",x:In.x,y:In.y}),this.ctx.lastPoint=new ot(In.x,In.y)},Qr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),mi.call(this,null,!0)},Qr.prototype.quadraticCurveTo=function(An,jr,In,Qn){if(isNaN(In)||isNaN(Qn)||isNaN(An)||isNaN(jr))throw d.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var qn=this.ctx.transform.applyToPoint(new ot(In,Qn)),si=this.ctx.transform.applyToPoint(new ot(An,jr));this.path.push({type:"qct",x1:si.x,y1:si.y,x:qn.x,y:qn.y}),this.ctx.lastPoint=new ot(qn.x,qn.y)},Qr.prototype.bezierCurveTo=function(An,jr,In,Qn,qn,si){if(isNaN(qn)||isNaN(si)||isNaN(An)||isNaN(jr)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ci=this.ctx.transform.applyToPoint(new ot(qn,si)),ki=this.ctx.transform.applyToPoint(new ot(An,jr)),Ri=this.ctx.transform.applyToPoint(new ot(In,Qn));this.path.push({type:"bct",x1:ki.x,y1:ki.y,x2:Ri.x,y2:Ri.y,x:Ci.x,y:Ci.y}),this.ctx.lastPoint=new ot(Ci.x,Ci.y)},Qr.prototype.arc=function(An,jr,In,Qn,qn,si){if(isNaN(An)||isNaN(jr)||isNaN(In)||isNaN(Qn)||isNaN(qn))throw d.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(si=Boolean(si),!this.ctx.transform.isIdentity){var Ci=this.ctx.transform.applyToPoint(new ot(An,jr));An=Ci.x,jr=Ci.y;var ki=this.ctx.transform.applyToPoint(new ot(0,In)),Ri=this.ctx.transform.applyToPoint(new ot(0,0));In=Math.sqrt(Math.pow(ki.x-Ri.x,2)+Math.pow(ki.y-Ri.y,2))}Math.abs(qn-Qn)>=2*Math.PI&&(Qn=0,qn=2*Math.PI),this.path.push({type:"arc",x:An,y:jr,radius:In,startAngle:Qn,endAngle:qn,counterclockwise:si})},Qr.prototype.arcTo=function(An,jr,In,Qn,qn){throw new Error("arcTo not implemented.")},Qr.prototype.rect=function(An,jr,In,Qn){if(isNaN(An)||isNaN(jr)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(An,jr),this.lineTo(An+In,jr),this.lineTo(An+In,jr+Qn),this.lineTo(An,jr+Qn),this.lineTo(An,jr),this.lineTo(An+In,jr),this.lineTo(An,jr)},Qr.prototype.fillRect=function(An,jr,In,Qn){if(isNaN(An)||isNaN(jr)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!yr.call(this)){var qn={};this.lineCap!=="butt"&&(qn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(qn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(An,jr,In,Qn),this.fill(),qn.hasOwnProperty("lineCap")&&(this.lineCap=qn.lineCap),qn.hasOwnProperty("lineJoin")&&(this.lineJoin=qn.lineJoin)}},Qr.prototype.strokeRect=function(An,jr,In,Qn){if(isNaN(An)||isNaN(jr)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Vn.call(this)||(this.beginPath(),this.rect(An,jr,In,Qn),this.stroke())},Qr.prototype.clearRect=function(An,jr,In,Qn){if(isNaN(An)||isNaN(jr)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(An,jr,In,Qn))},Qr.prototype.save=function(An){An=typeof An!="boolean"||An;for(var jr=this.pdf.internal.getCurrentPageInfo().pageNumber,In=0;In<this.pdf.internal.getNumberOfPages();In++)this.pdf.setPage(In+1),this.pdf.internal.out("q");if(this.pdf.setPage(jr),An){this.ctx.fontSize=this.pdf.internal.getFontSize();var Qn=new qr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Qn}},Qr.prototype.restore=function(An){An=typeof An!="boolean"||An;for(var jr=this.pdf.internal.getCurrentPageInfo().pageNumber,In=0;In<this.pdf.internal.getNumberOfPages();In++)this.pdf.setPage(In+1),this.pdf.internal.out("Q");this.pdf.setPage(jr),An&&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)},Qr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var gn=function(jr){var In,Qn,qn,si;if(jr.isCanvasGradient===!0&&(jr=jr.getColor()),!jr)return{r:0,g:0,b:0,a:0,style:jr};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(jr))In=0,Qn=0,qn=0,si=0;else{var Ci=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(jr);if(Ci!==null)In=parseInt(Ci[1]),Qn=parseInt(Ci[2]),qn=parseInt(Ci[3]),si=1;else if((Ci=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(jr))!==null)In=parseInt(Ci[1]),Qn=parseInt(Ci[2]),qn=parseInt(Ci[3]),si=parseFloat(Ci[4]);else{if(si=1,typeof jr=="string"&&jr.charAt(0)!=="#"){var ki=new u(jr);jr=ki.ok?ki.toHex():"#000000"}jr.length===4?(In=jr.substring(1,2),In+=In,Qn=jr.substring(2,3),Qn+=Qn,qn=jr.substring(3,4),qn+=qn):(In=jr.substring(1,3),Qn=jr.substring(3,5),qn=jr.substring(5,7)),In=parseInt(In,16),Qn=parseInt(Qn,16),qn=parseInt(qn,16)}}return{r:In,g:Qn,b:qn,a:si,style:jr}},yr=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},Vn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Qr.prototype.fillText=function(An,jr,In,Qn){if(isNaN(jr)||isNaN(In)||typeof An!="string")throw d.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Qn=isNaN(Qn)?void 0:Qn,!yr.call(this)){var qn=Fr(this.ctx.transform.rotation),si=this.ctx.transform.scaleX;Wt.call(this,{text:An,x:jr,y:In,scale:si,angle:qn,align:this.textAlign,maxWidth:Qn})}},Qr.prototype.strokeText=function(An,jr,In,Qn){if(isNaN(jr)||isNaN(In)||typeof An!="string")throw d.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Vn.call(this)){Qn=isNaN(Qn)?void 0:Qn;var qn=Fr(this.ctx.transform.rotation),si=this.ctx.transform.scaleX;Wt.call(this,{text:An,x:jr,y:In,scale:si,renderingMode:"stroke",angle:qn,align:this.textAlign,maxWidth:Qn})}},Qr.prototype.measureText=function(An){if(typeof An!="string")throw d.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var jr=this.pdf,In=this.pdf.internal.scaleFactor,Qn=jr.internal.getFontSize(),qn=jr.getStringUnitWidth(An)*Qn/jr.internal.scaleFactor,si=function(ki){var Ri=(ki=ki||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ri}}),this};return new si({width:qn*=Math.round(96*In/72*1e4)/1e4})},Qr.prototype.scale=function(An,jr){if(isNaN(An)||isNaN(jr))throw d.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var In=new At(An,0,0,jr,0,0);this.ctx.transform=this.ctx.transform.multiply(In)},Qr.prototype.rotate=function(An){if(isNaN(An))throw d.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var jr=new At(Math.cos(An),Math.sin(An),-Math.sin(An),Math.cos(An),0,0);this.ctx.transform=this.ctx.transform.multiply(jr)},Qr.prototype.translate=function(An,jr){if(isNaN(An)||isNaN(jr))throw d.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var In=new At(1,0,0,1,An,jr);this.ctx.transform=this.ctx.transform.multiply(In)},Qr.prototype.transform=function(An,jr,In,Qn,qn,si){if(isNaN(An)||isNaN(jr)||isNaN(In)||isNaN(Qn)||isNaN(qn)||isNaN(si))throw d.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ci=new At(An,jr,In,Qn,qn,si);this.ctx.transform=this.ctx.transform.multiply(Ci)},Qr.prototype.setTransform=function(An,jr,In,Qn,qn,si){An=isNaN(An)?1:An,jr=isNaN(jr)?0:jr,In=isNaN(In)?0:In,Qn=isNaN(Qn)?1:Qn,qn=isNaN(qn)?0:qn,si=isNaN(si)?0:si,this.ctx.transform=new At(An,jr,In,Qn,qn,si)};var Br=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Qr.prototype.drawImage=function(An,jr,In,Qn,qn,si,Ci,ki,Ri){var oa=this.pdf.getImageProperties(An),ma=1,aa=1,ba=1,bi=1;Qn!==void 0&&ki!==void 0&&(ba=ki/Qn,bi=Ri/qn,ma=oa.width/Qn*ki/Qn,aa=oa.height/qn*Ri/qn),si===void 0&&(si=jr,Ci=In,jr=0,In=0),Qn!==void 0&&ki===void 0&&(ki=Qn,Ri=qn),Qn===void 0&&ki===void 0&&(ki=oa.width,Ri=oa.height);for(var Pn,ji=this.ctx.transform.decompose(),ha=Fr(ji.rotate.shx),ta=new At,ra=(ta=(ta=(ta=ta.multiply(ji.translate)).multiply(ji.skew)).multiply(ji.scale)).applyToRectangle(new Lt(si-jr*ba,Ci-In*bi,Qn*ma,qn*aa)),Nr=jn.call(this,ra),Er=[],On=0;On<Nr.length;On+=1)Er.indexOf(Nr[On])===-1&&Er.push(Nr[On]);if(ti(Er),this.autoPaging)for(var gr=Er[0],Pr=Er[Er.length-1],Xr=gr;Xr<Pr+1;Xr++){this.pdf.setPage(Xr);var cn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Un=Xr===1?this.posY+this.margin[0]:this.margin[0],Nt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Lr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Dr=Xr===1?0:Nt+(Xr-2)*Lr;if(this.ctx.clip_path.length!==0){var an=this.path;Pn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=tn(Pn,this.posX+this.margin[3],-Dr+Un+this.ctx.prevPageLastElemOffset),Pi.call(this,"fill",!0),this.path=an}var Cn=JSON.parse(JSON.stringify(ra));Cn=tn([Cn],this.posX+this.margin[3],-Dr+Un+this.ctx.prevPageLastElemOffset)[0];var Nn=(Xr>gr||Xr<Pr)&&Br.call(this);Nn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],cn,Lr,null).clip().discardPath()),this.pdf.addImage(An,"JPEG",Cn.x,Cn.y,Cn.w,Cn.h,null,null,ha),Nn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(An,"JPEG",ra.x,ra.y,ra.w,ra.h,null,null,ha)};var jn=function(jr,In,Qn){var qn=[];In=In||this.pdf.internal.pageSize.width,Qn=Qn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var si=this.posY+this.ctx.prevPageLastElemOffset;switch(jr.type){default:case"mt":case"lt":qn.push(Math.floor((jr.y+si)/Qn)+1);break;case"arc":qn.push(Math.floor((jr.y+si-jr.radius)/Qn)+1),qn.push(Math.floor((jr.y+si+jr.radius)/Qn)+1);break;case"qct":var Ci=Xn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,jr.x1,jr.y1,jr.x,jr.y);qn.push(Math.floor((Ci.y+si)/Qn)+1),qn.push(Math.floor((Ci.y+Ci.h+si)/Qn)+1);break;case"bct":var ki=Fn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,jr.x1,jr.y1,jr.x2,jr.y2,jr.x,jr.y);qn.push(Math.floor((ki.y+si)/Qn)+1),qn.push(Math.floor((ki.y+ki.h+si)/Qn)+1);break;case"rect":qn.push(Math.floor((jr.y+si)/Qn)+1),qn.push(Math.floor((jr.y+jr.h+si)/Qn)+1)}for(var Ri=0;Ri<qn.length;Ri+=1)for(;this.pdf.internal.getNumberOfPages()<qn[Ri];)xn.call(this);return qn},xn=function(){var jr=this.fillStyle,In=this.strokeStyle,Qn=this.font,qn=this.lineCap,si=this.lineWidth,Ci=this.lineJoin;this.pdf.addPage(),this.fillStyle=jr,this.strokeStyle=In,this.font=Qn,this.lineCap=qn,this.lineWidth=si,this.lineJoin=Ci},tn=function(jr,In,Qn){for(var qn=0;qn<jr.length;qn++)switch(jr[qn].type){case"bct":jr[qn].x2+=In,jr[qn].y2+=Qn;case"qct":jr[qn].x1+=In,jr[qn].y1+=Qn;case"mt":case"lt":case"arc":default:jr[qn].x+=In,jr[qn].y+=Qn}return jr},ti=function(jr){return jr.sort(function(In,Qn){return In-Qn})},mi=function(jr,In){for(var Qn,qn,si=this.fillStyle,Ci=this.strokeStyle,ki=this.lineCap,Ri=this.lineWidth,oa=Math.abs(Ri*this.ctx.transform.scaleX),ma=this.lineJoin,aa=JSON.parse(JSON.stringify(this.path)),ba=JSON.parse(JSON.stringify(this.path)),bi=[],Pn=0;Pn<ba.length;Pn++)if(ba[Pn].x!==void 0)for(var ji=jn.call(this,ba[Pn]),ha=0;ha<ji.length;ha+=1)bi.indexOf(ji[ha])===-1&&bi.push(ji[ha]);for(var ta=0;ta<bi.length;ta++)for(;this.pdf.internal.getNumberOfPages()<bi[ta];)xn.call(this);if(ti(bi),this.autoPaging)for(var ra=bi[0],Nr=bi[bi.length-1],Er=ra;Er<Nr+1;Er++){this.pdf.setPage(Er),this.fillStyle=si,this.strokeStyle=Ci,this.lineCap=ki,this.lineWidth=oa,this.lineJoin=ma;var On=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],gr=Er===1?this.posY+this.margin[0]:this.margin[0],Pr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Xr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],cn=Er===1?0:Pr+(Er-2)*Xr;if(this.ctx.clip_path.length!==0){var Un=this.path;Qn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=tn(Qn,this.posX+this.margin[3],-cn+gr+this.ctx.prevPageLastElemOffset),Pi.call(this,jr,!0),this.path=Un}if(qn=JSON.parse(JSON.stringify(aa)),this.path=tn(qn,this.posX+this.margin[3],-cn+gr+this.ctx.prevPageLastElemOffset),In===!1||Er===0){var Nt=(Er>ra||Er<Nr)&&Br.call(this);Nt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],On,Xr,null).clip().discardPath()),Pi.call(this,jr,In),Nt&&this.pdf.restoreGraphicsState()}this.lineWidth=Ri}else this.lineWidth=oa,Pi.call(this,jr,In),this.lineWidth=Ri;this.path=aa},Pi=function(jr,In){if((jr!=="stroke"||In||!Vn.call(this))&&(jr==="stroke"||In||!yr.call(this))){for(var Qn,qn,si=[],Ci=this.path,ki=0;ki<Ci.length;ki++){var Ri=Ci[ki];switch(Ri.type){case"begin":si.push({begin:!0});break;case"close":si.push({close:!0});break;case"mt":si.push({start:Ri,deltas:[],abs:[]});break;case"lt":var oa=si.length;if(Ci[ki-1]&&!isNaN(Ci[ki-1].x)&&(Qn=[Ri.x-Ci[ki-1].x,Ri.y-Ci[ki-1].y],oa>0)){for(;oa>=0;oa--)if(si[oa-1].close!==!0&&si[oa-1].begin!==!0){si[oa-1].deltas.push(Qn),si[oa-1].abs.push(Ri);break}}break;case"bct":Qn=[Ri.x1-Ci[ki-1].x,Ri.y1-Ci[ki-1].y,Ri.x2-Ci[ki-1].x,Ri.y2-Ci[ki-1].y,Ri.x-Ci[ki-1].x,Ri.y-Ci[ki-1].y],si[si.length-1].deltas.push(Qn);break;case"qct":var ma=Ci[ki-1].x+2/3*(Ri.x1-Ci[ki-1].x),aa=Ci[ki-1].y+2/3*(Ri.y1-Ci[ki-1].y),ba=Ri.x+2/3*(Ri.x1-Ri.x),bi=Ri.y+2/3*(Ri.y1-Ri.y),Pn=Ri.x,ji=Ri.y;Qn=[ma-Ci[ki-1].x,aa-Ci[ki-1].y,ba-Ci[ki-1].x,bi-Ci[ki-1].y,Pn-Ci[ki-1].x,ji-Ci[ki-1].y],si[si.length-1].deltas.push(Qn);break;case"arc":si.push({deltas:[],abs:[],arc:!0}),Array.isArray(si[si.length-1].abs)&&si[si.length-1].abs.push(Ri)}}qn=In?null:jr==="stroke"?"stroke":"fill";for(var ha=!1,ta=0;ta<si.length;ta++)if(si[ta].arc)for(var ra=si[ta].abs,Nr=0;Nr<ra.length;Nr++){var Er=ra[Nr];Er.type==="arc"?Yn.call(this,Er.x,Er.y,Er.radius,Er.startAngle,Er.endAngle,Er.counterclockwise,void 0,In,!ha):Xt.call(this,Er.x,Er.y),ha=!0}else if(si[ta].close===!0)this.pdf.internal.out("h"),ha=!1;else if(si[ta].begin!==!0){var On=si[ta].start.x,gr=si[ta].start.y;kt.call(this,si[ta].deltas,On,gr),ha=!0}qn&&Yt.call(this,qn),In&&Dt.call(this)}},en=function(jr){var In=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Qn=In*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return jr-Qn;case"top":return jr+In-Qn;case"hanging":return jr+In-2*Qn;case"middle":return jr+In/2-Qn;case"ideographic":return jr;case"alphabetic":default:return jr}},Tn=function(jr){return jr+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Qr.prototype.createLinearGradient=function(){var An=function(){};return An.colorStops=[],An.addColorStop=function(jr,In){this.colorStops.push([jr,In])},An.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},An.isCanvasGradient=!0,An},Qr.prototype.createPattern=function(){return this.createLinearGradient()},Qr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Yn=function(jr,In,Qn,qn,si,Ci,ki,Ri,oa){for(var ma=br.call(this,Qn,qn,si,Ci),aa=0;aa<ma.length;aa++){var ba=ma[aa];aa===0&&(oa?Bt.call(this,ba.x1+jr,ba.y1+In):Xt.call(this,ba.x1+jr,ba.y1+In)),hr.call(this,jr,In,ba.x2,ba.y2,ba.x3,ba.y3,ba.x4,ba.y4)}Ri?Dt.call(this):Yt.call(this,ki)},Yt=function(jr){switch(jr){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Dt=function(){this.pdf.clip(),this.pdf.discardPath()},Bt=function(jr,In){this.pdf.internal.out(je(jr)+" "+Xe(In)+" m")},Wt=function(jr){var In;switch(jr.align){case"right":case"end":In="right";break;case"center":In="center";break;case"left":case"start":default:In="left"}var Qn=this.pdf.getTextDimensions(jr.text),qn=en.call(this,jr.y),si=Tn.call(this,qn)-Qn.h,Ci=this.ctx.transform.applyToPoint(new ot(jr.x,qn)),ki=this.ctx.transform.decompose(),Ri=new At;Ri=(Ri=(Ri=Ri.multiply(ki.translate)).multiply(ki.skew)).multiply(ki.scale);for(var oa,ma,aa,ba=this.ctx.transform.applyToRectangle(new Lt(jr.x,qn,Qn.w,Qn.h)),bi=Ri.applyToRectangle(new Lt(jr.x,si,Qn.w,Qn.h)),Pn=jn.call(this,bi),ji=[],ha=0;ha<Pn.length;ha+=1)ji.indexOf(Pn[ha])===-1&&ji.push(Pn[ha]);if(ti(ji),this.autoPaging)for(var ta=ji[0],ra=ji[ji.length-1],Nr=ta;Nr<ra+1;Nr++){this.pdf.setPage(Nr);var Er=Nr===1?this.posY+this.margin[0]:this.margin[0],On=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],gr=this.pdf.internal.pageSize.height-this.margin[2],Pr=gr-this.margin[0],Xr=this.pdf.internal.pageSize.width-this.margin[1],cn=Xr-this.margin[3],Un=Nr===1?0:On+(Nr-2)*Pr;if(this.ctx.clip_path.length!==0){var Nt=this.path;oa=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=tn(oa,this.posX+this.margin[3],-1*Un+Er),Pi.call(this,"fill",!0),this.path=Nt}var Lr=tn([JSON.parse(JSON.stringify(bi))],this.posX+this.margin[3],-Un+Er+this.ctx.prevPageLastElemOffset)[0];jr.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*jr.scale),aa=this.lineWidth,this.lineWidth=aa*jr.scale);var Dr=this.autoPaging!=="text";if(Dr||Lr.y+Lr.h<=gr){if(Dr||Lr.y>=Er&&Lr.x<=Xr){var an=Dr?jr.text:this.pdf.splitTextToSize(jr.text,jr.maxWidth||Xr-Lr.x)[0],Cn=tn([JSON.parse(JSON.stringify(ba))],this.posX+this.margin[3],-Un+Er+this.ctx.prevPageLastElemOffset)[0],Nn=Dr&&(Nr>ta||Nr<ra)&&Br.call(this);Nn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],cn,Pr,null).clip().discardPath()),this.pdf.text(an,Cn.x,Cn.y,{angle:jr.angle,align:In,renderingMode:jr.renderingMode}),Nn&&this.pdf.restoreGraphicsState()}}else Lr.y<gr&&(this.ctx.prevPageLastElemOffset+=gr-Lr.y);jr.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=aa)}else jr.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*jr.scale),aa=this.lineWidth,this.lineWidth=aa*jr.scale),this.pdf.text(jr.text,Ci.x+this.posX,Ci.y+this.posY,{angle:jr.angle,align:In,renderingMode:jr.renderingMode,maxWidth:jr.maxWidth}),jr.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=aa)},Xt=function(jr,In,Qn,qn){Qn=Qn||0,qn=qn||0,this.pdf.internal.out(je(jr+Qn)+" "+Xe(In+qn)+" l")},kt=function(jr,In,Qn){return this.pdf.lines(jr,In,Qn,null,null)},hr=function(jr,In,Qn,qn,si,Ci,ki,Ri){this.pdf.internal.out([Le(it(Qn+jr)),Le(Ze(qn+In)),Le(it(si+jr)),Le(Ze(Ci+In)),Le(it(ki+jr)),Le(Ze(Ri+In)),"c"].join(" "))},br=function(jr,In,Qn,qn){for(var si=2*Math.PI,Ci=Math.PI/2;In>Qn;)In-=si;var ki=Math.abs(Qn-In);ki<si&&qn&&(ki=si-ki);for(var Ri=[],oa=qn?-1:1,ma=In;ki>1e-5;){var aa=ma+oa*Math.min(ki,Ci);Ri.push(wr.call(this,jr,ma,aa)),ki-=Math.abs(aa-ma),ma=aa}return Ri},wr=function(jr,In,Qn){var qn=(Qn-In)/2,si=jr*Math.cos(qn),Ci=jr*Math.sin(qn),ki=si,Ri=-Ci,oa=ki*ki+Ri*Ri,ma=oa+ki*si+Ri*Ci,aa=4/3*(Math.sqrt(2*oa*ma)-ma)/(ki*Ci-Ri*si),ba=ki-aa*Ri,bi=Ri+aa*ki,Pn=ba,ji=-bi,ha=qn+In,ta=Math.cos(ha),ra=Math.sin(ha);return{x1:jr*Math.cos(In),y1:jr*Math.sin(In),x2:ba*ta-bi*ra,y2:ba*ra+bi*ta,x3:Pn*ta-ji*ra,y3:Pn*ra+ji*ta,x4:jr*Math.cos(Qn),y4:jr*Math.sin(Qn)}},Fr=function(jr){return 180*jr/Math.PI},Xn=function(jr,In,Qn,qn,si,Ci){var ki=jr+.5*(Qn-jr),Ri=In+.5*(qn-In),oa=si+.5*(Qn-si),ma=Ci+.5*(qn-Ci),aa=Math.min(jr,si,ki,oa),ba=Math.max(jr,si,ki,oa),bi=Math.min(In,Ci,Ri,ma),Pn=Math.max(In,Ci,Ri,ma);return new Lt(aa,bi,ba-aa,Pn-bi)},Fn=function(jr,In,Qn,qn,si,Ci,ki,Ri){var oa,ma,aa,ba,bi,Pn,ji,ha,ta,ra,Nr,Er,On,gr,Pr=Qn-jr,Xr=qn-In,cn=si-Qn,Un=Ci-qn,Nt=ki-si,Lr=Ri-Ci;for(ma=0;ma<41;ma++)ta=(ji=(aa=jr+(oa=ma/40)*Pr)+oa*((bi=Qn+oa*cn)-aa))+oa*(bi+oa*(si+oa*Nt-bi)-ji),ra=(ha=(ba=In+oa*Xr)+oa*((Pn=qn+oa*Un)-ba))+oa*(Pn+oa*(Ci+oa*Lr-Pn)-ha),ma==0?(Nr=ta,Er=ra,On=ta,gr=ra):(Nr=Math.min(Nr,ta),Er=Math.min(Er,ra),On=Math.max(On,ta),gr=Math.max(gr,ra));return new Lt(Math.round(Nr),Math.round(Er),Math.round(On-Nr),Math.round(gr-Er))},hi=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var jr,In,Qn=(jr=this.ctx.lineDash,In=this.ctx.lineDashOffset,JSON.stringify({lineDash:jr,lineDashOffset:In}));this.prevLineDash!==Qn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Qn)}}}(z.API),function(at){var Le=function(ot){var Lt,At,mr,qr,Qr,gn,yr,Vn,Br,jn;for(/[^\x00-\xFF]/.test(ot),At=[],mr=0,qr=(ot+=Lt="\0\0\0\0".slice(ot.length%4||4)).length;qr>mr;mr+=4)(Qr=(ot.charCodeAt(mr)<<24)+(ot.charCodeAt(mr+1)<<16)+(ot.charCodeAt(mr+2)<<8)+ot.charCodeAt(mr+3))!==0?(gn=(Qr=((Qr=((Qr=((Qr=(Qr-(jn=Qr%85))/85)-(Br=Qr%85))/85)-(Vn=Qr%85))/85)-(yr=Qr%85))/85)%85,At.push(gn+33,yr+33,Vn+33,Br+33,jn+33)):At.push(122);return function(xn,tn){for(var ti=tn;ti>0;ti--)xn.pop()}(At,Lt.length),String.fromCharCode.apply(String,At)+"~>"},je=function(ot){var Lt,At,mr,qr,Qr,gn=String,yr="length",Vn=255,Br="charCodeAt",jn="slice",xn="replace";for(ot[jn](-2),ot=ot[jn](0,-2)[xn](/\s/g,"")[xn]("z","!!!!!"),mr=[],qr=0,Qr=(ot+=Lt="uuuuu"[jn](ot[yr]%5||5))[yr];Qr>qr;qr+=5)At=52200625*(ot[Br](qr)-33)+614125*(ot[Br](qr+1)-33)+7225*(ot[Br](qr+2)-33)+85*(ot[Br](qr+3)-33)+(ot[Br](qr+4)-33),mr.push(Vn&At>>24,Vn&At>>16,Vn&At>>8,Vn&At);return function(tn,ti){for(var mi=ti;mi>0;mi--)tn.pop()}(mr,Lt[yr]),gn.fromCharCode.apply(gn,mr)},Xe=function(ot){var Lt=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((ot=ot.replace(/\s/g,"")).indexOf(">")!==-1&&(ot=ot.substr(0,ot.indexOf(">"))),ot.length%2&&(ot+="0"),Lt.test(ot)===!1)return"";for(var At="",mr=0;mr<ot.length;mr+=2)At+=String.fromCharCode("0x"+(ot[mr]+ot[mr+1]));return At},it=function(ot){for(var Lt=new Uint8Array(ot.length),At=ot.length;At--;)Lt[At]=ot.charCodeAt(At);return ot=(Lt=Object(m.b)(Lt)).reduce(function(mr,qr){return mr+String.fromCharCode(qr)},"")};at.processDataByFilters=function(Ze,ot){var Lt=0,At=Ze||"",mr=[];for(typeof(ot=ot||[])=="string"&&(ot=[ot]),Lt=0;Lt<ot.length;Lt+=1)switch(ot[Lt]){case"ASCII85Decode":case"/ASCII85Decode":At=je(At),mr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":At=Le(At),mr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":At=Xe(At),mr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":At=At.split("").map(function(qr){return("0"+qr.charCodeAt().toString(16)).slice(-2)}).join("")+">",mr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":At=it(At),mr.push("/FlateDecode");break;default:throw new Error('The filter: "'+ot[Lt]+'" is not implemented')}return{data:At,reverseChain:mr.reverse().join(" ")}}}(z.API),function(at){at.loadFile=function(Le,je,Xe){return function(it,Ze,ot){Ze=Ze!==!1,ot=typeof ot=="function"?ot:function(){};var Lt=void 0;try{Lt=function(At,mr,qr){var Qr=new XMLHttpRequest,gn=0,yr=function(Br){var jn=Br.length,xn=[],tn=String.fromCharCode;for(gn=0;gn<jn;gn+=1)xn.push(tn(255&Br.charCodeAt(gn)));return xn.join("")};if(Qr.open("GET",At,!mr),Qr.overrideMimeType("text/plain; charset=x-user-defined"),mr===!1&&(Qr.onload=function(){Qr.status===200?qr(yr(this.responseText)):qr(void 0)}),Qr.send(null),mr&&Qr.status===200)return yr(Qr.responseText)}(it,Ze,ot)}catch(At){}return Lt}(Le,je,Xe)},at.loadImageFile=at.loadFile}(z.API),function(at){function Le(){return(p.html2canvas?Promise.resolve(p.html2canvas):Promise.resolve().then(n.t.bind(null,"wOnQ",7))).catch(function(ot){return Promise.reject(new Error("Could not load html2canvas: "+ot))}).then(function(ot){return ot.default?ot.default:ot})}function je(){return(p.DOMPurify?Promise.resolve(p.DOMPurify):n.e(245).then(n.t.bind(null,"qZ2Q",7))).catch(function(ot){return Promise.reject(new Error("Could not load dompurify: "+ot))}).then(function(ot){return ot.default?ot.default:ot})}var Xe=function(Lt){var At=S()(Lt);return At==="undefined"?"undefined":At==="string"||Lt instanceof String?"string":At==="number"||Lt instanceof Number?"number":At==="function"||Lt instanceof Function?"function":Lt&&Lt.constructor===Array?"array":Lt&&Lt.nodeType===1?"element":At==="object"?"object":"unknown"},it=function(Lt,At){var mr=document.createElement(Lt);for(var qr in At.className&&(mr.className=At.className),At.innerHTML&&At.dompurify&&(mr.innerHTML=At.dompurify.sanitize(At.innerHTML)),At.style)mr.style[qr]=At.style[qr];return mr},Ze=function ot(Lt){var At=Object.assign(ot.convert(Promise.resolve()),JSON.parse(JSON.stringify(ot.template))),mr=ot.convert(Promise.resolve(),At);return mr=(mr=mr.setProgress(1,ot,1,[ot])).set(Lt)};(Ze.prototype=Object.create(Promise.prototype)).constructor=Ze,Ze.convert=function(ot,Lt){return ot.__proto__=Lt||Ze.prototype,ot},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(ot,Lt){return this.then(function(){switch(Lt=Lt||function(At){switch(Xe(At)){case"string":return"string";case"element":return At.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ot)){case"string":return this.then(je).then(function(At){return this.set({src:it("div",{innerHTML:ot,dompurify:At})})});case"element":return this.set({src:ot});case"canvas":return this.set({canvas:ot});case"img":return this.set({img:ot});default:return this.error("Unknown source type.")}})},Ze.prototype.to=function(ot){switch(ot){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 ot={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},Lt=function At(mr,qr){for(var Qr=mr.nodeType===3?document.createTextNode(mr.nodeValue):mr.cloneNode(!1),gn=mr.firstChild;gn;gn=gn.nextSibling)qr!==!0&&gn.nodeType===1&&gn.nodeName==="SCRIPT"||Qr.appendChild(At(gn,qr));return mr.nodeType===1&&(mr.nodeName==="CANVAS"?(Qr.width=mr.width,Qr.height=mr.height,Qr.getContext("2d").drawImage(mr,0,0)):mr.nodeName!=="TEXTAREA"&&mr.nodeName!=="SELECT"||(Qr.value=mr.value),Qr.addEventListener("load",function(){Qr.scrollTop=mr.scrollTop,Qr.scrollLeft=mr.scrollLeft},!0)),Qr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Lt.tagName==="BODY"&&(ot.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=it("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=it("div",{className:"html2pdf__container",style:ot}),this.prop.container.appendChild(Lt),this.prop.container.firstChild.appendChild(it("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 ot=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ot).then(Le).then(function(Lt){var At=Object.assign({},this.opt.html2canvas);return delete At.onrendered,Lt(this.prop.container,At)}).then(function(Lt){(this.opt.html2canvas.onrendered||function(){})(Lt),this.prop.canvas=Lt,document.body.removeChild(this.prop.overlay)})},Ze.prototype.toContext2d=function(){var ot=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ot).then(Le).then(function(Lt){var At=this.opt.jsPDF,mr=this.opt.fontFaces,qr=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,Qr=Object.assign({async:!0,allowTaint:!0,scale:qr,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 Qr.onrendered,At.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,At.context2d.posX=this.opt.x,At.context2d.posY=this.opt.y,At.context2d.margin=this.opt.margin,At.context2d.fontFaces=mr,mr)for(var gn=0;gn<mr.length;++gn){var yr=mr[gn],Vn=yr.src.find(function(Br){return Br.format==="truetype"});Vn&&At.addFont(Vn.url,yr.ref.name,yr.ref.style)}return Qr.windowHeight=Qr.windowHeight||0,Qr.windowHeight=Qr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Qr.windowHeight,At.context2d.save(!0),Lt(this.prop.container,Qr)}).then(function(Lt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Lt),this.prop.canvas=Lt,document.body.removeChild(this.prop.overlay)})},Ze.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var ot=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ot})},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(ot,Lt,At){return(At=At||"pdf").toLowerCase()==="img"||At.toLowerCase()==="image"?this.outputImg(ot,Lt):this.outputPdf(ot,Lt)},Ze.prototype.outputPdf=function(ot,Lt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(ot,Lt)})},Ze.prototype.outputImg=function(ot){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(ot){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 "'+ot+'" is not supported.'}})},Ze.prototype.save=function(ot){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(ot?{filename:ot}: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(ot){if(Xe(ot)!=="object")return this;var Lt=Object.keys(ot||{}).map(function(At){if(At in Ze.template.prop)return function(){this.prop[At]=ot[At]};switch(At){case"margin":return this.setMargin.bind(this,ot.margin);case"jsPDF":return function(){return this.opt.jsPDF=ot.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ot.pageSize);default:return function(){this.opt[At]=ot[At]}}},this);return this.then(function(){return this.thenList(Lt)})},Ze.prototype.get=function(ot,Lt){return this.then(function(){var At=ot in Ze.template.prop?this.prop[ot]:this.opt[ot];return Lt?Lt(At):At})},Ze.prototype.setMargin=function(ot){return this.then(function(){switch(Xe(ot)){case"number":ot=[ot,ot,ot,ot];case"array":if(ot.length===2&&(ot=[ot[0],ot[1],ot[0],ot[1]]),ot.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ot}).then(this.setPageSize)},Ze.prototype.setPageSize=function(ot){function Lt(At,mr){return Math.floor(At*mr/72*96)}return this.then(function(){(ot=ot||z.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(ot.inner={width:ot.width-this.opt.margin[1]-this.opt.margin[3],height:ot.height-this.opt.margin[0]-this.opt.margin[2]},ot.inner.px={width:Lt(ot.inner.width,ot.k),height:Lt(ot.inner.height,ot.k)},ot.inner.ratio=ot.inner.height/ot.inner.width),this.prop.pageSize=ot})},Ze.prototype.setProgress=function(ot,Lt,At,mr){return ot!=null&&(this.progress.val=ot),Lt!=null&&(this.progress.state=Lt),At!=null&&(this.progress.n=At),mr!=null&&(this.progress.stack=mr),this.progress.ratio=this.progress.val/this.progress.state,this},Ze.prototype.updateProgress=function(ot,Lt,At,mr){return this.setProgress(ot?this.progress.val+ot:null,Lt||null,At?this.progress.n+At:null,mr?this.progress.stack.concat(mr):null)},Ze.prototype.then=function(ot,Lt){var At=this;return this.thenCore(ot,Lt,function(mr,qr){return At.updateProgress(null,null,1,[mr]),Promise.prototype.then.call(this,function(Qr){return At.updateProgress(null,mr),Qr}).then(mr,qr).then(function(Qr){return At.updateProgress(1),Qr})})},Ze.prototype.thenCore=function(ot,Lt,At){At=At||Promise.prototype.then,ot&&(ot=ot.bind(this)),Lt&&(Lt=Lt.bind(this));var mr=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Ze.convert(Object.assign({},this),Promise.prototype),qr=At.call(mr,ot,Lt);return Ze.convert(qr,this.__proto__)},Ze.prototype.thenExternal=function(ot,Lt){return Promise.prototype.then.call(this,ot,Lt)},Ze.prototype.thenList=function(ot){var Lt=this;return ot.forEach(function(At){Lt=Lt.thenCore(At)}),Lt},Ze.prototype.catch=function(ot){ot&&(ot=ot.bind(this));var Lt=Promise.prototype.catch.call(this,ot);return Ze.convert(Lt,this)},Ze.prototype.catchExternal=function(ot){return Promise.prototype.catch.call(this,ot)},Ze.prototype.error=function(ot){return this.then(function(){throw new Error(ot)})},Ze.prototype.using=Ze.prototype.set,Ze.prototype.saveAs=Ze.prototype.save,Ze.prototype.export=Ze.prototype.output,Ze.prototype.run=Ze.prototype.then,z.getPageSize=function(ot,Lt,At){if(S()(ot)==="object"){var mr=ot;ot=mr.orientation,Lt=mr.unit||Lt,At=mr.format||At}Lt=Lt||"mm",At=At||"a4",ot=(""+(ot||"P")).toLowerCase();var qr,Qr=(""+At).toLowerCase(),gn={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(Lt){case"pt":qr=1;break;case"mm":qr=72/25.4;break;case"cm":qr=72/2.54;break;case"in":qr=72;break;case"px":qr=.75;break;case"pc":case"em":qr=12;break;case"ex":qr=6;break;default:throw"Invalid unit: "+Lt}var yr,Vn=0,Br=0;if(gn.hasOwnProperty(Qr))Vn=gn[Qr][1]/qr,Br=gn[Qr][0]/qr;else try{Vn=At[1],Br=At[0]}catch(jn){throw new Error("Invalid format: "+At)}if(ot==="p"||ot==="portrait")ot="p",Br>Vn&&(yr=Br,Br=Vn,Vn=yr);else{if(ot!=="l"&&ot!=="landscape")throw"Invalid orientation: "+ot;ot="l",Vn>Br&&(yr=Br,Br=Vn,Vn=yr)}return{width:Br,height:Vn,unit:Lt,k:qr,orientation:ot}},at.html=function(ot,Lt){(Lt=Lt||{}).callback=Lt.callback||function(){},Lt.html2canvas=Lt.html2canvas||{},Lt.html2canvas.canvas=Lt.html2canvas.canvas||this.canvas,Lt.jsPDF=Lt.jsPDF||this,Lt.fontFaces=Lt.fontFaces?Lt.fontFaces.map(jt):null;var At=new Ze(Lt);return Lt.worker?At:At.from(ot).doCallback()}}(z.API),z.API.addJS=function(at){return wn=at,this.internal.events.subscribe("postPutResources",function(){Bn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Bn+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),oi=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+wn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Bn!==void 0&&oi!==void 0&&this.internal.out("/Names <</JavaScript "+Bn+" 0 R>>")}),this},function(at){var Le;at.events.push(["postPutResources",function(){var je=this,Xe=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var it=je.outline.render().split(/\r\n/),Ze=0;Ze<it.length;Ze++){var ot=it[Ze],Lt=Xe.exec(ot);if(Lt!=null){var At=Lt[1];je.internal.newObjectDeferredBegin(At,!1)}je.internal.write(ot)}if(this.outline.createNamedDestinations){var mr=this.internal.pages.length,qr=[];for(Ze=0;Ze<mr;Ze++){var Qr=je.internal.newObject();qr.push(Qr);var gn=je.internal.getPageInfo(Ze+1);je.internal.write("<< /D["+gn.objId+" 0 R /XYZ null null null]>> endobj")}var yr=je.internal.newObject();for(je.internal.write("<< /Names [ "),Ze=0;Ze<qr.length;Ze++)je.internal.write("(page_"+(Ze+1)+")"+qr[Ze]+" 0 R");je.internal.write(" ] >>","endobj"),Le=je.internal.newObject(),je.internal.write("<< /Dests "+yr+" 0 R"),je.internal.write(">>","endobj")}}]),at.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 "+Le+" 0 R"))}]),at.events.push(["initialized",function(){var je=this;je.outline={createNamedDestinations:!1,root:{children:[]}},je.outline.add=function(Xe,it,Ze){var ot={title:it,options:Ze,children:[]};return Xe==null&&(Xe=this.root),Xe.children.push(ot),ot},je.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=je,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},je.outline.genIds_r=function(Xe){Xe.id=je.internal.newObjectDeferred();for(var it=0;it<Xe.children.length;it++)this.genIds_r(Xe.children[it])},je.outline.renderRoot=function(Xe){this.objStart(Xe),this.line("/Type /Outlines"),Xe.children.length>0&&(this.line("/First "+this.makeRef(Xe.children[0])),this.line("/Last "+this.makeRef(Xe.children[Xe.children.length-1]))),this.line("/Count "+this.count_r({count:0},Xe)),this.objEnd()},je.outline.renderItems=function(Xe){for(var it=this.ctx.pdf.internal.getVerticalCoordinateString,Ze=0;Ze<Xe.children.length;Ze++){var ot=Xe.children[Ze];this.objStart(ot),this.line("/Title "+this.makeString(ot.title)),this.line("/Parent "+this.makeRef(Xe)),Ze>0&&this.line("/Prev "+this.makeRef(Xe.children[Ze-1])),Ze<Xe.children.length-1&&this.line("/Next "+this.makeRef(Xe.children[Ze+1])),ot.children.length>0&&(this.line("/First "+this.makeRef(ot.children[0])),this.line("/Last "+this.makeRef(ot.children[ot.children.length-1])));var Lt=this.count=this.count_r({count:0},ot);if(Lt>0&&this.line("/Count "+Lt),ot.options&&ot.options.pageNumber){var At=je.internal.getPageInfo(ot.options.pageNumber);this.line("/Dest ["+At.objId+" 0 R /XYZ 0 "+it(0)+" 0]")}this.objEnd()}for(var mr=0;mr<Xe.children.length;mr++)this.renderItems(Xe.children[mr])},je.outline.line=function(Xe){this.ctx.val+=Xe+`\r
`},je.outline.makeRef=function(Xe){return Xe.id+" 0 R"},je.outline.makeString=function(Xe){return"("+je.internal.pdfEscape(Xe)+")"},je.outline.objStart=function(Xe){this.ctx.val+=`\r
`+Xe.id+` 0 obj\r
<<\r
`},je.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},je.outline.count_r=function(Xe,it){for(var Ze=0;Ze<it.children.length;Ze++)Xe.count++,this.count_r(Xe,it.children[Ze]);return Xe.count}}])}(z.API),function(at){var Le=[192,193,194,195,196,197,198,199];at.processJPEG=function(je,Xe,it,Ze,ot,Lt){var At,mr=this.decode.DCT_DECODE,qr=null;if(typeof je=="string"||this.__addimage__.isArrayBuffer(je)||this.__addimage__.isArrayBufferView(je)){switch(je=ot||je,je=this.__addimage__.isArrayBuffer(je)?new Uint8Array(je):je,(At=function(Qr){for(var gn,yr=256*Qr.charCodeAt(4)+Qr.charCodeAt(5),Vn=Qr.length,Br={width:0,height:0,numcomponents:1},jn=4;jn<Vn;jn+=2){if(jn+=yr,Le.indexOf(Qr.charCodeAt(jn+1))!==-1){gn=256*Qr.charCodeAt(jn+5)+Qr.charCodeAt(jn+6),Br={width:256*Qr.charCodeAt(jn+7)+Qr.charCodeAt(jn+8),height:gn,numcomponents:Qr.charCodeAt(jn+9)};break}yr=256*Qr.charCodeAt(jn+2)+Qr.charCodeAt(jn+3)}return Br}(je=this.__addimage__.isArrayBufferView(je)?this.__addimage__.arrayBufferToBinaryString(je):je)).numcomponents){case 1:Lt=this.color_spaces.DEVICE_GRAY;break;case 4:Lt=this.color_spaces.DEVICE_CMYK;break;case 3:Lt=this.color_spaces.DEVICE_RGB}qr={data:je,width:At.width,height:At.height,colorSpace:Lt,bitsPerComponent:8,filter:mr,index:Xe,alias:it}}return qr}}(z.API);var Zt,Tt,De,Re,Pe,rt=function(){var at,Le,je;function Xe(Ze){var ot,Lt,At,mr,qr,Qr,gn,yr,Vn,Br,jn,xn,tn,ti;for(this.data=Ze,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Qr=null;;){switch(ot=this.readUInt32(),Vn=function(){var mi,Pi;for(Pi=[],mi=0;mi<4;++mi)Pi.push(String.fromCharCode(this.data[this.pos++]));return Pi}.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(ot);break;case"fcTL":Qr&&this.animation.frames.push(Qr),this.pos+=4,Qr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},qr=this.readUInt16(),mr=this.readUInt16()||100,Qr.delay=1e3*qr/mr,Qr.disposeOp=this.data[this.pos++],Qr.blendOp=this.data[this.pos++],Qr.data=[];break;case"IDAT":case"fdAT":for(Vn==="fdAT"&&(this.pos+=4,ot-=4),Ze=(Qr!=null?Qr.data:void 0)||this.imgData,xn=0;0<=ot?xn<ot:xn>ot;0<=ot?++xn:--xn)Ze.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(At=this.palette.length/3,this.transparency.indexed=this.read(ot),this.transparency.indexed.length>At)throw new Error("More transparent colors than palette size");if((Br=At-this.transparency.indexed.length)>0)for(tn=0;0<=Br?tn<Br:tn>Br;0<=Br?++tn:--tn)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(ot)[0];break;case 2:this.transparency.rgb=this.read(ot)}break;case"tEXt":gn=(jn=this.read(ot)).indexOf(0),yr=String.fromCharCode.apply(String,jn.slice(0,gn)),this.text[yr]=String.fromCharCode.apply(String,jn.slice(gn+1));break;case"IEND":return Qr&&this.animation.frames.push(Qr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(ti=this.colorType)===4||ti===6,Lt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Lt,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+=ot}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Xe.prototype.read=function(Ze){var ot,Lt;for(Lt=[],ot=0;0<=Ze?ot<Ze:ot>Ze;0<=Ze?++ot:--ot)Lt.push(this.data[this.pos++]);return Lt},Xe.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Xe.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Xe.prototype.decodePixels=function(Ze){var ot=this.pixelBitlength/8,Lt=new Uint8Array(this.width*this.height*ot),At=0,mr=this;if(Ze==null&&(Ze=this.imgData),Ze.length===0)return new Uint8Array(0);function qr(Qr,gn,yr,Vn){var Br,jn,xn,tn,ti,mi,Pi,en,Tn,Yn,Yt,Dt,Bt,Wt,Xt,kt,hr,br,wr,Fr,Xn,Fn=Math.ceil((mr.width-Qr)/yr),hi=Math.ceil((mr.height-gn)/Vn),An=mr.width==Fn&&mr.height==hi;for(Wt=ot*Fn,Dt=An?Lt:new Uint8Array(Wt*hi),mi=Ze.length,Bt=0,jn=0;Bt<hi&&At<mi;){switch(Ze[At++]){case 0:for(tn=hr=0;hr<Wt;tn=hr+=1)Dt[jn++]=Ze[At++];break;case 1:for(tn=br=0;br<Wt;tn=br+=1)Br=Ze[At++],ti=tn<ot?0:Dt[jn-ot],Dt[jn++]=(Br+ti)%256;break;case 2:for(tn=wr=0;wr<Wt;tn=wr+=1)Br=Ze[At++],xn=(tn-tn%ot)/ot,Xt=Bt&&Dt[(Bt-1)*Wt+xn*ot+tn%ot],Dt[jn++]=(Xt+Br)%256;break;case 3:for(tn=Fr=0;Fr<Wt;tn=Fr+=1)Br=Ze[At++],xn=(tn-tn%ot)/ot,ti=tn<ot?0:Dt[jn-ot],Xt=Bt&&Dt[(Bt-1)*Wt+xn*ot+tn%ot],Dt[jn++]=(Br+Math.floor((ti+Xt)/2))%256;break;case 4:for(tn=Xn=0;Xn<Wt;tn=Xn+=1)Br=Ze[At++],xn=(tn-tn%ot)/ot,ti=tn<ot?0:Dt[jn-ot],Bt===0?Xt=kt=0:(Xt=Dt[(Bt-1)*Wt+xn*ot+tn%ot],kt=xn&&Dt[(Bt-1)*Wt+(xn-1)*ot+tn%ot]),Pi=ti+Xt-kt,en=Math.abs(Pi-ti),Yn=Math.abs(Pi-Xt),Yt=Math.abs(Pi-kt),Tn=en<=Yn&&en<=Yt?ti:Yn<=Yt?Xt:kt,Dt[jn++]=(Br+Tn)%256;break;default:throw new Error("Invalid filter algorithm: "+Ze[At-1])}if(!An){var jr=((gn+Bt*Vn)*mr.width+Qr)*ot,In=Bt*Wt;for(tn=0;tn<Fn;tn+=1){for(var Qn=0;Qn<ot;Qn+=1)Lt[jr++]=Dt[In++];jr+=(yr-1)*ot}}Bt++}}return Ze=Object(m.a)(Ze),mr.interlaceMethod==1?(qr(0,0,8,8),qr(4,0,8,8),qr(0,4,4,8),qr(2,0,4,4),qr(0,2,2,4),qr(1,0,2,2),qr(0,1,1,2)):qr(0,0,1,1),Lt},Xe.prototype.decodePalette=function(){var Ze,ot,Lt,At,mr,qr,Qr,gn,yr;for(Lt=this.palette,qr=this.transparency.indexed||[],mr=new Uint8Array((qr.length||0)+Lt.length),At=0,Ze=0,ot=Qr=0,gn=Lt.length;Qr<gn;ot=Qr+=3)mr[At++]=Lt[ot],mr[At++]=Lt[ot+1],mr[At++]=Lt[ot+2],mr[At++]=(yr=qr[Ze++])!=null?yr:255;return mr},Xe.prototype.copyToImageData=function(Ze,ot){var Lt,At,mr,qr,Qr,gn,yr,Vn,Br,jn,xn;if(At=this.colors,Br=null,Lt=this.hasAlphaChannel,this.palette.length&&(Br=(xn=this._decodedPalette)!=null?xn:this._decodedPalette=this.decodePalette(),At=4,Lt=!0),Vn=(mr=Ze.data||Ze).length,Qr=Br||ot,qr=gn=0,At===1)for(;qr<Vn;)yr=Br?4*ot[qr/4]:gn,jn=Qr[yr++],mr[qr++]=jn,mr[qr++]=jn,mr[qr++]=jn,mr[qr++]=Lt?Qr[yr++]:255,gn=yr;else for(;qr<Vn;)yr=Br?4*ot[qr/4]:gn,mr[qr++]=Qr[yr++],mr[qr++]=Qr[yr++],mr[qr++]=Qr[yr++],mr[qr++]=Lt?Qr[yr++]:255,gn=yr},Xe.prototype.decode=function(){var Ze;return Ze=new Uint8Array(this.width*this.height*4),this.copyToImageData(Ze,this.decodePixels()),Ze};var it=function(){if(Object.prototype.toString.call(p)==="[object Window]"){try{Le=p.document.createElement("canvas"),je=Le.getContext("2d")}catch(ot){return!1}return!0}return!1};return it(),at=function(ot){var Lt;if(it()===!0)return je.width=ot.width,je.height=ot.height,je.clearRect(0,0,ot.width,ot.height),je.putImageData(ot,0,0),(Lt=new Image).src=Le.toDataURL(),Lt;throw new Error("This method requires a Browser with Canvas-capability.")},Xe.prototype.decodeFrames=function(Ze){var ot,Lt,At,mr,qr,Qr,gn,yr;if(this.animation){for(yr=[],Lt=qr=0,Qr=(gn=this.animation.frames).length;qr<Qr;Lt=++qr)ot=gn[Lt],At=Ze.createImageData(ot.width,ot.height),mr=this.decodePixels(new Uint8Array(ot.data)),this.copyToImageData(At,mr),ot.imageData=At,yr.push(ot.image=at(At));return yr}},Xe.prototype.renderFrame=function(Ze,ot){var Lt,At,mr;return Lt=(At=this.animation.frames)[ot],mr=At[ot-1],ot===0&&Ze.clearRect(0,0,this.width,this.height),(mr!=null?mr.disposeOp:void 0)===1?Ze.clearRect(mr.xOffset,mr.yOffset,mr.width,mr.height):(mr!=null?mr.disposeOp:void 0)===2&&Ze.putImageData(mr.imageData,mr.xOffset,mr.yOffset),Lt.blendOp===0&&Ze.clearRect(Lt.xOffset,Lt.yOffset,Lt.width,Lt.height),Ze.drawImage(Lt.image,Lt.xOffset,Lt.yOffset)},Xe.prototype.animate=function(Ze){var ot,Lt,At,mr,qr,Qr,gn=this;return Lt=0,Qr=this.animation,mr=Qr.numFrames,At=Qr.frames,qr=Qr.numPlays,(ot=function(){var Vn,Br;if(Vn=Lt++%mr,Br=At[Vn],gn.renderFrame(Ze,Vn),mr>1&&Lt/mr<qr)return gn.animation._timeout=setTimeout(ot,Br.delay)})()},Xe.prototype.stopAnimation=function(){var Ze;return clearTimeout((Ze=this.animation)!=null?Ze._timeout:void 0)},Xe.prototype.render=function(Ze){var ot,Lt;return Ze._png&&Ze._png.stopAnimation(),Ze._png=this,Ze.width=this.width,Ze.height=this.height,ot=Ze.getContext("2d"),this.animation?(this.decodeFrames(ot),this.animate(ot)):(Lt=ot.createImageData(this.width,this.height),this.copyToImageData(Lt,this.decodePixels()),ot.putImageData(Lt,0,0))},Xe}();/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*//**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function wt(at){var Le=0;if(at[Le++]!==71||at[Le++]!==73||at[Le++]!==70||at[Le++]!==56||(at[Le++]+1&253)!=56||at[Le++]!==97)throw new Error("Invalid GIF 87a/89a header.");var je=at[Le++]|at[Le++]<<8,Xe=at[Le++]|at[Le++]<<8,it=at[Le++],Ze=it>>7,ot=1<<(7&it)+1;at[Le++],at[Le++];var Lt=null,At=null;Ze&&(Lt=Le,At=ot,Le+=3*ot);var mr=!0,qr=[],Qr=0,gn=null,yr=0,Vn=null;for(this.width=je,this.height=Xe;mr&&Le<at.length;)switch(at[Le++]){case 33:switch(at[Le++]){case 255:if(at[Le]!==11||at[Le+1]==78&&at[Le+2]==69&&at[Le+3]==84&&at[Le+4]==83&&at[Le+5]==67&&at[Le+6]==65&&at[Le+7]==80&&at[Le+8]==69&&at[Le+9]==50&&at[Le+10]==46&&at[Le+11]==48&&at[Le+12]==3&&at[Le+13]==1&&at[Le+16]==0)Le+=14,Vn=at[Le++]|at[Le++]<<8,Le++;else for(Le+=12;;){if(!((Bt=at[Le++])>=0))throw Error("Invalid block size");if(Bt===0)break;Le+=Bt}break;case 249:if(at[Le++]!==4||at[Le+4]!==0)throw new Error("Invalid graphics extension block.");var Br=at[Le++];Qr=at[Le++]|at[Le++]<<8,gn=at[Le++],(1&Br)==0&&(gn=null),yr=Br>>2&7,Le++;break;case 254:for(;;){if(!((Bt=at[Le++])>=0))throw Error("Invalid block size");if(Bt===0)break;Le+=Bt}break;default:throw new Error("Unknown graphic control label: 0x"+at[Le-1].toString(16))}break;case 44:var jn=at[Le++]|at[Le++]<<8,xn=at[Le++]|at[Le++]<<8,tn=at[Le++]|at[Le++]<<8,ti=at[Le++]|at[Le++]<<8,mi=at[Le++],Pi=mi>>6&1,en=1<<(7&mi)+1,Tn=Lt,Yn=At,Yt=!1;mi>>7&&(Yt=!0,Tn=Le,Yn=en,Le+=3*en);var Dt=Le;for(Le++;;){var Bt;if(!((Bt=at[Le++])>=0))throw Error("Invalid block size");if(Bt===0)break;Le+=Bt}qr.push({x:jn,y:xn,width:tn,height:ti,has_local_palette:Yt,palette_offset:Tn,palette_size:Yn,data_offset:Dt,data_length:Le-Dt,transparent_index:gn,interlaced:!!Pi,delay:Qr,disposal:yr});break;case 59:mr=!1;break;default:throw new Error("Unknown gif block: 0x"+at[Le-1].toString(16))}this.numFrames=function(){return qr.length},this.loopCount=function(){return Vn},this.frameInfo=function(Wt){if(Wt<0||Wt>=qr.length)throw new Error("Frame index out of range.");return qr[Wt]},this.decodeAndBlitFrameBGRA=function(Wt,Xt){var kt=this.frameInfo(Wt),hr=kt.width*kt.height,br=new Uint8Array(hr);Ot(at,kt.data_offset,br,hr);var wr=kt.palette_offset,Fr=kt.transparent_index;Fr===null&&(Fr=256);var Xn=kt.width,Fn=je-Xn,hi=Xn,An=4*(kt.y*je+kt.x),jr=4*((kt.y+kt.height)*je+kt.x),In=An,Qn=4*Fn;kt.interlaced===!0&&(Qn+=4*je*7);for(var qn=8,si=0,Ci=br.length;si<Ci;++si){var ki=br[si];if(hi===0&&(hi=Xn,(In+=Qn)>=jr&&(Qn=4*Fn+4*je*(qn-1),In=An+(Xn+Fn)*(qn<<1),qn>>=1)),ki===Fr)In+=4;else{var Ri=at[wr+3*ki],oa=at[wr+3*ki+1],ma=at[wr+3*ki+2];Xt[In++]=ma,Xt[In++]=oa,Xt[In++]=Ri,Xt[In++]=255}--hi}},this.decodeAndBlitFrameRGBA=function(Wt,Xt){var kt=this.frameInfo(Wt),hr=kt.width*kt.height,br=new Uint8Array(hr);Ot(at,kt.data_offset,br,hr);var wr=kt.palette_offset,Fr=kt.transparent_index;Fr===null&&(Fr=256);var Xn=kt.width,Fn=je-Xn,hi=Xn,An=4*(kt.y*je+kt.x),jr=4*((kt.y+kt.height)*je+kt.x),In=An,Qn=4*Fn;kt.interlaced===!0&&(Qn+=4*je*7);for(var qn=8,si=0,Ci=br.length;si<Ci;++si){var ki=br[si];if(hi===0&&(hi=Xn,(In+=Qn)>=jr&&(Qn=4*Fn+4*je*(qn-1),In=An+(Xn+Fn)*(qn<<1),qn>>=1)),ki===Fr)In+=4;else{var Ri=at[wr+3*ki],oa=at[wr+3*ki+1],ma=at[wr+3*ki+2];Xt[In++]=Ri,Xt[In++]=oa,Xt[In++]=ma,Xt[In++]=255}--hi}}}function Ot(at,Le,je,Xe){for(var it=at[Le++],Ze=1<<it,ot=Ze+1,Lt=ot+1,At=it+1,mr=(1<<At)-1,qr=0,Qr=0,gn=0,yr=at[Le++],Vn=new Int32Array(4096),Br=null;;){for(;qr<16&&yr!==0;)Qr|=at[Le++]<<qr,qr+=8,yr===1?yr=at[Le++]:--yr;if(qr<At)break;var jn=Qr&mr;if(Qr>>=At,qr-=At,jn!==Ze){if(jn===ot)break;for(var xn=jn<Lt?jn:Br,tn=0,ti=xn;ti>Ze;)ti=Vn[ti]>>8,++tn;var mi=ti;if(gn+tn+(xn!==jn?1:0)>Xe)return void d.log("Warning, gif stream longer than expected.");je[gn++]=mi;var Pi=gn+=tn;for(xn!==jn&&(je[gn++]=mi),ti=xn;tn--;)ti=Vn[ti],je[--Pi]=255&ti,ti>>=8;Br!==null&&Lt<4096&&(Vn[Lt++]=Br<<8|mi,Lt>=mr+1&&At<12&&(++At,mr=mr<<1|1)),Br=jn}else Lt=ot+1,mr=(1<<(At=it+1))-1,Br=null}return gn!==Xe&&d.log("Warning, gif stream shorter than expected."),je}/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function $t(at){var Le,je,Xe,it,Ze,ot=Math.floor,Lt=new Array(64),At=new Array(64),mr=new Array(64),qr=new Array(64),Qr=new Array(65535),gn=new Array(65535),yr=new Array(64),Vn=new Array(64),Br=[],jn=0,xn=7,tn=new Array(64),ti=new Array(64),mi=new Array(64),Pi=new Array(256),en=new Array(2048),Tn=[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],Yn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Yt=[0,1,2,3,4,5,6,7,8,9,10,11],Dt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Bt=[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],Wt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Xt=[0,1,2,3,4,5,6,7,8,9,10,11],kt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],hr=[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 br(An,jr){for(var In=0,Qn=0,qn=new Array,si=1;si<=16;si++){for(var Ci=1;Ci<=An[si];Ci++)qn[jr[Qn]]=[],qn[jr[Qn]][0]=In,qn[jr[Qn]][1]=si,Qn++,In++;In*=2}return qn}function wr(An){for(var jr=An[0],In=An[1]-1;In>=0;)jr&1<<In&&(jn|=1<<xn),In--,--xn<0&&(jn==255?(Fr(255),Fr(0)):Fr(jn),xn=7,jn=0)}function Fr(An){Br.push(An)}function Xn(An){Fr(An>>8&255),Fr(255&An)}function Fn(An,jr,In,Qn,qn){for(var si,Ci=qn[0],ki=qn[240],Ri=function(ta,ra){var Nr,Er,On,gr,Pr,Xr,cn,Un,Nt,Lr,Dr=0;for(Nt=0;Nt<8;++Nt){Nr=ta[Dr],Er=ta[Dr+1],On=ta[Dr+2],gr=ta[Dr+3],Pr=ta[Dr+4],Xr=ta[Dr+5],cn=ta[Dr+6];var an=Nr+(Un=ta[Dr+7]),Cn=Nr-Un,Nn=Er+cn,En=Er-cn,ei=On+Xr,Wn=On-Xr,gi=gr+Pr,Fi=gr-Pr,wi=an+gi,Ii=an-gi,Vi=Nn+ei,ea=Nn-ei;ta[Dr]=wi+Vi,ta[Dr+4]=wi-Vi;var Xi=.707106781*(ea+Ii);ta[Dr+2]=Ii+Xi,ta[Dr+6]=Ii-Xi;var zi=.382683433*((wi=Fi+Wn)-(ea=En+Cn)),Hi=.5411961*wi+zi,Ji=1.306562965*ea+zi,ca=.707106781*(Vi=Wn+En),Ta=Cn+ca,na=Cn-ca;ta[Dr+5]=na+Hi,ta[Dr+3]=na-Hi,ta[Dr+1]=Ta+Ji,ta[Dr+7]=Ta-Ji,Dr+=8}for(Dr=0,Nt=0;Nt<8;++Nt){Nr=ta[Dr],Er=ta[Dr+8],On=ta[Dr+16],gr=ta[Dr+24],Pr=ta[Dr+32],Xr=ta[Dr+40],cn=ta[Dr+48];var Pa=Nr+(Un=ta[Dr+56]),La=Nr-Un,va=Er+cn,ga=Er-cn,Oa=On+Xr,Aa=On-Xr,Xa=gr+Pr,_a=gr-Pr,Va=Pa+Xa,Bi=Pa-Xa,io=va+Oa,oo=va-Oa;ta[Dr]=Va+io,ta[Dr+32]=Va-io;var Qo=.707106781*(oo+Bi);ta[Dr+16]=Bi+Qo,ta[Dr+48]=Bi-Qo;var mo=.382683433*((Va=_a+Aa)-(oo=ga+La)),Co=.5411961*Va+mo,ao=1.306562965*oo+mo,xo=.707106781*(io=Aa+ga),bo=La+xo,to=La-xo;ta[Dr+40]=to+Co,ta[Dr+24]=to-Co,ta[Dr+8]=bo+ao,ta[Dr+56]=bo-ao,Dr++}for(Nt=0;Nt<64;++Nt)Lr=ta[Nt]*ra[Nt],yr[Nt]=Lr>0?Lr+.5|0:Lr-.5|0;return yr}(An,jr),oa=0;oa<64;++oa)Vn[Tn[oa]]=Ri[oa];var ma=Vn[0]-In;In=Vn[0],ma==0?wr(Qn[0]):(wr(Qn[gn[si=32767+ma]]),wr(Qr[si]));for(var aa=63;aa>0&&Vn[aa]==0;)aa--;if(aa==0)return wr(Ci),In;for(var ba,bi=1;bi<=aa;){for(var Pn=bi;Vn[bi]==0&&bi<=aa;)++bi;var ji=bi-Pn;if(ji>=16){ba=ji>>4;for(var ha=1;ha<=ba;++ha)wr(ki);ji&=15}si=32767+Vn[bi],wr(qn[(ji<<4)+gn[si]]),wr(Qr[si]),bi++}return aa!=63&&wr(Ci),In}function hi(An){(An=Math.min(Math.max(An,1),100),Ze!=An)&&(!function(jr){for(var In=[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],Qn=0;Qn<64;Qn++){var qn=ot((In[Qn]*jr+50)/100);qn=Math.min(Math.max(qn,1),255),Lt[Tn[Qn]]=qn}for(var si=[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],Ci=0;Ci<64;Ci++){var ki=ot((si[Ci]*jr+50)/100);ki=Math.min(Math.max(ki,1),255),At[Tn[Ci]]=ki}for(var Ri=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],oa=0,ma=0;ma<8;ma++)for(var aa=0;aa<8;aa++)mr[oa]=1/(Lt[Tn[oa]]*Ri[ma]*Ri[aa]*8),qr[oa]=1/(At[Tn[oa]]*Ri[ma]*Ri[aa]*8),oa++}(An<50?Math.floor(5e3/An):Math.floor(200-2*An)),Ze=An)}this.encode=function(An,jr){jr&&hi(jr),Br=new Array,jn=0,xn=7,Xn(65496),Xn(65504),Xn(16),Fr(74),Fr(70),Fr(73),Fr(70),Fr(0),Fr(1),Fr(1),Fr(0),Xn(1),Xn(1),Fr(0),Fr(0),function(){Xn(65499),Xn(132),Fr(0);for(var Er=0;Er<64;Er++)Fr(Lt[Er]);Fr(1);for(var On=0;On<64;On++)Fr(At[On])}(),function(Er,On){Xn(65472),Xn(17),Fr(8),Xn(On),Xn(Er),Fr(3),Fr(1),Fr(17),Fr(0),Fr(2),Fr(17),Fr(1),Fr(3),Fr(17),Fr(1)}(An.width,An.height),function(){Xn(65476),Xn(418),Fr(0);for(var Er=0;Er<16;Er++)Fr(Yn[Er+1]);for(var On=0;On<=11;On++)Fr(Yt[On]);Fr(16);for(var gr=0;gr<16;gr++)Fr(Dt[gr+1]);for(var Pr=0;Pr<=161;Pr++)Fr(Bt[Pr]);Fr(1);for(var Xr=0;Xr<16;Xr++)Fr(Wt[Xr+1]);for(var cn=0;cn<=11;cn++)Fr(Xt[cn]);Fr(17);for(var Un=0;Un<16;Un++)Fr(kt[Un+1]);for(var Nt=0;Nt<=161;Nt++)Fr(hr[Nt])}(),Xn(65498),Xn(12),Fr(3),Fr(1),Fr(0),Fr(2),Fr(17),Fr(3),Fr(17),Fr(0),Fr(63),Fr(0);var In=0,Qn=0,qn=0;jn=0,xn=7,this.encode.displayName="_encode_";for(var si,Ci,ki,Ri,oa,ma,aa,ba,bi,Pn=An.data,ji=An.width,ha=An.height,ta=4*ji,ra=0;ra<ha;){for(si=0;si<ta;){for(oa=ta*ra+si,aa=-1,ba=0,bi=0;bi<64;bi++)ma=oa+(ba=bi>>3)*ta+(aa=4*(7&bi)),ra+ba>=ha&&(ma-=ta*(ra+1+ba-ha)),si+aa>=ta&&(ma-=si+aa-ta+4),Ci=Pn[ma++],ki=Pn[ma++],Ri=Pn[ma++],tn[bi]=(en[Ci]+en[ki+256>>0]+en[Ri+512>>0]>>16)-128,ti[bi]=(en[Ci+768>>0]+en[ki+1024>>0]+en[Ri+1280>>0]>>16)-128,mi[bi]=(en[Ci+1280>>0]+en[ki+1536>>0]+en[Ri+1792>>0]>>16)-128;In=Fn(tn,mr,In,Le,Xe),Qn=Fn(ti,qr,Qn,je,it),qn=Fn(mi,qr,qn,je,it),si+=32}ra+=8}if(xn>=0){var Nr=[];Nr[1]=xn+1,Nr[0]=(1<<xn+1)-1,wr(Nr)}return Xn(65497),new Uint8Array(Br)},at=at||50,function(){for(var An=String.fromCharCode,jr=0;jr<256;jr++)Pi[jr]=An(jr)}(),Le=br(Yn,Yt),je=br(Wt,Xt),Xe=br(Dt,Bt),it=br(kt,hr),function(){for(var An=1,jr=2,In=1;In<=15;In++){for(var Qn=An;Qn<jr;Qn++)gn[32767+Qn]=In,Qr[32767+Qn]=[],Qr[32767+Qn][1]=In,Qr[32767+Qn][0]=Qn;for(var qn=-(jr-1);qn<=-An;qn++)gn[32767+qn]=In,Qr[32767+qn]=[],Qr[32767+qn][1]=In,Qr[32767+qn][0]=jr-1+qn;An<<=1,jr<<=1}}(),function(){for(var An=0;An<256;An++)en[An]=19595*An,en[An+256>>0]=38470*An,en[An+512>>0]=7471*An+32768,en[An+768>>0]=-11059*An,en[An+1024>>0]=-21709*An,en[An+1280>>0]=32768*An+8421375,en[An+1536>>0]=-27439*An,en[An+1792>>0]=-5329*An}(),hi(at)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function Mr(at,Le){if(this.pos=0,this.buffer=at,this.datav=new DataView(at.buffer),this.is_with_alpha=!!Le,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 Vr(at){function Le(Yn){if(!Yn)throw Error("assert :P")}function je(Yn,Yt,Dt){for(var Bt=0;4>Bt;Bt++)if(Yn[Yt+Bt]!=Dt.charCodeAt(Bt))return!0;return!1}function Xe(Yn,Yt,Dt,Bt,Wt){for(var Xt=0;Xt<Wt;Xt++)Yn[Yt+Xt]=Dt[Bt+Xt]}function it(Yn,Yt,Dt,Bt){for(var Wt=0;Wt<Bt;Wt++)Yn[Yt+Wt]=Dt}function Ze(Yn){return new Int32Array(Yn)}function ot(Yn,Yt){for(var Dt=[],Bt=0;Bt<Yn;Bt++)Dt.push(new Yt);return Dt}function Lt(Yn,Yt){var Dt=[];return function Bt(Wt,Xt,kt){for(var hr=kt[Xt],br=0;br<hr&&(Wt.push(kt.length>Xt+1?[]:new Yt),!(kt.length<Xt+1));br++)Bt(Wt[br],Xt+1,kt)}(Dt,0,Yn),Dt}var At=function(){var Yt=this;function Dt(Ee,Ye){for(var It=1<<Ye-1>>>0;Ee&It;)It>>>=1;return It?(Ee&It-1)+It:Ee}function Bt(Ee,Ye,It,fr,Ur){Le(!(fr%It));do Ee[Ye+(fr-=It)]=Ur;while(0<fr)}function Wt(Ee,Ye,It,fr,Ur){if(Le(2328>=Ur),512>=Ur)var ln=Ze(512);else if((ln=Ze(Ur))==null)return 0;return function(Ue,ae,_e,$e,Et,qt){var ar,lr,Gr=ae,pn=1<<_e,zr=Ze(16),Hr=Ze(16);for(Le(Et!=0),Le($e!=null),Le(Ue!=null),Le(0<_e),lr=0;lr<Et;++lr){if(15<$e[lr])return 0;++zr[$e[lr]]}if(zr[0]==Et)return 0;for(Hr[1]=0,ar=1;15>ar;++ar){if(zr[ar]>1<<ar)return 0;Hr[ar+1]=Hr[ar]+zr[ar]}for(lr=0;lr<Et;++lr)ar=$e[lr],0<$e[lr]&&(qt[Hr[ar]++]=lr);if(Hr[15]==1)return($e=new Xt).g=0,$e.value=qt[0],Bt(Ue,Gr,1,pn,$e),pn;var un,bn=-1,Gn=pn-1,Li=0,Mi=1,da=1,$i=1<<_e;for(lr=0,ar=1,Et=2;ar<=_e;++ar,Et<<=1){if(Mi+=da<<=1,0>(da-=zr[ar]))return 0;for(;0<zr[ar];--zr[ar])($e=new Xt).g=ar,$e.value=qt[lr++],Bt(Ue,Gr+Li,Et,$i,$e),Li=Dt(Li,ar)}for(ar=_e+1,Et=2;15>=ar;++ar,Et<<=1){if(Mi+=da<<=1,0>(da-=zr[ar]))return 0;for(;0<zr[ar];--zr[ar]){if($e=new Xt,(Li&Gn)!=bn){for(Gr+=$i,un=1<<(bn=ar)-_e;15>bn&&!(0>=(un-=zr[bn]));)++bn,un<<=1;pn+=$i=1<<(un=bn-_e),Ue[ae+(bn=Li&Gn)].g=un+_e,Ue[ae+bn].value=Gr-ae-bn}$e.g=ar-_e,$e.value=qt[lr++],Bt(Ue,Gr+(Li>>_e),Et,$i,$e),Li=Dt(Li,ar)}}return Mi!=2*Hr[15]-1?0:pn}(Ee,Ye,It,fr,Ur,ln)}function Xt(){this.value=this.g=0}function kt(){this.value=this.g=0}function hr(){this.G=ot(5,Xt),this.H=Ze(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=ot(vo,kt)}function br(Ee,Ye,It,fr){Le(Ee!=null),Le(Ye!=null),Le(2147483648>fr),Ee.Ca=254,Ee.I=0,Ee.b=-8,Ee.Ka=0,Ee.oa=Ye,Ee.pa=It,Ee.Jd=Ye,Ee.Yc=It+fr,Ee.Zc=4<=fr?It+fr-4+1:It,Ci(Ee)}function wr(Ee,Ye){for(var It=0;0<Ye--;)It|=Ri(Ee,128)<<Ye;return It}function Fr(Ee,Ye){var It=wr(Ee,Ye);return ki(Ee)?-It:It}function Xn(Ee,Ye,It,fr){var Ur,ln=0;for(Le(Ee!=null),Le(Ye!=null),Le(4294967288>fr),Ee.Sb=fr,Ee.Ra=0,Ee.u=0,Ee.h=0,4<fr&&(fr=4),Ur=0;Ur<fr;++Ur)ln+=Ye[It+Ur]<<8*Ur;Ee.Ra=ln,Ee.bb=fr,Ee.oa=Ye,Ee.pa=It}function Fn(Ee){for(;8<=Ee.u&&Ee.bb<Ee.Sb;)Ee.Ra>>>=8,Ee.Ra+=Ee.oa[Ee.pa+Ee.bb]<<gs-8>>>0,++Ee.bb,Ee.u-=8;Qn(Ee)&&(Ee.h=1,Ee.u=0)}function hi(Ee,Ye){if(Le(0<=Ye),!Ee.h&&Ye<=rl){var It=In(Ee)&Ms[Ye];return Ee.u+=Ye,Fn(Ee),It}return Ee.h=1,Ee.u=0}function An(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function jr(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function In(Ee){return Ee.Ra>>>(Ee.u&gs-1)>>>0}function Qn(Ee){return Le(Ee.bb<=Ee.Sb),Ee.h||Ee.bb==Ee.Sb&&Ee.u>gs}function qn(Ee,Ye){Ee.u=Ye,Ee.h=Qn(Ee)}function si(Ee){Ee.u>=Ra&&(Le(Ee.u>=Ra),Fn(Ee))}function Ci(Ee){Le(Ee!=null&&Ee.oa!=null),Ee.pa<Ee.Zc?(Ee.I=(Ee.oa[Ee.pa++]|Ee.I<<8)>>>0,Ee.b+=8):(Le(Ee!=null&&Ee.oa!=null),Ee.pa<Ee.Yc?(Ee.b+=8,Ee.I=Ee.oa[Ee.pa++]|Ee.I<<8):Ee.Ka?Ee.b=0:(Ee.I<<=8,Ee.b+=8,Ee.Ka=1))}function ki(Ee){return wr(Ee,1)}function Ri(Ee,Ye){var It=Ee.Ca;0>Ee.b&&Ci(Ee);var fr=Ee.b,Ur=It*Ye>>>8,ln=(Ee.I>>>fr>Ur)+0;for(ln?(It-=Ur,Ee.I-=Ur+1<<fr>>>0):It=Ur+1,fr=It,Ur=0;256<=fr;)Ur+=8,fr>>=8;return fr=7^Ur+dl[fr],Ee.b-=fr,Ee.Ca=(It<<fr)-1,ln}function oa(Ee,Ye,It){Ee[Ye+0]=It>>24&255,Ee[Ye+1]=It>>16&255,Ee[Ye+2]=It>>8&255,Ee[Ye+3]=It>>0&255}function ma(Ee,Ye){return Ee[Ye+0]<<0|Ee[Ye+1]<<8}function aa(Ee,Ye){return ma(Ee,Ye)|Ee[Ye+2]<<16}function ba(Ee,Ye){return ma(Ee,Ye)|ma(Ee,Ye+2)<<16}function bi(Ee,Ye){var It=1<<Ye;return Le(Ee!=null),Le(0<Ye),Ee.X=Ze(It),Ee.X==null?0:(Ee.Mb=32-Ye,Ee.Xa=Ye,1)}function Pn(Ee,Ye){Le(Ee!=null),Le(Ye!=null),Le(Ee.Xa==Ye.Xa),Xe(Ye.X,0,Ee.X,0,1<<Ye.Xa)}function ji(){this.X=[],this.Xa=this.Mb=0}function ha(Ee,Ye,It,fr){Le(It!=null),Le(fr!=null);var Ur=It[0],ln=fr[0];return Ur==0&&(Ur=(Ee*ln+Ye/2)/Ye),ln==0&&(ln=(Ye*Ur+Ee/2)/Ee),0>=Ur||0>=ln?0:(It[0]=Ur,fr[0]=ln,1)}function ta(Ee,Ye){return Ee+(1<<Ye)-1>>>Ye}function ra(Ee,Ye){return((4278255360&Ee)+(4278255360&Ye)>>>0&4278255360)+((16711935&Ee)+(16711935&Ye)>>>0&16711935)>>>0}function Nr(Ee,Ye){Yt[Ye]=function(It,fr,Ur,ln,Ue,ae,_e){var $e;for($e=0;$e<Ue;++$e){var Et=Yt[Ee](ae[_e+$e-1],Ur,ln+$e);ae[_e+$e]=ra(It[fr+$e],Et)}}}function Er(){this.ud=this.hd=this.jd=0}function On(Ee,Ye){return((4278124286&(Ee^Ye))>>>1)+(Ee&Ye)>>>0}function gr(Ee){return 0<=Ee&&256>Ee?Ee:0>Ee?0:255<Ee?255:void 0}function Pr(Ee,Ye){return gr(Ee+(Ee-Ye+.5>>1))}function Xr(Ee,Ye,It){return Math.abs(Ye-It)-Math.abs(Ee-It)}function cn(Ee,Ye,It,fr,Ur,ln,Ue){for(fr=ln[Ue-1],It=0;It<Ur;++It)ln[Ue+It]=fr=ra(Ee[Ye+It],fr)}function Un(Ee,Ye,It,fr,Ur){var ln;for(ln=0;ln<It;++ln){var Ue=Ee[Ye+ln],ae=Ue>>8&255,_e=16711935&(_e=(_e=16711935&Ue)+((ae<<16)+ae));fr[Ur+ln]=(4278255360&Ue)+_e>>>0}}function Nt(Ee,Ye){Ye.jd=Ee>>0&255,Ye.hd=Ee>>8&255,Ye.ud=Ee>>16&255}function Lr(Ee,Ye,It,fr,Ur,ln){var Ue;for(Ue=0;Ue<fr;++Ue){var ae=Ye[It+Ue],_e=ae>>>8,$e=ae,Et=255&(Et=(Et=ae>>>16)+((Ee.jd<<24>>24)*(_e<<24>>24)>>>5));$e=255&($e=($e=$e+((Ee.hd<<24>>24)*(_e<<24>>24)>>>5))+((Ee.ud<<24>>24)*(Et<<24>>24)>>>5)),Ur[ln+Ue]=(4278255360&ae)+(Et<<16)+$e}}function Dr(Ee,Ye,It,fr,Ur){Yt[Ye]=function(ln,Ue,ae,_e,$e,Et,qt,ar,lr){for(_e=qt;_e<ar;++_e)for(qt=0;qt<lr;++qt)$e[Et++]=Ur(ae[fr(ln[Ue++])])},Yt[Ee]=function(ln,Ue,ae,_e,$e,Et,qt){var ar=8>>ln.b,lr=ln.Ea,Gr=ln.K[0],pn=ln.w;if(8>ar)for(ln=(1<<ln.b)-1,pn=(1<<ar)-1;Ue<ae;++Ue){var zr,Hr=0;for(zr=0;zr<lr;++zr)zr&ln||(Hr=fr(_e[$e++])),Et[qt++]=Ur(Gr[Hr&pn]),Hr>>=ar}else Yt["VP8LMapColor"+It](_e,$e,Gr,pn,Et,qt,Ue,ae,lr)}}function an(Ee,Ye,It,fr,Ur){for(It=Ye+It;Ye<It;){var ln=Ee[Ye++];fr[Ur++]=ln>>16&255,fr[Ur++]=ln>>8&255,fr[Ur++]=ln>>0&255}}function Cn(Ee,Ye,It,fr,Ur){for(It=Ye+It;Ye<It;){var ln=Ee[Ye++];fr[Ur++]=ln>>16&255,fr[Ur++]=ln>>8&255,fr[Ur++]=ln>>0&255,fr[Ur++]=ln>>24&255}}function Nn(Ee,Ye,It,fr,Ur){for(It=Ye+It;Ye<It;){var ln=(Ue=Ee[Ye++])>>16&240|Ue>>12&15,Ue=Ue>>0&240|Ue>>28&15;fr[Ur++]=ln,fr[Ur++]=Ue}}function En(Ee,Ye,It,fr,Ur){for(It=Ye+It;Ye<It;){var ln=(Ue=Ee[Ye++])>>16&248|Ue>>13&7,Ue=Ue>>5&224|Ue>>3&31;fr[Ur++]=ln,fr[Ur++]=Ue}}function ei(Ee,Ye,It,fr,Ur){for(It=Ye+It;Ye<It;){var ln=Ee[Ye++];fr[Ur++]=ln>>0&255,fr[Ur++]=ln>>8&255,fr[Ur++]=ln>>16&255}}function Wn(Ee,Ye,It,fr,Ur,ln){if(ln==0)for(It=Ye+It;Ye<It;)oa(fr,((ln=Ee[Ye++])[0]>>24|ln[1]>>8&65280|ln[2]<<8&16711680|ln[3]<<24)>>>0),Ur+=32;else Xe(fr,Ur,Ee,Ye,It)}function gi(Ee,Ye){Yt[Ye][0]=Yt[Ee+"0"],Yt[Ye][1]=Yt[Ee+"1"],Yt[Ye][2]=Yt[Ee+"2"],Yt[Ye][3]=Yt[Ee+"3"],Yt[Ye][4]=Yt[Ee+"4"],Yt[Ye][5]=Yt[Ee+"5"],Yt[Ye][6]=Yt[Ee+"6"],Yt[Ye][7]=Yt[Ee+"7"],Yt[Ye][8]=Yt[Ee+"8"],Yt[Ye][9]=Yt[Ee+"9"],Yt[Ye][10]=Yt[Ee+"10"],Yt[Ye][11]=Yt[Ee+"11"],Yt[Ye][12]=Yt[Ee+"12"],Yt[Ye][13]=Yt[Ee+"13"],Yt[Ye][14]=Yt[Ee+"0"],Yt[Ye][15]=Yt[Ee+"0"]}function Fi(Ee){return Ee==Lu||Ee==zl||Ee==ru||Ee==ou}function wi(){this.eb=[],this.size=this.A=this.fb=0}function Ii(){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 Vi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new wi,this.f.kb=new Ii,this.sd=null}function ea(){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 zi(Ee){return alert("todo:WebPSamplerProcessPlane"),Ee.T}function Hi(Ee,Ye){var It=Ee.T,fr=Ye.ba.f.RGBA,Ur=fr.eb,ln=fr.fb+Ee.ka*fr.A,Ue=ze[Ye.ba.S],ae=Ee.y,_e=Ee.O,$e=Ee.f,Et=Ee.N,qt=Ee.ea,ar=Ee.W,lr=Ye.cc,Gr=Ye.dc,pn=Ye.Mc,zr=Ye.Nc,Hr=Ee.ka,un=Ee.ka+Ee.T,bn=Ee.U,Gn=bn+1>>1;for(Hr==0?Ue(ae,_e,null,null,$e,Et,qt,ar,$e,Et,qt,ar,Ur,ln,null,null,bn):(Ue(Ye.ec,Ye.fc,ae,_e,lr,Gr,pn,zr,$e,Et,qt,ar,Ur,ln-fr.A,Ur,ln,bn),++It);Hr+2<un;Hr+=2)lr=$e,Gr=Et,pn=qt,zr=ar,Et+=Ee.Rc,ar+=Ee.Rc,ln+=2*fr.A,Ue(ae,(_e+=2*Ee.fa)-Ee.fa,ae,_e,lr,Gr,pn,zr,$e,Et,qt,ar,Ur,ln-fr.A,Ur,ln,bn);return _e+=Ee.fa,Ee.j+un<Ee.o?(Xe(Ye.ec,Ye.fc,ae,_e,bn),Xe(Ye.cc,Ye.dc,$e,Et,Gn),Xe(Ye.Mc,Ye.Nc,qt,ar,Gn),It--):1&un||Ue(ae,_e,null,null,$e,Et,qt,ar,$e,Et,qt,ar,Ur,ln+fr.A,null,null,bn),It}function Ji(Ee,Ye,It){var fr=Ee.F,Ur=[Ee.J];if(fr!=null){var ln=Ee.U,Ue=Ye.ba.S,ae=Ue==Ol||Ue==ru;Ye=Ye.ba.f.RGBA;var _e=[0],$e=Ee.ka;_e[0]=Ee.T,Ee.Kb&&($e==0?--_e[0]:(--$e,Ur[0]-=Ee.width),Ee.j+Ee.ka+Ee.T==Ee.o&&(_e[0]=Ee.o-Ee.j-$e));var Et=Ye.eb;$e=Ye.fb+$e*Ye.A,Ee=Nl(fr,Ur[0],Ee.width,ln,_e,Et,$e+(ae?0:3),Ye.A),Le(It==_e),Ee&&Fi(Ue)&&Wl(Et,$e,ae,ln,_e,Ye.A)}return 0}function ca(Ee){var Ye=Ee.ma,It=Ye.ba.S,fr=11>It,Ur=It==xu||It==Au||It==Ol||It==cu||It==12||Fi(It);if(Ye.memory=null,Ye.Ib=null,Ye.Jb=null,Ye.Nd=null,!As(Ye.Oa,Ee,Ur?11:12))return 0;if(Ur&&Fi(It)&&Je(),Ee.da)alert("todo:use_scaling");else{if(fr){if(Ye.Ib=zi,Ee.Kb){if(It=Ee.U+1>>1,Ye.memory=Ze(Ee.U+2*It),Ye.memory==null)return 0;Ye.ec=Ye.memory,Ye.fc=0,Ye.cc=Ye.ec,Ye.dc=Ye.fc+Ee.U,Ye.Mc=Ye.cc,Ye.Nc=Ye.dc+It,Ye.Ib=Hi,Je()}}else alert("todo:EmitYUV");Ur&&(Ye.Jb=Ji,fr&&Se())}if(fr&&!Zi){for(Ee=0;256>Ee;++Ee)ka[Ee]=89858*(Ee-128)+Mn>>Ln,xa[Ee]=-22014*(Ee-128)+Mn,Ba[Ee]=-45773*(Ee-128),Ga[Ee]=113618*(Ee-128)+Mn>>Ln;for(Ee=Zn;Ee<xi;++Ee)Ye=76283*(Ee-16)+Mn>>Ln,Go[Ee-Zn]=_o(Ye,255),bs[Ee-Zn]=_o(Ye+8>>4,15);Zi=1}return 1}function Ta(Ee){var Ye=Ee.ma,It=Ee.U,fr=Ee.T;return Le(!(1&Ee.ka)),0>=It||0>=fr?0:(It=Ye.Ib(Ee,Ye),Ye.Jb!=null&&Ye.Jb(Ee,Ye,It),Ye.Dc+=It,1)}function na(Ee){Ee.ma.memory=null}function Pa(Ee,Ye,It,fr){return hi(Ee,8)!=47?0:(Ye[0]=hi(Ee,14)+1,It[0]=hi(Ee,14)+1,fr[0]=hi(Ee,1),hi(Ee,3)!=0?0:!Ee.h)}function La(Ee,Ye){if(4>Ee)return Ee+1;var It=Ee-2>>1;return(2+(1&Ee)<<It)+hi(Ye,It)+1}function va(Ee,Ye){return 120<Ye?Ye-120:1<=(It=((It=yu[Ye-1])>>4)*Ee+(8-(15&It)))?It:1;var It}function ga(Ee,Ye,It){var fr=In(It),Ur=Ee[Ye+=255&fr].g-8;return 0<Ur&&(qn(It,It.u+8),fr=In(It),Ye+=Ee[Ye].value,Ye+=fr&(1<<Ur)-1),qn(It,It.u+Ee[Ye].g),Ee[Ye].value}function Oa(Ee,Ye,It){return It.g+=Ee.g,It.value+=Ee.value<<Ye>>>0,Le(8>=It.g),Ee.g}function Aa(Ee,Ye,It){var fr=Ee.xc;return Le((Ye=fr==0?0:Ee.vc[Ee.md*(It>>fr)+(Ye>>fr)])<Ee.Wb),Ee.Ya[Ye]}function Xa(Ee,Ye,It,fr){var Ur=Ee.ab,ln=Ee.c*Ye,Ue=Ee.C;Ye=Ue+Ye;var ae=It,_e=fr;for(fr=Ee.Ta,It=Ee.Ua;0<Ur--;){var $e=Ee.gc[Ur],Et=Ue,qt=Ye,ar=ae,lr=_e,Gr=(_e=fr,ae=It,$e.Ea);switch(Le(Et<qt),Le(qt<=$e.nc),$e.hc){case 2:Os(ar,lr,(qt-Et)*Gr,_e,ae);break;case 0:var pn=Et,zr=qt,Hr=_e,un=ae,bn=($i=$e).Ea;pn==0&&(fl(ar,lr,null,null,1,Hr,un),cn(ar,lr+1,0,0,bn-1,Hr,un+1),lr+=bn,un+=bn,++pn);for(var Gn=1<<$i.b,Li=Gn-1,Mi=ta(bn,$i.b),da=$i.K,$i=$i.w+(pn>>$i.b)*Mi;pn<zr;){var Qa=da,ya=$i,fo=1;for(Us(ar,lr,Hr,un-bn,1,Hr,un);fo<bn;){var za=(fo&~Li)+Gn;za>bn&&(za=bn),(0,Cs[Qa[ya++]>>8&15])(ar,lr+ +fo,Hr,un+fo-bn,za-fo,Hr,un+fo),fo=za}lr+=bn,un+=bn,++pn&Li||($i+=Mi)}qt!=$e.nc&&Xe(_e,ae-Gr,_e,ae+(qt-Et-1)*Gr,Gr);break;case 1:for(Gr=ar,zr=lr,bn=(ar=$e.Ea)-(un=ar&~(Hr=(lr=1<<$e.b)-1)),pn=ta(ar,$e.b),Gn=$e.K,$e=$e.w+(Et>>$e.b)*pn;Et<qt;){for(Li=Gn,Mi=$e,da=new Er,$i=zr+un,Qa=zr+ar;zr<$i;)Nt(Li[Mi++],da),Ws(da,Gr,zr,lr,_e,ae),zr+=lr,ae+=lr;zr<Qa&&(Nt(Li[Mi++],da),Ws(da,Gr,zr,bn,_e,ae),zr+=bn,ae+=bn),++Et&Hr||($e+=pn)}break;case 3:if(ar==_e&&lr==ae&&0<$e.b){for(zr=_e,ar=Gr=ae+(qt-Et)*Gr-(un=(qt-Et)*ta($e.Ea,$e.b)),lr=_e,Hr=ae,pn=[],un=(bn=un)-1;0<=un;--un)pn[un]=lr[Hr+un];for(un=bn-1;0<=un;--un)zr[ar+un]=pn[un];Xs($e,Et,qt,_e,Gr,_e,ae)}else Xs($e,Et,qt,ar,lr,_e,ae)}ae=fr,_e=It}_e!=It&&Xe(fr,It,ae,_e,ln)}function _a(Ee,Ye){var It=Ee.V,fr=Ee.Ba+Ee.c*Ee.C,Ur=Ye-Ee.C;if(Le(Ye<=Ee.l.o),Le(16>=Ur),0<Ur){var ln=Ee.l,Ue=Ee.Ta,ae=Ee.Ua,_e=ln.width;if(Xa(Ee,Ur,It,fr),Ur=ae=[ae],Le((It=Ee.C)<(fr=Ye)),Le(ln.v<ln.va),fr>ln.o&&(fr=ln.o),It<ln.j){var $e=ln.j-It;It=ln.j,Ur[0]+=$e*_e}if(It>=fr?It=0:(Ur[0]+=4*ln.v,ln.ka=It-ln.j,ln.U=ln.va-ln.v,ln.T=fr-It,It=1),It){if(ae=ae[0],11>(It=Ee.ca).S){var Et=It.f.RGBA,qt=(fr=It.S,Ur=ln.U,ln=ln.T,$e=Et.eb,Et.A),ar=ln;for(Et=Et.fb+Ee.Ma*Et.A;0<ar--;){var lr=Ue,Gr=ae,pn=Ur,zr=$e,Hr=Et;switch(fr){case xl:Cl(lr,Gr,pn,zr,Hr);break;case xu:pl(lr,Gr,pn,zr,Hr);break;case Lu:pl(lr,Gr,pn,zr,Hr),Wl(zr,Hr,0,pn,1,0);break;case vu:qo(lr,Gr,pn,zr,Hr);break;case Au:Wn(lr,Gr,pn,zr,Hr,1);break;case zl:Wn(lr,Gr,pn,zr,Hr,1),Wl(zr,Hr,0,pn,1,0);break;case Ol:Wn(lr,Gr,pn,zr,Hr,0);break;case ru:Wn(lr,Gr,pn,zr,Hr,0),Wl(zr,Hr,1,pn,1,0);break;case cu:jo(lr,Gr,pn,zr,Hr);break;case ou:jo(lr,Gr,pn,zr,Hr),au(zr,Hr,pn,1,0);break;case du:yo(lr,Gr,pn,zr,Hr);break;default:Le(0)}ae+=_e,Et+=qt}Ee.Ma+=ln}else alert("todo:EmitRescaledRowsYUVA");Le(Ee.Ma<=It.height)}}Ee.C=Ye,Le(Ee.C<=Ee.i)}function Va(Ee){var Ye;if(0<Ee.ua)return 0;for(Ye=0;Ye<Ee.Wb;++Ye){var It=Ee.Ya[Ye].G,fr=Ee.Ya[Ye].H;if(0<It[1][fr[1]+0].g||0<It[2][fr[2]+0].g||0<It[3][fr[3]+0].g)return 0}return 1}function Bi(Ee,Ye,It,fr,Ur,ln){if(Ee.Z!=0){var Ue=Ee.qd,ae=Ee.rd;for(Le(Ce[Ee.Z]!=null);Ye<It;++Ye)Ce[Ee.Z](Ue,ae,fr,Ur,fr,Ur,ln),Ue=fr,ae=Ur,Ur+=ln;Ee.qd=Ue,Ee.rd=ae}}function io(Ee,Ye){var It=Ee.l.ma,fr=It.Z==0||It.Z==1?Ee.l.j:Ee.C;if(fr=Ee.C<fr?fr:Ee.C,Le(Ye<=Ee.l.o),Ye>fr){var Ur=Ee.l.width,ln=It.ca,Ue=It.tb+Ur*fr,ae=Ee.V,_e=Ee.Ba+Ee.c*fr,$e=Ee.gc;Le(Ee.ab==1),Le($e[0].hc==3),Ul($e[0],fr,Ye,ae,_e,ln,Ue),Bi(It,fr,Ye,ln,Ue,Ur)}Ee.C=Ee.Ma=Ye}function oo(Ee,Ye,It,fr,Ur,ln,Ue){var ae=Ee.$/fr,_e=Ee.$%fr,$e=Ee.m,Et=Ee.s,qt=It+Ee.$,ar=qt;Ur=It+fr*Ur;var lr=It+fr*ln,Gr=280+Et.ua,pn=Ee.Pb?ae:16777216,zr=0<Et.ua?Et.Wa:null,Hr=Et.wc,un=qt<lr?Aa(Et,_e,ae):null;Le(Ee.C<ln),Le(lr<=Ur);var bn=!1;e:for(;;){for(;bn||qt<lr;){var Gn=0;if(ae>=pn){var Li=qt-It;Le((pn=Ee).Pb),pn.wd=pn.m,pn.xd=Li,0<pn.s.ua&&Pn(pn.s.Wa,pn.s.vb),pn=ae+bu}if(_e&Hr||(un=Aa(Et,_e,ae)),Le(un!=null),un.Qb&&(Ye[qt]=un.qb,bn=!0),!bn)if(si($e),un.jc){Gn=$e,Li=Ye;var Mi=qt,da=un.pd[In(Gn)&vo-1];Le(un.jc),256>da.g?(qn(Gn,Gn.u+da.g),Li[Mi]=da.value,Gn=0):(qn(Gn,Gn.u+da.g-256),Le(256<=da.value),Gn=da.value),Gn==0&&(bn=!0)}else Gn=ga(un.G[0],un.H[0],$e);if($e.h)break;if(bn||256>Gn){if(!bn)if(un.nd)Ye[qt]=(un.qb|Gn<<8)>>>0;else{if(si($e),bn=ga(un.G[1],un.H[1],$e),si($e),Li=ga(un.G[2],un.H[2],$e),Mi=ga(un.G[3],un.H[3],$e),$e.h)break;Ye[qt]=(Mi<<24|bn<<16|Gn<<8|Li)>>>0}if(bn=!1,++qt,++_e>=fr&&(_e=0,++ae,Ue!=null&&ae<=ln&&!(ae%16)&&Ue(Ee,ae),zr!=null))for(;ar<qt;)Gn=Ye[ar++],zr.X[(506832829*Gn&4294967295)>>>zr.Mb]=Gn}else if(280>Gn){if(Gn=La(Gn-256,$e),Li=ga(un.G[4],un.H[4],$e),si($e),Li=va(fr,Li=La(Li,$e)),$e.h)break;if(qt-It<Li||Ur-qt<Gn)break e;for(Mi=0;Mi<Gn;++Mi)Ye[qt+Mi]=Ye[qt+Mi-Li];for(qt+=Gn,_e+=Gn;_e>=fr;)_e-=fr,++ae,Ue!=null&&ae<=ln&&!(ae%16)&&Ue(Ee,ae);if(Le(qt<=Ur),_e&Hr&&(un=Aa(Et,_e,ae)),zr!=null)for(;ar<qt;)Gn=Ye[ar++],zr.X[(506832829*Gn&4294967295)>>>zr.Mb]=Gn}else{if(!(Gn<Gr))break e;for(bn=Gn-280,Le(zr!=null);ar<qt;)Gn=Ye[ar++],zr.X[(506832829*Gn&4294967295)>>>zr.Mb]=Gn;Gn=qt,Le(!(bn>>>(Li=zr).Xa)),Ye[Gn]=Li.X[bn],bn=!0}bn||Le($e.h==Qn($e))}if(Ee.Pb&&$e.h&&qt<Ur)Le(Ee.m.h),Ee.a=5,Ee.m=Ee.wd,Ee.$=Ee.xd,0<Ee.s.ua&&Pn(Ee.s.vb,Ee.s.Wa);else{if($e.h)break e;Ue!=null&&Ue(Ee,ae>ln?ln:ae),Ee.a=0,Ee.$=qt-It}return 1}return Ee.a=3,0}function Qo(Ee){Le(Ee!=null),Ee.vc=null,Ee.yc=null,Ee.Ya=null;var Ye=Ee.Wa;Ye!=null&&(Ye.X=null),Ee.vb=null,Le(Ee!=null)}function mo(){var Ee=new No;return Ee==null?null:(Ee.a=0,Ee.xb=ve,gi("Predictor","VP8LPredictors"),gi("Predictor","VP8LPredictors_C"),gi("PredictorAdd","VP8LPredictorsAdd"),gi("PredictorAdd","VP8LPredictorsAdd_C"),Os=Un,Ws=Lr,Cl=an,pl=Cn,jo=Nn,yo=En,qo=ei,Yt.VP8LMapColor32b=Ql,Yt.VP8LMapColor8b=wl,Ee)}function Co(Ee,Ye,It,fr,Ur){var ln=1,Ue=[Ee],ae=[Ye],_e=fr.m,$e=fr.s,Et=null,qt=0;e:for(;;){if(It)for(;ln&&hi(_e,1);){var ar=Ue,lr=ae,Gr=fr,pn=1,zr=Gr.m,Hr=Gr.gc[Gr.ab],un=hi(zr,2);if(Gr.Oc&1<<un)ln=0;else{switch(Gr.Oc|=1<<un,Hr.hc=un,Hr.Ea=ar[0],Hr.nc=lr[0],Hr.K=[null],++Gr.ab,Le(4>=Gr.ab),un){case 0:case 1:Hr.b=hi(zr,3)+2,pn=Co(ta(Hr.Ea,Hr.b),ta(Hr.nc,Hr.b),0,Gr,Hr.K),Hr.K=Hr.K[0];break;case 3:var bn,Gn=hi(zr,8)+1,Li=16<Gn?0:4<Gn?1:2<Gn?2:3;if(ar[0]=ta(Hr.Ea,Li),Hr.b=Li,bn=pn=Co(Gn,1,0,Gr,Hr.K)){var Mi,da=Gn,$i=Hr,Qa=1<<(8>>$i.b),ya=Ze(Qa);if(ya==null)bn=0;else{var fo=$i.K[0],za=$i.w;for(ya[0]=$i.K[0][0],Mi=1;Mi<1*da;++Mi)ya[Mi]=ra(fo[za+Mi],ya[Mi-1]);for(;Mi<4*Qa;++Mi)ya[Mi]=0;$i.K[0]=null,$i.K[0]=ya,bn=1}}pn=bn;break;case 2:break;default:Le(0)}ln=pn}}if(Ue=Ue[0],ae=ae[0],ln&&hi(_e,1)&&!(ln=1<=(qt=hi(_e,4))&&11>=qt)){fr.a=3;break e}var Xo;if(Xo=ln)t:{var ls,N,B,ie=fr,le=Ue,ge=ae,Ke=qt,Rt=It,sr=ie.m,xr=ie.s,Ir=[null],Kn=1,ni=0,Ei=Su[Ke];r:for(;;){if(Rt&&hi(sr,1)){var Oi=hi(sr,3)+2,la=ta(le,Oi),Ca=ta(ge,Oi),Wa=la*Ca;if(!Co(la,Ca,0,ie,Ir))break r;for(Ir=Ir[0],xr.xc=Oi,ls=0;ls<Wa;++ls){var Ma=Ir[ls]>>8&65535;Ir[ls]=Ma,Ma>=Kn&&(Kn=Ma+1)}}if(sr.h)break r;for(N=0;5>N;++N){var Na=Du[N];!N&&0<Ke&&(Na+=1<<Ke),ni<Na&&(ni=Na)}var qa=ot(Kn*Ei,Xt),ho=Kn,ns=ot(ho,hr);if(ns==null)var Mo=null;else Le(65536>=ho),Mo=ns;var xs=Ze(ni);if(Mo==null||xs==null||qa==null){ie.a=1;break r}var Zs=qa;for(ls=B=0;ls<Kn;++ls){var yl=Mo[ls],ul=yl.G,Pl=yl.H,Vl=0,Il=1,Gl=0;for(N=0;5>N;++N){Na=Du[N],ul[N]=Zs,Pl[N]=B,!N&&0<Ke&&(Na+=1<<Ke);i:{var Fl,Ja=Na,vl=ie,gl=xs,El=Zs,Bu=B,Ks=0,vs=vl.m,lu=hi(vs,1);if(it(gl,0,0,Ja),lu){var Kl=hi(vs,1)+1,Uu=hi(vs,1),Eu=hi(vs,Uu==0?1:8);gl[Eu]=1,Kl==2&&(gl[Eu=hi(vs,8)]=1);var uu=1}else{var ku=Ze(19),Yl=hi(vs,4)+4;if(19<Yl){vl.a=3;var Cu=0;break i}for(Fl=0;Fl<Yl;++Fl)ku[Zl[Fl]]=hi(vs,3);var Vu=void 0,Ju=void 0,vc=vl,Ac=ku,tc=Ja,yc=gl,sc=0,ju=vc.m,hc=8,bc=ot(128,Xt);n:for(;Wt(bc,0,7,Ac,19);){if(hi(ju,1)){var Cc=2+2*hi(ju,3);if((Vu=2+hi(ju,Cc))>tc)break n}else Vu=tc;for(Ju=0;Ju<tc&&Vu--;){si(ju);var wc=bc[0+(127&In(ju))];qn(ju,ju.u+wc.g);var Pu=wc.value;if(16>Pu)yc[Ju++]=Pu,Pu!=0&&(hc=Pu);else{var Tu=Pu==16,fc=Pu-16,lc=Jl[fc],xc=hi(ju,su[fc])+lc;if(Ju+xc>tc)break n;for(var Tc=Tu?hc:0;0<xc--;)yc[Ju++]=Tc}}sc=1;break n}sc||(vc.a=3),uu=sc}(uu=uu&&!vs.h)&&(Ks=Wt(El,Bu,8,gl,Ja)),uu&&Ks!=0?Cu=Ks:(vl.a=3,Cu=0)}if(Cu==0)break r;if(Il&&Ru[N]==1&&(Il=Zs[B].g==0),Vl+=Zs[B].g,B+=Cu,3>=N){var Gu,Hu=xs[0];for(Gu=1;Gu<Na;++Gu)xs[Gu]>Hu&&(Hu=xs[Gu]);Gl+=Hu}}if(yl.nd=Il,yl.Qb=0,Il&&(yl.qb=(ul[3][Pl[3]+0].value<<24|ul[1][Pl[1]+0].value<<16|ul[2][Pl[2]+0].value)>>>0,Vl==0&&256>ul[0][Pl[0]+0].value&&(yl.Qb=1,yl.qb+=ul[0][Pl[0]+0].value<<8)),yl.jc=!yl.Qb&&6>Gl,yl.jc){var Xu,Fu=yl;for(Xu=0;Xu<vo;++Xu){var wu=Xu,Ku=Fu.pd[wu],uc=Fu.G[0][Fu.H[0]+wu];256<=uc.value?(Ku.g=uc.g+256,Ku.value=uc.value):(Ku.g=0,Ku.value=0,wu>>=Oa(uc,8,Ku),wu>>=Oa(Fu.G[1][Fu.H[1]+wu],16,Ku),wu>>=Oa(Fu.G[2][Fu.H[2]+wu],0,Ku),Oa(Fu.G[3][Fu.H[3]+wu],24,Ku))}}}xr.vc=Ir,xr.Wb=Kn,xr.Ya=Mo,xr.yc=qa,Xo=1;break t}Xo=0}if(!(ln=Xo)){fr.a=3;break e}if(0<qt){if($e.ua=1<<qt,!bi($e.Wa,qt)){fr.a=1,ln=0;break e}}else $e.ua=0;var cc=fr,Sc=Ue,Ec=ae,pc=cc.s,mc=pc.xc;if(cc.c=Sc,cc.i=Ec,pc.md=ta(Sc,mc),pc.wc=mc==0?-1:(1<<mc)-1,It){fr.xb=ne;break e}if((Et=Ze(Ue*ae))==null){fr.a=1,ln=0;break e}ln=(ln=oo(fr,Et,0,Ue,ae,ae,null))&&!_e.h;break e}return ln?(Ur!=null?Ur[0]=Et:(Le(Et==null),Le(It)),fr.$=0,It||Qo($e)):Qo($e),ln}function ao(Ee,Ye){var It=Ee.c*Ee.i,fr=It+Ye+16*Ye;return Le(Ee.c<=Ye),Ee.V=Ze(fr),Ee.V==null?(Ee.Ta=null,Ee.Ua=0,Ee.a=1,0):(Ee.Ta=Ee.V,Ee.Ua=Ee.Ba+It+Ye,1)}function xo(Ee,Ye){var It=Ee.C,fr=Ye-It,Ur=Ee.V,ln=Ee.Ba+Ee.c*It;for(Le(Ye<=Ee.l.o);0<fr;){var Ue=16<fr?16:fr,ae=Ee.l.ma,_e=Ee.l.width,$e=_e*Ue,Et=ae.ca,qt=ae.tb+_e*It,ar=Ee.Ta,lr=Ee.Ua;Xa(Ee,Ue,Ur,ln),$l(ar,lr,Et,qt,$e),Bi(ae,It,It+Ue,Et,qt,_e),fr-=Ue,Ur+=Ue*Ee.c,It+=Ue}Le(It==Ye),Ee.C=Ee.Ma=Ye}function bo(){this.ub=this.yd=this.td=this.Rb=0}function to(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Jo(){this.Fb=this.Bb=this.Cb=0,this.Zb=Ze(4),this.Lb=Ze(4)}function Uo(){this.Yb=function(){var Ee=[];return function Ye(It,fr,Ur){for(var ln=Ur[fr],Ue=0;Ue<ln&&(It.push(Ur.length>fr+1?[]:0),!(Ur.length<fr+1));Ue++)Ye(It[Ue],fr+1,Ur)}(Ee,0,[3,11]),Ee}()}function wo(){this.jb=Ze(3),this.Wc=Lt([4,8],Uo),this.Xc=Lt([4,17],Uo)}function ts(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Ze(4),this.od=new Ze(4)}function Ia(){this.ld=this.La=this.dd=this.tc=0}function Oo(){this.Na=this.la=0}function Io(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function os(){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 So(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ia),this.Y=0,this.ya=Array(new os),this.aa=0,this.l=new uo}function rs(){this.y=Ze(16),this.f=Ze(8),this.ea=Ze(8)}function Ho(){this.cb=this.a=0,this.sc="",this.m=new An,this.Od=new bo,this.Kc=new to,this.ed=new ts,this.Qa=new Jo,this.Ic=this.$c=this.Aa=0,this.D=new So,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=ot(8,An),this.ia=0,this.pb=ot(4,Io),this.Pa=new wo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new rs),this.Hd=0,this.rb=Array(new Oo),this.sb=0,this.wa=Array(new Ia),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 os),this.L=this.aa=0,this.gd=Lt([4,2],Ia),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 _o(Ee,Ye){return 0>Ee?0:Ee>Ye?Ye:Ee}function uo(){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 Ee=new Ho;return Ee!=null&&(Ee.a=0,Ee.sc="OK",Ee.cb=0,Ee.Xb=0,nu||(nu=Jr)),Ee}function vt(Ee,Ye,It){return Ee.a==0&&(Ee.a=Ye,Ee.sc=It,Ee.cb=0),0}function _r(Ee,Ye,It){return 3<=It&&Ee[Ye+0]==157&&Ee[Ye+1]==1&&Ee[Ye+2]==42}function rn(Ee,Ye){if(Ee==null)return 0;if(Ee.a=0,Ee.sc="OK",Ye==null)return vt(Ee,2,"null VP8Io passed to VP8GetHeaders()");var It=Ye.data,fr=Ye.w,Ur=Ye.ha;if(4>Ur)return vt(Ee,7,"Truncated header.");var ln=It[fr+0]|It[fr+1]<<8|It[fr+2]<<16,Ue=Ee.Od;if(Ue.Rb=!(1&ln),Ue.td=ln>>1&7,Ue.yd=ln>>4&1,Ue.ub=ln>>5,3<Ue.td)return vt(Ee,3,"Incorrect keyframe parameters.");if(!Ue.yd)return vt(Ee,4,"Frame not displayable.");fr+=3,Ur-=3;var ae=Ee.Kc;if(Ue.Rb){if(7>Ur)return vt(Ee,7,"cannot parse picture header");if(!_r(It,fr,Ur))return vt(Ee,3,"Bad code word");ae.c=16383&(It[fr+4]<<8|It[fr+3]),ae.Td=It[fr+4]>>6,ae.i=16383&(It[fr+6]<<8|It[fr+5]),ae.Ud=It[fr+6]>>6,fr+=7,Ur-=7,Ee.za=ae.c+15>>4,Ee.Ub=ae.i+15>>4,Ye.width=ae.c,Ye.height=ae.i,Ye.Da=0,Ye.j=0,Ye.v=0,Ye.va=Ye.width,Ye.o=Ye.height,Ye.da=0,Ye.ib=Ye.width,Ye.hb=Ye.height,Ye.U=Ye.width,Ye.T=Ye.height,it((ln=Ee.Pa).jb,0,255,ln.jb.length),Le((ln=Ee.Qa)!=null),ln.Cb=0,ln.Bb=0,ln.Fb=1,it(ln.Zb,0,0,ln.Zb.length),it(ln.Lb,0,0,ln.Lb)}if(Ue.ub>Ur)return vt(Ee,7,"bad partition length");br(ln=Ee.m,It,fr,Ue.ub),fr+=Ue.ub,Ur-=Ue.ub,Ue.Rb&&(ae.Ld=ki(ln),ae.Kd=ki(ln)),ae=Ee.Qa;var _e,$e=Ee.Pa;if(Le(ln!=null),Le(ae!=null),ae.Cb=ki(ln),ae.Cb){if(ae.Bb=ki(ln),ki(ln)){for(ae.Fb=ki(ln),_e=0;4>_e;++_e)ae.Zb[_e]=ki(ln)?Fr(ln,7):0;for(_e=0;4>_e;++_e)ae.Lb[_e]=ki(ln)?Fr(ln,6):0}if(ae.Bb)for(_e=0;3>_e;++_e)$e.jb[_e]=ki(ln)?wr(ln,8):255}else ae.Bb=0;if(ln.Ka)return vt(Ee,3,"cannot parse segment header");if((ae=Ee.ed).zd=ki(ln),ae.Tb=wr(ln,6),ae.wb=wr(ln,3),ae.Pc=ki(ln),ae.Pc&&ki(ln)){for($e=0;4>$e;++$e)ki(ln)&&(ae.vd[$e]=Fr(ln,6));for($e=0;4>$e;++$e)ki(ln)&&(ae.od[$e]=Fr(ln,6))}if(Ee.L=ae.Tb==0?0:ae.zd?1:2,ln.Ka)return vt(Ee,3,"cannot parse filter header");var Et=Ur;if(Ur=_e=fr,fr=_e+Et,ae=Et,Ee.Xb=(1<<wr(Ee.m,2))-1,Et<3*($e=Ee.Xb))It=7;else{for(_e+=3*$e,ae-=3*$e,Et=0;Et<$e;++Et){var qt=It[Ur+0]|It[Ur+1]<<8|It[Ur+2]<<16;qt>ae&&(qt=ae),br(Ee.Jc[+Et],It,_e,qt),_e+=qt,ae-=qt,Ur+=3}br(Ee.Jc[+$e],It,_e,ae),It=_e<fr?0:5}if(It!=0)return vt(Ee,It,"cannot parse partitions");for(It=wr(_e=Ee.m,7),Ur=ki(_e)?Fr(_e,4):0,fr=ki(_e)?Fr(_e,4):0,ae=ki(_e)?Fr(_e,4):0,$e=ki(_e)?Fr(_e,4):0,_e=ki(_e)?Fr(_e,4):0,Et=Ee.Qa,qt=0;4>qt;++qt){if(Et.Cb){var ar=Et.Zb[qt];Et.Fb||(ar+=It)}else{if(0<qt){Ee.pb[qt]=Ee.pb[0];continue}ar=It}var lr=Ee.pb[qt];lr.Sc[0]=hl[_o(ar+Ur,127)],lr.Sc[1]=Dl[_o(ar+0,127)],lr.Eb[0]=2*hl[_o(ar+fr,127)],lr.Eb[1]=101581*Dl[_o(ar+ae,127)]>>16,8>lr.Eb[1]&&(lr.Eb[1]=8),lr.Qc[0]=hl[_o(ar+$e,117)],lr.Qc[1]=Dl[_o(ar+_e,127)],lr.lc=ar+_e}if(!Ue.Rb)return vt(Ee,4,"Not a key frame.");for(ki(ln),Ue=Ee.Pa,It=0;4>It;++It){for(Ur=0;8>Ur;++Ur)for(fr=0;3>fr;++fr)for(ae=0;11>ae;++ae)$e=Ri(ln,ee[It][Ur][fr][ae])?wr(ln,8):iu[It][Ur][fr][ae],Ue.Wc[It][Ur].Yb[fr][ae]=$e;for(Ur=0;17>Ur;++Ur)Ue.Xc[It][Ur]=Ue.Wc[It][L[Ur]]}return Ee.kc=ki(ln),Ee.kc&&(Ee.Bd=wr(ln,8)),Ee.cb=1}function Jr(Ee,Ye,It,fr,Ur,ln,Ue){var ae=Ye[Ur].Yb[It];for(It=0;16>Ur;++Ur){if(!Ri(Ee,ae[It+0]))return Ur;for(;!Ri(Ee,ae[It+1]);)if(ae=Ye[++Ur].Yb[0],It=0,Ur==16)return 16;var _e=Ye[Ur+1].Yb;if(Ri(Ee,ae[It+2])){var $e=Ee,Et=0;if(Ri($e,(ar=ae)[(qt=It)+3]))if(Ri($e,ar[qt+6])){for(ae=0,qt=2*(Et=Ri($e,ar[qt+8]))+(ar=Ri($e,ar[qt+9+Et])),Et=0,ar=Nu[qt];ar[ae];++ae)Et+=Et+Ri($e,ar[ae]);Et+=3+(8<<qt)}else Ri($e,ar[qt+7])?(Et=7+2*Ri($e,165),Et+=Ri($e,145)):Et=5+Ri($e,159);else Et=Ri($e,ar[qt+4])?3+Ri($e,ar[qt+5]):2;ae=_e[2]}else Et=1,ae=_e[1];_e=Ue+hu[Ur],0>($e=Ee).b&&Ci($e);var qt,ar=$e.b,lr=(qt=$e.Ca>>1)-($e.I>>ar)>>31;--$e.b,$e.Ca+=lr,$e.Ca|=1,$e.I-=(qt+1&lr)<<ar,ln[_e]=((Et^lr)-lr)*fr[(0<Ur)+0]}return 16}function Jn(Ee){var Ye=Ee.rb[Ee.sb-1];Ye.la=0,Ye.Na=0,it(Ee.zc,0,0,Ee.zc.length),Ee.ja=0}function fn(Ee,Ye){if(Ee==null)return 0;if(Ye==null)return vt(Ee,2,"NULL VP8Io parameter in VP8Decode().");if(!Ee.cb&&!rn(Ee,Ye))return 0;if(Le(Ee.cb),Ye.ac==null||Ye.ac(Ye)){Ye.ob&&(Ee.L=0);var It=Ts[Ee.L];if(Ee.L==2?(Ee.yb=0,Ee.zb=0):(Ee.yb=Ye.v-It>>4,Ee.zb=Ye.j-It>>4,0>Ee.yb&&(Ee.yb=0),0>Ee.zb&&(Ee.zb=0)),Ee.Va=Ye.o+15+It>>4,Ee.Hb=Ye.va+15+It>>4,Ee.Hb>Ee.za&&(Ee.Hb=Ee.za),Ee.Va>Ee.Ub&&(Ee.Va=Ee.Ub),0<Ee.L){var fr=Ee.ed;for(It=0;4>It;++It){var Ur;if(Ee.Qa.Cb){var ln=Ee.Qa.Lb[It];Ee.Qa.Fb||(ln+=fr.Tb)}else ln=fr.Tb;for(Ur=0;1>=Ur;++Ur){var Ue=Ee.gd[It][Ur],ae=ln;if(fr.Pc&&(ae+=fr.vd[0],Ur&&(ae+=fr.od[0])),0<(ae=0>ae?0:63<ae?63:ae)){var _e=ae;0<fr.wb&&(_e=4<fr.wb?_e>>2:_e>>1)>9-fr.wb&&(_e=9-fr.wb),1>_e&&(_e=1),Ue.dd=_e,Ue.tc=2*ae+_e,Ue.ld=40<=ae?2:15<=ae?1:0}else Ue.tc=0;Ue.La=Ur}}}It=0}else vt(Ee,6,"Frame setup failed"),It=Ee.a;if(It=It==0){if(It){Ee.$c=0,0<Ee.Aa||(Ee.Ic=ws);e:{It=Ee.Ic,fr=4*(_e=Ee.za);var $e=32*_e,Et=_e+1,qt=0<Ee.L?_e*(0<Ee.Aa?2:1):0,ar=(Ee.Aa==2?2:1)*_e;if((Ue=fr+832+(Ur=3*(16*It+Ts[Ee.L])/2*$e)+(ln=Ee.Fa!=null&&0<Ee.Fa.length?Ee.Kc.c*Ee.Kc.i:0))!=Ue)It=0;else{if(Ue>Ee.Vb){if(Ee.Vb=0,Ee.Ec=Ze(Ue),Ee.Fc=0,Ee.Ec==null){It=vt(Ee,1,"no memory during frame initialization.");break e}Ee.Vb=Ue}Ue=Ee.Ec,ae=Ee.Fc,Ee.Ac=Ue,Ee.Bc=ae,ae+=fr,Ee.Gd=ot($e,rs),Ee.Hd=0,Ee.rb=ot(Et+1,Oo),Ee.sb=1,Ee.wa=qt?ot(qt,Ia):null,Ee.Y=0,Ee.D.Nb=0,Ee.D.wa=Ee.wa,Ee.D.Y=Ee.Y,0<Ee.Aa&&(Ee.D.Y+=_e),Le(!0),Ee.oc=Ue,Ee.pc=ae,ae+=832,Ee.ya=ot(ar,os),Ee.aa=0,Ee.D.ya=Ee.ya,Ee.D.aa=Ee.aa,Ee.Aa==2&&(Ee.D.aa+=_e),Ee.R=16*_e,Ee.B=8*_e,_e=($e=Ts[Ee.L])*Ee.R,$e=$e/2*Ee.B,Ee.sa=Ue,Ee.ta=ae+_e,Ee.qa=Ee.sa,Ee.ra=Ee.ta+16*It*Ee.R+$e,Ee.Ha=Ee.qa,Ee.Ia=Ee.ra+8*It*Ee.B+$e,Ee.$c=0,ae+=Ur,Ee.mb=ln?Ue:null,Ee.nb=ln?ae:null,Le(ae+ln<=Ee.Fc+Ee.Vb),Jn(Ee),it(Ee.Ac,Ee.Bc,0,fr),It=1}}if(It){if(Ye.ka=0,Ye.y=Ee.sa,Ye.O=Ee.ta,Ye.f=Ee.qa,Ye.N=Ee.ra,Ye.ea=Ee.Ha,Ye.Vd=Ee.Ia,Ye.fa=Ee.R,Ye.Rc=Ee.B,Ye.F=null,Ye.J=0,!gu){for(It=-255;255>=It;++It)tu[255+It]=0>It?-It:It;for(It=-1020;1020>=It;++It)Iu[1020+It]=-128>It?-128:127<It?127:It;for(It=-112;112>=It;++It)pu[112+It]=-16>It?-16:15<It?15:It;for(It=-255;510>=It;++It)mu[255+It]=0>It?0:255<It?255:It;gu=1}ps=yi,Is=di,Ls=li,Ps=Ti,ml=vi,es=ui,Rl=Ll,_l=el,Bl=ks,jl=Qs,kl=Gs,Xl=ds,ol=tl,Ys=Ss,sl=zo,nl=Fs,Sl=ms,Ml=hs,H[0]=Ka,H[1]=ia,H[2]=Ea,H[3]=Fa,H[4]=lo,H[5]=To,H[6]=so,H[7]=Lo,H[8]=cs,H[9]=is,W[0]=Da,W[1]=fa,W[2]=Ya,W[3]=Sa,W[4]=ja,W[5]=ko,W[6]=ro,Z[0]=co,Z[1]=Ki,Z[2]=Rs,Z[3]=Ko,Z[4]=$a,Z[5]=Ao,Z[6]=ss,It=1}else It=0}It&&(It=function(lr,Gr){for(lr.M=0;lr.M<lr.Va;++lr.M){var pn,zr=lr.Jc[lr.M&lr.Xb],Hr=lr.m,un=lr;for(pn=0;pn<un.za;++pn){var bn=Hr,Gn=un,Li=Gn.Ac,Mi=Gn.Bc+4*pn,da=Gn.zc,$i=Gn.ya[Gn.aa+pn];if(Gn.Qa.Bb?$i.$b=Ri(bn,Gn.Pa.jb[0])?2+Ri(bn,Gn.Pa.jb[2]):Ri(bn,Gn.Pa.jb[1]):$i.$b=0,Gn.kc&&($i.Ad=Ri(bn,Gn.Bd)),$i.Za=!Ri(bn,145)+0,$i.Za){var Qa=$i.Ob,ya=0;for(Gn=0;4>Gn;++Gn){var fo,za=da[0+Gn];for(fo=0;4>fo;++fo){za=Ae[Li[Mi+fo]][za];for(var Xo=fu[Ri(bn,za[0])];0<Xo;)Xo=fu[2*Xo+Ri(bn,za[Xo])];za=-Xo,Li[Mi+fo]=za}Xe(Qa,ya,Li,Mi,4),ya+=4,da[0+Gn]=za}}else za=Ri(bn,156)?Ri(bn,128)?1:3:Ri(bn,163)?2:0,$i.Ob[0]=za,it(Li,Mi,za,4),it(da,0,za,4);$i.Dd=Ri(bn,142)?Ri(bn,114)?Ri(bn,183)?1:3:2:0}if(un.m.Ka)return vt(lr,7,"Premature end-of-partition0 encountered.");for(;lr.ja<lr.za;++lr.ja){if(un=zr,bn=(Hr=lr).rb[Hr.sb-1],Li=Hr.rb[Hr.sb+Hr.ja],pn=Hr.ya[Hr.aa+Hr.ja],Mi=Hr.kc?pn.Ad:0)bn.la=Li.la=0,pn.Za||(bn.Na=Li.Na=0),pn.Hc=0,pn.Gc=0,pn.ia=0;else{var ls,N;if(bn=Li,Li=un,Mi=Hr.Pa.Xc,da=Hr.ya[Hr.aa+Hr.ja],$i=Hr.pb[da.$b],Gn=da.ad,Qa=0,ya=Hr.rb[Hr.sb-1],za=fo=0,it(Gn,Qa,0,384),da.Za)var B=0,ie=Mi[3];else{Xo=Ze(16);var le=bn.Na+ya.Na;if(le=nu(Li,Mi[1],le,$i.Eb,0,Xo,0),bn.Na=ya.Na=(0<le)+0,1<le)ps(Xo,0,Gn,Qa);else{var ge=Xo[0]+3>>3;for(Xo=0;256>Xo;Xo+=16)Gn[Qa+Xo]=ge}B=1,ie=Mi[0]}var Ke=15&bn.la,Rt=15&ya.la;for(Xo=0;4>Xo;++Xo){var sr=1&Rt;for(ge=N=0;4>ge;++ge)Ke=Ke>>1|(sr=(le=nu(Li,ie,le=sr+(1&Ke),$i.Sc,B,Gn,Qa))>B)<<7,N=N<<2|(3<le?3:1<le?2:Gn[Qa+0]!=0),Qa+=16;Ke>>=4,Rt=Rt>>1|sr<<7,fo=(fo<<8|N)>>>0}for(ie=Ke,B=Rt>>4,ls=0;4>ls;ls+=2){for(N=0,Ke=bn.la>>4+ls,Rt=ya.la>>4+ls,Xo=0;2>Xo;++Xo){for(sr=1&Rt,ge=0;2>ge;++ge)le=sr+(1&Ke),Ke=Ke>>1|(sr=0<(le=nu(Li,Mi[2],le,$i.Qc,0,Gn,Qa)))<<3,N=N<<2|(3<le?3:1<le?2:Gn[Qa+0]!=0),Qa+=16;Ke>>=2,Rt=Rt>>1|sr<<5}za|=N<<4*ls,ie|=Ke<<4<<ls,B|=(240&Rt)<<ls}bn.la=ie,ya.la=B,da.Hc=fo,da.Gc=za,da.ia=43690&za?0:$i.ia,Mi=!(fo|za)}if(0<Hr.L&&(Hr.wa[Hr.Y+Hr.ja]=Hr.gd[pn.$b][pn.Za],Hr.wa[Hr.Y+Hr.ja].La|=!Mi),un.Ka)return vt(lr,7,"Premature end-of-file encountered.")}if(Jn(lr),Hr=Gr,un=1,pn=(zr=lr).D,bn=0<zr.L&&zr.M>=zr.zb&&zr.M<=zr.Va,zr.Aa==0)e:{if(pn.M=zr.M,pn.uc=bn,Bo(zr,pn),un=1,pn=(N=zr.D).Nb,bn=(za=Ts[zr.L])*zr.R,Li=za/2*zr.B,Xo=16*pn*zr.R,ge=8*pn*zr.B,Mi=zr.sa,da=zr.ta-bn+Xo,$i=zr.qa,Gn=zr.ra-Li+ge,Qa=zr.Ha,ya=zr.Ia-Li+ge,Rt=(Ke=N.M)==0,fo=Ke>=zr.Va-1,zr.Aa==2&&Bo(zr,N),N.uc)for(sr=(le=zr).D.M,Le(le.D.uc),N=le.yb;N<le.Hb;++N){B=N,ie=sr;var xr=(Ir=(Na=le).D).Nb;ls=Na.R;var Ir=Ir.wa[Ir.Y+B],Kn=Na.sa,ni=Na.ta+16*xr*ls+16*B,Ei=Ir.dd,Oi=Ir.tc;if(Oi!=0)if(Le(3<=Oi),Na.L==1)0<B&&nl(Kn,ni,ls,Oi+4),Ir.La&&Ml(Kn,ni,ls,Oi),0<ie&&sl(Kn,ni,ls,Oi+4),Ir.La&&Sl(Kn,ni,ls,Oi);else{var la=Na.B,Ca=Na.qa,Wa=Na.ra+8*xr*la+8*B,Ma=Na.Ha,Na=Na.Ia+8*xr*la+8*B;xr=Ir.ld,0<B&&(_l(Kn,ni,ls,Oi+4,Ei,xr),jl(Ca,Wa,Ma,Na,la,Oi+4,Ei,xr)),Ir.La&&(Xl(Kn,ni,ls,Oi,Ei,xr),Ys(Ca,Wa,Ma,Na,la,Oi,Ei,xr)),0<ie&&(Rl(Kn,ni,ls,Oi+4,Ei,xr),Bl(Ca,Wa,Ma,Na,la,Oi+4,Ei,xr)),Ir.La&&(kl(Kn,ni,ls,Oi,Ei,xr),ol(Ca,Wa,Ma,Na,la,Oi,Ei,xr))}}if(zr.ia&&alert("todo:DitherRow"),Hr.put!=null){if(N=16*Ke,Ke=16*(Ke+1),Rt?(Hr.y=zr.sa,Hr.O=zr.ta+Xo,Hr.f=zr.qa,Hr.N=zr.ra+ge,Hr.ea=zr.Ha,Hr.W=zr.Ia+ge):(N-=za,Hr.y=Mi,Hr.O=da,Hr.f=$i,Hr.N=Gn,Hr.ea=Qa,Hr.W=ya),fo||(Ke-=za),Ke>Hr.o&&(Ke=Hr.o),Hr.F=null,Hr.J=null,zr.Fa!=null&&0<zr.Fa.length&&N<Ke&&(Hr.J=ur(zr,Hr,N,Ke-N),Hr.F=zr.mb,Hr.F==null&&Hr.F.length==0)){un=vt(zr,3,"Could not decode alpha data.");break e}N<Hr.j&&(za=Hr.j-N,N=Hr.j,Le(!(1&za)),Hr.O+=zr.R*za,Hr.N+=zr.B*(za>>1),Hr.W+=zr.B*(za>>1),Hr.F!=null&&(Hr.J+=Hr.width*za)),N<Ke&&(Hr.O+=Hr.v,Hr.N+=Hr.v>>1,Hr.W+=Hr.v>>1,Hr.F!=null&&(Hr.J+=Hr.v),Hr.ka=N-Hr.j,Hr.U=Hr.va-Hr.v,Hr.T=Ke-N,un=Hr.put(Hr))}pn+1!=zr.Ic||fo||(Xe(zr.sa,zr.ta-bn,Mi,da+16*zr.R,bn),Xe(zr.qa,zr.ra-Li,$i,Gn+8*zr.B,Li),Xe(zr.Ha,zr.Ia-Li,Qa,ya+8*zr.B,Li))}if(!un)return vt(lr,6,"Output aborted.")}return 1}(Ee,Ye)),Ye.bc!=null&&Ye.bc(Ye),It&=1}return It?(Ee.cb=0,It):0}function Yr(Ee,Ye,It,fr,Ur){Ur=Ee[Ye+It+32*fr]+(Ur>>3),Ee[Ye+It+32*fr]=-256&Ur?0>Ur?0:255:Ur}function ii(Ee,Ye,It,fr,Ur,ln){Yr(Ee,Ye,0,It,fr+Ur),Yr(Ee,Ye,1,It,fr+ln),Yr(Ee,Ye,2,It,fr-ln),Yr(Ee,Ye,3,It,fr-Ur)}function on(Ee){return(20091*Ee>>16)+Ee}function zn(Ee,Ye,It,fr){var Ur,ln=0,Ue=Ze(16);for(Ur=0;4>Ur;++Ur){var ae=Ee[Ye+0]+Ee[Ye+8],_e=Ee[Ye+0]-Ee[Ye+8],$e=(35468*Ee[Ye+4]>>16)-on(Ee[Ye+12]),Et=on(Ee[Ye+4])+(35468*Ee[Ye+12]>>16);Ue[ln+0]=ae+Et,Ue[ln+1]=_e+$e,Ue[ln+2]=_e-$e,Ue[ln+3]=ae-Et,ln+=4,Ye++}for(Ur=ln=0;4>Ur;++Ur)ae=(Ee=Ue[ln+0]+4)+Ue[ln+8],_e=Ee-Ue[ln+8],$e=(35468*Ue[ln+4]>>16)-on(Ue[ln+12]),Yr(It,fr,0,0,ae+(Et=on(Ue[ln+4])+(35468*Ue[ln+12]>>16))),Yr(It,fr,1,0,_e+$e),Yr(It,fr,2,0,_e-$e),Yr(It,fr,3,0,ae-Et),ln++,fr+=32}function ui(Ee,Ye,It,fr){var Ur=Ee[Ye+0]+4,ln=35468*Ee[Ye+4]>>16,Ue=on(Ee[Ye+4]),ae=35468*Ee[Ye+1]>>16;ii(It,fr,0,Ur+Ue,Ee=on(Ee[Ye+1]),ae),ii(It,fr,1,Ur+ln,Ee,ae),ii(It,fr,2,Ur-ln,Ee,ae),ii(It,fr,3,Ur-Ue,Ee,ae)}function di(Ee,Ye,It,fr,Ur){zn(Ee,Ye,It,fr),Ur&&zn(Ee,Ye+16,It,fr+4)}function li(Ee,Ye,It,fr){Is(Ee,Ye+0,It,fr,1),Is(Ee,Ye+32,It,fr+128,1)}function Ti(Ee,Ye,It,fr){var Ur;for(Ee=Ee[Ye+0]+4,Ur=0;4>Ur;++Ur)for(Ye=0;4>Ye;++Ye)Yr(It,fr,Ye,Ur,Ee)}function vi(Ee,Ye,It,fr){Ee[Ye+0]&&Ps(Ee,Ye+0,It,fr),Ee[Ye+16]&&Ps(Ee,Ye+16,It,fr+4),Ee[Ye+32]&&Ps(Ee,Ye+32,It,fr+128),Ee[Ye+48]&&Ps(Ee,Ye+48,It,fr+128+4)}function yi(Ee,Ye,It,fr){var Ur,ln=Ze(16);for(Ur=0;4>Ur;++Ur){var Ue=Ee[Ye+0+Ur]+Ee[Ye+12+Ur],ae=Ee[Ye+4+Ur]+Ee[Ye+8+Ur],_e=Ee[Ye+4+Ur]-Ee[Ye+8+Ur],$e=Ee[Ye+0+Ur]-Ee[Ye+12+Ur];ln[0+Ur]=Ue+ae,ln[8+Ur]=Ue-ae,ln[4+Ur]=$e+_e,ln[12+Ur]=$e-_e}for(Ur=0;4>Ur;++Ur)Ue=(Ee=ln[0+4*Ur]+3)+ln[3+4*Ur],ae=ln[1+4*Ur]+ln[2+4*Ur],_e=ln[1+4*Ur]-ln[2+4*Ur],$e=Ee-ln[3+4*Ur],It[fr+0]=Ue+ae>>3,It[fr+16]=$e+_e>>3,It[fr+32]=Ue-ae>>3,It[fr+48]=$e-_e>>3,fr+=64}function Ni(Ee,Ye,It){var fr,Ur=Ye-32,ln=ll,Ue=255-Ee[Ur-1];for(fr=0;fr<It;++fr){var ae,_e=ln,$e=Ue+Ee[Ye-1];for(ae=0;ae<It;++ae)Ee[Ye+ae]=_e[$e+Ee[Ur+ae]];Ye+=32}}function ia(Ee,Ye){Ni(Ee,Ye,4)}function Ki(Ee,Ye){Ni(Ee,Ye,8)}function fa(Ee,Ye){Ni(Ee,Ye,16)}function Ya(Ee,Ye){var It;for(It=0;16>It;++It)Xe(Ee,Ye+32*It,Ee,Ye-32,16)}function Sa(Ee,Ye){var It;for(It=16;0<It;--It)it(Ee,Ye,Ee[Ye-1],16),Ye+=32}function wa(Ee,Ye,It){var fr;for(fr=0;16>fr;++fr)it(Ye,It+32*fr,Ee,16)}function Da(Ee,Ye){var It,fr=16;for(It=0;16>It;++It)fr+=Ee[Ye-1+32*It]+Ee[Ye+It-32];wa(fr>>5,Ee,Ye)}function ja(Ee,Ye){var It,fr=8;for(It=0;16>It;++It)fr+=Ee[Ye-1+32*It];wa(fr>>4,Ee,Ye)}function ko(Ee,Ye){var It,fr=8;for(It=0;16>It;++It)fr+=Ee[Ye+It-32];wa(fr>>4,Ee,Ye)}function ro(Ee,Ye){wa(128,Ee,Ye)}function pa(Ee,Ye,It){return Ee+2*Ye+It+2>>2}function Ea(Ee,Ye){var It,fr=Ye-32;for(fr=new Uint8Array([pa(Ee[fr-1],Ee[fr+0],Ee[fr+1]),pa(Ee[fr+0],Ee[fr+1],Ee[fr+2]),pa(Ee[fr+1],Ee[fr+2],Ee[fr+3]),pa(Ee[fr+2],Ee[fr+3],Ee[fr+4])]),It=0;4>It;++It)Xe(Ee,Ye+32*It,fr,0,fr.length)}function Fa(Ee,Ye){var It=Ee[Ye-1],fr=Ee[Ye-1+32],Ur=Ee[Ye-1+64],ln=Ee[Ye-1+96];oa(Ee,Ye+0,16843009*pa(Ee[Ye-1-32],It,fr)),oa(Ee,Ye+32,16843009*pa(It,fr,Ur)),oa(Ee,Ye+64,16843009*pa(fr,Ur,ln)),oa(Ee,Ye+96,16843009*pa(Ur,ln,ln))}function Ka(Ee,Ye){var It,fr=4;for(It=0;4>It;++It)fr+=Ee[Ye+It-32]+Ee[Ye-1+32*It];for(fr>>=3,It=0;4>It;++It)it(Ee,Ye+32*It,fr,4)}function lo(Ee,Ye){var It=Ee[Ye-1+0],fr=Ee[Ye-1+32],Ur=Ee[Ye-1+64],ln=Ee[Ye-1-32],Ue=Ee[Ye+0-32],ae=Ee[Ye+1-32],_e=Ee[Ye+2-32],$e=Ee[Ye+3-32];Ee[Ye+0+96]=pa(fr,Ur,Ee[Ye-1+96]),Ee[Ye+1+96]=Ee[Ye+0+64]=pa(It,fr,Ur),Ee[Ye+2+96]=Ee[Ye+1+64]=Ee[Ye+0+32]=pa(ln,It,fr),Ee[Ye+3+96]=Ee[Ye+2+64]=Ee[Ye+1+32]=Ee[Ye+0+0]=pa(Ue,ln,It),Ee[Ye+3+64]=Ee[Ye+2+32]=Ee[Ye+1+0]=pa(ae,Ue,ln),Ee[Ye+3+32]=Ee[Ye+2+0]=pa(_e,ae,Ue),Ee[Ye+3+0]=pa($e,_e,ae)}function so(Ee,Ye){var It=Ee[Ye+1-32],fr=Ee[Ye+2-32],Ur=Ee[Ye+3-32],ln=Ee[Ye+4-32],Ue=Ee[Ye+5-32],ae=Ee[Ye+6-32],_e=Ee[Ye+7-32];Ee[Ye+0+0]=pa(Ee[Ye+0-32],It,fr),Ee[Ye+1+0]=Ee[Ye+0+32]=pa(It,fr,Ur),Ee[Ye+2+0]=Ee[Ye+1+32]=Ee[Ye+0+64]=pa(fr,Ur,ln),Ee[Ye+3+0]=Ee[Ye+2+32]=Ee[Ye+1+64]=Ee[Ye+0+96]=pa(Ur,ln,Ue),Ee[Ye+3+32]=Ee[Ye+2+64]=Ee[Ye+1+96]=pa(ln,Ue,ae),Ee[Ye+3+64]=Ee[Ye+2+96]=pa(Ue,ae,_e),Ee[Ye+3+96]=pa(ae,_e,_e)}function To(Ee,Ye){var It=Ee[Ye-1+0],fr=Ee[Ye-1+32],Ur=Ee[Ye-1+64],ln=Ee[Ye-1-32],Ue=Ee[Ye+0-32],ae=Ee[Ye+1-32],_e=Ee[Ye+2-32],$e=Ee[Ye+3-32];Ee[Ye+0+0]=Ee[Ye+1+64]=ln+Ue+1>>1,Ee[Ye+1+0]=Ee[Ye+2+64]=Ue+ae+1>>1,Ee[Ye+2+0]=Ee[Ye+3+64]=ae+_e+1>>1,Ee[Ye+3+0]=_e+$e+1>>1,Ee[Ye+0+96]=pa(Ur,fr,It),Ee[Ye+0+64]=pa(fr,It,ln),Ee[Ye+0+32]=Ee[Ye+1+96]=pa(It,ln,Ue),Ee[Ye+1+32]=Ee[Ye+2+96]=pa(ln,Ue,ae),Ee[Ye+2+32]=Ee[Ye+3+96]=pa(Ue,ae,_e),Ee[Ye+3+32]=pa(ae,_e,$e)}function Lo(Ee,Ye){var It=Ee[Ye+0-32],fr=Ee[Ye+1-32],Ur=Ee[Ye+2-32],ln=Ee[Ye+3-32],Ue=Ee[Ye+4-32],ae=Ee[Ye+5-32],_e=Ee[Ye+6-32],$e=Ee[Ye+7-32];Ee[Ye+0+0]=It+fr+1>>1,Ee[Ye+1+0]=Ee[Ye+0+64]=fr+Ur+1>>1,Ee[Ye+2+0]=Ee[Ye+1+64]=Ur+ln+1>>1,Ee[Ye+3+0]=Ee[Ye+2+64]=ln+Ue+1>>1,Ee[Ye+0+32]=pa(It,fr,Ur),Ee[Ye+1+32]=Ee[Ye+0+96]=pa(fr,Ur,ln),Ee[Ye+2+32]=Ee[Ye+1+96]=pa(Ur,ln,Ue),Ee[Ye+3+32]=Ee[Ye+2+96]=pa(ln,Ue,ae),Ee[Ye+3+64]=pa(Ue,ae,_e),Ee[Ye+3+96]=pa(ae,_e,$e)}function is(Ee,Ye){var It=Ee[Ye-1+0],fr=Ee[Ye-1+32],Ur=Ee[Ye-1+64],ln=Ee[Ye-1+96];Ee[Ye+0+0]=It+fr+1>>1,Ee[Ye+2+0]=Ee[Ye+0+32]=fr+Ur+1>>1,Ee[Ye+2+32]=Ee[Ye+0+64]=Ur+ln+1>>1,Ee[Ye+1+0]=pa(It,fr,Ur),Ee[Ye+3+0]=Ee[Ye+1+32]=pa(fr,Ur,ln),Ee[Ye+3+32]=Ee[Ye+1+64]=pa(Ur,ln,ln),Ee[Ye+3+64]=Ee[Ye+2+64]=Ee[Ye+0+96]=Ee[Ye+1+96]=Ee[Ye+2+96]=Ee[Ye+3+96]=ln}function cs(Ee,Ye){var It=Ee[Ye-1+0],fr=Ee[Ye-1+32],Ur=Ee[Ye-1+64],ln=Ee[Ye-1+96],Ue=Ee[Ye-1-32],ae=Ee[Ye+0-32],_e=Ee[Ye+1-32],$e=Ee[Ye+2-32];Ee[Ye+0+0]=Ee[Ye+2+32]=It+Ue+1>>1,Ee[Ye+0+32]=Ee[Ye+2+64]=fr+It+1>>1,Ee[Ye+0+64]=Ee[Ye+2+96]=Ur+fr+1>>1,Ee[Ye+0+96]=ln+Ur+1>>1,Ee[Ye+3+0]=pa(ae,_e,$e),Ee[Ye+2+0]=pa(Ue,ae,_e),Ee[Ye+1+0]=Ee[Ye+3+32]=pa(It,Ue,ae),Ee[Ye+1+32]=Ee[Ye+3+64]=pa(fr,It,Ue),Ee[Ye+1+64]=Ee[Ye+3+96]=pa(Ur,fr,It),Ee[Ye+1+96]=pa(ln,Ur,fr)}function Rs(Ee,Ye){var It;for(It=0;8>It;++It)Xe(Ee,Ye+32*It,Ee,Ye-32,8)}function Ko(Ee,Ye){var It;for(It=0;8>It;++It)it(Ee,Ye,Ee[Ye-1],8),Ye+=32}function as(Ee,Ye,It){var fr;for(fr=0;8>fr;++fr)it(Ye,It+32*fr,Ee,8)}function co(Ee,Ye){var It,fr=8;for(It=0;8>It;++It)fr+=Ee[Ye+It-32]+Ee[Ye-1+32*It];as(fr>>4,Ee,Ye)}function Ao(Ee,Ye){var It,fr=4;for(It=0;8>It;++It)fr+=Ee[Ye+It-32];as(fr>>3,Ee,Ye)}function $a(Ee,Ye){var It,fr=4;for(It=0;8>It;++It)fr+=Ee[Ye-1+32*It];as(fr>>3,Ee,Ye)}function ss(Ee,Ye){as(128,Ee,Ye)}function _s(Ee,Ye,It){var fr=Ee[Ye-It],Ur=Ee[Ye+0],ln=3*(Ur-fr)+ql[1020+Ee[Ye-2*It]-Ee[Ye+It]],Ue=Tl[112+(ln+4>>3)];Ee[Ye-It]=ll[255+fr+Tl[112+(ln+3>>3)]],Ee[Ye+0]=ll[255+Ur-Ue]}function Fo(Ee,Ye,It,fr){var Ur=Ee[Ye+0],ln=Ee[Ye+It];return Hl[255+Ee[Ye-2*It]-Ee[Ye-It]]>fr||Hl[255+ln-Ur]>fr}function il(Ee,Ye,It,fr){return 4*Hl[255+Ee[Ye-It]-Ee[Ye+0]]+Hl[255+Ee[Ye-2*It]-Ee[Ye+It]]<=fr}function Eo(Ee,Ye,It,fr,Ur){var ln=Ee[Ye-3*It],Ue=Ee[Ye-2*It],ae=Ee[Ye-It],_e=Ee[Ye+0],$e=Ee[Ye+It],Et=Ee[Ye+2*It],qt=Ee[Ye+3*It];return 4*Hl[255+ae-_e]+Hl[255+Ue-$e]>fr?0:Hl[255+Ee[Ye-4*It]-ln]<=Ur&&Hl[255+ln-Ue]<=Ur&&Hl[255+Ue-ae]<=Ur&&Hl[255+qt-Et]<=Ur&&Hl[255+Et-$e]<=Ur&&Hl[255+$e-_e]<=Ur}function zo(Ee,Ye,It,fr){var Ur=2*fr+1;for(fr=0;16>fr;++fr)il(Ee,Ye+fr,It,Ur)&&_s(Ee,Ye+fr,It)}function Fs(Ee,Ye,It,fr){var Ur=2*fr+1;for(fr=0;16>fr;++fr)il(Ee,Ye+fr*It,1,Ur)&&_s(Ee,Ye+fr*It,1)}function ms(Ee,Ye,It,fr){var Ur;for(Ur=3;0<Ur;--Ur)zo(Ee,Ye+=4*It,It,fr)}function hs(Ee,Ye,It,fr){var Ur;for(Ur=3;0<Ur;--Ur)Fs(Ee,Ye+=4,It,fr)}function Sn(Ee,Ye,It,fr,Ur,ln,Ue,ae){for(ln=2*ln+1;0<Ur--;){if(Eo(Ee,Ye,It,ln,Ue))if(Fo(Ee,Ye,It,ae))_s(Ee,Ye,It);else{var _e=Ee,$e=Ye,Et=It,qt=_e[$e-2*Et],ar=_e[$e-Et],lr=_e[$e+0],Gr=_e[$e+Et],pn=_e[$e+2*Et],zr=27*(un=ql[1020+3*(lr-ar)+ql[1020+qt-Gr]])+63>>7,Hr=18*un+63>>7,un=9*un+63>>7;_e[$e-3*Et]=ll[255+_e[$e-3*Et]+un],_e[$e-2*Et]=ll[255+qt+Hr],_e[$e-Et]=ll[255+ar+zr],_e[$e+0]=ll[255+lr-zr],_e[$e+Et]=ll[255+Gr-Hr],_e[$e+2*Et]=ll[255+pn-un]}Ye+=fr}}function Ns(Ee,Ye,It,fr,Ur,ln,Ue,ae){for(ln=2*ln+1;0<Ur--;){if(Eo(Ee,Ye,It,ln,Ue))if(Fo(Ee,Ye,It,ae))_s(Ee,Ye,It);else{var _e=Ee,$e=Ye,Et=It,qt=_e[$e-Et],ar=_e[$e+0],lr=_e[$e+Et],Gr=Tl[112+((pn=3*(ar-qt))+4>>3)],pn=Tl[112+(pn+3>>3)],zr=Gr+1>>1;_e[$e-2*Et]=ll[255+_e[$e-2*Et]+zr],_e[$e-Et]=ll[255+qt+pn],_e[$e+0]=ll[255+ar-Gr],_e[$e+Et]=ll[255+lr-zr]}Ye+=fr}}function Ll(Ee,Ye,It,fr,Ur,ln){Sn(Ee,Ye,It,1,16,fr,Ur,ln)}function el(Ee,Ye,It,fr,Ur,ln){Sn(Ee,Ye,1,It,16,fr,Ur,ln)}function Gs(Ee,Ye,It,fr,Ur,ln){var Ue;for(Ue=3;0<Ue;--Ue)Ns(Ee,Ye+=4*It,It,1,16,fr,Ur,ln)}function ds(Ee,Ye,It,fr,Ur,ln){var Ue;for(Ue=3;0<Ue;--Ue)Ns(Ee,Ye+=4,1,It,16,fr,Ur,ln)}function ks(Ee,Ye,It,fr,Ur,ln,Ue,ae){Sn(Ee,Ye,Ur,1,8,ln,Ue,ae),Sn(It,fr,Ur,1,8,ln,Ue,ae)}function Qs(Ee,Ye,It,fr,Ur,ln,Ue,ae){Sn(Ee,Ye,1,Ur,8,ln,Ue,ae),Sn(It,fr,1,Ur,8,ln,Ue,ae)}function tl(Ee,Ye,It,fr,Ur,ln,Ue,ae){Ns(Ee,Ye+4*Ur,Ur,1,8,ln,Ue,ae),Ns(It,fr+4*Ur,Ur,1,8,ln,Ue,ae)}function Ss(Ee,Ye,It,fr,Ur,ln,Ue,ae){Ns(Ee,Ye+4,1,Ur,8,ln,Ue,ae),Ns(It,fr+4,1,Ur,8,ln,Ue,ae)}function Bs(){this.ba=new Vi,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 al(){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 Js(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Vo(){this.ua=0,this.Wa=new ji,this.vb=new ji,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new hr,this.yc=new Xt}function No(){this.xb=this.a=0,this.l=new uo,this.ca=new Vi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new jr,this.Pb=0,this.wd=new jr,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Vo,this.ab=0,this.gc=ot(4,Js),this.Oc=0}function fs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new uo,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ds(Ee,Ye,It,fr,Ur,ln,Ue){for(Ee=Ee==null?0:Ee[Ye+0],Ye=0;Ye<Ue;++Ye)Ur[ln+Ye]=Ee+It[fr+Ye]&255,Ee=Ur[ln+Ye]}function go(Ee,Ye,It,fr,Ur,ln,Ue){var ae;if(Ee==null)Ds(null,null,It,fr,Ur,ln,Ue);else for(ae=0;ae<Ue;++ae)Ur[ln+ae]=Ee[Ye+ae]+It[fr+ae]&255}function zt(Ee,Ye,It,fr,Ur,ln,Ue){if(Ee==null)Ds(null,null,It,fr,Ur,ln,Ue);else{var ae,_e=Ee[Ye+0],$e=_e,Et=_e;for(ae=0;ae<Ue;++ae)$e=Et+(_e=Ee[Ye+ae])-$e,Et=It[fr+ae]+(-256&$e?0>$e?0:255:$e)&255,$e=_e,Ur[ln+ae]=Et}}function ur(Ee,Ye,It,fr){var Ur=Ye.width,ln=Ye.o;if(Le(Ee!=null&&Ye!=null),0>It||0>=fr||It+fr>ln)return null;if(!Ee.Cc){if(Ee.ga==null){var Ue;if(Ee.ga=new fs,(Ue=Ee.ga==null)||(Ue=Ye.width*Ye.o,Le(Ee.Gb.length==0),Ee.Gb=Ze(Ue),Ee.Uc=0,Ee.Gb==null?Ue=0:(Ee.mb=Ee.Gb,Ee.nb=Ee.Uc,Ee.rc=null,Ue=1),Ue=!Ue),!Ue){Ue=Ee.ga;var ae=Ee.Fa,_e=Ee.P,$e=Ee.qc,Et=Ee.mb,qt=Ee.nb,ar=_e+1,lr=$e-1,Gr=Ue.l;if(Le(ae!=null&&Et!=null&&Ye!=null),Ce[0]=null,Ce[1]=Ds,Ce[2]=go,Ce[3]=zt,Ue.ca=Et,Ue.tb=qt,Ue.c=Ye.width,Ue.i=Ye.height,Le(0<Ue.c&&0<Ue.i),1>=$e)Ye=0;else if(Ue.$a=ae[_e+0]>>0&3,Ue.Z=ae[_e+0]>>2&3,Ue.Lc=ae[_e+0]>>4&3,_e=ae[_e+0]>>6&3,0>Ue.$a||1<Ue.$a||4<=Ue.Z||1<Ue.Lc||_e)Ye=0;else if(Gr.put=Ta,Gr.ac=ca,Gr.bc=na,Gr.ma=Ue,Gr.width=Ye.width,Gr.height=Ye.height,Gr.Da=Ye.Da,Gr.v=Ye.v,Gr.va=Ye.va,Gr.j=Ye.j,Gr.o=Ye.o,Ue.$a)e:{Le(Ue.$a==1),Ye=mo();t:for(;;){if(Ye==null){Ye=0;break e}if(Le(Ue!=null),Ue.mc=Ye,Ye.c=Ue.c,Ye.i=Ue.i,Ye.l=Ue.l,Ye.l.ma=Ue,Ye.l.width=Ue.c,Ye.l.height=Ue.i,Ye.a=0,Xn(Ye.m,ae,ar,lr),!Co(Ue.c,Ue.i,1,Ye,null))break t;if(Ye.ab==1&&Ye.gc[0].hc==3&&Va(Ye.s)?(Ue.ic=1,ae=Ye.c*Ye.i,Ye.Ta=null,Ye.Ua=0,Ye.V=Ze(ae),Ye.Ba=0,Ye.V==null?(Ye.a=1,Ye=0):Ye=1):(Ue.ic=0,Ye=ao(Ye,Ue.c)),!Ye)break t;Ye=1;break e}Ue.mc=null,Ye=0}else Ye=lr>=Ue.c*Ue.i;Ue=!Ye}if(Ue)return null;Ee.ga.Lc!=1?Ee.Ga=0:fr=ln-It}Le(Ee.ga!=null),Le(It+fr<=ln);e:{if(Ye=(ae=Ee.ga).c,ln=ae.l.o,ae.$a==0){if(ar=Ee.rc,lr=Ee.Vc,Gr=Ee.Fa,_e=Ee.P+1+It*Ye,$e=Ee.mb,Et=Ee.nb+It*Ye,Le(_e<=Ee.P+Ee.qc),ae.Z!=0)for(Le(Ce[ae.Z]!=null),Ue=0;Ue<fr;++Ue)Ce[ae.Z](ar,lr,Gr,_e,$e,Et,Ye),ar=$e,lr=Et,Et+=Ye,_e+=Ye;else for(Ue=0;Ue<fr;++Ue)Xe($e,Et,Gr,_e,Ye),ar=$e,lr=Et,Et+=Ye,_e+=Ye;Ee.rc=ar,Ee.Vc=lr}else{if(Le(ae.mc!=null),Ye=It+fr,Le((Ue=ae.mc)!=null),Le(Ye<=Ue.i),Ue.C>=Ye)Ye=1;else if(ae.ic||Se(),ae.ic){ae=Ue.V,ar=Ue.Ba,lr=Ue.c;var pn=Ue.i,zr=(Gr=1,_e=Ue.$/lr,$e=Ue.$%lr,Et=Ue.m,qt=Ue.s,Ue.$),Hr=lr*pn,un=lr*Ye,bn=qt.wc,Gn=zr<un?Aa(qt,$e,_e):null;Le(zr<=Hr),Le(Ye<=pn),Le(Va(qt));t:for(;;){for(;!Et.h&&zr<un;){if($e&bn||(Gn=Aa(qt,$e,_e)),Le(Gn!=null),si(Et),256>(pn=ga(Gn.G[0],Gn.H[0],Et)))ae[ar+zr]=pn,++zr,++$e>=lr&&($e=0,++_e<=Ye&&!(_e%16)&&io(Ue,_e));else{if(!(280>pn)){Gr=0;break t}pn=La(pn-256,Et);var Li,Mi=ga(Gn.G[4],Gn.H[4],Et);if(si(Et),!(zr>=(Mi=va(lr,Mi=La(Mi,Et)))&&Hr-zr>=pn)){Gr=0;break t}for(Li=0;Li<pn;++Li)ae[ar+zr+Li]=ae[ar+zr+Li-Mi];for(zr+=pn,$e+=pn;$e>=lr;)$e-=lr,++_e<=Ye&&!(_e%16)&&io(Ue,_e);zr<un&&$e&bn&&(Gn=Aa(qt,$e,_e))}Le(Et.h==Qn(Et))}io(Ue,_e>Ye?Ye:_e);break t}!Gr||Et.h&&zr<Hr?(Gr=0,Ue.a=Et.h?5:3):Ue.$=zr,Ye=Gr}else Ye=oo(Ue,Ue.V,Ue.Ba,Ue.c,Ue.i,Ye,xo);if(!Ye){fr=0;break e}}It+fr>=ln&&(Ee.Cc=1),fr=1}if(!fr)return null;if(Ee.Cc&&((fr=Ee.ga)!=null&&(fr.mc=null),Ee.ga=null,0<Ee.Ga))return alert("todo:WebPDequantizeLevels"),null}return Ee.nb+It*Ur}function Dn(Ee,Ye,It,fr,Ur,ln){for(;0<Ur--;){var Ue,ae=Ee,_e=Ye+(It?1:0),$e=Ee,Et=Ye+(It?0:3);for(Ue=0;Ue<fr;++Ue){var qt=$e[Et+4*Ue];qt!=255&&(qt*=32897,ae[_e+4*Ue+0]=ae[_e+4*Ue+0]*qt>>23,ae[_e+4*Ue+1]=ae[_e+4*Ue+1]*qt>>23,ae[_e+4*Ue+2]=ae[_e+4*Ue+2]*qt>>23)}Ye+=ln}}function fi(Ee,Ye,It,fr,Ur){for(;0<fr--;){var ln;for(ln=0;ln<It;++ln){var Ue=Ee[Ye+2*ln+0],ae=15&($e=Ee[Ye+2*ln+1]),_e=4369*ae,$e=(240&$e|$e>>4)*_e>>16;Ee[Ye+2*ln+0]=(240&Ue|Ue>>4)*_e>>16&240|(15&Ue|Ue<<4)*_e>>16>>4&15,Ee[Ye+2*ln+1]=240&$e|ae}Ye+=Ur}}function Mt(Ee,Ye,It,fr,Ur,ln,Ue,ae){var _e,$e,Et=255;for($e=0;$e<Ur;++$e){for(_e=0;_e<fr;++_e){var qt=Ee[Ye+_e];ln[Ue+4*_e]=qt,Et&=qt}Ye+=It,Ue+=ae}return Et!=255}function ce(Ee,Ye,It,fr,Ur){var ln;for(ln=0;ln<Ur;++ln)It[fr+ln]=Ee[Ye+ln]>>8}function Se(){Wl=Dn,au=fi,Nl=Mt,$l=ce}function Ie(Ee,Ye,It){Yt[Ee]=function(fr,Ur,ln,Ue,ae,_e,$e,Et,qt,ar,lr,Gr,pn,zr,Hr,un,bn){var Gn,Li=bn-1>>1,Mi=ae[_e+0]|$e[Et+0]<<16,da=qt[ar+0]|lr[Gr+0]<<16;Le(fr!=null);var $i=3*Mi+da+131074>>2;for(Ye(fr[Ur+0],255&$i,$i>>16,pn,zr),ln!=null&&($i=3*da+Mi+131074>>2,Ye(ln[Ue+0],255&$i,$i>>16,Hr,un)),Gn=1;Gn<=Li;++Gn){var Qa=ae[_e+Gn]|$e[Et+Gn]<<16,ya=qt[ar+Gn]|lr[Gr+Gn]<<16,fo=Mi+Qa+da+ya+524296,za=fo+2*(Qa+da)>>3;$i=za+Mi>>1,Mi=(fo=fo+2*(Mi+ya)>>3)+Qa>>1,Ye(fr[Ur+2*Gn-1],255&$i,$i>>16,pn,zr+(2*Gn-1)*It),Ye(fr[Ur+2*Gn-0],255&Mi,Mi>>16,pn,zr+(2*Gn-0)*It),ln!=null&&($i=fo+da>>1,Mi=za+ya>>1,Ye(ln[Ue+2*Gn-1],255&$i,$i>>16,Hr,un+(2*Gn-1)*It),Ye(ln[Ue+2*Gn+0],255&Mi,Mi>>16,Hr,un+(2*Gn+0)*It)),Mi=Qa,da=ya}1&bn||($i=3*Mi+da+131074>>2,Ye(fr[Ur+bn-1],255&$i,$i>>16,pn,zr+(bn-1)*It),ln!=null&&($i=3*da+Mi+131074>>2,Ye(ln[Ue+bn-1],255&$i,$i>>16,Hr,un+(bn-1)*It)))}}function Je(){ze[xl]=st,ze[xu]=tr,ze[vu]=gt,ze[Au]=Or,ze[Ol]=Sr,ze[cu]=Wr,ze[du]=$r,ze[Lu]=tr,ze[zl]=Or,ze[ru]=Sr,ze[ou]=Wr}function Pt(Ee){return Ee&~Gi?0>Ee?0:255:Ee>>ua}function cr(Ee,Ye){return Pt((19077*Ee>>8)+(26149*Ye>>8)-14234)}function Zr(Ee,Ye,It){return Pt((19077*Ee>>8)-(6419*Ye>>8)-(13320*It>>8)+8708)}function vn(Ee,Ye){return Pt((19077*Ee>>8)+(33050*Ye>>8)-17685)}function kn(Ee,Ye,It,fr,Ur){fr[Ur+0]=cr(Ee,It),fr[Ur+1]=Zr(Ee,Ye,It),fr[Ur+2]=vn(Ee,Ye)}function ci(Ee,Ye,It,fr,Ur){fr[Ur+0]=vn(Ee,Ye),fr[Ur+1]=Zr(Ee,Ye,It),fr[Ur+2]=cr(Ee,It)}function Si(Ee,Ye,It,fr,Ur){var ln=Zr(Ee,Ye,It);Ye=ln<<3&224|vn(Ee,Ye)>>3,fr[Ur+0]=248&cr(Ee,It)|ln>>5,fr[Ur+1]=Ye}function Ai(Ee,Ye,It,fr,Ur){var ln=240&vn(Ee,Ye)|15;fr[Ur+0]=240&cr(Ee,It)|Zr(Ee,Ye,It)>>4,fr[Ur+1]=ln}function Qi(Ee,Ye,It,fr,Ur){fr[Ur+0]=255,kn(Ee,Ye,It,fr,Ur+1)}function sa(Ee,Ye,It,fr,Ur){ci(Ee,Ye,It,fr,Ur),fr[Ur+3]=255}function Ua(Ee,Ye,It,fr,Ur){kn(Ee,Ye,It,fr,Ur),fr[Ur+3]=255}function _o(Ee,Ye){return 0>Ee?0:Ee>Ye?Ye:Ee}function no(Ee,Ye,It){Yt[Ee]=function(fr,Ur,ln,Ue,ae,_e,$e,Et,qt){for(var ar=Et+(-2&qt)*It;Et!=ar;)Ye(fr[Ur+0],ln[Ue+0],ae[_e+0],$e,Et),Ye(fr[Ur+1],ln[Ue+0],ae[_e+0],$e,Et+It),Ur+=2,++Ue,++_e,Et+=2*It;1&qt&&Ye(fr[Ur+0],ln[Ue+0],ae[_e+0],$e,Et)}}function Wo(Ee,Ye,It){return It==0?Ee==0?Ye==0?6:5:Ye==0?4:0:It}function Zo(Ee,Ye,It,fr,Ur){switch(Ee>>>30){case 3:Is(Ye,It,fr,Ur,0);break;case 2:es(Ye,It,fr,Ur);break;case 1:Ps(Ye,It,fr,Ur)}}function Bo(Ee,Ye){var It,fr,Ur=Ye.M,ln=Ye.Nb,Ue=Ee.oc,ae=Ee.pc+40,_e=Ee.oc,$e=Ee.pc+584,Et=Ee.oc,qt=Ee.pc+600;for(It=0;16>It;++It)Ue[ae+32*It-1]=129;for(It=0;8>It;++It)_e[$e+32*It-1]=129,Et[qt+32*It-1]=129;for(0<Ur?Ue[ae-1-32]=_e[$e-1-32]=Et[qt-1-32]=129:(it(Ue,ae-32-1,127,21),it(_e,$e-32-1,127,9),it(Et,qt-32-1,127,9)),fr=0;fr<Ee.za;++fr){var ar=Ye.ya[Ye.aa+fr];if(0<fr){for(It=-1;16>It;++It)Xe(Ue,ae+32*It-4,Ue,ae+32*It+12,4);for(It=-1;8>It;++It)Xe(_e,$e+32*It-4,_e,$e+32*It+4,4),Xe(Et,qt+32*It-4,Et,qt+32*It+4,4)}var lr=Ee.Gd,Gr=Ee.Hd+fr,pn=ar.ad,zr=ar.Hc;if(0<Ur&&(Xe(Ue,ae-32,lr[Gr].y,0,16),Xe(_e,$e-32,lr[Gr].f,0,8),Xe(Et,qt-32,lr[Gr].ea,0,8)),ar.Za){var Hr=Ue,un=ae-32+16;for(0<Ur&&(fr>=Ee.za-1?it(Hr,un,lr[Gr].y[15],4):Xe(Hr,un,lr[Gr+1].y,0,4)),It=0;4>It;It++)Hr[un+128+It]=Hr[un+256+It]=Hr[un+384+It]=Hr[un+0+It];for(It=0;16>It;++It,zr<<=2)Hr=Ue,un=ae+ys[It],H[ar.Ob[It]](Hr,un),Zo(zr,pn,16*+It,Hr,un)}else if(Hr=Wo(fr,Ur,ar.Ob[0]),W[Hr](Ue,ae),zr!=0)for(It=0;16>It;++It,zr<<=2)Zo(zr,pn,16*+It,Ue,ae+ys[It]);for(It=ar.Gc,Hr=Wo(fr,Ur,ar.Dd),Z[Hr](_e,$e),Z[Hr](Et,qt),zr=pn,Hr=_e,un=$e,255&(ar=It>>0)&&(170&ar?Ls(zr,256,Hr,un):ml(zr,256,Hr,un)),ar=Et,zr=qt,255&(It>>=8)&&(170&It?Ls(pn,320,ar,zr):ml(pn,320,ar,zr)),Ur<Ee.Ub-1&&(Xe(lr[Gr].y,0,Ue,ae+480,16),Xe(lr[Gr].f,0,_e,$e+224,8),Xe(lr[Gr].ea,0,Et,qt+224,8)),It=8*ln*Ee.B,lr=Ee.sa,Gr=Ee.ta+16*fr+16*ln*Ee.R,pn=Ee.qa,ar=Ee.ra+8*fr+It,zr=Ee.Ha,Hr=Ee.Ia+8*fr+It,It=0;16>It;++It)Xe(lr,Gr+It*Ee.R,Ue,ae+32*It,16);for(It=0;8>It;++It)Xe(pn,ar+It*Ee.B,_e,$e+32*It,8),Xe(zr,Hr+It*Ee.B,Et,qt+32*It,8)}}function Es(Ee,Ye,It,fr,Ur,ln,Ue,ae,_e){var $e=[0],Et=[0],qt=0,ar=_e!=null?_e.kd:0,lr=_e!=null?_e:new al;if(Ee==null||12>It)return 7;lr.data=Ee,lr.w=Ye,lr.ha=It,Ye=[Ye],It=[It],lr.gb=[lr.gb];e:{var Gr=Ye,pn=It,zr=lr.gb;if(Le(Ee!=null),Le(pn!=null),Le(zr!=null),zr[0]=0,12<=pn[0]&&!je(Ee,Gr[0],"RIFF")){if(je(Ee,Gr[0]+8,"WEBP")){zr=3;break e}var Hr=ba(Ee,Gr[0]+4);if(12>Hr||4294967286<Hr){zr=3;break e}if(ar&&Hr>pn[0]-8){zr=7;break e}zr[0]=Hr,Gr[0]+=12,pn[0]-=12}zr=0}if(zr!=0)return zr;for(Hr=0<lr.gb[0],It=It[0];;){e:{var un=Ee;pn=Ye,zr=It;var bn=$e,Gn=Et,Li=Gr=[0];if(($i=qt=[qt])[0]=0,8>zr[0])zr=7;else{if(!je(un,pn[0],"VP8X")){if(ba(un,pn[0]+4)!=10){zr=3;break e}if(18>zr[0]){zr=7;break e}var Mi=ba(un,pn[0]+8),da=1+aa(un,pn[0]+12);if(2147483648<=da*(un=1+aa(un,pn[0]+15))){zr=3;break e}Li!=null&&(Li[0]=Mi),bn!=null&&(bn[0]=da),Gn!=null&&(Gn[0]=un),pn[0]+=18,zr[0]-=18,$i[0]=1}zr=0}}if(qt=qt[0],Gr=Gr[0],zr!=0)return zr;if(pn=!!(2&Gr),!Hr&&qt)return 3;if(ln!=null&&(ln[0]=!!(16&Gr)),Ue!=null&&(Ue[0]=pn),ae!=null&&(ae[0]=0),Ue=$e[0],Gr=Et[0],qt&&pn&&_e==null){zr=0;break}if(4>It){zr=7;break}if(Hr&&qt||!Hr&&!qt&&!je(Ee,Ye[0],"ALPH")){It=[It],lr.na=[lr.na],lr.P=[lr.P],lr.Sa=[lr.Sa];e:{Mi=Ee,zr=Ye,Hr=It;var $i=lr.gb;bn=lr.na,Gn=lr.P,Li=lr.Sa,da=22,Le(Mi!=null),Le(Hr!=null),un=zr[0];var Qa=Hr[0];for(Le(bn!=null),Le(Li!=null),bn[0]=null,Gn[0]=null,Li[0]=0;;){if(zr[0]=un,Hr[0]=Qa,8>Qa){zr=7;break e}var ya=ba(Mi,un+4);if(4294967286<ya){zr=3;break e}var fo=8+ya+1&-2;if(da+=fo,0<$i&&da>$i){zr=3;break e}if(!je(Mi,un,"VP8 ")||!je(Mi,un,"VP8L")){zr=0;break e}if(Qa[0]<fo){zr=7;break e}je(Mi,un,"ALPH")||(bn[0]=Mi,Gn[0]=un+8,Li[0]=ya),un+=fo,Qa-=fo}}if(It=It[0],lr.na=lr.na[0],lr.P=lr.P[0],lr.Sa=lr.Sa[0],zr!=0)break}It=[It],lr.Ja=[lr.Ja],lr.xa=[lr.xa];e:if($i=Ee,zr=Ye,Hr=It,bn=lr.gb[0],Gn=lr.Ja,Li=lr.xa,Mi=zr[0],un=!je($i,Mi,"VP8 "),da=!je($i,Mi,"VP8L"),Le($i!=null),Le(Hr!=null),Le(Gn!=null),Le(Li!=null),8>Hr[0])zr=7;else{if(un||da){if($i=ba($i,Mi+4),12<=bn&&$i>bn-12){zr=3;break e}if(ar&&$i>Hr[0]-8){zr=7;break e}Gn[0]=$i,zr[0]+=8,Hr[0]-=8,Li[0]=da}else Li[0]=5<=Hr[0]&&$i[Mi+0]==47&&!($i[Mi+4]>>5),Gn[0]=Hr[0];zr=0}if(It=It[0],lr.Ja=lr.Ja[0],lr.xa=lr.xa[0],Ye=Ye[0],zr!=0)break;if(4294967286<lr.Ja)return 3;if(ae==null||pn||(ae[0]=lr.xa?2:1),Ue=[Ue],Gr=[Gr],lr.xa){if(5>It){zr=7;break}ae=Ue,ar=Gr,pn=ln,Ee==null||5>It?Ee=0:5<=It&&Ee[Ye+0]==47&&!(Ee[Ye+4]>>5)?(Hr=[0],$i=[0],bn=[0],Xn(Gn=new jr,Ee,Ye,It),Pa(Gn,Hr,$i,bn)?(ae!=null&&(ae[0]=Hr[0]),ar!=null&&(ar[0]=$i[0]),pn!=null&&(pn[0]=bn[0]),Ee=1):Ee=0):Ee=0}else{if(10>It){zr=7;break}ae=Gr,Ee==null||10>It||!_r(Ee,Ye+3,It-3)?Ee=0:(ar=Ee[Ye+0]|Ee[Ye+1]<<8|Ee[Ye+2]<<16,pn=16383&(Ee[Ye+7]<<8|Ee[Ye+6]),Ee=16383&(Ee[Ye+9]<<8|Ee[Ye+8]),1&ar||3<(ar>>1&7)||!(ar>>4&1)||ar>>5>=lr.Ja||!pn||!Ee?Ee=0:(Ue&&(Ue[0]=pn),ae&&(ae[0]=Ee),Ee=1))}if(!Ee)return 3;if(Ue=Ue[0],Gr=Gr[0],qt&&($e[0]!=Ue||Et[0]!=Gr))return 3;_e!=null&&(_e[0]=lr,_e.offset=Ye-_e.w,Le(4294967286>Ye-_e.w),Le(_e.offset==_e.ha-It));break}return zr==0||zr==7&&qt&&_e==null?(ln!=null&&(ln[0]|=lr.na!=null&&0<lr.na.length),fr!=null&&(fr[0]=Ue),Ur!=null&&(Ur[0]=Gr),0):zr}function As(Ee,Ye,It){var fr=Ye.width,Ur=Ye.height,ln=0,Ue=0,ae=fr,_e=Ur;if(Ye.Da=Ee!=null&&0<Ee.Da,Ye.Da&&(ae=Ee.cd,_e=Ee.bd,ln=Ee.v,Ue=Ee.j,11>It||(ln&=-2,Ue&=-2),0>ln||0>Ue||0>=ae||0>=_e||ln+ae>fr||Ue+_e>Ur))return 0;if(Ye.v=ln,Ye.j=Ue,Ye.va=ln+ae,Ye.o=Ue+_e,Ye.U=ae,Ye.T=_e,Ye.da=Ee!=null&&0<Ee.da,Ye.da){if(!ha(ae,_e,It=[Ee.ib],ln=[Ee.hb]))return 0;Ye.ib=It[0],Ye.hb=ln[0]}return Ye.ob=Ee!=null&&Ee.ob,Ye.Kb=Ee==null||!Ee.Sd,Ye.da&&(Ye.ob=Ye.ib<3*fr/4&&Ye.hb<3*Ur/4,Ye.Kb=0),1}function $o(Ee){if(Ee==null)return 2;if(11>Ee.S){var Ye=Ee.f.RGBA;Ye.fb+=(Ee.height-1)*Ye.A,Ye.A=-Ye.A}else Ye=Ee.f.kb,Ee=Ee.height,Ye.O+=(Ee-1)*Ye.fa,Ye.fa=-Ye.fa,Ye.N+=(Ee-1>>1)*Ye.Ab,Ye.Ab=-Ye.Ab,Ye.W+=(Ee-1>>1)*Ye.Db,Ye.Db=-Ye.Db,Ye.F!=null&&(Ye.J+=(Ee-1)*Ye.lb,Ye.lb=-Ye.lb);return 0}function Do(Ee,Ye,It,fr){if(fr==null||0>=Ee||0>=Ye)return 2;if(It!=null){if(It.Da){var Ur=It.cd,ln=It.bd,Ue=-2&It.v,ae=-2&It.j;if(0>Ue||0>ae||0>=Ur||0>=ln||Ue+Ur>Ee||ae+ln>Ye)return 2;Ee=Ur,Ye=ln}if(It.da){if(!ha(Ee,Ye,Ur=[It.ib],ln=[It.hb]))return 2;Ee=Ur[0],Ye=ln[0]}}fr.width=Ee,fr.height=Ye;e:{var _e=fr.width,$e=fr.height;if(Ee=fr.S,0>=_e||0>=$e||!(Ee>=xl&&13>Ee))Ee=2;else{if(0>=fr.Rd&&fr.sd==null){Ue=ln=Ur=Ye=0;var Et=(ae=_e*Hs[Ee])*$e;if(11>Ee||(ln=($e+1)/2*(Ye=(_e+1)/2),Ee==12&&(Ue=(Ur=_e)*$e)),($e=Ze(Et+2*ln+Ue))==null){Ee=1;break e}fr.sd=$e,11>Ee?((_e=fr.f.RGBA).eb=$e,_e.fb=0,_e.A=ae,_e.size=Et):((_e=fr.f.kb).y=$e,_e.O=0,_e.fa=ae,_e.Fd=Et,_e.f=$e,_e.N=0+Et,_e.Ab=Ye,_e.Cd=ln,_e.ea=$e,_e.W=0+Et+ln,_e.Db=Ye,_e.Ed=ln,Ee==12&&(_e.F=$e,_e.J=0+Et+2*ln),_e.Tc=Ue,_e.lb=Ur)}if(Ye=1,Ur=fr.S,ln=fr.width,Ue=fr.height,Ur>=xl&&13>Ur)if(11>Ur)Ee=fr.f.RGBA,Ye&=(ae=Math.abs(Ee.A))*(Ue-1)+ln<=Ee.size,Ye&=ae>=ln*Hs[Ur],Ye&=Ee.eb!=null;else{Ee=fr.f.kb,ae=(ln+1)/2,Et=(Ue+1)/2,_e=Math.abs(Ee.fa),$e=Math.abs(Ee.Ab);var qt=Math.abs(Ee.Db),ar=Math.abs(Ee.lb),lr=ar*(Ue-1)+ln;Ye&=_e*(Ue-1)+ln<=Ee.Fd,Ye&=$e*(Et-1)+ae<=Ee.Cd,Ye=(Ye&=qt*(Et-1)+ae<=Ee.Ed)&_e>=ln&$e>=ae&qt>=ae,Ye&=Ee.y!=null,Ye&=Ee.f!=null,Ye&=Ee.ea!=null,Ur==12&&(Ye&=ar>=ln,Ye&=lr<=Ee.Tc,Ye&=Ee.F!=null)}else Ye=0;Ee=Ye?0:2}}return Ee!=0||It!=null&&It.fd&&(Ee=$o(fr)),Ee}var vo=64,Ms=[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],rl=24,gs=32,Ra=8,dl=[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];Nr("Predictor0","PredictorAdd0"),Yt.Predictor0=function(){return 4278190080},Yt.Predictor1=function(Ee){return Ee},Yt.Predictor2=function(Ee,Ye,It){return Ye[It+0]},Yt.Predictor3=function(Ee,Ye,It){return Ye[It+1]},Yt.Predictor4=function(Ee,Ye,It){return Ye[It-1]},Yt.Predictor5=function(Ee,Ye,It){return On(On(Ee,Ye[It+1]),Ye[It+0])},Yt.Predictor6=function(Ee,Ye,It){return On(Ee,Ye[It-1])},Yt.Predictor7=function(Ee,Ye,It){return On(Ee,Ye[It+0])},Yt.Predictor8=function(Ee,Ye,It){return On(Ye[It-1],Ye[It+0])},Yt.Predictor9=function(Ee,Ye,It){return On(Ye[It+0],Ye[It+1])},Yt.Predictor10=function(Ee,Ye,It){return On(On(Ee,Ye[It-1]),On(Ye[It+0],Ye[It+1]))},Yt.Predictor11=function(Ee,Ye,It){var fr=Ye[It+0];return 0>=Xr(fr>>24&255,Ee>>24&255,(Ye=Ye[It-1])>>24&255)+Xr(fr>>16&255,Ee>>16&255,Ye>>16&255)+Xr(fr>>8&255,Ee>>8&255,Ye>>8&255)+Xr(255&fr,255&Ee,255&Ye)?fr:Ee},Yt.Predictor12=function(Ee,Ye,It){var fr=Ye[It+0];return(gr((Ee>>24&255)+(fr>>24&255)-((Ye=Ye[It-1])>>24&255))<<24|gr((Ee>>16&255)+(fr>>16&255)-(Ye>>16&255))<<16|gr((Ee>>8&255)+(fr>>8&255)-(Ye>>8&255))<<8|gr((255&Ee)+(255&fr)-(255&Ye)))>>>0},Yt.Predictor13=function(Ee,Ye,It){var fr=Ye[It-1];return(Pr((Ee=On(Ee,Ye[It+0]))>>24&255,fr>>24&255)<<24|Pr(Ee>>16&255,fr>>16&255)<<16|Pr(Ee>>8&255,fr>>8&255)<<8|Pr(Ee>>0&255,fr>>0&255))>>>0};var fl=Yt.PredictorAdd0;Yt.PredictorAdd1=cn,Nr("Predictor2","PredictorAdd2"),Nr("Predictor3","PredictorAdd3"),Nr("Predictor4","PredictorAdd4"),Nr("Predictor5","PredictorAdd5"),Nr("Predictor6","PredictorAdd6"),Nr("Predictor7","PredictorAdd7"),Nr("Predictor8","PredictorAdd8"),Nr("Predictor9","PredictorAdd9"),Nr("Predictor10","PredictorAdd10"),Nr("Predictor11","PredictorAdd11"),Nr("Predictor12","PredictorAdd12"),Nr("Predictor13","PredictorAdd13");var Us=Yt.PredictorAdd2;Dr("ColorIndexInverseTransform","MapARGB","32b",function(Ee){return Ee>>8&255},function(Ee){return Ee}),Dr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(Ee){return Ee},function(Ee){return Ee>>8&255});var Os,Xs=Yt.ColorIndexInverseTransform,Ql=Yt.MapARGB,Ul=Yt.VP8LColorIndexInverseTransformAlpha,wl=Yt.MapAlpha,Cs=Yt.VP8LPredictorsAdd=[];Cs.length=16,(Yt.VP8LPredictors=[]).length=16,(Yt.VP8LPredictorsAdd_C=[]).length=16,(Yt.VP8LPredictors_C=[]).length=16;var Ws,Cl,pl,jo,yo,qo,ps,Is,es,Ls,Ps,ml,Rl,_l,Bl,jl,kl,Xl,ol,Ys,sl,nl,Sl,Ml,Wl,au,Nl,$l,tu=Ze(511),Iu=Ze(2041),pu=Ze(225),mu=Ze(767),gu=0,ql=Iu,Tl=pu,ll=mu,Hl=tu,xl=0,xu=1,vu=2,Au=3,Ol=4,cu=5,du=6,Lu=7,zl=8,ru=9,ou=10,su=[2,3,7],Jl=[3,3,11],Du=[280,256,256,256,40],Ru=[0,1,1,1,0],Zl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],yu=[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],Su=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],bu=8,hl=[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],Dl=[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],nu=null,Nu=[[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]],hu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],fu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],iu=[[[[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]]]],Ae=[[[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]]],ee=[[[[255,255,255,255,255,255,255,255,255,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]]]],L=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],W=[],H=[],Z=[],ne=1,ve=2,Ce=[],ze=[];Ie("UpsampleRgbLinePair",kn,3),Ie("UpsampleBgrLinePair",ci,3),Ie("UpsampleRgbaLinePair",Ua,4),Ie("UpsampleBgraLinePair",sa,4),Ie("UpsampleArgbLinePair",Qi,4),Ie("UpsampleRgba4444LinePair",Ai,2),Ie("UpsampleRgb565LinePair",Si,2);var st=Yt.UpsampleRgbLinePair,gt=Yt.UpsampleBgrLinePair,tr=Yt.UpsampleRgbaLinePair,Or=Yt.UpsampleBgraLinePair,Sr=Yt.UpsampleArgbLinePair,Wr=Yt.UpsampleRgba4444LinePair,$r=Yt.UpsampleRgb565LinePair,Ln=16,Mn=1<<Ln-1,Zn=-227,xi=482,ua=6,Gi=(256<<ua)-1,Zi=0,ka=Ze(256),Ga=Ze(256),Ba=Ze(256),xa=Ze(256),Go=Ze(xi-Zn),bs=Ze(xi-Zn);no("YuvToRgbRow",kn,3),no("YuvToBgrRow",ci,3),no("YuvToRgbaRow",Ua,4),no("YuvToBgraRow",sa,4),no("YuvToArgbRow",Qi,4),no("YuvToRgba4444Row",Ai,2),no("YuvToRgb565Row",Si,2);var ys=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ts=[0,2,8],js=[8,7,6,4,4,2,2,2,1,1,1,1],ws=1;this.WebPDecodeRGBA=function(Ee,Ye,It,fr,Ur){var ln=xu,Ue=new Bs,ae=new Vi;Ue.ba=ae,ae.S=ln,ae.width=[ae.width],ae.height=[ae.height];var _e=ae.width,$e=ae.height,Et=new ea;if(Et==null||Ee==null)var qt=2;else Le(Et!=null),qt=Es(Ee,Ye,It,Et.width,Et.height,Et.Pd,Et.Qd,Et.format,null);if(qt!=0?_e=0:(_e!=null&&(_e[0]=Et.width[0]),$e!=null&&($e[0]=Et.height[0]),_e=1),_e){ae.width=ae.width[0],ae.height=ae.height[0],fr!=null&&(fr[0]=ae.width),Ur!=null&&(Ur[0]=ae.height);e:{if(fr=new uo,(Ur=new al).data=Ee,Ur.w=Ye,Ur.ha=It,Ur.kd=1,Ye=[0],Le(Ur!=null),((Ee=Es(Ur.data,Ur.w,Ur.ha,null,null,null,Ye,null,Ur))==0||Ee==7)&&Ye[0]&&(Ee=4),(Ye=Ee)==0){if(Le(Ue!=null),fr.data=Ur.data,fr.w=Ur.w+Ur.offset,fr.ha=Ur.ha-Ur.offset,fr.put=Ta,fr.ac=ca,fr.bc=na,fr.ma=Ue,Ur.xa){if((Ee=mo())==null){Ue=1;break e}if(function(ar,lr){var Gr=[0],pn=[0],zr=[0];t:for(;;){if(ar==null)return 0;if(lr==null)return ar.a=2,0;if(ar.l=lr,ar.a=0,Xn(ar.m,lr.data,lr.w,lr.ha),!Pa(ar.m,Gr,pn,zr)){ar.a=3;break t}if(ar.xb=ve,lr.width=Gr[0],lr.height=pn[0],!Co(Gr[0],pn[0],1,ar,null))break t;return 1}return Le(ar.a!=0),0}(Ee,fr)){if(fr=(Ye=Do(fr.width,fr.height,Ue.Oa,Ue.ba))==0){t:{fr=Ee;r:for(;;){if(fr==null){fr=0;break t}if(Le(fr.s.yc!=null),Le(fr.s.Ya!=null),Le(0<fr.s.Wb),Le((It=fr.l)!=null),Le((Ur=It.ma)!=null),fr.xb!=0){if(fr.ca=Ur.ba,fr.tb=Ur.tb,Le(fr.ca!=null),!As(Ur.Oa,It,Au)){fr.a=2;break r}if(!ao(fr,It.width))break r;if(It.da)break r;if((It.da||Fi(fr.ca.S))&&Se(),11>fr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),fr.ca.f.kb.F!=null&&Se()),fr.Pb&&0<fr.s.ua&&fr.s.vb.X==null&&!bi(fr.s.vb,fr.s.Wa.Xa)){fr.a=1;break r}fr.xb=0}if(!oo(fr,fr.V,fr.Ba,fr.c,fr.i,It.o,_a))break r;Ur.Dc=fr.Ma,fr=1;break t}Le(fr.a!=0),fr=0}fr=!fr}fr&&(Ye=Ee.a)}else Ye=Ee.a}else{if((Ee=new Ha)==null){Ue=1;break e}if(Ee.Fa=Ur.na,Ee.P=Ur.P,Ee.qc=Ur.Sa,rn(Ee,fr)){if((Ye=Do(fr.width,fr.height,Ue.Oa,Ue.ba))==0){if(Ee.Aa=0,It=Ue.Oa,Le((Ur=Ee)!=null),It!=null){if(0<(_e=0>(_e=It.Md)?0:100<_e?255:255*_e/100)){for($e=Et=0;4>$e;++$e)12>(qt=Ur.pb[$e]).lc&&(qt.ia=_e*js[0>qt.lc?0:qt.lc]>>3),Et|=qt.ia;Et&&(alert("todo:VP8InitRandom"),Ur.ia=1)}Ur.Ga=It.Id,100<Ur.Ga?Ur.Ga=100:0>Ur.Ga&&(Ur.Ga=0)}fn(Ee,fr)||(Ye=Ee.a)}}else Ye=Ee.a}Ye==0&&Ue.Oa!=null&&Ue.Oa.fd&&(Ye=$o(Ue.ba))}Ue=Ye}ln=Ue!=0?null:11>ln?ae.f.RGBA.eb:ae.f.kb.y}else ln=null;return ln};var Hs=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function mr(Yn,Yt){for(var Dt="",Bt=0;Bt<4;Bt++)Dt+=String.fromCharCode(Yn[Yt++]);return Dt}function qr(Yn,Yt){return(Yn[Yt+0]<<0|Yn[Yt+1]<<8|Yn[Yt+2]<<16)>>>0}function Qr(Yn,Yt){return(Yn[Yt+0]<<0|Yn[Yt+1]<<8|Yn[Yt+2]<<16|Yn[Yt+3]<<24)>>>0}new At;var gn=[0],yr=[0],Vn=[],Br=new At,jn=at,xn=function(Yn,Yt){var Dt={},Bt=0,Wt=!1,Xt=0,kt=0;if(Dt.frames=[],!function(jr,In,Qn,qn){for(var si=0;si<qn;si++)if(jr[In+si]!=Qn.charCodeAt(si))return!0;return!1}(Yn,Yt,"RIFF",4)){var hr,br;for(Qr(Yn,Yt+=4),Yt+=8;Yt<Yn.length;){var wr=mr(Yn,Yt),Fr=Qr(Yn,Yt+=4);Yt+=4;var Xn=Fr+(1&Fr);switch(wr){case"VP8 ":case"VP8L":Dt.frames[Bt]===void 0&&(Dt.frames[Bt]={}),(An=Dt.frames[Bt]).src_off=Wt?kt:Yt-8,An.src_size=Xt+Fr+8,Bt++,Wt&&(Wt=!1,Xt=0,kt=0);break;case"VP8X":(An=Dt.header={}).feature_flags=Yn[Yt];var Fn=Yt+4;An.canvas_width=1+qr(Yn,Fn),Fn+=3,An.canvas_height=1+qr(Yn,Fn),Fn+=3;break;case"ALPH":Wt=!0,Xt=Xn+8,kt=Yt-8;break;case"ANIM":(An=Dt.header).bgcolor=Qr(Yn,Yt),Fn=Yt+4,An.loop_count=(hr=Yn)[(br=Fn)+0]<<0|hr[br+1]<<8,Fn+=2;break;case"ANMF":var hi,An;(An=Dt.frames[Bt]={}).offset_x=2*qr(Yn,Yt),Yt+=3,An.offset_y=2*qr(Yn,Yt),Yt+=3,An.width=1+qr(Yn,Yt),Yt+=3,An.height=1+qr(Yn,Yt),Yt+=3,An.duration=qr(Yn,Yt),Yt+=3,hi=Yn[Yt++],An.dispose=1&hi,An.blend=hi>>1&1}wr!="ANMF"&&(Yt+=Xn)}return Dt}}(jn,0);xn.response=jn,xn.rgbaoutput=!0,xn.dataurl=!1;var tn=xn.header?xn.header:null,ti=xn.frames?xn.frames:null;if(tn){tn.loop_counter=tn.loop_count,gn=[tn.canvas_height],yr=[tn.canvas_width];for(var mi=0;mi<ti.length&&ti[mi].blend!=0;mi++);}var Pi=ti[0],en=Br.WebPDecodeRGBA(jn,Pi.src_off,Pi.src_size,yr,gn);Pi.rgba=en,Pi.imgwidth=yr[0],Pi.imgheight=gn[0];for(var Tn=0;Tn<yr[0]*gn[0]*4;Tn++)Vn[Tn]=en[Tn];return this.width=yr,this.height=gn,this.data=Vn,this}!function(at){var Le=function(){return typeof m.b=="function"},je=function(yr,Vn,Br,jn){var xn=4,tn=ot;switch(jn){case at.image_compression.FAST:xn=1,tn=Ze;break;case at.image_compression.MEDIUM:xn=6,tn=Lt;break;case at.image_compression.SLOW:xn=9,tn=At}yr=Xe(yr,Vn,Br,tn);var ti=Object(m.b)(yr,{level:xn});return at.__addimage__.arrayBufferToBinaryString(ti)},Xe=function(yr,Vn,Br,jn){for(var xn,tn,ti,mi=yr.length/Vn,Pi=new Uint8Array(yr.length+mi),en=qr(),Tn=0;Tn<mi;Tn+=1){if(ti=Tn*Vn,xn=yr.subarray(ti,ti+Vn),jn)Pi.set(jn(xn,Br,tn),ti+Tn);else{for(var Yn,Yt=en.length,Dt=[];Yn<Yt;Yn+=1)Dt[Yn]=en[Yn](xn,Br,tn);var Bt=Qr(Dt.concat());Pi.set(Dt[Bt],ti+Tn)}tn=xn}return Pi},it=function(yr){var Vn=Array.apply([],yr);return Vn.unshift(0),Vn},Ze=function(yr,Vn){var Br,jn=[],xn=yr.length;jn[0]=1;for(var tn=0;tn<xn;tn+=1)Br=yr[tn-Vn]||0,jn[tn+1]=yr[tn]-Br+256&255;return jn},ot=function(yr,Vn,Br){var jn,xn=[],tn=yr.length;xn[0]=2;for(var ti=0;ti<tn;ti+=1)jn=Br&&Br[ti]||0,xn[ti+1]=yr[ti]-jn+256&255;return xn},Lt=function(yr,Vn,Br){var jn,xn,tn=[],ti=yr.length;tn[0]=3;for(var mi=0;mi<ti;mi+=1)jn=yr[mi-Vn]||0,xn=Br&&Br[mi]||0,tn[mi+1]=yr[mi]+256-(jn+xn>>>1)&255;return tn},At=function(yr,Vn,Br){var jn,xn,tn,ti,mi=[],Pi=yr.length;mi[0]=4;for(var en=0;en<Pi;en+=1)jn=yr[en-Vn]||0,xn=Br&&Br[en]||0,tn=Br&&Br[en-Vn]||0,ti=mr(jn,xn,tn),mi[en+1]=yr[en]-ti+256&255;return mi},mr=function(yr,Vn,Br){if(yr===Vn&&Vn===Br)return yr;var jn=Math.abs(Vn-Br),xn=Math.abs(yr-Br),tn=Math.abs(yr+Vn-Br-Br);return jn<=xn&&jn<=tn?yr:xn<=tn?Vn:Br},qr=function(){return[it,Ze,ot,Lt,At]},Qr=function(yr){var Vn=yr.map(function(Br){return Br.reduce(function(jn,xn){return jn+Math.abs(xn)},0)});return Vn.indexOf(Math.min.apply(null,Vn))};at.processPNG=function(gn,yr,Vn,Br){var jn,xn,tn,ti,mi,Pi,en,Tn,Yn,Yt,Dt,Bt,Wt,Xt,kt,hr=this.decode.FLATE_DECODE,br="";if(this.__addimage__.isArrayBuffer(gn)&&(gn=new Uint8Array(gn)),this.__addimage__.isArrayBufferView(gn)){if(gn=(tn=new rt(gn)).imgData,xn=tn.bits,jn=tn.colorSpace,mi=tn.colors,[4,6].indexOf(tn.colorType)!==-1){if(tn.bits===8){Yn=(Tn=tn.pixelBitlength==32?new Uint32Array(tn.decodePixels().buffer):tn.pixelBitlength==16?new Uint16Array(tn.decodePixels().buffer):new Uint8Array(tn.decodePixels().buffer)).length,Dt=new Uint8Array(Yn*tn.colors),Yt=new Uint8Array(Yn);var wr,Fr=tn.pixelBitlength-tn.bits;for(Xt=0,kt=0;Xt<Yn;Xt++){for(Wt=Tn[Xt],wr=0;wr<Fr;)Dt[kt++]=Wt>>>wr&255,wr+=tn.bits;Yt[Xt]=Wt>>>wr&255}}if(tn.bits===16){Yn=(Tn=new Uint32Array(tn.decodePixels().buffer)).length,Dt=new Uint8Array(Yn*(32/tn.pixelBitlength)*tn.colors),Yt=new Uint8Array(Yn*(32/tn.pixelBitlength)),Bt=tn.colors>1,Xt=0,kt=0;for(var Xn=0;Xt<Yn;)Wt=Tn[Xt++],Dt[kt++]=Wt>>>0&255,Bt&&(Dt[kt++]=Wt>>>16&255,Wt=Tn[Xt++],Dt[kt++]=Wt>>>0&255),Yt[Xn++]=Wt>>>16&255;xn=8}Br!==at.image_compression.NONE&&Le()?(gn=je(Dt,tn.width*tn.colors,tn.colors,Br),en=je(Yt,tn.width,1,Br)):(gn=Dt,en=Yt,hr=void 0)}if(tn.colorType===3&&(jn=this.color_spaces.INDEXED,Pi=tn.palette,tn.transparency.indexed)){var Fn=tn.transparency.indexed,hi=0;for(Xt=0,Yn=Fn.length;Xt<Yn;++Xt)hi+=Fn[Xt];if((hi/=255)===Yn-1&&Fn.indexOf(0)!==-1)ti=[Fn.indexOf(0)];else if(hi!==Yn){for(Tn=tn.decodePixels(),Yt=new Uint8Array(Tn.length),Xt=0,Yn=Tn.length;Xt<Yn;Xt++)Yt[Xt]=Fn[Tn[Xt]];en=je(Yt,tn.width,1)}}var An=function(jr){var In;switch(jr){case at.image_compression.FAST:In=11;break;case at.image_compression.MEDIUM:In=13;break;case at.image_compression.SLOW:In=14;break;default:In=12}return In}(Br);return hr===this.decode.FLATE_DECODE&&(br="/Predictor "+An+" "),br+="/Colors "+mi+" /BitsPerComponent "+xn+" /Columns "+tn.width,(this.__addimage__.isArrayBuffer(gn)||this.__addimage__.isArrayBufferView(gn))&&(gn=this.__addimage__.arrayBufferToBinaryString(gn)),(en&&this.__addimage__.isArrayBuffer(en)||this.__addimage__.isArrayBufferView(en))&&(en=this.__addimage__.arrayBufferToBinaryString(en)),{alias:Vn,data:gn,index:yr,filter:hr,decodeParameters:br,transparency:ti,palette:Pi,sMask:en,predictor:An,width:tn.width,height:tn.height,bitsPerComponent:xn,colorSpace:jn}}}}(z.API),function(at){at.processGIF89A=function(Le,je,Xe,it){var Ze=new wt(Le),ot=Ze.width,Lt=Ze.height,At=[];Ze.decodeAndBlitFrameRGBA(0,At);var mr={data:At,width:ot,height:Lt},qr=new $t(100).encode(mr,100);return at.processJPEG.call(this,qr,je,Xe,it)},at.processGIF87A=at.processGIF89A}(z.API),Mr.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 at=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(at);for(var Le=0;Le<at;Le++){var je=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),it=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0);this.palette[Le]={red:it,green:Xe,blue:je,quad:Ze}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Mr.prototype.parseBGR=function(){this.pos=this.offset;try{var at="bit"+this.bitPP,Le=this.width*this.height*4;this.data=new Uint8Array(Le),this[at]()}catch(je){d.log("bit decode error:"+je)}},Mr.prototype.bit1=function(){var at,Le=Math.ceil(this.width/8),je=Le%4;for(at=this.height-1;at>=0;at--){for(var Xe=this.bottom_up?at:this.height-1-at,it=0;it<Le;it++)for(var Ze=this.datav.getUint8(this.pos++,!0),ot=Xe*this.width*4+8*it*4,Lt=0;Lt<8&&8*it+Lt<this.width;Lt++){var At=this.palette[Ze>>7-Lt&1];this.data[ot+4*Lt]=At.blue,this.data[ot+4*Lt+1]=At.green,this.data[ot+4*Lt+2]=At.red,this.data[ot+4*Lt+3]=255}je!==0&&(this.pos+=4-je)}},Mr.prototype.bit4=function(){for(var at=Math.ceil(this.width/2),Le=at%4,je=this.height-1;je>=0;je--){for(var Xe=this.bottom_up?je:this.height-1-je,it=0;it<at;it++){var Ze=this.datav.getUint8(this.pos++,!0),ot=Xe*this.width*4+2*it*4,Lt=Ze>>4,At=15&Ze,mr=this.palette[Lt];if(this.data[ot]=mr.blue,this.data[ot+1]=mr.green,this.data[ot+2]=mr.red,this.data[ot+3]=255,2*it+1>=this.width)break;mr=this.palette[At],this.data[ot+4]=mr.blue,this.data[ot+4+1]=mr.green,this.data[ot+4+2]=mr.red,this.data[ot+4+3]=255}Le!==0&&(this.pos+=4-Le)}},Mr.prototype.bit8=function(){for(var at=this.width%4,Le=this.height-1;Le>=0;Le--){for(var je=this.bottom_up?Le:this.height-1-Le,Xe=0;Xe<this.width;Xe++){var it=this.datav.getUint8(this.pos++,!0),Ze=je*this.width*4+4*Xe;if(it<this.palette.length){var ot=this.palette[it];this.data[Ze]=ot.red,this.data[Ze+1]=ot.green,this.data[Ze+2]=ot.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}at!==0&&(this.pos+=4-at)}},Mr.prototype.bit15=function(){for(var at=this.width%3,Le=parseInt("11111",2),je=this.height-1;je>=0;je--){for(var Xe=this.bottom_up?je:this.height-1-je,it=0;it<this.width;it++){var Ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var ot=(Ze&Le)/Le*255|0,Lt=(Ze>>5&Le)/Le*255|0,At=(Ze>>10&Le)/Le*255|0,mr=Ze>>15?255:0,qr=Xe*this.width*4+4*it;this.data[qr]=At,this.data[qr+1]=Lt,this.data[qr+2]=ot,this.data[qr+3]=mr}this.pos+=at}},Mr.prototype.bit16=function(){for(var at=this.width%3,Le=parseInt("11111",2),je=parseInt("111111",2),Xe=this.height-1;Xe>=0;Xe--){for(var it=this.bottom_up?Xe:this.height-1-Xe,Ze=0;Ze<this.width;Ze++){var ot=this.datav.getUint16(this.pos,!0);this.pos+=2;var Lt=(ot&Le)/Le*255|0,At=(ot>>5&je)/je*255|0,mr=(ot>>11)/Le*255|0,qr=it*this.width*4+4*Ze;this.data[qr]=mr,this.data[qr+1]=At,this.data[qr+2]=Lt,this.data[qr+3]=255}this.pos+=at}},Mr.prototype.bit24=function(){for(var at=this.height-1;at>=0;at--){for(var Le=this.bottom_up?at:this.height-1-at,je=0;je<this.width;je++){var Xe=this.datav.getUint8(this.pos++,!0),it=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),ot=Le*this.width*4+4*je;this.data[ot]=Ze,this.data[ot+1]=it,this.data[ot+2]=Xe,this.data[ot+3]=255}this.pos+=this.width%4}},Mr.prototype.bit32=function(){for(var at=this.height-1;at>=0;at--)for(var Le=this.bottom_up?at:this.height-1-at,je=0;je<this.width;je++){var Xe=this.datav.getUint8(this.pos++,!0),it=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),ot=this.datav.getUint8(this.pos++,!0),Lt=Le*this.width*4+4*je;this.data[Lt]=Ze,this.data[Lt+1]=it,this.data[Lt+2]=Xe,this.data[Lt+3]=ot}},Mr.prototype.getData=function(){return this.data},function(at){at.processBMP=function(Le,je,Xe,it){var Ze=new Mr(Le,!1),ot=Ze.width,Lt=Ze.height,At={data:Ze.getData(),width:ot,height:Lt},mr=new $t(100).encode(At,100);return at.processJPEG.call(this,mr,je,Xe,it)}}(z.API),Vr.prototype.getData=function(){return this.data},function(at){at.processWEBP=function(Le,je,Xe,it){var Ze=new Vr(Le,!1),ot=Ze.width,Lt=Ze.height,At={data:Ze.getData(),width:ot,height:Lt},mr=new $t(100).encode(At,100);return at.processJPEG.call(this,mr,je,Xe,it)}}(z.API),z.API.processRGBA=function(at,Le,je){for(var Xe=at.data,it=Xe.length,Ze=new Uint8Array(it/4*3),ot=new Uint8Array(it/4),Lt=0,At=0,mr=0;mr<it;mr+=4){var qr=Xe[mr],Qr=Xe[mr+1],gn=Xe[mr+2],yr=Xe[mr+3];Ze[Lt++]=qr,Ze[Lt++]=Qr,Ze[Lt++]=gn,ot[At++]=yr}var Vn=this.__addimage__.arrayBufferToBinaryString(Ze);return{alpha:this.__addimage__.arrayBufferToBinaryString(ot),data:Vn,index:Le,alias:je,colorSpace:"DeviceRGB",bitsPerComponent:8,width:at.width,height:at.height}},z.API.setLanguage=function(at){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"}[at]!==void 0&&(this.internal.languageSettings.languageCode=at,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},Zt=z.API,Tt=Zt.getCharWidthsArray=function(at,Le){var je,Xe,it=(Le=Le||{}).font||this.internal.getFont(),Ze=Le.fontSize||this.internal.getFontSize(),ot=Le.charSpace||this.internal.getCharSpace(),Lt=Le.widths?Le.widths:it.metadata.Unicode.widths,At=Lt.fof?Lt.fof:1,mr=Le.kerning?Le.kerning:it.metadata.Unicode.kerning,qr=mr.fof?mr.fof:1,Qr=Le.doKerning!==!1,gn=0,yr=at.length,Vn=0,Br=Lt[0]||At,jn=[];for(je=0;je<yr;je++)Xe=at.charCodeAt(je),typeof it.metadata.widthOfString=="function"?jn.push((it.metadata.widthOfGlyph(it.metadata.characterToGlyph(Xe))+ot*(1e3/Ze)||0)/1e3):(gn=Qr&&S()(mr[Xe])==="object"&&!isNaN(parseInt(mr[Xe][Vn],10))?mr[Xe][Vn]/qr:0,jn.push((Lt[Xe]||Br)/At+gn)),Vn=Xe;return jn},De=Zt.getStringUnitWidth=function(at,Le){var je=(Le=Le||{}).fontSize||this.internal.getFontSize(),Xe=Le.font||this.internal.getFont(),it=Le.charSpace||this.internal.getCharSpace();return Zt.processArabic&&(at=Zt.processArabic(at)),typeof Xe.metadata.widthOfString=="function"?Xe.metadata.widthOfString(at,je,it)/je:Tt.apply(this,arguments).reduce(function(Ze,ot){return Ze+ot},0)},Re=function(Le,je,Xe,it){for(var Ze=[],ot=0,Lt=Le.length,At=0;ot!==Lt&&At+je[ot]<Xe;)At+=je[ot],ot++;Ze.push(Le.slice(0,ot));var mr=ot;for(At=0;ot!==Lt;)At+je[ot]>it&&(Ze.push(Le.slice(mr,ot)),At=0,mr=ot),At+=je[ot],ot++;return mr!==ot&&Ze.push(Le.slice(mr,ot)),Ze},Pe=function(Le,je,Xe){Xe||(Xe={});var it,Ze,ot,Lt,At,mr,qr,Qr=[],gn=[Qr],yr=Xe.textIndent||0,Vn=0,Br=0,jn=Le.split(" "),xn=Tt.apply(this,[" ",Xe])[0];if(mr=Xe.lineIndent===-1?jn[0].length+2:Xe.lineIndent||0){var tn=Array(mr).join(" "),ti=[];jn.map(function(Pi){(Pi=Pi.split(/\s*\n/)).length>1?ti=ti.concat(Pi.map(function(en,Tn){return(Tn&&en.length?`
`:"")+en})):ti.push(Pi[0])}),jn=ti,mr=De.apply(this,[tn,Xe])}for(ot=0,Lt=jn.length;ot<Lt;ot++){var mi=0;if(it=jn[ot],mr&&it[0]==`
`&&(it=it.substr(1),mi=1),yr+Vn+(Br=(Ze=Tt.apply(this,[it,Xe])).reduce(function(Pi,en){return Pi+en},0))>je||mi){if(Br>je){for(At=Re.apply(this,[it,Ze,je-(yr+Vn),je]),Qr.push(At.shift()),Qr=[At.pop()];At.length;)gn.push([At.shift()]);Br=Ze.slice(it.length-(Qr[0]?Qr[0].length:0)).reduce(function(Pi,en){return Pi+en},0)}else Qr=[it];gn.push(Qr),yr=Br+mr,Vn=xn}else Qr.push(it),yr+=Vn+Br,Vn=xn}return qr=mr?function(Pi,en){return(en?tn:"")+Pi.join(" ")}:function(Pi){return Pi.join(" ")},gn.map(qr)},Zt.splitTextToSize=function(at,Le,je){var Xe,it=(je=je||{}).fontSize||this.internal.getFontSize(),Ze=function(qr){if(qr.widths&&qr.kerning)return{widths:qr.widths,kerning:qr.kerning};var Qr=this.internal.getFont(qr.fontName,qr.fontStyle);return Qr.metadata.Unicode?{widths:Qr.metadata.Unicode.widths||{0:1},kerning:Qr.metadata.Unicode.kerning||{}}:{font:Qr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,je);Xe=Array.isArray(at)?at:String(at).split(/\r?\n/);var ot=1*this.internal.scaleFactor*Le/it;Ze.textIndent=je.textIndent?1*je.textIndent*this.internal.scaleFactor/it:0,Ze.lineIndent=je.lineIndent;var Lt,At,mr=[];for(Lt=0,At=Xe.length;Lt<At;Lt++)mr=mr.concat(Pe.apply(this,[Xe[Lt],ot,Ze]));return mr},function(at){at.__fontmetrics__=at.__fontmetrics__||{};for(var Le="klmnopqrstuvwxyz",je={},Xe={},it=0;it<Le.length;it++)je[Le[it]]="0123456789abcdef"[it],Xe["0123456789abcdef"[it]]=Le[it];var Ze=function(gn){return"0x"+parseInt(gn,10).toString(16)},ot=at.__fontmetrics__.compress=function(Qr){var gn,yr,Vn,Br,jn=["{"];for(var xn in Qr){if(gn=Qr[xn],isNaN(parseInt(xn,10))?yr="'"+xn+"'":(xn=parseInt(xn,10),yr=(yr=Ze(xn).slice(2)).slice(0,-1)+Xe[yr.slice(-1)]),typeof gn=="number")gn<0?(Vn=Ze(gn).slice(3),Br="-"):(Vn=Ze(gn).slice(2),Br=""),Vn=Br+Vn.slice(0,-1)+Xe[Vn.slice(-1)];else{if(S()(gn)!=="object")throw new Error("Don't know what to do with value type "+S()(gn)+".");Vn=ot(gn)}jn.push(yr+Vn)}return jn.push("}"),jn.join("")},Lt=at.__fontmetrics__.uncompress=function(Qr){if(typeof Qr!="string")throw new Error("Invalid argument passed to uncompress.");for(var gn,yr,Vn,Br,jn={},xn=1,tn=jn,ti=[],mi="",Pi="",en=Qr.length-1,Tn=1;Tn<en;Tn+=1)(Br=Qr[Tn])=="'"?gn?(Vn=gn.join(""),gn=void 0):gn=[]:gn?gn.push(Br):Br=="{"?(ti.push([tn,Vn]),tn={},Vn=void 0):Br=="}"?((yr=ti.pop())[0][yr[1]]=tn,Vn=void 0,tn=yr[0]):Br=="-"?xn=-1:Vn===void 0?je.hasOwnProperty(Br)?(mi+=je[Br],Vn=parseInt(mi,16)*xn,xn=1,mi=""):mi+=Br:je.hasOwnProperty(Br)?(Pi+=je[Br],tn[Vn]=parseInt(Pi,16)*xn,xn=1,Vn=void 0,Pi=""):Pi+=Br;return jn},At={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Lt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},mr={Unicode:{Courier:At,"Courier-Bold":At,"Courier-BoldOblique":At,"Courier-Oblique":At,Helvetica:At,"Helvetica-Bold":At,"Helvetica-BoldOblique":At,"Helvetica-Oblique":At,"Times-Roman":At,"Times-Bold":At,"Times-BoldItalic":At,"Times-Italic":At}},qr={Unicode:{"Courier-Oblique":Lt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Lt("{'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":Lt("{'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:Lt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Lt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Lt("{'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:Lt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Lt("{'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":Lt("{'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:Lt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Lt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Lt("{'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":Lt("{'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":Lt("{'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}}}")}};at.events.push(["addFont",function(Qr){var gn=Qr.font,yr=qr.Unicode[gn.postScriptName];yr&&(gn.metadata.Unicode={},gn.metadata.Unicode.widths=yr.widths,gn.metadata.Unicode.kerning=yr.kerning);var Vn=mr.Unicode[gn.postScriptName];Vn&&(gn.metadata.Unicode.encoding=Vn,gn.encoding=Vn.codePages[0])}])}(z.API),function(at){var Le=function(Xe){for(var it=Xe.length,Ze=new Uint8Array(it),ot=0;ot<it;ot++)Ze[ot]=Xe.charCodeAt(ot);return Ze};at.API.events.push(["addFont",function(je){var Xe=void 0,it=je.font,Ze=je.instance;if(!it.isStandardFont){if(Ze===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+it.postScriptName+"').");if(typeof(Xe=Ze.existsFileInVFS(it.postScriptName)===!1?Ze.loadFile(it.postScriptName):Ze.getFileFromVFS(it.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+it.postScriptName+"').");!function(ot,Lt){Lt=/^\x00\x01\x00\x00/.test(Lt)?Le(Lt):Le(t(Lt)),ot.metadata=at.API.TTFFont.open(Lt),ot.metadata.Unicode=ot.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ot.metadata.glyIdsUsed=[0]}(it,Xe)}}])}(z),function(at){function Le(){return(p.canvg?Promise.resolve(p.canvg):Promise.all([n.e(0),n.e(240)]).then(n.bind(null,"DXPr"))).catch(function(je){return Promise.reject(new Error("Could not load canvg: "+je))}).then(function(je){return je.default?je.default:je})}z.API.addSvgAsImage=function(je,Xe,it,Ze,ot,Lt,At,mr){if(isNaN(Xe)||isNaN(it))throw d.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Ze)||isNaN(ot))throw d.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var qr=document.createElement("canvas");qr.width=Ze,qr.height=ot;var Qr=qr.getContext("2d");Qr.fillStyle="#fff",Qr.fillRect(0,0,qr.width,qr.height);var gn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},yr=this;return Le().then(function(Vn){return Vn.fromString(Qr,je,gn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Vn){return Vn.render(gn)}).then(function(){yr.addImage(qr.toDataURL("image/jpeg",1),Xe,it,Ze,ot,At,mr)})}}(),z.API.putTotalPages=function(at){var Le,je=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Le=new RegExp(at,"g"),je=this.internal.getNumberOfPages()):(Le=new RegExp(this.pdfEscape16(at,this.internal.getFont()),"g"),je=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Xe=1;Xe<=this.internal.getNumberOfPages();Xe++)for(var it=0;it<this.internal.pages[Xe].length;it++)this.internal.pages[Xe][it]=this.internal.pages[Xe][it].replace(Le,je);return this},z.API.viewerPreferences=function(at,Le){var je;at=at||{},Le=Le||!1;var Xe,it,Ze,ot={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}},Lt=Object.keys(ot),At=[],mr=0,qr=0,Qr=0;function gn(Vn,Br){var jn,xn=!1;for(jn=0;jn<Vn.length;jn+=1)Vn[jn]===Br&&(xn=!0);return xn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ot)),this.internal.viewerpreferences.isSubscribed=!1),je=this.internal.viewerpreferences.configuration,at==="reset"||Le===!0){var yr=Lt.length;for(Qr=0;Qr<yr;Qr+=1)je[Lt[Qr]].value=je[Lt[Qr]].defaultValue,je[Lt[Qr]].explicitSet=!1}if(S()(at)==="object"){for(it in at)if(Ze=at[it],gn(Lt,it)&&Ze!==void 0){if(je[it].type==="boolean"&&typeof Ze=="boolean")je[it].value=Ze;else if(je[it].type==="name"&&gn(je[it].valueSet,Ze))je[it].value=Ze;else if(je[it].type==="integer"&&Number.isInteger(Ze))je[it].value=Ze;else if(je[it].type==="array"){for(mr=0;mr<Ze.length;mr+=1)if(Xe=!0,Ze[mr].length===1&&typeof Ze[mr][0]=="number")At.push(String(Ze[mr]-1));else if(Ze[mr].length>1){for(qr=0;qr<Ze[mr].length;qr+=1)typeof Ze[mr][qr]!="number"&&(Xe=!1);Xe===!0&&At.push([Ze[mr][0]-1,Ze[mr][1]-1].join(" "))}je[it].value="["+At.join(" ")+"]"}else je[it].value=je[it].defaultValue;je[it].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Vn,Br=[];for(Vn in je)je[Vn].explicitSet===!0&&(je[Vn].type==="name"?Br.push("/"+Vn+" /"+je[Vn].value):Br.push("/"+Vn+" "+je[Vn].value));Br.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+Br.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=je,this},function(at){var Le=function(){var it='<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/">')),ot=unescape(encodeURIComponent(it)),Lt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),At=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),mr=unescape(encodeURIComponent("</x:xmpmeta>")),qr=ot.length+Lt.length+At.length+Ze.length+mr.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+qr+" >>"),this.internal.write("stream"),this.internal.write(Ze+ot+Lt+At+mr),this.internal.write("endstream"),this.internal.write("endobj")},je=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};at.addMetadata=function(Xe,it){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Xe,namespaceuri:it||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",je),this.internal.events.subscribe("postPutResources",Le)),this}}(z.API),function(at){var Le=at.API,je=Le.pdfEscape16=function(Ze,ot){for(var Lt,At=ot.metadata.Unicode.widths,mr=["","0","00","000","0000"],qr=[""],Qr=0,gn=Ze.length;Qr<gn;++Qr){if(Lt=ot.metadata.characterToGlyph(Ze.charCodeAt(Qr)),ot.metadata.glyIdsUsed.push(Lt),ot.metadata.toUnicode[Lt]=Ze.charCodeAt(Qr),At.indexOf(Lt)==-1&&(At.push(Lt),At.push([parseInt(ot.metadata.widthOfGlyph(Lt),10)])),Lt=="0")return qr.join("");Lt=Lt.toString(16),qr.push(mr[4-Lt.length],Lt)}return qr.join("")},Xe=function(ot){var Lt,At,mr,qr,Qr,gn,yr;for(Qr=`/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`,mr=[],gn=0,yr=(At=Object.keys(ot).sort(function(Vn,Br){return Vn-Br})).length;gn<yr;gn++)Lt=At[gn],mr.length>=100&&(Qr+=`
`+mr.length+` beginbfchar
`+mr.join(`
`)+`
endbfchar`,mr=[]),ot[Lt]!==void 0&&ot[Lt]!==null&&typeof ot[Lt].toString=="function"&&(qr=("0000"+ot[Lt].toString(16)).slice(-4),Lt=("0000"+(+Lt).toString(16)).slice(-4),mr.push("<"+Lt+"><"+qr+">"));return mr.length&&(Qr+=`
`+mr.length+` beginbfchar
`+mr.join(`
`)+`
endbfchar
`),Qr+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};Le.events.push(["putFont",function(Ze){!function(ot){var Lt=ot.font,At=ot.out,mr=ot.newObject,qr=ot.putStream;if(Lt.metadata instanceof at.API.TTFFont&&Lt.encoding==="Identity-H"){for(var Qr=Lt.metadata.Unicode.widths,gn=Lt.metadata.subset.encode(Lt.metadata.glyIdsUsed,1),yr="",Vn=0;Vn<gn.length;Vn++)yr+=String.fromCharCode(gn[Vn]);var Br=mr();qr({data:yr,addLength1:!0,objectId:Br}),At("endobj");var jn=mr();qr({data:Xe(Lt.metadata.toUnicode),addLength1:!0,objectId:jn}),At("endobj");var xn=mr();At("<<"),At("/Type /FontDescriptor"),At("/FontName /"+U(Lt.fontName)),At("/FontFile2 "+Br+" 0 R"),At("/FontBBox "+at.API.PDFObject.convert(Lt.metadata.bbox)),At("/Flags "+Lt.metadata.flags),At("/StemV "+Lt.metadata.stemV),At("/ItalicAngle "+Lt.metadata.italicAngle),At("/Ascent "+Lt.metadata.ascender),At("/Descent "+Lt.metadata.decender),At("/CapHeight "+Lt.metadata.capHeight),At(">>"),At("endobj");var tn=mr();At("<<"),At("/Type /Font"),At("/BaseFont /"+U(Lt.fontName)),At("/FontDescriptor "+xn+" 0 R"),At("/W "+at.API.PDFObject.convert(Qr)),At("/CIDToGIDMap /Identity"),At("/DW 1000"),At("/Subtype /CIDFontType2"),At("/CIDSystemInfo"),At("<<"),At("/Supplement 0"),At("/Registry (Adobe)"),At("/Ordering ("+Lt.encoding+")"),At(">>"),At(">>"),At("endobj"),Lt.objectNumber=mr(),At("<<"),At("/Type /Font"),At("/Subtype /Type0"),At("/ToUnicode "+jn+" 0 R"),At("/BaseFont /"+U(Lt.fontName)),At("/Encoding /"+Lt.encoding),At("/DescendantFonts ["+tn+" 0 R]"),At(">>"),At("endobj"),Lt.isAlreadyPutted=!0}}(Ze)}]),Le.events.push(["putFont",function(Ze){!function(ot){var Lt=ot.font,At=ot.out,mr=ot.newObject,qr=ot.putStream;if(Lt.metadata instanceof at.API.TTFFont&&Lt.encoding==="WinAnsiEncoding"){for(var Qr=Lt.metadata.rawData,gn="",yr=0;yr<Qr.length;yr++)gn+=String.fromCharCode(Qr[yr]);var Vn=mr();qr({data:gn,addLength1:!0,objectId:Vn}),At("endobj");var Br=mr();qr({data:Xe(Lt.metadata.toUnicode),addLength1:!0,objectId:Br}),At("endobj");var jn=mr();At("<<"),At("/Descent "+Lt.metadata.decender),At("/CapHeight "+Lt.metadata.capHeight),At("/StemV "+Lt.metadata.stemV),At("/Type /FontDescriptor"),At("/FontFile2 "+Vn+" 0 R"),At("/Flags 96"),At("/FontBBox "+at.API.PDFObject.convert(Lt.metadata.bbox)),At("/FontName /"+U(Lt.fontName)),At("/ItalicAngle "+Lt.metadata.italicAngle),At("/Ascent "+Lt.metadata.ascender),At(">>"),At("endobj"),Lt.objectNumber=mr();for(var xn=0;xn<Lt.metadata.hmtx.widths.length;xn++)Lt.metadata.hmtx.widths[xn]=parseInt(Lt.metadata.hmtx.widths[xn]*(1e3/Lt.metadata.head.unitsPerEm));At("<</Subtype/TrueType/Type/Font/ToUnicode "+Br+" 0 R/BaseFont/"+U(Lt.fontName)+"/FontDescriptor "+jn+" 0 R/Encoding/"+Lt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+at.API.PDFObject.convert(Lt.metadata.hmtx.widths)+">>"),At("endobj"),Lt.isAlreadyPutted=!0}}(Ze)}]);var it=function(ot){var Lt,At=ot.text||"",mr=ot.x,qr=ot.y,Qr=ot.options||{},gn=ot.mutex||{},yr=gn.pdfEscape,Vn=gn.activeFontKey,Br=gn.fonts,jn=Vn,xn="",tn=0,ti="",mi=Br[jn].encoding;if(Br[jn].encoding!=="Identity-H")return{text:At,x:mr,y:qr,options:Qr,mutex:gn};for(ti=At,jn=Vn,Array.isArray(At)&&(ti=At[0]),tn=0;tn<ti.length;tn+=1)Br[jn].metadata.hasOwnProperty("cmap")&&(Lt=Br[jn].metadata.cmap.unicode.codeMap[ti[tn].charCodeAt(0)]),Lt||ti[tn].charCodeAt(0)<256&&Br[jn].metadata.hasOwnProperty("Unicode")?xn+=ti[tn]:xn+="";var Pi="";return parseInt(jn.slice(1))<14||mi==="WinAnsiEncoding"?Pi=yr(xn,jn).split("").map(function(en){return en.charCodeAt(0).toString(16)}).join(""):mi==="Identity-H"&&(Pi=je(xn,Br[jn])),gn.isHex=!0,{text:Pi,x:mr,y:qr,options:Qr,mutex:gn}};Le.events.push(["postProcessText",function(Ze){var ot=Ze.text||"",Lt=[],At={text:ot,x:Ze.x,y:Ze.y,options:Ze.options,mutex:Ze.mutex};if(Array.isArray(ot)){var mr=0;for(mr=0;mr<ot.length;mr+=1)Array.isArray(ot[mr])&&ot[mr].length===3?Lt.push([it(Object.assign({},At,{text:ot[mr][0]})).text,ot[mr][1],ot[mr][2]]):Lt.push(it(Object.assign({},At,{text:ot[mr]})).text);Ze.text=Lt}else Ze.text=it(Object.assign({},At,{text:ot})).text}])}(z),function(at){var Le=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};at.existsFileInVFS=function(je){return Le.call(this),this.internal.vFS[je]!==void 0},at.addFileToVFS=function(je,Xe){return Le.call(this),this.internal.vFS[je]=Xe,this},at.getFileFromVFS=function(je){return Le.call(this),this.internal.vFS[je]!==void 0?this.internal.vFS[je]:null}}(z.API),function(at){at.__bidiEngine__=at.prototype.__bidiEngine__=function(Xe){var it,Ze,ot,Lt,At,mr,qr,Qr=Le,gn=[[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]],yr=[[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]],Vn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Br={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},jn=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],xn=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)$/),tn=!1,ti=0;this.__bidiEngine__={};var mi=function(Wt){var Xt=Wt.charCodeAt(),kt=Xt>>8,hr=Br[kt];return hr!==void 0?Qr[256*hr+(255&Xt)]:kt===252||kt===253?"AL":xn.test(kt)?"L":kt===8?"R":"N"},Pi=function(Wt){for(var Xt,kt=0;kt<Wt.length;kt++){if((Xt=mi(Wt.charAt(kt)))==="L")return!1;if(Xt==="R")return!0}return!1},en=function(Wt,Xt,kt,hr){var br,wr,Fr,Xn,Fn=Xt[hr];switch(Fn){case"L":case"R":tn=!1;break;case"N":case"AN":break;case"EN":tn&&(Fn="AN");break;case"AL":tn=!0,Fn="R";break;case"WS":Fn="N";break;case"CS":hr<1||hr+1>=Xt.length||(br=kt[hr-1])!=="EN"&&br!=="AN"||(wr=Xt[hr+1])!=="EN"&&wr!=="AN"?Fn="N":tn&&(wr="AN"),Fn=wr===br?wr:"N";break;case"ES":Fn=(br=hr>0?kt[hr-1]:"B")==="EN"&&hr+1<Xt.length&&Xt[hr+1]==="EN"?"EN":"N";break;case"ET":if(hr>0&&kt[hr-1]==="EN"){Fn="EN";break}if(tn){Fn="N";break}for(Fr=hr+1,Xn=Xt.length;Fr<Xn&&Xt[Fr]==="ET";)Fr++;Fn=Fr<Xn&&Xt[Fr]==="EN"?"EN":"N";break;case"NSM":if(ot&&!Lt){for(Xn=Xt.length,Fr=hr+1;Fr<Xn&&Xt[Fr]==="NSM";)Fr++;if(Fr<Xn){var hi=Wt[hr],An=hi>=1425&&hi<=2303||hi===64286;if(br=Xt[Fr],An&&(br==="R"||br==="AL")){Fn="R";break}}}Fn=hr<1||(br=Xt[hr-1])==="B"?"N":kt[hr-1];break;case"B":tn=!1,it=!0,Fn=ti;break;case"S":Ze=!0,Fn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":tn=!1;break;case"BN":Fn="N"}return Fn},Tn=function(Wt,Xt,kt){var hr=Wt.split("");return kt&&Yn(hr,kt,{hiLevel:ti}),hr.reverse(),Xt&&Xt.reverse(),hr.join("")},Yn=function(Wt,Xt,kt){var hr,br,wr,Fr,Xn,Fn=-1,hi=Wt.length,An=0,jr=[],In=ti?yr:gn,Qn=[];for(tn=!1,it=!1,Ze=!1,br=0;br<hi;br++)Qn[br]=mi(Wt[br]);for(wr=0;wr<hi;wr++){if(Xn=An,jr[wr]=en(Wt,Qn,jr,wr),hr=240&(An=In[Xn][Vn[jr[wr]]]),An&=15,Xt[wr]=Fr=In[An][5],hr>0)if(hr===16){for(br=Fn;br<wr;br++)Xt[br]=1;Fn=-1}else Fn=-1;if(In[An][6])Fn===-1&&(Fn=wr);else if(Fn>-1){for(br=Fn;br<wr;br++)Xt[br]=Fr;Fn=-1}Qn[wr]==="B"&&(Xt[wr]=0),kt.hiLevel|=Fr}Ze&&function(qn,si,Ci){for(var ki=0;ki<Ci;ki++)if(qn[ki]==="S"){si[ki]=ti;for(var Ri=ki-1;Ri>=0&&qn[Ri]==="WS";Ri--)si[Ri]=ti}}(Qn,Xt,hi)},Yt=function(Wt,Xt,kt,hr,br){if(!(br.hiLevel<Wt)){if(Wt===1&&ti===1&&!it)return Xt.reverse(),void(kt&&kt.reverse());for(var wr,Fr,Xn,Fn,hi=Xt.length,An=0;An<hi;){if(hr[An]>=Wt){for(Xn=An+1;Xn<hi&&hr[Xn]>=Wt;)Xn++;for(Fn=An,Fr=Xn-1;Fn<Fr;Fn++,Fr--)wr=Xt[Fn],Xt[Fn]=Xt[Fr],Xt[Fr]=wr,kt&&(wr=kt[Fn],kt[Fn]=kt[Fr],kt[Fr]=wr);An=Xn}An++}}},Dt=function(Wt,Xt,kt){var hr=Wt.split(""),br={hiLevel:ti};return kt||(kt=[]),Yn(hr,kt,br),function(wr,Fr,Xn){if(Xn.hiLevel!==0&&qr)for(var Fn,hi=0;hi<wr.length;hi++)Fr[hi]===1&&(Fn=jn.indexOf(wr[hi]))>=0&&(wr[hi]=jn[Fn+1])}(hr,kt,br),Yt(2,hr,Xt,kt,br),Yt(1,hr,Xt,kt,br),hr.join("")};return this.__bidiEngine__.doBidiReorder=function(Bt,Wt,Xt){if(function(hr,br){if(br)for(var wr=0;wr<hr.length;wr++)br[wr]=wr;Lt===void 0&&(Lt=Pi(hr)),mr===void 0&&(mr=Pi(hr))}(Bt,Wt),ot||!At||mr)if(ot&&At&&Lt^mr)ti=Lt?1:0,Bt=Tn(Bt,Wt,Xt);else if(!ot&&At&&mr)ti=Lt?1:0,Bt=Dt(Bt,Wt,Xt),Bt=Tn(Bt,Wt);else if(!ot||Lt||At||mr){if(ot&&!At&&Lt^mr)Bt=Tn(Bt,Wt),Lt?(ti=0,Bt=Dt(Bt,Wt,Xt)):(ti=1,Bt=Dt(Bt,Wt,Xt),Bt=Tn(Bt,Wt));else if(ot&&Lt&&!At&&mr)ti=1,Bt=Dt(Bt,Wt,Xt),Bt=Tn(Bt,Wt);else if(!ot&&!At&&Lt^mr){var kt=qr;Lt?(ti=1,Bt=Dt(Bt,Wt,Xt),ti=0,qr=!1,Bt=Dt(Bt,Wt,Xt),qr=kt):(ti=0,Bt=Dt(Bt,Wt,Xt),Bt=Tn(Bt,Wt),ti=1,qr=!1,Bt=Dt(Bt,Wt,Xt),qr=kt,Bt=Tn(Bt,Wt))}}else ti=0,Bt=Dt(Bt,Wt,Xt);else ti=Lt?1:0,Bt=Dt(Bt,Wt,Xt);return Bt},this.__bidiEngine__.setOptions=function(Bt){Bt&&(ot=Bt.isInputVisual,At=Bt.isOutputVisual,Lt=Bt.isInputRtl,mr=Bt.isOutputRtl,qr=Bt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Xe),this.__bidiEngine__};var Le=["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"],je=new at.__bidiEngine__({isInputVisual:!0});at.API.events.push(["postProcessText",function(Xe){var it=Xe.text,Ze=(Xe.x,Xe.y,Xe.options||{}),ot=(Xe.mutex,Ze.lang,[]);if(Ze.isInputVisual=typeof Ze.isInputVisual!="boolean"||Ze.isInputVisual,je.setOptions(Ze),Object.prototype.toString.call(it)==="[object Array]"){var Lt=0;for(ot=[],Lt=0;Lt<it.length;Lt+=1)Object.prototype.toString.call(it[Lt])==="[object Array]"?ot.push([je.doBidiReorder(it[Lt][0]),it[Lt][1],it[Lt][2]]):ot.push([je.doBidiReorder(it[Lt])]);Xe.text=ot}else Xe.text=je.doBidiReorder(it);je.setOptions({isInputVisual:!0})}])}(z),z.API.TTFFont=function(){function at(Le){var je;if(this.rawData=Le,je=this.contents=new Vt(Le),this.contents.pos=4,je.readString(4)==="ttcf")throw new Error("TTCF not supported.");je.pos=0,this.parse(),this.subset=new Wi(this),this.registerTTF()}return at.open=function(Le){return new at(Le)},at.prototype.parse=function(){return this.directory=new yt(this.contents),this.head=new er(this),this.name=new kr(this),this.cmap=new ir(this),this.toUnicode={},this.hhea=new Ft(this),this.maxp=new dn(this),this.hmtx=new yn(this),this.post=new Kr(this),this.os2=new rr(this),this.loca=new Di(this),this.glyf=new $n(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]},at.prototype.registerTTF=function(){var Le,je,Xe,it,Ze;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ot,Lt,At,mr;for(mr=[],ot=0,Lt=(At=this.bbox).length;ot<Lt;ot++)Le=At[ot],mr.push(Math.round(Le*this.scaleFactor));return mr}.call(this),this.stemV=0,this.post.exists?(Xe=255&(it=this.post.italic_angle),(32768&(je=it>>16))!=0&&(je=-(1+(65535^je))),this.italicAngle=+(je+"."+Xe)):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")},at.prototype.characterToGlyph=function(Le){var je;return((je=this.cmap.unicode)!=null?je.codeMap[Le]:void 0)||0},at.prototype.widthOfGlyph=function(Le){var je;return je=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Le).advance*je},at.prototype.widthOfString=function(Le,je,Xe){var it,Ze,ot,Lt;for(ot=0,Ze=0,Lt=(Le=""+Le).length;0<=Lt?Ze<Lt:Ze>Lt;Ze=0<=Lt?++Ze:--Ze)it=Le.charCodeAt(Ze),ot+=this.widthOfGlyph(this.characterToGlyph(it))+Xe*(1e3/je)||0;return ot*(je/1e3)},at.prototype.lineHeight=function(Le,je){var Xe;return je==null&&(je=!1),Xe=je?this.lineGap:0,(this.ascender+Xe-this.decender)/1e3*Le},at}();var hn,Vt=function(){function at(Le){this.data=Le!=null?Le:[],this.pos=0,this.length=this.data.length}return at.prototype.readByte=function(){return this.data[this.pos++]},at.prototype.writeByte=function(Le){return this.data[this.pos++]=Le},at.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},at.prototype.writeUInt32=function(Le){return this.writeByte(Le>>>24&255),this.writeByte(Le>>16&255),this.writeByte(Le>>8&255),this.writeByte(255&Le)},at.prototype.readInt32=function(){var Le;return(Le=this.readUInt32())>=2147483648?Le-4294967296:Le},at.prototype.writeInt32=function(Le){return Le<0&&(Le+=4294967296),this.writeUInt32(Le)},at.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},at.prototype.writeUInt16=function(Le){return this.writeByte(Le>>8&255),this.writeByte(255&Le)},at.prototype.readInt16=function(){var Le;return(Le=this.readUInt16())>=32768?Le-65536:Le},at.prototype.writeInt16=function(Le){return Le<0&&(Le+=65536),this.writeUInt16(Le)},at.prototype.readString=function(Le){var je,Xe;for(Xe=[],je=0;0<=Le?je<Le:je>Le;je=0<=Le?++je:--je)Xe[je]=String.fromCharCode(this.readByte());return Xe.join("")},at.prototype.writeString=function(Le){var je,Xe,it;for(it=[],je=0,Xe=Le.length;0<=Xe?je<Xe:je>Xe;je=0<=Xe?++je:--je)it.push(this.writeByte(Le.charCodeAt(je)));return it},at.prototype.readShort=function(){return this.readInt16()},at.prototype.writeShort=function(Le){return this.writeInt16(Le)},at.prototype.readLongLong=function(){var Le,je,Xe,it,Ze,ot,Lt,At;return Le=this.readByte(),je=this.readByte(),Xe=this.readByte(),it=this.readByte(),Ze=this.readByte(),ot=this.readByte(),Lt=this.readByte(),At=this.readByte(),128&Le?-1*(72057594037927940*(255^Le)+281474976710656*(255^je)+1099511627776*(255^Xe)+4294967296*(255^it)+16777216*(255^Ze)+65536*(255^ot)+256*(255^Lt)+(255^At)+1):72057594037927940*Le+281474976710656*je+1099511627776*Xe+4294967296*it+16777216*Ze+65536*ot+256*Lt+At},at.prototype.writeLongLong=function(Le){var je,Xe;return je=Math.floor(Le/4294967296),Xe=4294967295&Le,this.writeByte(je>>24&255),this.writeByte(je>>16&255),this.writeByte(je>>8&255),this.writeByte(255&je),this.writeByte(Xe>>24&255),this.writeByte(Xe>>16&255),this.writeByte(Xe>>8&255),this.writeByte(255&Xe)},at.prototype.readInt=function(){return this.readInt32()},at.prototype.writeInt=function(Le){return this.writeInt32(Le)},at.prototype.read=function(Le){var je,Xe;for(je=[],Xe=0;0<=Le?Xe<Le:Xe>Le;Xe=0<=Le?++Xe:--Xe)je.push(this.readByte());return je},at.prototype.write=function(Le){var je,Xe,it,Ze;for(Ze=[],Xe=0,it=Le.length;Xe<it;Xe++)je=Le[Xe],Ze.push(this.writeByte(je));return Ze},at}(),yt=function(){var at;function Le(je){var Xe,it,Ze;for(this.scalarType=je.readInt(),this.tableCount=je.readShort(),this.searchRange=je.readShort(),this.entrySelector=je.readShort(),this.rangeShift=je.readShort(),this.tables={},it=0,Ze=this.tableCount;0<=Ze?it<Ze:it>Ze;it=0<=Ze?++it:--it)Xe={tag:je.readString(4),checksum:je.readInt(),offset:je.readInt(),length:je.readInt()},this.tables[Xe.tag]=Xe}return Le.prototype.encode=function(je){var Xe,it,Ze,ot,Lt,At,mr,qr,Qr,gn,yr,Vn,Br;for(Br in yr=Object.keys(je).length,At=Math.log(2),Qr=16*Math.floor(Math.log(yr)/At),ot=Math.floor(Qr/At),qr=16*yr-Qr,(it=new Vt).writeInt(this.scalarType),it.writeShort(yr),it.writeShort(Qr),it.writeShort(ot),it.writeShort(qr),Ze=16*yr,mr=it.pos+Ze,Lt=null,Vn=[],je)for(gn=je[Br],it.writeString(Br),it.writeInt(at(gn)),it.writeInt(mr),it.writeInt(gn.length),Vn=Vn.concat(gn),Br==="head"&&(Lt=mr),mr+=gn.length;mr%4;)Vn.push(0),mr++;return it.write(Vn),Xe=2981146554-at(it.data),it.pos=Lt+8,it.writeUInt32(Xe),it.data},at=function(Xe){var it,Ze,ot,Lt;for(Xe=ri.call(Xe);Xe.length%4;)Xe.push(0);for(ot=new Vt(Xe),Ze=0,it=0,Lt=Xe.length;it<Lt;it=it+=4)Ze+=ot.readUInt32();return 4294967295&Ze},Le}(),xt={}.hasOwnProperty,dr=function(Le,je){for(var Xe in je)xt.call(je,Xe)&&(Le[Xe]=je[Xe]);function it(){this.constructor=Le}return it.prototype=je.prototype,Le.prototype=new it,Le.__super__=je.prototype,Le};hn=function(){function at(Le){var je;this.file=Le,je=this.file.directory.tables[this.tag],this.exists=!!je,je&&(this.offset=je.offset,this.length=je.length,this.parse(this.file.contents))}return at.prototype.parse=function(){},at.prototype.encode=function(){},at.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},at}();var er=function(at){function Le(){return Le.__super__.constructor.apply(this,arguments)}return dr(Le,hn),Le.prototype.tag="head",Le.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.revision=je.readInt(),this.checkSumAdjustment=je.readInt(),this.magicNumber=je.readInt(),this.flags=je.readShort(),this.unitsPerEm=je.readShort(),this.created=je.readLongLong(),this.modified=je.readLongLong(),this.xMin=je.readShort(),this.yMin=je.readShort(),this.xMax=je.readShort(),this.yMax=je.readShort(),this.macStyle=je.readShort(),this.lowestRecPPEM=je.readShort(),this.fontDirectionHint=je.readShort(),this.indexToLocFormat=je.readShort(),this.glyphDataFormat=je.readShort()},Le.prototype.encode=function(je){var Xe;return(Xe=new Vt).writeInt(this.version),Xe.writeInt(this.revision),Xe.writeInt(this.checkSumAdjustment),Xe.writeInt(this.magicNumber),Xe.writeShort(this.flags),Xe.writeShort(this.unitsPerEm),Xe.writeLongLong(this.created),Xe.writeLongLong(this.modified),Xe.writeShort(this.xMin),Xe.writeShort(this.yMin),Xe.writeShort(this.xMax),Xe.writeShort(this.yMax),Xe.writeShort(this.macStyle),Xe.writeShort(this.lowestRecPPEM),Xe.writeShort(this.fontDirectionHint),Xe.writeShort(je),Xe.writeShort(this.glyphDataFormat),Xe.data},Le}(),Ut=function(){function at(Le,je){var Xe,it,Ze,ot,Lt,At,mr,qr,Qr,gn,yr,Vn,Br,jn,xn,tn,ti;switch(this.platformID=Le.readUInt16(),this.encodingID=Le.readShort(),this.offset=je+Le.readInt(),Qr=Le.pos,Le.pos=this.offset,this.format=Le.readUInt16(),this.length=Le.readUInt16(),this.language=Le.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(At=0;At<256;++At)this.codeMap[At]=Le.readByte();break;case 4:for(yr=Le.readUInt16(),gn=yr/2,Le.pos+=6,Ze=function(){var mi,Pi;for(Pi=[],At=mi=0;0<=gn?mi<gn:mi>gn;At=0<=gn?++mi:--mi)Pi.push(Le.readUInt16());return Pi}(),Le.pos+=2,Br=function(){var mi,Pi;for(Pi=[],At=mi=0;0<=gn?mi<gn:mi>gn;At=0<=gn?++mi:--mi)Pi.push(Le.readUInt16());return Pi}(),mr=function(){var mi,Pi;for(Pi=[],At=mi=0;0<=gn?mi<gn:mi>gn;At=0<=gn?++mi:--mi)Pi.push(Le.readUInt16());return Pi}(),qr=function(){var mi,Pi;for(Pi=[],At=mi=0;0<=gn?mi<gn:mi>gn;At=0<=gn?++mi:--mi)Pi.push(Le.readUInt16());return Pi}(),it=(this.length-Le.pos+this.offset)/2,Lt=function(){var mi,Pi;for(Pi=[],At=mi=0;0<=it?mi<it:mi>it;At=0<=it?++mi:--mi)Pi.push(Le.readUInt16());return Pi}(),At=xn=0,ti=Ze.length;xn<ti;At=++xn)for(jn=Ze[At],Xe=tn=Vn=Br[At];Vn<=jn?tn<=jn:tn>=jn;Xe=Vn<=jn?++tn:--tn)qr[At]===0?ot=Xe+mr[At]:(ot=Lt[qr[At]/2+(Xe-Vn)-(gn-At)]||0)!==0&&(ot+=mr[At]),this.codeMap[Xe]=65535&ot}Le.pos=Qr}return at.encode=function(Le,je){var Xe,it,Ze,ot,Lt,At,mr,qr,Qr,gn,yr,Vn,Br,jn,xn,tn,ti,mi,Pi,en,Tn,Yn,Yt,Dt,Bt,Wt,Xt,kt,hr,br,wr,Fr,Xn,Fn,hi,An,jr,In,Qn,qn,si,Ci,ki,Ri,oa,ma;switch(kt=new Vt,ot=Object.keys(Le).sort(function(aa,ba){return aa-ba}),je){case"macroman":for(Br=0,jn=function(){var aa=[];for(Vn=0;Vn<256;++Vn)aa.push(0);return aa}(),tn={0:0},Ze={},hr=0,Xn=ot.length;hr<Xn;hr++)tn[ki=Le[it=ot[hr]]]==null&&(tn[ki]=++Br),Ze[it]={old:Le[it],new:tn[Le[it]]},jn[it]=tn[Le[it]];return kt.writeUInt16(1),kt.writeUInt16(0),kt.writeUInt32(12),kt.writeUInt16(0),kt.writeUInt16(262),kt.writeUInt16(0),kt.write(jn),{charMap:Ze,subtable:kt.data,maxGlyphID:Br+1};case"unicode":for(Wt=[],Qr=[],ti=0,tn={},Xe={},xn=mr=null,br=0,Fn=ot.length;br<Fn;br++)tn[Pi=Le[it=ot[br]]]==null&&(tn[Pi]=++ti),Xe[it]={old:Pi,new:tn[Pi]},Lt=tn[Pi]-it,xn!=null&&Lt===mr||(xn&&Qr.push(xn),Wt.push(it),mr=Lt),xn=it;for(xn&&Qr.push(xn),Qr.push(65535),Wt.push(65535),Dt=2*(Yt=Wt.length),Yn=2*Math.pow(Math.log(Yt)/Math.LN2,2),gn=Math.log(Yn/2)/Math.LN2,Tn=2*Yt-Yn,At=[],en=[],yr=[],Vn=wr=0,hi=Wt.length;wr<hi;Vn=++wr){if(Bt=Wt[Vn],qr=Qr[Vn],Bt===65535){At.push(0),en.push(0);break}if(Bt-(Xt=Xe[Bt].new)>=32768)for(At.push(0),en.push(2*(yr.length+Yt-Vn)),it=Fr=Bt;Bt<=qr?Fr<=qr:Fr>=qr;it=Bt<=qr?++Fr:--Fr)yr.push(Xe[it].new);else At.push(Xt-Bt),en.push(0)}for(kt.writeUInt16(3),kt.writeUInt16(1),kt.writeUInt32(12),kt.writeUInt16(4),kt.writeUInt16(16+8*Yt+2*yr.length),kt.writeUInt16(0),kt.writeUInt16(Dt),kt.writeUInt16(Yn),kt.writeUInt16(gn),kt.writeUInt16(Tn),si=0,An=Qr.length;si<An;si++)it=Qr[si],kt.writeUInt16(it);for(kt.writeUInt16(0),Ci=0,jr=Wt.length;Ci<jr;Ci++)it=Wt[Ci],kt.writeUInt16(it);for(Ri=0,In=At.length;Ri<In;Ri++)Lt=At[Ri],kt.writeUInt16(Lt);for(oa=0,Qn=en.length;oa<Qn;oa++)mi=en[oa],kt.writeUInt16(mi);for(ma=0,qn=yr.length;ma<qn;ma++)Br=yr[ma],kt.writeUInt16(Br);return{charMap:Xe,subtable:kt.data,maxGlyphID:ti+1}}},at}(),ir=function(at){function Le(){return Le.__super__.constructor.apply(this,arguments)}return dr(Le,hn),Le.prototype.tag="cmap",Le.prototype.parse=function(je){var Xe,it,Ze;for(je.pos=this.offset,this.version=je.readUInt16(),Ze=je.readUInt16(),this.tables=[],this.unicode=null,it=0;0<=Ze?it<Ze:it>Ze;it=0<=Ze?++it:--it)Xe=new Ut(je,this.offset),this.tables.push(Xe),Xe.isUnicode&&this.unicode==null&&(this.unicode=Xe);return!0},Le.encode=function(je,Xe){var it,Ze;return Xe==null&&(Xe="macroman"),it=Ut.encode(je,Xe),(Ze=new Vt).writeUInt16(0),Ze.writeUInt16(1),it.table=Ze.data.concat(it.subtable),it},Le}(),Ft=function(at){function Le(){return Le.__super__.constructor.apply(this,arguments)}return dr(Le,hn),Le.prototype.tag="hhea",Le.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.ascender=je.readShort(),this.decender=je.readShort(),this.lineGap=je.readShort(),this.advanceWidthMax=je.readShort(),this.minLeftSideBearing=je.readShort(),this.minRightSideBearing=je.readShort(),this.xMaxExtent=je.readShort(),this.caretSlopeRise=je.readShort(),this.caretSlopeRun=je.readShort(),this.caretOffset=je.readShort(),je.pos+=8,this.metricDataFormat=je.readShort(),this.numberOfMetrics=je.readUInt16()},Le}(),rr=function(at){function Le(){return Le.__super__.constructor.apply(this,arguments)}return dr(Le,hn),Le.prototype.tag="OS/2",Le.prototype.parse=function(je){if(je.pos=this.offset,this.version=je.readUInt16(),this.averageCharWidth=je.readShort(),this.weightClass=je.readUInt16(),this.widthClass=je.readUInt16(),this.type=je.readShort(),this.ySubscriptXSize=je.readShort(),this.ySubscriptYSize=je.readShort(),this.ySubscriptXOffset=je.readShort(),this.ySubscriptYOffset=je.readShort(),this.ySuperscriptXSize=je.readShort(),this.ySuperscriptYSize=je.readShort(),this.ySuperscriptXOffset=je.readShort(),this.ySuperscriptYOffset=je.readShort(),this.yStrikeoutSize=je.readShort(),this.yStrikeoutPosition=je.readShort(),this.familyClass=je.readShort(),this.panose=function(){var Xe,it;for(it=[],Xe=0;Xe<10;++Xe)it.push(je.readByte());return it}(),this.charRange=function(){var Xe,it;for(it=[],Xe=0;Xe<4;++Xe)it.push(je.readInt());return it}(),this.vendorID=je.readString(4),this.selection=je.readShort(),this.firstCharIndex=je.readShort(),this.lastCharIndex=je.readShort(),this.version>0&&(this.ascent=je.readShort(),this.descent=je.readShort(),this.lineGap=je.readShort(),this.winAscent=je.readShort(),this.winDescent=je.readShort(),this.codePageRange=function(){var Xe,it;for(it=[],Xe=0;Xe<2;Xe=++Xe)it.push(je.readInt());return it}(),this.version>1))return this.xHeight=je.readShort(),this.capHeight=je.readShort(),this.defaultChar=je.readShort(),this.breakChar=je.readShort(),this.maxContext=je.readShort()},Le}(),Kr=function(at){function Le(){return Le.__super__.constructor.apply(this,arguments)}return dr(Le,hn),Le.prototype.tag="post",Le.prototype.parse=function(je){var Xe,it,Ze;switch(je.pos=this.offset,this.format=je.readInt(),this.italicAngle=je.readInt(),this.underlinePosition=je.readShort(),this.underlineThickness=je.readShort(),this.isFixedPitch=je.readInt(),this.minMemType42=je.readInt(),this.maxMemType42=je.readInt(),this.minMemType1=je.readInt(),this.maxMemType1=je.readInt(),this.format){case 65536:break;case 131072:var ot;for(it=je.readUInt16(),this.glyphNameIndex=[],ot=0;0<=it?ot<it:ot>it;ot=0<=it?++ot:--ot)this.glyphNameIndex.push(je.readUInt16());for(this.names=[],Ze=[];je.pos<this.offset+this.length;)Xe=je.readByte(),Ze.push(this.names.push(je.readString(Xe)));return Ze;case 151552:return it=je.readUInt16(),this.offsets=je.read(it);case 196608:break;case 262144:return this.map=function(){var Lt,At,mr;for(mr=[],ot=Lt=0,At=this.file.maxp.numGlyphs;0<=At?Lt<At:Lt>At;ot=0<=At?++Lt:--Lt)mr.push(je.readUInt32());return mr}.call(this)}},Le}(),Rr=function(Le,je){this.raw=Le,this.length=Le.length,this.platformID=je.platformID,this.encodingID=je.encodingID,this.languageID=je.languageID},kr=function(at){function Le(){return Le.__super__.constructor.apply(this,arguments)}return dr(Le,hn),Le.prototype.tag="name",Le.prototype.parse=function(je){var Xe,it,Ze,ot,Lt,At,mr,qr,Qr,gn,yr;for(je.pos=this.offset,je.readShort(),Xe=je.readShort(),At=je.readShort(),it=[],ot=0;0<=Xe?ot<Xe:ot>Xe;ot=0<=Xe?++ot:--ot)it.push({platformID:je.readShort(),encodingID:je.readShort(),languageID:je.readShort(),nameID:je.readShort(),length:je.readShort(),offset:this.offset+At+je.readShort()});for(mr={},ot=Qr=0,gn=it.length;Qr<gn;ot=++Qr)Ze=it[ot],je.pos=Ze.offset,qr=je.readString(Ze.length),Lt=new Rr(qr,Ze),mr[yr=Ze.nameID]==null&&(mr[yr]=[]),mr[Ze.nameID].push(Lt);this.strings=mr,this.copyright=mr[0],this.fontFamily=mr[1],this.fontSubfamily=mr[2],this.uniqueSubfamily=mr[3],this.fontName=mr[4],this.version=mr[5];try{this.postscriptName=mr[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Vn){this.postscriptName=mr[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=mr[7],this.manufacturer=mr[8],this.designer=mr[9],this.description=mr[10],this.vendorUrl=mr[11],this.designerUrl=mr[12],this.license=mr[13],this.licenseUrl=mr[14],this.preferredFamily=mr[15],this.preferredSubfamily=mr[17],this.compatibleFull=mr[18],this.sampleText=mr[19]},Le}(),dn=function(at){function Le(){return Le.__super__.constructor.apply(this,arguments)}return dr(Le,hn),Le.prototype.tag="maxp",Le.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.numGlyphs=je.readUInt16(),this.maxPoints=je.readUInt16(),this.maxContours=je.readUInt16(),this.maxCompositePoints=je.readUInt16(),this.maxComponentContours=je.readUInt16(),this.maxZones=je.readUInt16(),this.maxTwilightPoints=je.readUInt16(),this.maxStorage=je.readUInt16(),this.maxFunctionDefs=je.readUInt16(),this.maxInstructionDefs=je.readUInt16(),this.maxStackElements=je.readUInt16(),this.maxSizeOfInstructions=je.readUInt16(),this.maxComponentElements=je.readUInt16(),this.maxComponentDepth=je.readUInt16()},Le}(),yn=function(at){function Le(){return Le.__super__.constructor.apply(this,arguments)}return dr(Le,hn),Le.prototype.tag="hmtx",Le.prototype.parse=function(je){var Xe,it,Ze,ot,Lt,At,mr;for(je.pos=this.offset,this.metrics=[],Xe=0,At=this.file.hhea.numberOfMetrics;0<=At?Xe<At:Xe>At;Xe=0<=At?++Xe:--Xe)this.metrics.push({advance:je.readUInt16(),lsb:je.readInt16()});for(Ze=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var qr,Qr;for(Qr=[],Xe=qr=0;0<=Ze?qr<Ze:qr>Ze;Xe=0<=Ze?++qr:--qr)Qr.push(je.readInt16());return Qr}(),this.widths=function(){var qr,Qr,gn,yr;for(yr=[],qr=0,Qr=(gn=this.metrics).length;qr<Qr;qr++)ot=gn[qr],yr.push(ot.advance);return yr}.call(this),it=this.widths[this.widths.length-1],mr=[],Xe=Lt=0;0<=Ze?Lt<Ze:Lt>Ze;Xe=0<=Ze?++Lt:--Lt)mr.push(this.widths.push(it));return mr},Le.prototype.forGlyph=function(je){return je in this.metrics?this.metrics[je]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[je-this.metrics.length]}},Le}(),ri=[].slice,$n=function(at){function Le(){return Le.__super__.constructor.apply(this,arguments)}return dr(Le,hn),Le.prototype.tag="glyf",Le.prototype.parse=function(){return this.cache={}},Le.prototype.glyphFor=function(je){var Xe,it,Ze,ot,Lt,At,mr,qr,Qr,gn;return je in this.cache?this.cache[je]:(ot=this.file.loca,Xe=this.file.contents,it=ot.indexOf(je),(Ze=ot.lengthOf(je))===0?this.cache[je]=null:(Xe.pos=this.offset+it,Lt=(At=new Vt(Xe.read(Ze))).readShort(),qr=At.readShort(),gn=At.readShort(),mr=At.readShort(),Qr=At.readShort(),this.cache[je]=Lt===-1?new _i(At,qr,gn,mr,Qr):new pi(At,Lt,qr,gn,mr,Qr),this.cache[je]))},Le.prototype.encode=function(je,Xe,it){var Ze,ot,Lt,At,mr;for(Lt=[],ot=[],At=0,mr=Xe.length;At<mr;At++)Ze=je[Xe[At]],ot.push(Lt.length),Ze&&(Lt=Lt.concat(Ze.encode(it)));return ot.push(Lt.length),{table:Lt,offsets:ot}},Le}(),pi=function(){function at(Le,je,Xe,it,Ze,ot){this.raw=Le,this.numberOfContours=je,this.xMin=Xe,this.yMin=it,this.xMax=Ze,this.yMax=ot,this.compound=!1}return at.prototype.encode=function(){return this.raw.data},at}(),_i=function(){function at(Le,je,Xe,it,Ze){var ot,Lt;for(this.raw=Le,this.xMin=je,this.yMin=Xe,this.xMax=it,this.yMax=Ze,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ot=this.raw;Lt=ot.readShort(),this.glyphOffsets.push(ot.pos),this.glyphIDs.push(ot.readUInt16()),32&Lt;)ot.pos+=1&Lt?4:2,128&Lt?ot.pos+=8:64&Lt?ot.pos+=4:8&Lt&&(ot.pos+=2)}return at.prototype.encode=function(){var Le,je,Xe;for(je=new Vt(ri.call(this.raw.data)),Le=0,Xe=this.glyphIDs.length;Le<Xe;++Le)je.pos=this.glyphOffsets[Le];return je.data},at}(),Di=function(at){function Le(){return Le.__super__.constructor.apply(this,arguments)}return dr(Le,hn),Le.prototype.tag="loca",Le.prototype.parse=function(je){var Xe,it;return je.pos=this.offset,Xe=this.file.head.indexToLocFormat,this.offsets=Xe===0?function(){var Ze,ot;for(ot=[],it=0,Ze=this.length;it<Ze;it+=2)ot.push(2*je.readUInt16());return ot}.call(this):function(){var Ze,ot;for(ot=[],it=0,Ze=this.length;it<Ze;it+=4)ot.push(je.readUInt32());return ot}.call(this)},Le.prototype.indexOf=function(je){return this.offsets[je]},Le.prototype.lengthOf=function(je){return this.offsets[je+1]-this.offsets[je]},Le.prototype.encode=function(je,Xe){for(var it=new Uint32Array(this.offsets.length),Ze=0,ot=0,Lt=0;Lt<it.length;++Lt)if(it[Lt]=Ze,ot<Xe.length&&Xe[ot]==Lt){++ot,it[Lt]=Ze;var At=this.offsets[Lt],mr=this.offsets[Lt+1]-At;mr>0&&(Ze+=mr)}for(var qr=new Array(4*it.length),Qr=0;Qr<it.length;++Qr)qr[4*Qr+3]=255&it[Qr],qr[4*Qr+2]=(65280&it[Qr])>>8,qr[4*Qr+1]=(16711680&it[Qr])>>16,qr[4*Qr]=(4278190080&it[Qr])>>24;return qr},Le}(),Wi=function(){function at(Le){this.font=Le,this.subset={},this.unicodes={},this.next=33}return at.prototype.generateCmap=function(){var Le,je,Xe,it,Ze;for(je in it=this.font.cmap.tables[0].codeMap,Le={},Ze=this.subset)Xe=Ze[je],Le[je]=it[Xe];return Le},at.prototype.glyphsFor=function(Le){var je,Xe,it,Ze,ot,Lt,At;for(it={},ot=0,Lt=Le.length;ot<Lt;ot++)it[Ze=Le[ot]]=this.font.glyf.glyphFor(Ze);for(Ze in je=[],it)((Xe=it[Ze])!=null?Xe.compound:void 0)&&je.push.apply(je,Xe.glyphIDs);if(je.length>0)for(Ze in At=this.glyphsFor(je))Xe=At[Ze],it[Ze]=Xe;return it},at.prototype.encode=function(Le,je){var Xe,it,Ze,ot,Lt,At,mr,qr,Qr,gn,yr,Vn,Br,jn,xn;for(it in Xe=ir.encode(this.generateCmap(),"unicode"),ot=this.glyphsFor(Le),yr={0:0},xn=Xe.charMap)yr[(At=xn[it]).old]=At.new;for(Vn in gn=Xe.maxGlyphID,ot)Vn in yr||(yr[Vn]=gn++);return qr=function(tn){var ti,mi;for(ti in mi={},tn)mi[tn[ti]]=ti;return mi}(yr),Qr=Object.keys(qr).sort(function(tn,ti){return tn-ti}),Br=function(){var tn,ti,mi;for(mi=[],tn=0,ti=Qr.length;tn<ti;tn++)Lt=Qr[tn],mi.push(qr[Lt]);return mi}(),Ze=this.font.glyf.encode(ot,Br,yr),mr=this.font.loca.encode(Ze.offsets,Br),jn={cmap:this.font.cmap.raw(),glyf:Ze.table,loca:mr,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(je)},this.font.os2.exists&&(jn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(jn)},at}();z.API.PDFObject=function(){var at;function Le(){}return at=function(Xe,it){return(Array(it+1).join("0")+Xe).slice(-it)},Le.convert=function(je){var Xe,it,Ze,ot;if(Array.isArray(je))return"["+function(){var Lt,At,mr;for(mr=[],Lt=0,At=je.length;Lt<At;Lt++)Xe=je[Lt],mr.push(Le.convert(Xe));return mr}().join(" ")+"]";if(typeof je=="string")return"/"+je;if(je!=null?je.isString:void 0)return"("+je+")";if(je instanceof Date)return"(D:"+at(je.getUTCFullYear(),4)+at(je.getUTCMonth(),2)+at(je.getUTCDate(),2)+at(je.getUTCHours(),2)+at(je.getUTCMinutes(),2)+at(je.getUTCSeconds(),2)+"Z)";if({}.toString.call(je)==="[object Object]"){for(it in Ze=["<<"],je)ot=je[it],Ze.push("/"+it+" "+Le.convert(ot));return Ze.push(">>"),Ze.join(`
`)}return""+je},Le}(),D.default=z}.call(this,n("yLpj"))},e4Nc:function(R,D,n){var y=n("fGT3"),g=n("k+1r"),S=n("JHgL"),m=n("pSRY"),p=n("H8j4");function f(d){var l=-1,a=d==null?0:d.length;for(this.clear();++l<a;){var i=d[l];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=g,f.prototype.get=S,f.prototype.has=m,f.prototype.set=p,R.exports=f},e5VY:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("YNAk"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},e5cp:function(R,D,n){var y=n("fmRc"),g=n("or5M"),S=n("HDyB"),m=n("seXi"),p=n("QqLw"),f=n("Z0cm"),d=n("DSRE"),l=n("c6wG"),a=1,i="[object Arguments]",t="[object Array]",o="[object Object]",e=Object.prototype,u=e.hasOwnProperty;function r(s,c,h,v,A,b){var x=f(s),E=f(c),T=x?t:p(s),_=E?t:p(c);T=T==i?o:T,_=_==i?o:_;var C=T==o,w=_==o,O=T==_;if(O&&d(s)){if(!d(c))return!1;x=!0,C=!1}if(O&&!C)return b||(b=new y),x||l(s)?g(s,c,h,v,A,b):S(s,c,T,h,v,A,b);if(!(h&a)){var I=C&&u.call(s,"__wrapped__"),k=w&&u.call(c,"__wrapped__");if(I||k){var M=I?s.value():s,U=k?c.value():c;return b||(b=new y),A(M,U,h,v,b)}}return O?(b||(b=new y),m(s,c,h,v,A,b)):!1}R.exports=r},e7zE:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("lPiR"),n("WYAk"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.Base,p=S.WordArray,f=g.algo,d=f.SHA256,l=f.HMAC,a=f.PBKDF2=m.extend({cfg:m.extend({keySize:128/32,hasher:d,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,o){for(var e=this.cfg,u=l.create(e.hasher,t),r=p.create(),s=p.create([1]),c=r.words,h=s.words,v=e.keySize,A=e.iterations;c.length<v;){var b=u.update(o).finalize(s);u.reset();for(var x=b.words,E=x.length,T=b,_=1;_<A;_++){T=u.finalize(T),u.reset();for(var C=T.words,w=0;w<E;w++)x[w]^=C[w]}r.concat(b),h[0]++}return r.sigBytes=v*4,r}});g.PBKDF2=function(i,t,o){return a.create(o).compute(i,t)}}(),y.PBKDF2})},eIcI:function(R,D,n){var y=n("bYtY"),g=n("hM6l");function S(p,f,d){g.call(this,p,f,d),this.type="value",this.angle=0,this.name="",this.model}y.inherits(S,g);var m=S;R.exports=m},eJH7:function(R,D,n){var y=n("bYtY");function g(S){var m=S.polar;if(m){y.isArray(m)||(m=[m]);var p=[];y.each(m,function(f,d){f.indicator?(f.type&&!f.shape&&(f.shape=f.type),S.radar=S.radar||[],y.isArray(S.radar)||(S.radar=[S.radar]),S.radar.push(f)):p.push(f)}),S.polar=p}y.each(S.series,function(f){f&&f.type==="radar"&&f.polarIndex&&(f.radarIndex=f.polarIndex)})}R.exports=g},eP3c:function(R,D,n){"use strict";function y(Ge){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(oe){return typeof oe}:y=function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},y(Ge)}Object.defineProperty(D,"__esModule",{value:!0}),D.inflateReset=fe,D.inflateReset2=xe,D.inflateResetKeep=Be,D.inflateInit=nt,D.inflateInit2=ke,D.inflate=Gt,D.inflateEnd=pr,D.inflateGetHeader=Qt,D.inflateSetDictionary=Ht,D.inflateInfo=D.Z_DEFLATED=D.Z_BUF_ERROR=D.Z_MEM_ERROR=D.Z_DATA_ERROR=D.Z_STREAM_ERROR=D.Z_NEED_DICT=D.Z_STREAM_END=D.Z_OK=D.Z_TREES=D.Z_BLOCK=D.Z_FINISH=void 0;var g=a(n("6BzB")),S=d(n("xlC8")),m=d(n("QV2g")),p=d(n("sjKO")),f=d(n("JSwD"));function d(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}}function l(){if(typeof WeakMap!="function")return null;var Ge=new WeakMap;return l=function(){return Ge},Ge}function a(Ge){if(Ge&&Ge.__esModule)return Ge;if(Ge===null||y(Ge)!=="object"&&typeof Ge!="function")return{default:Ge};var pe=l();if(pe&&pe.has(Ge))return pe.get(Ge);var oe={},ct=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qe in Ge)if(Object.prototype.hasOwnProperty.call(Ge,qe)){var me=ct?Object.getOwnPropertyDescriptor(Ge,qe):null;me&&(me.get||me.set)?Object.defineProperty(oe,qe,me):oe[qe]=Ge[qe]}return oe.default=Ge,pe&&pe.set(Ge,oe),oe}var i=0,t=1,o=2,e=4;D.Z_FINISH=e;var u=5;D.Z_BLOCK=u;var r=6;D.Z_TREES=r;var s=0;D.Z_OK=s;var c=1;D.Z_STREAM_END=c;var h=2;D.Z_NEED_DICT=h;var v=-2;D.Z_STREAM_ERROR=v;var A=-3;D.Z_DATA_ERROR=A;var b=-4;D.Z_MEM_ERROR=b;var x=-5;D.Z_BUF_ERROR=x;var E=8;D.Z_DEFLATED=E;var T=1,_=2,C=3,w=4,O=5,I=6,k=7,M=8,U=9,P=10,X=11,F=12,j=13,K=14,z=15,V=16,Q=17,G=18,te=19,q=20,se=21,re=22,we=23,Oe=24,Me=25,Qe=26,Ve=27,dt=28,Fe=29,ue=30,et=31,he=32,J=852,Y=592,$=15,de=$;function be(Ge){return(Ge>>>24&255)+(Ge>>>8&65280)+((Ge&65280)<<8)+((Ge&255)<<24)}function Te(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new g.Buf16(320),this.work=new g.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Be(Ge){var pe;return!Ge||!Ge.state?v:(pe=Ge.state,Ge.total_in=Ge.total_out=pe.total=0,Ge.msg="",pe.wrap&&(Ge.adler=pe.wrap&1),pe.mode=T,pe.last=0,pe.havedict=0,pe.dmax=32768,pe.head=null,pe.hold=0,pe.bits=0,pe.lencode=pe.lendyn=new g.Buf32(J),pe.distcode=pe.distdyn=new g.Buf32(Y),pe.sane=1,pe.back=-1,s)}function fe(Ge){var pe;return!Ge||!Ge.state?v:(pe=Ge.state,pe.wsize=0,pe.whave=0,pe.wnext=0,Be(Ge))}function xe(Ge,pe){var oe,ct;return!Ge||!Ge.state?v:(ct=Ge.state,pe<0?(oe=0,pe=-pe):(oe=(pe>>4)+1,pe<48&&(pe&=15)),pe&&(pe<8||pe>15)?v:(ct.window!==null&&ct.wbits!==pe&&(ct.window=null),ct.wrap=oe,ct.wbits=pe,fe(Ge)))}function ke(Ge,pe){var oe,ct;return Ge?(ct=new Te,Ge.state=ct,ct.window=null,oe=xe(Ge,pe),oe!==s&&(Ge.state=null),oe):v}function nt(Ge){return ke(Ge,de)}var Ct=!0,pt,He;function nr(Ge){if(Ct){var pe;for(pt=new g.Buf32(512),He=new g.Buf32(32),pe=0;pe<144;)Ge.lens[pe++]=8;for(;pe<256;)Ge.lens[pe++]=9;for(;pe<280;)Ge.lens[pe++]=7;for(;pe<288;)Ge.lens[pe++]=8;for((0,f.default)(t,Ge.lens,0,288,pt,0,Ge.work,{bits:9}),pe=0;pe<32;)Ge.lens[pe++]=5;(0,f.default)(o,Ge.lens,0,32,He,0,Ge.work,{bits:5}),Ct=!1}Ge.lencode=pt,Ge.lenbits=9,Ge.distcode=He,Ge.distbits=5}function ht(Ge,pe,oe,ct){var qe,me=Ge.state;return me.window===null&&(me.wsize=1<<me.wbits,me.wnext=0,me.whave=0,me.window=new g.Buf8(me.wsize)),ct>=me.wsize?(g.arraySet(me.window,pe,oe-me.wsize,me.wsize,0),me.wnext=0,me.whave=me.wsize):(qe=me.wsize-me.wnext,qe>ct&&(qe=ct),g.arraySet(me.window,pe,oe-ct,qe,me.wnext),ct-=qe,ct?(g.arraySet(me.window,pe,oe-ct,ct,0),me.wnext=ct,me.whave=me.wsize):(me.wnext+=qe,me.wnext===me.wsize&&(me.wnext=0),me.whave<me.wsize&&(me.whave+=qe))),0}function Gt(Ge,pe){var oe,ct,qe,me,Kt,vr,bt,or,_t,jt,ut,St,mt,lt,tt=0,Cr,nn,mn,Bn,oi,wn,Rn,Zt,Tt=new g.Buf8(4),De,Re,Pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Ge||!Ge.state||!Ge.output||!Ge.input&&Ge.avail_in!==0)return v;oe=Ge.state,oe.mode===F&&(oe.mode=j),Kt=Ge.next_out,qe=Ge.output,bt=Ge.avail_out,me=Ge.next_in,ct=Ge.input,vr=Ge.avail_in,or=oe.hold,_t=oe.bits,jt=vr,ut=bt,Zt=s;e:for(;;)switch(oe.mode){case T:if(oe.wrap===0){oe.mode=j;break}for(;_t<16;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}if(oe.wrap&2&&or===35615){oe.check=0,Tt[0]=or&255,Tt[1]=or>>>8&255,oe.check=(0,m.default)(oe.check,Tt,2,0),or=0,_t=0,oe.mode=_;break}if(oe.flags=0,oe.head&&(oe.head.done=!1),!(oe.wrap&1)||(((or&255)<<8)+(or>>8))%31){Ge.msg="incorrect header check",oe.mode=ue;break}if((or&15)!==E){Ge.msg="unknown compression method",oe.mode=ue;break}if(or>>>=4,_t-=4,Rn=(or&15)+8,oe.wbits===0)oe.wbits=Rn;else if(Rn>oe.wbits){Ge.msg="invalid window size",oe.mode=ue;break}oe.dmax=1<<Rn,Ge.adler=oe.check=1,oe.mode=or&512?P:F,or=0,_t=0;break;case _:for(;_t<16;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}if(oe.flags=or,(oe.flags&255)!==E){Ge.msg="unknown compression method",oe.mode=ue;break}if(oe.flags&57344){Ge.msg="unknown header flags set",oe.mode=ue;break}oe.head&&(oe.head.text=or>>8&1),oe.flags&512&&(Tt[0]=or&255,Tt[1]=or>>>8&255,oe.check=(0,m.default)(oe.check,Tt,2,0)),or=0,_t=0,oe.mode=C;case C:for(;_t<32;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}oe.head&&(oe.head.time=or),oe.flags&512&&(Tt[0]=or&255,Tt[1]=or>>>8&255,Tt[2]=or>>>16&255,Tt[3]=or>>>24&255,oe.check=(0,m.default)(oe.check,Tt,4,0)),or=0,_t=0,oe.mode=w;case w:for(;_t<16;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}oe.head&&(oe.head.xflags=or&255,oe.head.os=or>>8),oe.flags&512&&(Tt[0]=or&255,Tt[1]=or>>>8&255,oe.check=(0,m.default)(oe.check,Tt,2,0)),or=0,_t=0,oe.mode=O;case O:if(oe.flags&1024){for(;_t<16;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}oe.length=or,oe.head&&(oe.head.extra_len=or),oe.flags&512&&(Tt[0]=or&255,Tt[1]=or>>>8&255,oe.check=(0,m.default)(oe.check,Tt,2,0)),or=0,_t=0}else oe.head&&(oe.head.extra=null);oe.mode=I;case I:if(oe.flags&1024&&(St=oe.length,St>vr&&(St=vr),St&&(oe.head&&(Rn=oe.head.extra_len-oe.length,oe.head.extra||(oe.head.extra=new Array(oe.head.extra_len)),g.arraySet(oe.head.extra,ct,me,St,Rn)),oe.flags&512&&(oe.check=(0,m.default)(oe.check,ct,St,me)),vr-=St,me+=St,oe.length-=St),oe.length))break e;oe.length=0,oe.mode=k;case k:if(oe.flags&2048){if(vr===0)break e;St=0;do Rn=ct[me+St++],oe.head&&Rn&&oe.length<65536&&(oe.head.name+=String.fromCharCode(Rn));while(Rn&&St<vr);if(oe.flags&512&&(oe.check=(0,m.default)(oe.check,ct,St,me)),vr-=St,me+=St,Rn)break e}else oe.head&&(oe.head.name=null);oe.length=0,oe.mode=M;case M:if(oe.flags&4096){if(vr===0)break e;St=0;do Rn=ct[me+St++],oe.head&&Rn&&oe.length<65536&&(oe.head.comment+=String.fromCharCode(Rn));while(Rn&&St<vr);if(oe.flags&512&&(oe.check=(0,m.default)(oe.check,ct,St,me)),vr-=St,me+=St,Rn)break e}else oe.head&&(oe.head.comment=null);oe.mode=U;case U:if(oe.flags&512){for(;_t<16;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}if(or!==(oe.check&65535)){Ge.msg="header crc mismatch",oe.mode=ue;break}or=0,_t=0}oe.head&&(oe.head.hcrc=oe.flags>>9&1,oe.head.done=!0),Ge.adler=oe.check=0,oe.mode=F;break;case P:for(;_t<32;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}Ge.adler=oe.check=be(or),or=0,_t=0,oe.mode=X;case X:if(oe.havedict===0)return Ge.next_out=Kt,Ge.avail_out=bt,Ge.next_in=me,Ge.avail_in=vr,oe.hold=or,oe.bits=_t,h;Ge.adler=oe.check=1,oe.mode=F;case F:if(pe===u||pe===r)break e;case j:if(oe.last){or>>>=_t&7,_t-=_t&7,oe.mode=Ve;break}for(;_t<3;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}oe.last=or&1,or>>>=1,_t-=1;switch(or&3){case 0:oe.mode=K;break;case 1:if(nr(oe),oe.mode=q,pe===r){or>>>=2,_t-=2;break e}break;case 2:oe.mode=Q;break;case 3:Ge.msg="invalid block type",oe.mode=ue}or>>>=2,_t-=2;break;case K:for(or>>>=_t&7,_t-=_t&7;_t<32;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}if((or&65535)!==(or>>>16^65535)){Ge.msg="invalid stored block lengths",oe.mode=ue;break}if(oe.length=or&65535,or=0,_t=0,oe.mode=z,pe===r)break e;case z:oe.mode=V;case V:if(St=oe.length,St){if(St>vr&&(St=vr),St>bt&&(St=bt),St===0)break e;g.arraySet(qe,ct,me,St,Kt),vr-=St,me+=St,bt-=St,Kt+=St,oe.length-=St;break}oe.mode=F;break;case Q:for(;_t<14;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}if(oe.nlen=(or&31)+257,or>>>=5,_t-=5,oe.ndist=(or&31)+1,or>>>=5,_t-=5,oe.ncode=(or&15)+4,or>>>=4,_t-=4,oe.nlen>286||oe.ndist>30){Ge.msg="too many length or distance symbols",oe.mode=ue;break}oe.have=0,oe.mode=G;case G:for(;oe.have<oe.ncode;){for(;_t<3;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}oe.lens[Pe[oe.have++]]=or&7,or>>>=3,_t-=3}for(;oe.have<19;)oe.lens[Pe[oe.have++]]=0;if(oe.lencode=oe.lendyn,oe.lenbits=7,De={bits:oe.lenbits},Zt=(0,f.default)(i,oe.lens,0,19,oe.lencode,0,oe.work,De),oe.lenbits=De.bits,Zt){Ge.msg="invalid code lengths set",oe.mode=ue;break}oe.have=0,oe.mode=te;case te:for(;oe.have<oe.nlen+oe.ndist;){for(;!(tt=oe.lencode[or&(1<<oe.lenbits)-1],Cr=tt>>>24,nn=tt>>>16&255,mn=tt&65535,Cr<=_t);){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}if(mn<16)or>>>=Cr,_t-=Cr,oe.lens[oe.have++]=mn;else{if(mn===16){for(Re=Cr+2;_t<Re;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}if(or>>>=Cr,_t-=Cr,oe.have===0){Ge.msg="invalid bit length repeat",oe.mode=ue;break}Rn=oe.lens[oe.have-1],St=3+(or&3),or>>>=2,_t-=2}else if(mn===17){for(Re=Cr+3;_t<Re;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}or>>>=Cr,_t-=Cr,Rn=0,St=3+(or&7),or>>>=3,_t-=3}else{for(Re=Cr+7;_t<Re;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}or>>>=Cr,_t-=Cr,Rn=0,St=11+(or&127),or>>>=7,_t-=7}if(oe.have+St>oe.nlen+oe.ndist){Ge.msg="invalid bit length repeat",oe.mode=ue;break}for(;St--;)oe.lens[oe.have++]=Rn}}if(oe.mode===ue)break;if(oe.lens[256]===0){Ge.msg="invalid code -- missing end-of-block",oe.mode=ue;break}if(oe.lenbits=9,De={bits:oe.lenbits},Zt=(0,f.default)(t,oe.lens,0,oe.nlen,oe.lencode,0,oe.work,De),oe.lenbits=De.bits,Zt){Ge.msg="invalid literal/lengths set",oe.mode=ue;break}if(oe.distbits=6,oe.distcode=oe.distdyn,De={bits:oe.distbits},Zt=(0,f.default)(o,oe.lens,oe.nlen,oe.ndist,oe.distcode,0,oe.work,De),oe.distbits=De.bits,Zt){Ge.msg="invalid distances set",oe.mode=ue;break}if(oe.mode=q,pe===r)break e;case q:oe.mode=se;case se:if(vr>=6&&bt>=258){Ge.next_out=Kt,Ge.avail_out=bt,Ge.next_in=me,Ge.avail_in=vr,oe.hold=or,oe.bits=_t,(0,p.default)(Ge,ut),Kt=Ge.next_out,qe=Ge.output,bt=Ge.avail_out,me=Ge.next_in,ct=Ge.input,vr=Ge.avail_in,or=oe.hold,_t=oe.bits,oe.mode===F&&(oe.back=-1);break}for(oe.back=0;!(tt=oe.lencode[or&(1<<oe.lenbits)-1],Cr=tt>>>24,nn=tt>>>16&255,mn=tt&65535,Cr<=_t);){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}if(nn&&(nn&240)===0){for(Bn=Cr,oi=nn,wn=mn;!(tt=oe.lencode[wn+((or&(1<<Bn+oi)-1)>>Bn)],Cr=tt>>>24,nn=tt>>>16&255,mn=tt&65535,Bn+Cr<=_t);){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}or>>>=Bn,_t-=Bn,oe.back+=Bn}if(or>>>=Cr,_t-=Cr,oe.back+=Cr,oe.length=mn,nn===0){oe.mode=Qe;break}if(nn&32){oe.back=-1,oe.mode=F;break}if(nn&64){Ge.msg="invalid literal/length code",oe.mode=ue;break}oe.extra=nn&15,oe.mode=re;case re:if(oe.extra){for(Re=oe.extra;_t<Re;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}oe.length+=or&(1<<oe.extra)-1,or>>>=oe.extra,_t-=oe.extra,oe.back+=oe.extra}oe.was=oe.length,oe.mode=we;case we:for(;!(tt=oe.distcode[or&(1<<oe.distbits)-1],Cr=tt>>>24,nn=tt>>>16&255,mn=tt&65535,Cr<=_t);){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}if((nn&240)===0){for(Bn=Cr,oi=nn,wn=mn;!(tt=oe.distcode[wn+((or&(1<<Bn+oi)-1)>>Bn)],Cr=tt>>>24,nn=tt>>>16&255,mn=tt&65535,Bn+Cr<=_t);){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}or>>>=Bn,_t-=Bn,oe.back+=Bn}if(or>>>=Cr,_t-=Cr,oe.back+=Cr,nn&64){Ge.msg="invalid distance code",oe.mode=ue;break}oe.offset=mn,oe.extra=nn&15,oe.mode=Oe;case Oe:if(oe.extra){for(Re=oe.extra;_t<Re;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}oe.offset+=or&(1<<oe.extra)-1,or>>>=oe.extra,_t-=oe.extra,oe.back+=oe.extra}if(oe.offset>oe.dmax){Ge.msg="invalid distance too far back",oe.mode=ue;break}oe.mode=Me;case Me:if(bt===0)break e;if(St=ut-bt,oe.offset>St){if(St=oe.offset-St,St>oe.whave&&oe.sane){Ge.msg="invalid distance too far back",oe.mode=ue;break}St>oe.wnext?(St-=oe.wnext,mt=oe.wsize-St):mt=oe.wnext-St,St>oe.length&&(St=oe.length),lt=oe.window}else lt=qe,mt=Kt-oe.offset,St=oe.length;St>bt&&(St=bt),bt-=St,oe.length-=St;do qe[Kt++]=lt[mt++];while(--St);oe.length===0&&(oe.mode=se);break;case Qe:if(bt===0)break e;qe[Kt++]=oe.length,bt--,oe.mode=se;break;case Ve:if(oe.wrap){for(;_t<32;){if(vr===0)break e;vr--,or|=ct[me++]<<_t,_t+=8}if(ut-=bt,Ge.total_out+=ut,oe.total+=ut,ut&&(Ge.adler=oe.check=oe.flags?(0,m.default)(oe.check,qe,ut,Kt-ut):(0,S.default)(oe.check,qe,ut,Kt-ut)),ut=bt,(oe.flags?or:be(or))!==oe.check){Ge.msg="incorrect data check",oe.mode=ue;break}or=0,_t=0}oe.mode=dt;case dt:if(oe.wrap&&oe.flags){for(;_t<32;){if(vr===0)break e;vr--,or+=ct[me++]<<_t,_t+=8}if(or!==(oe.total&4294967295)){Ge.msg="incorrect length check",oe.mode=ue;break}or=0,_t=0}oe.mode=Fe;case Fe:Zt=c;break e;case ue:Zt=A;break e;case et:return b;case he:default:return v}return Ge.next_out=Kt,Ge.avail_out=bt,Ge.next_in=me,Ge.avail_in=vr,oe.hold=or,oe.bits=_t,(oe.wsize||ut!==Ge.avail_out&&oe.mode<ue&&(oe.mode<Ve||pe!==e))&&ht(Ge,Ge.output,Ge.next_out,ut-Ge.avail_out)?(oe.mode=et,b):(jt-=Ge.avail_in,ut-=Ge.avail_out,Ge.total_in+=jt,Ge.total_out+=ut,oe.total+=ut,oe.wrap&&ut&&(Ge.adler=oe.check=oe.flags?(0,m.default)(oe.check,qe,ut,Ge.next_out-ut):(0,S.default)(oe.check,qe,ut,Ge.next_out-ut)),Ge.data_type=oe.bits+(oe.last?64:0)+(oe.mode===F?128:0)+(oe.mode===q||oe.mode===z?256:0),(jt===0&&ut===0||pe===e)&&Zt===s&&(Zt=x),Zt)}function pr(Ge){if(!Ge||!Ge.state)return v;var pe=Ge.state;return pe.window&&(pe.window=null),Ge.state=null,s}function Qt(Ge,pe){var oe;return!Ge||!Ge.state?v:(oe=Ge.state,(oe.wrap&2)===0?v:(oe.head=pe,pe.done=!1,s))}function Ht(Ge,pe){var oe=pe.length,ct,qe,me;return!Ge||!Ge.state?v:(ct=Ge.state,ct.wrap!==0&&ct.mode!==X?v:ct.mode===X&&(qe=1,qe=(0,S.default)(qe,pe,oe,0),qe!==ct.check)?A:(me=ht(Ge,pe,oe,oe),me?(ct.mode=et,b):(ct.havedict=1,s)))}var Jt="pako inflate (from Nodeca project)";D.inflateInfo=Jt},ePAk:function(R,D,n){var y=n("ProS");n("2fGM");var g=y.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(S){var m,p=this.ecModel;return p.eachComponent(S,function(f){f.getCoordSysModel()===this&&(m=f)},this),m},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});R.exports=g},eRkO:function(R,D,n){var y=n("+TT/"),g=y.getLayoutRect,S=y.box,m=y.positionElement,p=n("7aKB"),f=n("IwbS");function d(a,i,t){var o=i.getBoxLayoutParams(),e=i.get("padding"),u={width:t.getWidth(),height:t.getHeight()},r=g(o,u,e);S(i.get("orient"),a,i.get("itemGap"),r.width,r.height),m(a,o,u,e)}function l(a,i){var t=p.normalizeCssArray(i.get("padding")),o=i.getItemStyle(["color","opacity"]);o.fill=i.get("backgroundColor");var a=new f.Rect({shape:{x:a.x-t[3],y:a.y-t[0],width:a.width+t[1]+t[3],height:a.height+t[0]+t[2],r:i.get("borderRadius")},style:o,silent:!0,z2:-1});return a}D.layout=d,D.makeBackground=l},eS4l:function(R,D,n){n("HM/N"),n("FNN5")},ebwN:function(R,D,n){var y=n("Cwc5"),g=n("Kz5y"),S=y(g,"Map");R.exports=S},ekgI:function(R,D,n){var y=n("YESw"),g=Object.prototype,S=g.hasOwnProperty;function m(p){var f=this.__data__;return y?f[p]!==void 0:S.call(f,p)}R.exports=m},ewwo:function(R,D,n){var y=n("bMXI"),g=n("+TT/"),S=g.getLayoutRect,m=n("4mN7");function p(d,l,a){var i=d.getBoxLayoutParams();return i.aspect=a,S(i,{width:l.getWidth(),height:l.getHeight()})}function f(d,l){var a=[];return d.eachSeriesByType("graph",function(i){var t=i.get("coordinateSystem");if(!t||t==="view"){var o=i.getData(),e=o.mapArray(function(E){var T=o.getItemModel(E);return[+T.get("x"),+T.get("y")]}),u=[],r=[];m.fromPoints(e,u,r),r[0]-u[0]===0&&(r[0]+=1,u[0]-=1),r[1]-u[1]===0&&(r[1]+=1,u[1]-=1);var s=(r[0]-u[0])/(r[1]-u[1]),c=p(i,l,s);isNaN(s)&&(u=[c.x,c.y],r=[c.x+c.width,c.y+c.height]);var h=r[0]-u[0],v=r[1]-u[1],A=c.width,b=c.height,x=i.coordinateSystem=new y;x.zoomLimit=i.get("scaleLimit"),x.setBoundingRect(u[0],u[1],h,v),x.setViewRect(c.x,c.y,A,b),x.setCenter(i.get("center")),x.setZoom(i.get("zoom")),a.push(x)}}),a}R.exports=f},f1nB:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("ProS"),m=n("bYtY"),p=n("4NO4"),f=n("IwbS"),d=n("+TT/"),l=n("OELB"),a=l.parsePercent,i={path:null,compoundPath:null,group:f.Group,image:f.Image,text:f.Text};S.registerPreprocessor(function(A){var b=A.graphic;m.isArray(b)?!b[0]||!b[0].elements?A.graphic=[{elements:b}]:A.graphic=[A.graphic[0]]:b&&!b.elements&&(A.graphic=[{elements:[b]}])});var t=S.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(A){var b=this.option.elements;this.option.elements=null,t.superApply(this,"mergeOption",arguments),this.option.elements=b},optionUpdated:function(A,b){var x=this.option,E=(b?x:A).elements,T=x.elements=b?[]:x.elements,_=[];this._flatten(E,_);var C=p.mappingToExists(T,_);p.makeIdAndName(C);var w=this._elOptionsToUpdate=[];m.each(C,function(I,k){var M=I.option;if(!M)return;w.push(M),s(I,M),c(T,k,M),h(T[k],M)},this);for(var O=T.length-1;O>=0;O--)T[O]==null?T.splice(O,1):delete T[O].$action},_flatten:function(A,b,x){m.each(A,function(E){if(!E)return;x&&(E.parentOption=x),b.push(E);var T=E.children;E.type==="group"&&T&&this._flatten(T,b,E),delete E.children},this)},useElOptionsToUpdate:function(){var A=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,A}});S.extendComponentView({type:"graphic",init:function(A,b){this._elMap=m.createHashMap(),this._lastGraphicModel},render:function(A,b,x){A!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=A,this._updateElements(A),this._relocate(A,x)},_updateElements:function(A){var b=A.useElOptionsToUpdate();if(!b)return;var x=this._elMap,E=this.group;m.each(b,function(T){var _=T.$action,C=T.id,w=x.get(C),O=T.parentId,I=O!=null?x.get(O):E,k=T.style;T.type==="text"&&k&&(T.hv&&T.hv[1]&&(k.textVerticalAlign=k.textBaseline=null),!k.hasOwnProperty("textFill")&&k.fill&&(k.textFill=k.fill),!k.hasOwnProperty("textStroke")&&k.stroke&&(k.textStroke=k.stroke));var M=u(T);!_||_==="merge"?w?w.attr(M):o(C,I,M,x):_==="replace"?(e(w,x),o(C,I,M,x)):_==="remove"&&e(w,x);var U=x.get(C);U&&(U.__ecGraphicWidthOption=T.width,U.__ecGraphicHeightOption=T.height,v(U,A,T))})},_relocate:function(A,b){for(var x=A.option.elements,E=this.group,T=this._elMap,_=b.getWidth(),C=b.getHeight(),w=0;w<x.length;w++){var O=x[w],I=T.get(O.id);if(!I||!I.isGroup)continue;var k=I.parent,M=k===E;I.__ecGraphicWidth=a(I.__ecGraphicWidthOption,M?_:k.__ecGraphicWidth)||0,I.__ecGraphicHeight=a(I.__ecGraphicHeightOption,M?C:k.__ecGraphicHeight)||0}for(var w=x.length-1;w>=0;w--){var O=x[w],I=T.get(O.id);if(!I)continue;var k=I.parent,U=k===E?{width:_,height:C}:{width:k.__ecGraphicWidth,height:k.__ecGraphicHeight};d.positionElement(I,O,U,null,{hv:O.hv,boundingMode:O.bounding})}},_clear:function(){var A=this._elMap;A.each(function(b){e(b,A)}),this._elMap=m.createHashMap()},dispose:function(){this._clear()}});function o(A,b,x,E){var T=x.type,_=i.hasOwnProperty(T)?i[T]:f.getShapeClass(T),C=new _(x);b.add(C),E.set(A,C),C.__ecGraphicId=A}function e(A,b){var x=A&&A.parent;x&&(A.type==="group"&&A.traverse(function(E){e(E,b)}),b.removeKey(A.__ecGraphicId),x.remove(A))}function u(A){return A=m.extend({},A),m.each(["id","parentId","$action","hv","bounding"].concat(d.LOCATION_PARAMS),function(b){delete A[b]}),A}function r(A,b){var x;return m.each(b,function(E){A[E]!=null&&A[E]!=="auto"&&(x=!0)}),x}function s(A,b){var x=A.exist;if(b.id=A.keyInfo.id,!b.type&&x&&(b.type=x.type),b.parentId==null){var E=b.parentOption;E?b.parentId=E.id:x&&(b.parentId=x.parentId)}b.parentOption=null}function c(A,b,x){var E=m.extend({},x),T=A[b],_=x.$action||"merge";_==="merge"?T?(m.merge(T,E,!0),d.mergeLayoutParam(T,E,{ignoreSize:!0}),d.copyLayoutParams(x,T)):A[b]=E:_==="replace"?A[b]=E:_==="remove"&&(T&&(A[b]=null))}function h(A,b){if(!A)return;A.hv=b.hv=[r(b,["left","right"]),r(b,["top","bottom"])],A.type==="group"&&(A.width==null&&(A.width=b.width=0),A.height==null&&(A.height=b.height=0))}function v(A,b,x){var E=A.eventData;!A.silent&&!A.ignore&&!E&&(E=A.eventData={componentType:"graphic",componentIndex:b.componentIndex,name:A.name}),E&&(E.info=A.info)}},f3JH:function(R,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("oY9F"),n("MqEG"),n("LBfv"),n("noeP")},f5HG:function(R,D,n){var y=n("IwbS"),g=n("QBsz"),S=y.Line.prototype,m=y.BezierCurve.prototype;function p(d){return isNaN(+d.cpx1)||isNaN(+d.cpy1)}var f=y.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(d,l){this[p(l)?"_buildPathLine":"_buildPathCurve"](d,l)},_buildPathLine:S.buildPath,_buildPathCurve:m.buildPath,pointAt:function(d){return this[p(this.shape)?"_pointAtLine":"_pointAtCurve"](d)},_pointAtLine:S.pointAt,_pointAtCurve:m.pointAt,tangentAt:function(d){var l=this.shape,a=p(l)?[l.x2-l.x1,l.y2-l.y1]:this._tangentAtCurve(d);return g.normalize(a,a)},_tangentAtCurve:m.tangentAt});R.exports=f},f5Yq:function(R,D,n){var y=n("bYtY"),g=y.isFunction;function S(m,p,f){return{seriesType:m,performRawSeries:!0,reset:function(d,l,a){var i=d.getData(),t=d.get("symbol"),o=d.get("symbolSize"),e=d.get("symbolKeepAspect"),u=d.get("symbolRotate"),r=g(t),s=g(o),c=g(u),h=r||s||c,v=!r&&t?t:p,A=s?null:o,b=c?null:b;if(i.setVisual({legendSymbol:f||v,symbol:v,symbolSize:A,symbolKeepAspect:e,symbolRotate:u}),l.isSeriesFiltered(d))return;function x(E,T){if(h){var _=d.getRawValue(T),C=d.getDataParams(T);r&&E.setItemVisual(T,"symbol",t(_,C)),s&&E.setItemVisual(T,"symbolSize",o(_,C)),c&&E.setItemVisual(T,"symbolRotate",u(_,C))}if(E.hasItemOption){var w=E.getItemModel(T),O=w.getShallow("symbol",!0),I=w.getShallow("symbolSize",!0),k=w.getShallow("symbolRotate",!0),M=w.getShallow("symbolKeepAspect",!0);O!=null&&E.setItemVisual(T,"symbol",O),I!=null&&E.setItemVisual(T,"symbolSize",I),k!=null&&E.setItemVisual(T,"symbolRotate",k),M!=null&&E.setItemVisual(T,"symbolKeepAspect",M)}}return{dataEach:i.hasItemOption||h?x:null}}}}R.exports=S},fE02:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("/IIm"),m=n("vZ6x"),p=n("b9oc"),f=n("72pK"),d=n("Kagy"),l=n("IUWy");n("3TkU");var a=d.toolbox.dataZoom,i=g.each,t="\0_ec_\0toolbox-dataZoom_";function o(v,A,b){(this._brushController=new S(b.getZr())).on("brush",g.bind(this._onBrush,this)).mount(),this._isZoomActive}o.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:g.clone(a.title)};var e=o.prototype;e.render=function(v,A,b,x){this.model=v,this.ecModel=A,this.api=b,c(v,A,this,x,b),s(v,A)},e.onclick=function(v,A,b){u[b].call(this)},e.remove=function(v,A){this._brushController.unmount()},e.dispose=function(v,A){this._brushController.dispose()};var u={zoom:function(){var v=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:v})},back:function(){this._dispatchZoomAction(p.pop(this.ecModel))}};e._onBrush=function(v,A){if(!A.isEnd||!v.length)return;var b={},x=this.ecModel;this._brushController.updateCovers([]);var E=new m(r(this.model.option),x,{include:["grid"]});E.matchOutputRanges(v,x,function(C,w,O){if(O.type!=="cartesian2d")return;var I=C.brushType;I==="rect"?(T("x",O,w[0]),T("y",O,w[1])):T({lineX:"x",lineY:"y"}[I],O,w)}),p.push(x,b),this._dispatchZoomAction(b);function T(C,w,O){var I=w.getAxis(C),k=I.model,M=_(C,k,x),U=M.findRepresentativeAxisProxy(k).getMinMaxSpan();(U.minValueSpan!=null||U.maxValueSpan!=null)&&(O=f(0,O.slice(),I.scale.getExtent(),0,U.minValueSpan,U.maxValueSpan)),M&&(b[M.id]={dataZoomId:M.id,startValue:O[0],endValue:O[1]})}function _(C,w,O){var I;return O.eachComponent({mainType:"dataZoom",subType:"select"},function(k){var M=k.getAxisModel(C,w.componentIndex);M&&(I=k)}),I}},e._dispatchZoomAction=function(v){var A=[];i(v,function(b,x){A.push(g.clone(b))}),A.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:A})};function r(v){var A={};return g.each(["xAxisIndex","yAxisIndex"],function(b){A[b]=v[b],A[b]==null&&(A[b]="all"),(A[b]===!1||A[b]==="none")&&(A[b]=[])}),A}function s(v,A){v.setIconStatus("back",p.count(A)>1?"emphasis":"normal")}function c(v,A,b,x,E){var T=b._isZoomActive;x&&x.type==="takeGlobalCursor"&&(T=x.key==="dataZoomSelect"?x.dataZoomSelectActive:!1),b._isZoomActive=T,v.setIconStatus("zoom",T?"emphasis":"normal");var _=new m(r(v.option),A,{include:["grid"]});b._brushController.setPanels(_.makePanelOpts(E,function(C){return C.xAxisDeclared&&!C.yAxisDeclared?"lineX":!C.xAxisDeclared&&C.yAxisDeclared?"lineY":"rect"})).enableBrush(T?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}l.register("dataZoom",o),y.registerPreprocessor(function(v){if(!v)return;var A=v.dataZoom||(v.dataZoom=[]);g.isArray(A)||(v.dataZoom=A=[A]);var b=v.toolbox;if(b&&(g.isArray(b)&&(b=b[0]),b&&b.feature)){var x=b.feature.dataZoom;E("xAxis",x),E("yAxis",x)}function E(_,C){if(!C)return;var w=_+"Index",O=C[w];O!=null&&O!=="all"&&!g.isArray(O)&&(O=O===!1||O==="none"?[]:[O]),T(_,function(I,k){if(O!=null&&O!=="all"&&g.indexOf(O,k)===-1)return;var M={type:"select",$fromToolbox:!0,filterMode:C.filterMode||"filter",id:t+_+k};M[w]=k,A.push(M)})}function T(_,C){var w=v[_];g.isArray(w)||(w=w?[w]:[]),i(w,C)}});var h=o;R.exports=h},fGT3:function(R,D,n){var y=n("4kuk"),g=n("Xi7e"),S=n("ebwN");function m(){this.size=0,this.__data__={hash:new y,map:new(S||g),string:new y}}R.exports=m},fNCr:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("tSko"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},"fR/l":function(R,D,n){var y=n("CH3K"),g=n("Z0cm");function S(m,p,f){var d=p(m);return g(m)?d:y(d,f(m))}R.exports=S},fUL4:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("r+aA"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},fW2E:function(R,D){var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function y(g,S,m){return n.hasOwnProperty(S)?m*=g.dpr:m}R.exports=y},"fc+c":function(R,D,n){var y=n("sS/r"),g=y.extend({type:"dataZoom",render:function(S,m,p,f){this.dataZoomModel=S,this.ecModel=m,this.api=p},getTargetCoordInfo:function(){var S=this.dataZoomModel,m=this.ecModel,p={};S.eachTargetAxis(function(d,l){var a=m.getComponent(d.axis,l);if(a){var i=a.getCoordSysModel();i&&f(i,a,p[i.mainType]||(p[i.mainType]=[]),i.componentIndex)}},this);function f(d,l,a,i){for(var t,o=0;o<a.length;o++)if(a[o].model===d){t=a[o];break}t||a.push(t={model:d,axisModels:[],coordIndex:i}),t.axisModels.push(l)}return p}});R.exports=g},fjKi:function(R,D,n){var y=n("ProS");n("Q7if"),n("jndi"),y.registerPreprocessor(function(g){g.markArea=g.markArea||{}})},fls0:function(R,D,n){var y=n("bYtY"),g=n("QBsz"),S=n("oVpE"),m=n("f5HG"),p=n("IwbS"),f=n("OELB"),d=f.round,l=["fromSymbol","toSymbol"];function a(c){return"_"+c+"Type"}function i(c,h,v){var A=h.getItemVisual(v,"color"),b=h.getItemVisual(v,c),x=h.getItemVisual(v,c+"Size");if(!b||b==="none")return;y.isArray(x)||(x=[x,x]);var E=S.createSymbol(b,-x[0]/2,-x[1]/2,x[0],x[1],A);return E.name=c,E}function t(c){var h=new m({name:"line",subPixelOptimize:!0});return o(h.shape,c),h}function o(c,h){c.x1=h[0][0],c.y1=h[0][1],c.x2=h[1][0],c.y2=h[1][1],c.percent=1;var v=h[2];v?(c.cpx1=v[0],c.cpy1=v[1]):(c.cpx1=NaN,c.cpy1=NaN)}function e(){var c=this,h=c.childOfName("fromSymbol"),v=c.childOfName("toSymbol"),A=c.childOfName("label");if(!h&&!v&&A.ignore)return;for(var b=1,x=this.parent;x;)x.scale&&(b/=x.scale[0]),x=x.parent;var E=c.childOfName("line");if(!this.__dirty&&!E.__dirty)return;var T=E.shape.percent,_=E.pointAt(0),C=E.pointAt(T),w=g.sub([],C,_);if(g.normalize(w,w),h){h.attr("position",_);var O=E.tangentAt(0);h.attr("rotation",Math.PI/2-Math.atan2(O[1],O[0])),h.attr("scale",[b*T,b*T])}if(v){v.attr("position",C);var O=E.tangentAt(1);v.attr("rotation",-Math.PI/2-Math.atan2(O[1],O[0])),v.attr("scale",[b*T,b*T])}if(!A.ignore){A.attr("position",C);var I,k,M,U,P=A.__labelDistance,X=P[0]*b,F=P[1]*b,j=T/2,O=E.tangentAt(j),K=[O[1],-O[0]],z=E.pointAt(j);K[1]>0&&(K[0]=-K[0],K[1]=-K[1]);var V=O[0]<0?-1:1;if(A.__position!=="start"&&A.__position!=="end"){var Q=-Math.atan2(O[1],O[0]);C[0]<_[0]&&(Q=Math.PI+Q),A.attr("rotation",Q)}var G;switch(A.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":G=-F,M="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":G=F,M="top";break;default:G=0,M="middle"}switch(A.__position){case"end":I=[w[0]*X+C[0],w[1]*F+C[1]],k=w[0]>.8?"left":w[0]<-.8?"right":"center",M=w[1]>.8?"top":w[1]<-.8?"bottom":"middle";break;case"start":I=[-w[0]*X+_[0],-w[1]*F+_[1]],k=w[0]>.8?"right":w[0]<-.8?"left":"center",M=w[1]>.8?"bottom":w[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[X*V+_[0],_[1]+G],k=O[0]<0?"right":"left",U=[-X*V,-G];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[z[0],z[1]+G],k="center",U=[0,-G];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-X*V+C[0],C[1]+G],k=O[0]>=0?"right":"left",U=[X*V,-G];break}A.attr({style:{textVerticalAlign:A.__verticalAlign||M,textAlign:A.__textAlign||k},position:I,scale:[b,b],origin:U})}}function u(c,h,v){p.Group.call(this),this._createLine(c,h,v)}var r=u.prototype;r.beforeUpdate=e,r._createLine=function(c,h,v){var A=c.hostModel,b=c.getItemLayout(h),x=t(b);x.shape.percent=0,p.initProps(x,{shape:{percent:1}},A,h),this.add(x);var E=new p.Text({name:"label",lineLabelOriginalOpacity:1});this.add(E),y.each(l,function(T){var _=i(T,c,h);this.add(_),this[a(T)]=c.getItemVisual(h,T)},this),this._updateCommonStl(c,h,v)},r.updateData=function(c,h,v){var A=c.hostModel,b=this.childOfName("line"),x=c.getItemLayout(h),E={shape:{}};o(E.shape,x),p.updateProps(b,E,A,h),y.each(l,function(T){var _=c.getItemVisual(h,T),C=a(T);if(this[C]!==_){this.remove(this.childOfName(T));var w=i(T,c,h);this.add(w)}this[C]=_},this),this._updateCommonStl(c,h,v)},r._updateCommonStl=function(c,h,v){var A=c.hostModel,b=this.childOfName("line"),x=v&&v.lineStyle,E=v&&v.hoverLineStyle,T=v&&v.labelModel,_=v&&v.hoverLabelModel;if(!v||c.hasItemOption){var C=c.getItemModel(h);x=C.getModel("lineStyle").getLineStyle(),E=C.getModel("emphasis.lineStyle").getLineStyle(),T=C.getModel("label"),_=C.getModel("emphasis.label")}var w=c.getItemVisual(h,"color"),O=y.retrieve3(c.getItemVisual(h,"opacity"),x.opacity,1);b.useStyle(y.defaults({strokeNoScale:!0,fill:"none",stroke:w,opacity:O},x)),b.hoverStyle=E,y.each(l,function(V){var Q=this.childOfName(V);Q&&(Q.setColor(w),Q.setStyle({opacity:O}))},this);var I=T.getShallow("show"),k=_.getShallow("show"),M=this.childOfName("label"),U,P;if((I||k)&&(U=w||"#000",P=A.getFormattedLabel(h,"normal",c.dataType),P==null)){var X=A.getRawValue(h);P=X==null?c.getName(h):isFinite(X)?d(X):X}var F=I?P:null,j=k?y.retrieve2(A.getFormattedLabel(h,"emphasis",c.dataType),P):null,K=M.style;if(F!=null||j!=null){p.setTextStyle(M.style,T,{text:F},{autoColor:U}),M.__textAlign=K.textAlign,M.__verticalAlign=K.textVerticalAlign,M.__position=T.get("position")||"middle";var z=T.get("distance");y.isArray(z)||(z=[z,z]),M.__labelDistance=z}j!=null?M.hoverStyle={text:j,textFill:_.getTextColor(!0),fontStyle:_.getShallow("fontStyle"),fontWeight:_.getShallow("fontWeight"),fontSize:_.getShallow("fontSize"),fontFamily:_.getShallow("fontFamily")}:M.hoverStyle={text:null},M.ignore=!I&&!k,p.setHoverStyle(this)},r.highlight=function(){this.trigger("emphasis")},r.downplay=function(){this.trigger("normal")},r.updateLayout=function(c,h){this.setLinePoints(c.getItemLayout(h))},r.setLinePoints=function(c){var h=this.childOfName("line");o(h.shape,c),h.dirty()},y.inherits(u,p.Group);var s=u;R.exports=s},fmMI:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=S.each,p=S.filter,f=S.map,d=S.isArray,l=S.indexOf,a=S.isObject,i=S.isString,t=S.createHashMap,o=S.assert,e=S.clone,u=S.merge,r=S.extend,s=S.mixin,c=n("4NO4"),h=n("Qxkt"),v=n("bLfw"),A=n("iXHM"),b=n("5Hur"),x=n("D5nY"),E=x.resetSourceDefaulter,T="\0_ec_inner",_=h.extend({init:function(F,j,K,z){K=K||{},this.option=null,this._theme=new h(K),this._optionManager=z},setOption:function(F,j){o(!(T in F),"please use chart.getOption()"),this._optionManager.setOption(F,j),this.resetOption(null)},resetOption:function(F){var j=!1,K=this._optionManager;if(!F||F==="recreate"){var z=K.mountOption(F==="recreate");!this.option||F==="recreate"?O.call(this,z):(this.restoreData(),this.mergeOption(z)),j=!0}if((F==="timeline"||F==="media")&&this.restoreData(),!F||F==="recreate"||F==="timeline"){var V=K.getTimelineOption(this);V&&(this.mergeOption(V),j=!0)}if(!F||F==="recreate"||F==="media"){var Q=K.getMediaOption(this,this._api);Q.length&&m(Q,function(G){this.mergeOption(G,j=!0)},this)}return j},mergeOption:function(F){var j=this.option,K=this._componentsMap,z=[];E(this),m(F,function(Q,G){if(Q==null)return;v.hasClass(G)?G&&z.push(G):j[G]=j[G]==null?e(Q):u(j[G],Q,!0)}),v.topologicalTravel(z,v.getAllClassMainTypes(),V,this);function V(Q,G){var te=c.normalizeToArray(F[Q]),q=c.mappingToExists(K.get(Q),te);c.makeIdAndName(q),m(q,function(re,we){var Oe=re.option;a(Oe)&&(re.keyInfo.mainType=Q,re.keyInfo.subType=k(Q,Oe,re.exist))});var se=I(K,G);j[Q]=[],K.set(Q,[]),m(q,function(re,we){var Oe=re.exist,Me=re.option;if(o(a(Me)||Oe,"Empty component definition"),!Me)Oe.mergeOption({},this),Oe.optionUpdated({},!1);else{var Qe=v.getClass(Q,re.keyInfo.subType,!0);if(Oe&&Oe.constructor===Qe)Oe.name=re.keyInfo.name,Oe.mergeOption(Me,this),Oe.optionUpdated(Me,!1);else{var Ve=r({dependentModels:se,componentIndex:we},re.keyInfo);Oe=new Qe(Me,this,this,Ve),r(Oe,Ve),Oe.init(Me,this,this,Ve),Oe.optionUpdated(null,!0)}}K.get(Q)[we]=Oe,j[Q][we]=Oe.option},this),Q==="series"&&M(this,K.get("series"))}this._seriesIndicesMap=t(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var F=e(this.option);return m(F,function(j,K){if(v.hasClass(K)){for(var j=c.normalizeToArray(j),z=j.length-1;z>=0;z--)c.isIdInner(j[z])&&j.splice(z,1);F[K]=j}}),delete F[T],F},getTheme:function(){return this._theme},getComponent:function(F,j){var K=this._componentsMap.get(F);if(K)return K[j||0]},queryComponents:function(F){var j=F.mainType;if(!j)return[];var K=F.index,z=F.id,V=F.name,Q=this._componentsMap.get(j);if(!Q||!Q.length)return[];var G;if(K!=null)d(K)||(K=[K]),G=p(f(K,function(se){return Q[se]}),function(se){return!!se});else if(z!=null){var te=d(z);G=p(Q,function(se){return te&&l(z,se.id)>=0||!te&&se.id===z})}else if(V!=null){var q=d(V);G=p(Q,function(se){return q&&l(V,se.name)>=0||!q&&se.name===V})}else G=Q.slice();return U(G,F)},findComponents:function(F){var j=F.query,K=F.mainType,z=Q(j),V=z?this.queryComponents(z):this._componentsMap.get(K);return G(U(V,F));function Q(te){var q=K+"Index",se=K+"Id",re=K+"Name";return te&&(te[q]!=null||te[se]!=null||te[re]!=null)?{mainType:K,index:te[q],id:te[se],name:te[re]}:null}function G(te){return F.filter?p(te,F.filter):te}},eachComponent:function(F,j,K){var z=this._componentsMap;if(typeof F=="function")K=j,j=F,z.each(function(Q,G){m(Q,function(te,q){j.call(K,G,te,q)})});else if(i(F))m(z.get(F),j,K);else if(a(F)){var V=this.findComponents(F);m(V,j,K)}},getSeriesByName:function(F){var j=this._componentsMap.get("series");return p(j,function(K){return K.name===F})},getSeriesByIndex:function(F){return this._componentsMap.get("series")[F]},getSeriesByType:function(F){var j=this._componentsMap.get("series");return p(j,function(K){return K.subType===F})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(F,j){P(this),m(this._seriesIndices,function(K){var z=this._componentsMap.get("series")[K];F.call(j,z,K)},this)},eachRawSeries:function(F,j){m(this._componentsMap.get("series"),F,j)},eachSeriesByType:function(F,j,K){P(this),m(this._seriesIndices,function(z){var V=this._componentsMap.get("series")[z];V.subType===F&&j.call(K,V,z)},this)},eachRawSeriesByType:function(F,j,K){return m(this.getSeriesByType(F),j,K)},isSeriesFiltered:function(F){return P(this),this._seriesIndicesMap.get(F.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(F,j){P(this);var K=p(this._componentsMap.get("series"),F,j);M(this,K)},restoreData:function(F){var j=this._componentsMap;M(this,j.get("series"));var K=[];j.each(function(z,V){K.push(V)}),v.topologicalTravel(K,v.getAllClassMainTypes(),function(z,V){m(j.get(z),function(Q){(z!=="series"||!C(Q,F))&&Q.restoreData()})})}});function C(F,j){if(j){var K=j.seiresIndex,z=j.seriesId,V=j.seriesName;return K!=null&&F.componentIndex!==K||z!=null&&F.id!==z||V!=null&&F.name!==V}}function w(F,j){var K=F.color&&!F.colorLayer;m(j,function(z,V){if(V==="colorLayer"&&K)return;v.hasClass(V)||(typeof z=="object"?F[V]=F[V]?u(F[V],z,!1):e(z):F[V]==null&&(F[V]=z))})}function O(F){F=F,this.option={},this.option[T]=1,this._componentsMap=t({series:[]}),this._seriesIndices,this._seriesIndicesMap,w(F,this._theme.option),u(F,A,!1),this.mergeOption(F)}function I(F,j){d(j)||(j=j?[j]:[]);var K={};return m(j,function(z){K[z]=(F.get(z)||[]).slice()}),K}function k(F,j,K){var z=j.type?j.type:K?K.subType:v.determineSubType(F,j);return z}function M(F,j){F._seriesIndicesMap=t(F._seriesIndices=f(j,function(K){return K.componentIndex})||[])}function U(F,j){return j.hasOwnProperty("subType")?p(F,function(K){return K.subType===j.subType}):F}function P(F){}s(_,b);var X=_;R.exports=X},fmRc:function(R,D,n){var y=n("Xi7e"),g=n("77Zs"),S=n("L8xA"),m=n("gCq4"),p=n("VaNO"),f=n("0Cz8");function d(l){var a=this.__data__=new y(l);this.size=a.size}d.prototype.clear=g,d.prototype.delete=S,d.prototype.get=m,d.prototype.has=p,d.prototype.set=f,R.exports=d},ftKO:function(R,D){var n="__lodash_hash_undefined__";function y(g){return this.__data__.set(g,n),this}R.exports=y},fu2T:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("3dVZ"),m=n.n(S)},fyUT:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("q1tI"),f=n.n(p),d=n("TSYQ"),l=n.n(d),a=n("Ff2n"),i=n("rePB"),t=n("1OyB"),o=n("vuIU"),e=n("Ji7U"),u=n("md7G"),r=n("foSv"),s=n("4IlW");function c(G,te){var q=Object.keys(G);if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(G);te&&(se=se.filter(function(re){return Object.getOwnPropertyDescriptor(G,re).enumerable})),q.push.apply(q,se)}return q}function h(G){for(var te=1;te<arguments.length;te++){var q=arguments[te]!=null?arguments[te]:{};te%2?c(Object(q),!0).forEach(function(se){Object(i.a)(G,se,q[se])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(q)):c(Object(q)).forEach(function(se){Object.defineProperty(G,se,Object.getOwnPropertyDescriptor(q,se))})}return G}function v(G){var te=A();return function(){var se=Object(r.a)(G),re;if(te){var we=Object(r.a)(this).constructor;re=Reflect.construct(se,arguments,we)}else re=se.apply(this,arguments);return Object(u.a)(this,re)}}function A(){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(G){return!1}}function b(){}function x(G){G.preventDefault()}var E=function(te){return te.replace(/[^\w.-]+/g,"")},T=200,_=600,C=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function(te){return te!=null},O=function(te,q){return q===te||typeof q=="number"&&typeof te=="number"&&isNaN(q)&&isNaN(te)},I=function(G){Object(e.a)(q,G);var te=v(q);function q(se){var re;Object(t.a)(this,q),re=te.call(this,se),re.onKeyDown=function(Me){var Qe=re.props,Ve=Qe.onKeyDown,dt=Qe.onPressEnter;if(Me.keyCode===s.a.UP){var Fe=re.getRatio(Me);re.up(Me,Fe,null),re.stop()}else if(Me.keyCode===s.a.DOWN){var ue=re.getRatio(Me);re.down(Me,ue,null),re.stop()}else Me.keyCode===s.a.ENTER&&dt&&dt(Me);if(re.recordCursorPosition(),re.lastKeyCode=Me.keyCode,Ve){for(var et=arguments.length,he=new Array(et>1?et-1:0),J=1;J<et;J++)he[J-1]=arguments[J];Ve.apply(void 0,[Me].concat(he))}},re.onKeyUp=function(Me){var Qe=re.props.onKeyUp;if(re.stop(),re.recordCursorPosition(),Qe){for(var Ve=arguments.length,dt=new Array(Ve>1?Ve-1:0),Fe=1;Fe<Ve;Fe++)dt[Fe-1]=arguments[Fe];Qe.apply(void 0,[Me].concat(dt))}},re.onChange=function(Me){var Qe=re.props.onChange;re.state.focused&&(re.inputting=!0),re.rawInput=re.props.parser(re.getValueFromEvent(Me)),re.setState({inputValue:re.rawInput}),Qe(re.toNumber(re.rawInput))},re.onMouseUp=function(){var Me=re.props.onMouseUp;re.recordCursorPosition(),Me&&Me.apply(void 0,arguments)},re.onFocus=function(){var Me;re.setState({focused:!0}),(Me=re.props).onFocus.apply(Me,arguments)},re.onBlur=function(){var Me=re.props.onBlur;re.inputting=!1,re.setState({focused:!1});var Qe=re.getCurrentValidValue(re.state.inputValue),Ve=re.setValue(Qe,b);if(Me){var dt=re.input.value,Fe=re.getInputDisplayValue({focus:!1,value:Ve});re.input.value=Fe&&Number(Fe),Me.apply(void 0,arguments),re.input.value=dt}},re.getRatio=function(Me){var Qe=1;return Me.metaKey||Me.ctrlKey?Qe=.1:Me.shiftKey&&(Qe=10),Qe},re.getFullNum=function(Me){return isNaN(Me)?Me:/e/i.test(String(Me))?Number(Me).toFixed(18).replace(/\.?0+$/,""):Me},re.getPrecision=function(Me){if(w(re.props.precision))return re.props.precision;var Qe=String(Me);if(Qe.indexOf("e-")>=0)return parseInt(Qe.slice(Qe.indexOf("e-")+2),10);var Ve=0;return Qe.indexOf(".")>=0&&(Ve=Qe.length-Qe.indexOf(".")-1),Ve},re.getInputDisplayValue=function(Me){var Qe=Me||re.state,Ve=Qe.focused,dt=Qe.inputValue,Fe=Qe.value,ue;Ve?ue=dt:ue=re.toPrecisionAsStep(Fe),ue==null&&(ue="");var et=re.formatWrapper(ue);return w(re.props.decimalSeparator)&&(et=et.toString().replace(".",re.props.decimalSeparator)),et},re.recordCursorPosition=function(){try{re.cursorStart=re.input.selectionStart,re.cursorEnd=re.input.selectionEnd,re.currentValue=re.input.value,re.cursorBefore=re.input.value.substring(0,re.cursorStart),re.cursorAfter=re.input.value.substring(re.cursorEnd)}catch(Me){}},re.restoreByAfter=function(Me){if(Me===void 0)return!1;var Qe=re.input.value,Ve=Qe.lastIndexOf(Me);if(Ve===-1)return!1;var dt=re.cursorBefore.length;return re.lastKeyCode===s.a.DELETE&&re.cursorBefore.charAt(dt-1)===Me[0]?(re.fixCaret(dt,dt),!0):Ve+Me.length===Qe.length?(re.fixCaret(Ve,Ve),!0):!1},re.partRestoreByAfter=function(Me){return Me===void 0?!1:Array.prototype.some.call(Me,function(Qe,Ve){var dt=Me.substring(Ve);return re.restoreByAfter(dt)})},re.isNotCompleteNumber=function(Me){return isNaN(Me)||Me===""||Me===null||Me&&Me.toString().indexOf(".")===Me.toString().length-1},re.stop=function(){re.autoStepTimer&&clearTimeout(re.autoStepTimer)},re.down=function(Me,Qe,Ve){re.pressingUpOrDown=!0,re.step("down",Me,Qe,Ve)},re.up=function(Me,Qe,Ve){re.pressingUpOrDown=!0,re.step("up",Me,Qe,Ve)},re.saveInput=function(Me){re.input=Me};var we=se.value;we===void 0&&(we=se.defaultValue),re.state={focused:se.autoFocus};var Oe=re.getValidValue(re.toNumber(we));return re.state=h(h({},re.state),{},{inputValue:re.toPrecisionAsStep(Oe),value:Oe}),re}return Object(o.a)(q,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(re){var we=this.props,Oe=we.value,Me=we.onChange,Qe=we.max,Ve=we.min,dt=this.state.focused;if(re){if(!O(re.value,Oe)||!O(re.max,Qe)||!O(re.min,Ve)){var Fe=dt?Oe:this.getValidValue(Oe),ue;this.pressingUpOrDown?ue=Fe:this.inputting?ue=this.rawInput:ue=this.toPrecisionAsStep(Fe),this.setState({value:Fe,inputValue:ue})}var et="value"in this.props?Oe:this.state.value;"max"in this.props&&re.max!==Qe&&typeof et=="number"&&et>Qe&&Me&&Me(Qe),"min"in this.props&&re.min!==Ve&&typeof et=="number"&&et<Ve&&Me&&Me(Ve)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var he=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===s.a.BACKSPACE?he=this.cursorStart-1:this.lastKeyCode===s.a.DELETE&&(he=this.cursorStart):he=this.input.value.length,this.fixCaret(he,he)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case s.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case s.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(J){}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(re){var we=re;return we===""?we="":this.isNotCompleteNumber(parseFloat(we))?we=this.state.value:we=this.getValidValue(we),this.toNumber(we)}},{key:"getValueFromEvent",value:function(re){var we=re.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(we=we.replace(this.props.decimalSeparator,".")),we}},{key:"getValidValue",value:function(re){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,Me=parseFloat(re);return isNaN(Me)?re:(Me<we&&(Me=we),Me>Oe&&(Me=Oe),Me)}},{key:"setValue",value:function(re,we){var Oe=this.props.precision,Me=this.isNotCompleteNumber(parseFloat(re))?null:parseFloat(re),Qe=this.state.value,Ve=Qe===void 0?null:Qe,dt=this.state.inputValue,Fe=dt===void 0?null:dt,ue=typeof Me=="number"?Me.toFixed(Oe):"".concat(Me),et=Me!==Ve||ue!=="".concat(Fe);return"value"in this.props?(Fe=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Fe},we)):this.setState({value:Me,inputValue:this.toPrecisionAsStep(re)},we),et&&this.props.onChange(Me),Me}},{key:"getMaxPrecision",value:function(re){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=this.props,Me=Oe.precision,Qe=Oe.step;if(w(Me))return Me;var Ve=this.getPrecision(we),dt=this.getPrecision(Qe),Fe=this.getPrecision(re);return re?Math.max(Fe,Ve+dt):Ve+dt}},{key:"getPrecisionFactor",value:function(re){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=this.getMaxPrecision(re,we);return Math.pow(10,Oe)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(re){return this.props.formatter?this.props.formatter(re):re}},{key:"toPrecisionAsStep",value:function(re){if(this.isNotCompleteNumber(re)||re==="")return re;var we=Math.abs(this.getMaxPrecision(re));return isNaN(we)?re.toString():Number(re).toFixed(we)}},{key:"toNumber",value:function(re){var we=this.props.precision,Oe=this.state.focused,Me=re&&re.length>16&&Oe;return this.isNotCompleteNumber(re)||Me?re:w(we)?Math.round(re*Math.pow(10,we))/Math.pow(10,we):Number(re)}},{key:"upStep",value:function(re,we){var Oe=this.props.step,Me=this.getPrecisionFactor(re,we),Qe=Math.abs(this.getMaxPrecision(re,we)),Ve=((Me*re+Me*Oe*we)/Me).toFixed(Qe);return this.toNumber(Ve)}},{key:"downStep",value:function(re,we){var Oe=this.props.step,Me=this.getPrecisionFactor(re,we),Qe=Math.abs(this.getMaxPrecision(re,we)),Ve=((Me*re-Me*Oe*we)/Me).toFixed(Qe);return this.toNumber(Ve)}},{key:"step",value:function(re,we){var Oe=this,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Qe=arguments.length>3?arguments[3]:void 0;this.stop(),we&&(we.persist(),we.preventDefault());var Ve=this.props;if(Ve.disabled)return;var dt=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(dt))return;var Fe=this["".concat(re,"Step")](dt,Me),ue=Fe>Ve.max||Fe<Ve.min;if(Fe>Ve.max?Fe=Ve.max:Fe<Ve.min&&(Fe=Ve.min),this.setValue(Fe,null),this.setState({focused:!0},function(){Oe.pressingUpOrDown=!1}),ue)return;this.autoStepTimer=setTimeout(function(){Oe[re](we,Me,!0)},Qe?T:_)}},{key:"fixCaret",value:function(re,we){if(re===void 0||we===void 0||!this.input||!this.input.value)return;try{var Oe=this.input.selectionStart,Me=this.input.selectionEnd;(re!==Oe||we!==Me)&&this.input.setSelectionRange(re,we)}catch(Qe){}}},{key:"render",value:function(){var re,we=this.props,Oe=we.prefixCls,Me=we.disabled,Qe=we.readOnly,Ve=we.useTouch,dt=we.autoComplete,Fe=we.upHandler,ue=we.downHandler,et=we.className,he=we.max,J=we.min,Y=we.style,$=we.title,de=we.onMouseEnter,be=we.onMouseLeave,Te=we.onMouseOver,Be=we.onMouseOut,fe=we.required,xe=we.onClick,ke=we.tabIndex,nt=we.type,Ct=we.placeholder,pt=we.id,He=we.inputMode,nr=we.pattern,ht=we.step,Gt=we.maxLength,pr=we.autoFocus,Qt=we.name,Ht=we.onPaste,Jt=we.onInput,Ge=Object(a.a)(we,["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"]),pe=this.state,oe=pe.value,ct=pe.focused,qe=l()(Oe,(re={},Object(i.a)(re,et,!!et),Object(i.a)(re,"".concat(Oe,"-disabled"),Me),Object(i.a)(re,"".concat(Oe,"-focused"),ct),re)),me={};Object.keys(Ge).forEach(function(tt){(tt.substr(0,5)==="data-"||tt.substr(0,5)==="aria-"||tt==="role")&&(me[tt]=Ge[tt])});var Kt=!Qe&&!Me,vr=this.getInputDisplayValue(null),bt=(oe||oe===0)&&(isNaN(oe)||Number(oe)>=he),or=(oe||oe===0)&&(isNaN(oe)||Number(oe)<=J),_t=bt||Me||Qe,jt=or||Me||Qe,ut=l()("".concat(Oe,"-handler"),"".concat(Oe,"-handler-up"),Object(i.a)({},"".concat(Oe,"-handler-up-disabled"),_t)),St=l()("".concat(Oe,"-handler"),"".concat(Oe,"-handler-down"),Object(i.a)({},"".concat(Oe,"-handler-down-disabled"),jt)),mt=Ve?{onTouchStart:_t?b:this.up,onTouchEnd:this.stop}:{onMouseDown:_t?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},lt=Ve?{onTouchStart:jt?b:this.down,onTouchEnd:this.stop}:{onMouseDown:jt?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return f.a.createElement("div",{className:qe,style:Y,title:$,onMouseEnter:de,onMouseLeave:be,onMouseOver:Te,onMouseOut:Be,onFocus:function(){return null},onBlur:function(){return null}},f.a.createElement("div",{className:"".concat(Oe,"-handler-wrap")},f.a.createElement("span",Object.assign({unselectable:"on"},mt,{role:"button","aria-label":"Increase Value","aria-disabled":_t,className:ut}),Fe||f.a.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-up-inner"),onClick:x})),f.a.createElement("span",Object.assign({unselectable:"on"},lt,{role:"button","aria-label":"Decrease Value","aria-disabled":jt,className:St}),ue||f.a.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-down-inner"),onClick:x}))),f.a.createElement("div",{className:"".concat(Oe,"-input-wrap")},f.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":J,"aria-valuemax":he,"aria-valuenow":oe,required:fe,type:nt,placeholder:Ct,onPaste:Ht,onClick:xe,onMouseUp:this.onMouseUp,className:"".concat(Oe,"-input"),tabIndex:ke,autoComplete:dt,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Kt?this.onKeyDown:b,onKeyUp:Kt?this.onKeyUp:b,autoFocus:pr,maxLength:Gt,readOnly:Qe,disabled:Me,max:he,min:J,step:ht,name:Qt,title:$,id:pt,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(vr),pattern:nr,inputMode:He,onInput:Jt},me))))}}]),q}(f.a.Component);I.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:C,min:-C,step:1,style:{},onChange:b,onKeyDown:b,onPressEnter:b,onFocus:b,onBlur:b,parser:E,required:!1,autoComplete:"off"};var k=I,M=k,U=n("FH2Y"),P=n.n(U),X=n("HQEm"),F=n.n(X),j=n("H84U"),K=n("3Nzz"),z=function(G,te){var q={};for(var se in G)Object.prototype.hasOwnProperty.call(G,se)&&te.indexOf(se)<0&&(q[se]=G[se]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,se=Object.getOwnPropertySymbols(G);re<se.length;re++)te.indexOf(se[re])<0&&Object.prototype.propertyIsEnumerable.call(G,se[re])&&(q[se[re]]=G[se[re]]);return q},V=p.forwardRef(function(G,te){var q=function(re){var we=re.getPrefixCls,Oe=re.direction,Me=G.className,Qe=G.size,Ve=G.prefixCls,dt=G.readOnly,Fe=z(G,["className","size","prefixCls","readOnly"]),ue=we("input-number",Ve),et=p.createElement(P.a,{className:"".concat(ue,"-handler-up-inner")}),he=p.createElement(F.a,{className:"".concat(ue,"-handler-down-inner")});return p.createElement(K.b.Consumer,null,function(J){var Y,$=Qe||J,de=l()((Y={},m()(Y,"".concat(ue,"-lg"),$==="large"),m()(Y,"".concat(ue,"-sm"),$==="small"),m()(Y,"".concat(ue,"-rtl"),Oe==="rtl"),m()(Y,"".concat(ue,"-readonly"),dt),Y),Me);return p.createElement(M,g()({ref:te,className:de,upHandler:et,downHandler:he,prefixCls:ue,readOnly:dt},Fe))})};return p.createElement(j.a,null,q)});V.defaultProps={step:1};var Q=D.a=V},g0SD:function(R,D,n){var y=n("bYtY"),g=n("9wZj"),S=n("OELB"),m=n("YXkt"),p=n("kj2x"),f=n("iPDy");function d(i,t,o){var e=t.coordinateSystem;i.each(function(u){var r=i.getItemModel(u),s,c=S.parsePercent(r.get("x"),o.getWidth()),h=S.parsePercent(r.get("y"),o.getHeight());if(!isNaN(c)&&!isNaN(h))s=[c,h];else if(t.getMarkerPosition)s=t.getMarkerPosition(i.getValues(i.dimensions,u));else if(e){var v=i.get(e.dimensions[0],u),A=i.get(e.dimensions[1],u);s=e.dataToPoint([v,A])}isNaN(c)||(s[0]=c),isNaN(h)||(s[1]=h),i.setItemLayout(u,s)})}var l=f.extend({type:"markPoint",updateTransform:function(i,t,o){t.eachSeries(function(e){var u=e.markPointModel;u&&(d(u.getData(),e,o),this.markerGroupMap.get(e.id).updateLayout(u))},this)},renderSeries:function(i,t,o,e){var u=i.coordinateSystem,r=i.id,s=i.getData(),c=this.markerGroupMap,h=c.get(r)||c.set(r,new g),v=a(u,i,t);t.setData(v),d(t.getData(),i,e),v.each(function(A){var b=v.getItemModel(A),x=b.getShallow("symbol"),E=b.getShallow("symbolSize"),T=y.isFunction(x),_=y.isFunction(E);if(T||_){var C=t.getRawValue(A),w=t.getDataParams(A);T&&(x=x(C,w)),_&&(E=E(C,w))}v.setItemVisual(A,{symbol:x,symbolSize:E,color:b.get("itemStyle.color")||s.getVisual("color")})}),h.updateData(v),this.group.add(h.group),v.eachItemGraphicEl(function(A){A.traverse(function(b){b.dataModel=t})}),h.__keep=!0,h.group.silent=t.get("silent")||i.get("silent")}});function a(i,t,o){var e;i?e=y.map(i&&i.dimensions,function(s){var c=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return y.defaults({name:s},c)}):e=[{name:"value",type:"float"}];var u=new m(e,o),r=y.map(o.get("data"),y.curry(p.dataTransform,t));return i&&(r=y.filter(r,y.curry(p.dataFilter,i))),u.initData(r,null,i?p.dimValueGetter:function(s){return s.value}),u}R.exports=l},g7p0:function(R,D,n){var y=n("bYtY"),g=n("bLfw"),S=n("+TT/"),m=S.getLayoutParams,p=S.sizeCalculable,f=S.mergeLayoutParam,d=g.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(i,t,o,e){var u=m(i);d.superApply(this,"init",arguments),l(i,u)},mergeOption:function(i,t){d.superApply(this,"mergeOption",arguments),l(this.option,i)}});function l(i,t){var o=i.cellSize;y.isArray(o)?o.length===1&&(o[1]=o[0]):o=i.cellSize=[o,o];var e=y.map([0,1],function(u){return p(t,u)&&(o[u]="auto"),o[u]!=null&&o[u]!=="auto"});f(i,t,{type:"box",ignoreSize:e})}var a=d;R.exports=a},g9YV:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("pED+"),m=n.n(S),p=n("+L6B"),f=n("R9oj"),d=n("7Kak"),l=n("sRBo"),a=n("qVdP"),i=n("T2oS"),t=n("DjyN"),o=n("5Dmo")},gCq4:function(R,D){function n(y){return this.__data__.get(y)}R.exports=n},gIYZ:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={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"};D.default=y},gK9i:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("q1tI"),f=n.n(p),d=n("TSYQ"),l=n.n(d),a=n("Gytx"),i=n.n(a),t=n("Zm9Q"),o=function(){function _t(jt,ut){for(var St=0;St<ut.length;St++){var mt=ut[St];mt.enumerable=mt.enumerable||!1,mt.configurable=!0,"value"in mt&&(mt.writable=!0),Object.defineProperty(jt,mt.key,mt)}}return function(jt,ut,St){return ut&&_t(jt.prototype,ut),St&&_t(jt,St),jt}}();function e(_t,jt,ut){return jt in _t?Object.defineProperty(_t,jt,{value:ut,enumerable:!0,configurable:!0,writable:!0}):_t[jt]=ut,_t}function u(_t,jt){if(!(_t instanceof jt))throw new TypeError("Cannot call a class as a function")}function r(_t,jt){if(!_t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return jt&&(typeof jt=="object"||typeof jt=="function")?jt:_t}function s(_t,jt){if(typeof jt!="function"&&jt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof jt);_t.prototype=Object.create(jt&&jt.prototype,{constructor:{value:_t,enumerable:!1,writable:!0,configurable:!0}}),jt&&(Object.setPrototypeOf?Object.setPrototypeOf(_t,jt):_t.__proto__=jt)}var c=function(_t){s(jt,_t);function jt(){return u(this,jt),r(this,(jt.__proto__||Object.getPrototypeOf(jt)).apply(this,arguments))}return o(jt,[{key:"shouldComponentUpdate",value:function(St){return this.props.forceRender||!i()(this.props,St)}},{key:"render",value:function(){var St;if(this._isActived=this.props.forceRender||this._isActived||this.props.isActive,!this._isActived)return null;var mt=this.props,lt=mt.prefixCls,tt=mt.isActive,Cr=mt.children,nn=mt.destroyInactivePanel,mn=mt.forceRender,Bn=mt.role,oi=l()(lt+"-content",(St={},e(St,lt+"-content-active",tt),e(St,lt+"-content-inactive",!tt),St)),wn=!mn&&!tt&&nn?null:f.a.createElement("div",{className:lt+"-content-box"},Cr);return f.a.createElement("div",{className:oi,role:Bn},wn)}}]),jt}(p.Component),h=c,v=function(jt){var ut=jt.prototype;if(!ut||!ut.isReactComponent)throw new Error("Can only polyfill class components");return typeof ut.componentWillReceiveProps!="function"||f.a.Profiler&&(ut.UNSAFE_componentWillReceiveProps=ut.componentWillReceiveProps,delete ut.componentWillReceiveProps),jt},A=v;function b(_t){var jt=[];return f.a.Children.forEach(_t,function(ut){jt.push(ut)}),jt}function x(_t,jt){var ut=null;return _t&&_t.forEach(function(St){if(ut)return;St&&St.key===jt&&(ut=St)}),ut}function E(_t,jt,ut){var St=null;return _t&&_t.forEach(function(mt){if(mt&&mt.key===jt&&mt.props[ut]){if(St)throw new Error("two child with same key for <rc-animate> children");St=mt}}),St}function T(_t,jt,ut){var St=0;return _t&&_t.forEach(function(mt){if(St)return;St=mt&&mt.key===jt&&!mt.props[ut]}),St}function _(_t,jt,ut){var St=_t.length===jt.length;return St&&_t.forEach(function(mt,lt){var tt=jt[lt];mt&&tt&&((mt&&!tt||!mt&&tt||(mt.key!==tt.key||ut&&mt.props[ut]!==tt.props[ut]))&&(St=!1))}),St}function C(_t,jt){var ut=[],St={},mt=[];return _t.forEach(function(lt){lt&&x(jt,lt.key)?mt.length&&(St[lt.key]=mt,mt=[]):mt.push(lt)}),jt.forEach(function(lt){lt&&Object.prototype.hasOwnProperty.call(St,lt.key)&&(ut=ut.concat(St[lt.key])),ut.push(lt)}),ut=ut.concat(mt),ut}var w=n("i8i4"),O=n.n(w),I=n("UwPn"),k={isAppearSupported:function(jt){return jt.transitionName&&jt.transitionAppear||jt.animation.appear},isEnterSupported:function(jt){return jt.transitionName&&jt.transitionEnter||jt.animation.enter},isLeaveSupported:function(jt){return jt.transitionName&&jt.transitionLeave||jt.animation.leave},allowAppearCallback:function(jt){return jt.transitionAppear||jt.animation.appear},allowEnterCallback:function(jt){return jt.transitionEnter||jt.animation.enter},allowLeaveCallback:function(jt){return jt.transitionLeave||jt.animation.leave}},M=k,U=function(){function _t(jt,ut){for(var St=0;St<ut.length;St++){var mt=ut[St];mt.enumerable=mt.enumerable||!1,mt.configurable=!0,"value"in mt&&(mt.writable=!0),Object.defineProperty(jt,mt.key,mt)}}return function(jt,ut,St){return ut&&_t(jt.prototype,ut),St&&_t(jt,St),jt}}();function P(_t,jt){if(!(_t instanceof jt))throw new TypeError("Cannot call a class as a function")}function X(_t,jt){if(!_t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return jt&&(typeof jt=="object"||typeof jt=="function")?jt:_t}function F(_t,jt){if(typeof jt!="function"&&jt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof jt);_t.prototype=Object.create(jt&&jt.prototype,{constructor:{value:_t,enumerable:!1,writable:!0,configurable:!0}}),jt&&(Object.setPrototypeOf?Object.setPrototypeOf(_t,jt):_t.__proto__=jt)}var j={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},K=function(_t){F(jt,_t);function jt(){return P(this,jt),X(this,(jt.__proto__||Object.getPrototypeOf(jt)).apply(this,arguments))}return U(jt,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(St){M.isEnterSupported(this.props)?this.transition("enter",St):St()}},{key:"componentWillAppear",value:function(St){M.isAppearSupported(this.props)?this.transition("appear",St):St()}},{key:"componentWillLeave",value:function(St){M.isLeaveSupported(this.props)?this.transition("leave",St):St()}},{key:"transition",value:function(St,mt){var lt=this,tt=O.a.findDOMNode(this),Cr=this.props,nn=Cr.transitionName,mn=typeof nn=="object";this.stop();var Bn=function(){lt.stopper=null,mt()};if((I.b||!Cr.animation[St])&&nn&&Cr[j[St]]){var oi=mn?nn[St]:nn+"-"+St,wn=oi+"-active";mn&&nn[St+"Active"]&&(wn=nn[St+"Active"]),this.stopper=Object(I.a)(tt,{name:oi,active:wn},Bn)}else this.stopper=Cr.animation[St](tt,Bn)}},{key:"stop",value:function(){var St=this.stopper;St&&(this.stopper=null,St.stop())}},{key:"render",value:function(){return this.props.children}}]),jt}(f.a.Component),z=K,V=Object.assign||function(_t){for(var jt=1;jt<arguments.length;jt++){var ut=arguments[jt];for(var St in ut)Object.prototype.hasOwnProperty.call(ut,St)&&(_t[St]=ut[St])}return _t},Q=function(){function _t(jt,ut){for(var St=0;St<ut.length;St++){var mt=ut[St];mt.enumerable=mt.enumerable||!1,mt.configurable=!0,"value"in mt&&(mt.writable=!0),Object.defineProperty(jt,mt.key,mt)}}return function(jt,ut,St){return ut&&_t(jt.prototype,ut),St&&_t(jt,St),jt}}();function G(_t,jt,ut){return jt in _t?Object.defineProperty(_t,jt,{value:ut,enumerable:!0,configurable:!0,writable:!0}):_t[jt]=ut,_t}function te(_t,jt){if(!(_t instanceof jt))throw new TypeError("Cannot call a class as a function")}function q(_t,jt){if(!_t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return jt&&(typeof jt=="object"||typeof jt=="function")?jt:_t}function se(_t,jt){if(typeof jt!="function"&&jt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof jt);_t.prototype=Object.create(jt&&jt.prototype,{constructor:{value:_t,enumerable:!1,writable:!0,configurable:!0}}),jt&&(Object.setPrototypeOf?Object.setPrototypeOf(_t,jt):_t.__proto__=jt)}var re="rc_animate_"+Date.now();function we(_t){var jt=_t.children;return f.a.isValidElement(jt)&&!jt.key?f.a.cloneElement(jt,{key:re}):jt}function Oe(){}var Me=function(_t){se(jt,_t);function jt(ut){te(this,jt);var St=q(this,(jt.__proto__||Object.getPrototypeOf(jt)).call(this,ut));return Qe.call(St),St.currentlyAnimatingKeys={},St.keysToEnter=[],St.keysToLeave=[],St.state={children:b(we(ut))},St.childrenRefs={},St}return Q(jt,[{key:"componentDidMount",value:function(){var St=this,mt=this.props.showProp,lt=this.state.children;mt&&(lt=lt.filter(function(tt){return!!tt.props[mt]})),lt.forEach(function(tt){tt&&St.performAppear(tt.key)})}},{key:"componentWillReceiveProps",value:function(St){var mt=this;this.nextProps=St;var lt=b(we(St)),tt=this.props;tt.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(oi){mt.stop(oi)});var Cr=tt.showProp,nn=this.currentlyAnimatingKeys,mn=tt.exclusive?b(we(tt)):this.state.children,Bn=[];Cr?(mn.forEach(function(oi){var wn=oi&&x(lt,oi.key),Rn=void 0;(!wn||!wn.props[Cr])&&oi.props[Cr]?Rn=f.a.cloneElement(wn||oi,G({},Cr,!0)):Rn=wn,Rn&&Bn.push(Rn)}),lt.forEach(function(oi){(!oi||!x(mn,oi.key))&&Bn.push(oi)})):Bn=C(mn,lt),this.setState({children:Bn}),lt.forEach(function(oi){var wn=oi&&oi.key;if(oi&&nn[wn])return;var Rn=oi&&x(mn,wn);if(Cr){var Zt=oi.props[Cr];if(Rn){var Tt=E(mn,wn,Cr);!Tt&&Zt&&mt.keysToEnter.push(wn)}else Zt&&mt.keysToEnter.push(wn)}else Rn||mt.keysToEnter.push(wn)}),mn.forEach(function(oi){var wn=oi&&oi.key;if(oi&&nn[wn])return;var Rn=oi&&x(lt,wn);if(Cr){var Zt=oi.props[Cr];if(Rn){var Tt=E(lt,wn,Cr);!Tt&&Zt&&mt.keysToLeave.push(wn)}else Zt&&mt.keysToLeave.push(wn)}else Rn||mt.keysToLeave.push(wn)})}},{key:"componentDidUpdate",value:function(){var St=this.keysToEnter;this.keysToEnter=[],St.forEach(this.performEnter);var mt=this.keysToLeave;this.keysToLeave=[],mt.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(St,mt){var lt=this.props.showProp;return lt?E(St,mt,lt):x(St,mt)}},{key:"stop",value:function(St){delete this.currentlyAnimatingKeys[St];var mt=this.childrenRefs[St];mt&&mt.stop()}},{key:"render",value:function(){var St=this,mt=this.props;this.nextProps=mt;var lt=this.state.children,tt=null;lt&&(tt=lt.map(function(mn){if(mn==null)return mn;if(!mn.key)throw new Error("must set key for <rc-animate> children");return f.a.createElement(z,{key:mn.key,ref:function(oi){St.childrenRefs[mn.key]=oi},animation:mt.animation,transitionName:mt.transitionName,transitionEnter:mt.transitionEnter,transitionAppear:mt.transitionAppear,transitionLeave:mt.transitionLeave},mn)}));var Cr=mt.component;if(Cr){var nn=mt;return typeof Cr=="string"&&(nn=V({className:mt.className,style:mt.style},mt.componentProps)),f.a.createElement(Cr,nn,tt)}return tt[0]||null}}]),jt}(f.a.Component);Me.isAnimate=!0,Me.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:Oe,onEnter:Oe,onLeave:Oe,onAppear:Oe};var Qe=function(){var jt=this;this.performEnter=function(ut){jt.childrenRefs[ut]&&(jt.currentlyAnimatingKeys[ut]=!0,jt.childrenRefs[ut].componentWillEnter(jt.handleDoneAdding.bind(jt,ut,"enter")))},this.performAppear=function(ut){jt.childrenRefs[ut]&&(jt.currentlyAnimatingKeys[ut]=!0,jt.childrenRefs[ut].componentWillAppear(jt.handleDoneAdding.bind(jt,ut,"appear")))},this.handleDoneAdding=function(ut,St){var mt=jt.props;if(delete jt.currentlyAnimatingKeys[ut],mt.exclusive&&mt!==jt.nextProps)return;var lt=b(we(mt));jt.isValidChildByKey(lt,ut)?St==="appear"?M.allowAppearCallback(mt)&&(mt.onAppear(ut),mt.onEnd(ut,!0)):M.allowEnterCallback(mt)&&(mt.onEnter(ut),mt.onEnd(ut,!0)):jt.performLeave(ut)},this.performLeave=function(ut){jt.childrenRefs[ut]&&(jt.currentlyAnimatingKeys[ut]=!0,jt.childrenRefs[ut].componentWillLeave(jt.handleDoneLeaving.bind(jt,ut)))},this.handleDoneLeaving=function(ut){var St=jt.props;if(delete jt.currentlyAnimatingKeys[ut],St.exclusive&&St!==jt.nextProps)return;var mt=b(we(St));if(jt.isValidChildByKey(mt,ut))jt.performEnter(ut);else{var lt=function(){M.allowLeaveCallback(St)&&(St.onLeave(ut),St.onEnd(ut,!1))};_(jt.state.children,mt,St.showProp)?lt():jt.setState({children:mt},lt)}}},Ve=A(Me),dt=function(){function _t(jt,ut){for(var St=0;St<ut.length;St++){var mt=ut[St];mt.enumerable=mt.enumerable||!1,mt.configurable=!0,"value"in mt&&(mt.writable=!0),Object.defineProperty(jt,mt.key,mt)}}return function(jt,ut,St){return ut&&_t(jt.prototype,ut),St&&_t(jt,St),jt}}();function Fe(_t,jt,ut){return jt in _t?Object.defineProperty(_t,jt,{value:ut,enumerable:!0,configurable:!0,writable:!0}):_t[jt]=ut,_t}function ue(_t,jt){if(!(_t instanceof jt))throw new TypeError("Cannot call a class as a function")}function et(_t,jt){if(!_t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return jt&&(typeof jt=="object"||typeof jt=="function")?jt:_t}function he(_t,jt){if(typeof jt!="function"&&jt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof jt);_t.prototype=Object.create(jt&&jt.prototype,{constructor:{value:_t,enumerable:!1,writable:!0,configurable:!0}}),jt&&(Object.setPrototypeOf?Object.setPrototypeOf(_t,jt):_t.__proto__=jt)}var J=function(_t){he(jt,_t);function jt(){var ut,St,mt,lt;ue(this,jt);for(var tt=arguments.length,Cr=Array(tt),nn=0;nn<tt;nn++)Cr[nn]=arguments[nn];return lt=(St=(mt=et(this,(ut=jt.__proto__||Object.getPrototypeOf(jt)).call.apply(ut,[this].concat(Cr))),mt),mt.handleItemClick=function(){var mn=mt.props,Bn=mn.onItemClick,oi=mn.panelKey;typeof Bn=="function"&&Bn(oi)},mt.handleKeyPress=function(mn){(mn.key==="Enter"||mn.keyCode===13||mn.which===13)&&mt.handleItemClick()},St),et(mt,lt)}return dt(jt,[{key:"shouldComponentUpdate",value:function(St){return!i()(this.props,St)}},{key:"render",value:function(){var St,mt=this.props,lt=mt.className,tt=mt.id,Cr=mt.style,nn=mt.prefixCls,mn=mt.header,Bn=mt.headerClass,oi=mt.children,wn=mt.isActive,Rn=mt.showArrow,Zt=mt.destroyInactivePanel,Tt=mt.disabled,De=mt.accordion,Re=mt.forceRender,Pe=mt.expandIcon,rt=mt.extra,wt=l()(nn+"-header",Fe({},Bn,Bn)),Ot=l()((St={},Fe(St,nn+"-item",!0),Fe(St,nn+"-item-active",wn),Fe(St,nn+"-item-disabled",Tt),St),lt),$t=f.a.createElement("i",{className:"arrow"});return Rn&&typeof Pe=="function"&&($t=Pe(this.props)),f.a.createElement("div",{className:Ot,style:Cr,id:tt},f.a.createElement("div",{className:wt,onClick:this.handleItemClick,role:De?"tab":"button",tabIndex:Tt?-1:0,"aria-expanded":""+wn,onKeyPress:this.handleKeyPress},Rn&&$t,mn,rt&&f.a.createElement("div",{className:nn+"-extra"},rt)),f.a.createElement(Ve,{showProp:"isActive",exclusive:!0,component:"",animation:this.props.openAnimation},f.a.createElement(h,{prefixCls:nn,isActive:wn,destroyInactivePanel:Zt,forceRender:Re,role:De?"tabpanel":null},oi)))}}]),jt}(p.Component);J.defaultProps={showArrow:!0,isActive:!1,destroyInactivePanel:!1,onItemClick:function(){},headerClass:"",forceRender:!1};var Y=J;function $(_t,jt,ut,St){var mt=void 0;return Object(I.a)(_t,ut,{start:function(){jt?(mt=_t.offsetHeight,_t.style.height=0):_t.style.height=_t.offsetHeight+"px"},active:function(){_t.style.height=(jt?mt:0)+"px"},end:function(){_t.style.height="",St()}})}function de(_t){return{enter:function(ut,St){return $(ut,!0,_t+"-anim",St)},leave:function(ut,St){return $(ut,!1,_t+"-anim",St)}}}var be=de,Te=function(){function _t(jt,ut){for(var St=0;St<ut.length;St++){var mt=ut[St];mt.enumerable=mt.enumerable||!1,mt.configurable=!0,"value"in mt&&(mt.writable=!0),Object.defineProperty(jt,mt.key,mt)}}return function(jt,ut,St){return ut&&_t(jt.prototype,ut),St&&_t(jt,St),jt}}();function Be(_t){if(Array.isArray(_t)){for(var jt=0,ut=Array(_t.length);jt<_t.length;jt++)ut[jt]=_t[jt];return ut}else return Array.from(_t)}function fe(_t,jt,ut){return jt in _t?Object.defineProperty(_t,jt,{value:ut,enumerable:!0,configurable:!0,writable:!0}):_t[jt]=ut,_t}function xe(_t,jt){if(!(_t instanceof jt))throw new TypeError("Cannot call a class as a function")}function ke(_t,jt){if(!_t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return jt&&(typeof jt=="object"||typeof jt=="function")?jt:_t}function nt(_t,jt){if(typeof jt!="function"&&jt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof jt);_t.prototype=Object.create(jt&&jt.prototype,{constructor:{value:_t,enumerable:!1,writable:!0,configurable:!0}}),jt&&(Object.setPrototypeOf?Object.setPrototypeOf(_t,jt):_t.__proto__=jt)}function Ct(_t){var jt=_t;return Array.isArray(jt)||(jt=jt?[jt]:[]),jt.map(function(ut){return String(ut)})}var pt=function(_t){nt(jt,_t);function jt(ut){xe(this,jt);var St=ke(this,(jt.__proto__||Object.getPrototypeOf(jt)).call(this,ut));He.call(St);var mt=ut.activeKey,lt=ut.defaultActiveKey,tt=lt;return"activeKey"in ut&&(tt=mt),St.state={openAnimation:ut.openAnimation||be(ut.prefixCls),activeKey:Ct(tt)},St}return Te(jt,[{key:"shouldComponentUpdate",value:function(St,mt){return!i()(this.props,St)||!i()(this.state,mt)}},{key:"render",value:function(){var St,mt=this.props,lt=mt.prefixCls,tt=mt.className,Cr=mt.style,nn=mt.accordion,mn=l()((St={},fe(St,lt,!0),fe(St,tt,!!tt),St));return f.a.createElement("div",{className:mn,style:Cr,role:nn?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(St){var mt={};return"activeKey"in St&&(mt.activeKey=Ct(St.activeKey)),"openAnimation"in St&&(mt.openAnimation=St.openAnimation),mt.activeKey||mt.openAnimation?mt:null}}]),jt}(p.Component),He=function(){var jt=this;this.onClickItem=function(ut){var St=jt.state.activeKey;if(jt.props.accordion)St=St[0]===ut?[]:[ut];else{St=[].concat(Be(St));var mt=St.indexOf(ut),lt=mt>-1;lt?St.splice(mt,1):St.push(ut)}jt.setActiveKey(St)},this.getNewChild=function(ut,St){if(!ut)return null;var mt=jt.state.activeKey,lt=jt.props,tt=lt.prefixCls,Cr=lt.accordion,nn=lt.destroyInactivePanel,mn=lt.expandIcon,Bn=ut.key||String(St),oi=ut.props,wn=oi.header,Rn=oi.headerClass,Zt=oi.disabled,Tt=!1;Cr?Tt=mt[0]===Bn:Tt=mt.indexOf(Bn)>-1;var De={key:Bn,panelKey:Bn,header:wn,headerClass:Rn,isActive:Tt,prefixCls:tt,destroyInactivePanel:nn,openAnimation:jt.state.openAnimation,accordion:Cr,children:ut.props.children,onItemClick:Zt?null:jt.onClickItem,expandIcon:mn};return typeof ut.type=="string"?ut:f.a.cloneElement(ut,De)},this.getItems=function(){var ut=jt.props.children;return Object(t.a)(ut).map(jt.getNewChild)},this.setActiveKey=function(ut){"activeKey"in jt.props||jt.setState({activeKey:ut}),jt.props.onChange(jt.props.accordion?ut[0]:ut)}};pt.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},pt.Panel=Y;var nr=pt,ht=nr,Gt=nr.Panel,pr=n("fEPi"),Qt=n.n(pr),Ht=n("H84U"),Jt=function(jt){var ut=p.useContext(Ht.b),St=ut.getPrefixCls,mt=jt.prefixCls,lt=jt.className,tt=lt===void 0?"":lt,Cr=jt.showArrow,nn=Cr===void 0?!0:Cr,mn=St("collapse",mt),Bn=l()(m()({},"".concat(mn,"-no-arrow"),!nn),tt);return p.createElement(ht.Panel,g()({},jt,{prefixCls:mn,className:Bn}))},Ge=Jt,pe=n("xEkU"),oe=n.n(pe);function ct(_t,jt,ut){var St,mt;return Object(I.a)(_t,"ant-motion-collapse-legacy",{start:function(){jt?(St=_t.offsetHeight,_t.style.height="0px",_t.style.opacity="0"):(_t.style.height="".concat(_t.offsetHeight,"px"),_t.style.opacity="1")},active:function(){mt&&oe.a.cancel(mt),mt=oe()(function(){_t.style.height="".concat(jt?St:0,"px"),_t.style.opacity=jt?"1":"0"})},end:function(){mt&&oe.a.cancel(mt),_t.style.height="",_t.style.opacity="",ut()}})}var qe={enter:function(jt,ut){return ct(jt,!0,ut)},leave:function(jt,ut){return ct(jt,!1,ut)},appear:function(jt,ut){return ct(jt,!0,ut)}},me=qe,Kt=n("0n0R"),vr=function(jt){var ut,St=p.useContext(Ht.b),mt=St.getPrefixCls,lt=St.direction,tt=jt.prefixCls,Cr=jt.className,nn=Cr===void 0?"":Cr,mn=jt.bordered,Bn=jt.ghost,oi=mt("collapse",tt),wn=function(){var Pe=jt.expandIconPosition;return Pe!==void 0?Pe:lt==="rtl"?"right":"left"},Rn=function(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},rt=jt.expandIcon,wt=rt?rt(Pe):p.createElement(Qt.a,{rotate:Pe.isActive?90:void 0});return Object(Kt.a)(wt,function(){return{className:l()(wt.props.className,"".concat(oi,"-arrow"))}})},Zt=wn(),Tt=l()((ut={},m()(ut,"".concat(oi,"-borderless"),!mn),m()(ut,"".concat(oi,"-icon-position-").concat(Zt),!0),m()(ut,"".concat(oi,"-rtl"),lt==="rtl"),m()(ut,"".concat(oi,"-ghost"),!!Bn),ut),nn),De=g()(g()({},me),{appear:function(){}});return p.createElement(ht,g()({openAnimation:De},jt,{expandIcon:function(Pe){return Rn(Pe)},prefixCls:oi,className:Tt}))};vr.Panel=Ge,vr.defaultProps={bordered:!0};var bt=vr,or=D.a=bt},gKaM:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},gPAo:function(R,D){function n(m){return m}function y(m,p,f,d,l){this._old=m,this._new=p,this._oldKeyGetter=f||n,this._newKeyGetter=d||n,this.context=l}y.prototype={constructor:y,add:function(m){return this._add=m,this},update:function(m){return this._update=m,this},remove:function(m){return this._remove=m,this},execute:function(){var m=this._old,p=this._new,f={},d={},l=[],a=[],i;for(g(m,f,l,"_oldKeyGetter",this),g(p,d,a,"_newKeyGetter",this),i=0;i<m.length;i++){var t=l[i],o=d[t];if(o!=null){var e=o.length;e?(e===1&&(d[t]=null),o=o.shift()):d[t]=null,this._update&&this._update(o,i)}else this._remove&&this._remove(i)}for(var i=0;i<a.length;i++){var t=a[i];if(d.hasOwnProperty(t)){var o=d[t];if(o==null)continue;if(!o.length)this._add&&this._add(o);else for(var u=0,e=o.length;u<e;u++)this._add&&this._add(o[u])}}}};function g(m,p,f,d,l){for(var a=0;a<m.length;a++){var i="_ec_"+l[d](m[a],a),t=p[i];t==null?(f.push(i),p[i]=a):(t.length||(p[i]=t=[t]),t.push(a))}}var S=y;R.exports=S},gRFJ:function(R,D,n){R.exports=[n("rdUC"),n("ynwM"),n("RELg"),n("DlR+"),n("CrYA"),n("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(R){return R<10?"0"+R:R}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(R){return rx_escapable.lastIndex=0,rx_escapable.test(R)?'"'+R.replace(rx_escapable,function(D){var n=meta[D];return typeof n=="string"?n:"\\u"+("0000"+D.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+R+'"'}function str(R,D){var n,y,g,S,m=gap,p,f=D[R];f&&typeof f=="object"&&typeof f.toJSON=="function"&&(f=f.toJSON(R)),typeof rep=="function"&&(f=rep.call(D,R,f));switch(typeof f){case"string":return quote(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(gap+=indent,p=[],Object.prototype.toString.apply(f)==="[object Array]"){for(S=f.length,n=0;n<S;n+=1)p[n]=str(n,f)||"null";return g=p.length===0?"[]":gap?`[
`+gap+p.join(`,
`+gap)+`
`+m+"]":"["+p.join(",")+"]",gap=m,g}if(rep&&typeof rep=="object")for(S=rep.length,n=0;n<S;n+=1)typeof rep[n]=="string"&&(y=rep[n],g=str(y,f),g&&p.push(quote(y)+(gap?": ":":")+g));else for(y in f)Object.prototype.hasOwnProperty.call(f,y)&&(g=str(y,f),g&&p.push(quote(y)+(gap?": ":":")+g));return g=p.length===0?"{}":gap?`{
`+gap+p.join(`,
`+gap)+`
`+m+"}":"{"+p.join(",")+"}",gap=m,g}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(R,D,n){var y;if(gap="",indent="",typeof n=="number")for(y=0;y<n;y+=1)indent+=" ";else typeof n=="string"&&(indent=n);if(rep=D,D&&typeof D!="function"&&(typeof D!="object"||typeof D.length!="number"))throw new Error("JSON.stringify");return str("",{"":R})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(R,D){var n,y,g=R[D];if(g&&typeof g=="object")for(n in g)Object.prototype.hasOwnProperty.call(g,n)&&(y=walk(g,n),y!==void 0?g[n]=y:delete g[n]);return reviver.call(R,D,g)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(R){return"\\u"+("0000"+R.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(R,D,n){var y=n("+TT/"),g=n("bYtY"),S=n("4NO4"),m=S.groupData;function p(O,I,k){O.eachSeriesByType("sankey",function(M){var U=M.get("nodeWidth"),P=M.get("nodeGap"),X=f(M,I);M.layoutInfo=X;var F=X.width,j=X.height,K=M.getGraph(),z=K.nodes,V=K.edges;l(z);var Q=g.filter(z,function(se){return se.getLayout().value===0}),G=Q.length!==0?0:M.get("layoutIterations"),te=M.get("orient"),q=M.get("nodeAlign");d(z,V,U,P,F,j,G,te,q)})}function f(O,I){return y.getLayoutRect(O.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function d(O,I,k,M,U,P,X,F,j){a(O,I,k,U,P,F,j),u(O,I,P,U,M,X,F),w(O,F)}function l(O){g.each(O,function(I){var k=_(I.outEdges,T),M=_(I.inEdges,T),U=I.getValue()||0,P=Math.max(k,M,U);I.setLayout({value:P},!0)})}function a(O,I,k,M,U,P,X){for(var F=[],j=[],K=[],z=[],V=0,Q=0,G=0;G<I.length;G++)F[G]=1;for(G=0;G<O.length;G++)j[G]=O[G].inEdges.length,j[G]===0&&K.push(O[G]);for(var te=-1;K.length;){for(var q=0;q<K.length;q++){var se=K[q],re=se.hostGraph.data.getRawDataItem(se.dataIndex),we=re.depth!=null&&re.depth>=0;we&&re.depth>te&&(te=re.depth),se.setLayout({depth:we?re.depth:V},!0),P==="vertical"?se.setLayout({dy:k},!0):se.setLayout({dx:k},!0);for(var Oe=0;Oe<se.outEdges.length;Oe++){var Me=se.outEdges[Oe],Qe=I.indexOf(Me);F[Qe]=0;var Ve=Me.node2,dt=O.indexOf(Ve);--j[dt]===0&&z.indexOf(Ve)<0&&z.push(Ve)}}++V,K=z,z=[]}for(G=0;G<F.length;G++)if(F[G]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Fe=te>V-1?te:V-1;X&&X!=="left"&&t(O,X,P,Fe);var Q=P==="vertical"?(U-k)/Fe:(M-k)/Fe;e(O,Q,P)}function i(O){var I=O.hostGraph.data.getRawDataItem(O.dataIndex);return I.depth!=null&&I.depth>=0}function t(O,I,k,M){if(I==="right"){for(var U=[],P=O,X=0;P.length;){for(var F=0;F<P.length;F++){var j=P[F];j.setLayout({skNodeHeight:X},!0);for(var K=0;K<j.inEdges.length;K++){var z=j.inEdges[K];U.indexOf(z.node1)<0&&U.push(z.node1)}}P=U,U=[],++X}g.each(O,function(V){i(V)||V.setLayout({depth:Math.max(0,M-V.getLayout().skNodeHeight)},!0)})}else I==="justify"&&o(O,M)}function o(O,I){g.each(O,function(k){!i(k)&&!k.outEdges.length&&k.setLayout({depth:I},!0)})}function e(O,I,k){g.each(O,function(M){var U=M.getLayout().depth*I;k==="vertical"?M.setLayout({y:U},!0):M.setLayout({x:U},!0)})}function u(O,I,k,M,U,P,X){var F=r(O,X);s(F,I,k,M,U,X),c(F,U,k,M,X);for(var j=1;P>0;P--)j*=.99,h(F,j,X),c(F,U,k,M,X),C(F,j,X),c(F,U,k,M,X)}function r(O,I){var k=[],M=I==="vertical"?"y":"x",U=m(O,function(P){return P.getLayout()[M]});return U.keys.sort(function(P,X){return P-X}),g.each(U.keys,function(P){k.push(U.buckets.get(P))}),k}function s(O,I,k,M,U,P){var X=Infinity;g.each(O,function(F){var j=F.length,K=0;g.each(F,function(V){K+=V.getLayout().value});var z=P==="vertical"?(M-(j-1)*U)/K:(k-(j-1)*U)/K;z<X&&(X=z)}),g.each(O,function(F){g.each(F,function(j,K){var z=j.getLayout().value*X;P==="vertical"?(j.setLayout({x:K},!0),j.setLayout({dx:z},!0)):(j.setLayout({y:K},!0),j.setLayout({dy:z},!0))})}),g.each(I,function(F){var j=+F.getValue()*X;F.setLayout({dy:j},!0)})}function c(O,I,k,M,U){var P=U==="vertical"?"x":"y";g.each(O,function(X){X.sort(function(q,se){return q.getLayout()[P]-se.getLayout()[P]});for(var F,j,K,z=0,V=X.length,Q=U==="vertical"?"dx":"dy",G=0;G<V;G++)j=X[G],K=z-j.getLayout()[P],K>0&&(F=j.getLayout()[P]+K,U==="vertical"?j.setLayout({x:F},!0):j.setLayout({y:F},!0)),z=j.getLayout()[P]+j.getLayout()[Q]+I;var te=U==="vertical"?M:k;if(K=z-I-te,K>0)for(F=j.getLayout()[P]-K,U==="vertical"?j.setLayout({x:F},!0):j.setLayout({y:F},!0),z=F,G=V-2;G>=0;--G)j=X[G],K=j.getLayout()[P]+j.getLayout()[Q]+I-z,K>0&&(F=j.getLayout()[P]-K,U==="vertical"?j.setLayout({x:F},!0):j.setLayout({y:F},!0)),z=j.getLayout()[P]})}function h(O,I,k){g.each(O.slice().reverse(),function(M){g.each(M,function(U){if(U.outEdges.length){var P=_(U.outEdges,v,k)/_(U.outEdges,T,k);if(isNaN(P)){var X=U.outEdges.length;P=X?_(U.outEdges,A,k)/X:0}if(k==="vertical"){var F=U.getLayout().x+(P-E(U,k))*I;U.setLayout({x:F},!0)}else{var j=U.getLayout().y+(P-E(U,k))*I;U.setLayout({y:j},!0)}}})})}function v(O,I){return E(O.node2,I)*O.getValue()}function A(O,I){return E(O.node2,I)}function b(O,I){return E(O.node1,I)*O.getValue()}function x(O,I){return E(O.node1,I)}function E(O,I){return I==="vertical"?O.getLayout().x+O.getLayout().dx/2:O.getLayout().y+O.getLayout().dy/2}function T(O){return O.getValue()}function _(O,I,k){for(var M=0,U=O.length,P=-1;++P<U;){var X=+I.call(O,O[P],k);isNaN(X)||(M+=X)}return M}function C(O,I,k){g.each(O,function(M){g.each(M,function(U){if(U.inEdges.length){var P=_(U.inEdges,b,k)/_(U.inEdges,T,k);if(isNaN(P)){var X=U.inEdges.length;P=X?_(U.inEdges,x,k)/X:0}if(k==="vertical"){var F=U.getLayout().x+(P-E(U,k))*I;U.setLayout({x:F},!0)}else{var j=U.getLayout().y+(P-E(U,k))*I;U.setLayout({y:j},!0)}}})})}function w(O,I){var k=I==="vertical"?"x":"y";g.each(O,function(M){M.outEdges.sort(function(U,P){return U.node2.getLayout()[k]-P.node2.getLayout()[k]}),M.inEdges.sort(function(U,P){return U.node1.getLayout()[k]-P.node1.getLayout()[k]})}),g.each(O,function(M){var U=0,P=0;g.each(M.outEdges,function(X){X.setLayout({sy:U},!0),U+=X.getLayout().dy}),g.each(M.inEdges,function(X){X.setLayout({ty:P},!0),P+=X.getLayout().dy})})}R.exports=p},"gb/T":function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.ECB=function(){var g=y.lib.BlockCipherMode.extend();return g.Encryptor=g.extend({processBlock:function(m,p){this._cipher.encryptBlock(m,p)}}),g.Decryptor=g.extend({processBlock:function(m,p){this._cipher.decryptBlock(m,p)}}),g}(),y.mode.ECB})},"giR+":function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("QbM5"),m=n.n(S)},gut8:function(R,D){var n={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},y=9;D.ContextCachedBy=n,D.WILL_BE_RESTORED=y},gvm7:function(R,D,n){var y=n("bYtY"),g=n("dqUG");function S(p){this._zr=p.getZr(),this._show=!1,this._hideTimeout}S.prototype={constructor:S,_enterable:!0,update:function(){},show:function(p){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(p,f,d){this.el&&this._zr.remove(this.el);for(var l={},a=p,i="{marker",t="|}",o=a.indexOf(i);o>=0;){var e=a.indexOf(t),u=a.substr(o+i.length,e-o-i.length);u.indexOf("sub")>-1?l["marker"+u]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:f[u],textOffset:[3,0]}:l["marker"+u]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:f[u]},a=a.substr(e+1),o=a.indexOf("{marker")}this.el=new g({style:{rich:l,text:p,textLineHeight:20,textBackgroundColor:d.get("backgroundColor"),textBorderRadius:d.get("borderRadius"),textFill:d.get("textStyle.color"),textPadding:d.get("padding")},z:d.get("z")}),this._zr.add(this.el);var r=this;this.el.on("mouseover",function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0}),this.el.on("mouseout",function(){r._enterable&&(r._show&&r.hideLater(r._hideDelay)),r._inContent=!1})},setEnterable:function(p){this._enterable=p},getSize:function(){var p=this.el.getBoundingRect();return[p.width,p.height]},moveTo:function(p,f){this.el&&this.el.attr("position",[p,f])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(p){this._show&&!(this._inContent&&this._enterable)&&(p?(this._hideDelay=p,this._show=!1,this._hideTimeout=setTimeout(y.bind(this.hide,this),p)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var p=this.getSize();return{width:p[0],height:p[1]}}};var m=S;R.exports=m},gwTy:function(R,D,n){},h54F:function(R,D,n){var y=n("ProS"),g=n("YXkt"),S=n("bYtY"),m=n("4NO4"),p=m.defaultEmphasis,f=n("Qxkt"),d=n("7aKB"),l=d.encodeHTML,a=n("I3/A"),i=n("xKMd"),t=y.extendSeriesModel({type:"series.graph",init:function(e){t.superApply(this,"init",arguments);var u=this;function r(){return u._categoriesData}this.legendVisualProvider=new i(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){t.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){t.superApply(this,"mergeDefaultAndTheme",arguments),p(e,["edgeLabel"],["show"])},getInitialData:function(e,u){var r=e.edges||e.links||[],s=e.data||e.nodes||[],c=this;if(s&&r)return a(s,r,this,!0,h).data;function h(v,A){v.wrapMethod("getItemModel",function(C){var w=c._categoriesModels,O=C.getShallow("category"),I=w[O];return I&&(I.parentModel=C.parentModel,C.parentModel=I),C});var b=c.getModel("edgeLabel"),x=new f({label:b.option},b.parentModel,u),E=c.getModel("emphasis.edgeLabel"),T=new f({emphasis:{label:E.option}},E.parentModel,u);A.wrapMethod("getItemModel",function(C){return C.customizeGetParent(_),C});function _(C){return C=this.parsePath(C),C&&C[0]==="label"?x:C&&C[0]==="emphasis"&&C[1]==="label"?T:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,u,r){if(r==="edge"){var s=this.getData(),c=this.getDataParams(e,r),h=s.graph.getEdgeByIndex(e),v=s.getName(h.node1.dataIndex),A=s.getName(h.node2.dataIndex),b=[];return v!=null&&b.push(v),A!=null&&b.push(A),b=l(b.join(" > ")),c.value&&(b+=" : "+l(c.value)),b}else return t.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=S.map(this.option.categories||[],function(r){return r.value!=null?r:S.extend({value:0},r)}),u=new g(["value"],this);u.initData(e),this._categoriesData=u,this._categoriesModels=u.mapArray(function(r){return u.getItemModel(r,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return t.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}}}}),o=t;R.exports=o},h7HQ:function(R,D,n){var y=n("y+Vt"),g=n("T6xi"),S=y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(p,f){g.buildPath(p,f,!0)}});R.exports=S},h8O9:function(R,D,n){var y=n("bYtY"),g=y.map,S=n("zM3Q"),m=n("7hqr"),p=m.isDimensionStacked;function f(d){return{seriesType:d,plan:S(),reset:function(l){var a=l.getData(),i=l.coordinateSystem,t=l.pipelineContext,o=t.large;if(!i)return;var e=g(i.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),u=e.length,r=a.getCalculationInfo("stackResultDimension");p(a,e[0])&&(e[0]=r),p(a,e[1])&&(e[1]=r);function s(c,h){for(var v=c.end-c.start,A=o&&new Float32Array(v*u),b=c.start,x=0,E=[],T=[];b<c.end;b++){var _;if(u===1){var C=h.get(e[0],b);_=!isNaN(C)&&i.dataToPoint(C,null,T)}else{var C=E[0]=h.get(e[0],b),w=E[1]=h.get(e[1],b);_=!isNaN(C)&&!isNaN(w)&&i.dataToPoint(E,null,T)}o?(A[x++]=_?_[0]:NaN,A[x++]=_?_[1]:NaN):h.setItemLayout(b,_&&_.slice()||[NaN,NaN])}o&&h.setLayout("symbolPoints",A)}return u&&{progress:s}}}}R.exports=f},hD7B:function(R,D,n){var y=n("bYtY"),g=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function S(p){y.each(g,function(f){this[f]=y.bind(p[f],p)},this)}var m=S;R.exports=m},hFmY:function(R,D,n){var y=n("ProS"),g={type:"axisAreaSelect",event:"axisAreaSelected"};y.registerAction(g,function(S,m){m.eachComponent({mainType:"parallelAxis",query:S},function(p){p.axis.model.setActiveIntervals(S.intervals)})}),y.registerAction("parallelAxisExpand",function(S,m){m.eachComponent({mainType:"parallel",query:S},function(p){p.setAxisExpand(S)})})},hJvP:function(R,D,n){var y=n("2dDv"),g=n("IDmD");function S(m,p){var f=[];return m.eachComponent("parallel",function(d,l){var a=new y(d,m,p);a.name="parallel_"+l,a.resize(d,p),d.coordinateSystem=a,a.model=d,f.push(a)}),m.eachSeries(function(d){if(d.get("coordinateSystem")==="parallel"){var l=m.queryComponents({mainType:"parallel",index:d.get("parallelIndex"),id:d.get("parallelId")})[0];d.coordinateSystem=l.coordinateSystem}}),f}g.register("parallel",{create:S})},hM6l:function(R,D,n){var y=n("bYtY"),g=y.each,S=y.map,m=n("OELB"),p=m.linearMap,f=m.getPixelPrecision,d=m.round,l=n("4HMb"),a=l.createAxisTicks,i=l.createAxisLabels,t=l.calculateCategoryInterval,o=[0,1],e=function(c,h,v){this.dim=c,this.scale=h,this._extent=v||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,contain:function(c){var h=this._extent,v=Math.min(h[0],h[1]),A=Math.max(h[0],h[1]);return c>=v&&c<=A},containData:function(c){return this.scale.contain(c)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(c){return f(c||this.scale.getExtent(),this._extent)},setExtent:function(c,h){var v=this._extent;v[0]=c,v[1]=h},dataToCoord:function(c,h){var v=this._extent,A=this.scale;return c=A.normalize(c),this.onBand&&A.type==="ordinal"&&(v=v.slice(),u(v,A.count())),p(c,o,v,h)},coordToData:function(c,h){var v=this._extent,A=this.scale;this.onBand&&A.type==="ordinal"&&(v=v.slice(),u(v,A.count()));var b=p(c,v,o,h);return this.scale.scale(b)},pointToData:function(c,h){},getTicksCoords:function(c){c=c||{};var h=c.tickModel||this.getTickModel(),v=a(this,h),A=v.ticks,b=S(A,function(E){return{coord:this.dataToCoord(E),tickValue:E}},this),x=h.get("alignWithLabel");return r(this,b,x,c.clamp),b},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var c=this.model.getModel("minorTick"),h=c.get("splitNumber");h>0&&h<100||(h=5);var v=this.scale.getMinorTicks(h),A=S(v,function(b){return S(b,function(x){return{coord:this.dataToCoord(x),tickValue:x}},this)},this);return A},getViewLabels:function(){return i(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var c=this._extent,h=this.scale.getExtent(),v=h[1]-h[0]+(this.onBand?1:0);v===0&&(v=1);var A=Math.abs(c[1]-c[0]);return Math.abs(A)/v},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return t(this)}};function u(c,h){var v=c[1]-c[0],A=h,b=v/A/2;c[0]+=b,c[1]-=b}function r(c,h,v,A){var b=h.length;if(!c.onBand||v||!b)return;var x=c.getExtent(),E,T;if(b===1)h[0].coord=x[0],E=h[1]={coord:x[0]};else{var _=h[b-1].tickValue-h[0].tickValue,C=(h[b-1].coord-h[0].coord)/_;g(h,function(k){k.coord-=C/2});var w=c.scale.getExtent();T=1+w[1]-h[b-1].tickValue,E={coord:h[b-1].coord+C*T},h.push(E)}var O=x[0]>x[1];I(h[0].coord,x[0])&&(A?h[0].coord=x[0]:h.shift()),A&&I(x[0],h[0].coord)&&h.unshift({coord:x[0]}),I(x[1],E.coord)&&(A?E.coord=x[1]:h.pop()),A&&I(E.coord,x[1])&&h.push({coord:x[1]});function I(k,M){return k=d(k),M=d(M),O?k>M:k<M}}var s=e;R.exports=s},hNWo:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("Qxkt"),m=n("4NO4"),p=m.isNameSpecified,f=n("Kagy"),d=f.legend.selector,l={all:{type:"all",title:g.clone(d.all)},inverse:{type:"inverse",title:g.clone(d.inverse)}},a=y.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,o,e){this.mergeDefaultAndTheme(t,e),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){a.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var o=t.selector;o===!0&&(o=t.selector=["all","inverse"]),g.isArray(o)&&g.each(o,function(e,u){g.isString(e)&&(e={type:e}),o[u]=g.merge(e,l[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var o=!1,e=0;e<t.length;e++){var u=t[e].get("name");if(this.isSelected(u)){this.select(u),o=!0;break}}!o&&this.select(t[0].get("name"))}},_updateData:function(t){var o=[],e=[];t.eachRawSeries(function(s){var c=s.name;e.push(c);var h;if(s.legendVisualProvider){var v=s.legendVisualProvider,A=v.getAllNames();t.isSeriesFiltered(s)||(e=e.concat(A)),A.length?o=o.concat(A):h=!0}else h=!0;h&&p(s)&&o.push(s.name)}),this._availableNames=e;var u=this.get("data")||o,r=g.map(u,function(s){return(typeof s=="string"||typeof s=="number")&&(s={name:s}),new S(s,this,this.ecModel)},this);this._data=r},getData:function(){return this._data},select:function(t){var o=this.option.selected,e=this.get("selectedMode");if(e==="single"){var u=this._data;g.each(u,function(r){o[r.get("name")]=!1})}o[t]=!0},unSelect:function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},toggleSelected:function(t){var o=this.option.selected;o.hasOwnProperty(t)||(o[t]=!0),this[o[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,o=this.option.selected;g.each(t,function(e){o[e.get("name",!0)]=!0})},inverseSelect:function(){var t=this._data,o=this.option.selected;g.each(t,function(e){var u=e.get("name",!0);o.hasOwnProperty(u)||(o[u]=!0),o[u]=!o[u]})},isSelected:function(t){var o=this.option.selected;return!(o.hasOwnProperty(t)&&!o[t])&&g.indexOf(this._availableNames,t)>=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}}}),i=a;R.exports=i},hOwI:function(R,D){var n=Math.log(2);function y(S,m,p,f,d,l){var a=f+"-"+d,i=S.length;if(l.hasOwnProperty(a))return l[a];if(m===1){var t=Math.round(Math.log((1<<i)-1&~d)/n);return S[p][t]}for(var o=f|1<<p,e=p+1;f&1<<e;)e++;for(var u=0,r=0,s=0;r<i;r++){var c=1<<r;c&d||(u+=(s%2?-1:1)*S[p][r]*y(S,m-1,e,o,d|c,l),s++)}return l[a]=u,u}function g(S,m){var p=[[S[0],S[1],1,0,0,0,-m[0]*S[0],-m[0]*S[1]],[0,0,0,S[0],S[1],1,-m[1]*S[0],-m[1]*S[1]],[S[2],S[3],1,0,0,0,-m[2]*S[2],-m[2]*S[3]],[0,0,0,S[2],S[3],1,-m[3]*S[2],-m[3]*S[3]],[S[4],S[5],1,0,0,0,-m[4]*S[4],-m[4]*S[5]],[0,0,0,S[4],S[5],1,-m[5]*S[4],-m[5]*S[5]],[S[6],S[7],1,0,0,0,-m[6]*S[6],-m[6]*S[7]],[0,0,0,S[6],S[7],1,-m[7]*S[6],-m[7]*S[7]]],f={},d=y(p,8,0,0,0,f);if(d===0)return;for(var l=[],a=0;a<8;a++)for(var i=0;i<8;i++)l[i]==null&&(l[i]=0),l[i]+=((a+i)%2?-1:1)*y(p,7,a===0?1:0,1<<a,1<<i,f)/d*m[a];return function(t,o,e){var u=o*l[6]+e*l[7]+1;t[0]=(o*l[0]+e*l[1]+l[2])/u,t[1]=(o*l[3]+e*l[4]+l[5])/u}}D.buildTransformer=g},hX1E:function(R,D){var n=Math.PI*2;function y(g){return g%=n,g<0&&(g+=n),g}D.normalizeRadian=y},hXwI:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function g(p,f){for(var d=0;d<f.length;d++){var l=f[d];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(p,l.key,l)}}function S(p,f,d){return f&&g(p.prototype,f),d&&g(p,d),p}var m=function(){function p(){y(this,p)}return S(p,[{key:"decodeRect",value:function(d,l,a,i,t,o,e){if(t.rQwait("COPYRECT",4))return!1;var u=t.rQshift16(),r=t.rQshift16();return o.copyImage(u,r,d,l,a,i),!0}}]),p}();D.default=m},hi0g:function(R,D,n){var y=n("bYtY"),g=y.createHashMap,S=y.each,m=y.isString,p=y.defaults,f=y.extend,d=y.isObject,l=y.clone,a=n("4NO4"),i=a.normalizeToArray,t=n("D5nY"),o=t.guessOrdinal,e=t.BE_ORDINAL,u=n("7G+c"),r=n("L0Ub"),s=r.OTHER_DIMENSIONS,c=n("Vi4m");function h(x,E,T){u.isInstance(E)||(E=u.seriesDataToSource(E)),T=T||{},x=(x||[]).slice();for(var _=(T.dimsDef||[]).slice(),C=g(),w=g(),O=[],I=v(E,x,_,T.dimCount),k=0;k<I;k++){var M=_[k]=f({},d(_[k])?_[k]:{name:_[k]}),U=M.name,P=O[k]=new c;U!=null&&C.get(U)==null&&(P.name=P.displayName=U,C.set(U,k)),M.type!=null&&(P.type=M.type),M.displayName!=null&&(P.displayName=M.displayName)}var X=T.encodeDef;!X&&T.encodeDefaulter&&(X=T.encodeDefaulter(E,I)),X=g(X),X.each(function(q,se){if(q=i(q).slice(),q.length===1&&!m(q[0])&&q[0]<0){X.set(se,!1);return}var re=X.set(se,[]);S(q,function(we,Oe){m(we)&&(we=C.get(we)),we!=null&&we<I&&(re[Oe]=we,j(O[we],se,Oe))})});var F=0;S(x,function(q,se){var re,q,we,Oe;if(m(q))re=q,q={};else{re=q.name;var Me=q.ordinalMeta;q.ordinalMeta=null,q=l(q),q.ordinalMeta=Me,we=q.dimsDef,Oe=q.otherDims,q.name=q.coordDim=q.coordDimIndex=q.dimsDef=q.otherDims=null}var Qe=X.get(re);if(Qe===!1)return;var Qe=i(Qe);if(!Qe.length)for(var Ve=0;Ve<(we&&we.length||1);Ve++){for(;F<O.length&&O[F].coordDim!=null;)F++;F<O.length&&Qe.push(F++)}S(Qe,function(dt,Fe){var ue=O[dt];if(j(p(ue,q),re,Fe),ue.name==null&&we){var et=we[Fe];!d(et)&&(et={name:et}),ue.name=ue.displayName=et.name,ue.defaultTooltip=et.defaultTooltip}Oe&&p(ue.otherDims,Oe)})});function j(q,se,re){s.get(se)!=null?q.otherDims[se]=re:(q.coordDim=se,q.coordDimIndex=re,w.set(se,!0))}var K=T.generateCoord,z=T.generateCoordCount,V=z!=null;z=K?z||1:0;for(var Q=K||"value",G=0;G<I;G++){var P=O[G]=O[G]||new c,te=P.coordDim;te==null&&(P.coordDim=A(Q,w,V),P.coordDimIndex=0,(!K||z<=0)&&(P.isExtraCoord=!0),z--),P.name==null&&(P.name=A(P.coordDim,C)),P.type==null&&(o(E,G,P.name)===e.Must||P.isExtraCoord&&(P.otherDims.itemName!=null||P.otherDims.seriesName!=null))&&(P.type="ordinal")}return O}function v(x,E,T,_){var C=Math.max(x.dimensionsDetectCount||1,E.length,T.length,_||0);return S(E,function(w){var O=w.dimsDef;O&&(C=Math.max(C,O.length))}),C}function A(x,E,T){if(T||E.get(x)!=null){for(var _=0;E.get(x+_)!=null;)_++;x+=_}return E.set(x,!0),x}var b=h;R.exports=b},hkKa:function(R,D,n){"use strict";n.d(D,"a",function(){return p});var y=n("J4zp"),g=n.n(y),S=n("q1tI"),m=n.n(S);function p(){var f=S.useReducer(function(a){return a+1},0),d=g()(f,2),l=d[1];return l}},hw6D:function(R,D,n){var y=n("bYtY");function g(p){p.eachSeriesByType("radar",function(f){var d=f.getData(),l=[],a=f.coordinateSystem;if(!a)return;var i=a.getIndicatorAxes();y.each(i,function(t,o){d.each(d.mapDimension(i[o].dim),function(e,u){l[u]=l[u]||[];var r=a.dataToPoint(e,o);l[u][o]=S(r)?r:m(a)})}),d.each(function(t){var o=y.find(l[t],function(e){return S(e)})||m(a);l[t].push(o.slice()),d.setItemLayout(t,l[t])})})}function S(p){return!isNaN(p[0])&&!isNaN(p[1])}function m(p){return[p.cx,p.cy]}R.exports=g},hwYd:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("Nu4q")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="PictureTwoTone";var i=m.forwardRef(a);D.default=i},hydK:function(R,D){var n="http://www.w3.org/2000/svg";function y(g){return document.createElementNS(n,g)}D.createElement=y},hyiK:function(R,D){function n(y,g,S,m,p,f){if(f>g&&f>m||f<g&&f<m)return 0;if(m===g)return 0;var d=m<g?1:-1,l=(f-g)/(m-g);(l===1||l===0)&&(d=m<g?.5:-.5);var a=l*(S-y)+y;return a===p?Infinity:a>p?d:0}R.exports=n},i38C:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=S.createHashMap,p=S.retrieve,f=S.each;function d(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=m(),this.categoryAxisMap=m(),this.firstCategoryDimIndex=null}function l(t){var o=t.get("coordinateSystem"),e=new d(o),u=a[o];if(u)return u(t,e,e.axisMap,e.categoryAxisMap),e}var a={cartesian2d:function(t,o,e,u){var r=t.getReferringComponents("xAxis")[0],s=t.getReferringComponents("yAxis")[0];o.coordSysDims=["x","y"],e.set("x",r),e.set("y",s),i(r)&&(u.set("x",r),o.firstCategoryDimIndex=0),i(s)&&(u.set("y",s),o.firstCategoryDimIndex==null&(o.firstCategoryDimIndex=1))},singleAxis:function(t,o,e,u){var r=t.getReferringComponents("singleAxis")[0];o.coordSysDims=["single"],e.set("single",r),i(r)&&(u.set("single",r),o.firstCategoryDimIndex=0)},polar:function(t,o,e,u){var r=t.getReferringComponents("polar")[0],s=r.findAxisModel("radiusAxis"),c=r.findAxisModel("angleAxis");o.coordSysDims=["radius","angle"],e.set("radius",s),e.set("angle",c),i(s)&&(u.set("radius",s),o.firstCategoryDimIndex=0),i(c)&&(u.set("angle",c),o.firstCategoryDimIndex==null&&(o.firstCategoryDimIndex=1))},geo:function(t,o,e,u){o.coordSysDims=["lng","lat"]},parallel:function(t,o,e,u){var r=t.ecModel,s=r.getComponent("parallel",t.get("parallelIndex")),c=o.coordSysDims=s.dimensions.slice();f(s.parallelAxisIndex,function(h,v){var A=r.getComponent("parallelAxis",h),b=c[v];e.set(b,A),i(A)&&o.firstCategoryDimIndex==null&&(u.set(b,A),o.firstCategoryDimIndex=v)})}};function i(t){return t.get("type")==="category"}D.getCoordSysInfoBySeries=l},i6bk:function(R,D,n){"use strict";n.d(D,"b",function(){return y}),n.d(D,"a",function(){return g});function y(S){return S!=null&&S===S.window}function g(S,m){if(typeof window=="undefined")return 0;var p=m?"scrollTop":"scrollLeft",f=0;return y(S)?f=S[m?"pageYOffset":"pageXOffset"]:S instanceof Document?f=S.documentElement[p]:S&&(f=S[p]),S&&!y(S)&&typeof f!="number"&&(f=(S.ownerDocument||S).documentElement[p]),f}},i8CU:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("Fm1+"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},iLNv:function(R,D){var n="\0__throttleOriginMethod",y="\0__throttleRate",g="\0__throttleType";function S(f,d,l){var a,i=0,t=0,o=null,e,u,r,s;d=d||0;function c(){t=new Date().getTime(),o=null,f.apply(u,r||[])}var h=function(){a=new Date().getTime(),u=this,r=arguments;var v=s||d,A=s||l;s=null,e=a-(A?i:t)-v,clearTimeout(o),A?o=setTimeout(c,v):e>=0?c():o=setTimeout(c,-e),i=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){s=v},h}function m(f,d,l,a){var i=f[d];if(!i)return;var t=i[n]||i,o=i[g],e=i[y];if(e!==l||o!==a){if(l==null||!a)return f[d]=t;i=f[d]=S(t,l,a==="debounce"),i[n]=t,i[g]=a,i[y]=l}return i}function p(f,d){var l=f[d];l&&l[n]&&(f[d]=l[n])}D.throttle=S,D.createOrUpdate=m,D.clear=p},iPDy:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=y.extendComponentView({type:"marker",init:function(){this.markerGroupMap=g.createHashMap()},render:function(m,p,f){var d=this.markerGroupMap;d.each(function(a){a.__keep=!1});var l=this.type+"Model";p.eachSeries(function(a){var i=a[l];i&&this.renderSeries(a,i,p,f)},this),d.each(function(a){!a.__keep&&this.group.remove(a.group)},this)},renderSeries:function(){}});R.exports=S},iQDF:function(R,D,n){"use strict";var y=n("ZTW2"),g=n.n(y),S=n("+BJd"),m=n("+L6B")},iRjW:function(R,D,n){var y=n("bYtY"),g=n("Yl7c"),S=g.parseClassType,m=0;function p(l){return[l||"",m++,Math.random().toFixed(5)].join("_")}function f(l){var a={};return l.registerSubTypeDefaulter=function(i,t){i=S(i),a[i.main]=t},l.determineSubType=function(i,t){var o=t.type;if(!o){var e=S(i).main;l.hasSubTypes(i)&&a[e]&&(o=a[e](t))}return o},l}function d(l,a){l.topologicalTravel=function(e,u,r,s){if(!e.length)return;var c=i(u),h=c.graph,v=c.noEntryList,A={};for(y.each(e,function(C){A[C]=!0});v.length;){var b=v.pop(),x=h[b],E=!!A[b];E&&(r.call(s,b,x.originalDeps.slice()),delete A[b]),y.each(x.successor,E?_:T)}y.each(A,function(){throw new Error("Circle dependency may exists")});function T(C){h[C].entryCount--,h[C].entryCount===0&&v.push(C)}function _(C){A[C]=!0,T(C)}};function i(e){var u={},r=[];return y.each(e,function(s){var c=t(u,s),h=c.originalDeps=a(s),v=o(h,e);c.entryCount=v.length,c.entryCount===0&&r.push(s),y.each(v,function(A){y.indexOf(c.predecessor,A)<0&&c.predecessor.push(A);var b=t(u,A);y.indexOf(b.successor,A)<0&&b.successor.push(s)})}),{graph:u,noEntryList:r}}function t(e,u){return e[u]||(e[u]={predecessor:[],successor:[]}),e[u]}function o(e,u){var r=[];return y.each(e,function(s){y.indexOf(u,s)>=0&&r.push(s)}),r}}D.getUID=p,D.enableSubTypeDefaulter=f,D.enableTopologicalTravel=d},iUHT:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function g(x,E){for(var T=0;T<E.length;T++){var _=E[T];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(x,_.key,_)}}function S(x,E,T){return E&&g(x.prototype,E),T&&g(x,T),x}var m=[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],p=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=0,d,l,a,i,t,o;d=1<<16,l=1<<24,a=d|l,i=1<<2,t=1<<10,o=i|t;var e=[a|t,f|f,d|f,a|o,a|i,d|o,f|i,d|f,f|t,a|t,a|o,f|t,l|o,a|i,l|f,f|i,f|o,l|t,l|t,d|t,d|t,a|f,a|f,l|o,d|i,l|i,l|i,d|i,f|f,f|o,d|o,l|f,d|f,a|o,f|i,a|f,a|t,l|f,l|f,f|t,a|i,d|f,d|t,l|i,f|t,f|i,l|o,d|o,a|o,d|i,a|f,l|o,l|i,f|o,d|o,a|t,f|o,l|t,l|t,f|f,d|i,d|t,f|f,a|i];d=1<<20,l=1<<31,a=d|l,i=1<<5,t=1<<15,o=i|t;var u=[a|o,l|t,f|t,d|o,d|f,f|i,a|i,l|o,l|i,a|o,a|t,l|f,l|t,d|f,f|i,a|i,d|t,d|i,l|o,f|f,l|f,f|t,d|o,a|f,d|i,l|i,f|f,d|t,f|o,a|t,a|f,f|o,f|f,d|o,a|i,d|f,l|o,a|f,a|t,f|t,a|f,l|t,f|i,a|o,d|o,f|i,f|t,l|f,f|o,a|t,d|f,l|i,d|i,l|o,l|i,d|i,d|t,f|f,l|t,f|o,l|f,a|i,a|o,d|t];d=1<<17,l=1<<27,a=d|l,i=1<<3,t=1<<9,o=i|t;var r=[f|o,a|t,f|f,a|i,l|t,f|f,d|o,l|t,d|i,l|i,l|i,d|f,a|o,d|i,a|f,f|o,l|f,f|i,a|t,f|t,d|t,a|f,a|i,d|o,l|o,d|t,d|f,l|o,f|i,a|o,f|t,l|f,a|t,l|f,d|i,f|o,d|f,a|t,l|t,f|f,f|t,d|i,a|o,l|t,l|i,f|t,f|f,a|i,l|o,d|f,l|f,a|o,f|i,d|o,d|t,l|i,a|f,l|o,f|o,a|f,d|o,f|i,a|i,d|t];d=1<<13,l=1<<23,a=d|l,i=1<<0,t=1<<7,o=i|t;var s=[a|i,d|o,d|o,f|t,a|t,l|o,l|i,d|i,f|f,a|f,a|f,a|o,f|o,f|f,l|t,l|i,f|i,d|f,l|f,a|i,f|t,l|f,d|i,d|t,l|o,f|i,d|t,l|t,d|f,a|t,a|o,f|o,l|t,l|i,a|f,a|o,f|o,f|f,f|f,a|f,d|t,l|t,l|o,f|i,a|i,d|o,d|o,f|t,a|o,f|o,f|i,d|f,l|i,d|i,a|t,l|o,d|i,d|t,l|f,a|i,f|t,l|f,d|f,a|t];d=1<<25,l=1<<30,a=d|l,i=1<<8,t=1<<19,o=i|t;var c=[f|i,d|o,d|t,a|i,f|t,f|i,l|f,d|t,l|o,f|t,d|i,l|o,a|i,a|t,f|o,l|f,d|f,l|t,l|t,f|f,l|i,a|o,a|o,d|i,a|t,l|i,f|f,a|f,d|o,d|f,a|f,f|o,f|t,a|i,f|i,d|f,l|f,d|t,a|i,l|o,d|i,l|f,a|t,d|o,l|o,f|i,d|f,a|t,a|o,f|o,a|f,a|o,d|t,f|f,l|t,a|f,f|o,d|i,l|i,f|t,f|f,l|t,d|o,l|i];d=1<<22,l=1<<29,a=d|l,i=1<<4,t=1<<14,o=i|t;var h=[l|i,a|f,f|t,a|o,a|f,f|i,a|o,d|f,l|t,d|o,d|f,l|i,d|i,l|t,l|f,f|o,f|f,d|i,l|o,f|t,d|t,l|o,f|i,a|i,a|i,f|f,d|o,a|t,f|o,d|t,a|t,l|f,l|t,f|i,a|i,d|t,a|o,d|f,f|o,l|i,d|f,l|t,l|f,f|o,l|i,a|o,d|t,a|f,d|o,a|t,f|f,a|i,f|i,f|t,a|f,d|o,f|t,d|i,l|o,f|f,a|t,l|f,d|i,l|o];d=1<<21,l=1<<26,a=d|l,i=1<<1,t=1<<11,o=i|t;var v=[d|f,a|i,l|o,f|f,f|t,l|o,d|o,a|t,a|o,d|f,f|f,l|i,f|i,l|f,a|i,f|o,l|t,d|o,d|i,l|t,l|i,a|f,a|t,d|i,a|f,f|t,f|o,a|o,d|t,f|i,l|f,d|t,l|f,d|t,d|f,l|o,l|o,a|i,a|i,f|i,d|i,l|f,l|t,d|f,a|t,f|o,d|o,a|t,f|o,l|i,a|o,a|f,d|t,f|f,f|i,a|o,f|f,d|o,a|f,f|t,l|i,l|t,f|t,d|i];d=1<<18,l=1<<28,a=d|l,i=1<<6,t=1<<12,o=i|t;var A=[l|o,f|t,d|f,a|o,l|f,l|o,f|i,l|f,d|i,a|f,a|o,d|t,a|t,d|o,f|t,f|i,a|f,l|i,l|t,f|o,d|t,d|i,a|i,a|t,f|o,f|f,f|f,a|i,l|i,l|t,d|o,d|f,d|o,d|f,a|t,f|t,f|i,a|i,f|t,d|o,l|t,f|i,l|i,a|f,a|i,l|f,d|f,l|o,f|f,a|o,d|i,l|i,a|f,l|t,l|o,f|f,a|o,d|t,d|t,f|o,f|o,d|i,l|f,a|t],b=function(){function x(E){y(this,x),this.keys=[];for(var T=[],_=[],C=[],w=0,O=56;w<56;++w,O-=8){O+=O<-5?65:O<-3?31:O<-1?63:O===27?35:0;var I=O&7;T[w]=(E[O>>>3]&1<<I)!==0?1:0}for(var k=0;k<16;++k){var M=k<<1,U=M+1;C[M]=C[U]=0;for(var P=28;P<59;P+=28)for(var X=P-28;X<P;++X){var F=X+p[k];_[X]=F<P?T[F]:T[F-28]}for(var j=0;j<24;++j)_[m[j]]!==0&&(C[M]|=1<<23-j),_[m[j+24]]!==0&&(C[U]|=1<<23-j)}for(var K=0,z=0,V=0;K<16;++K){var Q=C[z++],G=C[z++];this.keys[V]=(Q&16515072)<<6,this.keys[V]|=(Q&4032)<<10,this.keys[V]|=(G&16515072)>>>10,this.keys[V]|=(G&4032)>>>6,++V,this.keys[V]=(Q&258048)<<12,this.keys[V]|=(Q&63)<<16,this.keys[V]|=(G&258048)>>>4,this.keys[V]|=G&63,++V}}return S(x,[{key:"enc8",value:function(T){var _=T.slice(),C=0,w,O,I;w=_[C++]<<24|_[C++]<<16|_[C++]<<8|_[C++],O=_[C++]<<24|_[C++]<<16|_[C++]<<8|_[C++],I=(w>>>4^O)&252645135,O^=I,w^=I<<4,I=(w>>>16^O)&65535,O^=I,w^=I<<16,I=(O>>>2^w)&858993459,w^=I,O^=I<<2,I=(O>>>8^w)&16711935,w^=I,O^=I<<8,O=O<<1|O>>>31&1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<1|w>>>31&1;for(var k=0,M=0;k<8;++k){I=O<<28|O>>>4,I^=this.keys[M++];var U=v[I&63];U|=c[I>>>8&63],U|=r[I>>>16&63],U|=e[I>>>24&63],I=O^this.keys[M++],U|=A[I&63],U|=h[I>>>8&63],U|=s[I>>>16&63],U|=u[I>>>24&63],w^=U,I=w<<28|w>>>4,I^=this.keys[M++],U=v[I&63],U|=c[I>>>8&63],U|=r[I>>>16&63],U|=e[I>>>24&63],I=w^this.keys[M++],U|=A[I&63],U|=h[I>>>8&63],U|=s[I>>>16&63],U|=u[I>>>24&63],O^=U}for(O=O<<31|O>>>1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<31|w>>>1,I=(w>>>8^O)&16711935,O^=I,w^=I<<8,I=(w>>>2^O)&858993459,O^=I,w^=I<<2,I=(O>>>16^w)&65535,w^=I,O^=I<<16,I=(O>>>4^w)&252645135,w^=I,O^=I<<4,I=[O,w],C=0;C<8;C++)_[C]=(I[C>>>2]>>>8*(3-C%4))%256,_[C]<0&&(_[C]+=256);return _}},{key:"encrypt",value:function(T){return this.enc8(T.slice(0,8)).concat(this.enc8(T.slice(8,16)))}}]),x}();D.default=b},iXHM:function(R,D){var n="";typeof navigator!="undefined"&&(n=navigator.platform||"");var y={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:n.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};R.exports=y},iXp4:function(R,D,n){var y=n("ItGF"),g=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function S(m){return y.browser.ie&&y.browser.version>=11?function(){var p=this.__clipPaths,f=this.style,d;if(p)for(var l=0;l<p.length;l++){var a=p[l],i=a&&a.shape,t=a&&a.type;if(i&&(t==="sector"&&i.startAngle===i.endAngle||t==="rect"&&(!i.width||!i.height))){for(var o=0;o<g.length;o++)g[o][2]=f[g[o][0]],f[g[o][0]]=g[o][1];d=!0;break}}if(m.apply(this,arguments),d)for(var o=0;o<g.length;o++)f[g[o][0]]=g[o][2]}:m}R.exports=S},iYpf:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("ZLWo")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="FolderOpenOutlined";var i=m.forwardRef(a);D.default=i},ieMj:function(R,D,n){var y=n("OELB"),g=n("7aKB"),S=n("4NgU"),m=n("lE7J"),p=y.round,f=S.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(l,a){var i=this._extent;isNaN(l)||(i[0]=parseFloat(l)),isNaN(a)||(i[1]=parseFloat(a))},unionExtent:function(l){var a=this._extent;l[0]<a[0]&&(a[0]=l[0]),l[1]>a[1]&&(a[1]=l[1]),f.prototype.setExtent.call(this,a[0],a[1])},getInterval:function(){return this._interval},setInterval:function(l){this._interval=l,this._niceExtent=this._extent.slice(),this._intervalPrecision=m.getIntervalPrecision(l)},getTicks:function(l){var a=this._interval,i=this._extent,t=this._niceExtent,o=this._intervalPrecision,e=[];if(!a)return e;var u=1e4;i[0]<t[0]&&(l?e.push(p(t[0]-a,o)):e.push(i[0]));for(var r=t[0];r<=t[1]&&!(e.push(r),r=p(r+a,o),r===e[e.length-1]);)if(e.length>u)return[];var s=e.length?e[e.length-1]:t[1];return i[1]>s&&(l?e.push(p(s+a,o)):e.push(i[1])),e},getMinorTicks:function(l){for(var a=this.getTicks(!0),i=[],t=this.getExtent(),o=1;o<a.length;o++){for(var e=a[o],u=a[o-1],r=0,s=[],c=e-u,h=c/l;r<l-1;){var v=y.round(u+(r+1)*h);v>t[0]&&v<t[1]&&s.push(v),r++}i.push(s)}return i},getLabel:function(l,a){if(l==null)return"";var i=a&&a.precision;return i==null?i=y.getPrecisionSafe(l)||0:i==="auto"&&(i=this._intervalPrecision),l=p(l,i,!0),g.addCommas(l)},niceTicks:function(l,a,i){l=l||5;var t=this._extent,o=t[1]-t[0];if(!isFinite(o))return;o<0&&(o=-o,t.reverse());var e=m.intervalScaleNiceTicks(t,l,a,i);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(l){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var i=a[0];l.fixMax||(a[1]+=i/2),a[0]-=i/2}else a[1]=1;var t=a[1]-a[0];isFinite(t)||(a[0]=0,a[1]=1),this.niceTicks(l.splitNumber,l.minInterval,l.maxInterval);var o=this._interval;l.fixMin||(a[0]=p(Math.floor(a[0]/o)*o)),l.fixMax||(a[1]=p(Math.ceil(a[1]/o)*o))}});f.create=function(){return new f};var d=f;R.exports=d},j5sG:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=n("24YM"),g=S(n("NohK"));function S(p){return p&&p.__esModule?p:{default:p}}var m=function(f,d){var l=void 0,a=[],i=(0,g.default)(function(){a.forEach(function(r){r(f)})}),t=function(){var s=new ResizeObserver(i);return s.observe(f),i(),s},o=function(s){l||(l=t()),a.indexOf(s)===-1&&a.push(s)},e=function(){l.disconnect(),a=[],l=void 0,f.removeAttribute(y.SizeSensorId),d&&d()},u=function(s){var c=a.indexOf(s);c!==-1&&a.splice(c,1),a.length===0&&l&&e()};return{element:f,bind:o,destroy:e,unbind:u}};D.createSensor=m},jCoz:function(R,D,n){var y=n("bYtY"),g=n("4NgU"),S=n("OELB"),m=n("ieMj"),p=g.prototype,f=m.prototype,d=S.getPrecisionSafe,l=S.round,a=Math.floor,i=Math.ceil,t=Math.pow,o=Math.log,e=g.extend({type:"log",base:10,$constructor:function(){g.apply(this,arguments),this._originalScale=new m},getTicks:function(s){var c=this._originalScale,h=this._extent,v=c.getExtent();return y.map(f.getTicks.call(this,s),function(A){var b=S.round(t(this.base,A));return b=A===h[0]&&c.__fixMin?u(b,v[0]):b,b=A===h[1]&&c.__fixMax?u(b,v[1]):b,b},this)},getMinorTicks:f.getMinorTicks,getLabel:f.getLabel,scale:function(s){return s=p.scale.call(this,s),t(this.base,s)},setExtent:function(s,c){var h=this.base;s=o(s)/o(h),c=o(c)/o(h),f.setExtent.call(this,s,c)},getExtent:function(){var s=this.base,c=p.getExtent.call(this);c[0]=t(s,c[0]),c[1]=t(s,c[1]);var h=this._originalScale,v=h.getExtent();return h.__fixMin&&(c[0]=u(c[0],v[0])),h.__fixMax&&(c[1]=u(c[1],v[1])),c},unionExtent:function(s){this._originalScale.unionExtent(s);var c=this.base;s[0]=o(s[0])/o(c),s[1]=o(s[1])/o(c),p.unionExtent.call(this,s)},unionExtentFromData:function(s,c){this.unionExtent(s.getApproximateExtent(c))},niceTicks:function(s){s=s||10;var c=this._extent,h=c[1]-c[0];if(h===Infinity||h<=0)return;var v=S.quantity(h),A=s/h*v;for(A<=.5&&(v*=10);!isNaN(v)&&Math.abs(v)<1&&Math.abs(v)>0;)v*=10;var b=[S.round(i(c[0]/v)*v),S.round(a(c[1]/v)*v)];this._interval=v,this._niceExtent=b},niceExtent:function(s){f.niceExtent.call(this,s);var c=this._originalScale;c.__fixMin=s.fixMin,c.__fixMax=s.fixMax}});y.each(["contain","normalize"],function(s){e.prototype[s]=function(c){return c=o(c)/o(this.base),p[s].call(this,c)}}),e.create=function(){return new e};function u(s,c){return l(s,d(c))}var r=e;R.exports=r},jN4g:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="CloseCircleFilled";var d=D.a=g.forwardRef(f)},jO45:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="CheckCircleFilled";var d=D.a=g.forwardRef(f)},jO9C:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.Iso97971={pad:function(S,m){S.concat(y.lib.WordArray.create([2147483648],1)),y.pad.ZeroPadding.pad(S,m)},unpad:function(S){y.pad.ZeroPadding.unpad(S),S.sigBytes--}},y.pad.Iso97971})},jTL6:function(R,D,n){var y=n("y+Vt"),g=y.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(m,p){var f=p.cx,d=p.cy,l=Math.max(p.r,0),a=p.startAngle,i=p.endAngle,t=p.clockwise,o=Math.cos(a),e=Math.sin(a);m.moveTo(o*l+f,e*l+d),m.arc(f,d,l,a,i,!t)}});R.exports=g},je13:function(R,D,n){var y=n("5nXd"),g=n("gRFJ"),S=[n("uQRt")];R.exports=y.createStore(g,S)},jett:function(R,D,n){var y=n("ProS");n("VSLf"),n("oBaM"),n("FGaS");var g=n("mOdp"),S=n("f5Yq"),m=n("hw6D"),p=n("0/Rx"),f=n("eJH7");y.registerVisual(g("radar")),y.registerVisual(S("radar","circle")),y.registerLayout(m),y.registerProcessor(p("radar")),y.registerPreprocessor(f)},jhfD:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="ArrowLeftOutlined";var d=D.a=g.forwardRef(f)},jkPA:function(R,D,n){var y=n("bYtY"),g=y.createHashMap,S=y.isObject,m=y.map;function p(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this._map}p.createByAxisModel=function(i){var t=i.option,o=t.data,e=o&&m(o,l);return new p({categories:e,needCollect:!e,deduplication:t.dedplication!==!1})};var f=p.prototype;f.getOrdinal=function(i){return d(this).get(i)},f.parseAndCollect=function(i){var t,o=this._needCollect;if(typeof i!="string"&&!o)return i;if(o&&!this._deduplication)return t=this.categories.length,this.categories[t]=i,t;var e=d(this);return t=e.get(i),t==null&&(o?(t=this.categories.length,this.categories[t]=i,e.set(i,t)):t=NaN),t};function d(i){return i._map||(i._map=g(i.categories))}function l(i){return S(i)&&i.value!=null?i.value:i+""}var a=p;R.exports=a},jndi:function(R,D,n){var y=n("bYtY"),g=n("Qe9p"),S=n("YXkt"),m=n("OELB"),p=n("IwbS"),f=n("kj2x"),d=n("iPDy"),l=function(r,s,c,h){var v=f.dataTransform(r,h[0]),A=f.dataTransform(r,h[1]),b=y.retrieve,x=v.coord,E=A.coord;x[0]=b(x[0],-Infinity),x[1]=b(x[1],-Infinity),E[0]=b(E[0],Infinity),E[1]=b(E[1],Infinity);var T=y.mergeAll([{},v,A]);return T.coord=[v.coord,A.coord],T.x0=v.x,T.y0=v.y,T.x1=A.x,T.y1=A.y,T};function a(r){return!isNaN(r)&&!isFinite(r)}function i(r,s,c,h){var v=1-r;return a(s[v])&&a(c[v])}function t(r,s){var c=s.coord[0],h=s.coord[1];return r.type==="cartesian2d"&&(c&&h&&(i(1,c,h,r)||i(0,c,h,r)))?!0:f.dataFilter(r,{coord:c,x:s.x0,y:s.y0})||f.dataFilter(r,{coord:h,x:s.x1,y:s.y1})}function o(r,s,c,h,v){var A=h.coordinateSystem,b=r.getItemModel(s),x,E=m.parsePercent(b.get(c[0]),v.getWidth()),T=m.parsePercent(b.get(c[1]),v.getHeight());if(!isNaN(E)&&!isNaN(T))x=[E,T];else{if(h.getMarkerPosition)x=h.getMarkerPosition(r.getValues(c,s));else{var _=r.get(c[0],s),C=r.get(c[1],s),w=[_,C];A.clampData&&A.clampData(w,w),x=A.dataToPoint(w,!0)}if(A.type==="cartesian2d"){var O=A.getAxis("x"),I=A.getAxis("y"),_=r.get(c[0],s),C=r.get(c[1],s);a(_)?x[0]=O.toGlobalCoord(O.getExtent()[c[0]==="x0"?0:1]):a(C)&&(x[1]=I.toGlobalCoord(I.getExtent()[c[1]==="y0"?0:1]))}isNaN(E)||(x[0]=E),isNaN(T)||(x[1]=T)}return x}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];d.extend({type:"markArea",updateTransform:function(r,s,c){s.eachSeries(function(h){var v=h.markAreaModel;if(v){var A=v.getData();A.each(function(b){var x=y.map(e,function(T){return o(A,b,T,h,c)});A.setItemLayout(b,x);var E=A.getItemGraphicEl(b);E.setShape("points",x)})}},this)},renderSeries:function(r,s,c,h){var v=r.coordinateSystem,A=r.id,b=r.getData(),x=this.markerGroupMap,E=x.get(A)||x.set(A,{group:new p.Group});this.group.add(E.group),E.__keep=!0;var T=u(v,r,s);s.setData(T),T.each(function(_){T.setItemLayout(_,y.map(e,function(C){return o(T,_,C,r,h)})),T.setItemVisual(_,{color:b.getVisual("color")})}),T.diff(E.__data).add(function(_){var C=new p.Polygon({shape:{points:T.getItemLayout(_)}});T.setItemGraphicEl(_,C),E.group.add(C)}).update(function(_,C){var w=E.__data.getItemGraphicEl(C);p.updateProps(w,{shape:{points:T.getItemLayout(_)}},s,_),E.group.add(w),T.setItemGraphicEl(_,w)}).remove(function(_){var C=E.__data.getItemGraphicEl(_);E.group.remove(C)}).execute(),T.eachItemGraphicEl(function(_,C){var w=T.getItemModel(C),O=w.getModel("label"),I=w.getModel("emphasis.label"),k=T.getItemVisual(C,"color");_.useStyle(y.defaults(w.getModel("itemStyle").getItemStyle(),{fill:g.modifyAlpha(k,.4),stroke:k})),_.hoverStyle=w.getModel("emphasis.itemStyle").getItemStyle(),p.setLabelStyle(_.style,_.hoverStyle,O,I,{labelFetcher:s,labelDataIndex:C,defaultText:T.getName(C)||"",isRectText:!0,autoColor:k}),p.setHoverStyle(_,{}),_.dataModel=s}),E.__data=T,E.group.silent=s.get("silent")||r.get("silent")}});function u(r,s,c){var h,v,A=["x0","y0","x1","y1"];r?(h=y.map(r&&r.dimensions,function(E){var T=s.getData(),_=T.getDimensionInfo(T.mapDimension(E))||{};return y.defaults({name:E},_)}),v=new S(y.map(A,function(E,T){return{name:E,type:h[T%2].type}}),c)):(h=[{name:"value",type:"float"}],v=new S(h,c));var b=y.map(c.get("data"),y.curry(l,s,r,c));r&&(b=y.filter(b,y.curry(t,r)));var x=r?function(E,T,_,C){return E.coord[Math.floor(C/2)][C%2]}:function(E){return E.value};return v.initData(b,null,x),v.hasItemOption=!0,v}},"jsU+":function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("IUWy"),m=y.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){m.superApply(this,"optionUpdated",arguments),g.each(this.option.feature,function(f,d){var l=S.get(d);l&&g.merge(f,l.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}}}),p=m;R.exports=p},jtI2:function(R,D,n){n("SMc4");var y=n("bLfw"),g=y.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"}});R.exports=g},juDX:function(R,D,n){n("P47w");var y=n("aX58"),g=y.registerPainter,S=n("3CBa");g("svg",S)},"k+1r":function(R,D,n){var y=n("QkVE");function g(S){var m=y(this,S).delete(S);return this.size-=m?1:0,m}R.exports=g},k5C7:function(R,D,n){n("0JAE"),n("g7p0"),n("7mYs")},k9D9:function(R,D){var n="original",y="arrayRows",g="objectRows",S="keyedColumns",m="unknown",p="typedArray",f="column",d="row";D.SOURCE_FORMAT_ORIGINAL=n,D.SOURCE_FORMAT_ARRAY_ROWS=y,D.SOURCE_FORMAT_OBJECT_ROWS=g,D.SOURCE_FORMAT_KEYED_COLUMNS=S,D.SOURCE_FORMAT_UNKNOWN=m,D.SOURCE_FORMAT_TYPED_ARRAY=p,D.SERIES_LAYOUT_BY_COLUMN=f,D.SERIES_LAYOUT_BY_ROW=d},kDyi:function(R,D){function n(y){var g=y.findComponents({mainType:"legend"});g&&g.length&&y.filterSeries(function(S){for(var m=0;m<g.length;m++)if(!g[m].isSelected(S.name))return!1;return!0})}R.exports=n},kGiB:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("ABKa"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},kMLO:function(R,D,n){var y=n("XxSj"),g=n("Qe9p"),S=n("bYtY"),m=S.isArray,p="itemStyle",f={seriesType:"treemap",reset:function(r,s,c,h){var v=r.getData().tree,A=v.root,b=r.getModel(p);if(A.isRemoved())return;var x=S.map(v.levelModels,function(E){return E?E.get(p):null});d(A,{},x,b,r.getViewRoot().getAncestors(),r)}};function d(r,s,c,h,v,A){var b=r.getModel(),x=r.getLayout();if(!x||x.invisible||!x.isInView)return;var E=r.getModel(p),T=c[r.depth],_=l(E,s,T,h),C=E.get("borderColor"),w=E.get("borderColorSaturation"),O;w!=null&&(O=a(_,r),C=i(w,O)),r.setVisual("borderColor",C);var I=r.viewChildren;if(!I||!I.length)O=a(_,r),r.setVisual("color",O);else{var k=o(r,b,x,E,_,I);S.each(I,function(M,U){if(M.depth>=v.length||M===v[M.depth]){var P=u(b,_,M,U,k,A);d(M,P,c,h,v,A)}})}}function l(r,s,c,h){var v=S.extend({},s);return S.each(["color","colorAlpha","colorSaturation"],function(A){var b=r.get(A,!0);b==null&&c&&(b=c[A]),b==null&&(b=s[A]),b==null&&(b=h.get(A)),b!=null&&(v[A]=b)}),v}function a(r){var s=t(r,"color");if(s){var c=t(r,"colorAlpha"),h=t(r,"colorSaturation");return h&&(s=g.modifyHSL(s,null,null,h)),c&&(s=g.modifyAlpha(s,c)),s}}function i(r,s){return s!=null?g.modifyHSL(s,null,null,r):null}function t(r,s){var c=r[s];if(c!=null&&c!=="none")return c}function o(r,s,c,h,v,A){if(!A||!A.length)return;var b=e(s,"color")||v.color!=null&&v.color!=="none"&&(e(s,"colorAlpha")||e(s,"colorSaturation"));if(!b)return;var x=s.get("visualMin"),E=s.get("visualMax"),T=c.dataExtent.slice();x!=null&&x<T[0]&&(T[0]=x),E!=null&&E>T[1]&&(T[1]=E);var _=s.get("colorMappingBy"),C={type:b.name,dataExtent:T,visual:b.range};C.type==="color"&&(_==="index"||_==="id")?(C.mappingMethod="category",C.loop=!0):C.mappingMethod="linear";var w=new y(C);return w.__drColorMappingBy=_,w}function e(r,s){var c=r.get(s);return m(c)&&c.length?{name:s,range:c}:null}function u(r,s,c,h,v,A){var b=S.extend({},s);if(v){var x=v.type,E=x==="color"&&v.__drColorMappingBy,T=E==="index"?h:E==="id"?A.mapIdToIndex(c.getId()):c.getValue(r.get("visualDimension"));b[x]=v.mapValueToVisual(T)}return b}R.exports=f},"kVK+":function(R,D){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */D.read=function(n,y,g,S,m){var p,f,d=m*8-S-1,l=(1<<d)-1,a=l>>1,i=-7,t=g?m-1:0,o=g?-1:1,e=n[y+t];for(t+=o,p=e&(1<<-i)-1,e>>=-i,i+=d;i>0;p=p*256+n[y+t],t+=o,i-=8);for(f=p&(1<<-i)-1,p>>=-i,i+=S;i>0;f=f*256+n[y+t],t+=o,i-=8);if(p===0)p=1-a;else{if(p===l)return f?NaN:(e?-1:1)*Infinity;f=f+Math.pow(2,S),p=p-a}return(e?-1:1)*f*Math.pow(2,p-S)},D.write=function(n,y,g,S,m,p){var f,d,l,a=p*8-m-1,i=(1<<a)-1,t=i>>1,o=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=S?0:p-1,u=S?1:-1,r=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===Infinity?(d=isNaN(y)?1:0,f=i):(f=Math.floor(Math.log(y)/Math.LN2),y*(l=Math.pow(2,-f))<1&&(f--,l*=2),f+t>=1?y+=o/l:y+=o*Math.pow(2,1-t),y*l>=2&&(f++,l/=2),f+t>=i?(d=0,f=i):f+t>=1?(d=(y*l-1)*Math.pow(2,m),f=f+t):(d=y*Math.pow(2,t-1)*Math.pow(2,m),f=0));m>=8;n[g+e]=d&255,e+=u,d/=256,m-=8);for(f=f<<m|d,a+=m;a>0;n[g+e]=f&255,e+=u,f/=256,a-=8);n[g+e-u]|=r*128}},kekF:function(R,D){function n(y,g){return function(S){return y(g(S))}}R.exports=n},kj2x:function(R,D,n){var y=n("bYtY"),g=n("OELB"),S=n("7hqr"),m=S.isDimensionStacked,p=y.indexOf;function f(c){return!(isNaN(parseFloat(c.x))&&isNaN(parseFloat(c.y)))}function d(c){return!isNaN(parseFloat(c.x))&&!isNaN(parseFloat(c.y))}function l(c,h,v,A,b,x){var E=[],T=m(h,A),_=T?h.getCalculationInfo("stackResultDimension"):A,C=s(h,_,c),w=h.indicesOfNearest(_,C)[0];E[b]=h.get(v,w),E[x]=h.get(_,w);var O=h.get(A,w),I=g.getPrecision(h.get(A,w));return I=Math.min(I,20),I>=0&&(E[x]=+E[x].toFixed(I)),[E,O]}var a=y.curry,i={min:a(l,"min"),max:a(l,"max"),average:a(l,"average")};function t(c,h){var v=c.getData(),A=c.coordinateSystem;if(h&&!d(h)&&!y.isArray(h.coord)&&A){var b=A.dimensions,x=o(h,v,A,c);if(h=y.clone(h),h.type&&i[h.type]&&x.baseAxis&&x.valueAxis){var E=p(b,x.baseAxis.dim),T=p(b,x.valueAxis.dim),_=i[h.type](v,x.baseDataDim,x.valueDataDim,E,T);h.coord=_[0],h.value=_[1]}else{for(var C=[h.xAxis!=null?h.xAxis:h.radiusAxis,h.yAxis!=null?h.yAxis:h.angleAxis],w=0;w<2;w++)i[C[w]]&&(C[w]=s(v,v.mapDimension(b[w]),C[w]));h.coord=C}}return h}function o(c,h,v,A){var b={};return c.valueIndex!=null||c.valueDim!=null?(b.valueDataDim=c.valueIndex!=null?h.getDimension(c.valueIndex):c.valueDim,b.valueAxis=v.getAxis(e(A,b.valueDataDim)),b.baseAxis=v.getOtherAxis(b.valueAxis),b.baseDataDim=h.mapDimension(b.baseAxis.dim)):(b.baseAxis=A.getBaseAxis(),b.valueAxis=v.getOtherAxis(b.baseAxis),b.baseDataDim=h.mapDimension(b.baseAxis.dim),b.valueDataDim=h.mapDimension(b.valueAxis.dim)),b}function e(c,h){var v=c.getData(),A=v.dimensions;h=v.getDimension(h);for(var b=0;b<A.length;b++){var x=v.getDimensionInfo(A[b]);if(x.name===h)return x.coordDim}}function u(c,h){return c&&c.containData&&h.coord&&!f(h)?c.containData(h.coord):!0}function r(c,h,v,A){return A<2?c.coord&&c.coord[A]:c.value}function s(c,h,v){if(v==="average"){var A=0,b=0;return c.each(h,function(x,E){isNaN(x)||(A+=x,b++)}),A/b}else return v==="median"?c.getMedian(h):c.getDataExtent(h,!0)[v==="max"?1:0]}D.dataTransform=t,D.getAxisInfo=o,D.dataFilter=u,D.dimValueGetter=r,D.numCalculate=s},knOB:function(R,D,n){var y=n("bYtY"),g=n("hM6l");function S(p,f){g.call(this,"radius",p,f),this.type="category"}S.prototype={constructor:S,pointToData:function(p,f){return this.polar.pointToData(p,f)[this.dim==="radius"?0:1]},dataToRadius:g.prototype.dataToCoord,radiusToData:g.prototype.coordToData},y.inherits(S,g);var m=S;R.exports=m},ko1b:function(R,D,n){var y=n("bYtY"),g=n("T4UG"),S=n("Bsck"),m=n("Qxkt"),p=n("7aKB"),f=p.encodeHTML,d=p.addCommas,l=n("VaxA"),a=l.wrapTreePathInfo,i=g.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,u){var r={name:e.name,children:e.data};t(r);var s=e.levels||[];s=e.levels=o(s,u);var c=y.map(s||[],function(A){return new m(A,this,u)},this),h=S.createTree(r,this,null,v);function v(A){A.wrapMethod("getItemModel",function(b,x){var E=h.getNodeByDataIndex(x),T=c[E.depth];return T&&(b.parentModel=T),b})}return h.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var u=this.getData(),r=this.getRawValue(e),s=y.isArray(r)?d(r[0]):d(r),c=u.getName(e);return f(c+": "+s)},getDataParams:function(e){var u=g.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return u.treePathInfo=a(r,this),u},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},y.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var u=this._idIndexMap;u||(u=this._idIndexMap=y.createHashMap(),this._idIndexMapCount=0);var r=u.get(e);return r==null&&u.set(e,r=this._idIndexMapCount++),r},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var u=this.getRawData().tree.root;(!e||e!==u&&!u.contains(e))&&(this._viewRoot=u)}});function t(e){var u=0;y.each(e.children,function(s){t(s);var c=s.value;y.isArray(c)&&(c=c[0]),u+=c});var r=e.value;y.isArray(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=u),r<0&&(r=0),y.isArray(e.value)?e.value[0]=r:e.value=r}function o(e,u){var r=u.get("color");if(!r)return;e=e||[];var s;if(y.each(e,function(h){var v=new m(h),A=v.get("color");(v.get("itemStyle.color")||A&&A!=="none")&&(s=!0)}),!s){var c=e[0]||(e[0]={});c.color=r.slice()}return e}R.exports=i},kzFp:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=D.pick=function(S,m){var p={};return m.forEach(function(f){p[f]=S[f]}),p}},kzvK:function(R,D,n){var y=n("sS/r"),g=y.extend({type:"timeline"});R.exports=g},"l+S1":function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="SearchOutlined";var d=D.a=g.forwardRef(f)},lE7J:function(R,D,n){var y=n("OELB"),g=y.round;function S(d,l,a,i){var t={},o=d[1]-d[0],e=t.interval=y.nice(o/l,!0);a!=null&&e<a&&(e=t.interval=a),i!=null&&e>i&&(e=t.interval=i);var u=t.intervalPrecision=m(e),r=t.niceTickExtent=[g(Math.ceil(d[0]/e)*e,u),g(Math.floor(d[1]/e)*e,u)];return f(r,d),t}function m(d){return y.getPrecisionSafe(d)+2}function p(d,l,a){d[l]=Math.max(Math.min(d[l],a[1]),a[0])}function f(d,l){!isFinite(d[0])&&(d[0]=l[0]),!isFinite(d[1])&&(d[1]=l[1]),p(d,0,l),p(d,1,l),d[0]>d[1]&&(d[0]=d[1])}D.intervalScaleNiceTicks=S,D.getIntervalPrecision=m,D.fixExtent=f},lELe:function(R,D,n){var y=n("bYtY");function g(S){var m=[];y.each(S.series,function(p){p&&p.type==="map"&&(m.push(p),p.map=p.map||p.mapType,y.defaults(p,p.mapLocation))})}R.exports=g},lLGD:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("nVfU"),m=S.layout,p=S.largeLayout;n("Wqna"),n("F7hV"),n("Z8zF"),n("Ae16"),y.registerLayout(y.PRIORITY.VISUAL.LAYOUT,g.curry(m,"bar")),y.registerLayout(y.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,p),y.registerVisual({seriesType:"bar",reset:function(f){f.getData().setVisual("legendSymbol","roundRect")}})},lMfh:function(R,D,n){(function(y,g){R.exports=g()})(this,function(){"use strict";function y(q){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},y(q)}var g=/^\s+/,S=/\s+$/;function m(q,se){if(q=q||"",se=se||{},q instanceof m)return q;if(!(this instanceof m))return new m(q,se);var re=p(q);this._originalInput=q,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=Math.round(100*this._a)/100,this._format=se.format||re.format,this._gradientType=se.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=re.ok}m.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 se=this.toRgb();return(se.r*299+se.g*587+se.b*114)/1e3},getLuminance:function(){var se=this.toRgb(),re,we,Oe,Me,Qe,Ve;return re=se.r/255,we=se.g/255,Oe=se.b/255,re<=.03928?Me=re/12.92:Me=Math.pow((re+.055)/1.055,2.4),we<=.03928?Qe=we/12.92:Qe=Math.pow((we+.055)/1.055,2.4),Oe<=.03928?Ve=Oe/12.92:Ve=Math.pow((Oe+.055)/1.055,2.4),.2126*Me+.7152*Qe+.0722*Ve},setAlpha:function(se){return this._a=I(se),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var se=a(this._r,this._g,this._b);return{h:se.h*360,s:se.s,v:se.v,a:this._a}},toHsvString:function(){var se=a(this._r,this._g,this._b),re=Math.round(se.h*360),we=Math.round(se.s*100),Oe=Math.round(se.v*100);return this._a==1?"hsv("+re+", "+we+"%, "+Oe+"%)":"hsva("+re+", "+we+"%, "+Oe+"%, "+this._roundA+")"},toHsl:function(){var se=d(this._r,this._g,this._b);return{h:se.h*360,s:se.s,l:se.l,a:this._a}},toHslString:function(){var se=d(this._r,this._g,this._b),re=Math.round(se.h*360),we=Math.round(se.s*100),Oe=Math.round(se.l*100);return this._a==1?"hsl("+re+", "+we+"%, "+Oe+"%)":"hsla("+re+", "+we+"%, "+Oe+"%, "+this._roundA+")"},toHex:function(se){return t(this._r,this._g,this._b,se)},toHexString:function(se){return"#"+this.toHex(se)},toHex8:function(se){return o(this._r,this._g,this._b,this._a,se)},toHex8String:function(se){return"#"+this.toHex8(se)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(k(this._r,255)*100)+"%",g:Math.round(k(this._g,255)*100)+"%",b:Math.round(k(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(k(this._r,255)*100)+"%, "+Math.round(k(this._g,255)*100)+"%, "+Math.round(k(this._b,255)*100)+"%)":"rgba("+Math.round(k(this._r,255)*100)+"%, "+Math.round(k(this._g,255)*100)+"%, "+Math.round(k(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:w[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(se){var re="#"+e(this._r,this._g,this._b,this._a),we=re,Oe=this._gradientType?"GradientType = 1, ":"";if(se){var Me=m(se);we="#"+e(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+Oe+"startColorstr="+re+",endColorstr="+we+")"},toString:function(se){var re=!!se;se=se||this._format;var we=!1,Oe=this._a<1&&this._a>=0,Me=!re&&Oe&&(se==="hex"||se==="hex6"||se==="hex3"||se==="hex4"||se==="hex8"||se==="name");return Me?se==="name"&&this._a===0?this.toName():this.toRgbString():(se==="rgb"&&(we=this.toRgbString()),se==="prgb"&&(we=this.toPercentageRgbString()),(se==="hex"||se==="hex6")&&(we=this.toHexString()),se==="hex3"&&(we=this.toHexString(!0)),se==="hex4"&&(we=this.toHex8String(!0)),se==="hex8"&&(we=this.toHex8String()),se==="name"&&(we=this.toName()),se==="hsl"&&(we=this.toHslString()),se==="hsv"&&(we=this.toHsvString()),we||this.toHexString())},clone:function(){return m(this.toString())},_applyModification:function(se,re){var we=se.apply(null,[this].concat([].slice.call(re)));return this._r=we._r,this._g=we._g,this._b=we._b,this.setAlpha(we._a),this},lighten:function(){return this._applyModification(c,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(r,arguments)},greyscale:function(){return this._applyModification(s,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(se,re){return se.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},m.fromRatio=function(q,se){if(y(q)=="object"){var re={};for(var we in q)q.hasOwnProperty(we)&&(we==="a"?re[we]=q[we]:re[we]=j(q[we]));q=re}return m(q,se)};function p(q){var se={r:0,g:0,b:0},re=1,we=null,Oe=null,Me=null,Qe=!1,Ve=!1;return typeof q=="string"&&(q=G(q)),y(q)=="object"&&(Q(q.r)&&Q(q.g)&&Q(q.b)?(se=f(q.r,q.g,q.b),Qe=!0,Ve=String(q.r).substr(-1)==="%"?"prgb":"rgb"):Q(q.h)&&Q(q.s)&&Q(q.v)?(we=j(q.s),Oe=j(q.v),se=i(q.h,we,Oe),Qe=!0,Ve="hsv"):Q(q.h)&&Q(q.s)&&Q(q.l)&&(we=j(q.s),Me=j(q.l),se=l(q.h,we,Me),Qe=!0,Ve="hsl"),q.hasOwnProperty("a")&&(re=q.a)),re=I(re),{ok:Qe,format:q.format||Ve,r:Math.min(255,Math.max(se.r,0)),g:Math.min(255,Math.max(se.g,0)),b:Math.min(255,Math.max(se.b,0)),a:re}}function f(q,se,re){return{r:k(q,255)*255,g:k(se,255)*255,b:k(re,255)*255}}function d(q,se,re){q=k(q,255),se=k(se,255),re=k(re,255);var we=Math.max(q,se,re),Oe=Math.min(q,se,re),Me,Qe,Ve=(we+Oe)/2;if(we==Oe)Me=Qe=0;else{var dt=we-Oe;Qe=Ve>.5?dt/(2-we-Oe):dt/(we+Oe);switch(we){case q:Me=(se-re)/dt+(se<re?6:0);break;case se:Me=(re-q)/dt+2;break;case re:Me=(q-se)/dt+4;break}Me/=6}return{h:Me,s:Qe,l:Ve}}function l(q,se,re){var we,Oe,Me;q=k(q,360),se=k(se,100),re=k(re,100);function Qe(Fe,ue,et){return et<0&&(et+=1),et>1&&(et-=1),et<1/6?Fe+(ue-Fe)*6*et:et<1/2?ue:et<2/3?Fe+(ue-Fe)*(2/3-et)*6:Fe}if(se===0)we=Oe=Me=re;else{var Ve=re<.5?re*(1+se):re+se-re*se,dt=2*re-Ve;we=Qe(dt,Ve,q+1/3),Oe=Qe(dt,Ve,q),Me=Qe(dt,Ve,q-1/3)}return{r:we*255,g:Oe*255,b:Me*255}}function a(q,se,re){q=k(q,255),se=k(se,255),re=k(re,255);var we=Math.max(q,se,re),Oe=Math.min(q,se,re),Me,Qe,Ve=we,dt=we-Oe;if(Qe=we===0?0:dt/we,we==Oe)Me=0;else{switch(we){case q:Me=(se-re)/dt+(se<re?6:0);break;case se:Me=(re-q)/dt+2;break;case re:Me=(q-se)/dt+4;break}Me/=6}return{h:Me,s:Qe,v:Ve}}function i(q,se,re){q=k(q,360)*6,se=k(se,100),re=k(re,100);var we=Math.floor(q),Oe=q-we,Me=re*(1-se),Qe=re*(1-Oe*se),Ve=re*(1-(1-Oe)*se),dt=we%6,Fe=[re,Qe,Me,Me,Ve,re][dt],ue=[Ve,re,re,Qe,Me,Me][dt],et=[Me,Me,Ve,re,re,Qe][dt];return{r:Fe*255,g:ue*255,b:et*255}}function t(q,se,re,we){var Oe=[F(Math.round(q).toString(16)),F(Math.round(se).toString(16)),F(Math.round(re).toString(16))];return we&&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[0].charAt(0)+Oe[1].charAt(0)+Oe[2].charAt(0):Oe.join("")}function o(q,se,re,we,Oe){var Me=[F(Math.round(q).toString(16)),F(Math.round(se).toString(16)),F(Math.round(re).toString(16)),F(K(we))];return Oe&&Me[0].charAt(0)==Me[0].charAt(1)&&Me[1].charAt(0)==Me[1].charAt(1)&&Me[2].charAt(0)==Me[2].charAt(1)&&Me[3].charAt(0)==Me[3].charAt(1)?Me[0].charAt(0)+Me[1].charAt(0)+Me[2].charAt(0)+Me[3].charAt(0):Me.join("")}function e(q,se,re,we){var Oe=[F(K(we)),F(Math.round(q).toString(16)),F(Math.round(se).toString(16)),F(Math.round(re).toString(16))];return Oe.join("")}m.equals=function(q,se){return!q||!se?!1:m(q).toRgbString()==m(se).toRgbString()},m.random=function(){return m.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function u(q,se){se=se===0?0:se||10;var re=m(q).toHsl();return re.s-=se/100,re.s=M(re.s),m(re)}function r(q,se){se=se===0?0:se||10;var re=m(q).toHsl();return re.s+=se/100,re.s=M(re.s),m(re)}function s(q){return m(q).desaturate(100)}function c(q,se){se=se===0?0:se||10;var re=m(q).toHsl();return re.l+=se/100,re.l=M(re.l),m(re)}function h(q,se){se=se===0?0:se||10;var re=m(q).toRgb();return re.r=Math.max(0,Math.min(255,re.r-Math.round(255*-(se/100)))),re.g=Math.max(0,Math.min(255,re.g-Math.round(255*-(se/100)))),re.b=Math.max(0,Math.min(255,re.b-Math.round(255*-(se/100)))),m(re)}function v(q,se){se=se===0?0:se||10;var re=m(q).toHsl();return re.l-=se/100,re.l=M(re.l),m(re)}function A(q,se){var re=m(q).toHsl(),we=(re.h+se)%360;return re.h=we<0?360+we:we,m(re)}function b(q){var se=m(q).toHsl();return se.h=(se.h+180)%360,m(se)}function x(q,se){if(isNaN(se)||se<=0)throw new Error("Argument to polyad must be a positive number");for(var re=m(q).toHsl(),we=[m(q)],Oe=360/se,Me=1;Me<se;Me++)we.push(m({h:(re.h+Me*Oe)%360,s:re.s,l:re.l}));return we}function E(q){var se=m(q).toHsl(),re=se.h;return[m(q),m({h:(re+72)%360,s:se.s,l:se.l}),m({h:(re+216)%360,s:se.s,l:se.l})]}function T(q,se,re){se=se||6,re=re||30;var we=m(q).toHsl(),Oe=360/re,Me=[m(q)];for(we.h=(we.h-(Oe*se>>1)+720)%360;--se;)we.h=(we.h+Oe)%360,Me.push(m(we));return Me}function _(q,se){se=se||6;for(var re=m(q).toHsv(),we=re.h,Oe=re.s,Me=re.v,Qe=[],Ve=1/se;se--;)Qe.push(m({h:we,s:Oe,v:Me})),Me=(Me+Ve)%1;return Qe}m.mix=function(q,se,re){re=re===0?0:re||50;var we=m(q).toRgb(),Oe=m(se).toRgb(),Me=re/100,Qe={r:(Oe.r-we.r)*Me+we.r,g:(Oe.g-we.g)*Me+we.g,b:(Oe.b-we.b)*Me+we.b,a:(Oe.a-we.a)*Me+we.a};return m(Qe)},m.readability=function(q,se){var re=m(q),we=m(se);return(Math.max(re.getLuminance(),we.getLuminance())+.05)/(Math.min(re.getLuminance(),we.getLuminance())+.05)},m.isReadable=function(q,se,re){var we=m.readability(q,se),Oe,Me;Me=!1,Oe=te(re);switch(Oe.level+Oe.size){case"AAsmall":case"AAAlarge":Me=we>=4.5;break;case"AAlarge":Me=we>=3;break;case"AAAsmall":Me=we>=7;break}return Me},m.mostReadable=function(q,se,re){var we=null,Oe=0,Me,Qe,Ve,dt;re=re||{},Qe=re.includeFallbackColors,Ve=re.level,dt=re.size;for(var Fe=0;Fe<se.length;Fe++)Me=m.readability(q,se[Fe]),Me>Oe&&(Oe=Me,we=m(se[Fe]));return m.isReadable(q,we,{level:Ve,size:dt})||!Qe?we:(re.includeFallbackColors=!1,m.mostReadable(q,["#fff","#000"],re))};var C=m.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"},w=m.hexNames=O(C);function O(q){var se={};for(var re in q)q.hasOwnProperty(re)&&(se[q[re]]=re);return se}function I(q){return q=parseFloat(q),(isNaN(q)||q<0||q>1)&&(q=1),q}function k(q,se){P(q)&&(q="100%");var re=X(q);return q=Math.min(se,Math.max(0,parseFloat(q))),re&&(q=parseInt(q*se,10)/100),Math.abs(q-se)<1e-6?1:q%se/parseFloat(se)}function M(q){return Math.min(1,Math.max(0,q))}function U(q){return parseInt(q,16)}function P(q){return typeof q=="string"&&q.indexOf(".")!=-1&&parseFloat(q)===1}function X(q){return typeof q=="string"&&q.indexOf("%")!=-1}function F(q){return q.length==1?"0"+q:""+q}function j(q){return q<=1&&(q=q*100+"%"),q}function K(q){return Math.round(parseFloat(q)*255).toString(16)}function z(q){return U(q)/255}var V=function(){var q="[-\\+]?\\d+%?",se="[-\\+]?\\d*\\.\\d+%?",re="(?:"+se+")|(?:"+q+")",we="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",Oe="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+we),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+we),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+we),hsva:new RegExp("hsva"+Oe),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 Q(q){return!!V.CSS_UNIT.exec(q)}function G(q){q=q.replace(g,"").replace(S,"").toLowerCase();var se=!1;if(C[q])q=C[q],se=!0;else if(q=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=V.rgb.exec(q))?{r:re[1],g:re[2],b:re[3]}:(re=V.rgba.exec(q))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=V.hsl.exec(q))?{h:re[1],s:re[2],l:re[3]}:(re=V.hsla.exec(q))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=V.hsv.exec(q))?{h:re[1],s:re[2],v:re[3]}:(re=V.hsva.exec(q))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=V.hex8.exec(q))?{r:U(re[1]),g:U(re[2]),b:U(re[3]),a:z(re[4]),format:se?"name":"hex8"}:(re=V.hex6.exec(q))?{r:U(re[1]),g:U(re[2]),b:U(re[3]),format:se?"name":"hex"}:(re=V.hex4.exec(q))?{r:U(re[1]+""+re[1]),g:U(re[2]+""+re[2]),b:U(re[3]+""+re[3]),a:z(re[4]+""+re[4]),format:se?"name":"hex8"}:(re=V.hex3.exec(q))?{r:U(re[1]+""+re[1]),g:U(re[2]+""+re[2]),b:U(re[3]+""+re[3]),format:se?"name":"hex"}:!1}function te(q){var se,re;return q=q||{level:"AA",size:"small"},se=(q.level||"AA").toUpperCase(),re=(q.size||"small").toLowerCase(),se!=="AA"&&se!=="AAA"&&(se="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:se,size:re}}return m})},lNSK:function(R,D,n){"use strict";function y(me){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(vr){return typeof vr}:y=function(vr){return vr&&typeof Symbol=="function"&&vr.constructor===Symbol&&vr!==Symbol.prototype?"symbol":typeof vr},y(me)}Object.defineProperty(D,"__esModule",{value:!0}),D.deflateInit=Ge,D.deflateInit2=Jt,D.deflateReset=Qt,D.deflateResetKeep=pr,D.deflateSetHeader=Ht,D.deflate=pe,D.deflateEnd=oe,D.deflateSetDictionary=ct,D.deflateInfo=D.Z_DEFLATED=D.Z_UNKNOWN=D.Z_DEFAULT_STRATEGY=D.Z_FIXED=D.Z_RLE=D.Z_HUFFMAN_ONLY=D.Z_FILTERED=D.Z_DEFAULT_COMPRESSION=D.Z_BUF_ERROR=D.Z_DATA_ERROR=D.Z_STREAM_ERROR=D.Z_STREAM_END=D.Z_OK=D.Z_BLOCK=D.Z_FINISH=D.Z_FULL_FLUSH=D.Z_PARTIAL_FLUSH=D.Z_NO_FLUSH=void 0;var g=a(n("6BzB")),S=a(n("c5fP")),m=d(n("xlC8")),p=d(n("QV2g")),f=d(n("xSIq"));function d(me){return me&&me.__esModule?me:{default:me}}function l(){if(typeof WeakMap!="function")return null;var me=new WeakMap;return l=function(){return me},me}function a(me){if(me&&me.__esModule)return me;if(me===null||y(me)!=="object"&&typeof me!="function")return{default:me};var Kt=l();if(Kt&&Kt.has(me))return Kt.get(me);var vr={},bt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var or in me)if(Object.prototype.hasOwnProperty.call(me,or)){var _t=bt?Object.getOwnPropertyDescriptor(me,or):null;_t&&(_t.get||_t.set)?Object.defineProperty(vr,or,_t):vr[or]=me[or]}return vr.default=me,Kt&&Kt.set(me,vr),vr}var i=0;D.Z_NO_FLUSH=i;var t=1;D.Z_PARTIAL_FLUSH=t;var o=3;D.Z_FULL_FLUSH=o;var e=4;D.Z_FINISH=e;var u=5;D.Z_BLOCK=u;var r=0;D.Z_OK=r;var s=1;D.Z_STREAM_END=s;var c=-2;D.Z_STREAM_ERROR=c;var h=-3;D.Z_DATA_ERROR=h;var v=-5;D.Z_BUF_ERROR=v;var A=-1;D.Z_DEFAULT_COMPRESSION=A;var b=1;D.Z_FILTERED=b;var x=2;D.Z_HUFFMAN_ONLY=x;var E=3;D.Z_RLE=E;var T=4;D.Z_FIXED=T;var _=0;D.Z_DEFAULT_STRATEGY=_;var C=2;D.Z_UNKNOWN=C;var w=8;D.Z_DEFLATED=w;var O=9,I=15,k=8,M=29,U=256,P=U+1+M,X=30,F=19,j=2*P+1,K=15,z=3,V=258,Q=V+z+1,G=32,te=42,q=69,se=73,re=91,we=103,Oe=113,Me=666,Qe=1,Ve=2,dt=3,Fe=4,ue=3;function et(me,Kt){return me.msg=f.default[Kt],Kt}function he(me){return(me<<1)-(me>4?9:0)}function J(me){for(var Kt=me.length;--Kt>=0;)me[Kt]=0}function Y(me){var Kt=me.state,vr=Kt.pending;if(vr>me.avail_out&&(vr=me.avail_out),vr===0)return;g.arraySet(me.output,Kt.pending_buf,Kt.pending_out,vr,me.next_out),me.next_out+=vr,Kt.pending_out+=vr,me.total_out+=vr,me.avail_out-=vr,Kt.pending-=vr,Kt.pending===0&&(Kt.pending_out=0)}function $(me,Kt){S._tr_flush_block(me,me.block_start>=0?me.block_start:-1,me.strstart-me.block_start,Kt),me.block_start=me.strstart,Y(me.strm)}function de(me,Kt){me.pending_buf[me.pending++]=Kt}function be(me,Kt){me.pending_buf[me.pending++]=Kt>>>8&255,me.pending_buf[me.pending++]=Kt&255}function Te(me,Kt,vr,bt){var or=me.avail_in;return or>bt&&(or=bt),or===0?0:(me.avail_in-=or,g.arraySet(Kt,me.input,me.next_in,or,vr),me.state.wrap===1?me.adler=(0,m.default)(me.adler,Kt,or,vr):me.state.wrap===2&&(me.adler=(0,p.default)(me.adler,Kt,or,vr)),me.next_in+=or,me.total_in+=or,or)}function Be(me,Kt){var vr=me.max_chain_length,bt=me.strstart,or,_t,jt=me.prev_length,ut=me.nice_match,St=me.strstart>me.w_size-Q?me.strstart-(me.w_size-Q):0,mt=me.window,lt=me.w_mask,tt=me.prev,Cr=me.strstart+V,nn=mt[bt+jt-1],mn=mt[bt+jt];me.prev_length>=me.good_match&&(vr>>=2),ut>me.lookahead&&(ut=me.lookahead);do{if(or=Kt,mt[or+jt]!==mn||mt[or+jt-1]!==nn||mt[or]!==mt[bt]||mt[++or]!==mt[bt+1])continue;bt+=2,or++;do;while(mt[++bt]===mt[++or]&&mt[++bt]===mt[++or]&&mt[++bt]===mt[++or]&&mt[++bt]===mt[++or]&&mt[++bt]===mt[++or]&&mt[++bt]===mt[++or]&&mt[++bt]===mt[++or]&&mt[++bt]===mt[++or]&&bt<Cr);if(_t=V-(Cr-bt),bt=Cr-V,_t>jt){if(me.match_start=Kt,jt=_t,_t>=ut)break;nn=mt[bt+jt-1],mn=mt[bt+jt]}}while((Kt=tt[Kt&lt])>St&&--vr!==0);return jt<=me.lookahead?jt:me.lookahead}function fe(me){var Kt=me.w_size,vr,bt,or,_t,jt;do{if(_t=me.window_size-me.lookahead-me.strstart,me.strstart>=Kt+(Kt-Q)){g.arraySet(me.window,me.window,Kt,Kt,0),me.match_start-=Kt,me.strstart-=Kt,me.block_start-=Kt,bt=me.hash_size,vr=bt;do or=me.head[--vr],me.head[vr]=or>=Kt?or-Kt:0;while(--bt);bt=Kt,vr=bt;do or=me.prev[--vr],me.prev[vr]=or>=Kt?or-Kt:0;while(--bt);_t+=Kt}if(me.strm.avail_in===0)break;if(bt=Te(me.strm,me.window,me.strstart+me.lookahead,_t),me.lookahead+=bt,me.lookahead+me.insert>=z)for(jt=me.strstart-me.insert,me.ins_h=me.window[jt],me.ins_h=(me.ins_h<<me.hash_shift^me.window[jt+1])&me.hash_mask;me.insert&&!(me.ins_h=(me.ins_h<<me.hash_shift^me.window[jt+z-1])&me.hash_mask,me.prev[jt&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=jt,jt++,me.insert--,me.lookahead+me.insert<z););}while(me.lookahead<Q&&me.strm.avail_in!==0)}function xe(me,Kt){var vr=65535;for(vr>me.pending_buf_size-5&&(vr=me.pending_buf_size-5);;){if(me.lookahead<=1){if(fe(me),me.lookahead===0&&Kt===i)return Qe;if(me.lookahead===0)break}me.strstart+=me.lookahead,me.lookahead=0;var bt=me.block_start+vr;if((me.strstart===0||me.strstart>=bt)&&(me.lookahead=me.strstart-bt,me.strstart=bt,$(me,!1),me.strm.avail_out===0))return Qe;if(me.strstart-me.block_start>=me.w_size-Q&&($(me,!1),me.strm.avail_out===0))return Qe}return me.insert=0,Kt===e?($(me,!0),me.strm.avail_out===0?dt:Fe):(me.strstart>me.block_start&&($(me,!1),me.strm.avail_out===0),Qe)}function ke(me,Kt){for(var vr,bt;;){if(me.lookahead<Q){if(fe(me),me.lookahead<Q&&Kt===i)return Qe;if(me.lookahead===0)break}if(vr=0,me.lookahead>=z&&(me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+z-1])&me.hash_mask,vr=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart),vr!==0&&me.strstart-vr<=me.w_size-Q&&(me.match_length=Be(me,vr)),me.match_length>=z)if(bt=S._tr_tally(me,me.strstart-me.match_start,me.match_length-z),me.lookahead-=me.match_length,me.match_length<=me.max_lazy_match&&me.lookahead>=z){me.match_length--;do me.strstart++,me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+z-1])&me.hash_mask,vr=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart;while(--me.match_length!==0);me.strstart++}else me.strstart+=me.match_length,me.match_length=0,me.ins_h=me.window[me.strstart],me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+1])&me.hash_mask;else bt=S._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++;if(bt&&($(me,!1),me.strm.avail_out===0))return Qe}return me.insert=me.strstart<z-1?me.strstart:z-1,Kt===e?($(me,!0),me.strm.avail_out===0?dt:Fe):me.last_lit&&($(me,!1),me.strm.avail_out===0)?Qe:Ve}function nt(me,Kt){for(var vr,bt,or;;){if(me.lookahead<Q){if(fe(me),me.lookahead<Q&&Kt===i)return Qe;if(me.lookahead===0)break}if(vr=0,me.lookahead>=z&&(me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+z-1])&me.hash_mask,vr=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart),me.prev_length=me.match_length,me.prev_match=me.match_start,me.match_length=z-1,vr!==0&&me.prev_length<me.max_lazy_match&&me.strstart-vr<=me.w_size-Q&&(me.match_length=Be(me,vr),me.match_length<=5&&(me.strategy===b||me.match_length===z&&me.strstart-me.match_start>4096)&&(me.match_length=z-1)),me.prev_length>=z&&me.match_length<=me.prev_length){or=me.strstart+me.lookahead-z,bt=S._tr_tally(me,me.strstart-1-me.prev_match,me.prev_length-z),me.lookahead-=me.prev_length-1,me.prev_length-=2;do++me.strstart<=or&&(me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+z-1])&me.hash_mask,vr=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart);while(--me.prev_length!==0);if(me.match_available=0,me.match_length=z-1,me.strstart++,bt&&($(me,!1),me.strm.avail_out===0))return Qe}else if(me.match_available){if(bt=S._tr_tally(me,0,me.window[me.strstart-1]),bt&&$(me,!1),me.strstart++,me.lookahead--,me.strm.avail_out===0)return Qe}else me.match_available=1,me.strstart++,me.lookahead--}return me.match_available&&(bt=S._tr_tally(me,0,me.window[me.strstart-1]),me.match_available=0),me.insert=me.strstart<z-1?me.strstart:z-1,Kt===e?($(me,!0),me.strm.avail_out===0?dt:Fe):me.last_lit&&($(me,!1),me.strm.avail_out===0)?Qe:Ve}function Ct(me,Kt){for(var vr,bt,or,_t,jt=me.window;;){if(me.lookahead<=V){if(fe(me),me.lookahead<=V&&Kt===i)return Qe;if(me.lookahead===0)break}if(me.match_length=0,me.lookahead>=z&&me.strstart>0&&(or=me.strstart-1,bt=jt[or],bt===jt[++or]&&bt===jt[++or]&&bt===jt[++or])){_t=me.strstart+V;do;while(bt===jt[++or]&&bt===jt[++or]&&bt===jt[++or]&&bt===jt[++or]&&bt===jt[++or]&&bt===jt[++or]&&bt===jt[++or]&&bt===jt[++or]&&or<_t);me.match_length=V-(_t-or),me.match_length>me.lookahead&&(me.match_length=me.lookahead)}if(me.match_length>=z?(vr=S._tr_tally(me,1,me.match_length-z),me.lookahead-=me.match_length,me.strstart+=me.match_length,me.match_length=0):(vr=S._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++),vr&&($(me,!1),me.strm.avail_out===0))return Qe}return me.insert=0,Kt===e?($(me,!0),me.strm.avail_out===0?dt:Fe):me.last_lit&&($(me,!1),me.strm.avail_out===0)?Qe:Ve}function pt(me,Kt){for(var vr;;){if(me.lookahead===0&&(fe(me),me.lookahead===0)){if(Kt===i)return Qe;break}if(me.match_length=0,vr=S._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++,vr&&($(me,!1),me.strm.avail_out===0))return Qe}return me.insert=0,Kt===e?($(me,!0),me.strm.avail_out===0?dt:Fe):me.last_lit&&($(me,!1),me.strm.avail_out===0)?Qe:Ve}function He(me,Kt,vr,bt,or){this.good_length=me,this.max_lazy=Kt,this.nice_length=vr,this.max_chain=bt,this.func=or}var nr;nr=[new He(0,0,0,0,xe),new He(4,4,8,4,ke),new He(4,5,16,8,ke),new He(4,6,32,32,ke),new He(4,4,16,16,nt),new He(8,16,32,32,nt),new He(8,16,128,128,nt),new He(8,32,128,256,nt),new He(32,128,258,1024,nt),new He(32,258,258,4096,nt)];function ht(me){me.window_size=2*me.w_size,J(me.head),me.max_lazy_match=nr[me.level].max_lazy,me.good_match=nr[me.level].good_length,me.nice_match=nr[me.level].nice_length,me.max_chain_length=nr[me.level].max_chain,me.strstart=0,me.block_start=0,me.lookahead=0,me.insert=0,me.match_length=me.prev_length=z-1,me.match_available=0,me.ins_h=0}function Gt(){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=w,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 g.Buf16(j*2),this.dyn_dtree=new g.Buf16((2*X+1)*2),this.bl_tree=new g.Buf16((2*F+1)*2),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new g.Buf16(K+1),this.heap=new g.Buf16(2*P+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new g.Buf16(2*P+1),J(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 pr(me){var Kt;return!me||!me.state?et(me,c):(me.total_in=me.total_out=0,me.data_type=C,Kt=me.state,Kt.pending=0,Kt.pending_out=0,Kt.wrap<0&&(Kt.wrap=-Kt.wrap),Kt.status=Kt.wrap?te:Oe,me.adler=Kt.wrap===2?0:1,Kt.last_flush=i,S._tr_init(Kt),r)}function Qt(me){var Kt=pr(me);return Kt===r&&ht(me.state),Kt}function Ht(me,Kt){return!me||!me.state||me.state.wrap!==2?c:(me.state.gzhead=Kt,r)}function Jt(me,Kt,vr,bt,or,_t){if(!me)return c;var jt=1;if(Kt===A&&(Kt=6),bt<0?(jt=0,bt=-bt):bt>15&&(jt=2,bt-=16),or<1||or>O||vr!==w||bt<8||bt>15||Kt<0||Kt>9||_t<0||_t>T)return et(me,c);bt===8&&(bt=9);var ut=new Gt;return me.state=ut,ut.strm=me,ut.wrap=jt,ut.gzhead=null,ut.w_bits=bt,ut.w_size=1<<ut.w_bits,ut.w_mask=ut.w_size-1,ut.hash_bits=or+7,ut.hash_size=1<<ut.hash_bits,ut.hash_mask=ut.hash_size-1,ut.hash_shift=~~((ut.hash_bits+z-1)/z),ut.window=new g.Buf8(ut.w_size*2),ut.head=new g.Buf16(ut.hash_size),ut.prev=new g.Buf16(ut.w_size),ut.lit_bufsize=1<<or+6,ut.pending_buf_size=ut.lit_bufsize*4,ut.pending_buf=new g.Buf8(ut.pending_buf_size),ut.d_buf=1*ut.lit_bufsize,ut.l_buf=(1+2)*ut.lit_bufsize,ut.level=Kt,ut.strategy=_t,ut.method=vr,Qt(me)}function Ge(me,Kt){return Jt(me,Kt,w,I,k,_)}function pe(me,Kt){var vr,bt,or,_t;if(!me||!me.state||Kt>u||Kt<0)return me?et(me,c):c;if(bt=me.state,!me.output||!me.input&&me.avail_in!==0||bt.status===Me&&Kt!==e)return et(me,me.avail_out===0?v:c);if(bt.strm=me,vr=bt.last_flush,bt.last_flush=Kt,bt.status===te)if(bt.wrap===2)me.adler=0,de(bt,31),de(bt,139),de(bt,8),bt.gzhead?(de(bt,(bt.gzhead.text?1:0)+(bt.gzhead.hcrc?2:0)+(bt.gzhead.extra?4:0)+(bt.gzhead.name?8:0)+(bt.gzhead.comment?16:0)),de(bt,bt.gzhead.time&255),de(bt,bt.gzhead.time>>8&255),de(bt,bt.gzhead.time>>16&255),de(bt,bt.gzhead.time>>24&255),de(bt,bt.level===9?2:bt.strategy>=x||bt.level<2?4:0),de(bt,bt.gzhead.os&255),bt.gzhead.extra&&bt.gzhead.extra.length&&(de(bt,bt.gzhead.extra.length&255),de(bt,bt.gzhead.extra.length>>8&255)),bt.gzhead.hcrc&&(me.adler=(0,p.default)(me.adler,bt.pending_buf,bt.pending,0)),bt.gzindex=0,bt.status=q):(de(bt,0),de(bt,0),de(bt,0),de(bt,0),de(bt,0),de(bt,bt.level===9?2:bt.strategy>=x||bt.level<2?4:0),de(bt,ue),bt.status=Oe);else{var jt=w+(bt.w_bits-8<<4)<<8,ut=-1;bt.strategy>=x||bt.level<2?ut=0:bt.level<6?ut=1:bt.level===6?ut=2:ut=3,jt|=ut<<6,bt.strstart!==0&&(jt|=G),jt+=31-jt%31,bt.status=Oe,be(bt,jt),bt.strstart!==0&&(be(bt,me.adler>>>16),be(bt,me.adler&65535)),me.adler=1}if(bt.status===q)if(bt.gzhead.extra){for(or=bt.pending;bt.gzindex<(bt.gzhead.extra.length&65535)&&!(bt.pending===bt.pending_buf_size&&(bt.gzhead.hcrc&&bt.pending>or&&(me.adler=(0,p.default)(me.adler,bt.pending_buf,bt.pending-or,or)),Y(me),or=bt.pending,bt.pending===bt.pending_buf_size));)de(bt,bt.gzhead.extra[bt.gzindex]&255),bt.gzindex++;bt.gzhead.hcrc&&bt.pending>or&&(me.adler=(0,p.default)(me.adler,bt.pending_buf,bt.pending-or,or)),bt.gzindex===bt.gzhead.extra.length&&(bt.gzindex=0,bt.status=se)}else bt.status=se;if(bt.status===se)if(bt.gzhead.name){or=bt.pending;do{if(bt.pending===bt.pending_buf_size&&(bt.gzhead.hcrc&&bt.pending>or&&(me.adler=(0,p.default)(me.adler,bt.pending_buf,bt.pending-or,or)),Y(me),or=bt.pending,bt.pending===bt.pending_buf_size)){_t=1;break}bt.gzindex<bt.gzhead.name.length?_t=bt.gzhead.name.charCodeAt(bt.gzindex++)&255:_t=0,de(bt,_t)}while(_t!==0);bt.gzhead.hcrc&&bt.pending>or&&(me.adler=(0,p.default)(me.adler,bt.pending_buf,bt.pending-or,or)),_t===0&&(bt.gzindex=0,bt.status=re)}else bt.status=re;if(bt.status===re)if(bt.gzhead.comment){or=bt.pending;do{if(bt.pending===bt.pending_buf_size&&(bt.gzhead.hcrc&&bt.pending>or&&(me.adler=(0,p.default)(me.adler,bt.pending_buf,bt.pending-or,or)),Y(me),or=bt.pending,bt.pending===bt.pending_buf_size)){_t=1;break}bt.gzindex<bt.gzhead.comment.length?_t=bt.gzhead.comment.charCodeAt(bt.gzindex++)&255:_t=0,de(bt,_t)}while(_t!==0);bt.gzhead.hcrc&&bt.pending>or&&(me.adler=(0,p.default)(me.adler,bt.pending_buf,bt.pending-or,or)),_t===0&&(bt.status=we)}else bt.status=we;if(bt.status===we&&(bt.gzhead.hcrc?(bt.pending+2>bt.pending_buf_size&&Y(me),bt.pending+2<=bt.pending_buf_size&&(de(bt,me.adler&255),de(bt,me.adler>>8&255),me.adler=0,bt.status=Oe)):bt.status=Oe),bt.pending!==0){if(Y(me),me.avail_out===0)return bt.last_flush=-1,r}else if(me.avail_in===0&&he(Kt)<=he(vr)&&Kt!==e)return et(me,v);if(bt.status===Me&&me.avail_in!==0)return et(me,v);if(me.avail_in!==0||bt.lookahead!==0||Kt!==i&&bt.status!==Me){var St=bt.strategy===x?pt(bt,Kt):bt.strategy===E?Ct(bt,Kt):nr[bt.level].func(bt,Kt);if((St===dt||St===Fe)&&(bt.status=Me),St===Qe||St===dt)return me.avail_out===0&&(bt.last_flush=-1),r;if(St===Ve&&(Kt===t?S._tr_align(bt):Kt!==u&&(S._tr_stored_block(bt,0,0,!1),Kt===o&&(J(bt.head),bt.lookahead===0&&(bt.strstart=0,bt.block_start=0,bt.insert=0))),Y(me),me.avail_out===0))return bt.last_flush=-1,r}return Kt!==e?r:bt.wrap<=0?s:(bt.wrap===2?(de(bt,me.adler&255),de(bt,me.adler>>8&255),de(bt,me.adler>>16&255),de(bt,me.adler>>24&255),de(bt,me.total_in&255),de(bt,me.total_in>>8&255),de(bt,me.total_in>>16&255),de(bt,me.total_in>>24&255)):(be(bt,me.adler>>>16),be(bt,me.adler&65535)),Y(me),bt.wrap>0&&(bt.wrap=-bt.wrap),bt.pending!==0?r:s)}function oe(me){var Kt;return!me||!me.state?c:(Kt=me.state.status,Kt!==te&&Kt!==q&&Kt!==se&&Kt!==re&&Kt!==we&&Kt!==Oe&&Kt!==Me?et(me,c):(me.state=null,Kt===Oe?et(me,h):r))}function ct(me,Kt){var vr=Kt.length,bt,or,_t,jt,ut,St,mt,lt;if(!me||!me.state)return c;if(bt=me.state,jt=bt.wrap,jt===2||jt===1&&bt.status!==te||bt.lookahead)return c;for(jt===1&&(me.adler=(0,m.default)(me.adler,Kt,vr,0)),bt.wrap=0,vr>=bt.w_size&&(jt===0&&(J(bt.head),bt.strstart=0,bt.block_start=0,bt.insert=0),lt=new g.Buf8(bt.w_size),g.arraySet(lt,Kt,vr-bt.w_size,bt.w_size,0),Kt=lt,vr=bt.w_size),ut=me.avail_in,St=me.next_in,mt=me.input,me.avail_in=vr,me.next_in=0,me.input=Kt,fe(bt);bt.lookahead>=z;){or=bt.strstart,_t=bt.lookahead-(z-1);do bt.ins_h=(bt.ins_h<<bt.hash_shift^bt.window[or+z-1])&bt.hash_mask,bt.prev[or&bt.w_mask]=bt.head[bt.ins_h],bt.head[bt.ins_h]=or,or++;while(--_t);bt.strstart=or,bt.lookahead=z-1,fe(bt)}return bt.strstart+=bt.lookahead,bt.block_start=bt.strstart,bt.insert=bt.lookahead,bt.lookahead=0,bt.match_length=bt.prev_length=z-1,bt.match_available=0,me.next_in=St,me.input=mt,me.avail_in=ut,bt.wrap=jt,r}var qe="pako deflate (from Nodeca project)";D.deflateInfo=qe},lOQZ:function(R,D,n){var y=n("QBsz"),g=n("U/Mo"),S=g.getSymbolSize,m=g.getNodeGlobalScale,p=Math.PI,f=[];function d(a,i){var t=a.coordinateSystem;if(t&&t.type!=="view")return;var o=t.getBoundingRect(),e=a.getData(),u=e.graph,r=o.width/2+o.x,s=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=e.count();if(e.setLayout({cx:r,cy:s}),!h)return;l[i](a,t,u,e,c,r,s,h),u.eachEdge(function(v){var A=v.getModel().get("lineStyle.curveness")||0,b=y.clone(v.node1.getLayout()),x=y.clone(v.node2.getLayout()),E,T=(b[0]+x[0])/2,_=(b[1]+x[1])/2;+A&&(A*=3,E=[r*A+T*(1-A),s*A+_*(1-A)]),v.setLayout([b,x,E])})}var l={value:function(a,i,t,o,e,u,r,s){var c=0,h=o.getSum("value"),v=Math.PI*2/(h||s);t.eachNode(function(A){var b=A.getValue("value"),x=v*(h?b:1)/2;c+=x,A.setLayout([e*Math.cos(c)+u,e*Math.sin(c)+r]),c+=x})},symbolSize:function(a,i,t,o,e,u,r,s){var c=0;f.length=s;var h=m(a);t.eachNode(function(b){var x=S(b);isNaN(x)&&(x=2),x<0&&(x=0),x*=h;var E=Math.asin(x/2/e);isNaN(E)&&(E=p/2),f[b.dataIndex]=E,c+=E*2});var v=(2*p-c)/s/2,A=0;t.eachNode(function(b){var x=v+f[b.dataIndex];A+=x,b.setLayout([e*Math.cos(A)+u,e*Math.sin(A)+r]),A+=x})}};D.circularLayout=d},lPiR:function(R,D,n){(function(y,g){R.exports=D=g(n("Ib8C"))})(this,function(y){return function(g){var S=y,m=S.lib,p=m.WordArray,f=m.Hasher,d=S.algo,l=[],a=[];(function(){function o(s){for(var c=g.sqrt(s),h=2;h<=c;h++)if(!(s%h))return!1;return!0}function e(s){return(s-(s|0))*4294967296|0}for(var u=2,r=0;r<64;)o(u)&&(r<8&&(l[r]=e(g.pow(u,1/2))),a[r]=e(g.pow(u,1/3)),r++),u++})();var i=[],t=d.SHA256=f.extend({_doReset:function(){this._hash=new p.init(l.slice(0))},_doProcessBlock:function(e,u){for(var r=this._hash.words,s=r[0],c=r[1],h=r[2],v=r[3],A=r[4],b=r[5],x=r[6],E=r[7],T=0;T<64;T++){if(T<16)i[T]=e[u+T]|0;else{var _=i[T-15],C=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,w=i[T-2],O=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;i[T]=C+i[T-7]+O+i[T-16]}var I=A&b^~A&x,k=s&c^s&h^c&h,M=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),U=(A<<26|A>>>6)^(A<<21|A>>>11)^(A<<7|A>>>25),P=E+U+I+a[T]+i[T],X=M+k;E=x,x=b,b=A,A=v+P|0,v=h,h=c,c=s,s=P+X|0}r[0]=r[0]+s|0,r[1]=r[1]+c|0,r[2]=r[2]+h|0,r[3]=r[3]+v|0,r[4]=r[4]+A|0,r[5]=r[5]+b|0,r[6]=r[6]+x|0,r[7]=r[7]+E|0},_doFinalize:function(){var e=this._data,u=e.words,r=this._nDataBytes*8,s=e.sigBytes*8;return u[s>>>5]|=128<<24-s%32,u[(s+64>>>9<<4)+14]=g.floor(r/4294967296),u[(s+64>>>9<<4)+15]=r,e.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var e=f.clone.call(this);return e._hash=this._hash.clone(),e}});S.SHA256=f._createHelper(t),S.HmacSHA256=f._createHmacHelper(t)}(Math),y.SHA256})},lSCD:function(R,D,n){var y=n("NykK"),g=n("GoyQ"),S="[object AsyncFunction]",m="[object Function]",p="[object GeneratorFunction]",f="[object Proxy]";function d(l){if(!g(l))return!1;var a=y(l);return a==m||a==p||a==S||a==f}R.exports=d},lUTK:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("x54q"),m=n.n(S),p=n("5Dmo")},lZu9:function(R,D,n){(function(y){y(n("VrN/"),n("1eCo"),n("8EBN"))})(function(y){"use strict";y.defineMode("markdown",function(g,S){var m=y.getMode(g,"text/html"),p=m.name=="null";function f(K){if(y.findModeByName){var z=y.findModeByName(K);z&&(K=z.mime||z.mimes[0])}var V=y.getMode(g,K);return V.name=="null"?null:V}S.highlightFormatting===void 0&&(S.highlightFormatting=!1),S.maxBlockquoteDepth===void 0&&(S.maxBlockquoteDepth=0),S.taskLists===void 0&&(S.taskLists=!1),S.strikethrough===void 0&&(S.strikethrough=!1),S.emoji===void 0&&(S.emoji=!1),S.fencedCodeBlockHighlighting===void 0&&(S.fencedCodeBlockHighlighting=!0),S.fencedCodeBlockDefaultMode===void 0&&(S.fencedCodeBlockDefaultMode="text/plain"),S.xml===void 0&&(S.xml=!0),S.tokenTypeOverrides===void 0&&(S.tokenTypeOverrides={});var d={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 l in d)d.hasOwnProperty(l)&&S.tokenTypeOverrides[l]&&(d[l]=S.tokenTypeOverrides[l]);var a=/^([*\-_])(?:\s*\1){2,}\s*$/,i=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,t=/^\[(x| )\](?=\s)/i,o=S.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,u=/^[^#!\[\]*_\\<>` "'(~:]+/,r=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,s=/^\s*\[[^\]]+?\]:.*$/,c=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,h=" ";function v(K,z,V){return z.f=z.inline=V,V(K,z)}function A(K,z,V){return z.f=z.block=V,V(K,z)}function b(K){return!K||!/\S/.test(K.string)}function x(K){if(K.linkTitle=!1,K.linkHref=!1,K.linkText=!1,K.em=!1,K.strong=!1,K.strikethrough=!1,K.quote=0,K.indentedCode=!1,K.f==T){var z=p;if(!z){var V=y.innerMode(m,K.htmlState);z=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}z&&(K.f=O,K.block=E,K.htmlState=null)}return K.trailingSpace=0,K.trailingSpaceNewLine=!1,K.prevLine=K.thisLine,K.thisLine={stream:null},null}function E(K,z){var V=K.column()===z.indentation,Q=b(z.prevLine.stream),G=z.indentedCode,te=z.prevLine.hr,q=z.list!==!1,se=(z.listStack[z.listStack.length-1]||0)+3;z.indentedCode=!1;var re=z.indentation;if(z.indentationDiff===null&&(z.indentationDiff=z.indentation,q)){for(z.list=null;re<z.listStack[z.listStack.length-1];)z.listStack.pop(),z.listStack.length?z.indentation=z.listStack[z.listStack.length-1]:z.list=!1;z.list!==!1&&(z.indentationDiff=re-z.listStack[z.listStack.length-1])}var we=!Q&&!te&&!z.prevLine.header&&(!q||!G)&&!z.prevLine.fencedCodeEnd,Oe=(z.list===!1||te||Q)&&z.indentation<=se&&K.match(a),Me=null;if(z.indentationDiff>=4&&(G||z.prevLine.fencedCodeEnd||z.prevLine.header||Q))return K.skipToEnd(),z.indentedCode=!0,d.code;if(K.eatSpace())return null;if(V&&z.indentation<=se&&(Me=K.match(o))&&Me[1].length<=6)return z.quote=0,z.header=Me[1].length,z.thisLine.header=!0,S.highlightFormatting&&(z.formatting="header"),z.f=z.inline,C(z);if(z.indentation<=se&&K.eat(">"))return z.quote=V?1:z.quote+1,S.highlightFormatting&&(z.formatting="quote"),K.eatSpace(),C(z);if(!Oe&&!z.setext&&V&&z.indentation<=se&&(Me=K.match(i))){var Qe=Me[1]?"ol":"ul";return z.indentation=re+K.current().length,z.list=!0,z.quote=0,z.listStack.push(z.indentation),z.em=!1,z.strong=!1,z.code=!1,z.strikethrough=!1,S.taskLists&&K.match(t,!1)&&(z.taskList=!0),z.f=z.inline,S.highlightFormatting&&(z.formatting=["list","list-"+Qe]),C(z)}else{if(V&&z.indentation<=se&&(Me=K.match(r,!0)))return z.quote=0,z.fencedEndRE=new RegExp(Me[1]+"+ *$"),z.localMode=S.fencedCodeBlockHighlighting&&f(Me[2]||S.fencedCodeBlockDefaultMode),z.localMode&&(z.localState=y.startState(z.localMode)),z.f=z.block=_,S.highlightFormatting&&(z.formatting="code-block"),z.code=-1,C(z);if(z.setext||(!we||!q)&&!z.quote&&z.list===!1&&!z.code&&!Oe&&!s.test(K.string)&&(Me=K.lookAhead(1))&&(Me=Me.match(e)))return z.setext?(z.header=z.setext,z.setext=0,K.skipToEnd(),S.highlightFormatting&&(z.formatting="header")):(z.header=Me[0].charAt(0)=="="?1:2,z.setext=z.header),z.thisLine.header=!0,z.f=z.inline,C(z);if(Oe)return K.skipToEnd(),z.hr=!0,z.thisLine.hr=!0,d.hr;if(K.peek()==="[")return v(K,z,P)}return v(K,z,z.inline)}function T(K,z){var V=m.token(K,z.htmlState);if(!p){var Q=y.innerMode(m,z.htmlState);(Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText||z.md_inside&&K.current().indexOf(">")>-1)&&(z.f=O,z.block=E,z.htmlState=null)}return V}function _(K,z){var V=z.listStack[z.listStack.length-1]||0,Q=z.indentation<V,G=V+3;if(z.fencedEndRE&&z.indentation<=G&&(Q||K.match(z.fencedEndRE))){S.highlightFormatting&&(z.formatting="code-block");var te;return Q||(te=C(z)),z.localMode=z.localState=null,z.block=E,z.f=O,z.fencedEndRE=null,z.code=0,z.thisLine.fencedCodeEnd=!0,Q?A(K,z,z.block):te}else return z.localMode?z.localMode.token(K,z.localState):(K.skipToEnd(),d.code)}function C(K){var z=[];if(K.formatting){z.push(d.formatting),typeof K.formatting=="string"&&(K.formatting=[K.formatting]);for(var V=0;V<K.formatting.length;V++)z.push(d.formatting+"-"+K.formatting[V]),K.formatting[V]==="header"&&z.push(d.formatting+"-"+K.formatting[V]+"-"+K.header),K.formatting[V]==="quote"&&(!S.maxBlockquoteDepth||S.maxBlockquoteDepth>=K.quote?z.push(d.formatting+"-"+K.formatting[V]+"-"+K.quote):z.push("error"))}if(K.taskOpen)return z.push("meta"),z.length?z.join(" "):null;if(K.taskClosed)return z.push("property"),z.length?z.join(" "):null;if(K.linkHref?z.push(d.linkHref,"url"):(K.strong&&z.push(d.strong),K.em&&z.push(d.em),K.strikethrough&&z.push(d.strikethrough),K.emoji&&z.push(d.emoji),K.linkText&&z.push(d.linkText),K.code&&z.push(d.code),K.image&&z.push(d.image),K.imageAltText&&z.push(d.imageAltText,"link"),K.imageMarker&&z.push(d.imageMarker)),K.header&&z.push(d.header,d.header+"-"+K.header),K.quote&&(z.push(d.quote),!S.maxBlockquoteDepth||S.maxBlockquoteDepth>=K.quote?z.push(d.quote+"-"+K.quote):z.push(d.quote+"-"+S.maxBlockquoteDepth)),K.list!==!1){var Q=(K.listStack.length-1)%3;Q?Q===1?z.push(d.list2):z.push(d.list3):z.push(d.list1)}return K.trailingSpaceNewLine?z.push("trailing-space-new-line"):K.trailingSpace&&z.push("trailing-space-"+(K.trailingSpace%2?"a":"b")),z.length?z.join(" "):null}function w(K,z){return K.match(u,!0)?C(z):void 0}function O(K,z){var V=z.text(K,z);if(typeof V!="undefined")return V;if(z.list)return z.list=null,C(z);if(z.taskList){var Q=K.match(t,!0)[1]===" ";return Q?z.taskOpen=!0:z.taskClosed=!0,S.highlightFormatting&&(z.formatting="task"),z.taskList=!1,C(z)}if(z.taskOpen=!1,z.taskClosed=!1,z.header&&K.match(/^#+$/,!0))return S.highlightFormatting&&(z.formatting="header"),C(z);var G=K.next();if(z.linkTitle){z.linkTitle=!1;var te=G;G==="("&&(te=")"),te=(te+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var q="^\\s*(?:[^"+te+"\\\\]+|\\\\\\\\|\\\\.)"+te;if(K.match(new RegExp(q),!0))return d.linkHref}if(G==="`"){var se=z.formatting;S.highlightFormatting&&(z.formatting="code"),K.eatWhile("`");var re=K.current().length;if(z.code==0&&(!z.quote||re==1))return z.code=re,C(z);if(re==z.code){var we=C(z);return z.code=0,we}else return z.formatting=se,C(z)}else if(z.code)return C(z);if(G==="\\"&&(K.next(),S.highlightFormatting)){var Oe=C(z),Me=d.formatting+"-escape";return Oe?Oe+" "+Me:Me}if(G==="!"&&K.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return z.imageMarker=!0,z.image=!0,S.highlightFormatting&&(z.formatting="image"),C(z);if(G==="["&&z.imageMarker&&K.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return z.imageMarker=!1,z.imageAltText=!0,S.highlightFormatting&&(z.formatting="image"),C(z);if(G==="]"&&z.imageAltText){S.highlightFormatting&&(z.formatting="image");var Oe=C(z);return z.imageAltText=!1,z.image=!1,z.inline=z.f=k,Oe}if(G==="["&&!z.image)return z.linkText&&K.match(/^.*?\]/)||(z.linkText=!0,S.highlightFormatting&&(z.formatting="link")),C(z);if(G==="]"&&z.linkText){S.highlightFormatting&&(z.formatting="link");var Oe=C(z);return z.linkText=!1,z.inline=z.f=K.match(/\(.*?\)| ?\[.*?\]/,!1)?k:O,Oe}if(G==="<"&&K.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,S.highlightFormatting&&(z.formatting="link");var Oe=C(z);return Oe?Oe+=" ":Oe="",Oe+d.linkInline}if(G==="<"&&K.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,S.highlightFormatting&&(z.formatting="link");var Oe=C(z);return Oe?Oe+=" ":Oe="",Oe+d.linkEmail}if(S.xml&&G==="<"&&K.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Qe=K.string.indexOf(">",K.pos);if(Qe!=-1){var Ve=K.string.substring(K.start,Qe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ve)&&(z.md_inside=!0)}return K.backUp(1),z.htmlState=y.startState(m),A(K,z,T)}if(S.xml&&G==="<"&&K.match(/^\/\w*?>/))return z.md_inside=!1,"tag";if(G==="*"||G==="_"){for(var dt=1,Fe=K.pos==1?" ":K.string.charAt(K.pos-2);dt<3&&K.eat(G);)dt++;var ue=K.peek()||" ",et=!/\s/.test(ue)&&(!c.test(ue)||/\s/.test(Fe)||c.test(Fe)),he=!/\s/.test(Fe)&&(!c.test(Fe)||/\s/.test(ue)||c.test(ue)),J=null,Y=null;if(dt%2&&(!z.em&&et&&(G==="*"||!he||c.test(Fe))?J=!0:z.em==G&&he&&(G==="*"||!et||c.test(ue))&&(J=!1)),dt>1&&(!z.strong&&et&&(G==="*"||!he||c.test(Fe))?Y=!0:z.strong==G&&he&&(G==="*"||!et||c.test(ue))&&(Y=!1)),Y!=null||J!=null){S.highlightFormatting&&(z.formatting=J==null?"strong":Y==null?"em":"strong em"),J===!0&&(z.em=G),Y===!0&&(z.strong=G);var we=C(z);return J===!1&&(z.em=!1),Y===!1&&(z.strong=!1),we}}else if(G===" "&&(K.eat("*")||K.eat("_"))){if(K.peek()===" ")return C(z);K.backUp(1)}if(S.strikethrough){if(G==="~"&&K.eatWhile(G)){if(z.strikethrough){S.highlightFormatting&&(z.formatting="strikethrough");var we=C(z);return z.strikethrough=!1,we}else if(K.match(/^[^\s]/,!1))return z.strikethrough=!0,S.highlightFormatting&&(z.formatting="strikethrough"),C(z)}else if(G===" "&&K.match(/^~~/,!0)){if(K.peek()===" ")return C(z);K.backUp(2)}}if(S.emoji&&G===":"&&K.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){z.emoji=!0,S.highlightFormatting&&(z.formatting="emoji");var $=C(z);return z.emoji=!1,$}return G===" "&&(K.match(/^ +$/,!1)?z.trailingSpace++:z.trailingSpace&&(z.trailingSpaceNewLine=!0)),C(z)}function I(K,z){var V=K.next();if(V===">"){z.f=z.inline=O,S.highlightFormatting&&(z.formatting="link");var Q=C(z);return Q?Q+=" ":Q="",Q+d.linkInline}return K.match(/^[^>]+/,!0),d.linkInline}function k(K,z){if(K.eatSpace())return null;var V=K.next();return V==="("||V==="["?(z.f=z.inline=U(V==="("?")":"]"),S.highlightFormatting&&(z.formatting="link-string"),z.linkHref=!0,C(z)):"error"}var M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function U(K){return function(z,V){var Q=z.next();if(Q===K){V.f=V.inline=O,S.highlightFormatting&&(V.formatting="link-string");var G=C(V);return V.linkHref=!1,G}return z.match(M[K]),V.linkHref=!0,C(V)}}function P(K,z){return K.match(/^([^\]\\]|\\.)*\]:/,!1)?(z.f=X,K.next(),S.highlightFormatting&&(z.formatting="link"),z.linkText=!0,C(z)):v(K,z,O)}function X(K,z){if(K.match(/^\]:/,!0)){z.f=z.inline=F,S.highlightFormatting&&(z.formatting="link");var V=C(z);return z.linkText=!1,V}return K.match(/^([^\]\\]|\\.)+/,!0),d.linkText}function F(K,z){return K.eatSpace()?null:(K.match(/^[^\s]+/,!0),K.peek()===void 0?z.linkTitle=!0:K.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),z.f=z.inline=O,d.linkHref+" url")}var j={startState:function(){return{f:E,prevLine:{stream:null},thisLine:{stream:null},block:E,htmlState:null,indentation:0,inline:O,text:w,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(z){return{f:z.f,prevLine:z.prevLine,thisLine:z.thisLine,block:z.block,htmlState:z.htmlState&&y.copyState(m,z.htmlState),indentation:z.indentation,localMode:z.localMode,localState:z.localMode?y.copyState(z.localMode,z.localState):null,inline:z.inline,text:z.text,formatting:!1,linkText:z.linkText,linkTitle:z.linkTitle,linkHref:z.linkHref,code:z.code,em:z.em,strong:z.strong,strikethrough:z.strikethrough,emoji:z.emoji,header:z.header,setext:z.setext,hr:z.hr,taskList:z.taskList,list:z.list,listStack:z.listStack.slice(0),quote:z.quote,indentedCode:z.indentedCode,trailingSpace:z.trailingSpace,trailingSpaceNewLine:z.trailingSpaceNewLine,md_inside:z.md_inside,fencedEndRE:z.fencedEndRE}},token:function(z,V){if(V.formatting=!1,z!=V.thisLine.stream){if(V.header=0,V.hr=!1,z.match(/^\s*$/,!0))return x(V),null;if(V.prevLine=V.thisLine,V.thisLine={stream:z},V.taskList=!1,V.trailingSpace=0,V.trailingSpaceNewLine=!1,!V.localState&&(V.f=V.block,V.f!=T)){var Q=z.match(/^\s*/,!0)[0].replace(/\t/g,h).length;if(V.indentation=Q,V.indentationDiff=null,Q>0)return null}}return V.f(z,V)},innerMode:function(z){return z.block==T?{state:z.htmlState,mode:m}:z.localState?{state:z.localState,mode:z.localMode}:{state:z,mode:j}},indent:function(z,V,Q){return z.block==T&&m.indent?m.indent(z.htmlState,V,Q):z.localState&&z.localMode.indent?z.localMode.indent(z.localState,V,Q):y.Pass},blankLine:x,getType:C,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},laiN:function(R,D,n){var y=n("ProS");n("GVMX"),n("MH26"),y.registerPreprocessor(function(g){g.markLine=g.markLine||{}})},ljhN:function(R,D){function n(y,g){return y===g||y!==y&&g!==g}R.exports=n},lnY3:function(R,D,n){},loD1:function(R,D){function n(y,g,S,m,p,f,d){if(p===0)return!1;var l=p,a=0,i=y;if(d>g+l&&d>m+l||d<g-l&&d<m-l||f>y+l&&f>S+l||f<y-l&&f<S-l)return!1;if(y!==S)a=(g-m)/(y-S),i=(y*m-S*g)/(y-S);else return Math.abs(f-y)<=l/2;var t=a*f-d+i,o=t*t/(a*a+1);return o<=l/2*l/2}D.containStroke=n},lr6o:function(R,D,n){"use strict";var y=n("rePB"),g=n("Ff2n"),S=n("VTBJ"),m=n("1OyB"),p=n("vuIU"),f=n("JX7q"),d=n("Ji7U"),l=n("LK+K"),a=n("q1tI"),i=n("TSYQ"),t=n.n(i),o=n("FTAc"),e=n("wPhX"),u=function(T){var _=T.prefixCls,C=T.level,w=T.isStart,O=T.isEnd;if(!C)return null;for(var I="".concat(_,"-indent-unit"),k=[],M=0;M<C;M+=1){var U;k.push(a.createElement("span",{key:M,className:t()(I,(U={},Object(y.a)(U,"".concat(I,"-start"),w[M+1]),Object(y.a)(U,"".concat(I,"-end"),O[M+1]),Object(y.a)(U,"".concat(I,"-end-first-level"),!M&&O[0]),U))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(_,"-indent")},k)},r=u,s=n("c3jg"),c="open",h="close",v="---",A=function(E){Object(d.a)(_,E);var T=Object(l.a)(_);function _(){var C;return Object(m.a)(this,_),C=T.apply(this,arguments),C.state={dragNodeHighlight:!1},C.onSelectorClick=function(w){var O=C.props.context.onNodeClick;O(w,Object(s.b)(C.props)),C.isSelectable()?C.onSelect(w):C.onCheck(w)},C.onSelectorDoubleClick=function(w){var O=C.props.context.onNodeDoubleClick;O(w,Object(s.b)(C.props))},C.onSelect=function(w){if(C.isDisabled())return;var O=C.props.context.onNodeSelect;w.preventDefault(),O(w,Object(s.b)(C.props))},C.onCheck=function(w){if(C.isDisabled())return;var O=C.props,I=O.disableCheckbox,k=O.checked,M=C.props.context.onNodeCheck;if(!C.isCheckable()||I)return;w.preventDefault();var U=!k;M(w,Object(s.b)(C.props),U)},C.onMouseEnter=function(w){var O=C.props.context.onNodeMouseEnter;O(w,Object(s.b)(C.props))},C.onMouseLeave=function(w){var O=C.props.context.onNodeMouseLeave;O(w,Object(s.b)(C.props))},C.onContextMenu=function(w){var O=C.props.context.onNodeContextMenu;O(w,Object(s.b)(C.props))},C.onDragStart=function(w){var O=C.props.context.onNodeDragStart;w.stopPropagation(),C.setState({dragNodeHighlight:!0}),O(w,Object(f.a)(C));try{w.dataTransfer.setData("text/plain","")}catch(I){}},C.onDragEnter=function(w){var O=C.props.context.onNodeDragEnter;w.preventDefault(),w.stopPropagation(),O(w,Object(f.a)(C))},C.onDragOver=function(w){var O=C.props.context.onNodeDragOver;w.preventDefault(),w.stopPropagation(),O(w,Object(f.a)(C))},C.onDragLeave=function(w){var O=C.props.context.onNodeDragLeave;w.stopPropagation(),O(w,Object(f.a)(C))},C.onDragEnd=function(w){var O=C.props.context.onNodeDragEnd;w.stopPropagation(),C.setState({dragNodeHighlight:!1}),O(w,Object(f.a)(C))},C.onDrop=function(w){var O=C.props.context.onNodeDrop;w.preventDefault(),w.stopPropagation(),C.setState({dragNodeHighlight:!1}),O(w,Object(f.a)(C))},C.onExpand=function(w){var O=C.props.context.onNodeExpand;O(w,Object(s.b)(C.props))},C.setSelectHandle=function(w){C.selectHandle=w},C.getNodeState=function(){var w=C.props.expanded;return C.isLeaf()?null:w?c:h},C.hasChildren=function(){var w=C.props.eventKey,O=C.props.context.keyEntities,I=O[w]||{},k=I.children;return!!(k||[]).length},C.isLeaf=function(){var w=C.props,O=w.isLeaf,I=w.loaded,k=C.props.context.loadData,M=C.hasChildren();return O===!1?!1:O||!k&&!M||k&&I&&!M},C.isDisabled=function(){var w=C.props.disabled,O=C.props.context.disabled;return!!(O||w)},C.isCheckable=function(){var w=C.props.checkable,O=C.props.context.checkable;return!O||w===!1?!1:O},C.syncLoadData=function(w){var O=w.expanded,I=w.loading,k=w.loaded,M=C.props.context,U=M.loadData,P=M.onNodeLoad;if(I)return;U&&O&&!C.isLeaf()&&(!C.hasChildren()&&!k&&P(Object(s.b)(C.props)))},C.renderSwitcher=function(){var w=C.props,O=w.expanded,I=w.switcherIcon,k=C.props.context,M=k.prefixCls,U=k.switcherIcon,P=I||U;if(C.isLeaf())return a.createElement("span",{className:t()("".concat(M,"-switcher"),"".concat(M,"-switcher-noop"))},typeof P=="function"?P(Object(S.a)(Object(S.a)({},C.props),{},{isLeaf:!0})):P);var X=t()("".concat(M,"-switcher"),"".concat(M,"-switcher_").concat(O?c:h));return a.createElement("span",{onClick:C.onExpand,className:X},typeof P=="function"?P(Object(S.a)(Object(S.a)({},C.props),{},{isLeaf:!1})):P)},C.renderCheckbox=function(){var w=C.props,O=w.checked,I=w.halfChecked,k=w.disableCheckbox,M=C.props.context.prefixCls,U=C.isDisabled(),P=C.isCheckable();if(!P)return null;var X=typeof P!="boolean"?P:null;return a.createElement("span",{className:t()("".concat(M,"-checkbox"),O&&"".concat(M,"-checkbox-checked"),!O&&I&&"".concat(M,"-checkbox-indeterminate"),(U||k)&&"".concat(M,"-checkbox-disabled")),onClick:C.onCheck},X)},C.renderIcon=function(){var w=C.props.loading,O=C.props.context.prefixCls;return a.createElement("span",{className:t()("".concat(O,"-iconEle"),"".concat(O,"-icon__").concat(C.getNodeState()||"docu"),w&&"".concat(O,"-icon_loading"))})},C.renderSelector=function(){var w=C.state.dragNodeHighlight,O=C.props,I=O.title,k=O.selected,M=O.icon,U=O.loading,P=O.data,X=C.props.context,F=X.prefixCls,j=X.showIcon,K=X.icon,z=X.draggable,V=X.loadData,Q=X.titleRender,G=C.isDisabled(),te="".concat(F,"-node-content-wrapper"),q;if(j){var se=M||K;q=se?a.createElement("span",{className:t()("".concat(F,"-iconEle"),"".concat(F,"-icon__customize"))},typeof se=="function"?se(C.props):se):C.renderIcon()}else V&&U&&(q=C.renderIcon());var re;typeof I=="function"?re=I(P):Q?re=Q(P):re=I;var we=a.createElement("span",{className:"".concat(F,"-title")},re);return a.createElement("span",{ref:C.setSelectHandle,title:typeof I=="string"?I:"",className:t()("".concat(te),"".concat(te,"-").concat(C.getNodeState()||"normal"),!G&&(k||w)&&"".concat(F,"-node-selected"),!G&&z&&"draggable"),draggable:!G&&z||void 0,"aria-grabbed":!G&&z||void 0,onMouseEnter:C.onMouseEnter,onMouseLeave:C.onMouseLeave,onContextMenu:C.onContextMenu,onClick:C.onSelectorClick,onDoubleClick:C.onSelectorDoubleClick,onDragStart:z?C.onDragStart:void 0},q,we)},C}return Object(p.a)(_,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var w=this.props.selectable,O=this.props.context.selectable;return typeof w=="boolean"?w:O}},{key:"render",value:function(){var w,O=this.props,I=O.eventKey,k=O.className,M=O.style,U=O.dragOver,P=O.dragOverGapTop,X=O.dragOverGapBottom,F=O.isLeaf,j=O.isStart,K=O.isEnd,z=O.expanded,V=O.selected,Q=O.checked,G=O.halfChecked,te=O.loading,q=O.domRef,se=O.active,re=O.onMouseMove,we=Object(g.a)(O,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Oe=this.props.context,Me=Oe.prefixCls,Qe=Oe.filterTreeNode,Ve=Oe.draggable,dt=Oe.keyEntities,Fe=this.isDisabled(),ue=Object(e.f)(we),et=dt[I]||{},he=et.level,J=K[K.length-1];return a.createElement("div",Object.assign({ref:q,className:t()(k,"".concat(Me,"-treenode"),(w={},Object(y.a)(w,"".concat(Me,"-treenode-disabled"),Fe),Object(y.a)(w,"".concat(Me,"-treenode-switcher-").concat(z?"open":"close"),!F),Object(y.a)(w,"".concat(Me,"-treenode-checkbox-checked"),Q),Object(y.a)(w,"".concat(Me,"-treenode-checkbox-indeterminate"),G),Object(y.a)(w,"".concat(Me,"-treenode-selected"),V),Object(y.a)(w,"".concat(Me,"-treenode-loading"),te),Object(y.a)(w,"".concat(Me,"-treenode-active"),se),Object(y.a)(w,"".concat(Me,"-treenode-leaf-last"),J),Object(y.a)(w,"drag-over",!Fe&&U),Object(y.a)(w,"drag-over-gap-top",!Fe&&P),Object(y.a)(w,"drag-over-gap-bottom",!Fe&&X),Object(y.a)(w,"filter-node",Qe&&Qe(Object(s.b)(this.props))),w)),style:M,onDragEnter:Ve?this.onDragEnter:void 0,onDragOver:Ve?this.onDragOver:void 0,onDragLeave:Ve?this.onDragLeave:void 0,onDrop:Ve?this.onDrop:void 0,onDragEnd:Ve?this.onDragEnd:void 0,onMouseMove:re},ue),a.createElement(r,{prefixCls:Me,level:he,isStart:j,isEnd:K}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),_}(a.Component),b=function(T){return a.createElement(o.a.Consumer,null,function(_){return a.createElement(A,Object.assign({},T,{context:_}))})};b.displayName="TreeNode",b.defaultProps={title:v},b.isTreeNode=1;var x=D.a=b},lrIw:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("cDf5"),m=n.n(S),p=n("J4zp"),f=n.n(p),d=n("q1tI"),l=n.n(d),a=n("Zm9Q"),i=n("TSYQ"),t=n.n(i),o=n("BGR+"),e=n("2fM7"),u=n("H84U"),r=n("uaoM"),s=n("0n0R"),c=e.a.Option,h=e.a;function v(x){return x&&x.type&&(x.type.isSelectOption||x.type.isSelectOptGroup)}var A=function(E,T){var _=E.prefixCls,C=E.className,w=E.children,O=E.dataSource,I=Object(a.a)(w),k=d.useRef();d.useImperativeHandle(T,function(){return k.current});var M;if(I.length===1&&Object(s.b)(I[0])&&!v(I[0])){var U=f()(I,1);M=U[0]}var P=function(){return M},X;return I.length&&v(I[0])?X=w:X=O?O.map(function(F){if(Object(s.b)(F))return F;switch(m()(F)){case"string":return d.createElement(c,{key:F,value:F},F);case"object":{var j=F.value;return d.createElement(c,{key:j,value:j},F.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],d.useEffect(function(){Object(r.a)(!("dataSource"in E),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(r.a)(!M||!("size"in E),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),d.createElement(u.a,null,function(F){var j=F.getPrefixCls,K=j("select",_);return d.createElement(h,g()({ref:k},Object(o.default)(E,["dataSource"]),{prefixCls:K,className:t()(C,"".concat(K,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:P}),X)})},b=d.forwardRef(A);b.Option=c,D.a=b},lwQL:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("9wZj"),m=n("c8qY"),p=n("SgGq"),f=n("Ae+d"),d=n("xSat"),l=d.onIrrelevantElement,a=n("IwbS"),i=n("SA8n"),t=n("U/Mo"),o=t.getNodeGlobalScale,e="__focusNodeAdjacency",u="__unfocusNodeAdjacency",r=["itemStyle","opacity"],s=["lineStyle","opacity"];function c(b,x){var E=b.getVisual("opacity");return E!=null?E:b.getModel().get(x)}function h(b,x,E){var T=b.getGraphicEl(),_=c(b,x);E!=null&&(_==null&&(_=1),_*=E),T.downplay&&T.downplay(),T.traverse(function(C){if(!C.isGroup){var w=C.lineLabelOriginalOpacity;(w==null||E!=null)&&(w=_),C.setStyle("opacity",w)}})}function v(b,x){var E=c(b,x),T=b.getGraphicEl();T.traverse(function(_){!_.isGroup&&_.setStyle("opacity",E)}),T.highlight&&T.highlight()}var A=y.extendChartView({type:"graph",init:function(b,x){var E=new S,T=new m,_=this.group;this._controller=new p(x.getZr()),this._controllerHost={target:_},_.add(E.group),_.add(T.group),this._symbolDraw=E,this._lineDraw=T,this._firstRender=!0},render:function(b,x,E){var T=this,_=b.coordinateSystem;this._model=b;var C=this._symbolDraw,w=this._lineDraw,O=this.group;if(_.type==="view"){var I={position:_.position,scale:_.scale};this._firstRender?O.attr(I):a.updateProps(O,I,b)}i(b.getGraph(),o(b));var k=b.getData();C.updateData(k);var M=b.getEdgeData();w.updateData(M),this._updateNodeAndLinkScale(),this._updateController(b,x,E),clearTimeout(this._layoutTimeout);var U=b.forceLayout,P=b.get("force.layoutAnimation");U&&this._startForceLayoutIteration(U,P),k.eachItemGraphicEl(function(K,z){var V=k.getItemModel(z);K.off("drag").off("dragend");var Q=V.get("draggable");Q&&K.on("drag",function(){U&&(U.warmUp(),!this._layouting&&this._startForceLayoutIteration(U,P),U.setFixed(z),k.setItemLayout(z,K.position))},this).on("dragend",function(){U&&U.setUnfixed(z)},this),K.setDraggable(Q&&U),K[e]&&K.off("mouseover",K[e]),K[u]&&K.off("mouseout",K[u]),V.get("focusNodeAdjacency")&&(K.on("mouseover",K[e]=function(){T._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,dataIndex:K.dataIndex})}),K.on("mouseout",K[u]=function(){T._dispatchUnfocus(E)}))},this),k.graph.eachEdge(function(K){var z=K.getGraphicEl();z[e]&&z.off("mouseover",z[e]),z[u]&&z.off("mouseout",z[u]),K.getModel().get("focusNodeAdjacency")&&(z.on("mouseover",z[e]=function(){T._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,edgeDataIndex:K.dataIndex})}),z.on("mouseout",z[u]=function(){T._dispatchUnfocus(E)}))});var X=b.get("layout")==="circular"&&b.get("circular.rotateLabel"),F=k.getLayout("cx"),j=k.getLayout("cy");k.eachItemGraphicEl(function(K,z){var V=k.getItemModel(z),Q=V.get("label.rotate")||0,G=K.getSymbolPath();if(X){var te=k.getItemLayout(z),q=Math.atan2(te[1]-j,te[0]-F);q<0&&(q=Math.PI*2+q);var se=te[0]<F;se&&(q=q-Math.PI);var re=se?"left":"right";a.modifyLabelStyle(G,{textRotation:-q,textPosition:re,textOrigin:"center"},{textPosition:re})}else a.modifyLabelStyle(G,{textRotation:Q*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(b,x){var E=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){E._unfocusDelayTimer=null,b.dispatchAction({type:"unfocusNodeAdjacency",seriesId:E._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(b,x,E,T){var _=b.getData(),C=_.graph,w=T.dataIndex,O=T.edgeDataIndex,I=C.getNodeByIndex(w),k=C.getEdgeByIndex(O);if(!I&&!k)return;C.eachNode(function(M){h(M,r,.1)}),C.eachEdge(function(M){h(M,s,.1)}),I&&(v(I,r),g.each(I.edges,function(M){if(M.dataIndex<0)return;v(M,s),v(M.node1,r),v(M.node2,r)})),k&&(v(k,s),v(k.node1,r),v(k.node2,r))},unfocusNodeAdjacency:function(b,x,E,T){var _=b.getData().graph;_.eachNode(function(C){h(C,r)}),_.eachEdge(function(C){h(C,s)})},_startForceLayoutIteration:function(b,x){var E=this;(function T(){b.step(function(_){E.updateLayout(E._model),(E._layouting=!_)&&(x?E._layoutTimeout=setTimeout(T,16):T())})})()},_updateController:function(b,x,E){var T=this._controller,_=this._controllerHost,C=this.group;if(T.setPointerChecker(function(w,O,I){var k=C.getBoundingRect();return k.applyTransform(C.transform),k.contain(O,I)&&!l(w,E,b)}),b.coordinateSystem.type!=="view"){T.disable();return}T.enable(b.get("roam")),_.zoomLimit=b.get("scaleLimit"),_.zoom=b.coordinateSystem.getZoom(),T.off("pan").off("zoom").on("pan",function(w){f.updateViewOnPan(_,w.dx,w.dy),E.dispatchAction({seriesId:b.id,type:"graphRoam",dx:w.dx,dy:w.dy})}).on("zoom",function(w){f.updateViewOnZoom(_,w.scale,w.originX,w.originY),E.dispatchAction({seriesId:b.id,type:"graphRoam",zoom:w.scale,originX:w.originX,originY:w.originY}),this._updateNodeAndLinkScale(),i(b.getGraph(),o(b)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var b=this._model,x=b.getData(),E=o(b),T=[E,E];x.eachItemGraphicEl(function(_,C){_.attr("scale",T)})},updateLayout:function(b){i(b.getGraph(),o(b)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(b,x){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});R.exports=A},m546:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};D.default=y},m9t5:function(R,D,n){var y=n("KCsZ"),g=y([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),S={getAreaStyle:function(m,p){return g(this,m,p)}};R.exports=S},mBDr:function(R,D,n){"use strict";n.d(D,"a",function(){return S});var y=n("q1tI"),g=n.n(y);function S(m){var p=y.useRef();p.current=m;var f=y.useCallback(function(){for(var d,l=arguments.length,a=new Array(l),i=0;i<l;i++)a[i]=arguments[i];return(d=p.current)===null||d===void 0?void 0:d.call.apply(d,[p].concat(a))},[]);return f}},mFDi:function(R,D,n){var y=n("QBsz"),g=n("Fofx"),S=y.applyTransform,m=Math.min,p=Math.max;function f(l,a,i,t){i<0&&(l=l+i,i=-i),t<0&&(a=a+t,t=-t),this.x=l,this.y=a,this.width=i,this.height=t}f.prototype={constructor:f,union:function(a){var i=m(a.x,this.x),t=m(a.y,this.y);this.width=p(a.x+a.width,this.x+this.width)-i,this.height=p(a.y+a.height,this.y+this.height)-t,this.x=i,this.y=t},applyTransform:function(){var l=[],a=[],i=[],t=[];return function(o){if(!o)return;l[0]=i[0]=this.x,l[1]=t[1]=this.y,a[0]=t[0]=this.x+this.width,a[1]=i[1]=this.y+this.height,S(l,l,o),S(a,a,o),S(i,i,o),S(t,t,o),this.x=m(l[0],a[0],i[0],t[0]),this.y=m(l[1],a[1],i[1],t[1]);var e=p(l[0],a[0],i[0],t[0]),u=p(l[1],a[1],i[1],t[1]);this.width=e-this.x,this.height=u-this.y}}(),calculateTransform:function(a){var i=this,t=a.width/i.width,o=a.height/i.height,e=g.create();return g.translate(e,e,[-i.x,-i.y]),g.scale(e,e,[t,o]),g.translate(e,e,[a.x,a.y]),e},intersect:function(a){if(!a)return!1;a instanceof f||(a=f.create(a));var i=this,t=i.x,o=i.x+i.width,e=i.y,u=i.y+i.height,r=a.x,s=a.x+a.width,c=a.y,h=a.y+a.height;return!(o<r||s<t||u<c||h<e)},contain:function(a,i){var t=this;return a>=t.x&&a<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},clone:function(){return new f(this.x,this.y,this.width,this.height)},copy:function(a){this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},f.create=function(l){return new f(l.x,l.y,l.width,l.height)};var d=f;R.exports=d},mHUz:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={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};D.default=y},mLcG:function(R,D){var n=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(y){setTimeout(y,16)};R.exports=n},"mO/d":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("I9Y+"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},mOdp:function(R,D,n){var y=n("bYtY"),g=y.createHashMap;function S(m){return{getTargetSeries:function(p){var f={},d=g();return p.eachSeriesByType(m,function(l){l.__paletteScope=f,d.set(l.uid,l)}),d},reset:function(p,f){var d=p.getRawData(),l={},a=p.getData();a.each(function(i){var t=a.getRawIndex(i);l[t]=i}),d.each(function(i){var t=l[i],o=t!=null&&a.getItemVisual(t,"color",!0),e=t!=null&&a.getItemVisual(t,"borderColor",!0),u;if((!o||!e)&&(u=d.getItemModel(i)),!o){var r=u.get("itemStyle.color")||p.getColorFromPalette(d.getName(i)||i+"",p.__paletteScope,d.count());t!=null&&a.setItemVisual(t,"color",r)}if(!e){var s=u.get("itemStyle.borderColor");t!=null&&a.setItemVisual(t,"borderColor",s)}})}}}R.exports=S},mTgk:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("mHUz"));function g(l){return l&&l.__esModule?l:{default:l}}var S={};function m(l,a){if(a===void 0)throw new Error('Undefined keysym for key "'+l+'"');if(l in S)throw new Error('Duplicate entry for key "'+l+'"');S[l]=[a,a,a,a]}function p(l,a,i){if(a===void 0)throw new Error('Undefined keysym for key "'+l+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+l+'"');if(l in S)throw new Error('Duplicate entry for key "'+l+'"');S[l]=[a,a,i,a]}function f(l,a,i){if(a===void 0)throw new Error('Undefined keysym for key "'+l+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+l+'"');if(l in S)throw new Error('Duplicate entry for key "'+l+'"');S[l]=[a,a,a,i]}p("Alt",y.default.XK_Alt_L,y.default.XK_Alt_R),m("AltGraph",y.default.XK_ISO_Level3_Shift),m("CapsLock",y.default.XK_Caps_Lock),p("Control",y.default.XK_Control_L,y.default.XK_Control_R),p("Meta",y.default.XK_Super_L,y.default.XK_Super_R),m("NumLock",y.default.XK_Num_Lock),m("ScrollLock",y.default.XK_Scroll_Lock),p("Shift",y.default.XK_Shift_L,y.default.XK_Shift_R),f("Enter",y.default.XK_Return,y.default.XK_KP_Enter),m("Tab",y.default.XK_Tab),f(" ",y.default.XK_space,y.default.XK_KP_Space),f("ArrowDown",y.default.XK_Down,y.default.XK_KP_Down),f("ArrowUp",y.default.XK_Up,y.default.XK_KP_Up),f("ArrowLeft",y.default.XK_Left,y.default.XK_KP_Left),f("ArrowRight",y.default.XK_Right,y.default.XK_KP_Right),f("End",y.default.XK_End,y.default.XK_KP_End),f("Home",y.default.XK_Home,y.default.XK_KP_Home),f("PageDown",y.default.XK_Next,y.default.XK_KP_Next),f("PageUp",y.default.XK_Prior,y.default.XK_KP_Prior),m("Backspace",y.default.XK_BackSpace),f("Clear",y.default.XK_Clear,y.default.XK_KP_Begin),m("Copy",y.default.XF86XK_Copy),m("Cut",y.default.XF86XK_Cut),f("Delete",y.default.XK_Delete,y.default.XK_KP_Delete),f("Insert",y.default.XK_Insert,y.default.XK_KP_Insert),m("Paste",y.default.XF86XK_Paste),m("Redo",y.default.XK_Redo),m("Undo",y.default.XK_Undo),m("Cancel",y.default.XK_Cancel),m("ContextMenu",y.default.XK_Menu),m("Escape",y.default.XK_Escape),m("Execute",y.default.XK_Execute),m("Find",y.default.XK_Find),m("Help",y.default.XK_Help),m("Pause",y.default.XK_Pause),m("Select",y.default.XK_Select),m("ZoomIn",y.default.XF86XK_ZoomIn),m("ZoomOut",y.default.XF86XK_ZoomOut),m("BrightnessDown",y.default.XF86XK_MonBrightnessDown),m("BrightnessUp",y.default.XF86XK_MonBrightnessUp),m("Eject",y.default.XF86XK_Eject),m("LogOff",y.default.XF86XK_LogOff),m("Power",y.default.XF86XK_PowerOff),m("PowerOff",y.default.XF86XK_PowerDown),m("PrintScreen",y.default.XK_Print),m("Hibernate",y.default.XF86XK_Hibernate),m("Standby",y.default.XF86XK_Standby),m("WakeUp",y.default.XF86XK_WakeUp),m("AllCandidates",y.default.XK_MultipleCandidate),m("Alphanumeric",y.default.XK_Eisu_Shift),m("CodeInput",y.default.XK_Codeinput),m("Compose",y.default.XK_Multi_key),m("Convert",y.default.XK_Henkan),m("GroupFirst",y.default.XK_ISO_First_Group),m("GroupLast",y.default.XK_ISO_Last_Group),m("GroupNext",y.default.XK_ISO_Next_Group),m("GroupPrevious",y.default.XK_ISO_Prev_Group),m("NonConvert",y.default.XK_Muhenkan),m("PreviousCandidate",y.default.XK_PreviousCandidate),m("SingleCandidate",y.default.XK_SingleCandidate),m("HangulMode",y.default.XK_Hangul),m("HanjaMode",y.default.XK_Hangul_Hanja),m("JunjuaMode",y.default.XK_Hangul_Jeonja),m("Eisu",y.default.XK_Eisu_toggle),m("Hankaku",y.default.XK_Hankaku),m("Hiragana",y.default.XK_Hiragana),m("HiraganaKatakana",y.default.XK_Hiragana_Katakana),m("KanaMode",y.default.XK_Kana_Shift),m("KanjiMode",y.default.XK_Kanji),m("Katakana",y.default.XK_Katakana),m("Romaji",y.default.XK_Romaji),m("Zenkaku",y.default.XK_Zenkaku),m("ZenkakuHanaku",y.default.XK_Zenkaku_Hankaku),m("F1",y.default.XK_F1),m("F2",y.default.XK_F2),m("F3",y.default.XK_F3),m("F4",y.default.XK_F4),m("F5",y.default.XK_F5),m("F6",y.default.XK_F6),m("F7",y.default.XK_F7),m("F8",y.default.XK_F8),m("F9",y.default.XK_F9),m("F10",y.default.XK_F10),m("F11",y.default.XK_F11),m("F12",y.default.XK_F12),m("F13",y.default.XK_F13),m("F14",y.default.XK_F14),m("F15",y.default.XK_F15),m("F16",y.default.XK_F16),m("F17",y.default.XK_F17),m("F18",y.default.XK_F18),m("F19",y.default.XK_F19),m("F20",y.default.XK_F20),m("F21",y.default.XK_F21),m("F22",y.default.XK_F22),m("F23",y.default.XK_F23),m("F24",y.default.XK_F24),m("F25",y.default.XK_F25),m("F26",y.default.XK_F26),m("F27",y.default.XK_F27),m("F28",y.default.XK_F28),m("F29",y.default.XK_F29),m("F30",y.default.XK_F30),m("F31",y.default.XK_F31),m("F32",y.default.XK_F32),m("F33",y.default.XK_F33),m("F34",y.default.XK_F34),m("F35",y.default.XK_F35),m("Close",y.default.XF86XK_Close),m("MailForward",y.default.XF86XK_MailForward),m("MailReply",y.default.XF86XK_Reply),m("MailSend",y.default.XF86XK_Send),m("MediaFastForward",y.default.XF86XK_AudioForward),m("MediaPause",y.default.XF86XK_AudioPause),m("MediaPlay",y.default.XF86XK_AudioPlay),m("MediaRecord",y.default.XF86XK_AudioRecord),m("MediaRewind",y.default.XF86XK_AudioRewind),m("MediaStop",y.default.XF86XK_AudioStop),m("MediaTrackNext",y.default.XF86XK_AudioNext),m("MediaTrackPrevious",y.default.XF86XK_AudioPrev),m("New",y.default.XF86XK_New),m("Open",y.default.XF86XK_Open),m("Print",y.default.XK_Print),m("Save",y.default.XF86XK_Save),m("SpellCheck",y.default.XF86XK_Spell),m("AudioVolumeDown",y.default.XF86XK_AudioLowerVolume),m("AudioVolumeUp",y.default.XF86XK_AudioRaiseVolume),m("AudioVolumeMute",y.default.XF86XK_AudioMute),m("MicrophoneVolumeMute",y.default.XF86XK_AudioMicMute),m("LaunchApplication1",y.default.XF86XK_MyComputer),m("LaunchApplication2",y.default.XF86XK_Calculator),m("LaunchCalendar",y.default.XF86XK_Calendar),m("LaunchMail",y.default.XF86XK_Mail),m("LaunchMediaPlayer",y.default.XF86XK_AudioMedia),m("LaunchMusicPlayer",y.default.XF86XK_Music),m("LaunchPhone",y.default.XF86XK_Phone),m("LaunchScreenSaver",y.default.XF86XK_ScreenSaver),m("LaunchSpreadsheet",y.default.XF86XK_Excel),m("LaunchWebBrowser",y.default.XF86XK_WWW),m("LaunchWebCam",y.default.XF86XK_WebCam),m("LaunchWordProcessor",y.default.XF86XK_Word),m("BrowserBack",y.default.XF86XK_Back),m("BrowserFavorites",y.default.XF86XK_Favorites),m("BrowserForward",y.default.XF86XK_Forward),m("BrowserHome",y.default.XF86XK_HomePage),m("BrowserRefresh",y.default.XF86XK_Refresh),m("BrowserSearch",y.default.XF86XK_Search),m("BrowserStop",y.default.XF86XK_Stop),m("Dimmer",y.default.XF86XK_BrightnessAdjust),m("MediaAudioTrack",y.default.XF86XK_AudioCycleTrack),m("RandomToggle",y.default.XF86XK_AudioRandomPlay),m("SplitScreenToggle",y.default.XF86XK_SplitScreen),m("Subtitle",y.default.XF86XK_Subtitle),m("VideoModeNext",y.default.XF86XK_Next_VMode),f("=",y.default.XK_equal,y.default.XK_KP_Equal),f("+",y.default.XK_plus,y.default.XK_KP_Add),f("-",y.default.XK_minus,y.default.XK_KP_Subtract),f("*",y.default.XK_asterisk,y.default.XK_KP_Multiply),f("/",y.default.XK_slash,y.default.XK_KP_Divide),f(".",y.default.XK_period,y.default.XK_KP_Decimal),f(",",y.default.XK_comma,y.default.XK_KP_Separator),f("0",y.default.XK_0,y.default.XK_KP_0),f("1",y.default.XK_1,y.default.XK_KP_1),f("2",y.default.XK_2,y.default.XK_KP_2),f("3",y.default.XK_3,y.default.XK_KP_3),f("4",y.default.XK_4,y.default.XK_KP_4),f("5",y.default.XK_5,y.default.XK_KP_5),f("6",y.default.XK_6,y.default.XK_KP_6),f("7",y.default.XK_7,y.default.XK_KP_7),f("8",y.default.XK_8,y.default.XK_KP_8),f("9",y.default.XK_9,y.default.XK_KP_9);var d=S;D.default=d},mYwL:function(R,D,n){var y=n("bYtY"),g=n("IwbS"),S=n("6GrX"),m=Math.PI;function p(f,d){d=d||{},y.defaults(d,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var l=new g.Group,a=new g.Rect({style:{fill:d.maskColor},zlevel:d.zlevel,z:1e4});l.add(a);var i=d.fontSize+" sans-serif",t=new g.Rect({style:{fill:"none",text:d.text,font:i,textPosition:"right",textDistance:10,textFill:d.textColor},zlevel:d.zlevel,z:10001});if(l.add(t),d.showSpinner){var o=new g.Arc({shape:{startAngle:-m/2,endAngle:-m/2+.1,r:d.spinnerRadius},style:{stroke:d.color,lineCap:"round",lineWidth:d.lineWidth},zlevel:d.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:m*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:m*3/2}).delay(300).start("circularInOut"),l.add(o)}return l.resize=function(){var e=S.getWidth(d.text,i),u=d.showSpinner?d.spinnerRadius:0,r=(f.getWidth()-u*2-(d.showSpinner&&e?10:0)-e)/2-(d.showSpinner?0:e/2),s=f.getHeight()/2;d.showSpinner&&o.setShape({cx:r,cy:s}),t.setShape({x:r-u,y:s-u,width:u*2,height:u*2}),a.setShape({x:0,y:0,width:f.getWidth(),height:f.getHeight()})},l.resize(),l}R.exports=p},mdPL:function(R,D,n){(function(y){var g=n("WFqU"),S=D&&!D.nodeType&&D,m=S&&typeof y=="object"&&y&&!y.nodeType&&y,p=m&&m.exports===S,f=p&&g.process,d=function(){try{var l=m&&m.require&&m.require("util").types;return l||f&&f.binding&&f.binding("util")}catch(a){}}();y.exports=d}).call(this,n("YuTi")(R))},mdZa:function(R,D,n){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(g,S){"use strict";if(g==null)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(g),p=1;p<arguments.length;p++){var f=arguments[p];if(f!=null)for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(m[d]=f[d])}return m},writable:!0,configurable:!0}),function(){function y(g,S){S=S||{bubbles:!1,cancelable:!1,detail:void 0};var m=document.createEvent("CustomEvent");return m.initCustomEvent(g,S.bubbles,S.cancelable,S.detail),m}y.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=y)}(),Number.isInteger=Number.isInteger||function(g){return typeof g=="number"&&isFinite(g)&&Math.floor(g)===g}},"mh/l":function(R,D,n){"use strict";n.d(D,"b",function(){return x}),n.d(D,"d",function(){return E}),n.d(D,"c",function(){return T});var y=n("pVnL"),g=n.n(y),S=n("lwsE"),m=n.n(S),p=n("W8MJ"),f=n.n(p),d=n("7W2i"),l=n.n(d),a=n("LQ03"),i=n.n(a),t=n("lSNA"),o=n.n(t),e=n("q1tI"),u=n.n(e),r=n("TSYQ"),s=n.n(r),c=n("BGR+"),h=n("LlR5"),v=n("H84U"),A=n("3Nzz"),b=n("uaoM");function x(C){return typeof C=="undefined"||C===null?"":C}function E(C,w,O){if(O){var I=w;if(w.type==="click"){I=Object.create(w),I.target=C,I.currentTarget=C;var k=C.value;C.value="",O(I),C.value=k;return}O(I)}}function T(C,w,O,I,k){var M;return s()(C,(M={},o()(M,"".concat(C,"-sm"),O==="small"),o()(M,"".concat(C,"-lg"),O==="large"),o()(M,"".concat(C,"-disabled"),I),o()(M,"".concat(C,"-rtl"),k==="rtl"),o()(M,"".concat(C,"-borderless"),!w),M))}var _=function(C){l()(O,C);var w=i()(O);function O(I){var k;m()(this,O),k=w.call(this,I),k.direction="ltr",k.focus=function(){k.input.focus()},k.saveClearableInput=function(U){k.clearableInput=U},k.saveInput=function(U){k.input=U},k.onFocus=function(U){var P=k.props.onFocus;k.setState({focused:!0},k.clearPasswordValueAttribute),P&&P(U)},k.onBlur=function(U){var P=k.props.onBlur;k.setState({focused:!1},k.clearPasswordValueAttribute),P&&P(U)},k.handleReset=function(U){k.setValue("",function(){k.focus()}),E(k.input,U,k.props.onChange)},k.renderInput=function(U,P,X){var F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=k.props,K=j.className,z=j.addonBefore,V=j.addonAfter,Q=j.size,G=j.disabled,te=Object(c.default)(k.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",g()({autoComplete:F.autoComplete},te,{onChange:k.handleChange,onFocus:k.onFocus,onBlur:k.onBlur,onKeyDown:k.handleKeyDown,className:s()(T(U,X,Q||P,G,k.direction),o()({},K,K&&!z&&!V)),ref:k.saveInput}))},k.clearPasswordValueAttribute=function(){k.removePasswordTimeout=setTimeout(function(){k.input&&k.input.getAttribute("type")==="password"&&k.input.hasAttribute("value")&&k.input.removeAttribute("value")})},k.handleChange=function(U){k.setValue(U.target.value,k.clearPasswordValueAttribute),E(k.input,U,k.props.onChange)},k.handleKeyDown=function(U){var P=k.props,X=P.onPressEnter,F=P.onKeyDown;U.keyCode===13&&X&&X(U),F&&F(U)},k.renderComponent=function(U){var P=U.getPrefixCls,X=U.direction,F=U.input,j=k.state,K=j.value,z=j.focused,V=k.props,Q=V.prefixCls,G=V.bordered,te=G===void 0?!0:G,q=P("input",Q);return k.direction=X,e.createElement(A.b.Consumer,null,function(se){return e.createElement(h.a,g()({size:se},k.props,{prefixCls:q,inputType:"input",value:x(K),element:k.renderInput(q,se,te,F),handleReset:k.handleReset,ref:k.saveClearableInput,direction:X,focused:z,triggerFocus:k.focus,bordered:te}))})};var M=typeof I.value=="undefined"?I.defaultValue:I.value;return k.state={value:M,focused:!1,prevValue:I.value},k}return f()(O,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(k){return Object(h.b)(k)!==Object(h.b)(this.props)&&Object(b.a)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(k,M){this.props.value===void 0&&this.setState({value:k},M)}},{key:"render",value:function(){return e.createElement(v.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(k,M){var U=M.prevValue,P={prevValue:k.value};return(k.value!==void 0||U!==k.value)&&(P.value=k.value),P}}]),O}(e.Component);_.defaultProps={type:"text"},D.a=_},mr32:function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("pVnL"),m=n.n(S),p=n("J4zp"),f=n.n(p),d=n("q1tI"),l=n("TSYQ"),a=n.n(l),i=n("BGR+"),t=n("V/uB"),o=n.n(t),e=n("H84U"),u=function(_,C){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&C.indexOf(O)<0&&(w[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)C.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(w[O[I]]=_[O[I]]);return w},r=function(C){var w,O=d.useContext(e.b),I=O.getPrefixCls,k=function(z){var V=C.checked,Q=C.onChange,G=C.onClick;Q&&Q(!V),G&&G(z)},M=C.prefixCls,U=C.className,P=C.checked,X=u(C,["prefixCls","className","checked"]),F=I("tag",M),j=a()(F,(w={},g()(w,"".concat(F,"-checkable"),!0),g()(w,"".concat(F,"-checkable-checked"),P),w),U);return delete X.onChange,d.createElement("span",m()({},X,{className:j,onClick:k}))},s=r,c=n("09Wf"),h=n("g0mS"),v=function(_,C){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&C.indexOf(O)<0&&(w[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)C.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(w[O[I]]=_[O[I]]);return w},A=new RegExp("^(".concat(c.a.join("|"),")(-inverse)?$")),b=new RegExp("^(".concat(c.b.join("|"),")$")),x=function(C,w){var O,I=C.prefixCls,k=C.className,M=C.style,U=C.children,P=C.icon,X=C.color,F=C.onClose,j=C.closeIcon,K=C.closable,z=K===void 0?!1:K,V=v(C,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),Q=d.useContext(e.b),G=Q.getPrefixCls,te=Q.direction,q=d.useState(!0),se=f()(q,2),re=se[0],we=se[1];d.useEffect(function(){"visible"in V&&we(V.visible)},[V.visible]);var Oe=function(){return X?A.test(X)||b.test(X):!1},Me=m()({backgroundColor:X&&!Oe()?X:void 0},M),Qe=Oe(),Ve=G("tag",I),dt=a()(Ve,(O={},g()(O,"".concat(Ve,"-").concat(X),Qe),g()(O,"".concat(Ve,"-has-color"),X&&!Qe),g()(O,"".concat(Ve,"-hidden"),!re),g()(O,"".concat(Ve,"-rtl"),te==="rtl"),O),k),Fe=function(be){if(be.stopPropagation(),F&&F(be),be.defaultPrevented)return;"visible"in V||we(!1)},ue=function(){return z?j?d.createElement("div",{className:"".concat(Ve,"-close-icon"),onClick:Fe},j):d.createElement(o.a,{className:"".concat(Ve,"-close-icon"),onClick:Fe}):null},et="onClick"in V||U&&U.type==="a",he=Object(i.default)(V,["visible"]),J=P||null,Y=J?d.createElement(d.Fragment,null,J,d.createElement("span",null,U)):U,$=d.createElement("span",m()({},he,{ref:w,className:dt,style:Me}),Y,ue());return et?d.createElement(h.a,null,$):$},E=d.forwardRef(x);E.displayName="Tag",E.CheckableTag=s;var T=D.a=E},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(R){if(!0)module.exports=R();else var D})(function(){var define,module,exports;return function(){function R(D,n,y){function g(p,f){if(!n[p]){if(!D[p]){var d=typeof require=="function"&&require;if(!f&&d)return require(p,!0);if(S)return S(p,!0);var l=new Error("Cannot find module '"+p+"'");throw l.code="MODULE_NOT_FOUND",l}var a=n[p]={exports:{}};D[p][0].call(a.exports,function(i){var t=D[p][1][i];return g(t||i)},a,a.exports,R,D,n,y)}return n[p].exports}for(var S=typeof require=="function"&&require,m=0;m<y.length;m++)g(y[m]);return g}return R}()({1:[function(R,D,n){"use strict";var y=R("./browser/client");y.Buffer=R("buffer").Buffer,y.urllib=R("../shims/xhr"),y.version=R("./browser/version").version,D.exports=y},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(R,D,n){(function(y,g){"use strict";var S=R("babel-runtime/core-js/promise"),m=a(S),p=R("babel-runtime/regenerator"),f=a(p),d=R("babel-runtime/core-js/object/assign"),l=a(d);function a(P){return P&&P.__esModule?P:{default:P}}var i=R("debug")("ali-oss"),t=R("copy-to"),o=R("xml2js"),e=R("agentkeepalive"),u=R("merge-descriptors"),r=R("url"),s=R("is-type-of"),c=R("platform"),h=R("utility"),v=R("urllib"),A=R("./version"),b=R("bowser"),x=R("../common/signUtils"),E=R("../common/utils/isIP"),T=E.isIP,_=R("../common/client/initOptions"),C=R("../common/utils/createRequest"),w=C.createRequest,O=new e;function I(){var P=c.name,X=c.version;P&&P.toLowerCase&&P.toLowerCase()==="ie"&&X.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function k(){return location&&location.protocol==="https:"}function M(P,X){if(I(),!(this instanceof M))return new M(P,X);P&&P.inited?this.options=P:this.options=M.initOptions(P),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=v,this.agent=this.options.agent||O),this.ctx=X,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}D.exports=M,M.initOptions=function(X){X.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var F=(0,l.default)({secure:k(),useFetch:!1},X);return _(F)};var U=M.prototype;U.debug=i,u(U,R("./object")),u(U,R("../common/bucket/getBucketWebsite")),u(U,R("../common/bucket/putBucketWebsite")),u(U,R("../common/bucket/deleteBucketWebsite")),u(U,R("../common/bucket/getBucketLifecycle")),u(U,R("../common/bucket/putBucketLifecycle")),u(U,R("../common/bucket/deleteBucketLifecycle")),u(U,R("../common/bucket/putBucketVersioning")),u(U,R("../common/bucket/getBucketVersioning")),u(U,R("./managed-upload")),u(U,R("../common/multipart")),u(U,R("../common/parallel")),U.signature=function(X){return this.debug("authorization stringToSign: %s",X,"info"),x.computeSignature(this.options.accessKeySecret,X)},U.authorization=function(X,F,j,K){var z=x.buildCanonicalString(X.toUpperCase(),F,{headers:K,parameters:j});return x.authorization(this.options.accessKeyId,this.options.accessKeySecret,z)},U.request=function(X){var F,j,K,z,V,Q;return f.default.async(function(te){for(;;)switch(te.prev=te.next){case 0:return F=w.call(this,X),this.options.useFetch||(F.params.mode="disable-fetch"),j=void 0,K=void 0,z=!!X.stream,te.prev=5,te.next=8,f.default.awrap(this.urllib.request(F.url,F.params));case 8:j=te.sent,this.debug("response %s %s, got %s, headers: %j",X.method,F.url,j.status,j.headers,"info"),te.next=15;break;case 12:te.prev=12,te.t0=te.catch(5),K=te.t0;case 15:if(V=void 0,!(j&&X.successStatuses&&X.successStatuses.indexOf(j.status)===-1)){te.next=28;break}return te.next=19,f.default.awrap(this.requestError(j));case 19:if(V=te.sent,!(V.code==="RequestTimeTooSkewed"&&!z)){te.next=25;break}return this.options.amendTimeSkewed=+new Date(V.serverTime)-new Date,te.next=24,f.default.awrap(this.request(X));case 24:return te.abrupt("return",te.sent);case 25:V.params=X,te.next=32;break;case 28:if(!K){te.next=32;break}return te.next=31,f.default.awrap(this.requestError(K));case 31:V=te.sent;case 32:if(!V){te.next=34;break}throw V;case 34:if(!X.xmlResponse){te.next=39;break}return te.next=37,f.default.awrap(this.parseXML(j.data));case 37:Q=te.sent,j.data=Q;case 39:return te.abrupt("return",j);case 40:case"end":return te.stop()}},null,this,[[5,12]])},U._getResource=function(X){var F="/";return X.bucket&&(F+=X.bucket+"/"),X.object&&(F+=X.object),F},U._isIP=T,U._escape=function(X){return h.encodeURIComponent(X).replace(/%2F/g,"/")},U._getReqUrl=function(X){var F={};t(this.options.endpoint).to(F);var j=this._isIP(F.hostname),K=this.options.cname;X.bucket&&!K&&!j&&(F.host=X.bucket+"."+F.host);var z="/";X.bucket&&j&&(z+=X.bucket+"/"),X.object&&(z+=this._escape(X.object).replace(/\+/g,"%2B")),F.pathname=z;var V={};if(X.query&&u(V,X.query),X.subres){var Q={};s.string(X.subres)?Q[X.subres]="":s.array(X.subres)?X.subres.forEach(function(G){Q[G]=""}):Q=X.subres,u(V,Q)}return F.query=V,r.format(F)},U._getUserAgent=function(){var X=g&&g.browser?"js":"nodejs",F="aliyun-sdk-"+X+"/"+A.version,j=c.description;return!j&&g&&(j="Node.js "+g.version.slice(1)+" on "+g.platform+" "+g.arch),this._checkUserAgent(F+" "+j)},U._checkUserAgent=function(X){var F=X.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return F},U.checkBrowserAndVersion=function(X,F){return b.name===X&&b.version.split(".")[0]===F},U.parseXML=function(X){return new m.default(function(F,j){y.isBuffer(X)&&(X=X.toString()),o.parseString(X,{explicitRoot:!1,explicitArray:!1},function(K,z){K?j(K):F(z)})})},U.requestError=function(X){var F,j,K,z;return f.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(F=null,!(!X.data||!X.data.length)){Q.next=5;break}X.status===-1||X.status===-2?(F=new Error(X.message),F.name=X.name,F.status=X.status,F.code=X.name):(X.status===404?(F=new Error("Object not exists"),F.name="NoSuchKeyError",F.status=404,F.code="NoSuchKey"):X.status===412?(F=new Error("Pre condition failed"),F.name="PreconditionFailedError",F.status=412,F.code="PreconditionFailed"):(F=new Error("Unknow error, status: "+X.status),F.name="UnknowError",F.status=X.status),F.requestId=X.headers["x-oss-request-id"],F.host=""),Q.next=33;break;case 5:return j=String(X.data),this.debug("request response error data: %s",j,"error"),K=void 0,Q.prev=8,Q.next=11,f.default.awrap(this.parseXML(j));case 11:if(Q.t0=Q.sent,Q.t0){Q.next=14;break}Q.t0={};case 14:K=Q.t0,Q.next=24;break;case 17:return Q.prev=17,Q.t1=Q.catch(8),this.debug(j,"error"),Q.t1.message+=`
raw xml: `+j,Q.t1.status=X.status,Q.t1.requestId=X.headers["x-oss-request-id"],Q.abrupt("return",Q.t1);case 24:z=K.Message||"unknow request error, status: "+X.status,K.Condition&&(z+=" (condition: "+K.Condition+")"),F=new Error(z),F.name=K.Code?K.Code+"Error":"UnknowError",F.status=X.status,F.code=K.Code,F.requestId=K.RequestId,F.hostId=K.HostId,F.serverTime=K.ServerTime;case 33:return this.debug("generate error %j",F,"error"),Q.abrupt("return",F);case 35:case"end":return Q.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:R("../../node_modules/is-buffer/index.js")},R("_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(R,D,n){(function(y){"use strict";var g=R("babel-runtime/core-js/array/from"),S=l(g),m=R("babel-runtime/core-js/promise"),p=l(m),f=R("babel-runtime/regenerator"),d=l(f);function l(x){return x&&x.__esModule?x:{default:x}}var a=R("is-type-of"),i=R("util"),t=R("path"),o=R("mime"),e=R("copy-to"),u=R("../common/utils/isBlob"),r=u.isBlob,s=R("../common/utils/isFile"),c=s.isFile,h=n;h.multipartUpload=function(E,T,_){var C,w,O,I,k,M,U,P,X;return d.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:if(this.resetCancelFlag(),_=_||{},!(_.checkpoint&&_.checkpoint.uploadId)){j.next=6;break}return j.next=5,d.default.awrap(this._resumeMultipart(_.checkpoint,_));case 5:return j.abrupt("return",j.sent);case 6:return C=100*1024,_.mime||(c(T)?_.mime=o.getType(t.extname(T.name)):r(T)?_.mime=T.type:_.mime=o.getType(t.extname(T))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),j.next=12,d.default.awrap(this._getFileSize(T));case 12:if(w=j.sent,!(w<C)){j.next=25;break}return O=this._createStream(T,0,w),_.contentLength=w,j.next=18,d.default.awrap(this.putStream(E,O,_));case 18:if(I=j.sent,!(_&&_.progress)){j.next=22;break}return j.next=22,d.default.awrap(_.progress(1));case 22:return k={res:I.res,bucket:this.options.bucket,name:E,etag:I.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(k.data=I.data),j.abrupt("return",k);case 25:if(!(_.partSize&&!(parseInt(_.partSize,10)===_.partSize))){j.next=27;break}throw new Error("partSize must be int number");case 27:if(!(_.partSize&&_.partSize<C)){j.next=29;break}throw new Error("partSize must not be smaller than "+C);case 29:return j.next=31,d.default.awrap(this.initMultipartUpload(E,_));case 31:if(M=j.sent,U=M.uploadId,P=this._getPartSize(w,_.partSize),X={file:T,name:E,fileSize:w,partSize:P,uploadId:U,doneParts:[]},!(_&&_.progress)){j.next=38;break}return j.next=38,d.default.awrap(_.progress(0,X,M.res));case 38:return j.next=40,d.default.awrap(this._resumeMultipart(X,_));case 40:return j.abrupt("return",j.sent);case 41:case"end":return j.stop()}},null,this)},h._resumeMultipart=function(E,T){var _,C,w,O,I,k,M,U,P,X,F,j,K,z,V,Q,G,te;return d.default.async(function(se){for(;;)switch(se.prev=se.next){case 0:if(_=this,!this.isCancel()){se.next=3;break}throw this._makeCancelEvent();case 3:return C=E.file,w=E.fileSize,O=E.partSize,I=E.uploadId,k=E.doneParts,M=E.name,U=[],k.length>0&&e(k).to(U),P=this._divideParts(w,O),X=P.length,F=!1,j=function(we,Oe){var Me=this;return new p.default(function(Ve,dt){var Fe,ue,et,he;return d.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(Y.prev=0,we.isCancel()){Y.next=18;break}return Fe=P[Oe-1],ue={stream:we._createStream(C,Fe.start,Fe.end),size:Fe.end-Fe.start},Y.next=6,d.default.awrap(we._uploadPart(M,I,Oe,ue));case 6:if(et=Y.sent,!(!we.isCancel()&&!F)){Y.next=15;break}if(E.doneParts.push({number:Oe,etag:et.res.headers.etag}),!T.progress){Y.next=12;break}return Y.next=12,d.default.awrap(T.progress(k.length/X,E,et.res));case 12:Ve({number:Oe,etag:et.res.headers.etag}),Y.next=16;break;case 15:Ve();case 16:Y.next=19;break;case 18:Ve();case 19:Y.next=30;break;case 21:Y.prev=21,Y.t0=Y.catch(0),he=new Error,he.name=Y.t0.name,he.message=Y.t0.message,he.stack=Y.t0.stack,he.partNum=Oe,e(Y.t0).to(he),dt(he);case 30:case"end":return Y.stop()}},null,Me,[[0,21]])})},K=(0,S.default)(new Array(X),function(re,we){return we+1}),z=U.map(function(re){return re.number}),V=K.filter(function(re){return z.indexOf(re)<0}),Q=5,G=T.parallel||Q,se.next=17,d.default.awrap(this._parallel(V,G,function(re){return new p.default(function(we,Oe){j(_,re).then(function(Me){Me&&U.push(Me),we()}).catch(function(Me){Oe(Me)})})}));case 17:if(te=se.sent,F=!0,!this.isCancel()){se.next=22;break}throw j=null,this._makeCancelEvent();case 22:if(!(te&&te.length>0)){se.next=25;break}throw te[0].message="Failed to upload some parts with error: "+te[0].toString()+" part_num: "+te[0].partNum,te[0];case 25:return se.next=27,d.default.awrap(this.completeMultipartUpload(M,I,U,T));case 27:return se.abrupt("return",se.sent);case 28:case"end":return se.stop()}},null,this)},h._getFileSize=function(E){return d.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!a.buffer(E)){_.next=4;break}return _.abrupt("return",E.length);case 4:if(!(r(E)||c(E))){_.next=6;break}return _.abrupt("return",E.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return _.stop()}},null,this)};var v=R("stream"),A=v.Readable;function b(x,E){if(!(this instanceof b))return new b(x,E);A.call(this,E),this.file=x,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}i.inherits(b,A),b.prototype.readFileAndPush=function(E){if(this.fileBuffer)for(var T=!0;T&&this.fileBuffer&&this.start<this.fileBuffer.length;){var _=this.start,C=_+E;C=C>this.fileBuffer.length?this.fileBuffer.length:C,this.start=C,T=this.push(this.fileBuffer.slice(_,C))}},b.prototype._read=function(E){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 T=16*1024;E=E||T;var _=this;this.reader.onload=function(w){_.fileBuffer=y.from(new Uint8Array(w.target.result)),_.file=null,_.readFileAndPush(E)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(E)},h._createStream=function(E,T,_){if(r(E)||c(E))return new b(E.slice(T,_));throw new Error("_createStream requires File/Blob.")},h._getPartSize=function(E,T){var _=10*1e3,C=1024*1024;return T?Math.max(Math.ceil(E/_),T):C},h._divideParts=function(E,T){for(var _=Math.ceil(E/T),C=[],w=0;w<_;w++){var O=T*w,I=Math.min(O+T,E);C.push({start:O,end:I})}return C}}).call(this,R("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(R,D,n){"use strict";var y=R("babel-runtime/core-js/promise"),g=a(y),S=R("babel-runtime/core-js/object/keys"),m=a(S),p=R("babel-runtime/core-js/object/assign"),f=a(p),d=R("babel-runtime/regenerator"),l=a(d);function a(_){return _&&_.__esModule?_:{default:_}}var i=R("utility"),t=R("fs"),o=R("is-type-of"),e=R("url"),u=R("copy-to"),r=R("path"),s=R("mime"),c=R("../common/callback"),h=R("../common/signUtils"),v=R("merge-descriptors"),A=R("../common/utils/isBlob"),b=A.isBlob,x=R("../common/utils/isFile"),E=x.isFile,T=n;T.append=function(C,w,O){var I;return l.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",M.next=6,l.default.awrap(this.put(C,w,O));case 6:return I=M.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],M.abrupt("return",I);case 9:case"end":return M.stop()}},null,this)},T.put=function(C,w,O){var I,k,M,U,P,X,F;return l.default.async(function(K){for(;;)switch(K.prev=K.next){case 0:if(I=void 0,O=O||{},C=this._objectName(C),!o.buffer(w)){K.next=7;break}I=w,K.next=33;break;case 7:if(!(b(w)||E(w))){K.next=32;break}return O.mime||(E(w)?O.mime=s.getType(r.extname(w.name)):O.mime=w.type),k=this._createStream(w,0,w.size),K.next=12,l.default.awrap(this._getFileSize(w));case 12:return O.contentLength=K.sent,K.prev=13,K.next=16,l.default.awrap(this.putStream(C,k,O));case 16:return M=K.sent,K.abrupt("return",M);case 20:if(K.prev=20,K.t0=K.catch(13),!(K.t0.code==="RequestTimeTooSkewed")){K.next=29;break}return this.options.amendTimeSkewed=+new Date(K.t0.serverTime)-new Date,K.next=26,l.default.awrap(this.put(C,w,O));case 26:return K.abrupt("return",K.sent);case 29:throw K.t0;case 30:K.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),U=O.method||"PUT",P=this._objectRequestParams(U,C,O),c.encodeCallback(P,O),P.mime=O.mime,P.content=I,P.successStatuses=[200],K.next=43,l.default.awrap(this.request(P));case 43:return X=K.sent,F={name:C,url:this._objectUrl(C),res:X.res},P.headers&&P.headers["x-oss-callback"]&&(F.data=JSON.parse(X.data.toString())),K.abrupt("return",F);case 47:case"end":return K.stop()}},null,this,[[13,20]])},T.putStream=function(C,w,O){var I,k,M,U;return l.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return O=O||{},O.headers=O.headers||{},C=this._objectName(C),O.contentLength?O.headers["Content-Length"]=O.contentLength:O.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(O.meta,O.headers),I=O.method||"PUT",k=this._objectRequestParams(I,C,O),c.encodeCallback(k,O),k.mime=O.mime,k.stream=w,k.successStatuses=[200],X.next=13,l.default.awrap(this.request(k));case 13:return M=X.sent,U={name:C,url:this._objectUrl(C),res:M.res},k.headers&&k.headers["x-oss-callback"]&&(U.data=JSON.parse(M.data.toString())),X.abrupt("return",U);case 17:case"end":return X.stop()}},null,this)},v(T,R("../common/object/copyObject")),v(T,R("../common/object/getObjectTagging")),v(T,R("../common/object/putObjectTagging")),v(T,R("../common/object/deleteObjectTagging")),v(T,R("../common/image")),v(T,R("../common/object/getBucketVersions")),v(T,R("../common/object/getACL")),v(T,R("../common/object/putACL")),v(T,R("../common/object/head")),v(T,R("../common/object/delete")),v(T,R("../common/object/get")),v(T,R("../common/object/putSymlink")),v(T,R("../common/object/getSymlink")),v(T,R("../common/object/deleteMulti")),v(T,R("../common/object/getObjectMeta")),T.putMeta=function(C,w,O){var I;return l.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,l.default.awrap(this.copy(C,C,{meta:w||{},timeout:O&&O.timeout,ctx:O&&O.ctx}));case 2:return I=M.sent,M.abrupt("return",I);case 4:case"end":return M.stop()}},null,this)},T.list=function(C,w){var O,I,k,M,U;return l.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return O=this._objectRequestParams("GET","",w),O.query=C,O.xmlResponse=!0,O.successStatuses=[200],X.next=6,l.default.awrap(this.request(O));case 6:return I=X.sent,k=I.data.Contents,M=this,k&&(Array.isArray(k)||(k=[k]),k=k.map(function(F){return{name:F.Key,url:M._objectUrl(F.Key),lastModified:F.LastModified,etag:F.ETag,type:F.Type,size:Number(F.Size),storageClass:F.StorageClass,owner:{id:F.Owner.ID,displayName:F.Owner.DisplayName}}})),U=I.data.CommonPrefixes||null,U&&(Array.isArray(U)||(U=[U]),U=U.map(function(F){return F.Prefix})),X.abrupt("return",{res:I.res,objects:k,prefixes:U,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return X.stop()}},null,this)},T.restore=function(C,w){var O,I;return l.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return w=w||{},w.subres=(0,f.default)({restore:""},w.subres),w.versionId&&(w.subres.versionId=w.versionId),O=this._objectRequestParams("POST",C,w),O.successStatuses=[202],M.next=7,l.default.awrap(this.request(O));case 7:return I=M.sent,M.abrupt("return",{res:I.res});case 9:case"end":return M.stop()}},null,this)},T.signatureUrl=function(C,w){w=w||{},C=this._objectName(C),w.method=w.method||"GET";var O=i.timestamp()+(w.expires||1800),I={bucket:this.options.bucket,object:C},k=this._getResource(I);this.options.stsToken&&(w["security-token"]=this.options.stsToken);var M=h._signatureForURL(this.options.accessKeySecret,w,k,O),U=e.parse(this._getReqUrl(I));return U.query={OSSAccessKeyId:this.options.accessKeyId,Expires:O,Signature:M.Signature},u(M.subResource).to(U.query),U.format()},T.getObjectUrl=function(C,w){return w?w[w.length-1]!=="/"&&(w+="/"):w=this.options.endpoint.format(),w+this._escape(this._objectName(C))},T._objectUrl=function(C){return this._getReqUrl({bucket:this.options.bucket,object:C})},T.generateObjectUrl=function(_,C){if(C)C[C.length-1]!=="/"&&(C+="/");else{C=this.options.endpoint.format();var w=e.parse(C),O=this.options.bucket;w.hostname=O+"."+w.hostname,w.host=O+"."+w.host,C=w.format()}return C+this._escape(this._objectName(_))},T._objectRequestParams=function(C,w,O){if(!this.options.bucket)throw new Error("Please create a bucket first");O=O||{},w=this._objectName(w);var I={object:w,bucket:this.options.bucket,method:C,subres:O&&O.subres,timeout:O&&O.timeout,ctx:O&&O.ctx};return O.headers&&(I.headers={},u(O.headers).to(I.headers)),I},T._objectName=function(C){return C.replace(/^\/+/,"")},T._convertMetaToHeaders=function(C,w){if(!C)return;(0,m.default)(C).forEach(function(O){w["x-oss-meta-"+O]=C[O]})},T._deleteFileSafe=function(C){var w=this;return new g.default(function(O){t.exists(C,function(I){I?t.unlink(C,function(k){k&&w.debug("unlink %j error: %s",C,k,"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(R,D,n){"use strict";n.version="6.10.0"},{}],6:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=S(y);function S(d){return d&&d.__esModule?d:{default:d}}var m=R("../utils/checkBucketName"),p=m.checkBucketName,f=n;f.deleteBucketLifecycle=function(l,a){var i,t;return g.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return p(l),i=this._bucketRequestParams("DELETE",l,"lifecycle",a),i.successStatuses=[204],e.next=5,g.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=S(y);function S(d){return d&&d.__esModule?d:{default:d}}var m=R("../utils/checkBucketName"),p=m.checkBucketName,f=n;f.deleteBucketWebsite=function(l,a){var i,t;return g.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return p(l),i=this._bucketRequestParams("DELETE",l,"website",a),i.successStatuses=[204],e.next=5,g.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=S(y);function S(t){return t&&t.__esModule?t:{default:t}}var m=R("../utils/checkBucketName"),p=m.checkBucketName,f=R("../utils/isArray"),d=f.isArray,l=R("../utils/formatObjKey"),a=l.formatObjKey,i=n;i.getBucketLifecycle=function(o,e){var u,r,s;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return p(o),u=this._bucketRequestParams("GET",o,"lifecycle",e),u.successStatuses=[200],u.xmlResponse=!0,h.next=6,g.default.awrap(this.request(u));case 6:return r=h.sent,s=r.data.Rule||null,s&&(d(s)||(s=[s]),s=s.map(function(v){return v.ID&&(v.id=v.ID,delete v.ID),v.Tag&&!d(v.Tag)&&(v.Tag=[v.Tag]),a(v,"firstLowerCase")})),h.abrupt("return",{rules:s,res:r.res});case 10:case"end":return h.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=S(y);function S(d){return d&&d.__esModule?d:{default:d}}var m=R("../utils/checkBucketName"),p=m.checkBucketName,f=n;f.getBucketVersioning=function(l,a){var i,t,o;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return p(l),i=this._bucketRequestParams("GET",l,"versioning",a),i.xmlResponse=!0,i.successStatuses=[200],u.next=6,g.default.awrap(this.request(i));case 6:return t=u.sent,o=t.data.Status,u.abrupt("return",{status:t.status,versionStatus:o,res:t.res});case 9:case"end":return u.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=S(y);function S(a){return a&&a.__esModule?a:{default:a}}var m=R("../utils/checkBucketName"),p=m.checkBucketName,f=R("../utils/isObject"),d=f.isObject,l=n;l.getBucketWebsite=function(i,t){var o,e,u;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return p(i),o=this._bucketRequestParams("GET",i,"website",t),o.successStatuses=[200],o.xmlResponse=!0,s.next=6,g.default.awrap(this.request(o));case 6:return e=s.sent,u=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(d(e.data.RoutingRules.RoutingRule)?u=[e.data.RoutingRules.RoutingRule]:u=e.data.RoutingRules.RoutingRule),s.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:u,error:e.data.ErrorDocument&&e.data.ErrorDocument.Key||null,res:e.res});case 10:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=S(y);function S(E){return E&&E.__esModule?E:{default:E}}var m=R("../utils/checkBucketName"),p=m.checkBucketName,f=R("../utils/isArray"),d=f.isArray,l=R("../utils/deepCopy"),a=l.deepCopy,i=R("../utils/isObject"),t=i.isObject,o=R("../utils/obj2xml"),e=o.obj2xml,u=R("../utils/checkObjectTag"),r=u.checkObjectTag,s=R("../utils/getStrBytesCount"),c=s.getStrBytesCount,h=n;h.putBucketLifecycle=function(T,_,C){var w,O,I,k,M;return g.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:if(p(T),d(_)){P.next=3;break}throw new Error("rules must be Array");case 3:return w=this._bucketRequestParams("PUT",T,"lifecycle",C),O=[],I={LifecycleConfiguration:{Rule:O}},_.forEach(function(X){v(X),x(X),X.id&&(X.ID=X.id,delete X.id),O.push(X)}),k=e(I,{headers:!0,firstUpperCase:!0}),w.content=k,w.mime="xml",w.successStatuses=[200],P.next=13,g.default.awrap(this.request(w));case 13:return M=P.sent,P.abrupt("return",{res:M.res});case 15:case"end":return P.stop()}},null,this)};function v(E){E.days&&(E.expiration={days:E.days}),E.date&&(E.expiration={createdBeforeDate:E.date})}function A(E,T){var _=E.days,C=E.createdBeforeDate;if(!_&&!C)throw new Error(T+" must includes days or createdBeforeDate");if(_&&!/^[1-9][0-9]*$/.test(_))throw new Error("days must be a positive integer");if(C&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(C))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function b(E){if(!d(E)&&!t(E))throw new Error("tag must be Object or Array");E=t(E)?[E]:E;var T={},_=a(E);_.forEach(function(C){T[C.key]=C.value}),r(T)}function x(E){if(E.id&&c(E.id)>255)throw new Error("ID is composed of 255 bytes at most");if(E.prefix===""||E.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(E.status))throw new Error("Status must be Enabled or Disabled");if(E.transition){if(!["IA","Archive"].includes(E.transition.storageClass))throw new Error("StorageClass must be IA or Archive");A(E.transition,"Transition")}if(E.expiration){if(!E.expiration.expiredObjectDeleteMarker)A(E.expiration,"Expiration");else if(E.expiration.days||E.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(E.abortMultipartUpload&&A(E.abortMultipartUpload,"AbortMultipartUpload"),!E.expiration&&!E.abortMultipartUpload&&!E.transition&&!E.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(E.tag){if(E.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");b(E.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(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=S(y);function S(a){return a&&a.__esModule?a:{default:a}}var m=R("../utils/checkBucketName"),p=m.checkBucketName,f=R("../utils/obj2xml"),d=f.obj2xml,l=n;l.putBucketVersioning=function(i,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,u,r;return g.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(p(i),["Enabled","Suspended"].includes(t)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",i,"versioning",o),u={VersioningConfiguration:{Status:t}},e.mime="xml",e.content=d(u,{headers:!0}),c.next=9,g.default.awrap(this.request(e));case 9:return r=c.sent,c.abrupt("return",{res:r.res,status:r.status});case 11:case"end":return c.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=S(y);function S(t){return t&&t.__esModule?t:{default:t}}var m=R("../utils/checkBucketName"),p=m.checkBucketName,f=R("../utils/obj2xml"),d=f.obj2xml,l=R("../utils/isArray"),a=l.isArray,i=n;i.putBucketWebsite=function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=arguments[2],r,s,c,h,v;return g.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:if(p(o),r=this._bucketRequestParams("PUT",o,"website",u),s={Suffix:e.index||"index.html"},c={IndexDocument:s},h={WebsiteConfiguration:c},e.supportSubDir&&(s.SupportSubDir=e.supportSubDir),e.type&&(s.Type=e.type),e.error&&(c.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){b.next=12;break}if(a(e.routingRules)){b.next=11;break}throw new Error("RoutingRules must be Array");case 11:c.RoutingRules={RoutingRule:e.routingRules};case 12:return h=d(h),r.content=h,r.mime="xml",r.successStatuses=[200],b.next=18,g.default.awrap(this.request(r));case 18:return v=b.sent,b.abrupt("return",{res:v.res});case 20:case"end":return b.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(R,D,n){(function(y){"use strict";var g=R("babel-runtime/core-js/object/keys"),S=f(g),m=R("babel-runtime/core-js/json/stringify"),p=f(m);function f(d){return d&&d.__esModule?d:{default:d}}n.encodeCallback=function(l,a){if(l.headers=l.headers||{},!Object.prototype.hasOwnProperty.call(l.headers,"x-oss-callback")&&a.callback){var i={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(i.callbackHost=a.callback.host),a.callback.contentType&&(i.callbackBodyType=a.callback.contentType);var t=y.from((0,p.default)(i)).toString("base64");if(l.headers["x-oss-callback"]=t,a.callback.customValue){var o={};(0,S.default)(a.callback.customValue).forEach(function(e){o["x:"+e]=a.callback.customValue[e]}),l.headers["x-oss-callback-var"]=y.from((0,p.default)(o)).toString("base64")}}}}).call(this,R("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/assign"),g=S(y);function S(i){return i&&i.__esModule?i:{default:i}}var m=R("humanize-ms"),p=R("url"),f=R("../utils/checkBucketName"),d=f.checkBucketName;function l(i,t){var o=p.parse(i);if(o.protocol||(o=p.parse("http"+(t?"s":"")+"://"+i)),o.protocol!=="http:"&&o.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return o}function a(i,t,o){var e=o?"https://":"http://",u=t?"-internal.aliyuncs.com":".aliyuncs.com",r="vpc100-oss-cn-";return i.substr(0,r.length)===r&&(u=".aliyuncs.com"),p.parse(e+i+u)}D.exports=function(i){if(!i||!i.accessKeyId||!i.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");i.bucket&&d(i.bucket);var t=(0,g.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},i);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=m(t.timeout)),t.endpoint)t.endpoint=l(t.endpoint,t.secure);else if(t.region)t.endpoint=a(t.region,t.internal,t.secure);else throw new Error("require options.endpoint or options.region");return t.inited=!0,t}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(R,D,n){"use strict";var y=R("merge-descriptors"),g=n;y(g,R("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=S(y);function S(t){return t&&t.__esModule?t:{default:t}}var m=R("../utils/checkBucketName"),p=m.checkBucketName,f=R("querystring"),d=R("js-base64"),l=d.Base64.encode,a=n;a.processObjectSave=function(o,e,u,r){var s,c,h,v;return g.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return i(o,"sourceObject"),i(e,"targetObject"),i(u,"process"),e=this._objectName(e),r&&p(r),s=this._objectRequestParams("POST",o,{subres:"x-oss-process"}),c=r?",b_"+l(r):"",e=l(e),h={"x-oss-process":u+"|sys/saveas,o_"+e+c},s.content=f.stringify(h),b.next=12,g.default.awrap(this.request(s));case 12:return v=b.sent,b.abrupt("return",{res:v.res,status:v.res.status});case 14:case"end":return b.stop()}},null,this)};function i(t,o){if(!t)throw new Error(o+" is required");if(typeof t!="string")throw new Error(o+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=S(y);function S(a){return a&&a.__esModule?a:{default:a}}var m=R("copy-to"),p=R("./callback"),f=R("./utils/deepCopy"),d=f.deepCopy,l=n;l.listUploads=function(i,t){var o,e,u,r;return g.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return t=t||{},o={},m(t).to(o),o.subres="uploads",e=this._objectRequestParams("GET","",o),e.query=i,e.xmlResponse=!0,e.successStatuses=[200],c.next=10,g.default.awrap(this.request(e));case 10:return u=c.sent,r=u.data.Upload||[],Array.isArray(r)||(r=[r]),r=r.map(function(h){return{name:h.Key,uploadId:h.UploadId,initiated:h.Initiated}}),c.abrupt("return",{res:u.res,uploads:r,bucket:u.data.Bucket,nextKeyMarker:u.data.NextKeyMarker,nextUploadIdMarker:u.data.NextUploadIdMarker,isTruncated:u.data.IsTruncated==="true"});case 15:case"end":return c.stop()}},null,this)},l.listParts=function(i,t,o,e){var u,r,s;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return e=e||{},u={},m(e).to(u),u.subres={uploadId:t},r=this._objectRequestParams("GET",i,u),r.query=o,r.xmlResponse=!0,r.successStatuses=[200],h.next=10,g.default.awrap(this.request(r));case 10:return s=h.sent,h.abrupt("return",{res:s.res,uploadId:s.data.UploadId,bucket:s.data.Bucket,name:s.data.Key,partNumberMarker:s.data.PartNumberMarker,nextPartNumberMarker:s.data.NextPartNumberMarker,maxParts:s.data.MaxParts,isTruncated:s.data.IsTruncated,parts:s.data.Part||[]});case 12:case"end":return h.stop()}},null,this)},l.abortMultipartUpload=function(i,t,o){var e,u,r;return g.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return this._stop(),o=o||{},e={},m(o).to(e),e.subres={uploadId:t},u=this._objectRequestParams("DELETE",i,e),u.successStatuses=[204],c.next=9,g.default.awrap(this.request(u));case 9:return r=c.sent,c.abrupt("return",{res:r.res});case 11:case"end":return c.stop()}},null,this)},l.initMultipartUpload=function(i,t){var o,e,u;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t=t||{},o={},m(t).to(o),o.headers=o.headers||{},this._convertMetaToHeaders(t.meta,o.headers),o.subres="uploads",e=this._objectRequestParams("POST",i,o),e.mime=t.mime,e.xmlResponse=!0,e.successStatuses=[200],s.next=12,g.default.awrap(this.request(e));case 12:return u=s.sent,s.abrupt("return",{res:u.res,bucket:u.data.Bucket,name:u.data.Key,uploadId:u.data.UploadId});case 14:case"end":return s.stop()}},null,this)},l.uploadPart=function(i,t,o,e,u,r,s){var c;return g.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:return c={stream:this._createStream(e,u,r),size:r-u},v.next=3,g.default.awrap(this._uploadPart(i,t,o,c,s));case 3:return v.abrupt("return",v.sent);case 4:case"end":return v.stop()}},null,this)},l.completeMultipartUpload=function(i,t,o,e){var u,r,s,c,h,v,A,b;return g.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:for(u=o.concat().sort(function(T,_){return T.number-_.number}).filter(function(T,_,C){return!_||T.number!==C[_-1].number}),r=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,s=0;s<u.length;s++)c=u[s],r+=`<Part>
`,r+="<PartNumber>"+c.number+`</PartNumber>
`,r+="<ETag>"+c.etag+`</ETag>
`,r+=`</Part>
`;return r+="</CompleteMultipartUpload>",e=e||{},h={},h=d(e),h.headers&&delete h.headers["x-oss-server-side-encryption"],h.subres={uploadId:t},v=this._objectRequestParams("POST",i,h),p.encodeCallback(v,h),v.mime="xml",v.content=r,v.headers&&v.headers["x-oss-callback"]||(v.xmlResponse=!0),v.successStatuses=[200],E.next=17,g.default.awrap(this.request(v));case 17:return A=E.sent,b={res:A.res,bucket:v.bucket,name:i,etag:A.res.headers.etag},v.headers&&v.headers["x-oss-callback"]&&(b.data=JSON.parse(A.data.toString())),E.abrupt("return",b);case 21:case"end":return E.stop()}},null,this)},l._uploadPart=function(i,t,o,e,u){var r,s,c;return g.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:return u=u||{},r={},m(u).to(r),r.headers={"Content-Length":e.size},r.subres={partNumber:o,uploadId:t},s=this._objectRequestParams("PUT",i,r),s.mime=r.mime,s.stream=e.stream,s.successStatuses=[200],v.next=11,g.default.awrap(this.request(s));case 11:if(c=v.sent,c.res.headers.etag){v.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,s.stream=null,v.abrupt("return",{name:i,etag:c.res.headers.etag,res:c.res});case 17:case"end":return v.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=d(y),S=R("babel-runtime/core-js/object/keys"),m=d(S),p=R("babel-runtime/helpers/typeof"),f=d(p);function d(t){return t&&t.__esModule?t:{default:t}}var l=R("../utils/checkBucketName"),a=l.checkBucketName,i=n;i.copy=function(o,e,u,r){var s,c,h;return g.default.async(function(A){for(;;)switch(A.prev=A.next){case 0:return(typeof u=="undefined"?"undefined":(0,f.default)(u))==="object"&&(r=u),r=r||{},r.headers=r.headers||{},(0,m.default)(r.headers).forEach(function(b){r.headers["x-oss-copy-source-"+b.toLowerCase()]=r.headers[b]}),r.meta&&(r.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(r.meta,r.headers),e=this._getSourceName(e,u),r.versionId&&(e=e+"?versionId="+r.versionId),r.headers["x-oss-copy-source"]=e,s=this._objectRequestParams("PUT",o,r),s.xmlResponse=!0,s.successStatuses=[200,304],A.next=14,g.default.awrap(this.request(s));case 14:return c=A.sent,h=c.data,h&&(h={etag:h.ETag,lastModified:h.LastModified}),A.abrupt("return",{data:h,res:c.res});case 18:case"end":return A.stop()}},null,this)},i._getSourceName=function(o,e){return typeof e=="string"?o=this._objectName(o):o[0]!=="/"?e=this.options.bucket:(e=o.replace(/\/(.+?)(\/.*)/,"$1"),o=o.replace(/(\/.+?\/)(.*)/,"$2")),a(e),o=encodeURI(o),o="/"+e+"/"+o,o}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=p(y),S=R("babel-runtime/core-js/object/assign"),m=p(S);function p(d){return d&&d.__esModule?d:{default:d}}var f=n;f.delete=function(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return g.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,m.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),i=this._objectRequestParams("DELETE",l,a),i.successStatuses=[204],e.next=6,g.default.awrap(this.request(i));case 6:return t=e.sent,e.abrupt("return",{res:t.res});case 8:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=p(y),S=R("babel-runtime/core-js/object/assign"),m=p(S);function p(i){return i&&i.__esModule?i:{default:i}}var f=R("utility"),d=R("../utils/obj2xml"),l=d.obj2xml,a=n;a.deleteMulti=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,u,r,s,c,h,v,A,b,x,E,T;return g.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(e=[],!(!t||!t.length)){C.next=3;break}throw new Error("names is required");case 3:for(u=0;u<t.length;u++)r={},typeof t[u]=="string"?r.Key=f.escape(this._objectName(t[u])):(s=t[u],c=s.key,h=s.versionId,r.Key=f.escape(this._objectName(c)),r.VersionId=h),e.push(r);return v={Delete:{Quiet:!!o.quiet,Object:e}},A=l(v,{headers:!0}),o.subres=(0,m.default)({delete:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),b=this._objectRequestParams("POST","",o),b.mime="xml",b.content=A,b.xmlResponse=!0,b.successStatuses=[200],C.next=15,g.default.awrap(this.request(b));case 15:return x=C.sent,E=x.data,T=E&&E.Deleted||null,T&&(Array.isArray(T)||(T=[T])),C.abrupt("return",{res:x.res,deleted:T||[]});case 20:case"end":return C.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=p(y),S=R("babel-runtime/core-js/object/assign"),m=p(S);function p(d){return d&&d.__esModule?d:{default:d}}var f=n;f.deleteObjectTagging=function(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return g.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,m.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),l=this._objectName(l),i=this._objectRequestParams("DELETE",l,a),i.successStatuses=[204],e.next=7,g.default.awrap(this.request(i));case 7:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 9:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=p(y),S=R("babel-runtime/core-js/object/assign"),m=p(S);function p(a){return a&&a.__esModule?a:{default:a}}var f=R("fs"),d=R("is-type-of"),l=n;l.get=function(i,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,u,r,s;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return e=null,u=!1,d.writableStream(t)?e=t:d.string(t)?(e=f.createWriteStream(t),u=!0):o=t,o=o||{},o.subres=(0,m.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),o.process&&(o.subres["x-oss-process"]=o.process),r=void 0,h.prev=8,s=this._objectRequestParams("GET",i,o),s.writeStream=e,s.successStatuses=[200,206,304],h.next=14,g.default.awrap(this.request(s));case 14:r=h.sent,u&&e.destroy(),h.next=25;break;case 18:if(h.prev=18,h.t0=h.catch(8),!u){h.next=24;break}return e.destroy(),h.next=24,g.default.awrap(this._deleteFileSafe(t));case 24:throw h.t0;case 25:return h.abrupt("return",{res:r.res,content:r.data});case 26:case"end":return h.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=p(y),S=R("babel-runtime/core-js/object/assign"),m=p(S);function p(d){return d&&d.__esModule?d:{default:d}}var f=n;f.getACL=function(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return g.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,m.default)({acl:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),l=this._objectName(l),i=this._objectRequestParams("GET",l,a),i.successStatuses=[200],i.xmlResponse=!0,e.next=8,g.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{acl:t.data.AccessControlList.Grant,owner:{id:t.data.Owner.ID,displayName:t.data.Owner.DisplayName},res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),g=d(y),S=R("babel-runtime/regenerator"),m=d(S),p=R("babel-runtime/core-js/object/assign"),f=d(p);function d(s){return s&&s.__esModule?s:{default:s}}var l=n,a=R("../utils/isObject"),i=a.isObject,t=R("../utils/isArray"),o=t.isArray;l.getBucketVersions=e,l.listObjectVersions=e;function e(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h,v,A,b,x,E;return m.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!(s.versionIdMarker&&s.keyMarker===void 0)){_.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return c.subres=(0,f.default)({versions:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),h=this._objectRequestParams("GET","",c),h.xmlResponse=!0,h.successStatuses=[200],h.query=r(s),_.next=10,m.default.awrap(this.request(h));case 10:return v=_.sent,A=v.data.Version||[],b=v.data.DeleteMarker||[],x=this,A&&(Array.isArray(A)||(A=[A]),A=A.map(function(C){return{name:C.Key,url:x._objectUrl(C.Key),lastModified:C.LastModified,isLatest:C.IsLatest==="true",versionId:C.VersionId,etag:C.ETag,type:C.Type,size:Number(C.Size),storageClass:C.StorageClass,owner:{id:C.Owner.ID,displayName:C.Owner.DisplayName}}})),b&&(o(b)||(b=[b]),b=b.map(function(C){return{name:C.Key,lastModified:C.LastModified,versionId:C.VersionId,owner:{id:C.Owner.ID,displayName:C.Owner.DisplayName}}})),E=v.data.CommonPrefixes||null,E&&(o(E)||(E=[E]),E=E.map(function(C){return C.Prefix})),_.abrupt("return",{res:v.res,objects:A,deleteMarker:b,prefixes:E,nextMarker:v.data.NextMarker||null,NextVersionIdMarker:v.data.NextVersionIdMarker||null,isTruncated:v.data.IsTruncated==="true"});case 19:case"end":return _.stop()}},null,this)}function u(s){return s.replace(/([A-Z])/g,"-$1").toLowerCase()}function r(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c={};return i(s)&&(0,g.default)(s).forEach(function(h){c[u(h)]=s[h]}),c}},{"../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(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=p(y),S=R("babel-runtime/core-js/object/assign"),m=p(S);function p(d){return d&&d.__esModule?d:{default:d}}var f=n;f.getObjectMeta=function(l,a){var i,t;return g.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a=a||{},l=this._objectName(l),a.subres=(0,m.default)({objectMeta:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),i=this._objectRequestParams("HEAD",l,a),i.successStatuses=[200],e.next=8,g.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=p(y),S=R("babel-runtime/core-js/object/assign"),m=p(S);function p(a){return a&&a.__esModule?a:{default:a}}var f=n,d=R("../utils/isObject"),l=d.isObject;f.getObjectTagging=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,e,u,r,s;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return t.subres=(0,m.default)({tagging:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId),i=this._objectName(i),o=this._objectRequestParams("GET",i,t),o.successStatuses=[200],h.next=7,g.default.awrap(this.request(o));case 7:return e=h.sent,h.next=10,g.default.awrap(this.parseXML(e.data));case 10:return u=h.sent,r=u.TagSet.Tag,r=r&&l(r)?[r]:r||[],s={},r.forEach(function(v){s[v.Key]=v.Value}),h.abrupt("return",{status:e.status,res:e.res,tag:s});case 16:case"end":return h.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=p(y),S=R("babel-runtime/core-js/object/assign"),m=p(S);function p(d){return d&&d.__esModule?d:{default:d}}var f=n;f.getSymlink=function(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t,o;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return a.subres=(0,m.default)({symlink:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),l=this._objectName(l),i=this._objectRequestParams("GET",l,a),i.successStatuses=[200],u.next=7,g.default.awrap(this.request(i));case 7:return t=u.sent,o=t.res.headers["x-oss-symlink-target"],u.abrupt("return",{targetName:decodeURIComponent(o),res:t.res});case 10:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=d(y),S=R("babel-runtime/core-js/object/keys"),m=d(S),p=R("babel-runtime/core-js/object/assign"),f=d(p);function d(a){return a&&a.__esModule?a:{default:a}}var l=n;l.head=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,e,u;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t.subres=(0,f.default)({},t.subres),t.versionId&&(t.subres.versionId=t.versionId),o=this._objectRequestParams("HEAD",i,t),o.successStatuses=[200,304],s.next=6,g.default.awrap(this.request(o));case 6:return e=s.sent,u={meta:null,res:e.res,status:e.status},e.status===200&&(0,m.default)(e.headers).forEach(function(c){c.indexOf("x-oss-meta-")===0&&(u.meta||(u.meta={}),u.meta[c.substring(11)]=e.headers[c])}),s.abrupt("return",u);case 10:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=p(y),S=R("babel-runtime/core-js/object/assign"),m=p(S);function p(d){return d&&d.__esModule?d:{default:d}}var f=n;f.putACL=function(l,a,i){var t,o;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return i=i||{},i.subres=(0,m.default)({acl:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.headers=i.headers||{},i.headers["x-oss-object-acl"]=a,l=this._objectName(l),t=this._objectRequestParams("PUT",l,i),t.successStatuses=[200],u.next=10,g.default.awrap(this.request(t));case 10:return o=u.sent,u.abrupt("return",{res:o.res});case 12:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=d(y),S=R("babel-runtime/core-js/object/keys"),m=d(S),p=R("babel-runtime/core-js/object/assign"),f=d(p);function d(e){return e&&e.__esModule?e:{default:e}}var l=R("../utils/obj2xml"),a=l.obj2xml,i=R("../utils/checkObjectTag"),t=i.checkObjectTag,o=n;o.putObjectTagging=function(u,r){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,h,v;return g.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return t(r),s.subres=(0,f.default)({tagging:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),u=this._objectName(u),c=this._objectRequestParams("PUT",u,s),c.successStatuses=[200],r=(0,m.default)(r).map(function(x){return{Key:x,Value:r[x]}}),h={Tagging:{TagSet:{Tag:r}}},c.mime="xml",c.content=a(h),b.next=12,g.default.awrap(this.request(c));case 12:return v=b.sent,b.abrupt("return",{res:v.res,status:v.status});case 14:case"end":return b.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(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=p(y),S=R("babel-runtime/core-js/object/assign"),m=p(S);function p(d){return d&&d.__esModule?d:{default:d}}var f=n;f.putSymlink=function(l,a,i){var t,o;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return i=i||{},i.headers=i.headers||{},a=this._escape(this._objectName(a)),this._convertMetaToHeaders(i.meta,i.headers),i.headers["x-oss-symlink-target"]=a,i.subres=(0,m.default)({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.storageClass&&(i.headers["x-oss-storage-class"]=i.storageClass),l=this._objectName(l),t=this._objectRequestParams("PUT",l,i),t.successStatuses=[200],u.next=13,g.default.awrap(this.request(t));case 13:return o=u.sent,u.abrupt("return",{res:o.res});case 15:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(R,D,n){"use strict";var y=R("babel-runtime/regenerator"),g=p(y),S=R("babel-runtime/core-js/promise"),m=p(S);function p(d){return d&&d.__esModule?d:{default:d}}var f=n;f._parallelNode=function(l,a,i,t){var o,e,u,r,s,c,h,v;return g.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:o=this,e=[],u=[],r=l.length/a,s=l.length%a,c=s===0?r:(l.length-s)/a+1,h=1,v=0;case 8:if(!(v<l.length)){b.next=26;break}if(!o.isCancel()){b.next=11;break}return b.abrupt("break",26);case 11:if(t?u.push(i(o,l[v],t)):u.push(i(o,l[v])),!(u.length===a||h===c&&v===l.length-1)){b.next=23;break}return b.prev=13,h+=1,b.next=17,g.default.awrap(m.default.all(u));case 17:b.next=22;break;case 19:b.prev=19,b.t0=b.catch(13),e.push(b.t0);case 22:u=[];case 23:v++,b.next=8;break;case 26:return b.abrupt("return",e);case 27:case"end":return b.stop()}},null,this,[[13,19]])},f._parallel=function(l,a,i){var t=this;return new m.default(function(o){var e=[];if(a<=0||!l){o(e);return}function u(E){return function(){if(E===null)throw new Error("Callback was already called.");var T=E;E=null;for(var _=arguments.length,C=Array(_),w=0;w<_;w++)C[w]=arguments[w];T.apply(this,C)}}function r(E){var T=-1,_=E.length;return function(){return++T<_&&!t.isCancel()?{value:E[T],key:T}:null}}var s=r(l),c=!1,h=0,v=!1;function A(E,T){h-=1,E?(c=!0,e.push(E),o(e)):T==={}||c&&h<=0?(c=!0,o(e)):v||(t.isCancel()?o(e):x())}function b(E,T){i(E).then(function(_){T(null,_)}).catch(function(_){T(_)})}function x(){for(v=!0;h<a&&!c&&!t.isCancel();){var E=s();if(E===null||e.length>0){c=!0,h<=0&&o(e);return}h+=1,b(E.value,u(A))}v=!1}x()})},f.cancel=function(l){this.options.cancelFlag=!0,l&&this.abortMultipartUpload(l.name,l.uploadId,l.options)},f.isCancel=function(){return this.options.cancelFlag},f.resetCancelFlag=function(){this.options.cancelFlag=!1},f._stop=function(){this.options.cancelFlag=!0},f._makeCancelEvent=function(){var l={status:0,name:"cancel"};return l}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(R,D,n){(function(y){"use strict";var g=R("babel-runtime/core-js/json/stringify"),S=f(g),m=R("babel-runtime/core-js/object/keys"),p=f(m);function f(a){return a&&a.__esModule?a:{default:a}}var d=R("./../../shims/crypto/crypto.js"),l=R("is-type-of");n.buildCanonicalizedResource=function(i,t){var o=""+i,e="?";if(l.string(t)&&t.trim()!=="")o+=e+t;else if(l.array(t))t.sort(),o+=e+t.join("&");else if(t){var u=function(c,h){return c[0]>h[0]?1:c[0]<h[0]?-1:0},r=function(c){o+=e+c,t[c]&&(o+="="+t[c]),e="&"};(0,p.default)(t).sort(u).forEach(r)}return o},n.buildCanonicalString=function(i,t,o,e){o=o||{};var u=o.headers||{},r="x-oss-",s=[],c={},h=[i.toUpperCase(),u["Content-Md5"]||"",u["Content-Type"]||u["Content-Type".toLowerCase()],e||u["x-oss-date"]];return(0,p.default)(u).forEach(function(v){var A=v.toLowerCase();A.indexOf(r)===0&&(c[A]=String(u[v]).trim())}),(0,p.default)(c).sort().forEach(function(v){s.push(v+":"+c[v])}),h=h.concat(s),h.push(this.buildCanonicalizedResource(t,o.parameters)),h.join(`
`)},n.computeSignature=function(i,t){var o=d.createHmac("sha1",i);return o.update(y.from(t,"utf8")).digest("base64")},n.authorization=function(i,t,o){return"OSS "+i+":"+this.computeSignature(t,o)},n._signatureForURL=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments[2],e=arguments[3],u={},r=t.subResource,s=r===void 0?{}:r;if(t.process){var c="x-oss-process";s[c]=t.process}if(t.trafficLimit){var h="x-oss-traffic-limit";s[h]=t.trafficLimit}if(t.response&&(0,p.default)(t.response).forEach(function(x){var E="response-"+x.toLowerCase();s[E]=t.response[x]}),(0,p.default)(t).forEach(function(x){var E=x.toLowerCase(),T=t[x];E.indexOf("x-oss-")===0?u[E]=T:(E.indexOf("content-md5")===0||E.indexOf("content-type")===0)&&(u[x]=T)}),Object.prototype.hasOwnProperty.call(t,"security-token")&&(s["security-token"]=t["security-token"]),Object.prototype.hasOwnProperty.call(t,"callback")){var v={callbackUrl:encodeURI(t.callback.url),callbackBody:t.callback.body};if(t.callback.host&&(v.callbackHost=t.callback.host),t.callback.contentType&&(v.callbackBodyType=t.callback.contentType),s.callback=y.from((0,S.default)(v)).toString("base64"),t.callback.customValue){var A={};(0,p.default)(t.callback.customValue).forEach(function(x){A["x:"+x]=t.callback.customValue[x]}),s["callback-var"]=y.from((0,S.default)(A)).toString("base64")}}var b=this.buildCanonicalString(t.method,o,{headers:u,parameters:s},e.toString());return{Signature:this.computeSignature(i,b),subResource:s}}}).call(this,R("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(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkBucketName=void 0,n.checkBucketName=function(y,g){var S=g?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!S.test(y))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/entries"),g=S(y);function S(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.checkObjectTag=void 0;var m=R("./checkValid"),p=m.checkValid,f=R("./isObject"),d=f.isObject,l=[{validator:function(o){if(typeof o!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],a={key:[].concat(l,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(l,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function i(t){if(!d(t))throw new Error("tag must be Object");var o=(0,g.default)(t);if(o.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];o.forEach(function(u){u.forEach(function(r,s){p(r,a[e[s]])})})}n.checkObjectTag=i},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkValid=void 0;function y(g,S){S.forEach(function(m){if(m.validator)m.validator(g);else if(m.pattern&&!m.pattern.test(g))throw new Error(m.msg)})}n.checkValid=y},{}],38:[function(R,D,n){(function(y){"use strict";var g=R("babel-runtime/core-js/object/assign"),S=m(g);function m(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(n,"__esModule",{value:!0}),n.createRequest=void 0;var p=R("./../../../shims/crypto/crypto.js"),f=R("debug")("ali-oss"),d=R("mime"),l=R("dateformat"),a=R("copy-to"),i=R("path");function t(u,r){return u[r]||u[r.toLowerCase()]}function o(u,r){delete u[r],delete u[r.toLowerCase()]}function e(u){var r=new Date;this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed);var s={"x-oss-date":l(r,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(s["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,S.default)(s,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(s["x-oss-security-token"]=this.options.stsToken),a(u.headers).to(s),t(s,"Content-Type")||(u.mime&&u.mime.indexOf("/")>0?s["Content-Type"]=u.mime:s["Content-Type"]=d.getType(u.mime||i.extname(u.object||""))),t(s,"Content-Type")||o(s,"Content-Type"),u.content&&(s["Content-Md5"]=p.createHash("md5").update(y.from(u.content,"utf8")).digest("base64"),s["Content-Length"]||(s["Content-Length"]=u.content.length));var c=this._getResource(u);s.authorization=this.authorization(u.method,c,u.subres,s);var h=this._getReqUrl(u);f("request %s %s, with headers %j, !!stream: %s",u.method,h,s,!!u.stream);var v=u.timeout||this.options.timeout,A={method:u.method,content:u.content,stream:u.stream,headers:s,timeout:v,writeStream:u.writeStream,customResponse:u.customResponse,ctx:u.ctx||this.ctx};return this.agent&&(A.agent=this.agent),this.httpsAgent&&(A.httpsAgent=this.httpsAgent),{url:h,params:A}}n.createRequest=e}).call(this,R("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(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),g=p(y),S=R("babel-runtime/helpers/typeof"),m=p(S);function p(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(n,"__esModule",{value:!0}),n.deepCopy=void 0,n.deepCopy=function(f){if(f===null||(typeof f=="undefined"?"undefined":(0,m.default)(f))!=="object")return f;var d=Array.isArray(f)?[]:{};return(0,g.default)(f).forEach(function(l){d[l]=n.deepCopy(f[l])}),d}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),g=p(y),S=R("babel-runtime/helpers/typeof"),m=p(S);function p(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(n,"__esModule",{value:!0}),n.formatObjKey=void 0;function f(l,a){if(l===null||(typeof l=="undefined"?"undefined":(0,m.default)(l))!=="object")return l;var i=void 0;if(Array.isArray(l)){i=[];for(var t=0;t<l.length;t++)i.push(f(l[t],a))}else i={},(0,g.default)(l).forEach(function(o){i[d(o,a)]=f(l[o],a)});return i}n.formatObjKey=f;function d(l,a){return a==="firstUpperCase"?l=l.replace(/^./,function(i){return i.toUpperCase()}):a==="firstLowerCase"&&(l=l.replace(/^./,function(i){return i.toLowerCase()})),l}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getStrBytesCount=void 0;function y(g){for(var S=0,m=0;m<g.length;m++){var p=g.charAt(m);/^[\u00-\uff]$/.test(p)?S+=1:S+=2}return S}n.getStrBytesCount=y},{}],42:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isArray=void 0,n.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}},{}],43:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isBlob=void 0;function y(g){return typeof Blob!="undefined"&&g instanceof Blob}n.isBlob=y},{}],44:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isFile=void 0,n.isFile=function(y){return typeof File!="undefined"&&y instanceof File}},{}],45:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isIP=void 0,n.isIP=function(y){var g=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,S=/^\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 g.test(y)||S.test(y)}},{}],46:[function(R,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isObject=void 0,n.isObject=function(y){return Object.prototype.toString.call(y)==="[object Object]"}},{}],47:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),g=S(y);function S(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(n,"__esModule",{value:!0}),n.obj2xml=void 0;var m=R("./formatObjKey");function p(d){return Object.prototype.toString.call(d).replace(/(.*? |])/g,"").toLowerCase()}function f(d,l){var a="";return l&&l.headers&&(a=`<?xml version="1.0" encoding="UTF-8"?>
`),l&&l.firstUpperCase&&(d=m.formatObjKey(d,"firstUpperCase")),p(d)==="object"?(0,g.default)(d).forEach(function(i){p(d[i])==="string"||p(d[i])==="number"?a+="<"+i+">"+d[i]+"</"+i+">":p(d[i])==="object"?a+="<"+i+">"+f(d[i])+"</"+i+">":p(d[i])==="array"?a+=d[i].map(function(t){return"<"+i+">"+f(t)+"</"+i+">"}).join(""):a+="<"+i+">"+d[i].toString()+"</"+i+">"}):a+=d.toString(),a}n.obj2xml=f},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(R,D,n){D.exports=y,D.exports.HttpsAgent=y;function y(){}},{}],49:[function(R,D,n){D.exports=R("./register")().Promise},{"./register":51}],50:[function(R,D,n){"use strict";var y="@@any-promise/REGISTRATION",g=null;D.exports=function(S,m){return function(f,d){f=f||null,d=d||{};var l=d.global!==!1;if(g===null&&l&&(g=S[y]||null),g!==null&&f!==null&&g.implementation!==f)throw new Error('any-promise already defined as "'+g.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return g===null&&(f!==null&&typeof d.Promise!="undefined"?g={Promise:d.Promise,implementation:f}:g=m(f),l&&(S[y]=g)),g}}},{}],51:[function(R,D,n){"use strict";D.exports=R("./loader")(window,y);function y(){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(R,D,n){D.exports={default:R("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(R,D,n){D.exports={default:R("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(R,D,n){D.exports={default:R("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(R,D,n){D.exports={default:R("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(R,D,n){D.exports={default:R("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(R,D,n){D.exports={default:R("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(R,D,n){D.exports={default:R("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(R,D,n){D.exports={default:R("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(R,D,n){D.exports={default:R("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(R,D,n){"use strict";n.__esModule=!0;var y=R("../core-js/symbol/iterator"),g=f(y),S=R("../core-js/symbol"),m=f(S),p=typeof m.default=="function"&&typeof g.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof m.default=="function"&&d.constructor===m.default&&d!==m.default.prototype?"symbol":typeof d};function f(d){return d&&d.__esModule?d:{default:d}}n.default=typeof m.default=="function"&&p(g.default)==="symbol"?function(d){return typeof d=="undefined"?"undefined":p(d)}:function(d){return d&&typeof m.default=="function"&&d.constructor===m.default&&d!==m.default.prototype?"symbol":typeof d=="undefined"?"undefined":p(d)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(R,D,n){D.exports=R("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(R,D,n){"use strict";n.byteLength=l,n.toByteArray=i,n.fromByteArray=e;for(var y=[],g=[],S=typeof Uint8Array!="undefined"?Uint8Array:Array,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,f=m.length;p<f;++p)y[p]=m[p],g[m.charCodeAt(p)]=p;g["-".charCodeAt(0)]=62,g["_".charCodeAt(0)]=63;function d(u){var r=u.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=u.indexOf("=");s===-1&&(s=r);var c=s===r?0:4-s%4;return[s,c]}function l(u){var r=d(u),s=r[0],c=r[1];return(s+c)*3/4-c}function a(u,r,s){return(r+s)*3/4-s}function i(u){var r,s=d(u),c=s[0],h=s[1],v=new S(a(u,c,h)),A=0,b=h>0?c-4:c,x;for(x=0;x<b;x+=4)r=g[u.charCodeAt(x)]<<18|g[u.charCodeAt(x+1)]<<12|g[u.charCodeAt(x+2)]<<6|g[u.charCodeAt(x+3)],v[A++]=r>>16&255,v[A++]=r>>8&255,v[A++]=r&255;return h===2&&(r=g[u.charCodeAt(x)]<<2|g[u.charCodeAt(x+1)]>>4,v[A++]=r&255),h===1&&(r=g[u.charCodeAt(x)]<<10|g[u.charCodeAt(x+1)]<<4|g[u.charCodeAt(x+2)]>>2,v[A++]=r>>8&255,v[A++]=r&255),v}function t(u){return y[u>>18&63]+y[u>>12&63]+y[u>>6&63]+y[u&63]}function o(u,r,s){for(var c,h=[],v=r;v<s;v+=3)c=(u[v]<<16&16711680)+(u[v+1]<<8&65280)+(u[v+2]&255),h.push(t(c));return h.join("")}function e(u){for(var r,s=u.length,c=s%3,h=[],v=16383,A=0,b=s-c;A<b;A+=v)h.push(o(u,A,A+v>b?b:A+v));return c===1?(r=u[s-1],h.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(u[s-2]<<8)+u[s-1],h.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),h.join("")}},{}],70:[function(R,D,n){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(y,g,S){typeof D!="undefined"&&D.exports?D.exports=S():typeof define=="function"&&define.amd?define(g,S):y[g]=S()}(this,"bowser",function(){var y=!0;function g(a){function i(j){var K=a.match(j);return K&&K.length>1&&K[1]||""}function t(j){var K=a.match(j);return K&&K.length>1&&K[2]||""}var o=i(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(a),u=!e&&/android/i.test(a),r=/nexus\s*[0-6]\s*/i.test(a),s=!r&&/nexus\s*[0-9]+/i.test(a),c=/CrOS/.test(a),h=/silk/i.test(a),v=/sailfish/i.test(a),A=/tizen/i.test(a),b=/(web|hpw)(o|0)s/i.test(a),x=/windows phone/i.test(a),E=/SamsungBrowser/i.test(a),T=!x&&/windows/i.test(a),_=!o&&!h&&/macintosh/i.test(a),C=!u&&!v&&!A&&!b&&/linux/i.test(a),w=t(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),O=i(/version\/(\d+(\.\d+)?)/i),I=/tablet/i.test(a)&&!/tablet pc/i.test(a),k=!I&&/[^-]mobi/i.test(a),M=/xbox/i.test(a),U;/opera/i.test(a)?U={name:"Opera",opera:y,version:O||i(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(a)?U={name:"Opera",opera:y,version:i(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||O}:/SamsungBrowser/i.test(a)?U={name:"Samsung Internet for Android",samsungBrowser:y,version:O||i(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(a)?U={name:"NAVER Whale browser",whale:y,version:i(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(a)?U={name:"MZ Browser",mzbrowser:y,version:i(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(a)?U={name:"Opera Coast",coast:y,version:O||i(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(a)?U={name:"Focus",focus:y,version:i(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(a)?U={name:"Yandex Browser",yandexbrowser:y,version:O||i(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(a)?U={name:"UC Browser",ucbrowser:y,version:i(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(a)?U={name:"Maxthon",maxthon:y,version:i(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(a)?U={name:"Epiphany",epiphany:y,version:i(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(a)?U={name:"Puffin",puffin:y,version:i(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(a)?U={name:"Sleipnir",sleipnir:y,version:i(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(a)?U={name:"K-Meleon",kMeleon:y,version:i(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:x?(U={name:"Windows Phone",osname:"Windows Phone",windowsphone:y},w?(U.msedge=y,U.version=w):(U.msie=y,U.version=i(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(a)?U={name:"Internet Explorer",msie:y,version:i(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?U={name:"Chrome",osname:"Chrome OS",chromeos:y,chromeBook:y,chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(a)?U={name:"Microsoft Edge",msedge:y,version:w}:/vivaldi/i.test(a)?U={name:"Vivaldi",vivaldi:y,version:i(/vivaldi\/(\d+(\.\d+)?)/i)||O}:v?U={name:"Sailfish",osname:"Sailfish OS",sailfish:y,version:i(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(a)?U={name:"SeaMonkey",seamonkey:y,version:i(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(a)?(U={name:"Firefox",firefox:y,version:i(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(a)&&(U.firefoxos=y,U.osname="Firefox OS")):h?U={name:"Amazon Silk",silk:y,version:i(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(a)?U={name:"PhantomJS",phantom:y,version:i(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(a)?U={name:"SlimerJS",slimer:y,version:i(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(a)||/rim\stablet/i.test(a)?U={name:"BlackBerry",osname:"BlackBerry OS",blackberry:y,version:O||i(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(U={name:"WebOS",osname:"WebOS",webos:y,version:O||i(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(a)&&(U.touchpad=y)):/bada/i.test(a)?U={name:"Bada",osname:"Bada",bada:y,version:i(/dolfin\/(\d+(\.\d+)?)/i)}:A?U={name:"Tizen",osname:"Tizen",tizen:y,version:i(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||O}:/qupzilla/i.test(a)?U={name:"QupZilla",qupzilla:y,version:i(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||O}:/chromium/i.test(a)?U={name:"Chromium",chromium:y,version:i(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||O}:/chrome|crios|crmo/i.test(a)?U={name:"Chrome",chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:u?U={name:"Android",version:O}:/safari|applewebkit/i.test(a)?(U={name:"Safari",safari:y},O&&(U.version=O)):o?(U={name:o=="iphone"?"iPhone":o=="ipad"?"iPad":"iPod"},O&&(U.version=O)):/googlebot/i.test(a)?U={name:"Googlebot",googlebot:y,version:i(/googlebot\/(\d+(\.\d+))/i)||O}:U={name:i(/^(.*)\/(.*) /),version:t(/^(.*)\/(.*) /)},!U.msedge&&/(apple)?webkit/i.test(a)?(/(apple)?webkit\/537\.36/i.test(a)?(U.name=U.name||"Blink",U.blink=y):(U.name=U.name||"Webkit",U.webkit=y),!U.version&&O&&(U.version=O)):!U.opera&&/gecko\//i.test(a)&&(U.name=U.name||"Gecko",U.gecko=y,U.version=U.version||i(/gecko\/(\d+(\.\d+)?)/i)),!U.windowsphone&&(u||U.silk)?(U.android=y,U.osname="Android"):!U.windowsphone&&o?(U[o]=y,U.ios=y,U.osname="iOS"):_?(U.mac=y,U.osname="macOS"):M?(U.xbox=y,U.osname="Xbox"):T?(U.windows=y,U.osname="Windows"):C&&(U.linux=y,U.osname="Linux");function P(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 X="";U.windows?X=P(i(/Windows ((NT|XP)( \d\d?.\d)?)/i)):U.windowsphone?X=i(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):U.mac?(X=i(/Mac OS X (\d+([_\.\s]\d+)*)/i),X=X.replace(/[_\s]/g,".")):o?(X=i(/os (\d+([_\s]\d+)*) like mac os x/i),X=X.replace(/[_\s]/g,".")):u?X=i(/android[ \/-](\d+(\.\d+)*)/i):U.webos?X=i(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):U.blackberry?X=i(/rim\stablet\sos\s(\d+(\.\d+)*)/i):U.bada?X=i(/bada\/(\d+(\.\d+)*)/i):U.tizen&&(X=i(/tizen[\/\s](\d+(\.\d+)*)/i)),X&&(U.osversion=X);var F=!U.windows&&X.split(".")[0];return I||s||o=="ipad"||u&&(F==3||F>=4&&!k)||U.silk?U.tablet=y:(k||o=="iphone"||o=="ipod"||u||r||U.blackberry||U.webos||U.bada)&&(U.mobile=y),U.msedge||U.msie&&U.version>=10||U.yandexbrowser&&U.version>=15||U.vivaldi&&U.version>=1||U.chrome&&U.version>=20||U.samsungBrowser&&U.version>=4||U.whale&&f([U.version,"1.0"])===1||U.mzbrowser&&f([U.version,"6.0"])===1||U.focus&&f([U.version,"1.0"])===1||U.firefox&&U.version>=20||U.safari&&U.version>=6||U.opera&&U.version>=10||U.ios&&U.osversion&&U.osversion.split(".")[0]>=6||U.blackberry&&U.version>=10.1||U.chromium&&U.version>=20?U.a=y:U.msie&&U.version<10||U.chrome&&U.version<20||U.firefox&&U.version<20||U.safari&&U.version<6||U.opera&&U.version<10||U.ios&&U.osversion&&U.osversion.split(".")[0]<6||U.chromium&&U.version<20?U.c=y:U.x=y,U}var S=g(typeof navigator!="undefined"&&navigator.userAgent||"");S.test=function(a){for(var i=0;i<a.length;++i){var t=a[i];if(typeof t=="string"&&t in S)return!0}return!1};function m(a){return a.split(".").length}function p(a,i){var t=[],o;if(Array.prototype.map)return Array.prototype.map.call(a,i);for(o=0;o<a.length;o++)t.push(i(a[o]));return t}function f(a){for(var i=Math.max(m(a[0]),m(a[1])),t=p(a,function(o){var e=i-m(o);return o=o+new Array(e+1).join(".0"),p(o.split("."),function(u){return new Array(20-u.length).join("0")+u}).reverse()});--i>=0;){if(t[0][i]>t[1][i])return 1;if(t[0][i]===t[1][i]){if(i===0)return 0}else return-1}}function d(a,i,t){var o=S;typeof i=="string"&&(t=i,i=void 0),i===void 0&&(i=!1),t&&(o=g(t));var e=""+o.version;for(var u in a)if(a.hasOwnProperty(u)&&o[u]){if(typeof a[u]!="string")throw new Error("Browser version in the minVersion map should be a string: "+u+": "+String(a));return f([e,a[u]])<0}return i}function l(a,i,t){return!d(a,i,t)}return S.isUnsupportedBrowser=d,S.compareVersions=f,S.check=l,S._detect=g,S.detect=g,S})},{}],71:[function(R,D,n){},{}],72:[function(R,D,n){var y=R("buffer").Buffer,g=y.isEncoding||function(l){switch(l&&l.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 S(l){if(l&&!g(l))throw new Error("Unknown encoding: "+l)}var m=n.StringDecoder=function(l){this.encoding=(l||"utf8").toLowerCase().replace(/[-_]/,""),S(l);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=f;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=d;break;default:this.write=p;return}this.charBuffer=new y(6),this.charReceived=0,this.charLength=0};m.prototype.write=function(l){for(var a="";this.charLength;){var i=l.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:l.length;if(l.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";l=l.slice(i,l.length),a=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var o=a.charCodeAt(a.length-1);if(o>=55296&&o<=56319){this.charLength+=this.surrogateSize,a="";continue}if(this.charReceived=this.charLength=0,l.length===0)return a;break}this.detectIncompleteChar(l);var t=l.length;this.charLength&&(l.copy(this.charBuffer,0,l.length-this.charReceived,t),t-=this.charReceived),a+=l.toString(this.encoding,0,t);var t=a.length-1,o=a.charCodeAt(t);if(o>=55296&&o<=56319){var e=this.surrogateSize;return this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),l.copy(this.charBuffer,0,0,e),a.substring(0,t)}return a},m.prototype.detectIncompleteChar=function(l){for(var a=l.length>=3?3:l.length;a>0;a--){var i=l[l.length-a];if(a==1&&i>>5==6){this.charLength=2;break}if(a<=2&&i>>4==14){this.charLength=3;break}if(a<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=a},m.prototype.end=function(l){var a="";if(l&&l.length&&(a=this.write(l)),this.charReceived){var i=this.charReceived,t=this.charBuffer,o=this.encoding;a+=t.slice(0,i).toString(o)}return a};function p(l){return l.toString(this.encoding)}function f(l){this.charReceived=l.length%2,this.charLength=this.charReceived?2:0}function d(l){this.charReceived=l.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(R,D,n){(function(y,g){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var S=R("base64-js"),m=R("ieee754"),p=R("isarray");n.Buffer=g,n.SlowBuffer=h,n.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:f(),n.kMaxLength=d();function f(){try{var he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(J){return!1}}function d(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(he,J){if(d()<J)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(J),he.__proto__=g.prototype):(he===null&&(he=new g(J)),he.length=J),he}function g(he,J,Y){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(he,J,Y);if(typeof he=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,he)}return a(this,he,J,Y)}g.poolSize=8192,g._augment=function(he){return he.__proto__=g.prototype,he};function a(he,J,Y,$){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(he,J,Y,$):typeof J=="string"?e(he,J,Y):s(he,J)}g.from=function(he,J,Y){return a(null,he,J,Y)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function i(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function t(he,J,Y,$){return i(J),J<=0?l(he,J):Y!==void 0?typeof $=="string"?l(he,J).fill(Y,$):l(he,J).fill(Y):l(he,J)}g.alloc=function(he,J,Y){return t(null,he,J,Y)};function o(he,J){if(i(J),he=l(he,J<0?0:c(J)|0),!g.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)he[Y]=0;return he}g.allocUnsafe=function(he){return o(null,he)},g.allocUnsafeSlow=function(he){return o(null,he)};function e(he,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!g.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var $=v(J,Y)|0;he=l(he,$);var de=he.write(J,Y);return de!==$&&(he=he.slice(0,de)),he}function u(he,J){var Y=J.length<0?0:c(J.length)|0;he=l(he,Y);for(var $=0;$<Y;$+=1)he[$]=J[$]&255;return he}function r(he,J,Y,$){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+($||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&$===void 0?J=new Uint8Array(J):$===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,$),g.TYPED_ARRAY_SUPPORT?(he=J,he.__proto__=g.prototype):he=u(he,J),he}function s(he,J){if(g.isBuffer(J)){var Y=c(J.length)|0;return he=l(he,Y),he.length===0||J.copy(he,0,0,Y),he}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||et(J.length)?l(he,0):u(he,J);if(J.type==="Buffer"&&p(J.data))return u(he,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(he){if(he>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return he|0}function h(he){return+he!=he&&(he=0),g.alloc(+he)}g.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},g.compare=function(J,Y){if(!g.isBuffer(J)||!g.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var $=J.length,de=Y.length,be=0,Te=Math.min($,de);be<Te;++be)if(J[be]!==Y[be]){$=J[be],de=Y[be];break}return $<de?-1:de<$?1:0},g.isEncoding=function(J){switch(String(J).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}},g.concat=function(J,Y){if(!p(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return g.alloc(0);var $;if(Y===void 0)for(Y=0,$=0;$<J.length;++$)Y+=J[$].length;var de=g.allocUnsafe(Y),be=0;for($=0;$<J.length;++$){var Te=J[$];if(!g.isBuffer(Te))throw new TypeError('"list" argument must be an Array of Buffers');Te.copy(de,be),be+=Te.length}return de};function v(he,J){if(g.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var Y=he.length;if(Y===0)return 0;for(var $=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Qe(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Fe(he).length;default:if($)return Qe(he).length;J=(""+J).toLowerCase(),$=!0}}g.byteLength=v;function A(he,J,Y){var $=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(he||(he="utf8");;)switch(he){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return F(this,J,Y);case"base64":return k(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,J,Y);default:if($)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),$=!0}}g.prototype._isBuffer=!0;function b(he,J,Y){var $=he[J];he[J]=he[Y],he[Y]=$}g.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},g.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},g.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},g.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?M(this,0,J):A.apply(this,arguments)},g.prototype.equals=function(J){if(!g.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:g.compare(this,J)===0},g.prototype.inspect=function(){var J="",Y=n.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},g.prototype.compare=function(J,Y,$,de,be){if(!g.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),$===void 0&&($=J?J.length:0),de===void 0&&(de=0),be===void 0&&(be=this.length),Y<0||$>J.length||de<0||be>this.length)throw new RangeError("out of range index");if(de>=be&&Y>=$)return 0;if(de>=be)return-1;if(Y>=$)return 1;if(Y>>>=0,$>>>=0,de>>>=0,be>>>=0,this===J)return 0;for(var Te=be-de,Be=$-Y,fe=Math.min(Te,Be),xe=this.slice(de,be),ke=J.slice(Y,$),nt=0;nt<fe;++nt)if(xe[nt]!==ke[nt]){Te=xe[nt],Be=ke[nt];break}return Te<Be?-1:Be<Te?1:0};function x(he,J,Y,$,de){if(he.length===0)return-1;if(typeof Y=="string"?($=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=de?0:he.length-1),Y<0&&(Y=he.length+Y),Y>=he.length){if(de)return-1;Y=he.length-1}else if(Y<0)if(de)Y=0;else return-1;if(typeof J=="string"&&(J=g.from(J,$)),g.isBuffer(J))return J.length===0?-1:E(he,J,Y,$,de);if(typeof J=="number")return J=J&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?de?Uint8Array.prototype.indexOf.call(he,J,Y):Uint8Array.prototype.lastIndexOf.call(he,J,Y):E(he,[J],Y,$,de);throw new TypeError("val must be string, number or Buffer")}function E(he,J,Y,$,de){var be=1,Te=he.length,Be=J.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(he.length<2||J.length<2)return-1;be=2,Te/=2,Be/=2,Y/=2}function fe(pt,He){return be===1?pt[He]:pt.readUInt16BE(He*be)}var xe;if(de){var ke=-1;for(xe=Y;xe<Te;xe++)if(fe(he,xe)===fe(J,ke===-1?0:xe-ke)){if(ke===-1&&(ke=xe),xe-ke+1===Be)return ke*be}else ke!==-1&&(xe-=xe-ke),ke=-1}else for(Y+Be>Te&&(Y=Te-Be),xe=Y;xe>=0;xe--){for(var nt=!0,Ct=0;Ct<Be;Ct++)if(fe(he,xe+Ct)!==fe(J,Ct)){nt=!1;break}if(nt)return xe}return-1}g.prototype.includes=function(J,Y,$){return this.indexOf(J,Y,$)!==-1},g.prototype.indexOf=function(J,Y,$){return x(this,J,Y,$,!0)},g.prototype.lastIndexOf=function(J,Y,$){return x(this,J,Y,$,!1)};function T(he,J,Y,$){Y=Number(Y)||0;var de=he.length-Y;$?($=Number($),$>de&&($=de)):$=de;var be=J.length;if(be%2!==0)throw new TypeError("Invalid hex string");$>be/2&&($=be/2);for(var Te=0;Te<$;++Te){var Be=parseInt(J.substr(Te*2,2),16);if(isNaN(Be))return Te;he[Y+Te]=Be}return Te}function _(he,J,Y,$){return ue(Qe(J,he.length-Y),he,Y,$)}function C(he,J,Y,$){return ue(Ve(J),he,Y,$)}function w(he,J,Y,$){return C(he,J,Y,$)}function O(he,J,Y,$){return ue(Fe(J),he,Y,$)}function I(he,J,Y,$){return ue(dt(J,he.length-Y),he,Y,$)}g.prototype.write=function(J,Y,$,de){if(Y===void 0)de="utf8",$=this.length,Y=0;else if($===void 0&&typeof Y=="string")de=Y,$=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite($)?($=$|0,de===void 0&&(de="utf8")):(de=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-Y;if(($===void 0||$>be)&&($=be),J.length>0&&($<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var Te=!1;;)switch(de){case"hex":return T(this,J,Y,$);case"utf8":case"utf-8":return _(this,J,Y,$);case"ascii":return C(this,J,Y,$);case"latin1":case"binary":return w(this,J,Y,$);case"base64":return O(this,J,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,$);default:if(Te)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Te=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(he,J,Y){return J===0&&Y===he.length?S.fromByteArray(he):S.fromByteArray(he.slice(J,Y))}function M(he,J,Y){Y=Math.min(he.length,Y);for(var $=[],de=J;de<Y;){var be=he[de],Te=null,Be=be>239?4:be>223?3:be>191?2:1;if(de+Be<=Y){var fe,xe,ke,nt;switch(Be){case 1:be<128&&(Te=be);break;case 2:fe=he[de+1],(fe&192)===128&&(nt=(be&31)<<6|fe&63,nt>127&&(Te=nt));break;case 3:fe=he[de+1],xe=he[de+2],(fe&192)===128&&(xe&192)===128&&(nt=(be&15)<<12|(fe&63)<<6|xe&63,nt>2047&&(nt<55296||nt>57343)&&(Te=nt));break;case 4:fe=he[de+1],xe=he[de+2],ke=he[de+3],(fe&192)===128&&(xe&192)===128&&(ke&192)===128&&(nt=(be&15)<<18|(fe&63)<<12|(xe&63)<<6|ke&63,nt>65535&&nt<1114112&&(Te=nt))}}Te===null?(Te=65533,Be=1):Te>65535&&(Te-=65536,$.push(Te>>>10&1023|55296),Te=56320|Te&1023),$.push(Te),de+=Be}return P($)}var U=4096;function P(he){var J=he.length;if(J<=U)return String.fromCharCode.apply(String,he);for(var Y="",$=0;$<J;)Y+=String.fromCharCode.apply(String,he.slice($,$+=U));return Y}function X(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]&127);return $}function F(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]);return $}function j(he,J,Y){var $=he.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>$)&&(Y=$);for(var de="",be=J;be<Y;++be)de+=Me(he[be]);return de}function K(he,J,Y){for(var $=he.slice(J,Y),de="",be=0;be<$.length;be+=2)de+=String.fromCharCode($[be]+$[be+1]*256);return de}g.prototype.slice=function(J,Y){var $=this.length;J=~~J,Y=Y===void 0?$:~~Y,J<0?(J+=$,J<0&&(J=0)):J>$&&(J=$),Y<0?(Y+=$,Y<0&&(Y=0)):Y>$&&(Y=$),Y<J&&(Y=J);var de;if(g.TYPED_ARRAY_SUPPORT)de=this.subarray(J,Y),de.__proto__=g.prototype;else{var be=Y-J;de=new g(be,void 0);for(var Te=0;Te<be;++Te)de[Te]=this[Te+J]}return de};function z(he,J,Y){if(he%1!==0||he<0)throw new RangeError("offset is not uint");if(he+J>Y)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Te=0;++Te<Y&&(be*=256);)de+=this[J+Te]*be;return de},g.prototype.readUIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J+--Y],be=1;Y>0&&(be*=256);)de+=this[J+--Y]*be;return de},g.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},g.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},g.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},g.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},g.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},g.prototype.readIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Te=0;++Te<Y&&(be*=256);)de+=this[J+Te]*be;return be*=128,de>=be&&(de-=Math.pow(2,8*Y)),de},g.prototype.readIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=Y,be=1,Te=this[J+--de];de>0&&(be*=256);)Te+=this[J+--de]*be;return be*=128,Te>=be&&(Te-=Math.pow(2,8*Y)),Te},g.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},g.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var $=this[J]|this[J+1]<<8;return $&32768?$|4294901760:$},g.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var $=this[J+1]|this[J]<<8;return $&32768?$|4294901760:$},g.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},g.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},g.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),m.read(this,J,!0,23,4)},g.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),m.read(this,J,!1,23,4)},g.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),m.read(this,J,!0,52,8)},g.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),m.read(this,J,!1,52,8)};function V(he,J,Y,$,de,be){if(!g.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>de||J<be)throw new RangeError('"value" argument is out of bounds');if(Y+$>he.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Te=1,Be=0;for(this[Y]=J&255;++Be<$&&(Te*=256);)this[Y+Be]=J/Te&255;return Y+$},g.prototype.writeUIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Te=$-1,Be=1;for(this[Y+Te]=J&255;--Te>=0&&(Be*=256);)this[Y+Te]=J/Be&255;return Y+$},g.prototype.writeUInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,255,0),g.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(he,J,Y,$){J<0&&(J=65535+J+1);for(var de=0,be=Math.min(he.length-Y,2);de<be;++de)he[Y+de]=(J&255<<8*($?de:1-de))>>>($?de:1-de)*8}g.prototype.writeUInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},g.prototype.writeUInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function G(he,J,Y,$){J<0&&(J=4294967295+J+1);for(var de=0,be=Math.min(he.length-Y,4);de<be;++de)he[Y+de]=J>>>($?de:3-de)*8&255}g.prototype.writeUInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):G(this,J,Y,!0),Y+4},g.prototype.writeUInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4},g.prototype.writeIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Te=0,Be=1,fe=0;for(this[Y]=J&255;++Te<$&&(Be*=256);)J<0&&fe===0&&this[Y+Te-1]!==0&&(fe=1),this[Y+Te]=(J/Be>>0)-fe&255;return Y+$},g.prototype.writeIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Te=$-1,Be=1,fe=0;for(this[Y+Te]=J&255;--Te>=0&&(Be*=256);)J<0&&fe===0&&this[Y+Te+1]!==0&&(fe=1),this[Y+Te]=(J/Be>>0)-fe&255;return Y+$},g.prototype.writeInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,127,-128),g.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},g.prototype.writeInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},g.prototype.writeInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},g.prototype.writeInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):G(this,J,Y,!0),Y+4},g.prototype.writeInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),g.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4};function te(he,J,Y,$,de,be){if(Y+$>he.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function q(he,J,Y,$,de){return de||te(he,J,Y,4,34028234663852886e22,-34028234663852886e22),m.write(he,J,Y,$,23,4),Y+4}g.prototype.writeFloatLE=function(J,Y,$){return q(this,J,Y,!0,$)},g.prototype.writeFloatBE=function(J,Y,$){return q(this,J,Y,!1,$)};function se(he,J,Y,$,de){return de||te(he,J,Y,8,17976931348623157e292,-17976931348623157e292),m.write(he,J,Y,$,52,8),Y+8}g.prototype.writeDoubleLE=function(J,Y,$){return se(this,J,Y,!0,$)},g.prototype.writeDoubleBE=function(J,Y,$){return se(this,J,Y,!1,$)},g.prototype.copy=function(J,Y,$,de){if($||($=0),!de&&de!==0&&(de=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),de>0&&de<$&&(de=$),de===$)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),J.length-Y<de-$&&(de=J.length-Y+$);var be=de-$,Te;if(this===J&&$<Y&&Y<de)for(Te=be-1;Te>=0;--Te)J[Te+Y]=this[Te+$];else if(be<1e3||!g.TYPED_ARRAY_SUPPORT)for(Te=0;Te<be;++Te)J[Te+Y]=this[Te+$];else Uint8Array.prototype.set.call(J,this.subarray($,$+be),Y);return be},g.prototype.fill=function(J,Y,$,de){if(typeof J=="string"){if(typeof Y=="string"?(de=Y,Y=0,$=this.length):typeof $=="string"&&(de=$,$=this.length),J.length===1){var be=J.charCodeAt(0);be<256&&(J=be)}if(de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!g.isEncoding(de))throw new TypeError("Unknown encoding: "+de)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<$)throw new RangeError("Out of range index");if($<=Y)return this;Y=Y>>>0,$=$===void 0?this.length:$>>>0,J||(J=0);var Te;if(typeof J=="number")for(Te=Y;Te<$;++Te)this[Te]=J;else{var Be=g.isBuffer(J)?J:Qe(new g(J,de).toString()),fe=Be.length;for(Te=0;Te<$-Y;++Te)this[Te+Y]=Be[Te%fe]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function we(he){if(he=Oe(he).replace(re,""),he.length<2)return"";for(;he.length%4!==0;)he=he+"=";return he}function Oe(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function Me(he){return he<16?"0"+he.toString(16):he.toString(16)}function Qe(he,J){J=J||Infinity;for(var Y,$=he.length,de=null,be=[],Te=0;Te<$;++Te){if(Y=he.charCodeAt(Te),Y>55295&&Y<57344){if(!de){if(Y>56319){(J-=3)>-1&&be.push(239,191,189);continue}else if(Te+1===$){(J-=3)>-1&&be.push(239,191,189);continue}de=Y;continue}if(Y<56320){(J-=3)>-1&&be.push(239,191,189),de=Y;continue}Y=(de-55296<<10|Y-56320)+65536}else de&&((J-=3)>-1&&be.push(239,191,189));if(de=null,Y<128){if((J-=1)<0)break;be.push(Y)}else if(Y<2048){if((J-=2)<0)break;be.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;be.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;be.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return be}function Ve(he){for(var J=[],Y=0;Y<he.length;++Y)J.push(he.charCodeAt(Y)&255);return J}function dt(he,J){for(var Y,$,de,be=[],Te=0;Te<he.length&&!((J-=2)<0);++Te)Y=he.charCodeAt(Te),$=Y>>8,de=Y%256,be.push(de),be.push($);return be}function Fe(he){return S.toByteArray(we(he))}function ue(he,J,Y,$){for(var de=0;de<$&&!(de+Y>=J.length||de>=he.length);++de)J[de+Y]=he[de];return de}function et(he){return he!==he}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(R,D,n){D.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(R,D,n){D.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(R,D,n){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var y=Array.prototype.slice;D.exports=g;function g(m,p){if(!(this instanceof g))return new g(m,p);this.src=m,this._withAccess=p}g.prototype.withAccess=function(m){return this._withAccess=m!==!1,this},g.prototype.pick=function(m){return Array.isArray(m)||(m=y.call(arguments)),m.length&&(this.keys=m),this},g.prototype.to=function(m){if(m=m||{},!this.src)return m;var p=this.keys||Object.keys(this.src);if(!this._withAccess){for(var f=0;f<p.length;f++){if(d=p[f],m[d]!==void 0)continue;m[d]=this.src[d]}return m}for(var f=0;f<p.length;f++){var d=p[f];if(!S(m,d))continue;var l=this.src.__lookupGetter__(d),a=this.src.__lookupSetter__(d);l&&m.__defineGetter__(d,l),a&&m.__defineSetter__(d,a),!l&&!a&&(m[d]=this.src[d])}return m},g.prototype.toCover=function(m){for(var p=this.keys||Object.keys(this.src),f=0;f<p.length;f++){var d=p[f];delete m[d];var l=this.src.__lookupGetter__(d),a=this.src.__lookupSetter__(d);l&&m.__defineGetter__(d,l),a&&m.__defineSetter__(d,a),!l&&!a&&(m[d]=this.src[d])}},g.prototype.override=g.prototype.toCover,g.prototype.and=function(m){var p={};return this.to(p),this.src=m,this.to(p),this.src=p,this};function S(m,p){return m[p]===void 0&&m.__lookupGetter__(p)===void 0&&m.__lookupSetter__(p)===void 0}},{}],77:[function(R,D,n){R("../../modules/es6.string.iterator"),R("../../modules/es6.array.from"),D.exports=R("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(R,D,n){var y=R("../../modules/_core"),g=y.JSON||(y.JSON={stringify:JSON.stringify});D.exports=function(m){return g.stringify.apply(g,arguments)}},{"../../modules/_core":99}],79:[function(R,D,n){R("../../modules/es6.object.assign"),D.exports=R("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(R,D,n){R("../../modules/es6.object.create");var y=R("../../modules/_core").Object;D.exports=function(S,m){return y.create(S,m)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(R,D,n){R("../../modules/es6.object.define-property");var y=R("../../modules/_core").Object;D.exports=function(S,m,p){return y.defineProperty(S,m,p)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(R,D,n){R("../../modules/es7.object.entries"),D.exports=R("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(R,D,n){R("../../modules/es6.object.get-own-property-names");var y=R("../../modules/_core").Object;D.exports=function(S){return y.getOwnPropertyNames(S)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(R,D,n){R("../../modules/es6.object.get-prototype-of"),D.exports=R("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(R,D,n){R("../../modules/es6.object.keys"),D.exports=R("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(R,D,n){R("../modules/es6.object.to-string"),R("../modules/es6.string.iterator"),R("../modules/web.dom.iterable"),R("../modules/es6.promise"),R("../modules/es7.promise.finally"),R("../modules/es7.promise.try"),D.exports=R("../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(R,D,n){R("../modules/web.immediate"),D.exports=R("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(R,D,n){R("../../modules/es6.string.from-code-point"),D.exports=R("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(R,D,n){R("../../modules/es6.function.has-instance"),D.exports=R("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(R,D,n){R("../../modules/es6.symbol"),R("../../modules/es6.object.to-string"),R("../../modules/es7.symbol.async-iterator"),R("../../modules/es7.symbol.observable"),D.exports=R("../../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(R,D,n){R("../../modules/es6.string.iterator"),R("../../modules/web.dom.iterable"),D.exports=R("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(R,D,n){D.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},{}],93:[function(R,D,n){D.exports=function(){}},{}],94:[function(R,D,n){D.exports=function(y,g,S,m){if(!(y instanceof g)||m!==void 0&&m in y)throw TypeError(S+": incorrect invocation!");return y}},{}],95:[function(R,D,n){var y=R("./_is-object");D.exports=function(g){if(!y(g))throw TypeError(g+" is not an object!");return g}},{"./_is-object":119}],96:[function(R,D,n){var y=R("./_to-iobject"),g=R("./_to-length"),S=R("./_to-absolute-index");D.exports=function(m){return function(p,f,d){var l=y(p),a=g(l.length),i=S(d,a),t;if(m&&f!=f){for(;a>i;)if(t=l[i++],t!=t)return!0}else for(;a>i;i++)if((m||i in l)&&l[i]===f)return m||i||0;return!m&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(R,D,n){var y=R("./_cof"),g=R("./_wks")("toStringTag"),S=y(function(){return arguments}())=="Arguments",m=function(f,d){try{return f[d]}catch(l){}};D.exports=function(p){var f,d,l;return p===void 0?"Undefined":p===null?"Null":typeof(d=m(f=Object(p),g))=="string"?d:S?y(f):(l=y(f))=="Object"&&typeof f.callee=="function"?"Arguments":l}},{"./_cof":98,"./_wks":166}],98:[function(R,D,n){var y={}.toString;D.exports=function(g){return y.call(g).slice(8,-1)}},{}],99:[function(R,D,n){var y=D.exports={version:"2.6.11"};typeof __e=="number"&&(__e=y)},{}],100:[function(R,D,n){"use strict";var y=R("./_object-dp"),g=R("./_property-desc");D.exports=function(S,m,p){m in S?y.f(S,m,g(0,p)):S[m]=p}},{"./_object-dp":132,"./_property-desc":146}],101:[function(R,D,n){var y=R("./_a-function");D.exports=function(g,S,m){if(y(g),S===void 0)return g;switch(m){case 1:return function(p){return g.call(S,p)};case 2:return function(p,f){return g.call(S,p,f)};case 3:return function(p,f,d){return g.call(S,p,f,d)}}return function(){return g.apply(S,arguments)}}},{"./_a-function":92}],102:[function(R,D,n){D.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},{}],103:[function(R,D,n){D.exports=!R("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(R,D,n){var y=R("./_is-object"),g=R("./_global").document,S=y(g)&&y(g.createElement);D.exports=function(m){return S?g.createElement(m):{}}},{"./_global":110,"./_is-object":119}],105:[function(R,D,n){D.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(R,D,n){var y=R("./_object-keys"),g=R("./_object-gops"),S=R("./_object-pie");D.exports=function(m){var p=y(m),f=g.f;if(f)for(var d=f(m),l=S.f,a=0,i;d.length>a;)l.call(m,i=d[a++])&&p.push(i);return p}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(R,D,n){var y=R("./_global"),g=R("./_core"),S=R("./_ctx"),m=R("./_hide"),p=R("./_has"),f="prototype",d=function l(a,i,t){var o=a&l.F,e=a&l.G,u=a&l.S,r=a&l.P,s=a&l.B,c=a&l.W,h=e?g:g[i]||(g[i]={}),v=h[f],A=e?y:u?y[i]:(y[i]||{})[f],b,x,E;e&&(t=i);for(b in t){if(x=!o&&A&&A[b]!==void 0,x&&p(h,b))continue;E=x?A[b]:t[b],h[b]=e&&typeof A[b]!="function"?t[b]:s&&x?S(E,y):c&&A[b]==E?function(T){var _=function(w,O,I){if(this instanceof T){switch(arguments.length){case 0:return new T;case 1:return new T(w);case 2:return new T(w,O)}return new T(w,O,I)}return T.apply(this,arguments)};return _[f]=T[f],_}(E):r&&typeof E=="function"?S(Function.call,E):E,r&&((h.virtual||(h.virtual={}))[b]=E,a&l.R&&v&&!v[b]&&m(v,b,E))}};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,D.exports=d},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(R,D,n){D.exports=function(y){try{return!!y()}catch(g){return!0}}},{}],109:[function(R,D,n){var y=R("./_ctx"),g=R("./_iter-call"),S=R("./_is-array-iter"),m=R("./_an-object"),p=R("./_to-length"),f=R("./core.get-iterator-method"),d={},l={},n=D.exports=function(a,i,t,o,e){var u=e?function(){return a}:f(a),r=y(t,o,i?2:1),s=0,c,h,v,A;if(typeof u!="function")throw TypeError(a+" is not iterable!");if(S(u)){for(c=p(a.length);c>s;s++)if(A=i?r(m(h=a[s])[0],h[1]):r(a[s]),A===d||A===l)return A}else for(v=u.call(a);!(h=v.next()).done;)if(A=g(v,r,h.value,i),A===d||A===l)return A};n.BREAK=d,n.RETURN=l},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(R,D,n){var y=D.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=y)},{}],111:[function(R,D,n){var y={}.hasOwnProperty;D.exports=function(g,S){return y.call(g,S)}},{}],112:[function(R,D,n){var y=R("./_object-dp"),g=R("./_property-desc");D.exports=R("./_descriptors")?function(S,m,p){return y.f(S,m,g(1,p))}:function(S,m,p){return S[m]=p,S}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(R,D,n){var y=R("./_global").document;D.exports=y&&y.documentElement},{"./_global":110}],114:[function(R,D,n){D.exports=!R("./_descriptors")&&!R("./_fails")(function(){return Object.defineProperty(R("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(R,D,n){D.exports=function(y,g,S){var m=S===void 0;switch(g.length){case 0:return m?y():y.call(S);case 1:return m?y(g[0]):y.call(S,g[0]);case 2:return m?y(g[0],g[1]):y.call(S,g[0],g[1]);case 3:return m?y(g[0],g[1],g[2]):y.call(S,g[0],g[1],g[2]);case 4:return m?y(g[0],g[1],g[2],g[3]):y.call(S,g[0],g[1],g[2],g[3])}return y.apply(S,g)}},{}],116:[function(R,D,n){var y=R("./_cof");D.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return y(g)=="String"?g.split(""):Object(g)}},{"./_cof":98}],117:[function(R,D,n){var y=R("./_iterators"),g=R("./_wks")("iterator"),S=Array.prototype;D.exports=function(m){return m!==void 0&&(y.Array===m||S[g]===m)}},{"./_iterators":125,"./_wks":166}],118:[function(R,D,n){var y=R("./_cof");D.exports=Array.isArray||function(S){return y(S)=="Array"}},{"./_cof":98}],119:[function(R,D,n){D.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},{}],120:[function(R,D,n){var y=R("./_an-object");D.exports=function(g,S,m,p){try{return p?S(y(m)[0],m[1]):S(m)}catch(d){var f=g.return;throw f!==void 0&&y(f.call(g)),d}}},{"./_an-object":95}],121:[function(R,D,n){"use strict";var y=R("./_object-create"),g=R("./_property-desc"),S=R("./_set-to-string-tag"),m={};R("./_hide")(m,R("./_wks")("iterator"),function(){return this}),D.exports=function(p,f,d){p.prototype=y(m,{next:g(1,d)}),S(p,f+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(R,D,n){"use strict";var y=R("./_library"),g=R("./_export"),S=R("./_redefine"),m=R("./_hide"),p=R("./_iterators"),f=R("./_iter-create"),d=R("./_set-to-string-tag"),l=R("./_object-gpo"),a=R("./_wks")("iterator"),i=!([].keys&&"next"in[].keys()),t="@@iterator",o="keys",e="values",u=function(){return this};D.exports=function(r,s,c,h,v,A,b){f(c,s,h);var x=function(F){if(!i&&F in C)return C[F];switch(F){case o:return function(){return new c(this,F)};case e:return function(){return new c(this,F)}}return function(){return new c(this,F)}},E=s+" Iterator",T=v==e,_=!1,C=r.prototype,w=C[a]||C[t]||v&&C[v],O=w||x(v),I=v?T?x("entries"):O:void 0,k=s=="Array"&&C.entries||w,M,U,P;if(k&&(P=l(k.call(new r)),P!==Object.prototype&&P.next&&(d(P,E,!0),!y&&typeof P[a]!="function"&&m(P,a,u))),T&&w&&w.name!==e&&(_=!0,O=function(){return w.call(this)}),(!y||b)&&(i||_||!C[a])&&m(C,a,O),p[s]=O,p[E]=u,v)if(M={values:T?O:x(e),keys:A?O:x(o),entries:I},b)for(U in M)U in C||S(C,U,M[U]);else g(g.P+g.F*(i||_),s,M);return M}},{"./_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(R,D,n){var y=R("./_wks")("iterator"),g=!1;try{var S=[7][y]();S.return=function(){g=!0},Array.from(S,function(){throw 2})}catch(m){}D.exports=function(m,p){if(!p&&!g)return!1;var f=!1;try{var d=[7],l=d[y]();l.next=function(){return{done:f=!0}},d[y]=function(){return l},m(d)}catch(a){}return f}},{"./_wks":166}],124:[function(R,D,n){D.exports=function(y,g){return{value:g,done:!!y}}},{}],125:[function(R,D,n){D.exports={}},{}],126:[function(R,D,n){D.exports=!0},{}],127:[function(R,D,n){var y=R("./_uid")("meta"),g=R("./_is-object"),S=R("./_has"),m=R("./_object-dp").f,p=0,f=Object.isExtensible||function(){return!0},d=!R("./_fails")(function(){return f(Object.preventExtensions({}))}),l=function(u){m(u,y,{value:{i:"O"+ ++p,w:{}}})},a=function(u,r){if(!g(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!S(u,y)){if(!f(u))return"F";if(!r)return"E";l(u)}return u[y].i},i=function(u,r){if(!S(u,y)){if(!f(u))return!0;if(!r)return!1;l(u)}return u[y].w},t=function(u){return d&&o.NEED&&f(u)&&!S(u,y)&&l(u),u},o=D.exports={KEY:y,NEED:!1,fastKey:a,getWeak:i,onFreeze:t}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(R,D,n){var y=R("./_global"),g=R("./_task").set,S=y.MutationObserver||y.WebKitMutationObserver,m=y.process,p=y.Promise,f=R("./_cof")(m)=="process";D.exports=function(){var d,l,a,i=function(){var r,s;for(f&&(r=m.domain)&&r.exit();d;){s=d.fn,d=d.next;try{s()}catch(c){throw d?a():l=void 0,c}}l=void 0,r&&r.enter()};if(f)a=function(){m.nextTick(i)};else if(S&&!(y.navigator&&y.navigator.standalone)){var t=!0,o=document.createTextNode("");new S(i).observe(o,{characterData:!0}),a=function(){o.data=t=!t}}else if(p&&p.resolve){var e=p.resolve(void 0);a=function(){e.then(i)}}else a=function(){g.call(y,i)};return function(u){var r={fn:u,next:void 0};l&&(l.next=r),d||(d=r,a()),l=r}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(R,D,n){"use strict";var y=R("./_a-function");function g(S){var m,p;this.promise=new S(function(f,d){if(m!==void 0||p!==void 0)throw TypeError("Bad Promise constructor");m=f,p=d}),this.resolve=y(m),this.reject=y(p)}D.exports.f=function(S){return new g(S)}},{"./_a-function":92}],130:[function(R,D,n){"use strict";var y=R("./_descriptors"),g=R("./_object-keys"),S=R("./_object-gops"),m=R("./_object-pie"),p=R("./_to-object"),f=R("./_iobject"),d=Object.assign;D.exports=!d||R("./_fails")(function(){var l={},a={},i=Symbol(),t="abcdefghijklmnopqrst";return l[i]=7,t.split("").forEach(function(o){a[o]=o}),d({},l)[i]!=7||Object.keys(d({},a)).join("")!=t})?function(a,i){for(var t=p(a),o=arguments.length,e=1,u=S.f,r=m.f;o>e;)for(var s=f(arguments[e++]),c=u?g(s).concat(u(s)):g(s),h=c.length,v=0,A;h>v;)A=c[v++],(!y||r.call(s,A))&&(t[A]=s[A]);return t}:d},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(R,D,n){var y=R("./_an-object"),g=R("./_object-dps"),S=R("./_enum-bug-keys"),m=R("./_shared-key")("IE_PROTO"),p=function(){},f="prototype",d=function(){var a=R("./_dom-create")("iframe"),i=S.length,t="<",o=">",e;for(a.style.display="none",R("./_html").appendChild(a),a.src="javascript:",e=a.contentWindow.document,e.open(),e.write(t+"script"+o+"document.F=Object"+t+"/script"+o),e.close(),d=e.F;i--;)delete d[f][S[i]];return d()};D.exports=Object.create||function(a,i){var t;return a!==null?(p[f]=y(a),t=new p,p[f]=null,t[m]=a):t=d(),i===void 0?t:g(t,i)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(R,D,n){var y=R("./_an-object"),g=R("./_ie8-dom-define"),S=R("./_to-primitive"),m=Object.defineProperty;n.f=R("./_descriptors")?Object.defineProperty:function(f,d,l){if(y(f),d=S(d,!0),y(l),g)try{return m(f,d,l)}catch(a){}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");return"value"in l&&(f[d]=l.value),f}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(R,D,n){var y=R("./_object-dp"),g=R("./_an-object"),S=R("./_object-keys");D.exports=R("./_descriptors")?Object.defineProperties:function(p,f){g(p);for(var d=S(f),l=d.length,a=0,i;l>a;)y.f(p,i=d[a++],f[i]);return p}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(R,D,n){var y=R("./_object-pie"),g=R("./_property-desc"),S=R("./_to-iobject"),m=R("./_to-primitive"),p=R("./_has"),f=R("./_ie8-dom-define"),d=Object.getOwnPropertyDescriptor;n.f=R("./_descriptors")?d:function(a,i){if(a=S(a),i=m(i,!0),f)try{return d(a,i)}catch(t){}if(p(a,i))return g(!y.f.call(a,i),a[i])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(R,D,n){var y=R("./_to-iobject"),g=R("./_object-gopn").f,S={}.toString,m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(d){try{return g(d)}catch(l){return m.slice()}};D.exports.f=function(d){return m&&S.call(d)=="[object Window]"?p(d):g(y(d))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(R,D,n){var y=R("./_object-keys-internal"),g=R("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(m){return y(m,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(R,D,n){n.f=Object.getOwnPropertySymbols},{}],138:[function(R,D,n){var y=R("./_has"),g=R("./_to-object"),S=R("./_shared-key")("IE_PROTO"),m=Object.prototype;D.exports=Object.getPrototypeOf||function(p){return p=g(p),y(p,S)?p[S]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?m:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(R,D,n){var y=R("./_has"),g=R("./_to-iobject"),S=R("./_array-includes")(!1),m=R("./_shared-key")("IE_PROTO");D.exports=function(p,f){var d=g(p),l=0,a=[],i;for(i in d)i!=m&&(y(d,i)&&a.push(i));for(;f.length>l;)y(d,i=f[l++])&&(~S(a,i)||a.push(i));return a}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(R,D,n){var y=R("./_object-keys-internal"),g=R("./_enum-bug-keys");D.exports=Object.keys||function(m){return y(m,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(R,D,n){n.f={}.propertyIsEnumerable},{}],142:[function(R,D,n){var y=R("./_export"),g=R("./_core"),S=R("./_fails");D.exports=function(m,p){var f=(g.Object||{})[m]||Object[m],d={};d[m]=p(f),y(y.S+y.F*S(function(){f(1)}),"Object",d)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(R,D,n){var y=R("./_descriptors"),g=R("./_object-keys"),S=R("./_to-iobject"),m=R("./_object-pie").f;D.exports=function(p){return function(f){for(var d=S(f),l=g(d),a=l.length,i=0,t=[],o;a>i;)o=l[i++],(!y||m.call(d,o))&&t.push(p?[o,d[o]]:d[o]);return t}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(R,D,n){D.exports=function(y){try{return{e:!1,v:y()}}catch(g){return{e:!0,v:g}}}},{}],145:[function(R,D,n){var y=R("./_an-object"),g=R("./_is-object"),S=R("./_new-promise-capability");D.exports=function(m,p){if(y(m),g(p)&&p.constructor===m)return p;var f=S.f(m),d=f.resolve;return d(p),f.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(R,D,n){D.exports=function(y,g){return{enumerable:!(y&1),configurable:!(y&2),writable:!(y&4),value:g}}},{}],147:[function(R,D,n){var y=R("./_hide");D.exports=function(g,S,m){for(var p in S)m&&g[p]?g[p]=S[p]:y(g,p,S[p]);return g}},{"./_hide":112}],148:[function(R,D,n){D.exports=R("./_hide")},{"./_hide":112}],149:[function(R,D,n){"use strict";var y=R("./_global"),g=R("./_core"),S=R("./_object-dp"),m=R("./_descriptors"),p=R("./_wks")("species");D.exports=function(f){var d=typeof g[f]=="function"?g[f]:y[f];m&&d&&!d[p]&&S.f(d,p,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(R,D,n){var y=R("./_object-dp").f,g=R("./_has"),S=R("./_wks")("toStringTag");D.exports=function(m,p,f){m&&!g(m=f?m:m.prototype,S)&&y(m,S,{configurable:!0,value:p})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(R,D,n){var y=R("./_shared")("keys"),g=R("./_uid");D.exports=function(S){return y[S]||(y[S]=g(S))}},{"./_shared":152,"./_uid":162}],152:[function(R,D,n){var y=R("./_core"),g=R("./_global"),S="__core-js_shared__",m=g[S]||(g[S]={});(D.exports=function(p,f){return m[p]||(m[p]=f!==void 0?f:{})})("versions",[]).push({version:y.version,mode:R("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(R,D,n){var y=R("./_an-object"),g=R("./_a-function"),S=R("./_wks")("species");D.exports=function(m,p){var f=y(m).constructor,d;return f===void 0||(d=y(f)[S])==null?p:g(d)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(R,D,n){var y=R("./_to-integer"),g=R("./_defined");D.exports=function(S){return function(m,p){var f=String(g(m)),d=y(p),l=f.length,a,i;return d<0||d>=l?S?"":void 0:(a=f.charCodeAt(d),a<55296||a>56319||d+1===l||(i=f.charCodeAt(d+1))<56320||i>57343?S?f.charAt(d):a:S?f.slice(d,d+2):(a-55296<<10)+(i-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(R,D,n){var y=R("./_ctx"),g=R("./_invoke"),S=R("./_html"),m=R("./_dom-create"),p=R("./_global"),f=p.process,d=p.setImmediate,l=p.clearImmediate,a=p.MessageChannel,i=p.Dispatch,t=0,o={},e="onreadystatechange",u,r,s,c=function(){var A=+this;if(o.hasOwnProperty(A)){var b=o[A];delete o[A],b()}},h=function(A){c.call(A.data)};(!d||!l)&&(d=function(A){for(var b=[],x=1;arguments.length>x;)b.push(arguments[x++]);return o[++t]=function(){g(typeof A=="function"?A:Function(A),b)},u(t),t},l=function(A){delete o[A]},R("./_cof")(f)=="process"?u=function(A){f.nextTick(y(c,A,1))}:i&&i.now?u=function(A){i.now(y(c,A,1))}:a?(r=new a,s=r.port2,r.port1.onmessage=h,u=y(s.postMessage,s,1)):p.addEventListener&&typeof postMessage=="function"&&!p.importScripts?(u=function(A){p.postMessage(A+"","*")},p.addEventListener("message",h,!1)):e in m("script")?u=function(A){S.appendChild(m("script"))[e]=function(){S.removeChild(this),c.call(A)}}:u=function(A){setTimeout(y(c,A,1),0)}),D.exports={set:d,clear:l}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(R,D,n){var y=R("./_to-integer"),g=Math.max,S=Math.min;D.exports=function(m,p){return m=y(m),m<0?g(m+p,0):S(m,p)}},{"./_to-integer":157}],157:[function(R,D,n){var y=Math.ceil,g=Math.floor;D.exports=function(S){return isNaN(S=+S)?0:(S>0?g:y)(S)}},{}],158:[function(R,D,n){var y=R("./_iobject"),g=R("./_defined");D.exports=function(S){return y(g(S))}},{"./_defined":102,"./_iobject":116}],159:[function(R,D,n){var y=R("./_to-integer"),g=Math.min;D.exports=function(S){return S>0?g(y(S),9007199254740991):0}},{"./_to-integer":157}],160:[function(R,D,n){var y=R("./_defined");D.exports=function(g){return Object(y(g))}},{"./_defined":102}],161:[function(R,D,n){var y=R("./_is-object");D.exports=function(g,S){if(!y(g))return g;var m,p;if(S&&typeof(m=g.toString)=="function"&&!y(p=m.call(g)))return p;if(typeof(m=g.valueOf)=="function"&&!y(p=m.call(g)))return p;if(!S&&typeof(m=g.toString)=="function"&&!y(p=m.call(g)))return p;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(R,D,n){var y=0,g=Math.random();D.exports=function(S){return"Symbol(".concat(S===void 0?"":S,")_",(++y+g).toString(36))}},{}],163:[function(R,D,n){var y=R("./_global"),g=y.navigator;D.exports=g&&g.userAgent||""},{"./_global":110}],164:[function(R,D,n){var y=R("./_global"),g=R("./_core"),S=R("./_library"),m=R("./_wks-ext"),p=R("./_object-dp").f;D.exports=function(f){var d=g.Symbol||(g.Symbol=S?{}:y.Symbol||{});f.charAt(0)!="_"&&!(f in d)&&p(d,f,{value:m.f(f)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(R,D,n){n.f=R("./_wks")},{"./_wks":166}],166:[function(R,D,n){var y=R("./_shared")("wks"),g=R("./_uid"),S=R("./_global").Symbol,m=typeof S=="function",p=D.exports=function(f){return y[f]||(y[f]=m&&S[f]||(m?S:g)("Symbol."+f))};p.store=y},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(R,D,n){var y=R("./_classof"),g=R("./_wks")("iterator"),S=R("./_iterators");D.exports=R("./_core").getIteratorMethod=function(m){if(m!=null)return m[g]||m["@@iterator"]||S[y(m)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(R,D,n){"use strict";var y=R("./_ctx"),g=R("./_export"),S=R("./_to-object"),m=R("./_iter-call"),p=R("./_is-array-iter"),f=R("./_to-length"),d=R("./_create-property"),l=R("./core.get-iterator-method");g(g.S+g.F*!R("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(i){var t=S(i),o=typeof this=="function"?this:Array,e=arguments.length,u=e>1?arguments[1]:void 0,r=u!==void 0,s=0,c=l(t),h,v,A,b;if(r&&(u=y(u,e>2?arguments[2]:void 0,2)),c!=null&&!(o==Array&&p(c)))for(b=c.call(t),v=new o;!(A=b.next()).done;s++)d(v,s,r?m(b,u,[A.value,s],!0):A.value);else for(h=f(t.length),v=new o(h);h>s;s++)d(v,s,r?u(t[s],s):t[s]);return v.length=s,v}})},{"./_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(R,D,n){"use strict";var y=R("./_add-to-unscopables"),g=R("./_iter-step"),S=R("./_iterators"),m=R("./_to-iobject");D.exports=R("./_iter-define")(Array,"Array",function(p,f){this._t=m(p),this._i=0,this._k=f},function(){var p=this._t,f=this._k,d=this._i++;return!p||d>=p.length?(this._t=void 0,g(1)):f=="keys"?g(0,d):f=="values"?g(0,p[d]):g(0,[d,p[d]])},"values"),S.Arguments=S.Array,y("keys"),y("values"),y("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(R,D,n){"use strict";var y=R("./_is-object"),g=R("./_object-gpo"),S=R("./_wks")("hasInstance"),m=Function.prototype;S in m||R("./_object-dp").f(m,S,{value:function(f){if(typeof this!="function"||!y(f))return!1;if(!y(this.prototype))return f instanceof this;for(;f=g(f);)if(this.prototype===f)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(R,D,n){var y=R("./_export");y(y.S+y.F,"Object",{assign:R("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(R,D,n){var y=R("./_export");y(y.S,"Object",{create:R("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(R,D,n){var y=R("./_export");y(y.S+y.F*!R("./_descriptors"),"Object",{defineProperty:R("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(R,D,n){R("./_object-sap")("getOwnPropertyNames",function(){return R("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(R,D,n){var y=R("./_to-object"),g=R("./_object-gpo");R("./_object-sap")("getPrototypeOf",function(){return function(m){return g(y(m))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(R,D,n){var y=R("./_to-object"),g=R("./_object-keys");R("./_object-sap")("keys",function(){return function(m){return g(y(m))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(R,D,n){arguments[4][71][0].apply(n,arguments)},{dup:71}],178:[function(R,D,n){"use strict";var y=R("./_library"),g=R("./_global"),S=R("./_ctx"),m=R("./_classof"),p=R("./_export"),f=R("./_is-object"),d=R("./_a-function"),l=R("./_an-instance"),a=R("./_for-of"),i=R("./_species-constructor"),t=R("./_task").set,o=R("./_microtask")(),e=R("./_new-promise-capability"),u=R("./_perform"),r=R("./_user-agent"),s=R("./_promise-resolve"),c="Promise",h=g.TypeError,v=g.process,A=v&&v.versions,b=A&&A.v8||"",x=g[c],E=m(v)=="process",T=function(){},_,C,w,O,I=C=e.f,k=!!function(){try{var z=x.resolve(1),V=(z.constructor={})[R("./_wks")("species")]=function(Q){Q(T,T)};return(E||typeof PromiseRejectionEvent=="function")&&z.then(T)instanceof V&&b.indexOf("6.6")!==0&&r.indexOf("Chrome/66")===-1}catch(Q){}}(),M=function(V){var Q;return f(V)&&typeof(Q=V.then)=="function"?Q:!1},U=function(V,Q){if(V._n)return;V._n=!0;var G=V._c;o(function(){for(var te=V._v,q=V._s==1,se=0,re=function(Oe){var Me=q?Oe.ok:Oe.fail,Qe=Oe.resolve,Ve=Oe.reject,dt=Oe.domain,Fe,ue,et;try{Me?(q||(V._h==2&&F(V),V._h=1),Me===!0?Fe=te:(dt&&dt.enter(),Fe=Me(te),dt&&(dt.exit(),et=!0)),Fe===Oe.promise?Ve(h("Promise-chain cycle")):(ue=M(Fe))?ue.call(Fe,Qe,Ve):Qe(Fe)):Ve(te)}catch(he){dt&&!et&&dt.exit(),Ve(he)}};G.length>se;)re(G[se++]);V._c=[],V._n=!1,Q&&!V._h&&P(V)})},P=function(V){t.call(g,function(){var Q=V._v,G=X(V),te,q,se;if(G&&(te=u(function(){E?v.emit("unhandledRejection",Q,V):(q=g.onunhandledrejection)?q({promise:V,reason:Q}):(se=g.console)&&se.error&&se.error("Unhandled promise rejection",Q)}),V._h=E||X(V)?2:1),V._a=void 0,G&&te.e)throw te.v})},X=function(V){return V._h!==1&&(V._a||V._c).length===0},F=function(V){t.call(g,function(){var Q;E?v.emit("rejectionHandled",V):(Q=g.onrejectionhandled)&&Q({promise:V,reason:V._v})})},j=function(V){var Q=this;if(Q._d)return;Q._d=!0,Q=Q._w||Q,Q._v=V,Q._s=2,Q._a||(Q._a=Q._c.slice()),U(Q,!0)},K=function z(V){var Q=this,G;if(Q._d)return;Q._d=!0,Q=Q._w||Q;try{if(Q===V)throw h("Promise can't be resolved itself");(G=M(V))?o(function(){var te={_w:Q,_d:!1};try{G.call(V,S(z,te,1),S(j,te,1))}catch(q){j.call(te,q)}}):(Q._v=V,Q._s=1,U(Q,!1))}catch(te){j.call({_w:Q,_d:!1},te)}};k||(x=function(V){l(this,x,c,"_h"),d(V),_.call(this);try{V(S(K,this,1),S(j,this,1))}catch(Q){j.call(this,Q)}},_=function(V){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},_.prototype=R("./_redefine-all")(x.prototype,{then:function(V,Q){var G=I(i(this,x));return G.ok=typeof V=="function"?V:!0,G.fail=typeof Q=="function"&&Q,G.domain=E?v.domain:void 0,this._c.push(G),this._a&&this._a.push(G),this._s&&U(this,!1),G.promise},catch:function(V){return this.then(void 0,V)}}),w=function(){var V=new _;this.promise=V,this.resolve=S(K,V,1),this.reject=S(j,V,1)},e.f=I=function(V){return V===x||V===O?new w(V):C(V)}),p(p.G+p.W+p.F*!k,{Promise:x}),R("./_set-to-string-tag")(x,c),R("./_set-species")(c),O=R("./_core")[c],p(p.S+p.F*!k,c,{reject:function(V){var Q=I(this),G=Q.reject;return G(V),Q.promise}}),p(p.S+p.F*(y||!k),c,{resolve:function(V){return s(y&&this===O?x:this,V)}}),p(p.S+p.F*!(k&&R("./_iter-detect")(function(z){x.all(z).catch(T)})),c,{all:function(V){var Q=this,G=I(Q),te=G.resolve,q=G.reject,se=u(function(){var re=[],we=0,Oe=1;a(V,!1,function(Me){var Qe=we++,Ve=!1;re.push(void 0),Oe++,Q.resolve(Me).then(function(dt){if(Ve)return;Ve=!0,re[Qe]=dt,--Oe||te(re)},q)}),--Oe||te(re)});return se.e&&q(se.v),G.promise},race:function(V){var Q=this,G=I(Q),te=G.reject,q=u(function(){a(V,!1,function(se){Q.resolve(se).then(G.resolve,te)})});return q.e&&te(q.v),G.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(R,D,n){var y=R("./_export"),g=R("./_to-absolute-index"),S=String.fromCharCode,m=String.fromCodePoint;y(y.S+y.F*(!!m&&m.length!=1),"String",{fromCodePoint:function(f){for(var d=[],l=arguments.length,a=0,i;l>a;){if(i=+arguments[a++],g(i,1114111)!==i)throw RangeError(i+" is not a valid code point");d.push(i<65536?S(i):S(((i-=65536)>>10)+55296,i%1024+56320))}return d.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(R,D,n){"use strict";var y=R("./_string-at")(!0);R("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g=this._t,S=this._i,m;return S>=g.length?{value:void 0,done:!0}:(m=y(g,S),this._i+=m.length,{value:m,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(R,D,n){"use strict";var y=R("./_global"),g=R("./_has"),S=R("./_descriptors"),m=R("./_export"),p=R("./_redefine"),f=R("./_meta").KEY,d=R("./_fails"),l=R("./_shared"),a=R("./_set-to-string-tag"),i=R("./_uid"),t=R("./_wks"),o=R("./_wks-ext"),e=R("./_wks-define"),u=R("./_enum-keys"),r=R("./_is-array"),s=R("./_an-object"),c=R("./_is-object"),h=R("./_to-object"),v=R("./_to-iobject"),A=R("./_to-primitive"),b=R("./_property-desc"),x=R("./_object-create"),E=R("./_object-gopn-ext"),T=R("./_object-gopd"),_=R("./_object-gops"),C=R("./_object-dp"),w=R("./_object-keys"),O=T.f,I=C.f,k=E.f,M=y.Symbol,U=y.JSON,P=U&&U.stringify,X="prototype",F=t("_hidden"),j=t("toPrimitive"),K={}.propertyIsEnumerable,z=l("symbol-registry"),V=l("symbols"),Q=l("op-symbols"),G=Object[X],te=typeof M=="function"&&!!_.f,q=y.QObject,se=!q||!q[X]||!q[X].findChild,re=S&&d(function(){return x(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(be,Te,Be){var fe=O(G,Te);fe&&delete G[Te],I(be,Te,Be),fe&&be!==G&&I(G,Te,fe)}:I,we=function(Te){var Be=V[Te]=x(M[X]);return Be._k=Te,Be},Oe=te&&typeof M.iterator=="symbol"?function(be){return typeof be=="symbol"}:function(be){return be instanceof M},Me=function(Te,Be,fe){return Te===G&&Me(Q,Be,fe),s(Te),Be=A(Be,!0),s(fe),g(V,Be)?(fe.enumerable?(g(Te,F)&&Te[F][Be]&&(Te[F][Be]=!1),fe=x(fe,{enumerable:b(0,!1)})):(g(Te,F)||I(Te,F,b(1,{})),Te[F][Be]=!0),re(Te,Be,fe)):I(Te,Be,fe)},Qe=function(Te,Be){s(Te);for(var fe=u(Be=v(Be)),xe=0,ke=fe.length,nt;ke>xe;)Me(Te,nt=fe[xe++],Be[nt]);return Te},Ve=function(Te,Be){return Be===void 0?x(Te):Qe(x(Te),Be)},dt=function(Te){var Be=K.call(this,Te=A(Te,!0));return this===G&&g(V,Te)&&!g(Q,Te)?!1:Be||!g(this,Te)||!g(V,Te)||g(this,F)&&this[F][Te]?Be:!0},Fe=function(Te,Be){if(Te=v(Te),Be=A(Be,!0),Te===G&&g(V,Be)&&!g(Q,Be))return;var fe=O(Te,Be);return fe&&g(V,Be)&&!(g(Te,F)&&Te[F][Be])&&(fe.enumerable=!0),fe},ue=function(Te){for(var Be=k(v(Te)),fe=[],xe=0,ke;Be.length>xe;)!g(V,ke=Be[xe++])&&ke!=F&&ke!=f&&fe.push(ke);return fe},et=function(Te){for(var Be=Te===G,fe=k(Be?Q:v(Te)),xe=[],ke=0,nt;fe.length>ke;)g(V,nt=fe[ke++])&&(Be?g(G,nt):!0)&&xe.push(V[nt]);return xe};te||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var Te=i(arguments.length>0?arguments[0]:void 0),Be=function fe(xe){this===G&&fe.call(Q,xe),g(this,F)&&g(this[F],Te)&&(this[F][Te]=!1),re(this,Te,b(1,xe))};return S&&se&&re(G,Te,{configurable:!0,set:Be}),we(Te)},p(M[X],"toString",function(){return this._k}),T.f=Fe,C.f=Me,R("./_object-gopn").f=E.f=ue,R("./_object-pie").f=dt,_.f=et,S&&!R("./_library")&&p(G,"propertyIsEnumerable",dt,!0),o.f=function(be){return we(t(be))}),m(m.G+m.W+m.F*!te,{Symbol:M});for(var he="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),J=0;he.length>J;)t(he[J++]);for(var Y=w(t.store),$=0;Y.length>$;)e(Y[$++]);m(m.S+m.F*!te,"Symbol",{for:function(Te){return g(z,Te+="")?z[Te]:z[Te]=M(Te)},keyFor:function(Te){if(!Oe(Te))throw TypeError(Te+" is not a symbol!");for(var Be in z)if(z[Be]===Te)return Be},useSetter:function(){se=!0},useSimple:function(){se=!1}}),m(m.S+m.F*!te,"Object",{create:Ve,defineProperty:Me,defineProperties:Qe,getOwnPropertyDescriptor:Fe,getOwnPropertyNames:ue,getOwnPropertySymbols:et});var de=d(function(){_.f(1)});m(m.S+m.F*de,"Object",{getOwnPropertySymbols:function(Te){return _.f(h(Te))}}),U&&m(m.S+m.F*(!te||d(function(){var be=M();return P([be])!="[null]"||P({a:be})!="{}"||P(Object(be))!="{}"})),"JSON",{stringify:function(Te){for(var Be=[Te],fe=1,xe,ke;arguments.length>fe;)Be.push(arguments[fe++]);return ke=xe=Be[1],!c(xe)&&Te===void 0||Oe(Te)?void 0:(r(xe)||(xe=function(Ct,pt){if(typeof ke=="function"&&(pt=ke.call(this,Ct,pt)),!Oe(pt))return pt}),Be[1]=xe,P.apply(U,Be))}}),M[X][j]||R("./_hide")(M[X],j,M[X].valueOf),a(M,"Symbol"),a(Math,"Math",!0),a(y.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(R,D,n){var y=R("./_export"),g=R("./_object-to-array")(!0);y(y.S,"Object",{entries:function(m){return g(m)}})},{"./_export":107,"./_object-to-array":143}],183:[function(R,D,n){"use strict";var y=R("./_export"),g=R("./_core"),S=R("./_global"),m=R("./_species-constructor"),p=R("./_promise-resolve");y(y.P+y.R,"Promise",{finally:function(d){var l=m(this,g.Promise||S.Promise),a=typeof d=="function";return this.then(a?function(i){return p(l,d()).then(function(){return i})}:d,a?function(i){return p(l,d()).then(function(){throw i})}:d)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(R,D,n){"use strict";var y=R("./_export"),g=R("./_new-promise-capability"),S=R("./_perform");y(y.S,"Promise",{try:function(p){var f=g.f(this),d=S(p);return(d.e?f.reject:f.resolve)(d.v),f.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(R,D,n){R("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(R,D,n){R("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(R,D,n){R("./es6.array.iterator");for(var y=R("./_global"),g=R("./_hide"),S=R("./_iterators"),m=R("./_wks")("toStringTag"),p="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(","),f=0;f<p.length;f++){var d=p[f],l=y[d],a=l&&l.prototype;a&&!a[m]&&g(a,m,d),S[d]=S.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(R,D,n){var y=R("./_export"),g=R("./_task");y(y.G+y.B,{setImmediate:g.set,clearImmediate:g.clear})},{"./_export":107,"./_task":155}],189:[function(R,D,n){(function(y){"use strict";var g=R("babel-runtime/helpers/typeof"),S=m(g);function m(A){return A&&A.__esModule?A:{default:A}}function p(A){return Array.isArray?Array.isArray(A):v(A)==="[object Array]"}n.isArray=p;function f(A){return typeof A=="boolean"}n.isBoolean=f;function d(A){return A===null}n.isNull=d;function l(A){return A==null}n.isNullOrUndefined=l;function a(A){return typeof A=="number"}n.isNumber=a;function i(A){return typeof A=="string"}n.isString=i;function t(A){return(typeof A=="undefined"?"undefined":(0,S.default)(A))==="symbol"}n.isSymbol=t;function o(A){return A===void 0}n.isUndefined=o;function e(A){return v(A)==="[object RegExp]"}n.isRegExp=e;function u(A){return(typeof A=="undefined"?"undefined":(0,S.default)(A))==="object"&&A!==null}n.isObject=u;function r(A){return v(A)==="[object Date]"}n.isDate=r;function s(A){return v(A)==="[object Error]"||A instanceof Error}n.isError=s;function c(A){return typeof A=="function"}n.isFunction=c;function h(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||(typeof A=="undefined"?"undefined":(0,S.default)(A))==="symbol"||typeof A=="undefined"}n.isPrimitive=h,n.isBuffer=y.isBuffer;function v(A){return Object.prototype.toString.call(A)}}).call(this,{isBuffer:R("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(R,D,n){"use strict";var y=R("babel-runtime/helpers/typeof"),g=S(y);function S(m){return m&&m.__esModule?m:{default:m}}(function(m){"use strict";var p=function(){var i=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,o=/[^-+\dA-Z]/g;return function(e,u,r,s){if(arguments.length===1&&a(e)==="string"&&!/\d/.test(e)&&(u=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");u=String(p.masks[u]||u||p.masks.default);var c=u.slice(0,4);(c==="UTC:"||c==="GMT:")&&(u=u.slice(4),r=!0,c==="GMT:"&&(s=!0));var h=r?"getUTC":"get",v=e[h+"Date"](),A=e[h+"Day"](),b=e[h+"Month"](),x=e[h+"FullYear"](),E=e[h+"Hours"](),T=e[h+"Minutes"](),_=e[h+"Seconds"](),C=e[h+"Milliseconds"](),w=r?0:e.getTimezoneOffset(),O=d(e),I=l(e),k={d:v,dd:f(v),ddd:p.i18n.dayNames[A],dddd:p.i18n.dayNames[A+7],m:b+1,mm:f(b+1),mmm:p.i18n.monthNames[b],mmmm:p.i18n.monthNames[b+12],yy:String(x).slice(2),yyyy:x,h:E%12||12,hh:f(E%12||12),H:E,HH:f(E),M:T,MM:f(T),s:_,ss:f(_),l:f(C,3),L:f(Math.round(C/10)),t:E<12?"a":"p",tt:E<12?"am":"pm",T:E<12?"A":"P",TT:E<12?"AM":"PM",Z:s?"GMT":r?"UTC":(String(e).match(t)||[""]).pop().replace(o,""),o:(w>0?"-":"+")+f(Math.floor(Math.abs(w)/60)*100+Math.abs(w)%60,4),S:["th","st","nd","rd"][v%10>3?0:(v%100-v%10!=10)*v%10],W:O,N:I};return u.replace(i,function(M){return M in k?k[M]:M.slice(1,M.length-1)})}}();p.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"},p.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 f(i,t){for(i=String(i),t=t||2;i.length<t;)i="0"+i;return i}function d(i){var t=new Date(i.getFullYear(),i.getMonth(),i.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var o=new Date(t.getFullYear(),0,4);o.setDate(o.getDate()-(o.getDay()+6)%7+3);var e=t.getTimezoneOffset()-o.getTimezoneOffset();t.setHours(t.getHours()-e);var u=(t-o)/(864e5*7);return 1+Math.floor(u)}function l(i){var t=i.getDay();return t===0&&(t=7),t}function a(i){return i===null?"null":i===void 0?"undefined":(typeof i=="undefined"?"undefined":(0,g.default)(i))!=="object"?typeof i=="undefined"?"undefined":(0,g.default)(i):Array.isArray(i)?"array":{}.toString.call(i).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return p}):(typeof n=="undefined"?"undefined":(0,g.default)(n))==="object"?D.exports=p:m.dateFormat=p})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(R,D,n){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var y=/["'&<>]/;D.exports=g;function g(S){var m=""+S,p=y.exec(m);if(!p)return m;var f,d="",l=0,a=0;for(l=p.index;l<m.length;l++){switch(m.charCodeAt(l)){case 34:f="&quot;";break;case 38:f="&amp;";break;case 39:f="&#39;";break;case 60:f="&lt;";break;case 62:f="&gt;";break;default:continue}a!==l&&(d+=m.substring(a,l)),a=l+1,d+=f}return a!==l?d+m.substring(a,l):d}},{}],192:[function(R,D,n){function y(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}D.exports=y,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._maxListeners=void 0,y.defaultMaxListeners=10,y.prototype.setMaxListeners=function(f){if(!S(f)||f<0||isNaN(f))throw TypeError("n must be a positive number");return this._maxListeners=f,this},y.prototype.emit=function(f){var d,l,a,i,t,o;if(this._events||(this._events={}),f==="error"&&(!this._events.error||m(this._events.error)&&!this._events.error.length)){if(d=arguments[1],d instanceof Error)throw d;var e=new Error('Uncaught, unspecified "error" event. ('+d+")");throw e.context=d,e}if(l=this._events[f],p(l))return!1;if(g(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),l.apply(this,i)}else if(m(l))for(i=Array.prototype.slice.call(arguments,1),o=l.slice(),a=o.length,t=0;t<a;t++)o[t].apply(this,i);return!0},y.prototype.addListener=function(f,d){var l;if(!g(d))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",f,g(d.listener)?d.listener:d),this._events[f]?m(this._events[f])?this._events[f].push(d):this._events[f]=[this._events[f],d]:this._events[f]=d,m(this._events[f])&&!this._events[f].warned&&(p(this._maxListeners)?l=y.defaultMaxListeners:l=this._maxListeners,l&&l>0&&this._events[f].length>l&&(this._events[f].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[f].length),typeof console.trace=="function"&&console.trace())),this},y.prototype.on=y.prototype.addListener,y.prototype.once=function(f,d){if(!g(d))throw TypeError("listener must be a function");var l=!1;function a(){this.removeListener(f,a),l||(l=!0,d.apply(this,arguments))}return a.listener=d,this.on(f,a),this},y.prototype.removeListener=function(f,d){var l,a,i,t;if(!g(d))throw TypeError("listener must be a function");if(!this._events||!this._events[f])return this;if(l=this._events[f],i=l.length,a=-1,l===d||g(l.listener)&&l.listener===d)delete this._events[f],this._events.removeListener&&this.emit("removeListener",f,d);else if(m(l)){for(t=i;t-- >0;)if(l[t]===d||l[t].listener&&l[t].listener===d){a=t;break}if(a<0)return this;l.length===1?(l.length=0,delete this._events[f]):l.splice(a,1),this._events.removeListener&&this.emit("removeListener",f,d)}return this},y.prototype.removeAllListeners=function(f){var d,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[f]&&delete this._events[f],this;if(arguments.length===0){for(d in this._events){if(d==="removeListener")continue;this.removeAllListeners(d)}return this.removeAllListeners("removeListener"),this._events={},this}if(l=this._events[f],g(l))this.removeListener(f,l);else if(l)for(;l.length;)this.removeListener(f,l[l.length-1]);return delete this._events[f],this},y.prototype.listeners=function(f){var d;return!this._events||!this._events[f]?d=[]:g(this._events[f])?d=[this._events[f]]:d=this._events[f].slice(),d},y.prototype.listenerCount=function(f){if(this._events){var d=this._events[f];if(g(d))return 1;if(d)return d.length}return 0},y.listenerCount=function(f,d){return f.listenerCount(d)};function g(f){return typeof f=="function"}function S(f){return typeof f=="number"}function m(f){return typeof f=="object"&&f!==null}function p(f){return f===void 0}},{}],193:[function(R,D,n){var y=R("http"),g=D.exports;for(var S in y)y.hasOwnProperty(S)&&(g[S]=y[S]);g.request=function(m,p){return m||(m={}),m.scheme="https",m.protocol="https:",y.request.call(this,m,p)}},{http:231}],194:[function(R,D,n){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var y=R("util"),g=R("ms");D.exports=function(S){if(typeof S=="number")return S;var m=g(S);if(m===void 0){var p=new Error(y.format("humanize-ms(%j) result undefined",S));console.warn(p.stack)}return m}},{ms:204,util:243}],195:[function(R,D,n){n.read=function(y,g,S,m,p){var f,d,l=p*8-m-1,a=(1<<l)-1,i=a>>1,t=-7,o=S?p-1:0,e=S?-1:1,u=y[g+o];for(o+=e,f=u&(1<<-t)-1,u>>=-t,t+=l;t>0;f=f*256+y[g+o],o+=e,t-=8);for(d=f&(1<<-t)-1,f>>=-t,t+=m;t>0;d=d*256+y[g+o],o+=e,t-=8);if(f===0)f=1-i;else{if(f===a)return d?NaN:(u?-1:1)*Infinity;d=d+Math.pow(2,m),f=f-i}return(u?-1:1)*d*Math.pow(2,f-m)},n.write=function(y,g,S,m,p,f){var d,l,a,i=f*8-p-1,t=(1<<i)-1,o=t>>1,e=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=m?0:f-1,r=m?1:-1,s=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===Infinity?(l=isNaN(g)?1:0,d=t):(d=Math.floor(Math.log(g)/Math.LN2),g*(a=Math.pow(2,-d))<1&&(d--,a*=2),d+o>=1?g+=e/a:g+=e*Math.pow(2,1-o),g*a>=2&&(d++,a/=2),d+o>=t?(l=0,d=t):d+o>=1?(l=(g*a-1)*Math.pow(2,p),d=d+o):(l=g*Math.pow(2,o-1)*Math.pow(2,p),d=0));p>=8;y[S+u]=l&255,u+=r,l/=256,p-=8);for(d=d<<p|l,i+=p;i>0;y[S+u]=d&255,u+=r,d/=256,i-=8);y[S+u-r]|=s*128}},{}],196:[function(R,D,n){typeof Object.create=="function"?D.exports=function(g,S){S&&(g.super_=S,g.prototype=Object.create(S.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}))}:D.exports=function(g,S){if(S){g.super_=S;var m=function(){};m.prototype=S.prototype,g.prototype=new m,g.prototype.constructor=g}}},{}],197:[function(R,D,n){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/D.exports=function(S){return S!=null&&(y(S)||g(S)||!!S._isBuffer)};function y(S){return!!S.constructor&&typeof S.constructor.isBuffer=="function"&&S.constructor.isBuffer(S)}function g(S){return typeof S.readFloatLE=="function"&&typeof S.slice=="function"&&y(S.slice(0,0))}},{}],198:[function(R,D,n){var y={}.toString;D.exports=Array.isArray||function(g){return y.call(g)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(R,D){typeof exports=="object"&&typeof module!="undefined"?module.exports=D(R):typeof define=="function"&&define.amd?define(D):D(R)})(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(R){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(R){for(var D={},n=0,y=R.length;n<y;n++)D[R.charAt(n)]=n;return D}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(D){if(D.length<2){var n=D.charCodeAt(0);return n<128?D:n<2048?fromCharCode(192|n>>>6)+fromCharCode(128|n&63):fromCharCode(224|n>>>12&15)+fromCharCode(128|n>>>6&63)+fromCharCode(128|n&63)}else{var n=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return fromCharCode(240|n>>>18&7)+fromCharCode(128|n>>>12&63)+fromCharCode(128|n>>>6&63)+fromCharCode(128|n&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(D){return D.replace(re_utob,cb_utob)},cb_encode=function(D){var n=[0,2,1][D.length%3],y=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),g=[b64chars.charAt(y>>>18),b64chars.charAt(y>>>12&63),n>=2?"=":b64chars.charAt(y>>>6&63),n>=1?"=":b64chars.charAt(y&63)];return g.join("")},btoa=global.btoa?function(R){return global.btoa(R)}:function(R){return R.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(D){var n=Object.prototype.toString.call(D)==="[object Uint8Array]";return n?D.toString("base64"):btoa(utob(String(D)))},encode=function(D,n){return n?_encode(String(D)).replace(/[+\/]/g,function(y){return y=="+"?"-":"_"}).replace(/=/g,""):_encode(D)},encodeURI=function(D){return encode(D,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(D){switch(D.length){case 4:var n=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),y=n-65536;return fromCharCode((y>>>10)+55296)+fromCharCode((y&1023)+56320);case 3:return fromCharCode((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return fromCharCode((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},btou=function(D){return D.replace(re_btou,cb_btou)},cb_decode=function(D){var n=D.length,y=n%4,g=(n>0?b64tab[D.charAt(0)]<<18:0)|(n>1?b64tab[D.charAt(1)]<<12:0)|(n>2?b64tab[D.charAt(2)]<<6:0)|(n>3?b64tab[D.charAt(3)]:0),S=[fromCharCode(g>>>16),fromCharCode(g>>>8&255),fromCharCode(g&255)];return S.length-=[0,0,2,1][y],S.join("")},_atob=global.atob?function(R){return global.atob(R)}:function(R){return R.replace(/\S{1,4}/g,cb_decode)},atob=function(D){return _atob(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(R){return(R.constructor===buffer.constructor?R:buffer.from(R,"base64")).toString()}:function(R){return(R.constructor===buffer.constructor?R:new buffer(R,"base64")).toString()}:function(R){return btou(_atob(R))},decode=function(D){return _decode(String(D).replace(/[-_]/g,function(n){return n=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var D=global.Base64;return global.Base64=_Base64,D};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(D){return{value:D,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(R){return encode(this,R)})),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(R,D,n){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";D.exports=g;var y=Object.prototype.hasOwnProperty;function g(S,m,p){if(!S)throw new TypeError("argument dest is required");if(!m)throw new TypeError("argument src is required");return p===void 0&&(p=!0),Object.getOwnPropertyNames(m).forEach(function(d){if(!p&&y.call(S,d))return;var l=Object.getOwnPropertyDescriptor(m,d);Object.defineProperty(S,d,l)}),S}},{}],201:[function(R,D,n){"use strict";function y(){this._types=Object.create(null),this._extensions=Object.create(null);for(var g=0;g<arguments.length;g++)this.define(arguments[g]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}y.prototype.define=function(g,S){for(var m in g){var p=g[m].map(function(l){return l.toLowerCase()});m=m.toLowerCase();for(var f=0;f<p.length;f++){var d=p[f];if(d[0]=="*")continue;if(!S&&d in this._types)throw new Error('Attempt to change mapping for "'+d+'" extension from "'+this._types[d]+'" to "'+m+'". Pass `force=true` to allow this, otherwise remove "'+d+'" from the list of extensions for "'+m+'".');this._types[d]=m}if(S||!this._extensions[m]){var d=p[0];this._extensions[m]=d[0]!="*"?d:d.substr(1)}}},y.prototype.getType=function(g){g=String(g);var S=g.replace(/^.*[/\\]/,"").toLowerCase(),m=S.replace(/^.*\./,"").toLowerCase(),p=S.length<g.length,f=m.length<S.length-1;return(f||!p)&&this._types[m]||null},y.prototype.getExtension=function(g){return g=/^\s*([^;\s]*)/.test(g)&&RegExp.$1,g&&this._extensions[g.toLowerCase()]||null},D.exports=y},{}],202:[function(R,D,n){"use strict";var y=R("./Mime");D.exports=new y(R("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(R,D,n){D.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(R,D,n){var y=1e3,g=y*60,S=g*60,m=S*24,p=m*7,f=m*365.25;D.exports=function(t,o){o=o||{};var e=typeof t;if(e==="string"&&t.length>0)return d(t);if(e==="number"&&isFinite(t))return o.long?a(t):l(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function d(t){if(t=String(t),t.length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!o)return;var e=parseFloat(o[1]),u=(o[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return e*f;case"weeks":case"week":case"w":return e*p;case"days":case"day":case"d":return e*m;case"hours":case"hour":case"hrs":case"hr":case"h":return e*S;case"minutes":case"minute":case"mins":case"min":case"m":return e*g;case"seconds":case"second":case"secs":case"sec":case"s":return e*y;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}function l(t){var o=Math.abs(t);return o>=m?Math.round(t/m)+"d":o>=S?Math.round(t/S)+"h":o>=g?Math.round(t/g)+"m":o>=y?Math.round(t/y)+"s":t+"ms"}function a(t){var o=Math.abs(t);return o>=m?i(t,o,m,"day"):o>=S?i(t,o,S,"hour"):o>=g?i(t,o,g,"minute"):o>=y?i(t,o,y,"second"):t+" ms"}function i(t,o,e,u){var r=o>=e*1.5;return Math.round(t/e)+" "+u+(r?"s":"")}},{}],205:[function(R,D,n){(function(y){function g(f,d){for(var l=0,a=f.length-1;a>=0;a--){var i=f[a];i==="."?f.splice(a,1):i===".."?(f.splice(a,1),l++):l&&(f.splice(a,1),l--)}if(d)for(;l--;l)f.unshift("..");return f}n.resolve=function(){for(var f="",d=!1,l=arguments.length-1;l>=-1&&!d;l--){var a=l>=0?arguments[l]:y.cwd();if(typeof a!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!a)continue;f=a+"/"+f,d=a.charAt(0)==="/"}return f=g(m(f.split("/"),function(i){return!!i}),!d).join("/"),(d?"/":"")+f||"."},n.normalize=function(f){var d=n.isAbsolute(f),l=p(f,-1)==="/";return f=g(m(f.split("/"),function(a){return!!a}),!d).join("/"),!f&&!d&&(f="."),f&&l&&(f+="/"),(d?"/":"")+f},n.isAbsolute=function(f){return f.charAt(0)==="/"},n.join=function(){var f=Array.prototype.slice.call(arguments,0);return n.normalize(m(f,function(d,l){if(typeof d!="string")throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))},n.relative=function(f,d){f=n.resolve(f).substr(1),d=n.resolve(d).substr(1);function l(r){for(var s=0;s<r.length&&!(r[s]!=="");s++);for(var c=r.length-1;c>=0&&!(r[c]!=="");c--);return s>c?[]:r.slice(s,c-s+1)}for(var a=l(f.split("/")),i=l(d.split("/")),t=Math.min(a.length,i.length),o=t,e=0;e<t;e++)if(a[e]!==i[e]){o=e;break}for(var u=[],e=o;e<a.length;e++)u.push("..");return u=u.concat(i.slice(o)),u.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(f){if(typeof f!="string"&&(f=f+""),f.length===0)return".";for(var d=f.charCodeAt(0),l=d===47,a=-1,i=!0,t=f.length-1;t>=1;--t)if(d=f.charCodeAt(t),d===47){if(!i){a=t;break}}else i=!1;return a===-1?l?"/":".":l&&a===1?"/":f.slice(0,a)};function S(f){typeof f!="string"&&(f=f+"");var d=0,l=-1,a=!0,i;for(i=f.length-1;i>=0;--i)if(f.charCodeAt(i)===47){if(!a){d=i+1;break}}else l===-1&&(a=!1,l=i+1);return l===-1?"":f.slice(d,l)}n.basename=function(f,d){var l=S(f);return d&&l.substr(-1*d.length)===d&&(l=l.substr(0,l.length-d.length)),l},n.extname=function(f){typeof f!="string"&&(f=f+"");for(var d=-1,l=0,a=-1,i=!0,t=0,o=f.length-1;o>=0;--o){var e=f.charCodeAt(o);if(e===47){if(!i){l=o+1;break}continue}a===-1&&(i=!1,a=o+1),e===46?d===-1?d=o:t!==1&&(t=1):d!==-1&&(t=-1)}return d===-1||a===-1||t===0||t===1&&d===a-1&&d===l+1?"":f.slice(d,a)};function m(f,d){if(f.filter)return f.filter(d);for(var l=[],a=0;a<f.length;a++)d(f[a],a,f)&&l.push(f[a]);return l}var p="ab".substr(-1)==="b"?function(f,d,l){return f.substr(d,l)}:function(f,d,l){return d<0&&(d=f.length+d),f.substr(d,l)}}).call(this,R("_process"))},{_process:208}],206:[function(R,D,n){(function(y){/*!
* 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 g={function:!0,object:!0},S=g[typeof window]&&window||this,m=S,p=g[typeof n]&&n,f=g[typeof D]&&D&&!D.nodeType&&D,d=p&&f&&typeof y=="object"&&y;d&&(d.global===d||d.window===d||d.self===d)&&(S=d);var l=Math.pow(2,53)-1,a=/\bOpera/,i=this,t=Object.prototype,o=t.hasOwnProperty,e=t.toString;function u(C){return C=String(C),C.charAt(0).toUpperCase()+C.slice(1)}function r(C,w,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 w&&O&&/^Win/i.test(C)&&!/^Windows Phone /i.test(C)&&(I=I[/[\d.]+$/.exec(C)])&&(C="Windows "+I),C=String(C),w&&O&&(C=C.replace(RegExp(w,"i"),O)),C=c(C.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]),C}function s(C,w){var O=-1,I=C?C.length:0;if(typeof I=="number"&&I>-1&&I<=l)for(;++O<I;)w(C[O],O,C);else h(C,w)}function c(C){return C=E(C),/^(?:webOS|i(?:OS|P))/.test(C)?C:u(C)}function h(C,w){for(var O in C)o.call(C,O)&&w(C[O],O,C)}function v(C){return C==null?u(C):e.call(C).slice(8,-1)}function A(C,w){var O=C!=null?typeof C[w]:"number";return!/^(?:boolean|number|string|undefined)$/.test(O)&&(O=="object"?!!C[w]:!0)}function b(C){return String(C).replace(/([ -])(?!$)/g,"$1?")}function x(C,w){var O=null;return s(C,function(I,k){O=w(O,I,k,C)}),O}function E(C){return String(C).replace(/^ +| +$/g,"")}function T(C){var w=S,O=C&&typeof C=="object"&&v(C)!="String";O&&(w=C,C=null);var I=w.navigator||{},k=I.userAgent||"";C||(C=k);var M=O||i==m,U=O?!!I.likeChrome:/\bChrome\b/.test(C)&&!/internal|\n/i.test(e.toString()),P="Object",X=O?P:"ScriptBridgingProxyObject",F=O?P:"Environment",j=O&&w.java?"JavaPackage":v(w.java),K=O?P:"RuntimeObject",z=/\bJava/.test(j)&&w.java,V=z&&v(w.environment)==F,Q=z?"a":"\u03B1",G=z?"b":"\u03B2",te=w.document||{},q=w.operamini||w.opera,se=a.test(se=O&&q?q["[[Class]]"]:v(q))?se:q=null,re,we=C,Oe=[],Me=null,Qe=C==k,Ve=Qe&&q&&typeof q.version=="function"&&q.version(),dt,Fe=Y([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ue=de(["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"]),et=Te([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),he=$({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}}),J=be(["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 Y(ke){return x(ke,function(nt,Ct){return nt||RegExp("\\b"+(Ct.pattern||b(Ct))+"\\b","i").exec(C)&&(Ct.label||Ct)})}function $(ke){return x(ke,function(nt,Ct,pt){return nt||(Ct[et]||Ct[/^[a-z]+(?: +[a-z]+\b)*/i.exec(et)]||RegExp("\\b"+b(pt)+"(?:\\b|\\w*\\d)","i").exec(C))&&pt})}function de(ke){return x(ke,function(nt,Ct){return nt||RegExp("\\b"+(Ct.pattern||b(Ct))+"\\b","i").exec(C)&&(Ct.label||Ct)})}function be(ke){return x(ke,function(nt,Ct){var pt=Ct.pattern||b(Ct);return!nt&&(nt=RegExp("\\b"+pt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(C))&&(nt=r(nt,pt,Ct.label||Ct)),nt})}function Te(ke){return x(ke,function(nt,Ct){var pt=Ct.pattern||b(Ct);return!nt&&(nt=RegExp("\\b"+pt+" *\\d+[.\\w_]*","i").exec(C)||RegExp("\\b"+pt+" *\\w+-[\\w]*","i").exec(C)||RegExp("\\b"+pt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(C))&&((nt=String(Ct.label&&!RegExp(pt,"i").test(Ct.label)?Ct.label:nt).split("/"))[1]&&!/[\d.]+/.test(nt[0])&&(nt[0]+=" "+nt[1]),Ct=Ct.label||Ct,nt=c(nt[0].replace(RegExp(pt,"i"),Ct).replace(RegExp("; *(?:"+Ct+"[_-])?","i")," ").replace(RegExp("("+Ct+")[-_.]?(\\w)","i"),"$1 $2"))),nt})}function Be(ke){return x(ke,function(nt,Ct){return nt||(RegExp(Ct+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(C)||0)[1]||null})}function fe(){return this.description||""}if(Fe&&(Fe=[Fe]),he&&!et&&(et=Te([he])),(re=/\bGoogle TV\b/.exec(et))&&(et=re[0]),/\bSimulator\b/i.test(C)&&(et=(et?et+" ":"")+"Simulator"),ue=="Opera Mini"&&/\bOPiOS\b/.test(C)&&Oe.push("running in Turbo/Uncompressed mode"),ue=="IE"&&/\blike iPhone OS\b/.test(C)?(re=T(C.replace(/like iPhone OS/,"")),he=re.manufacturer,et=re.product):/^iP/.test(et)?(ue||(ue="Safari"),J="iOS"+((re=/ OS ([\d_]+)/i.exec(C))?" "+re[1].replace(/_/g,"."):"")):ue=="Konqueror"&&!/buntu/i.test(J)?J="Kubuntu":he&&he!="Google"&&(/Chrome/.test(ue)&&!/\bMobile Safari\b/i.test(C)||/\bVita\b/.test(et))||/\bAndroid\b/.test(J)&&/^Chrome/.test(ue)&&/\bVersion\//i.test(C)?(ue="Android Browser",J=/\bAndroid\b/.test(J)?J:"Android"):ue=="Silk"?(/\bMobi/i.test(C)||(J="Android",Oe.unshift("desktop mode")),/Accelerated *= *true/i.test(C)&&Oe.unshift("accelerated")):ue=="PaleMoon"&&(re=/\bFirefox\/([\d.]+)\b/.exec(C))?Oe.push("identifying as Firefox "+re[1]):ue=="Firefox"&&(re=/\b(Mobile|Tablet|TV)\b/i.exec(C))?(J||(J="Firefox OS"),et||(et=re[1])):!ue||(re=!/\bMinefield\b/i.test(C)&&/\b(?:Firefox|Safari)\b/.exec(ue))?(ue&&!et&&/[\/,]|^[^(]+?\)/.test(C.slice(C.indexOf(re+"/")+8))&&(ue=null),(re=et||he||J)&&(et||he||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(J))&&(ue=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(J)?J:re)+" Browser")):ue=="Electron"&&(re=(/\bChrome\/([\d.]+)\b/.exec(C)||0)[1])&&Oe.push("Chromium "+re),Ve||(Ve=Be(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",b(ue),"(?:Firefox|Minefield|NetFront)"])),(re=Fe=="iCab"&&parseFloat(Ve)>3&&"WebKit"||/\bOpera\b/.test(ue)&&(/\bOPR\b/.test(C)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(C)&&!/^(?:Trident|EdgeHTML)$/.test(Fe)&&"WebKit"||!Fe&&/\bMSIE\b/i.test(C)&&(J=="Mac OS"?"Tasman":"Trident")||Fe=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ue)&&"NetFront")&&(Fe=[re]),ue=="IE"&&(re=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(C)||0)[1])?(ue+=" Mobile",J="Windows Phone "+(/\+$/.test(re)?re:re+".x"),Oe.unshift("desktop mode")):/\bWPDesktop\b/i.test(C)?(ue="IE Mobile",J="Windows Phone 8.x",Oe.unshift("desktop mode"),Ve||(Ve=(/\brv:([\d.]+)/.exec(C)||0)[1])):ue!="IE"&&Fe=="Trident"&&(re=/\brv:([\d.]+)/.exec(C))&&(ue&&Oe.push("identifying as "+ue+(Ve?" "+Ve:"")),ue="IE",Ve=re[1]),Qe){if(A(w,"global"))if(z&&(re=z.lang.System,we=re.getProperty("os.arch"),J=J||re.getProperty("os.name")+" "+re.getProperty("os.version")),V){try{Ve=w.require("ringo/engine").version.join("."),ue="RingoJS"}catch(ke){(re=w.system)&&re.global.system==w.system&&(ue="Narwhal",J||(J=re[0].os||null))}ue||(ue="Rhino")}else typeof w.process=="object"&&!w.process.browser&&(re=w.process)&&(typeof re.versions=="object"&&(typeof re.versions.electron=="string"?(Oe.push("Node "+re.versions.node),ue="Electron",Ve=re.versions.electron):typeof re.versions.nw=="string"&&(Oe.push("Chromium "+Ve,"Node "+re.versions.node),ue="NW.js",Ve=re.versions.nw)),ue||(ue="Node.js",we=re.arch,J=re.platform,Ve=/[\d.]+/.exec(re.version),Ve=Ve?Ve[0]:null));else v(re=w.runtime)==X?(ue="Adobe AIR",J=re.flash.system.Capabilities.os):v(re=w.phantom)==K?(ue="PhantomJS",Ve=(re=re.version||null)&&re.major+"."+re.minor+"."+re.patch):typeof te.documentMode=="number"&&(re=/\bTrident\/(\d+)/i.exec(C))?(Ve=[Ve,te.documentMode],(re=+re[1]+4)!=Ve[1]&&(Oe.push("IE "+Ve[1]+" mode"),Fe&&(Fe[1]=""),Ve[1]=re),Ve=ue=="IE"?String(Ve[1].toFixed(1)):Ve[0]):typeof te.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ue)&&(Oe.push("masking as "+ue+" "+Ve),ue="IE",Ve="11.0",Fe=["Trident"],J="Windows");J=J&&c(J)}if(Ve&&(re=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ve)||/(?:alpha|beta)(?: ?\d)?/i.exec(C+";"+(Qe&&I.appMinorVersion))||/\bMinefield\b/i.test(C)&&"a")&&(Me=/b/i.test(re)?"beta":"alpha",Ve=Ve.replace(RegExp(re+"\\+?$"),"")+(Me=="beta"?G:Q)+(/\d+\+?/.exec(re)||"")),ue=="Fennec"||ue=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(J))ue="Firefox Mobile";else if(ue=="Maxthon"&&Ve)Ve=Ve.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(et))et=="Xbox 360"&&(J=null),et=="Xbox 360"&&/\bIEMobile\b/.test(C)&&Oe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ue)||ue&&!et&&!/Browser|Mobi/.test(ue))&&(J=="Windows CE"||/Mobi/i.test(C)))ue+=" Mobile";else if(ue=="IE"&&Qe)try{w.external===null&&Oe.unshift("platform preview")}catch(ke){Oe.unshift("embedded")}else(/\bBlackBerry\b/.test(et)||/\bBB10\b/.test(C))&&(re=(RegExp(et.replace(/ +/g," *")+"/([.\\d]+)","i").exec(C)||0)[1]||Ve)?(re=[re,/BB10/.test(C)],J=(re[1]?(et=null,he="BlackBerry"):"Device Software")+" "+re[0],Ve=null):this!=h&&et!="Wii"&&(Qe&&q||/Opera/.test(ue)&&/\b(?:MSIE|Firefox)\b/i.test(C)||ue=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(J)||ue=="IE"&&(J&&!/^Win/.test(J)&&Ve>5.5||/\bWindows XP\b/.test(J)&&Ve>8||Ve==8&&!/\bTrident\b/.test(C)))&&!a.test(re=T.call(h,C.replace(a,"")+";"))&&re.name&&(re="ing as "+re.name+((re=re.version)?" "+re:""),a.test(ue)?(/\bIE\b/.test(re)&&J=="Mac OS"&&(J=null),re="identify"+re):(re="mask"+re,se?ue=c(se.replace(/([a-z])([A-Z])/g,"$1 $2")):ue="Opera",/\bIE\b/.test(re)&&(J=null),Qe||(Ve=null)),Fe=["Presto"],Oe.push(re));(re=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(C)||0)[1])&&(re=[parseFloat(re.replace(/\.(\d)$/,".0$1")),re],ue=="Safari"&&re[1].slice(-1)=="+"?(ue="WebKit Nightly",Me="alpha",Ve=re[1].slice(0,-1)):(Ve==re[1]||Ve==(re[2]=(/\bSafari\/([\d.]+\+?)/i.exec(C)||0)[1]))&&(Ve=null),re[1]=(/\bChrome\/([\d.]+)/i.exec(C)||0)[1],re[0]==537.36&&re[2]==537.36&&parseFloat(re[1])>=28&&Fe=="WebKit"&&(Fe=["Blink"]),!Qe||!U&&!re[1]?(Fe&&(Fe[1]="like Safari"),re=(re=re[0],re<400?1:re<500?2:re<526?3:re<533?4:re<534?"4+":re<535?5:re<537?6:re<538?7:re<601?8:"8")):(Fe&&(Fe[1]="like Chrome"),re=re[1]||(re=re[0],re<530?1:re<532?2:re<532.05?3:re<533?4:re<534.03?5:re<534.07?6:re<534.1?7:re<534.13?8:re<534.16?9:re<534.24?10:re<534.3?11:re<535.01?12:re<535.02?"13+":re<535.07?15:re<535.11?16:re<535.19?17:re<536.05?18:re<536.1?19:re<537.01?20:re<537.11?"21+":re<537.13?23:re<537.18?24:re<537.24?25:re<537.36?26:Fe!="Blink"?"27":"28")),Fe&&(Fe[1]+=" "+(re+=typeof re=="number"?".x":/[.+]/.test(re)?"":"+")),ue=="Safari"&&(!Ve||parseInt(Ve)>45)&&(Ve=re)),ue=="Opera"&&(re=/\bzbov|zvav$/.exec(J))?(ue+=" ",Oe.unshift("desktop mode"),re=="zvav"?(ue+="Mini",Ve=null):ue+="Mobile",J=J.replace(RegExp(" *"+re+"$"),"")):ue=="Safari"&&/\bChrome\b/.exec(Fe&&Fe[1])&&(Oe.unshift("desktop mode"),ue="Chrome Mobile",Ve=null,/\bOS X\b/.test(J)?(he="Apple",J="iOS 4.3+"):J=null),Ve&&Ve.indexOf(re=/[\d.]+$/.exec(J))==0&&C.indexOf("/"+re+"-")>-1&&(J=E(J.replace(re,""))),Fe&&!/\b(?:Avant|Nook)\b/.test(ue)&&(/Browser|Lunascape|Maxthon/.test(ue)||ue!="Safari"&&/^iOS/.test(J)&&/\bSafari\b/.test(Fe[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ue)&&Fe[1])&&((re=Fe[Fe.length-1])&&Oe.push(re)),Oe.length&&(Oe=["("+Oe.join("; ")+")"]),he&&et&&et.indexOf(he)<0&&Oe.push("on "+he),et&&Oe.push((/^on /.test(Oe[Oe.length-1])?"":"on ")+et),J&&(re=/ ([\d.+]+)$/.exec(J),dt=re&&J.charAt(J.length-re[0].length-1)=="/",J={architecture:32,family:re&&!dt?J.replace(re[0],""):J,version:re?re[1]:null,toString:function(){var nt=this.version;return this.family+(nt&&!dt?" "+nt:"")+(this.architecture==64?" 64-bit":"")}}),(re=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(we))&&!/\bi686\b/i.test(we)?(J&&(J.architecture=64,J.family=J.family.replace(RegExp(" *"+re),"")),ue&&(/\bWOW64\b/i.test(C)||Qe&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(C))&&Oe.unshift("32-bit")):J&&/^OS X/.test(J.family)&&ue=="Chrome"&&parseFloat(Ve)>=39&&(J.architecture=64),C||(C=null);var xe={};return xe.description=C,xe.layout=Fe&&Fe[0],xe.manufacturer=he,xe.name=ue,xe.prerelease=Me,xe.product=et,xe.ua=C,xe.version=ue&&Ve,xe.os=J||{architecture:null,family:null,version:null,toString:function(){return"null"}},xe.parse=T,xe.toString=fe,xe.version&&Oe.unshift(Ve),xe.name&&Oe.unshift(ue),J&&ue&&!(J==String(J).split(" ")[0]&&(J==ue.split(" ")[0]||et))&&Oe.push(et?"("+J+")":"on "+J),Oe.length&&(xe.description=Oe.join(" ")),xe}var _=T();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(S.platform=_,define(function(){return _})):p&&f?h(_,function(C,w){p[w]=C}):S.platform=_}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(R,D,n){(function(y){"use strict";typeof y=="undefined"||!y.version||y.version.indexOf("v0.")===0||y.version.indexOf("v1.")===0&&y.version.indexOf("v1.8.")!==0?D.exports={nextTick:g}:D.exports=y;function g(S,m,p,f){if(typeof S!="function")throw new TypeError('"callback" argument must be a function');var d=arguments.length,l,a;switch(d){case 0:case 1:return y.nextTick(S);case 2:return y.nextTick(function(){S.call(null,m)});case 3:return y.nextTick(function(){S.call(null,m,p)});case 4:return y.nextTick(function(){S.call(null,m,p,f)});default:for(l=new Array(d-1),a=0;a<l.length;)l[a++]=arguments[a];return y.nextTick(function(){S.apply(null,l)})}}}).call(this,R("_process"))},{_process:208}],208:[function(R,D,n){var y=D.exports={},g,S;function m(){throw new Error("setTimeout has not been defined")}function p(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?g=setTimeout:g=m}catch(s){g=m}try{typeof clearTimeout=="function"?S=clearTimeout:S=p}catch(s){S=p}})();function f(s){if(g===setTimeout)return setTimeout(s,0);if((g===m||!g)&&setTimeout)return g=setTimeout,setTimeout(s,0);try{return g(s,0)}catch(c){try{return g.call(null,s,0)}catch(h){return g.call(this,s,0)}}}function d(s){if(S===clearTimeout)return clearTimeout(s);if((S===p||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(s);try{return S(s)}catch(c){try{return S.call(null,s)}catch(h){return S.call(this,s)}}}var l=[],a=!1,i,t=-1;function o(){if(!a||!i)return;a=!1,i.length?l=i.concat(l):t=-1,l.length&&e()}function e(){if(a)return;var s=f(o);a=!0;for(var c=l.length;c;){for(i=l,l=[];++t<c;)i&&i[t].run();t=-1,c=l.length}i=null,a=!1,d(s)}y.nextTick=function(s){var c=new Array(arguments.length-1);if(arguments.length>1)for(var h=1;h<arguments.length;h++)c[h-1]=arguments[h];l.push(new u(s,c)),l.length===1&&!a&&f(e)};function u(s,c){this.fun=s,this.array=c}u.prototype.run=function(){this.fun.apply(null,this.array)},y.title="browser",y.browser=!0,y.env={},y.argv=[],y.version="",y.versions={};function r(){}y.on=r,y.addListener=r,y.once=r,y.off=r,y.removeListener=r,y.removeAllListeners=r,y.emit=r,y.prependListener=r,y.prependOnceListener=r,y.listeners=function(s){return[]},y.binding=function(s){throw new Error("process.binding is not supported")},y.cwd=function(){return"/"},y.chdir=function(s){throw new Error("process.chdir is not supported")},y.umask=function(){return 0}},{}],209:[function(R,D,n){(function(y){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(g){var S=typeof n=="object"&&n&&!n.nodeType&&n,m=typeof D=="object"&&D&&!D.nodeType&&D,p=typeof y=="object"&&y;(p.global===p||p.window===p||p.self===p)&&(g=p);var f,d=2147483647,l=36,a=1,i=26,t=38,o=700,e=72,u=128,r="-",s=/^xn--/,c=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=l-a,b=Math.floor,x=String.fromCharCode,E;function T(j){throw new RangeError(v[j])}function _(j,K){for(var z=j.length,V=[];z--;)V[z]=K(j[z]);return V}function C(j,K){var z=j.split("@"),V="";z.length>1&&(V=z[0]+"@",j=z[1]),j=j.replace(h,".");var Q=j.split("."),G=_(Q,K).join(".");return V+G}function w(j){for(var K=[],z=0,V=j.length,Q,G;z<V;)Q=j.charCodeAt(z++),Q>=55296&&Q<=56319&&z<V?(G=j.charCodeAt(z++),(G&64512)==56320?K.push(((Q&1023)<<10)+(G&1023)+65536):(K.push(Q),z--)):K.push(Q);return K}function O(j){return _(j,function(K){var z="";return K>65535&&(K-=65536,z+=x(K>>>10&1023|55296),K=56320|K&1023),z+=x(K),z}).join("")}function I(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:l}function k(j,K){return j+22+75*(j<26)-((K!=0)<<5)}function M(j,K,z){var V=0;for(j=z?b(j/o):j>>1,j+=b(j/K);j>A*i>>1;V+=l)j=b(j/A);return b(V+(A+1)*j/(j+t))}function U(j){var K=[],z=j.length,V,Q=0,G=u,te=e,q,se,re,we,Oe,Me,Qe,Ve,dt;for(q=j.lastIndexOf(r),q<0&&(q=0),se=0;se<q;++se)j.charCodeAt(se)>=128&&T("not-basic"),K.push(j.charCodeAt(se));for(re=q>0?q+1:0;re<z;){for(we=Q,Oe=1,Me=l;!(re>=z&&T("invalid-input"),Qe=I(j.charCodeAt(re++)),(Qe>=l||Qe>b((d-Q)/Oe))&&T("overflow"),Q+=Qe*Oe,Ve=Me<=te?a:Me>=te+i?i:Me-te,Qe<Ve);Me+=l)dt=l-Ve,Oe>b(d/dt)&&T("overflow"),Oe*=dt;V=K.length+1,te=M(Q-we,V,we==0),b(Q/V)>d-G&&T("overflow"),G+=b(Q/V),Q%=V,K.splice(Q++,0,G)}return O(K)}function P(j){var K,z,V,Q,G,te,q,se,re,we,Oe,Me=[],Qe,Ve,dt,Fe;for(j=w(j),Qe=j.length,K=u,z=0,G=e,te=0;te<Qe;++te)Oe=j[te],Oe<128&&Me.push(x(Oe));for(V=Q=Me.length,Q&&Me.push(r);V<Qe;){for(q=d,te=0;te<Qe;++te)Oe=j[te],Oe>=K&&Oe<q&&(q=Oe);for(Ve=V+1,q-K>b((d-z)/Ve)&&T("overflow"),z+=(q-K)*Ve,K=q,te=0;te<Qe;++te)if(Oe=j[te],Oe<K&&++z>d&&T("overflow"),Oe==K){for(se=z,re=l;!(we=re<=G?a:re>=G+i?i:re-G,se<we);re+=l)Fe=se-we,dt=l-we,Me.push(x(k(we+Fe%dt,0))),se=b(Fe/dt);Me.push(x(k(se,0))),G=M(z,Ve,V==Q),z=0,++V}++z,++K}return Me.join("")}function X(j){return C(j,function(K){return s.test(K)?U(K.slice(4).toLowerCase()):K})}function F(j){return C(j,function(K){return c.test(K)?"xn--"+P(K):K})}if(f={version:"1.4.1",ucs2:{decode:w,encode:O},decode:U,encode:P,toASCII:F,toUnicode:X},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return f});else if(S&&m)if(D.exports==S)m.exports=f;else for(E in f)f.hasOwnProperty(E)&&(S[E]=f[E]);else g.punycode=f})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(R,D,n){"use strict";function y(S,m){return Object.prototype.hasOwnProperty.call(S,m)}D.exports=function(S,m,p,f){m=m||"&",p=p||"=";var d={};if(typeof S!="string"||S.length===0)return d;var l=/\+/g;S=S.split(m);var a=1e3;f&&typeof f.maxKeys=="number"&&(a=f.maxKeys);var i=S.length;a>0&&i>a&&(i=a);for(var t=0;t<i;++t){var o=S[t].replace(l,"%20"),e=o.indexOf(p),u,r,s,c;e>=0?(u=o.substr(0,e),r=o.substr(e+1)):(u=o,r=""),s=decodeURIComponent(u),c=decodeURIComponent(r),y(d,s)?g(d[s])?d[s].push(c):d[s]=[d[s],c]:d[s]=c}return d};var g=Array.isArray||function(S){return Object.prototype.toString.call(S)==="[object Array]"}},{}],211:[function(R,D,n){"use strict";var y=function(f){switch(typeof f){case"string":return f;case"boolean":return f?"true":"false";case"number":return isFinite(f)?f:"";default:return""}};D.exports=function(p,f,d,l){return f=f||"&",d=d||"=",p===null&&(p=void 0),typeof p=="object"?S(m(p),function(a){var i=encodeURIComponent(y(a))+d;return g(p[a])?S(p[a],function(t){return i+encodeURIComponent(y(t))}).join(f):i+encodeURIComponent(y(p[a]))}).join(f):l?encodeURIComponent(y(l))+d+encodeURIComponent(y(p)):""};var g=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"};function S(p,f){if(p.map)return p.map(f);for(var d=[],l=0;l<p.length;l++)d.push(f(p[l],l));return d}var m=Object.keys||function(p){var f=[];for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&f.push(d);return f}},{}],212:[function(R,D,n){"use strict";n.decode=n.parse=R("./decode"),n.encode=n.stringify=R("./encode")},{"./decode":210,"./encode":211}],213:[function(R,D,n){D.exports=R("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=p(y),S=R("babel-runtime/core-js/object/keys"),m=p(S);function p(c){return c&&c.__esModule?c:{default:c}}var f=R("process-nextick-args"),d=m.default||function(c){var h=[];for(var v in c)h.push(v);return h};D.exports=u;var l=(0,g.default)(R("core-util-is"));l.inherits=R("inherits");var a=R("./_stream_readable"),i=R("./_stream_writable");l.inherits(u,a);for(var t=d(i.prototype),o=0;o<t.length;o++){var e=t[o];u.prototype[e]||(u.prototype[e]=i.prototype[e])}function u(c){if(!(this instanceof u))return new u(c);a.call(this,c),i.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",r)}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function r(){if(this.allowHalfOpen||this._writableState.ended)return;f.nextTick(s,this)}function s(c){c.end()}Object.defineProperty(u.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(h){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=h,this._writableState.destroyed=h}}),u.prototype._destroy=function(c,h){this.push(null),this.end(),f.nextTick(h,c)}},{"./_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(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=S(y);function S(d){return d&&d.__esModule?d:{default:d}}D.exports=f;var m=R("./_stream_transform"),p=(0,g.default)(R("core-util-is"));p.inherits=R("inherits"),p.inherits(f,m);function f(d){if(!(this instanceof f))return new f(d);m.call(this,d)}f.prototype._transform=function(d,l,a){a(null,d)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(R,D,n){(function(y,g){"use strict";var S=R("babel-runtime/core-js/object/get-prototype-of"),m=d(S),p=R("babel-runtime/core-js/object/create"),f=d(p);function d(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}var l=R("process-nextick-args");D.exports=w;var a=R("isarray"),i;w.ReadableState=C;var t=R("events").EventEmitter,o=function(ue,et){return ue.listeners(et).length},e=R("./internal/streams/stream"),u=R("safe-buffer").Buffer,r=g.Uint8Array||function(){};function s(Fe){return u.from(Fe)}function c(Fe){return u.isBuffer(Fe)||Fe instanceof r}var h=(0,f.default)(R("core-util-is"));h.inherits=R("inherits");var v=R("util"),A=void 0;v&&v.debuglog?A=v.debuglog("stream"):A=function(){};var b=R("./internal/streams/BufferList"),x=R("./internal/streams/destroy"),E;h.inherits(w,e);var T=["error","close","destroy","pause","resume"];function _(Fe,ue,et){if(typeof Fe.prependListener=="function")return Fe.prependListener(ue,et);!Fe._events||!Fe._events[ue]?Fe.on(ue,et):a(Fe._events[ue])?Fe._events[ue].unshift(et):Fe._events[ue]=[et,Fe._events[ue]]}function C(Fe,ue){i=i||R("./_stream_duplex"),Fe=Fe||{};var et=ue instanceof i;this.objectMode=!!Fe.objectMode,et&&(this.objectMode=this.objectMode||!!Fe.readableObjectMode);var he=Fe.highWaterMark,J=Fe.readableHighWaterMark,Y=this.objectMode?16:16*1024;he||he===0?this.highWaterMark=he:et&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Y,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,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=Fe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Fe.encoding&&(E||(E=R("string_decoder/").StringDecoder),this.decoder=new E(Fe.encoding),this.encoding=Fe.encoding)}function w(Fe){if(i=i||R("./_stream_duplex"),!(this instanceof w))return new w(Fe);this._readableState=new C(Fe,this),this.readable=!0,Fe&&(typeof Fe.read=="function"&&(this._read=Fe.read),typeof Fe.destroy=="function"&&(this._destroy=Fe.destroy)),e.call(this)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ue){if(!this._readableState)return;this._readableState.destroyed=ue}}),w.prototype.destroy=x.destroy,w.prototype._undestroy=x.undestroy,w.prototype._destroy=function(Fe,ue){this.push(null),ue(Fe)},w.prototype.push=function(Fe,ue){var et=this._readableState,he;return et.objectMode?he=!0:typeof Fe=="string"&&(ue=ue||et.defaultEncoding,ue!==et.encoding&&(Fe=u.from(Fe,ue),ue=""),he=!0),O(this,Fe,ue,!1,he)},w.prototype.unshift=function(Fe){return O(this,Fe,null,!0,!1)};function O(Fe,ue,et,he,J){var Y=Fe._readableState;if(ue===null)Y.reading=!1,F(Fe,Y);else{var $;J||($=k(Y,ue)),$?Fe.emit("error",$):Y.objectMode||ue&&ue.length>0?(typeof ue!="string"&&!Y.objectMode&&(0,m.default)(ue)!==u.prototype&&(ue=s(ue)),he?Y.endEmitted?Fe.emit("error",new Error("stream.unshift() after end event")):I(Fe,Y,ue,!0):Y.ended?Fe.emit("error",new Error("stream.push() after EOF")):(Y.reading=!1,Y.decoder&&!et?(ue=Y.decoder.write(ue),Y.objectMode||ue.length!==0?I(Fe,Y,ue,!1):z(Fe,Y)):I(Fe,Y,ue,!1))):he||(Y.reading=!1)}return M(Y)}function I(Fe,ue,et,he){ue.flowing&&ue.length===0&&!ue.sync?(Fe.emit("data",et),Fe.read(0)):(ue.length+=ue.objectMode?1:et.length,he?ue.buffer.unshift(et):ue.buffer.push(et),ue.needReadable&&j(Fe)),z(Fe,ue)}function k(Fe,ue){var et;return!c(ue)&&typeof ue!="string"&&ue!==void 0&&!Fe.objectMode&&(et=new TypeError("Invalid non-string/buffer chunk")),et}function M(Fe){return!Fe.ended&&(Fe.needReadable||Fe.length<Fe.highWaterMark||Fe.length===0)}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(Fe){return E||(E=R("string_decoder/").StringDecoder),this._readableState.decoder=new E(Fe),this._readableState.encoding=Fe,this};var U=8388608;function P(Fe){return Fe>=U?Fe=U:(Fe--,Fe|=Fe>>>1,Fe|=Fe>>>2,Fe|=Fe>>>4,Fe|=Fe>>>8,Fe|=Fe>>>16,Fe++),Fe}function X(Fe,ue){return Fe<=0||ue.length===0&&ue.ended?0:ue.objectMode?1:Fe!==Fe?ue.flowing&&ue.length?ue.buffer.head.data.length:ue.length:(Fe>ue.highWaterMark&&(ue.highWaterMark=P(Fe)),Fe<=ue.length?Fe:ue.ended?ue.length:(ue.needReadable=!0,0))}w.prototype.read=function(Fe){A("read",Fe),Fe=parseInt(Fe,10);var ue=this._readableState,et=Fe;if(Fe!==0&&(ue.emittedReadable=!1),Fe===0&&ue.needReadable&&(ue.length>=ue.highWaterMark||ue.ended))return A("read: emitReadable",ue.length,ue.ended),ue.length===0&&ue.ended?Qe(this):j(this),null;if(Fe=X(Fe,ue),Fe===0&&ue.ended)return ue.length===0&&Qe(this),null;var he=ue.needReadable;A("need readable",he),(ue.length===0||ue.length-Fe<ue.highWaterMark)&&(he=!0,A("length less than watermark",he)),ue.ended||ue.reading?(he=!1,A("reading or ended",he)):he&&(A("do read"),ue.reading=!0,ue.sync=!0,ue.length===0&&(ue.needReadable=!0),this._read(ue.highWaterMark),ue.sync=!1,ue.reading||(Fe=X(et,ue)));var J;return Fe>0?J=re(Fe,ue):J=null,J===null?(ue.needReadable=!0,Fe=0):ue.length-=Fe,ue.length===0&&(ue.ended||(ue.needReadable=!0),et!==Fe&&ue.ended&&Qe(this)),J!==null&&this.emit("data",J),J};function F(Fe,ue){if(ue.ended)return;if(ue.decoder){var et=ue.decoder.end();et&&et.length&&(ue.buffer.push(et),ue.length+=ue.objectMode?1:et.length)}ue.ended=!0,j(Fe)}function j(Fe){var ue=Fe._readableState;ue.needReadable=!1,ue.emittedReadable||(A("emitReadable",ue.flowing),ue.emittedReadable=!0,ue.sync?l.nextTick(K,Fe):K(Fe))}function K(Fe){A("emit readable"),Fe.emit("readable"),se(Fe)}function z(Fe,ue){ue.readingMore||(ue.readingMore=!0,l.nextTick(V,Fe,ue))}function V(Fe,ue){for(var et=ue.length;!ue.reading&&!ue.flowing&&!ue.ended&&ue.length<ue.highWaterMark&&!(A("maybeReadMore read 0"),Fe.read(0),et===ue.length);)et=ue.length;ue.readingMore=!1}w.prototype._read=function(Fe){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(Fe,ue){var et=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=Fe;break;case 1:he.pipes=[he.pipes,Fe];break;default:he.pipes.push(Fe);break}he.pipesCount+=1,A("pipe count=%d opts=%j",he.pipesCount,ue);var J=(!ue||ue.end!==!1)&&Fe!==y.stdout&&Fe!==y.stderr,Y=J?de:pt;he.endEmitted?l.nextTick(Y):et.once("end",Y),Fe.on("unpipe",$);function $(He,nr){A("onunpipe"),He===et&&(nr&&nr.hasUnpiped===!1&&(nr.hasUnpiped=!0,Be()))}function de(){A("onend"),Fe.end()}var be=Q(et);Fe.on("drain",be);var Te=!1;function Be(){A("cleanup"),Fe.removeListener("close",nt),Fe.removeListener("finish",Ct),Fe.removeListener("drain",be),Fe.removeListener("error",ke),Fe.removeListener("unpipe",$),et.removeListener("end",de),et.removeListener("end",pt),et.removeListener("data",xe),Te=!0,he.awaitDrain&&(!Fe._writableState||Fe._writableState.needDrain)&&be()}var fe=!1;et.on("data",xe);function xe(He){A("ondata"),fe=!1;var nr=Fe.write(He);nr===!1&&!fe&&((he.pipesCount===1&&he.pipes===Fe||he.pipesCount>1&&dt(he.pipes,Fe)!==-1)&&!Te&&(A("false write response, pause",et._readableState.awaitDrain),et._readableState.awaitDrain++,fe=!0),et.pause())}function ke(He){A("onerror",He),pt(),Fe.removeListener("error",ke),o(Fe,"error")===0&&Fe.emit("error",He)}_(Fe,"error",ke);function nt(){Fe.removeListener("finish",Ct),pt()}Fe.once("close",nt);function Ct(){A("onfinish"),Fe.removeListener("close",nt),pt()}Fe.once("finish",Ct);function pt(){A("unpipe"),et.unpipe(Fe)}return Fe.emit("pipe",et),he.flowing||(A("pipe resume"),et.resume()),Fe};function Q(Fe){return function(){var ue=Fe._readableState;A("pipeOnDrain",ue.awaitDrain),ue.awaitDrain&&ue.awaitDrain--,ue.awaitDrain===0&&o(Fe,"data")&&(ue.flowing=!0,se(Fe))}}w.prototype.unpipe=function(Fe){var ue=this._readableState,et={hasUnpiped:!1};if(ue.pipesCount===0)return this;if(ue.pipesCount===1)return Fe&&Fe!==ue.pipes?this:(Fe||(Fe=ue.pipes),ue.pipes=null,ue.pipesCount=0,ue.flowing=!1,Fe&&Fe.emit("unpipe",this,et),this);if(!Fe){var he=ue.pipes,J=ue.pipesCount;ue.pipes=null,ue.pipesCount=0,ue.flowing=!1;for(var Y=0;Y<J;Y++)he[Y].emit("unpipe",this,et);return this}var $=dt(ue.pipes,Fe);return $===-1?this:(ue.pipes.splice($,1),ue.pipesCount-=1,ue.pipesCount===1&&(ue.pipes=ue.pipes[0]),Fe.emit("unpipe",this,et),this)},w.prototype.on=function(Fe,ue){var et=e.prototype.on.call(this,Fe,ue);if(Fe==="data")this._readableState.flowing!==!1&&this.resume();else if(Fe==="readable"){var he=this._readableState;!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.emittedReadable=!1,he.reading?he.length&&j(this):l.nextTick(G,this))}return et},w.prototype.addListener=w.prototype.on;function G(Fe){A("readable nexttick read 0"),Fe.read(0)}w.prototype.resume=function(){var Fe=this._readableState;return Fe.flowing||(A("resume"),Fe.flowing=!0,te(this,Fe)),this};function te(Fe,ue){ue.resumeScheduled||(ue.resumeScheduled=!0,l.nextTick(q,Fe,ue))}function q(Fe,ue){ue.reading||(A("resume read 0"),Fe.read(0)),ue.resumeScheduled=!1,ue.awaitDrain=0,Fe.emit("resume"),se(Fe),ue.flowing&&!ue.reading&&Fe.read(0)}w.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function se(Fe){var ue=Fe._readableState;for(A("flow",ue.flowing);ue.flowing&&Fe.read()!==null;);}w.prototype.wrap=function(Fe){var ue=this,et=this._readableState,he=!1;Fe.on("end",function(){if(A("wrapped end"),et.decoder&&!et.ended){var $=et.decoder.end();$&&$.length&&ue.push($)}ue.push(null)}),Fe.on("data",function($){if(A("wrapped data"),et.decoder&&($=et.decoder.write($)),et.objectMode&&$==null)return;if(!et.objectMode&&(!$||!$.length))return;var de=ue.push($);de||(he=!0,Fe.pause())});for(var J in Fe)this[J]===void 0&&typeof Fe[J]=="function"&&(this[J]=function($){return function(){return Fe[$].apply(Fe,arguments)}}(J));for(var Y=0;Y<T.length;Y++)Fe.on(T[Y],this.emit.bind(this,T[Y]));return this._read=function($){A("wrapped _read",$),he&&(he=!1,Fe.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=re;function re(Fe,ue){if(ue.length===0)return null;var et;return ue.objectMode?et=ue.buffer.shift():!Fe||Fe>=ue.length?(ue.decoder?et=ue.buffer.join(""):ue.buffer.length===1?et=ue.buffer.head.data:et=ue.buffer.concat(ue.length),ue.buffer.clear()):et=we(Fe,ue.buffer,ue.decoder),et}function we(Fe,ue,et){var he;return Fe<ue.head.data.length?(he=ue.head.data.slice(0,Fe),ue.head.data=ue.head.data.slice(Fe)):Fe===ue.head.data.length?he=ue.shift():he=et?Oe(Fe,ue):Me(Fe,ue),he}function Oe(Fe,ue){var et=ue.head,he=1,J=et.data;for(Fe-=J.length;et=et.next;){var Y=et.data,$=Fe>Y.length?Y.length:Fe;if($===Y.length?J+=Y:J+=Y.slice(0,Fe),Fe-=$,Fe===0){$===Y.length?(++he,et.next?ue.head=et.next:ue.head=ue.tail=null):(ue.head=et,et.data=Y.slice($));break}++he}return ue.length-=he,J}function Me(Fe,ue){var et=u.allocUnsafe(Fe),he=ue.head,J=1;for(he.data.copy(et),Fe-=he.data.length;he=he.next;){var Y=he.data,$=Fe>Y.length?Y.length:Fe;if(Y.copy(et,et.length-Fe,0,$),Fe-=$,Fe===0){$===Y.length?(++J,he.next?ue.head=he.next:ue.head=ue.tail=null):(ue.head=he,he.data=Y.slice($));break}++J}return ue.length-=J,et}function Qe(Fe){var ue=Fe._readableState;if(ue.length>0)throw new Error('"endReadable()" called on non-empty stream');ue.endEmitted||(ue.ended=!0,l.nextTick(Ve,ue,Fe))}function Ve(Fe,ue){!Fe.endEmitted&&Fe.length===0&&(Fe.endEmitted=!0,ue.readable=!1,ue.emit("end"))}function dt(Fe,ue){for(var et=0,he=Fe.length;et<he;et++)if(Fe[et]===ue)return et;return-1}}).call(this,R("_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(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=S(y);function S(i){return i&&i.__esModule?i:{default:i}}D.exports=d;var m=R("./_stream_duplex"),p=(0,g.default)(R("core-util-is"));p.inherits=R("inherits"),p.inherits(d,m);function f(i,t){var o=this._transformState;o.transforming=!1;var e=o.writecb;if(!e)return this.emit("error",new Error("write callback called multiple times"));o.writechunk=null,o.writecb=null,t!=null&&this.push(t),e(i);var u=this._readableState;u.reading=!1,(u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}function d(i){if(!(this instanceof d))return new d(i);m.call(this,i),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,i&&(typeof i.transform=="function"&&(this._transform=i.transform),typeof i.flush=="function"&&(this._flush=i.flush)),this.on("prefinish",l)}function l(){var i=this;typeof this._flush=="function"?this._flush(function(t,o){a(i,t,o)}):a(this,null,null)}d.prototype.push=function(i,t){return this._transformState.needTransform=!1,m.prototype.push.call(this,i,t)},d.prototype._transform=function(i,t,o){throw new Error("_transform() is not implemented")},d.prototype._write=function(i,t,o){var e=this._transformState;if(e.writecb=o,e.writechunk=i,e.writeencoding=t,!e.transforming){var u=this._readableState;(e.needTransform||u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}},d.prototype._read=function(i){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},d.prototype._destroy=function(i,t){var o=this;m.prototype._destroy.call(this,i,function(e){t(e),o.emit("close")})};function a(i,t,o){if(t)return i.emit("error",t);if(o!=null&&i.push(o),i._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(i._transformState.transforming)throw new Error("Calling transform done when still transforming");return i.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(R,D,n){(function(y,g){"use strict";var S=R("babel-runtime/core-js/object/define-property"),m=e(S),p=R("babel-runtime/core-js/symbol/has-instance"),f=e(p),d=R("babel-runtime/core-js/symbol"),l=e(d),a=R("babel-runtime/core-js/object/create"),i=e(a),t=R("babel-runtime/core-js/set-immediate"),o=e(t);function e(Me){return Me&&Me.__esModule?Me:{default:Me}}var u=R("process-nextick-args");D.exports=k;function r(Me,Qe,Ve){this.chunk=Me,this.encoding=Qe,this.callback=Ve,this.next=null}function s(Me){var Qe=this;this.next=null,this.entry=null,this.finish=function(){Oe(Qe,Me)}}var c=!y.browser&&["v0.10","v0.9."].indexOf(y.version.slice(0,5))>-1?o.default:u.nextTick,h;k.WritableState=O;var v=(0,i.default)(R("core-util-is"));v.inherits=R("inherits");var A={deprecate:R("util-deprecate")},b=R("./internal/streams/stream"),x=R("safe-buffer").Buffer,E=g.Uint8Array||function(){};function T(Me){return x.from(Me)}function _(Me){return x.isBuffer(Me)||Me instanceof E}var C=R("./internal/streams/destroy");v.inherits(k,b);function w(){}function O(Me,Qe){h=h||R("./_stream_duplex"),Me=Me||{};var Ve=Qe instanceof h;this.objectMode=!!Me.objectMode,Ve&&(this.objectMode=this.objectMode||!!Me.writableObjectMode);var dt=Me.highWaterMark,Fe=Me.writableHighWaterMark,ue=this.objectMode?16:16*1024;dt||dt===0?this.highWaterMark=dt:Ve&&(Fe||Fe===0)?this.highWaterMark=Fe:this.highWaterMark=ue,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 et=Me.decodeStrings===!1;this.decodeStrings=!et,this.defaultEncoding=Me.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(he){z(Qe,he)},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 s(this)}O.prototype.getBuffer=function(){for(var Qe=this.bufferedRequest,Ve=[];Qe;)Ve.push(Qe),Qe=Qe.next;return Ve},function(){try{Object.defineProperty(O.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Me){}}();var I;typeof l.default=="function"&&f.default&&typeof Function.prototype[f.default]=="function"?(I=Function.prototype[f.default],(0,m.default)(k,f.default,{value:function(Qe){return I.call(this,Qe)?!0:this!==k?!1:Qe&&Qe._writableState instanceof O}})):I=function(Qe){return Qe instanceof this};function k(Me){if(h=h||R("./_stream_duplex"),!I.call(k,this)&&!(this instanceof h))return new k(Me);this._writableState=new O(Me,this),this.writable=!0,Me&&(typeof Me.write=="function"&&(this._write=Me.write),typeof Me.writev=="function"&&(this._writev=Me.writev),typeof Me.destroy=="function"&&(this._destroy=Me.destroy),typeof Me.final=="function"&&(this._final=Me.final)),b.call(this)}k.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function M(Me,Qe){var Ve=new Error("write after end");Me.emit("error",Ve),u.nextTick(Qe,Ve)}function U(Me,Qe,Ve,dt){var Fe=!0,ue=!1;return Ve===null?ue=new TypeError("May not write null values to stream"):typeof Ve!="string"&&Ve!==void 0&&!Qe.objectMode&&(ue=new TypeError("Invalid non-string/buffer chunk")),ue&&(Me.emit("error",ue),u.nextTick(dt,ue),Fe=!1),Fe}k.prototype.write=function(Me,Qe,Ve){var dt=this._writableState,Fe=!1,ue=!dt.objectMode&&_(Me);return ue&&!x.isBuffer(Me)&&(Me=T(Me)),typeof Qe=="function"&&(Ve=Qe,Qe=null),ue?Qe="buffer":Qe||(Qe=dt.defaultEncoding),typeof Ve!="function"&&(Ve=w),dt.ended?M(this,Ve):(ue||U(this,dt,Me,Ve))&&(dt.pendingcb++,Fe=X(this,dt,ue,Me,Qe,Ve)),Fe},k.prototype.cork=function(){var Me=this._writableState;Me.corked++},k.prototype.uncork=function(){var Me=this._writableState;Me.corked&&(Me.corked--,!Me.writing&&!Me.corked&&!Me.finished&&!Me.bufferProcessing&&Me.bufferedRequest&&G(this,Me))},k.prototype.setDefaultEncoding=function(Qe){if(typeof Qe=="string"&&(Qe=Qe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Qe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Qe);return this._writableState.defaultEncoding=Qe,this};function P(Me,Qe,Ve){return!Me.objectMode&&Me.decodeStrings!==!1&&typeof Qe=="string"&&(Qe=x.from(Qe,Ve)),Qe}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(Me,Qe,Ve,dt,Fe,ue){if(!Ve){var et=P(Qe,dt,Fe);dt!==et&&(Ve=!0,Fe="buffer",dt=et)}var he=Qe.objectMode?1:dt.length;Qe.length+=he;var J=Qe.length<Qe.highWaterMark;if(J||(Qe.needDrain=!0),Qe.writing||Qe.corked){var Y=Qe.lastBufferedRequest;Qe.lastBufferedRequest={chunk:dt,encoding:Fe,isBuf:Ve,callback:ue,next:null},Y?Y.next=Qe.lastBufferedRequest:Qe.bufferedRequest=Qe.lastBufferedRequest,Qe.bufferedRequestCount+=1}else F(Me,Qe,!1,he,dt,Fe,ue);return J}function F(Me,Qe,Ve,dt,Fe,ue,et){Qe.writelen=dt,Qe.writecb=et,Qe.writing=!0,Qe.sync=!0,Ve?Me._writev(Fe,Qe.onwrite):Me._write(Fe,ue,Qe.onwrite),Qe.sync=!1}function j(Me,Qe,Ve,dt,Fe){--Qe.pendingcb,Ve?(u.nextTick(Fe,dt),u.nextTick(re,Me,Qe),Me._writableState.errorEmitted=!0,Me.emit("error",dt)):(Fe(dt),Me._writableState.errorEmitted=!0,Me.emit("error",dt),re(Me,Qe))}function K(Me){Me.writing=!1,Me.writecb=null,Me.length-=Me.writelen,Me.writelen=0}function z(Me,Qe){var Ve=Me._writableState,dt=Ve.sync,Fe=Ve.writecb;if(K(Ve),Qe)j(Me,Ve,dt,Qe,Fe);else{var ue=te(Ve);!ue&&!Ve.corked&&!Ve.bufferProcessing&&Ve.bufferedRequest&&G(Me,Ve),dt?c(V,Me,Ve,ue,Fe):V(Me,Ve,ue,Fe)}}function V(Me,Qe,Ve,dt){Ve||Q(Me,Qe),Qe.pendingcb--,dt(),re(Me,Qe)}function Q(Me,Qe){Qe.length===0&&Qe.needDrain&&(Qe.needDrain=!1,Me.emit("drain"))}function G(Me,Qe){Qe.bufferProcessing=!0;var Ve=Qe.bufferedRequest;if(Me._writev&&Ve&&Ve.next){var dt=Qe.bufferedRequestCount,Fe=new Array(dt),ue=Qe.corkedRequestsFree;ue.entry=Ve;for(var et=0,he=!0;Ve;)Fe[et]=Ve,Ve.isBuf||(he=!1),Ve=Ve.next,et+=1;Fe.allBuffers=he,F(Me,Qe,!0,Qe.length,Fe,"",ue.finish),Qe.pendingcb++,Qe.lastBufferedRequest=null,ue.next?(Qe.corkedRequestsFree=ue.next,ue.next=null):Qe.corkedRequestsFree=new s(Qe),Qe.bufferedRequestCount=0}else{for(;Ve;){var J=Ve.chunk,Y=Ve.encoding,$=Ve.callback,de=Qe.objectMode?1:J.length;if(F(Me,Qe,!1,de,J,Y,$),Ve=Ve.next,Qe.bufferedRequestCount--,Qe.writing)break}Ve===null&&(Qe.lastBufferedRequest=null)}Qe.bufferedRequest=Ve,Qe.bufferProcessing=!1}k.prototype._write=function(Me,Qe,Ve){Ve(new Error("_write() is not implemented"))},k.prototype._writev=null,k.prototype.end=function(Me,Qe,Ve){var dt=this._writableState;typeof Me=="function"?(Ve=Me,Me=null,Qe=null):typeof Qe=="function"&&(Ve=Qe,Qe=null),Me!=null&&this.write(Me,Qe),dt.corked&&(dt.corked=1,this.uncork()),!dt.ending&&!dt.finished&&we(this,dt,Ve)};function te(Me){return Me.ending&&Me.length===0&&Me.bufferedRequest===null&&!Me.finished&&!Me.writing}function q(Me,Qe){Me._final(function(Ve){Qe.pendingcb--,Ve&&Me.emit("error",Ve),Qe.prefinished=!0,Me.emit("prefinish"),re(Me,Qe)})}function se(Me,Qe){!Qe.prefinished&&!Qe.finalCalled&&(typeof Me._final=="function"?(Qe.pendingcb++,Qe.finalCalled=!0,u.nextTick(q,Me,Qe)):(Qe.prefinished=!0,Me.emit("prefinish")))}function re(Me,Qe){var Ve=te(Qe);return Ve&&(se(Me,Qe),Qe.pendingcb===0&&(Qe.finished=!0,Me.emit("finish"))),Ve}function we(Me,Qe,Ve){Qe.ending=!0,re(Me,Qe),Ve&&(Qe.finished?u.nextTick(Ve):Me.once("finish",Ve)),Qe.ended=!0,Me.writable=!1}function Oe(Me,Qe,Ve){var dt=Me.entry;for(Me.entry=null;dt;){var Fe=dt.callback;Qe.pendingcb--,Fe(Ve),dt=dt.next}Qe.corkedRequestsFree?Qe.corkedRequestsFree.next=Me:Qe.corkedRequestsFree=Me}Object.defineProperty(k.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Qe){if(!this._writableState)return;this._writableState.destroyed=Qe}}),k.prototype.destroy=C.destroy,k.prototype._undestroy=C.undestroy,k.prototype._destroy=function(Me,Qe){this.end(),Qe(Me)}}).call(this,R("_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(R,D,n){"use strict";function y(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}var g=R("safe-buffer").Buffer,S=R("util");function m(p,f,d){p.copy(f,d)}D.exports=function(){function p(){y(this,p),this.head=null,this.tail=null,this.length=0}return p.prototype.push=function(d){var l={data:d,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},p.prototype.unshift=function(d){var l={data:d,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},p.prototype.shift=function(){if(this.length===0)return;var d=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,d},p.prototype.clear=function(){this.head=this.tail=null,this.length=0},p.prototype.join=function(d){if(this.length===0)return"";for(var l=this.head,a=""+l.data;l=l.next;)a+=d+l.data;return a},p.prototype.concat=function(d){if(this.length===0)return g.alloc(0);if(this.length===1)return this.head.data;for(var l=g.allocUnsafe(d>>>0),a=this.head,i=0;a;)m(a.data,l,i),i+=a.data.length,a=a.next;return l},p}(),S&&S.inspect&&S.inspect.custom&&(D.exports.prototype[S.inspect.custom]=function(){var p=S.inspect({length:this.length});return this.constructor.name+" "+p})},{"safe-buffer":228,util:71}],220:[function(R,D,n){"use strict";var y=R("process-nextick-args");function g(p,f){var d=this,l=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return l||a?(f?f(p):p&&(!this._writableState||!this._writableState.errorEmitted)&&y.nextTick(m,this,p),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(i){!f&&i?(y.nextTick(m,d,i),d._writableState&&(d._writableState.errorEmitted=!0)):f&&f(i)}),this)}function S(){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 m(p,f){p.emit("error",f)}D.exports={destroy:g,undestroy:S}},{"process-nextick-args":207}],221:[function(R,D,n){"use strict";D.exports=R("events").EventEmitter},{events:192}],222:[function(R,D,n){D.exports=R("./readable").PassThrough},{"./readable":223}],223:[function(R,D,n){n=D.exports=R("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=R("./lib/_stream_writable.js"),n.Duplex=R("./lib/_stream_duplex.js"),n.Transform=R("./lib/_stream_transform.js"),n.PassThrough=R("./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(R,D,n){D.exports=R("./readable").Transform},{"./readable":223}],225:[function(R,D,n){D.exports=R("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(R,D,n){var y=function(){return this}()||Function("return this")(),g=y.regeneratorRuntime&&Object.getOwnPropertyNames(y).indexOf("regeneratorRuntime")>=0,S=g&&y.regeneratorRuntime;if(y.regeneratorRuntime=void 0,D.exports=R("./runtime"),g)y.regeneratorRuntime=S;else try{delete y.regeneratorRuntime}catch(m){y.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(R,D,n){!function(y){"use strict";var g=Object.prototype,S=g.hasOwnProperty,m,p=typeof Symbol=="function"?Symbol:{},f=p.iterator||"@@iterator",d=p.asyncIterator||"@@asyncIterator",l=p.toStringTag||"@@toStringTag",a=typeof D=="object",i=y.regeneratorRuntime;if(i){a&&(D.exports=i);return}i=y.regeneratorRuntime=a?D.exports:{};function t(X,F,j,K){var z=F&&F.prototype instanceof h?F:h,V=Object.create(z.prototype),Q=new M(K||[]);return V._invoke=w(X,j,Q),V}i.wrap=t;function o(X,F,j){try{return{type:"normal",arg:X.call(F,j)}}catch(K){return{type:"throw",arg:K}}}var e="suspendedStart",u="suspendedYield",r="executing",s="completed",c={};function h(){}function v(){}function A(){}var b={};b[f]=function(){return this};var x=Object.getPrototypeOf,E=x&&x(x(U([])));E&&E!==g&&S.call(E,f)&&(b=E);var T=A.prototype=h.prototype=Object.create(b);v.prototype=T.constructor=A,A.constructor=v,A[l]=v.displayName="GeneratorFunction";function _(X){["next","throw","return"].forEach(function(F){X[F]=function(j){return this._invoke(F,j)}})}i.isGeneratorFunction=function(X){var F=typeof X=="function"&&X.constructor;return F?F===v||(F.displayName||F.name)==="GeneratorFunction":!1},i.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,A):(X.__proto__=A,l in X||(X[l]="GeneratorFunction")),X.prototype=Object.create(T),X},i.awrap=function(X){return{__await:X}};function C(X){function F(z,V,Q,G){var te=o(X[z],X,V);if(te.type==="throw")G(te.arg);else{var q=te.arg,se=q.value;return se&&typeof se=="object"&&S.call(se,"__await")?Promise.resolve(se.__await).then(function(re){F("next",re,Q,G)},function(re){F("throw",re,Q,G)}):Promise.resolve(se).then(function(re){q.value=re,Q(q)},G)}}var j;function K(z,V){function Q(){return new Promise(function(G,te){F(z,V,G,te)})}return j=j?j.then(Q,Q):Q()}this._invoke=K}_(C.prototype),C.prototype[d]=function(){return this},i.AsyncIterator=C,i.async=function(X,F,j,K){var z=new C(t(X,F,j,K));return i.isGeneratorFunction(F)?z:z.next().then(function(V){return V.done?V.value:z.next()})};function w(X,F,j){var K=e;return function(V,Q){if(K===r)throw new Error("Generator is already running");if(K===s){if(V==="throw")throw Q;return P()}for(j.method=V,j.arg=Q;;){var G=j.delegate;if(G){var te=O(G,j);if(te){if(te===c)continue;return te}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(K===e)throw K=s,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);K=r;var q=o(X,F,j);if(q.type==="normal"){if(K=j.done?s:u,q.arg===c)continue;return{value:q.arg,done:j.done}}else q.type==="throw"&&(K=s,j.method="throw",j.arg=q.arg)}}}function O(X,F){var j=X.iterator[F.method];if(j===m){if(F.delegate=null,F.method==="throw"){if(X.iterator.return&&(F.method="return",F.arg=m,O(X,F),F.method==="throw"))return c;F.method="throw",F.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var K=o(j,X.iterator,F.arg);if(K.type==="throw")return F.method="throw",F.arg=K.arg,F.delegate=null,c;var z=K.arg;if(!z)return F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,c;if(z.done)F[X.resultName]=z.value,F.next=X.nextLoc,F.method!=="return"&&(F.method="next",F.arg=m);else return z;return F.delegate=null,c}_(T),T[l]="Generator",T[f]=function(){return this},T.toString=function(){return"[object Generator]"};function I(X){var F={tryLoc:X[0]};1 in X&&(F.catchLoc=X[1]),2 in X&&(F.finallyLoc=X[2],F.afterLoc=X[3]),this.tryEntries.push(F)}function k(X){var F=X.completion||{};F.type="normal",delete F.arg,X.completion=F}function M(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(I,this),this.reset(!0)}i.keys=function(X){var F=[];for(var j in X)F.push(j);return F.reverse(),function K(){for(;F.length;){var z=F.pop();if(z in X)return K.value=z,K.done=!1,K}return K.done=!0,K}};function U(X){if(X){var F=X[f];if(F)return F.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var j=-1,K=function z(){for(;++j<X.length;)if(S.call(X,j))return z.value=X[j],z.done=!1,z;return z.value=m,z.done=!0,z};return K.next=K}}return{next:P}}i.values=U;function P(){return{value:m,done:!0}}M.prototype={constructor:M,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(k),!F)for(var j in this)j.charAt(0)==="t"&&S.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=m)},stop:function(){this.done=!0;var F=this.tryEntries[0],j=F.completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var j=this;function K(q,se){return Q.type="throw",Q.arg=F,j.next=q,se&&(j.method="next",j.arg=m),!!se}for(var z=this.tryEntries.length-1;z>=0;--z){var V=this.tryEntries[z],Q=V.completion;if(V.tryLoc==="root")return K("end");if(V.tryLoc<=this.prev){var G=S.call(V,"catchLoc"),te=S.call(V,"finallyLoc");if(G&&te){if(this.prev<V.catchLoc)return K(V.catchLoc,!0);if(this.prev<V.finallyLoc)return K(V.finallyLoc)}else if(G){if(this.prev<V.catchLoc)return K(V.catchLoc,!0)}else if(te){if(this.prev<V.finallyLoc)return K(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(F,j){for(var K=this.tryEntries.length-1;K>=0;--K){var z=this.tryEntries[K];if(z.tryLoc<=this.prev&&S.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var V=z;break}}V&&(F==="break"||F==="continue")&&V.tryLoc<=j&&j<=V.finallyLoc&&(V=null);var Q=V?V.completion:{};return Q.type=F,Q.arg=j,V?(this.method="next",this.next=V.finallyLoc,c):this.complete(Q)},complete:function(F,j){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&j&&(this.next=j),c},finish:function(F){for(var j=this.tryEntries.length-1;j>=0;--j){var K=this.tryEntries[j];if(K.finallyLoc===F)return this.complete(K.completion,K.afterLoc),k(K),c}},catch:function(F){for(var j=this.tryEntries.length-1;j>=0;--j){var K=this.tryEntries[j];if(K.tryLoc===F){var z=K.completion;if(z.type==="throw"){var V=z.arg;k(K)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(F,j,K){return this.delegate={iterator:U(F),resultName:j,nextLoc:K},this.method==="next"&&(this.arg=m),c}}}(function(){return this}()||Function("return this")())},{}],228:[function(R,D,n){var y=R("buffer"),g=y.Buffer;function S(p,f){for(var d in p)f[d]=p[d]}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?D.exports=y:(S(y,n),n.Buffer=m);function m(p,f,d){return g(p,f,d)}S(g,m),m.from=function(p,f,d){if(typeof p=="number")throw new TypeError("Argument must not be a number");return g(p,f,d)},m.alloc=function(p,f,d){if(typeof p!="number")throw new TypeError("Argument must be a number");var l=g(p);return f!==void 0?typeof d=="string"?l.fill(f,d):l.fill(f):l.fill(0),l},m.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return g(p)},m.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return y.SlowBuffer(p)}},{buffer:73}],229:[function(R,D,n){(function(y){"use strict";var g=R("babel-runtime/core-js/string/from-code-point"),S=u(g),m=R("babel-runtime/core-js/json/stringify"),p=u(m),f=R("babel-runtime/helpers/typeof"),d=u(f),l=R("babel-runtime/core-js/object/define-property"),a=u(l),i=R("babel-runtime/core-js/object/keys"),t=u(i),o=R("babel-runtime/core-js/object/create"),e=u(o);function u(r){return r&&r.__esModule?r:{default:r}}(function(r){r.parser=function(Y,$){return new c(Y,$)},r.SAXParser=c,r.SAXStream=T,r.createStream=E,r.MAX_BUFFER_LENGTH=64*1024;var s=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function c(Y,$){if(!(this instanceof c))return new c(Y,$);var de=this;v(de),de.q=de.c="",de.bufferCheckPosition=r.MAX_BUFFER_LENGTH,de.opt=$||{},de.opt.lowercase=de.opt.lowercase||de.opt.lowercasetags,de.looseCase=de.opt.lowercase?"toLowerCase":"toUpperCase",de.tags=[],de.closed=de.closedRoot=de.sawRoot=!1,de.tag=de.error=null,de.strict=!!Y,de.noscript=!!(Y||de.opt.noscript),de.state=V.BEGIN,de.strictEntities=de.opt.strictEntities,de.ENTITIES=de.strictEntities?(0,e.default)(r.XML_ENTITIES):(0,e.default)(r.ENTITIES),de.attribList=[],de.opt.xmlns&&(de.ns=(0,e.default)(I)),de.trackPosition=de.opt.position!==!1,de.trackPosition&&(de.position=de.line=de.column=0),G(de,"onready")}e.default||(Object.create=function(Y){function $(){}$.prototype=Y;var de=new $;return de}),t.default||(Object.keys=function(Y){var $=[];for(var de in Y)Y.hasOwnProperty(de)&&$.push(de);return $});function h(Y){for(var $=Math.max(r.MAX_BUFFER_LENGTH,10),de=0,be=0,Te=s.length;be<Te;be++){var Be=Y[s[be]].length;if(Be>$)switch(s[be]){case"textNode":q(Y);break;case"cdata":te(Y,"oncdata",Y.cdata),Y.cdata="";break;case"script":te(Y,"onscript",Y.script),Y.script="";break;default:re(Y,"Max buffer length exceeded: "+s[be])}de=Math.max(de,Be)}var fe=r.MAX_BUFFER_LENGTH-de;Y.bufferCheckPosition=fe+Y.position}function v(Y){for(var $=0,de=s.length;$<de;$++)Y[s[$]]=""}function A(Y){q(Y),Y.cdata!==""&&(te(Y,"oncdata",Y.cdata),Y.cdata=""),Y.script!==""&&(te(Y,"onscript",Y.script),Y.script="")}c.prototype={end:function(){we(this)},write:J,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var b;try{b=R("stream").Stream}catch(Y){b=function(){}}var x=r.EVENTS.filter(function(Y){return Y!=="error"&&Y!=="end"});function E(Y,$){return new T(Y,$)}function T(Y,$){if(!(this instanceof T))return new T(Y,$);b.apply(this),this._parser=new c(Y,$),this.writable=!0,this.readable=!0;var de=this;this._parser.onend=function(){de.emit("end")},this._parser.onerror=function(be){de.emit("error",be),de._parser.error=null},this._decoder=null,x.forEach(function(be){(0,a.default)(de,"on"+be,{get:function(){return de._parser["on"+be]},set:function(Be){if(!Be)return de.removeAllListeners(be),de._parser["on"+be]=Be,Be;de.on(be,Be)},enumerable:!0,configurable:!1})})}T.prototype=(0,e.default)(b.prototype,{constructor:{value:T}}),T.prototype.write=function(Y){if(typeof y=="function"&&typeof y.isBuffer=="function"&&y.isBuffer(Y)){if(!this._decoder){var $=R("string_decoder").StringDecoder;this._decoder=new $("utf8")}Y=this._decoder.write(Y)}return this._parser.write(Y.toString()),this.emit("data",Y),!0},T.prototype.end=function(Y){return Y&&Y.length&&this.write(Y),this._parser.end(),!0},T.prototype.on=function(Y,$){var de=this;return!de._parser["on"+Y]&&x.indexOf(Y)!==-1&&(de._parser["on"+Y]=function(){var be=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);be.splice(0,0,Y),de.emit.apply(de,be)}),b.prototype.on.call(de,Y,$)};var _="[CDATA[",C="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",I={xml:w,xmlns:O},k=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,M=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,U=/[#:_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]/,P=/[#:_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 X(Y){return Y===" "||Y===`
`||Y==="\r"||Y===" "}function F(Y){return Y==='"'||Y==="'"}function j(Y){return Y===">"||X(Y)}function K(Y,$){return Y.test($)}function z(Y,$){return!K(Y,$)}var V=0;r.STATE={BEGIN:V++,BEGIN_WHITESPACE:V++,TEXT:V++,TEXT_ENTITY:V++,OPEN_WAKA:V++,SGML_DECL:V++,SGML_DECL_QUOTED:V++,DOCTYPE:V++,DOCTYPE_QUOTED:V++,DOCTYPE_DTD:V++,DOCTYPE_DTD_QUOTED:V++,COMMENT_STARTING:V++,COMMENT:V++,COMMENT_ENDING:V++,COMMENT_ENDED:V++,CDATA:V++,CDATA_ENDING:V++,CDATA_ENDING_2:V++,PROC_INST:V++,PROC_INST_BODY:V++,PROC_INST_ENDING:V++,OPEN_TAG:V++,OPEN_TAG_SLASH:V++,ATTRIB:V++,ATTRIB_NAME:V++,ATTRIB_NAME_SAW_WHITE:V++,ATTRIB_VALUE:V++,ATTRIB_VALUE_QUOTED:V++,ATTRIB_VALUE_CLOSED:V++,ATTRIB_VALUE_UNQUOTED:V++,ATTRIB_VALUE_ENTITY_Q:V++,ATTRIB_VALUE_ENTITY_U:V++,CLOSE_TAG:V++,CLOSE_TAG_SAW_WHITE:V++,SCRIPT:V++,SCRIPT_ENDING:V++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.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,t.default)(r.ENTITIES).forEach(function(Y){var $=r.ENTITIES[Y],de=typeof $=="number"?String.fromCharCode($):$;r.ENTITIES[Y]=de});for(var Q in r.STATE)r.STATE[r.STATE[Q]]=Q;V=r.STATE;function G(Y,$,de){Y[$]&&Y[$](de)}function te(Y,$,de){Y.textNode&&q(Y),G(Y,$,de)}function q(Y){Y.textNode=se(Y.opt,Y.textNode),Y.textNode&&G(Y,"ontext",Y.textNode),Y.textNode=""}function se(Y,$){return Y.trim&&($=$.trim()),Y.normalize&&($=$.replace(/\s+/g," ")),$}function re(Y,$){return q(Y),Y.trackPosition&&($+=`
Line: `+Y.line+`
Column: `+Y.column+`
Char: `+Y.c),$=new Error($),Y.error=$,G(Y,"onerror",$),Y}function we(Y){return Y.sawRoot&&!Y.closedRoot&&Oe(Y,"Unclosed root tag"),Y.state!==V.BEGIN&&Y.state!==V.BEGIN_WHITESPACE&&Y.state!==V.TEXT&&re(Y,"Unexpected end"),q(Y),Y.c="",Y.closed=!0,G(Y,"onend"),c.call(Y,Y.strict,Y.opt),Y}function Oe(Y,$){if((typeof Y=="undefined"?"undefined":(0,d.default)(Y))!=="object"||!(Y instanceof c))throw new Error("bad call to strictFail");Y.strict&&re(Y,$)}function Me(Y){Y.strict||(Y.tagName=Y.tagName[Y.looseCase]());var $=Y.tags[Y.tags.length-1]||Y,de=Y.tag={name:Y.tagName,attributes:{}};Y.opt.xmlns&&(de.ns=$.ns),Y.attribList.length=0,te(Y,"onopentagstart",de)}function Qe(Y,$){var de=Y.indexOf(":"),be=de<0?["",Y]:Y.split(":"),Te=be[0],Be=be[1];return $&&Y==="xmlns"&&(Te="xmlns",Be=""),{prefix:Te,local:Be}}function Ve(Y){if(Y.strict||(Y.attribName=Y.attribName[Y.looseCase]()),Y.attribList.indexOf(Y.attribName)!==-1||Y.tag.attributes.hasOwnProperty(Y.attribName)){Y.attribName=Y.attribValue="";return}if(Y.opt.xmlns){var $=Qe(Y.attribName,!0),de=$.prefix,be=$.local;if(de==="xmlns")if(be==="xml"&&Y.attribValue!==w)Oe(Y,"xml: prefix must be bound to "+w+`
Actual: `+Y.attribValue);else if(be==="xmlns"&&Y.attribValue!==O)Oe(Y,"xmlns: prefix must be bound to "+O+`
Actual: `+Y.attribValue);else{var Te=Y.tag,Be=Y.tags[Y.tags.length-1]||Y;Te.ns===Be.ns&&(Te.ns=(0,e.default)(Be.ns)),Te.ns[be]=Y.attribValue}Y.attribList.push([Y.attribName,Y.attribValue])}else Y.tag.attributes[Y.attribName]=Y.attribValue,te(Y,"onattribute",{name:Y.attribName,value:Y.attribValue});Y.attribName=Y.attribValue=""}function dt(Y,$){if(Y.opt.xmlns){var de=Y.tag,be=Qe(Y.tagName);de.prefix=be.prefix,de.local=be.local,de.uri=de.ns[be.prefix]||"",de.prefix&&!de.uri&&(Oe(Y,"Unbound namespace prefix: "+(0,p.default)(Y.tagName)),de.uri=be.prefix);var Te=Y.tags[Y.tags.length-1]||Y;de.ns&&Te.ns!==de.ns&&(0,t.default)(de.ns).forEach(function(Gt){te(Y,"onopennamespace",{prefix:Gt,uri:de.ns[Gt]})});for(var Be=0,fe=Y.attribList.length;Be<fe;Be++){var xe=Y.attribList[Be],ke=xe[0],nt=xe[1],Ct=Qe(ke,!0),pt=Ct.prefix,He=Ct.local,nr=pt===""?"":de.ns[pt]||"",ht={name:ke,value:nt,prefix:pt,local:He,uri:nr};pt&&pt!=="xmlns"&&!nr&&(Oe(Y,"Unbound namespace prefix: "+(0,p.default)(pt)),ht.uri=pt),Y.tag.attributes[ke]=ht,te(Y,"onattribute",ht)}Y.attribList.length=0}Y.tag.isSelfClosing=!!$,Y.sawRoot=!0,Y.tags.push(Y.tag),te(Y,"onopentag",Y.tag),$||(!Y.noscript&&Y.tagName.toLowerCase()==="script"?Y.state=V.SCRIPT:Y.state=V.TEXT,Y.tag=null,Y.tagName=""),Y.attribName=Y.attribValue="",Y.attribList.length=0}function Fe(Y){if(!Y.tagName){Oe(Y,"Weird empty close tag."),Y.textNode+="</>",Y.state=V.TEXT;return}if(Y.script){if(Y.tagName!=="script"){Y.script+="</"+Y.tagName+">",Y.tagName="",Y.state=V.SCRIPT;return}te(Y,"onscript",Y.script),Y.script=""}var $=Y.tags.length,de=Y.tagName;Y.strict||(de=de[Y.looseCase]());for(var be=de;$--;){var Te=Y.tags[$];if(Te.name!==be)Oe(Y,"Unexpected close tag");else break}if($<0){Oe(Y,"Unmatched closing tag: "+Y.tagName),Y.textNode+="</"+Y.tagName+">",Y.state=V.TEXT;return}Y.tagName=de;for(var Be=Y.tags.length;Be-- >$;){var fe=Y.tag=Y.tags.pop();Y.tagName=Y.tag.name,te(Y,"onclosetag",Y.tagName);var xe={};for(var ke in fe.ns)xe[ke]=fe.ns[ke];var nt=Y.tags[Y.tags.length-1]||Y;Y.opt.xmlns&&fe.ns!==nt.ns&&(0,t.default)(fe.ns).forEach(function(Ct){var pt=fe.ns[Ct];te(Y,"onclosenamespace",{prefix:Ct,uri:pt})})}$===0&&(Y.closedRoot=!0),Y.tagName=Y.attribValue=Y.attribName="",Y.attribList.length=0,Y.state=V.TEXT}function ue(Y){var $=Y.entity,de=$.toLowerCase(),be,Te="";return Y.ENTITIES[$]?Y.ENTITIES[$]:Y.ENTITIES[de]?Y.ENTITIES[de]:($=de,$.charAt(0)==="#"&&($.charAt(1)==="x"?($=$.slice(2),be=parseInt($,16),Te=be.toString(16)):($=$.slice(1),be=parseInt($,10),Te=be.toString(10))),$=$.replace(/^0+/,""),isNaN(be)||Te.toLowerCase()!==$?(Oe(Y,"Invalid character entity"),"&"+Y.entity+";"):(0,S.default)(be))}function et(Y,$){$==="<"?(Y.state=V.OPEN_WAKA,Y.startTagPosition=Y.position):X($)||(Oe(Y,"Non-whitespace before first tag."),Y.textNode=$,Y.state=V.TEXT)}function he(Y,$){var de="";return $<Y.length&&(de=Y.charAt($)),de}function J(Y){var $=this;if(this.error)throw this.error;if($.closed)return re($,"Cannot write after close. Assign an onready handler.");if(Y===null)return we($);(typeof Y=="undefined"?"undefined":(0,d.default)(Y))==="object"&&(Y=Y.toString());for(var de=0,be="";!(be=he(Y,de++),$.c=be,!be);){$.trackPosition&&($.position++,be===`
`?($.line++,$.column=0):$.column++);switch($.state){case V.BEGIN:if($.state=V.BEGIN_WHITESPACE,be==="\uFEFF")continue;et($,be);continue;case V.BEGIN_WHITESPACE:et($,be);continue;case V.TEXT:if($.sawRoot&&!$.closedRoot){for(var Te=de-1;be&&be!=="<"&&be!=="&";)be=he(Y,de++),be&&$.trackPosition&&($.position++,be===`
`?($.line++,$.column=0):$.column++);$.textNode+=Y.substring(Te,de-1)}be==="<"&&!($.sawRoot&&$.closedRoot&&!$.strict)?($.state=V.OPEN_WAKA,$.startTagPosition=$.position):(!X(be)&&(!$.sawRoot||$.closedRoot)&&Oe($,"Text data outside of root node."),be==="&"?$.state=V.TEXT_ENTITY:$.textNode+=be);continue;case V.SCRIPT:be==="<"?$.state=V.SCRIPT_ENDING:$.script+=be;continue;case V.SCRIPT_ENDING:be==="/"?$.state=V.CLOSE_TAG:($.script+="<"+be,$.state=V.SCRIPT);continue;case V.OPEN_WAKA:if(be==="!")$.state=V.SGML_DECL,$.sgmlDecl="";else if(!X(be))if(K(k,be))$.state=V.OPEN_TAG,$.tagName=be;else if(be==="/")$.state=V.CLOSE_TAG,$.tagName="";else if(be==="?")$.state=V.PROC_INST,$.procInstName=$.procInstBody="";else{if(Oe($,"Unencoded <"),$.startTagPosition+1<$.position){var Be=$.position-$.startTagPosition;be=new Array(Be).join(" ")+be}$.textNode+="<"+be,$.state=V.TEXT}continue;case V.SGML_DECL:($.sgmlDecl+be).toUpperCase()===_?(te($,"onopencdata"),$.state=V.CDATA,$.sgmlDecl="",$.cdata=""):$.sgmlDecl+be==="--"?($.state=V.COMMENT,$.comment="",$.sgmlDecl=""):($.sgmlDecl+be).toUpperCase()===C?($.state=V.DOCTYPE,($.doctype||$.sawRoot)&&Oe($,"Inappropriately located doctype declaration"),$.doctype="",$.sgmlDecl=""):be===">"?(te($,"onsgmldeclaration",$.sgmlDecl),$.sgmlDecl="",$.state=V.TEXT):(F(be)&&($.state=V.SGML_DECL_QUOTED),$.sgmlDecl+=be);continue;case V.SGML_DECL_QUOTED:be===$.q&&($.state=V.SGML_DECL,$.q=""),$.sgmlDecl+=be;continue;case V.DOCTYPE:be===">"?($.state=V.TEXT,te($,"ondoctype",$.doctype),$.doctype=!0):($.doctype+=be,be==="["?$.state=V.DOCTYPE_DTD:F(be)&&($.state=V.DOCTYPE_QUOTED,$.q=be));continue;case V.DOCTYPE_QUOTED:$.doctype+=be,be===$.q&&($.q="",$.state=V.DOCTYPE);continue;case V.DOCTYPE_DTD:$.doctype+=be,be==="]"?$.state=V.DOCTYPE:F(be)&&($.state=V.DOCTYPE_DTD_QUOTED,$.q=be);continue;case V.DOCTYPE_DTD_QUOTED:$.doctype+=be,be===$.q&&($.state=V.DOCTYPE_DTD,$.q="");continue;case V.COMMENT:be==="-"?$.state=V.COMMENT_ENDING:$.comment+=be;continue;case V.COMMENT_ENDING:be==="-"?($.state=V.COMMENT_ENDED,$.comment=se($.opt,$.comment),$.comment&&te($,"oncomment",$.comment),$.comment=""):($.comment+="-"+be,$.state=V.COMMENT);continue;case V.COMMENT_ENDED:be!==">"?(Oe($,"Malformed comment"),$.comment+="--"+be,$.state=V.COMMENT):$.state=V.TEXT;continue;case V.CDATA:be==="]"?$.state=V.CDATA_ENDING:$.cdata+=be;continue;case V.CDATA_ENDING:be==="]"?$.state=V.CDATA_ENDING_2:($.cdata+="]"+be,$.state=V.CDATA);continue;case V.CDATA_ENDING_2:be===">"?($.cdata&&te($,"oncdata",$.cdata),te($,"onclosecdata"),$.cdata="",$.state=V.TEXT):be==="]"?$.cdata+="]":($.cdata+="]]"+be,$.state=V.CDATA);continue;case V.PROC_INST:be==="?"?$.state=V.PROC_INST_ENDING:X(be)?$.state=V.PROC_INST_BODY:$.procInstName+=be;continue;case V.PROC_INST_BODY:if(!$.procInstBody&&X(be))continue;be==="?"?$.state=V.PROC_INST_ENDING:$.procInstBody+=be;continue;case V.PROC_INST_ENDING:be===">"?(te($,"onprocessinginstruction",{name:$.procInstName,body:$.procInstBody}),$.procInstName=$.procInstBody="",$.state=V.TEXT):($.procInstBody+="?"+be,$.state=V.PROC_INST_BODY);continue;case V.OPEN_TAG:K(M,be)?$.tagName+=be:(Me($),be===">"?dt($):be==="/"?$.state=V.OPEN_TAG_SLASH:(X(be)||Oe($,"Invalid character in tag name"),$.state=V.ATTRIB));continue;case V.OPEN_TAG_SLASH:be===">"?(dt($,!0),Fe($)):(Oe($,"Forward-slash in opening tag not followed by >"),$.state=V.ATTRIB);continue;case V.ATTRIB:if(X(be))continue;be===">"?dt($):be==="/"?$.state=V.OPEN_TAG_SLASH:K(k,be)?($.attribName=be,$.attribValue="",$.state=V.ATTRIB_NAME):Oe($,"Invalid attribute name");continue;case V.ATTRIB_NAME:be==="="?$.state=V.ATTRIB_VALUE:be===">"?(Oe($,"Attribute without value"),$.attribValue=$.attribName,Ve($),dt($)):X(be)?$.state=V.ATTRIB_NAME_SAW_WHITE:K(M,be)?$.attribName+=be:Oe($,"Invalid attribute name");continue;case V.ATTRIB_NAME_SAW_WHITE:if(be==="=")$.state=V.ATTRIB_VALUE;else{if(X(be))continue;Oe($,"Attribute without value"),$.tag.attributes[$.attribName]="",$.attribValue="",te($,"onattribute",{name:$.attribName,value:""}),$.attribName="",be===">"?dt($):K(k,be)?($.attribName=be,$.state=V.ATTRIB_NAME):(Oe($,"Invalid attribute name"),$.state=V.ATTRIB)}continue;case V.ATTRIB_VALUE:if(X(be))continue;F(be)?($.q=be,$.state=V.ATTRIB_VALUE_QUOTED):(Oe($,"Unquoted attribute value"),$.state=V.ATTRIB_VALUE_UNQUOTED,$.attribValue=be);continue;case V.ATTRIB_VALUE_QUOTED:if(be!==$.q){be==="&"?$.state=V.ATTRIB_VALUE_ENTITY_Q:$.attribValue+=be;continue}Ve($),$.q="",$.state=V.ATTRIB_VALUE_CLOSED;continue;case V.ATTRIB_VALUE_CLOSED:X(be)?$.state=V.ATTRIB:be===">"?dt($):be==="/"?$.state=V.OPEN_TAG_SLASH:K(k,be)?(Oe($,"No whitespace between attributes"),$.attribName=be,$.attribValue="",$.state=V.ATTRIB_NAME):Oe($,"Invalid attribute name");continue;case V.ATTRIB_VALUE_UNQUOTED:if(!j(be)){be==="&"?$.state=V.ATTRIB_VALUE_ENTITY_U:$.attribValue+=be;continue}Ve($),be===">"?dt($):$.state=V.ATTRIB;continue;case V.CLOSE_TAG:if($.tagName)be===">"?Fe($):K(M,be)?$.tagName+=be:$.script?($.script+="</"+$.tagName,$.tagName="",$.state=V.SCRIPT):(X(be)||Oe($,"Invalid tagname in closing tag"),$.state=V.CLOSE_TAG_SAW_WHITE);else{if(X(be))continue;z(k,be)?$.script?($.script+="</"+be,$.state=V.SCRIPT):Oe($,"Invalid tagname in closing tag."):$.tagName=be}continue;case V.CLOSE_TAG_SAW_WHITE:if(X(be))continue;be===">"?Fe($):Oe($,"Invalid characters in closing tag");continue;case V.TEXT_ENTITY:case V.ATTRIB_VALUE_ENTITY_Q:case V.ATTRIB_VALUE_ENTITY_U:var fe,xe;switch($.state){case V.TEXT_ENTITY:fe=V.TEXT,xe="textNode";break;case V.ATTRIB_VALUE_ENTITY_Q:fe=V.ATTRIB_VALUE_QUOTED,xe="attribValue";break;case V.ATTRIB_VALUE_ENTITY_U:fe=V.ATTRIB_VALUE_UNQUOTED,xe="attribValue";break}be===";"?($[xe]+=ue($),$.entity="",$.state=fe):K($.entity.length?P:U,be)?$.entity+=be:(Oe($,"Invalid character in entity name"),$[xe]+="&"+$.entity+be,$.entity="",$.state=fe);continue;default:throw new Error($,"Unknown state: "+$.state)}}return $.position>=$.bufferCheckPosition&&h($),$}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */S.default||function(){var Y=String.fromCharCode,$=Math.floor,de=function(){var Te=16384,Be=[],fe,xe,ke=-1,nt=arguments.length;if(!nt)return"";for(var Ct="";++ke<nt;){var pt=Number(arguments[ke]);if(!isFinite(pt)||pt<0||pt>1114111||$(pt)!==pt)throw RangeError("Invalid code point: "+pt);pt<=65535?Be.push(pt):(pt-=65536,fe=(pt>>10)+55296,xe=pt%1024+56320,Be.push(fe,xe)),(ke+1===nt||Be.length>Te)&&(Ct+=Y.apply(null,Be),Be.length=0)}return Ct};a.default?Object.defineProperty(String,"fromCodePoint",{value:de,configurable:!0,writable:!0}):String.fromCodePoint=de}()})(typeof n=="undefined"?(void 0).sax={}:n)}).call(this,R("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(R,D,n){D.exports=S;var y=R("events").EventEmitter,g=R("inherits");g(S,y),S.Readable=R("readable-stream/readable.js"),S.Writable=R("readable-stream/writable.js"),S.Duplex=R("readable-stream/duplex.js"),S.Transform=R("readable-stream/transform.js"),S.PassThrough=R("readable-stream/passthrough.js"),S.Stream=S;function S(){y.call(this)}S.prototype.pipe=function(m,p){var f=this;function d(u){m.writable&&(m.write(u)===!1&&f.pause&&f.pause())}f.on("data",d);function l(){f.readable&&f.resume&&f.resume()}m.on("drain",l),!m._isStdio&&(!p||p.end!==!1)&&(f.on("end",i),f.on("close",t));var a=!1;function i(){if(a)return;a=!0,m.end()}function t(){if(a)return;a=!0,typeof m.destroy=="function"&&m.destroy()}function o(u){if(e(),y.listenerCount(this,"error")===0)throw u}f.on("error",o),m.on("error",o);function e(){f.removeListener("data",d),m.removeListener("drain",l),f.removeListener("end",i),f.removeListener("close",t),f.removeListener("error",o),m.removeListener("error",o),f.removeListener("end",e),f.removeListener("close",e),m.removeListener("close",e)}return f.on("end",e),f.on("close",e),m.on("close",e),m.emit("pipe",f),m}},{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(R,D,n){(function(y){var g=R("./lib/request"),S=R("./lib/response"),m=R("xtend"),p=R("builtin-status-codes"),f=R("url"),d=n;d.request=function(l,a){typeof l=="string"?l=f.parse(l):l=m(l);var i=y.location.protocol.search(/^https?:$/)===-1?"http:":"",t=l.protocol||i,o=l.hostname||l.host,e=l.port,u=l.path||"/";o&&o.indexOf(":")!==-1&&(o="["+o+"]"),l.url=(o?t+"//"+o:"")+(e?":"+e:"")+u,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var r=new g(l);return a&&r.on("response",a),r},d.get=function(a,i){var t=d.request(a,i);return t.end(),t},d.ClientRequest=g,d.IncomingMessage=S.IncomingMessage,d.Agent=function(){},d.Agent.defaultMaxSockets=4,d.globalAgent=new d.Agent,d.STATUS_CODES=p,d.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(R,D,n){(function(y){"use strict";n.fetch=d(y.fetch)&&d(y.ReadableStream),n.writableStream=d(y.WritableStream),n.abortController=d(y.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(l){}var g;function S(){if(g!==void 0)return g;if(y.XMLHttpRequest){g=new y.XMLHttpRequest;try{g.open("GET",y.XDomainRequest?"/":"https://example.com")}catch(l){g=null}}else g=null;return g}function m(l){var a=S();if(!a)return!1;try{return a.responseType=l,a.responseType===l}catch(i){}return!1}var p=typeof y.ArrayBuffer!="undefined",f=p&&d(y.ArrayBuffer.prototype.slice);n.arraybuffer=n.fetch||p&&m("arraybuffer"),n.msstream=!n.fetch&&f&&m("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&p&&m("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||(S()?d(S().overrideMimeType):!1),n.vbArray=d(y.VBArray);function d(l){return typeof l=="function"}g=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(R,D,n){(function(y,g,S){"use strict";var m=R("babel-runtime/core-js/object/keys"),p=f(m);function f(h){return h&&h.__esModule?h:{default:h}}var d=R("./capability"),l=R("inherits"),a=R("./response"),i=R("readable-stream"),t=R("to-arraybuffer"),o=a.IncomingMessage,e=a.readyStates;function u(h,v){return d.fetch&&v?"fetch":d.mozchunkedarraybuffer?"moz-chunked-arraybuffer":d.msstream?"ms-stream":d.arraybuffer&&h?"arraybuffer":d.vbArray&&h?"text:vbarray":"text"}var r=D.exports=function(h){var v=this;i.Writable.call(v),v._opts=h,v._body=[],v._headers={},h.auth&&v.setHeader("Authorization","Basic "+new S(h.auth).toString("base64")),(0,p.default)(h.headers).forEach(function(x){v.setHeader(x,h.headers[x])});var A,b=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!d.abortController)b=!1,A=!0;else if(h.mode==="prefer-streaming")A=!1;else if(h.mode==="allow-wrong-content-type")A=!d.overrideMimeType;else if(!h.mode||h.mode==="default"||h.mode==="prefer-fast")A=!0;else throw new Error("Invalid value for opts.mode");v._mode=u(A,b),v._fetchTimer=null,v.on("finish",function(){v._onFinish()})};l(r,i.Writable),r.prototype.setHeader=function(h,v){var A=this,b=h.toLowerCase();if(c.indexOf(b)!==-1)return;A._headers[b]={name:h,value:v}},r.prototype.getHeader=function(h){var v=this._headers[h.toLowerCase()];return v?v.value:null},r.prototype.removeHeader=function(h){var v=this;delete v._headers[h.toLowerCase()]},r.prototype._onFinish=function(){var h=this;if(h._destroyed)return;var v=h._opts,A=h._headers,b=null;v.method!=="GET"&&v.method!=="HEAD"&&(d.arraybuffer?b=t(S.concat(h._body)):d.blobConstructor?b=new g.Blob(h._body.map(function(w){return t(w)}),{type:(A["content-type"]||{}).value||""}):b=S.concat(h._body).toString());var x=[];if((0,p.default)(A).forEach(function(w){var O=A[w].name,I=A[w].value;Array.isArray(I)?I.forEach(function(k){x.push([O,k])}):x.push([O,I])}),h._mode==="fetch"){var E=null,T=null;if(d.abortController){var _=new AbortController;E=_.signal,h._fetchAbortController=_,"requestTimeout"in v&&v.requestTimeout!==0&&(h._fetchTimer=g.setTimeout(function(){h.emit("requestTimeout"),h._fetchAbortController&&h._fetchAbortController.abort()},v.requestTimeout))}g.fetch(h._opts.url,{method:h._opts.method,headers:x,body:b||void 0,mode:"cors",credentials:v.withCredentials?"include":"same-origin",signal:E}).then(function(w){h._fetchResponse=w,h._connect()},function(w){g.clearTimeout(h._fetchTimer),h._destroyed||h.emit("error",w)})}else{var C=h._xhr=new g.XMLHttpRequest;try{C.open(h._opts.method,h._opts.url,!0)}catch(w){y.nextTick(function(){h.emit("error",w)});return}"responseType"in C&&(C.responseType=h._mode.split(":")[0]),"withCredentials"in C&&(C.withCredentials=!!v.withCredentials),h._mode==="text"&&"overrideMimeType"in C&&C.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in v&&(C.timeout=v.requestTimeout,C.ontimeout=function(){h.emit("requestTimeout")}),x.forEach(function(w){C.setRequestHeader(w[0],w[1])}),h._response=null,C.onreadystatechange=function(){switch(C.readyState){case e.LOADING:case e.DONE:h._onXHRProgress();break}},h._mode==="moz-chunked-arraybuffer"&&(C.onprogress=function(){h._onXHRProgress()}),C.onerror=function(){if(h._destroyed)return;h.emit("error",new Error("XHR error"))};try{C.send(b)}catch(w){y.nextTick(function(){h.emit("error",w)});return}}};function s(h){try{var v=h.status;return v!==null&&v!==0}catch(A){return!1}}r.prototype._onXHRProgress=function(){var h=this;if(!s(h._xhr)||h._destroyed)return;h._response||h._connect(),h._response._onXHRProgress()},r.prototype._connect=function(){var h=this;if(h._destroyed)return;h._response=new o(h._xhr,h._fetchResponse,h._mode,h._fetchTimer),h._response.on("error",function(v){h.emit("error",v)}),h.emit("response",h._response)},r.prototype._write=function(h,v,A){var b=this;b._body.push(h),A()},r.prototype.abort=r.prototype.destroy=function(){var h=this;h._destroyed=!0,g.clearTimeout(h._fetchTimer),h._response&&(h._response._destroyed=!0),h._xhr?h._xhr.abort():h._fetchAbortController&&h._fetchAbortController.abort()},r.prototype.end=function(h,v,A){var b=this;typeof h=="function"&&(A=h,h=void 0),i.Writable.prototype.end.call(b,h,v,A)},r.prototype.flushHeaders=function(){},r.prototype.setTimeout=function(){},r.prototype.setNoDelay=function(){},r.prototype.setSocketKeepAlive=function(){};var c=["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,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("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(R,D,n){(function(y,g,S){"use strict";var m=R("babel-runtime/core-js/promise"),p=f(m);function f(o){return o&&o.__esModule?o:{default:o}}var d=R("./capability"),l=R("inherits"),a=R("readable-stream"),i=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=n.IncomingMessage=function(o,e,u,r){var s=this;if(a.Readable.call(s),s._mode=u,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",function(){y.nextTick(function(){s.emit("close")})}),u==="fetch"){var c=function E(){v.read().then(function(T){if(s._destroyed)return;if(T.done){g.clearTimeout(r),s.push(null);return}s.push(new S(T.value)),E()}).catch(function(T){g.clearTimeout(r),s._destroyed||s.emit("error",T)})};if(s._fetchResponse=e,s.url=e.url,s.statusCode=e.status,s.statusMessage=e.statusText,e.headers.forEach(function(E,T){s.headers[T.toLowerCase()]=E,s.rawHeaders.push(T,E)}),d.writableStream){var h=new WritableStream({write:function(T){return new p.default(function(_,C){s._destroyed?C():s.push(new S(T))?_():s._resumeFetch=_})},close:function(){g.clearTimeout(r),s._destroyed||s.push(null)},abort:function(T){s._destroyed||s.emit("error",T)}});try{e.body.pipeTo(h).catch(function(E){g.clearTimeout(r),s._destroyed||s.emit("error",E)});return}catch(E){}}var v=e.body.getReader();c()}else{s._xhr=o,s._pos=0,s.url=o.responseURL,s.statusCode=o.status,s.statusMessage=o.statusText;var A=o.getAllResponseHeaders().split(/\r?\n/);if(A.forEach(function(E){var T=E.match(/^([^:]+):\s*(.*)/);if(T){var _=T[1].toLowerCase();_==="set-cookie"?(s.headers[_]===void 0&&(s.headers[_]=[]),s.headers[_].push(T[2])):s.headers[_]!==void 0?s.headers[_]+=", "+T[2]:s.headers[_]=T[2],s.rawHeaders.push(T[1],T[2])}}),s._charset="x-user-defined",!d.overrideMimeType){var b=s.rawHeaders["mime-type"];if(b){var x=b.match(/;\s*charset=([^;])(;|$)/);x&&(s._charset=x[1].toLowerCase())}s._charset||(s._charset="utf-8")}}};l(t,a.Readable),t.prototype._read=function(){var o=this,e=o._resumeFetch;e&&(o._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var o=this,e=o._xhr,u=null;switch(o._mode){case"text:vbarray":if(e.readyState!==i.DONE)break;try{u=new g.VBArray(e.responseBody).toArray()}catch(v){}if(u!==null){o.push(new S(u));break}case"text":try{u=e.responseText}catch(v){o._mode="text:vbarray";break}if(u.length>o._pos){var r=u.substr(o._pos);if(o._charset==="x-user-defined"){for(var s=new S(r.length),c=0;c<r.length;c++)s[c]=r.charCodeAt(c)&255;o.push(s)}else o.push(r,o._charset);o._pos=u.length}break;case"arraybuffer":if(e.readyState!==i.DONE||!e.response)break;u=e.response,o.push(new S(new Uint8Array(u)));break;case"moz-chunked-arraybuffer":if(u=e.response,e.readyState!==i.LOADING||!u)break;o.push(new S(new Uint8Array(u)));break;case"ms-stream":if(u=e.response,e.readyState!==i.LOADING)break;var h=new g.MSStreamReader;h.onprogress=function(){h.result.byteLength>o._pos&&(o.push(new S(new Uint8Array(h.result.slice(o._pos)))),o._pos=h.result.byteLength)},h.onload=function(){o.push(null)},h.readAsArrayBuffer(u);break}o._xhr.readyState===i.DONE&&o._mode!=="ms-stream"&&o.push(null)}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(R,D,n){"use strict";var y=R("safe-buffer").Buffer,g=y.isEncoding||function(h){h=""+h;switch(h&&h.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 S(h){if(!h)return"utf8";for(var v;;)switch(h){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 h;default:if(v)return;h=(""+h).toLowerCase(),v=!0}}function m(h){var v=S(h);if(typeof v!="string"&&(y.isEncoding===g||!g(h)))throw new Error("Unknown encoding: "+h);return v||h}n.StringDecoder=p;function p(h){this.encoding=m(h);var v;switch(this.encoding){case"utf16le":this.text=o,this.end=e,v=4;break;case"utf8":this.fillLast=a,v=4;break;case"base64":this.text=u,this.end=r,v=3;break;default:this.write=s,this.end=c;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(v)}p.prototype.write=function(h){if(h.length===0)return"";var v,A;if(this.lastNeed){if(v=this.fillLast(h),v===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<h.length?v?v+this.text(h,A):this.text(h,A):v||""},p.prototype.end=t,p.prototype.text=i,p.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length};function f(h){return h<=127?0:h>>5===6?2:h>>4===14?3:h>>3===30?4:h>>6===2?-1:-2}function d(h,v,A){var b=v.length-1;if(b<A)return 0;var x=f(v[b]);return x>=0?(x>0&&(h.lastNeed=x-1),x):--b<A||x===-2?0:(x=f(v[b]),x>=0?(x>0&&(h.lastNeed=x-2),x):--b<A||x===-2?0:(x=f(v[b]),x>=0?(x>0&&(x===2?x=0:h.lastNeed=x-3),x):0))}function l(h,v,A){if((v[0]&192)!==128)return h.lastNeed=0,"\uFFFD";if(h.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return h.lastNeed=1,"\uFFFD";if(h.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return h.lastNeed=2,"\uFFFD"}}function a(h){var v=this.lastTotal-this.lastNeed,A=l(this,h,v);if(A!==void 0)return A;if(this.lastNeed<=h.length)return h.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,v,0,h.length),this.lastNeed-=h.length}function i(h,v){var A=d(this,h,v);if(!this.lastNeed)return h.toString("utf8",v);this.lastTotal=A;var b=h.length-(A-this.lastNeed);return h.copy(this.lastChar,0,b),h.toString("utf8",v,b)}function t(h){var v=h&&h.length?this.write(h):"";return this.lastNeed?v+"\uFFFD":v}function o(h,v){if((h.length-v)%2===0){var A=h.toString("utf16le",v);if(A){var b=A.charCodeAt(A.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",v,h.length-1)}function e(h){var v=h&&h.length?this.write(h):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,A)}return v}function u(h,v){var A=(h.length-v)%3;return A===0?h.toString("base64",v):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",v,h.length-A))}function r(h){var v=h&&h.length?this.write(h):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function s(h){return h.toString(this.encoding)}function c(h){return h&&h.length?this.write(h):""}},{"safe-buffer":228}],236:[function(R,D,n){(function(y,g){var S=R("process/browser.js").nextTick,m=Function.prototype.apply,p=Array.prototype.slice,f={},d=0;n.setTimeout=function(){return new l(m.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new l(m.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(a){a.close()};function l(a,i){this._id=a,this._clearFn=i}l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(a,i){clearTimeout(a._idleTimeoutId),a._idleTimeout=i},n.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},n._unrefActive=n.active=function(a){clearTimeout(a._idleTimeoutId);var i=a._idleTimeout;i>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},i))},n.setImmediate=typeof y=="function"?y:function(a){var i=d++,t=arguments.length<2?!1:p.call(arguments,1);return f[i]=!0,S(function(){f[i]&&(t?a.apply(null,t):a.call(null),n.clearImmediate(i))}),i},n.clearImmediate=typeof g=="function"?g:function(a){delete f[a]}}).call(this,R("timers").setImmediate,R("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(R,D,n){var y=R("buffer").Buffer;D.exports=function(g){if(g instanceof Uint8Array){if(g.byteOffset===0&&g.byteLength===g.buffer.byteLength)return g.buffer;if(typeof g.buffer.slice=="function")return g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)}if(y.isBuffer(g)){for(var S=new Uint8Array(g.length),m=g.length,p=0;p<m;p++)S[p]=g[p];return S.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(R,D,n){"use strict";var y=R("punycode"),g=R("./util");n.parse=v,n.resolve=b,n.resolveObject=x,n.format=A,n.Url=S;function S(){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 m=/^([a-z0-9.+-]+:)/i,p=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r",`
`," "],l=["{","}","|","\\","^","`"].concat(d),a=["'"].concat(l),i=["%","/","?",";","#"].concat(a),t=["/","?","#"],o=255,e=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,r={javascript:!0,"javascript:":!0},s={javascript:!0,"javascript:":!0},c={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},h=R("querystring");function v(E,T,_){if(E&&g.isObject(E)&&E instanceof S)return E;var C=new S;return C.parse(E,T,_),C}S.prototype.parse=function(E,T,_){if(!g.isString(E))throw new TypeError("Parameter 'url' must be a string, not "+typeof E);var C=E.indexOf("?"),w=C!==-1&&C<E.indexOf("#")?"?":"#",O=E.split(w),I=/\\/g;O[0]=O[0].replace(I,"/"),E=O.join(w);var k=E;if(k=k.trim(),!_&&E.split("#").length===1){var M=f.exec(k);if(M)return this.path=k,this.href=k,this.pathname=M[1],M[2]?(this.search=M[2],T?this.query=h.parse(this.search.substr(1)):this.query=this.search.substr(1)):T&&(this.search="",this.query={}),this}var U=m.exec(k);if(U){U=U[0];var P=U.toLowerCase();this.protocol=P,k=k.substr(U.length)}if(_||U||k.match(/^\/\/[^@\/]+@[^@\/]+/)){var X=k.substr(0,2)==="//";X&&!(U&&s[U])&&(k=k.substr(2),this.slashes=!0)}if(!s[U]&&(X||U&&!c[U])){for(var F=-1,j=0;j<t.length;j++){var K=k.indexOf(t[j]);K!==-1&&(F===-1||K<F)&&(F=K)}var z,V;F===-1?V=k.lastIndexOf("@"):V=k.lastIndexOf("@",F),V!==-1&&(z=k.slice(0,V),k=k.slice(V+1),this.auth=decodeURIComponent(z)),F=-1;for(var j=0;j<i.length;j++){var K=k.indexOf(i[j]);K!==-1&&(F===-1||K<F)&&(F=K)}F===-1&&(F=k.length),this.host=k.slice(0,F),k=k.slice(F),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var G=this.hostname.split(/\./),j=0,te=G.length;j<te;j++){var q=G[j];if(!q)continue;if(!q.match(e)){for(var se="",re=0,we=q.length;re<we;re++)q.charCodeAt(re)>127?se+="x":se+=q[re];if(!se.match(e)){var Oe=G.slice(0,j),Me=G.slice(j+1),Qe=q.match(u);Qe&&(Oe.push(Qe[1]),Me.unshift(Qe[2])),Me.length&&(k="/"+Me.join(".")+k),this.hostname=Oe.join(".");break}}}this.hostname.length>o?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=y.toASCII(this.hostname));var Ve=this.port?":"+this.port:"",dt=this.hostname||"";this.host=dt+Ve,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),k[0]!=="/"&&(k="/"+k))}if(!r[P])for(var j=0,te=a.length;j<te;j++){var Fe=a[j];if(k.indexOf(Fe)===-1)continue;var ue=encodeURIComponent(Fe);ue===Fe&&(ue=escape(Fe)),k=k.split(Fe).join(ue)}var et=k.indexOf("#");et!==-1&&(this.hash=k.substr(et),k=k.slice(0,et));var he=k.indexOf("?");if(he!==-1?(this.search=k.substr(he),this.query=k.substr(he+1),T&&(this.query=h.parse(this.query)),k=k.slice(0,he)):T&&(this.search="",this.query={}),k&&(this.pathname=k),c[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ve=this.pathname||"",J=this.search||"";this.path=Ve+J}return this.href=this.format(),this};function A(E){return g.isString(E)&&(E=v(E)),E instanceof S?E.format():S.prototype.format.call(E)}S.prototype.format=function(){var E=this.auth||"";E&&(E=encodeURIComponent(E),E=E.replace(/%3A/i,":"),E+="@");var T=this.protocol||"",_=this.pathname||"",C=this.hash||"",w=!1,O="";this.host?w=E+this.host:this.hostname&&(w=E+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(w+=":"+this.port)),this.query&&g.isObject(this.query)&&Object.keys(this.query).length&&(O=h.stringify(this.query));var I=this.search||O&&"?"+O||"";return T&&T.substr(-1)!==":"&&(T+=":"),this.slashes||(!T||c[T])&&w!==!1?(w="//"+(w||""),_&&_.charAt(0)!=="/"&&(_="/"+_)):w||(w=""),C&&C.charAt(0)!=="#"&&(C="#"+C),I&&I.charAt(0)!=="?"&&(I="?"+I),_=_.replace(/[?#]/g,function(k){return encodeURIComponent(k)}),I=I.replace("#","%23"),T+w+_+I+C};function b(E,T){return v(E,!1,!0).resolve(T)}S.prototype.resolve=function(E){return this.resolveObject(v(E,!1,!0)).format()};function x(E,T){return E?v(E,!1,!0).resolveObject(T):T}S.prototype.resolveObject=function(E){if(g.isString(E)){var T=new S;T.parse(E,!1,!0),E=T}for(var _=new S,C=Object.keys(this),w=0;w<C.length;w++){var O=C[w];_[O]=this[O]}if(_.hash=E.hash,E.href==="")return _.href=_.format(),_;if(E.slashes&&!E.protocol){for(var I=Object.keys(E),k=0;k<I.length;k++){var M=I[k];M!=="protocol"&&(_[M]=E[M])}return c[_.protocol]&&_.hostname&&!_.pathname&&(_.path=_.pathname="/"),_.href=_.format(),_}if(E.protocol&&E.protocol!==_.protocol){if(!c[E.protocol]){for(var U=Object.keys(E),P=0;P<U.length;P++){var X=U[P];_[X]=E[X]}return _.href=_.format(),_}if(_.protocol=E.protocol,!E.host&&!s[E.protocol]){for(var te=(E.pathname||"").split("/");te.length&&!(E.host=te.shift()););E.host||(E.host=""),E.hostname||(E.hostname=""),te[0]!==""&&te.unshift(""),te.length<2&&te.unshift(""),_.pathname=te.join("/")}else _.pathname=E.pathname;if(_.search=E.search,_.query=E.query,_.host=E.host||"",_.auth=E.auth,_.hostname=E.hostname||E.host,_.port=E.port,_.pathname||_.search){var F=_.pathname||"",j=_.search||"";_.path=F+j}return _.slashes=_.slashes||E.slashes,_.href=_.format(),_}var K=_.pathname&&_.pathname.charAt(0)==="/",z=E.host||E.pathname&&E.pathname.charAt(0)==="/",V=z||K||_.host&&E.pathname,Q=V,G=_.pathname&&_.pathname.split("/")||[],te=E.pathname&&E.pathname.split("/")||[],q=_.protocol&&!c[_.protocol];if(q&&(_.hostname="",_.port=null,_.host&&(G[0]===""?G[0]=_.host:G.unshift(_.host)),_.host="",E.protocol&&(E.hostname=null,E.port=null,E.host&&(te[0]===""?te[0]=E.host:te.unshift(E.host)),E.host=null),V=V&&(te[0]===""||G[0]==="")),z)_.host=E.host||E.host===""?E.host:_.host,_.hostname=E.hostname||E.hostname===""?E.hostname:_.hostname,_.search=E.search,_.query=E.query,G=te;else if(te.length)G||(G=[]),G.pop(),G=G.concat(te),_.search=E.search,_.query=E.query;else if(!g.isNullOrUndefined(E.search)){if(q){_.hostname=_.host=G.shift();var se=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;se&&(_.auth=se.shift(),_.host=_.hostname=se.shift())}return _.search=E.search,_.query=E.query,(!g.isNull(_.pathname)||!g.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.href=_.format(),_}if(!G.length)return _.pathname=null,_.search?_.path="/"+_.search:_.path=null,_.href=_.format(),_;for(var re=G.slice(-1)[0],we=(_.host||E.host||G.length>1)&&(re==="."||re==="..")||re==="",Oe=0,Me=G.length;Me>=0;Me--)re=G[Me],re==="."?G.splice(Me,1):re===".."?(G.splice(Me,1),Oe++):Oe&&(G.splice(Me,1),Oe--);if(!V&&!Q)for(;Oe--;Oe)G.unshift("..");V&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),we&&G.join("/").substr(-1)!=="/"&&G.push("");var Qe=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(q){_.hostname=_.host=Qe?"":G.length?G.shift():"";var se=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;se&&(_.auth=se.shift(),_.host=_.hostname=se.shift())}return V=V||_.host&&G.length,V&&!Qe&&G.unshift(""),G.length?_.pathname=G.join("/"):(_.pathname=null,_.path=null),(!g.isNull(_.pathname)||!g.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.auth=E.auth||_.auth,_.slashes=_.slashes||E.slashes,_.href=_.format(),_},S.prototype.parseHost=function(){var E=this.host,T=p.exec(E);T&&(T=T[0],T!==":"&&(this.port=T.substr(1)),E=E.substr(0,E.length-T.length)),E&&(this.hostname=E)}},{"./util":239,punycode:209,querystring:212}],239:[function(R,D,n){"use strict";D.exports={isString:function(g){return typeof g=="string"},isObject:function(g){return typeof g=="object"&&g!==null},isNull:function(g){return g===null},isNullOrUndefined:function(g){return g==null}}},{}],240:[function(R,D,n){(function(y){D.exports=g;function g(m,p){if(S("noDeprecation"))return m;var f=!1;function d(){if(!f){if(S("throwDeprecation"))throw new Error(p);S("traceDeprecation")?console.trace(p):console.warn(p),f=!0}return m.apply(this,arguments)}return d}function S(m){try{if(!y.localStorage)return!1}catch(f){return!1}var p=y.localStorage[m];return p==null?!1:String(p).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(R,D,n){typeof Object.create=="function"?D.exports=function(g,S){g.super_=S,g.prototype=Object.create(S.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})}:D.exports=function(g,S){g.super_=S;var m=function(){};m.prototype=S.prototype,g.prototype=new m,g.prototype.constructor=g}},{}],242:[function(R,D,n){D.exports=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}},{}],243:[function(R,D,n){(function(y,g){var S=/%[sdj%]/g;n.format=function(F){if(!b(F)){for(var j=[],K=0;K<arguments.length;K++)j.push(f(arguments[K]));return j.join(" ")}for(var K=1,z=arguments,V=z.length,Q=String(F).replace(S,function(te){if(te==="%%")return"%";if(K>=V)return te;switch(te){case"%s":return String(z[K++]);case"%d":return Number(z[K++]);case"%j":try{return JSON.stringify(z[K++])}catch(q){return"[Circular]"}default:return te}}),G=z[K];K<V;G=z[++K])h(G)||!_(G)?Q+=" "+G:Q+=" "+f(G);return Q},n.deprecate=function(F,j){if(E(g.process))return function(){return n.deprecate(F,j).apply(this,arguments)};if(y.noDeprecation===!0)return F;var K=!1;function z(){if(!K){if(y.throwDeprecation)throw new Error(j);y.traceDeprecation?console.trace(j):console.error(j),K=!0}return F.apply(this,arguments)}return z};var m={},p;n.debuglog=function(F){if(E(p)&&(p=y.env.NODE_DEBUG||""),F=F.toUpperCase(),!m[F])if(new RegExp("\\b"+F+"\\b","i").test(p)){var j=y.pid;m[F]=function(){var K=n.format.apply(n,arguments);console.error("%s %d: %s",F,j,K)}}else m[F]=function(){};return m[F]};function f(F,j){var K={seen:[],stylize:l};return arguments.length>=3&&(K.depth=arguments[2]),arguments.length>=4&&(K.colors=arguments[3]),c(j)?K.showHidden=j:j&&n._extend(K,j),E(K.showHidden)&&(K.showHidden=!1),E(K.depth)&&(K.depth=2),E(K.colors)&&(K.colors=!1),E(K.customInspect)&&(K.customInspect=!0),K.colors&&(K.stylize=d),i(K,F,K.depth)}n.inspect=f,f.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]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(F,j){var K=f.styles[j];return K?"["+f.colors[K][0]+"m"+F+"["+f.colors[K][1]+"m":F}function l(F,j){return F}function a(F){var j={};return F.forEach(function(K,z){j[K]=!0}),j}function i(F,j,K){if(F.customInspect&&j&&O(j.inspect)&&j.inspect!==n.inspect&&!(j.constructor&&j.constructor.prototype===j)){var z=j.inspect(K,F);return b(z)||(z=i(F,z,K)),z}var V=t(F,j);if(V)return V;var Q=Object.keys(j),G=a(Q);if(F.showHidden&&(Q=Object.getOwnPropertyNames(j)),w(j)&&(Q.indexOf("message")>=0||Q.indexOf("description")>=0))return o(j);if(Q.length===0){if(O(j)){var te=j.name?": "+j.name:"";return F.stylize("[Function"+te+"]","special")}if(T(j))return F.stylize(RegExp.prototype.toString.call(j),"regexp");if(C(j))return F.stylize(Date.prototype.toString.call(j),"date");if(w(j))return o(j)}var q="",se=!1,re=["{","}"];if(s(j)&&(se=!0,re=["[","]"]),O(j)){var we=j.name?": "+j.name:"";q=" [Function"+we+"]"}if(T(j)&&(q=" "+RegExp.prototype.toString.call(j)),C(j)&&(q=" "+Date.prototype.toUTCString.call(j)),w(j)&&(q=" "+o(j)),Q.length===0&&(!se||j.length==0))return re[0]+q+re[1];if(K<0)return T(j)?F.stylize(RegExp.prototype.toString.call(j),"regexp"):F.stylize("[Object]","special");F.seen.push(j);var Oe;return se?Oe=e(F,j,K,G,Q):Oe=Q.map(function(Me){return u(F,j,K,G,Me,se)}),F.seen.pop(),r(Oe,q,re)}function t(F,j){if(E(j))return F.stylize("undefined","undefined");if(b(j)){var K="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return F.stylize(K,"string")}if(A(j))return F.stylize(""+j,"number");if(c(j))return F.stylize(""+j,"boolean");if(h(j))return F.stylize("null","null")}function o(F){return"["+Error.prototype.toString.call(F)+"]"}function e(F,j,K,z,V){for(var Q=[],G=0,te=j.length;G<te;++G)X(j,String(G))?Q.push(u(F,j,K,z,String(G),!0)):Q.push("");return V.forEach(function(q){q.match(/^\d+$/)||Q.push(u(F,j,K,z,q,!0))}),Q}function u(F,j,K,z,V,Q){var G,te,q;if(q=Object.getOwnPropertyDescriptor(j,V)||{value:j[V]},q.get?q.set?te=F.stylize("[Getter/Setter]","special"):te=F.stylize("[Getter]","special"):q.set&&(te=F.stylize("[Setter]","special")),X(z,V)||(G="["+V+"]"),te||(F.seen.indexOf(q.value)<0?(h(K)?te=i(F,q.value,null):te=i(F,q.value,K-1),te.indexOf(`
`)>-1&&(Q?te=te.split(`
`).map(function(se){return" "+se}).join(`
`).substr(2):te=`
`+te.split(`
`).map(function(se){return" "+se}).join(`
`))):te=F.stylize("[Circular]","special")),E(G)){if(Q&&V.match(/^\d+$/))return te;G=JSON.stringify(""+V),G.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(G=G.substr(1,G.length-2),G=F.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=F.stylize(G,"string"))}return G+": "+te}function r(F,j,K){var z=0,V=F.reduce(function(Q,G){return z++,G.indexOf(`
`)>=0&&z++,Q+G.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?K[0]+(j===""?"":j+`
`)+" "+F.join(`,
`)+" "+K[1]:K[0]+j+" "+F.join(", ")+" "+K[1]}function s(F){return Array.isArray(F)}n.isArray=s;function c(F){return typeof F=="boolean"}n.isBoolean=c;function h(F){return F===null}n.isNull=h;function v(F){return F==null}n.isNullOrUndefined=v;function A(F){return typeof F=="number"}n.isNumber=A;function b(F){return typeof F=="string"}n.isString=b;function x(F){return typeof F=="symbol"}n.isSymbol=x;function E(F){return F===void 0}n.isUndefined=E;function T(F){return _(F)&&k(F)==="[object RegExp]"}n.isRegExp=T;function _(F){return typeof F=="object"&&F!==null}n.isObject=_;function C(F){return _(F)&&k(F)==="[object Date]"}n.isDate=C;function w(F){return _(F)&&(k(F)==="[object Error]"||F instanceof Error)}n.isError=w;function O(F){return typeof F=="function"}n.isFunction=O;function I(F){return F===null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||typeof F=="symbol"||typeof F=="undefined"}n.isPrimitive=I,n.isBuffer=R("./support/isBuffer");function k(F){return Object.prototype.toString.call(F)}function M(F){return F<10?"0"+F.toString(10):F.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var F=new Date,j=[M(F.getHours()),M(F.getMinutes()),M(F.getSeconds())].join(":");return[F.getDate(),U[F.getMonth()],j].join(" ")}n.log=function(){console.log("%s - %s",P(),n.format.apply(n,arguments))},n.inherits=R("inherits"),n._extend=function(F,j){if(!j||!_(j))return F;for(var K=Object.keys(j),z=K.length;z--;)F[K[z]]=j[K[z]];return F};function X(F,j){return Object.prototype.hasOwnProperty.call(F,j)}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(R,D,n){"use strict";(function(){"use strict";n.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(void 0)},{}],245:[function(R,D,n){"use strict";var y=R("babel-runtime/helpers/typeof"),g=p(y),S=R("babel-runtime/core-js/object/keys"),m=p(S);function p(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,d,l,a,i,t={}.hasOwnProperty;f=R("xmlbuilder"),d=R("./defaults").defaults,a=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},i=function(e){return"<![CDATA["+l(e)+"]]>"},l=function(e){return e.replace("]]>","]]]]><![CDATA[>")},n.Builder=function(){function o(e){var u,r,s;this.options={},r=d["0.2"];for(u in r){if(!t.call(r,u))continue;s=r[u],this.options[u]=s}for(u in e){if(!t.call(e,u))continue;s=e[u],this.options[u]=s}}return o.prototype.buildObject=function(e){var u,r,s,c,h;return u=this.options.attrkey,r=this.options.charkey,(0,m.default)(e).length===1&&this.options.rootName===d["0.2"].rootName?(h=(0,m.default)(e)[0],e=e[h]):h=this.options.rootName,s=function(v){return function(A,b){var x,E,T,_,C,w;if((typeof b=="undefined"?"undefined":(0,g.default)(b))!=="object")v.options.cdata&&a(b)?A.raw(i(b)):A.txt(b);else if(Array.isArray(b))for(_ in b){if(!t.call(b,_))continue;E=b[_];for(C in E)T=E[C],A=s(A.ele(C),T).up()}else for(C in b){if(!t.call(b,C))continue;if(E=b[C],C===u){if((typeof E=="undefined"?"undefined":(0,g.default)(E))==="object")for(x in E)w=E[x],A=A.att(x,w)}else if(C===r)v.options.cdata&&a(E)?A=A.raw(i(E)):A=A.txt(E);else if(Array.isArray(E))for(_ in E){if(!t.call(E,_))continue;T=E[_],typeof T=="string"?v.options.cdata&&a(T)?A=A.ele(C).raw(i(T)).up():A=A.ele(C,T).up():A=s(A.ele(C),T).up()}else(typeof E=="undefined"?"undefined":(0,g.default)(E))==="object"?A=s(A.ele(C),E).up():typeof E=="string"&&v.options.cdata&&a(E)?A=A.ele(C).raw(i(E)).up():(E==null&&(E=""),A=A.ele(C,E.toString()).up())}return A}}(this),c=f.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),s(c,e).end(this.options.renderOpts)},o}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(R,D,n){"use strict";(function(){n.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(R,D,n){"use strict";var y=R("babel-runtime/core-js/promise"),g=a(y),S=R("babel-runtime/core-js/object/get-own-property-names"),m=a(S),p=R("babel-runtime/core-js/object/keys"),f=a(p),d=R("babel-runtime/helpers/typeof"),l=a(d);function a(i){return i&&i.__esModule?i:{default:i}}(function(){"use strict";var i,t,o,e,u,r,s,c,h=function(x,E){return function(){return x.apply(E,arguments)}},v=function(x,E){for(var T in E)A.call(E,T)&&(x[T]=E[T]);function _(){this.constructor=x}return _.prototype=E.prototype,x.prototype=new _,x.__super__=E.prototype,x},A={}.hasOwnProperty;s=R("sax"),o=R("events"),i=R("./bom"),r=R("./processors"),c=R("timers").setImmediate,t=R("./defaults").defaults,e=function(x){return(typeof x=="undefined"?"undefined":(0,l.default)(x))==="object"&&x!=null&&(0,f.default)(x).length===0},u=function(x,E,T){var _,C,w;for(_=0,C=x.length;_<C;_++)w=x[_],E=w(E,T);return E},n.Parser=function(b){v(x,b);function x(E){this.parseStringPromise=h(this.parseStringPromise,this),this.parseString=h(this.parseString,this),this.reset=h(this.reset,this),this.assignOrPush=h(this.assignOrPush,this),this.processAsync=h(this.processAsync,this);var T,_,C;if(!(this instanceof n.Parser))return new n.Parser(E);this.options={},_=t["0.2"];for(T in _){if(!A.call(_,T))continue;C=_[T],this.options[T]=C}for(T in E){if(!A.call(E,T))continue;C=E[T],this.options[T]=C}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(r.normalize)),this.reset()}return x.prototype.processAsync=function(){var E,T;try{return this.remaining.length<=this.options.chunkSize?(E=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(E),this.saxParser.close()):(E=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(E),c(this.processAsync))}catch(_){if(T=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(T)}},x.prototype.assignOrPush=function(E,T,_){return T in E?(E[T]instanceof Array||(E[T]=[E[T]]),E[T].push(_)):this.options.explicitArray?E[T]=[_]:E[T]=_},x.prototype.reset=function(){var E,T,_,C;return this.removeAllListeners(),this.saxParser=s.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(w){return function(O){if(w.saxParser.resume(),!w.saxParser.errThrown)return w.saxParser.errThrown=!0,w.emit("error",O)}}(this),this.saxParser.onend=function(w){return function(){if(!w.saxParser.ended)return w.saxParser.ended=!0,w.emit("end",w.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,C=[],E=this.options.attrkey,T=this.options.charkey,this.saxParser.onopentag=function(w){return function(O){var I,k,M,U,P;if(M={},M[T]="",!w.options.ignoreAttrs){P=O.attributes;for(I in P){if(!A.call(P,I))continue;!(E in M)&&!w.options.mergeAttrs&&(M[E]={}),k=w.options.attrValueProcessors?u(w.options.attrValueProcessors,O.attributes[I],I):O.attributes[I],U=w.options.attrNameProcessors?u(w.options.attrNameProcessors,I):I,w.options.mergeAttrs?w.assignOrPush(M,U,k):M[E][U]=k}}return M["#name"]=w.options.tagNameProcessors?u(w.options.tagNameProcessors,O.name):O.name,w.options.xmlns&&(M[w.options.xmlnskey]={uri:O.uri,local:O.local}),C.push(M)}}(this),this.saxParser.onclosetag=function(w){return function(){var O,I,k,M,U,P,X,F,j,K;if(P=C.pop(),U=P["#name"],(!w.options.explicitChildren||!w.options.preserveChildrenOrder)&&delete P["#name"],P.cdata===!0&&(O=P.cdata,delete P.cdata),j=C[C.length-1],P[T].match(/^\s*$/)&&!O?(I=P[T],delete P[T]):(w.options.trim&&(P[T]=P[T].trim()),w.options.normalize&&(P[T]=P[T].replace(/\s{2,}/g," ").trim()),P[T]=w.options.valueProcessors?u(w.options.valueProcessors,P[T],U):P[T],(0,f.default)(P).length===1&&T in P&&!w.EXPLICIT_CHARKEY&&(P=P[T])),e(P)&&(P=w.options.emptyTag!==""?w.options.emptyTag:I),w.options.validator!=null&&(K="/"+function(){var z,V,Q;for(Q=[],z=0,V=C.length;z<V;z++)M=C[z],Q.push(M["#name"]);return Q}().concat(U).join("/"),function(){var z;try{return P=w.options.validator(K,j&&j[U],P)}catch(V){return z=V,w.emit("error",z)}}()),w.options.explicitChildren&&!w.options.mergeAttrs&&(typeof P=="undefined"?"undefined":(0,l.default)(P))==="object"){if(!w.options.preserveChildrenOrder)M={},w.options.attrkey in P&&(M[w.options.attrkey]=P[w.options.attrkey],delete P[w.options.attrkey]),!w.options.charsAsChildren&&w.options.charkey in P&&(M[w.options.charkey]=P[w.options.charkey],delete P[w.options.charkey]),(0,m.default)(P).length>0&&(M[w.options.childkey]=P),P=M;else if(j){j[w.options.childkey]=j[w.options.childkey]||[],X={};for(k in P){if(!A.call(P,k))continue;X[k]=P[k]}j[w.options.childkey].push(X),delete P["#name"],(0,f.default)(P).length===1&&T in P&&!w.EXPLICIT_CHARKEY&&(P=P[T])}}return C.length>0?w.assignOrPush(j,U,P):(w.options.explicitRoot&&(F=P,P={},P[U]=F),w.resultObject=P,w.saxParser.ended=!0,w.emit("end",w.resultObject))}}(this),_=function(w){return function(O){var I,k;if(k=C[C.length-1],k)return k[T]+=O,w.options.explicitChildren&&w.options.preserveChildrenOrder&&w.options.charsAsChildren&&(w.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(k[w.options.childkey]=k[w.options.childkey]||[],I={"#name":"__text__"},I[T]=O,w.options.normalize&&(I[T]=I[T].replace(/\s{2,}/g," ").trim()),k[w.options.childkey].push(I)),k}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(w){return function(O){var I;if(I=_(O),I)return I.cdata=!0}}(this)},x.prototype.parseString=function(E,T){var _;T!=null&&typeof T=="function"&&(this.on("end",function(C){return this.reset(),T(null,C)}),this.on("error",function(C){return this.reset(),T(C)}));try{return E=E.toString(),E.trim()===""?(this.emit("end",null),!0):(E=i.stripBOM(E),this.options.async?(this.remaining=E,c(this.processAsync),this.saxParser):this.saxParser.write(E).close())}catch(C){if(_=C,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw _}else return this.emit("error",_),this.saxParser.errThrown=!0}},x.prototype.parseStringPromise=function(E){return new g.default(function(T){return function(_,C){return T.parseString(E,function(w,O){return w?C(w):_(O)})}}(this))},x}(o),n.parseString=function(b,x,E){var T,_,C;return E!=null?(typeof E=="function"&&(T=E),(typeof x=="undefined"?"undefined":(0,l.default)(x))==="object"&&(_=x)):(typeof x=="function"&&(T=x),_={}),C=new n.Parser(_),C.parseString(b,T)},n.parseStringPromise=function(b,x){var E,T;return(typeof x=="undefined"?"undefined":(0,l.default)(x))==="object"&&(E=x),T=new n.Parser(E),T.parseStringPromise(b)}}).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(R,D,n){"use strict";(function(){"use strict";var y;y=new RegExp(/(?!xmlns)^.*:/),n.normalize=function(g){return g.toLowerCase()},n.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},n.stripPrefix=function(g){return g.replace(y,"")},n.parseNumbers=function(g){return isNaN(g)||(g=g%1===0?parseInt(g,10):parseFloat(g)),g},n.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],249:[function(R,D,n){"use strict";(function(){"use strict";var y,g,S,m,p=function(l,a){for(var i in a)f.call(a,i)&&(l[i]=a[i]);function t(){this.constructor=l}return t.prototype=a.prototype,l.prototype=new t,l.__super__=a.prototype,l},f={}.hasOwnProperty;g=R("./defaults"),y=R("./builder"),S=R("./parser"),m=R("./processors"),n.defaults=g.defaults,n.processors=m,n.ValidationError=function(d){p(l,d);function l(a){this.message=a}return l}(Error),n.Builder=y.Builder,n.Parser=S.Parser,n.parseString=S.parseString,n.parseStringPromise=S.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(R,D,n){"use strict";(function(){D.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(R,D,n){"use strict";(function(){D.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(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/get-prototype-of"),g=d(y),S=R("babel-runtime/helpers/typeof"),m=d(S),p=R("babel-runtime/core-js/object/assign"),f=d(p);function d(l){return l&&l.__esModule?l:{default:l}}(function(){var l,a,i,t,o,e,u,r=[].slice,s={}.hasOwnProperty;l=function(){var h,v,A,b,x,E;if(E=arguments[0],x=2<=arguments.length?r.call(arguments,1):[],o(f.default))f.default.apply(null,arguments);else for(h=0,A=x.length;h<A;h++)if(b=x[h],b!=null)for(v in b){if(!s.call(b,v))continue;E[v]=b[v]}return E},o=function(h){return!!h&&Object.prototype.toString.call(h)==="[object Function]"},e=function(h){var v;return!!h&&((v=typeof h=="undefined"?"undefined":(0,m.default)(h))==="function"||v==="object")},i=function(h){return o(Array.isArray)?Array.isArray(h):Object.prototype.toString.call(h)==="[object Array]"},t=function(h){var v;if(i(h))return!h.length;for(v in h){if(!s.call(h,v))continue;return!1}return!0},u=function(h){var v,A;return e(h)&&(A=(0,g.default)(h))&&(v=A.constructor)&&typeof v=="function"&&v instanceof v&&Function.prototype.toString.call(v)===Function.prototype.toString.call(Object)},a=function(h){return o(h.valueOf)?h.valueOf():h},D.exports.assign=l,D.exports.isFunction=o,D.exports.isObject=e,D.exports.isArray=i,D.exports.isEmpty=t,D.exports.isPlainObject=u,D.exports.getValue=a}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(R,D,n){"use strict";(function(){D.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=S(y);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m,p,f;m=R("./NodeType"),f=R("./XMLNode"),D.exports=p=function(){function d(l,a,i){if(this.parent=l,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),a==null)throw new Error("Missing attribute name. "+this.debugInfo(a));this.name=this.stringify.name(a),this.value=this.stringify.attValue(i),this.type=m.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(d.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(d.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(d.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(d.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(d.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"specified",{get:function(){return!0}}),d.prototype.clone=function(){return(0,g.default)(this)},d.prototype.toString=function(l){return this.options.writer.attribute(this,this.options.writer.filterOptions(l))},d.prototype.debugInfo=function(l){return l=l||this.name,l==null?"parent: <"+this.parent.name+">":"attribute: {"+l+"}, parent: <"+this.parent.name+">"},d.prototype.isEqualNode=function(l){return l.namespaceURI!==this.namespaceURI||(l.prefix!==this.prefix||l.localName!==this.localName)?!1:!(l.value!==this.value)},d}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=S(y);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m,p,f,d=function(i,t){for(var o in t)l.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},l={}.hasOwnProperty;m=R("./NodeType"),f=R("./XMLCharacterData"),D.exports=p=function(a){d(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=m.CData,this.value=this.stringify.cdata(o)}return i.prototype.clone=function(){return(0,g.default)(this)},i.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},i}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=S(y);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m,p,f=function(a,i){for(var t in i)d.call(i,t)&&(a[t]=i[t]);function o(){this.constructor=a}return o.prototype=i.prototype,a.prototype=new o,a.__super__=i.prototype,a},d={}.hasOwnProperty;p=R("./XMLNode"),D.exports=m=function(l){f(a,l);function a(i){a.__super__.constructor.call(this,i),this.value=""}return Object.defineProperty(a.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(a.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),a.prototype.clone=function(){return(0,g.default)(this)},a.prototype.substringData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.appendData=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.insertData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.deleteData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceData=function(i,t,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(i){return a.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?!(i.data!==this.data):!1},a}(p)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=S(y);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m,p,f,d=function(i,t){for(var o in t)l.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},l={}.hasOwnProperty;m=R("./NodeType"),p=R("./XMLCharacterData"),D.exports=f=function(a){d(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=m.Comment,this.value=this.stringify.comment(o)}return i.prototype.clone=function(){return(0,g.default)(this)},i.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},i}(p)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),g=p(y),S=R("babel-runtime/core-js/object/create"),m=p(S);function p(f){return f&&f.__esModule?f:{default:f}}(function(){var f,d,l;d=R("./XMLDOMErrorHandler"),l=R("./XMLDOMStringList"),D.exports=f=function(){function a(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new d,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=i=(0,m.default)(this.defaultParams)}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new l((0,g.default)(this.defaultParams))}}),a.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},a.prototype.canSetParameter=function(i,t){return!0},a.prototype.setParameter=function(i,t){return t!=null?this.params[i]=t:delete this.params[i]},a}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(R,D,n){"use strict";(function(){var y;D.exports=y=function(){function g(){}return g.prototype.handleError=function(S){throw new Error(S)},g}()}).call(void 0)},{}],260:[function(R,D,n){"use strict";(function(){var y;D.exports=y=function(){function g(){}return g.prototype.hasFeature=function(S,m){return!0},g.prototype.createDocumentType=function(S,m,p){throw new Error("This DOM method is not implemented.")},g.prototype.createDocument=function(S,m,p){throw new Error("This DOM method is not implemented.")},g.prototype.createHTMLDocument=function(S){throw new Error("This DOM method is not implemented.")},g.prototype.getFeature=function(S,m){throw new Error("This DOM method is not implemented.")},g}()}).call(void 0)},{}],261:[function(R,D,n){"use strict";(function(){var y;D.exports=y=function(){function g(S){this.arr=S||[]}return Object.defineProperty(g.prototype,"length",{get:function(){return this.arr.length}}),g.prototype.item=function(S){return this.arr[S]||null},g.prototype.contains=function(S){return this.arr.indexOf(S)!==-1},g}()}).call(void 0)},{}],262:[function(R,D,n){"use strict";(function(){var y,g,S,m=function(d,l){for(var a in l)p.call(l,a)&&(d[a]=l[a]);function i(){this.constructor=d}return i.prototype=l.prototype,d.prototype=new i,d.__super__=l.prototype,d},p={}.hasOwnProperty;S=R("./XMLNode"),y=R("./NodeType"),D.exports=g=function(f){m(d,f);function d(l,a,i,t,o,e){if(d.__super__.constructor.call(this,l),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(i==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(a));if(!t)throw new Error("Missing DTD attribute type. "+this.debugInfo(a));if(!o)throw new Error("Missing DTD attribute default. "+this.debugInfo(a));if(o.indexOf("#")!==0&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(a));if(e&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(a));this.elementName=this.stringify.name(a),this.type=y.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(t),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=o}return d.prototype.toString=function(l){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(l))},d}(S)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(R,D,n){"use strict";(function(){var y,g,S,m=function(d,l){for(var a in l)p.call(l,a)&&(d[a]=l[a]);function i(){this.constructor=d}return i.prototype=l.prototype,d.prototype=new i,d.__super__=l.prototype,d},p={}.hasOwnProperty;S=R("./XMLNode"),y=R("./NodeType"),D.exports=g=function(f){m(d,f);function d(l,a,i){if(d.__super__.constructor.call(this,l),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(a),this.type=y.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return d.prototype.toString=function(l){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(l))},d}(S)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(R,D,n){"use strict";(function(){var y,g,S,m,p=function(l,a){for(var i in a)f.call(a,i)&&(l[i]=a[i]);function t(){this.constructor=l}return t.prototype=a.prototype,l.prototype=new t,l.__super__=a.prototype,l},f={}.hasOwnProperty;m=R("./Utility").isObject,S=R("./XMLNode"),y=R("./NodeType"),D.exports=g=function(d){p(l,d);function l(a,i,t,o){if(l.__super__.constructor.call(this,a),t==null)throw new Error("Missing DTD entity name. "+this.debugInfo(t));if(o==null)throw new Error("Missing DTD entity value. "+this.debugInfo(t));if(this.pe=!!i,this.name=this.stringify.name(t),this.type=y.EntityDeclaration,!m(o))this.value=this.stringify.dtdEntityValue(o),this.internal=!0;else{if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(t));if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(t));if(this.internal=!1,o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID)),o.nData!=null&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(t))}}return Object.defineProperty(l.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(l.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(l.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(l.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(l.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(l.prototype,"xmlVersion",{get:function(){return null}}),l.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},l}(S)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(R,D,n){"use strict";(function(){var y,g,S,m=function(d,l){for(var a in l)p.call(l,a)&&(d[a]=l[a]);function i(){this.constructor=d}return i.prototype=l.prototype,d.prototype=new i,d.__super__=l.prototype,d},p={}.hasOwnProperty;S=R("./XMLNode"),y=R("./NodeType"),D.exports=g=function(f){m(d,f);function d(l,a,i){if(d.__super__.constructor.call(this,l),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));this.name=this.stringify.name(a),this.type=y.NotationDeclaration,i.pubID!=null&&(this.pubID=this.stringify.dtdPubID(i.pubID)),i.sysID!=null&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),d.prototype.toString=function(l){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(l))},d}(S)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(R,D,n){"use strict";(function(){var y,g,S,m,p=function(l,a){for(var i in a)f.call(a,i)&&(l[i]=a[i]);function t(){this.constructor=l}return t.prototype=a.prototype,l.prototype=new t,l.__super__=a.prototype,l},f={}.hasOwnProperty;m=R("./Utility").isObject,S=R("./XMLNode"),y=R("./NodeType"),D.exports=g=function(d){p(l,d);function l(a,i,t,o){var e;l.__super__.constructor.call(this,a),m(i)&&(e=i,i=e.version,t=e.encoding,o=e.standalone),i||(i="1.0"),this.type=y.Declaration,this.version=this.stringify.xmlVersion(i),t!=null&&(this.encoding=this.stringify.xmlEncoding(t)),o!=null&&(this.standalone=this.stringify.xmlStandalone(o))}return l.prototype.toString=function(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))},l}(S)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(R,D,n){"use strict";(function(){var y,g,S,m,p,f,d,l,a,i=function(e,u){for(var r in u)t.call(u,r)&&(e[r]=u[r]);function s(){this.constructor=e}return s.prototype=u.prototype,e.prototype=new s,e.__super__=u.prototype,e},t={}.hasOwnProperty;a=R("./Utility").isObject,l=R("./XMLNode"),y=R("./NodeType"),g=R("./XMLDTDAttList"),m=R("./XMLDTDEntity"),S=R("./XMLDTDElement"),p=R("./XMLDTDNotation"),d=R("./XMLNamedNodeMap"),D.exports=f=function(o){i(e,o);function e(u,r,s){var c,h,v,A,b,x;if(e.__super__.constructor.call(this,u),this.type=y.DocType,u.children){for(A=u.children,h=0,v=A.length;h<v;h++)if(c=A[h],c.type===y.Element){this.name=c.name;break}}this.documentObject=u,a(r)&&(b=r,r=b.pubID,s=b.sysID),s==null&&(x=[r,s],s=x[0],r=x[1]),r!=null&&(this.pubID=this.stringify.dtdPubID(r)),s!=null&&(this.sysID=this.stringify.dtdSysID(s))}return Object.defineProperty(e.prototype,"entities",{get:function(){var r,s,c,h,v;for(h={},v=this.children,s=0,c=v.length;s<c;s++)r=v[s],r.type===y.EntityDeclaration&&!r.pe&&(h[r.name]=r);return new d(h)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var r,s,c,h,v;for(h={},v=this.children,s=0,c=v.length;s<c;s++)r=v[s],r.type===y.NotationDeclaration&&(h[r.name]=r);return new d(h)}}),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(u,r){var s;return s=new S(this,u,r),this.children.push(s),this},e.prototype.attList=function(u,r,s,c,h){var v;return v=new g(this,u,r,s,c,h),this.children.push(v),this},e.prototype.entity=function(u,r){var s;return s=new m(this,!1,u,r),this.children.push(s),this},e.prototype.pEntity=function(u,r){var s;return s=new m(this,!0,u,r),this.children.push(s),this},e.prototype.notation=function(u,r){var s;return s=new p(this,u,r),this.children.push(s),this},e.prototype.toString=function(u){return this.options.writer.docType(this,this.options.writer.filterOptions(u))},e.prototype.ele=function(u,r){return this.element(u,r)},e.prototype.att=function(u,r,s,c,h){return this.attList(u,r,s,c,h)},e.prototype.ent=function(u,r){return this.entity(u,r)},e.prototype.pent=function(u,r){return this.pEntity(u,r)},e.prototype.not=function(u,r){return this.notation(u,r)},e.prototype.up=function(){return this.root()||this.documentObject},e.prototype.isEqualNode=function(u){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(u)?u.name!==this.name||u.publicId!==this.publicId?!1:!(u.systemId!==this.systemId):!1},e}(l)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(R,D,n){"use strict";(function(){var y,g,S,m,p,f,d,l,a=function(o,e){for(var u in e)i.call(e,u)&&(o[u]=e[u]);function r(){this.constructor=o}return r.prototype=e.prototype,o.prototype=new r,o.__super__=e.prototype,o},i={}.hasOwnProperty;l=R("./Utility").isPlainObject,S=R("./XMLDOMImplementation"),g=R("./XMLDOMConfiguration"),p=R("./XMLNode"),y=R("./NodeType"),d=R("./XMLStringifier"),f=R("./XMLStringWriter"),D.exports=m=function(t){a(o,t);function o(e){o.__super__.constructor.call(this,null),this.name="#document",this.type=y.Document,this.documentURI=null,this.domConfig=new g,e||(e={}),e.writer||(e.writer=new f),this.options=e,this.stringify=new d(e)}return Object.defineProperty(o.prototype,"implementation",{value:new S}),Object.defineProperty(o.prototype,"doctype",{get:function(){var u,r,s,c;for(c=this.children,r=0,s=c.length;r<s;r++)if(u=c[r],u.type===y.DocType)return u;return null}}),Object.defineProperty(o.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(o.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(o.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(o.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].encoding:null}}),Object.defineProperty(o.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(o.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(o.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(o.prototype,"origin",{get:function(){return null}}),Object.defineProperty(o.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(o.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(o.prototype,"contentType",{get:function(){return null}}),o.prototype.end=function(e){var u;return u={},e?l(e)&&(u=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(u))},o.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},o.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createProcessingInstruction=function(e,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.importNode=function(e,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createElementNS=function(e,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createAttributeNS=function(e,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagNameNS=function(e,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.renameNode=function(e,u,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createNodeIterator=function(e,u,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createTreeWalker=function(e,u,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o}(p)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(R,D,n){"use strict";(function(){var y,g,S,m,p,f,d,l,a,i,t,o,e,u,r,s,c,h,v,A,b,x,E,T,_={}.hasOwnProperty;T=R("./Utility"),x=T.isObject,b=T.isFunction,E=T.isPlainObject,A=T.getValue,y=R("./NodeType"),o=R("./XMLDocument"),u=R("./XMLElement"),m=R("./XMLCData"),p=R("./XMLComment"),s=R("./XMLRaw"),v=R("./XMLText"),r=R("./XMLProcessingInstruction"),i=R("./XMLDeclaration"),t=R("./XMLDocType"),f=R("./XMLDTDAttList"),l=R("./XMLDTDEntity"),d=R("./XMLDTDElement"),a=R("./XMLDTDNotation"),S=R("./XMLAttribute"),h=R("./XMLStringifier"),c=R("./XMLStringWriter"),g=R("./WriterState"),D.exports=e=function(){function C(w,O,I){var k;this.name="?xml",this.type=y.Document,w||(w={}),k={},w.writer?E(w.writer)&&(k=w.writer,w.writer=new c):w.writer=new c,this.options=w,this.writer=w.writer,this.writerOptions=this.writer.filterOptions(k),this.stringify=new h(w),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 C.prototype.createChildNode=function(w){var O,I,k,M,U,P,X,F;switch(w.type){case y.CData:this.cdata(w.value);break;case y.Comment:this.comment(w.value);break;case y.Element:k={},X=w.attribs;for(I in X){if(!_.call(X,I))continue;O=X[I],k[I]=O.value}this.node(w.name,k);break;case y.Dummy:this.dummy();break;case y.Raw:this.raw(w.value);break;case y.Text:this.text(w.value);break;case y.ProcessingInstruction:this.instruction(w.target,w.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+w.constructor.name)}for(F=w.children,U=0,P=F.length;U<P;U++)M=F[U],this.createChildNode(M),M.type===y.Element&&this.up();return this},C.prototype.dummy=function(){return this},C.prototype.node=function(w,O,I){var k;if(w==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(w));return this.openCurrent(),w=A(w),O==null&&(O={}),O=A(O),x(O)||(k=[O,I],I=k[0],O=k[1]),this.currentNode=new u(this,w,O),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},C.prototype.element=function(w,O,I){var k,M,U,P,X,F;if(this.currentNode&&this.currentNode.type===y.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(w)||x(w)||b(w))for(P=this.options.noValidation,this.options.noValidation=!0,F=new o(this.options).element("TEMP_ROOT"),F.element(w),this.options.noValidation=P,X=F.children,M=0,U=X.length;M<U;M++)k=X[M],this.createChildNode(k),k.type===y.Element&&this.up();else this.node(w,O,I);return this},C.prototype.attribute=function(w,O){var I,k;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(w));if(w!=null&&(w=A(w)),x(w))for(I in w){if(!_.call(w,I))continue;k=w[I],this.attribute(I,k)}else b(O)&&(O=O.apply()),this.options.keepNullAttributes&&O==null?this.currentNode.attribs[w]=new S(this,w,""):O!=null&&(this.currentNode.attribs[w]=new S(this,w,O));return this},C.prototype.text=function(w){var O;return this.openCurrent(),O=new v(this,w),this.onData(this.writer.text(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.cdata=function(w){var O;return this.openCurrent(),O=new m(this,w),this.onData(this.writer.cdata(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.comment=function(w){var O;return this.openCurrent(),O=new p(this,w),this.onData(this.writer.comment(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.raw=function(w){var O;return this.openCurrent(),O=new s(this,w),this.onData(this.writer.raw(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.instruction=function(w,O){var I,k,M,U,P;if(this.openCurrent(),w!=null&&(w=A(w)),O!=null&&(O=A(O)),Array.isArray(w))for(I=0,U=w.length;I<U;I++)k=w[I],this.instruction(k);else if(x(w))for(k in w){if(!_.call(w,k))continue;M=w[k],this.instruction(k,M)}else b(O)&&(O=O.apply()),P=new r(this,w,O),this.onData(this.writer.processingInstruction(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},C.prototype.declaration=function(w,O,I){var k;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return k=new i(this,w,O,I),this.onData(this.writer.declaration(k,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.doctype=function(w,O,I){if(this.openCurrent(),w==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 t(this,O,I),this.currentNode.rootNodeName=w,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},C.prototype.dtdElement=function(w,O){var I;return this.openCurrent(),I=new d(this,w,O),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.attList=function(w,O,I,k,M){var U;return this.openCurrent(),U=new f(this,w,O,I,k,M),this.onData(this.writer.dtdAttList(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.entity=function(w,O){var I;return this.openCurrent(),I=new l(this,!1,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.pEntity=function(w,O){var I;return this.openCurrent(),I=new l(this,!0,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.notation=function(w,O){var I;return this.openCurrent(),I=new a(this,w,O),this.onData(this.writer.dtdNotation(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.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},C.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},C.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},C.prototype.openNode=function(w){var O,I,k,M;if(!w.isOpen){if(!this.root&&this.currentLevel===0&&w.type===y.Element&&(this.root=w),I="",w.type===y.Element){this.writerOptions.state=g.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<"+w.name,M=w.attribs;for(k in M){if(!_.call(M,k))continue;O=M[k],I+=this.writer.attribute(O,this.writerOptions,this.currentLevel)}I+=(w.children?">":"/>")+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=g.InsideTag}else this.writerOptions.state=g.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+w.rootNodeName,w.pubID&&w.sysID?I+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(I+=' SYSTEM "'+w.sysID+'"'),w.children?(I+=" [",this.writerOptions.state=g.InsideTag):(this.writerOptions.state=g.CloseTag,I+=">"),I+=this.writer.endline(w,this.writerOptions,this.currentLevel);return this.onData(I,this.currentLevel),w.isOpen=!0}},C.prototype.closeNode=function(w){var O;if(!w.isClosed)return O="",this.writerOptions.state=g.CloseTag,w.type===y.Element?O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"</"+w.name+">"+this.writer.endline(w,this.writerOptions,this.currentLevel):O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=g.None,this.onData(O,this.currentLevel),w.isClosed=!0},C.prototype.onData=function(w,O){return this.documentStarted=!0,this.onDataCallback(w,O+1)},C.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},C.prototype.debugInfo=function(w){return w==null?"":"node: <"+w+">"},C.prototype.ele=function(){return this.element.apply(this,arguments)},C.prototype.nod=function(w,O,I){return this.node(w,O,I)},C.prototype.txt=function(w){return this.text(w)},C.prototype.dat=function(w){return this.cdata(w)},C.prototype.com=function(w){return this.comment(w)},C.prototype.ins=function(w,O){return this.instruction(w,O)},C.prototype.dec=function(w,O,I){return this.declaration(w,O,I)},C.prototype.dtd=function(w,O,I){return this.doctype(w,O,I)},C.prototype.e=function(w,O,I){return this.element(w,O,I)},C.prototype.n=function(w,O,I){return this.node(w,O,I)},C.prototype.t=function(w){return this.text(w)},C.prototype.d=function(w){return this.cdata(w)},C.prototype.c=function(w){return this.comment(w)},C.prototype.r=function(w){return this.raw(w)},C.prototype.i=function(w,O){return this.instruction(w,O)},C.prototype.att=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.a=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.ent=function(w,O){return this.entity(w,O)},C.prototype.pent=function(w,O){return this.pEntity(w,O)},C.prototype.not=function(w,O){return this.notation(w,O)},C}()}).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(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=S(y);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m,p,f,d=function(i,t){for(var o in t)l.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},l={}.hasOwnProperty;f=R("./XMLNode"),m=R("./NodeType"),D.exports=p=function(a){d(i,a);function i(t){i.__super__.constructor.call(this,t),this.type=m.Dummy}return i.prototype.clone=function(){return(0,g.default)(this)},i.prototype.toString=function(t){return""},i}(f)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=S(y);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m,p,f,d,l,a,i,t,o,e=function(s,c){for(var h in c)u.call(c,h)&&(s[h]=c[h]);function v(){this.constructor=s}return v.prototype=c.prototype,s.prototype=new v,s.__super__=c.prototype,s},u={}.hasOwnProperty;o=R("./Utility"),t=o.isObject,i=o.isFunction,a=o.getValue,l=R("./XMLNode"),m=R("./NodeType"),p=R("./XMLAttribute"),d=R("./XMLNamedNodeMap"),D.exports=f=function(r){e(s,r);function s(c,h,v){var A,b,x,E;if(s.__super__.constructor.call(this,c),h==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(h),this.type=m.Element,this.attribs={},this.schemaTypeInfo=null,v!=null&&this.attribute(v),c.type===m.Document&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this,c.children)){for(E=c.children,b=0,x=E.length;b<x;b++)if(A=E[b],A.type===m.DocType){A.name=this.name;break}}}return Object.defineProperty(s.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new d(this.attribs)),this.attributeMap}}),s.prototype.clone=function(){var c,h,v,A;v=(0,g.default)(this),v.isRoot&&(v.documentObject=null),v.attribs={},A=this.attribs;for(h in A){if(!u.call(A,h))continue;c=A[h],v.attribs[h]=c.clone()}return v.children=[],this.children.forEach(function(b){var x;return x=b.clone(),x.parent=v,v.children.push(x)}),v},s.prototype.attribute=function(c,h){var v,A;if(c!=null&&(c=a(c)),t(c))for(v in c){if(!u.call(c,v))continue;A=c[v],this.attribute(v,A)}else i(h)&&(h=h.apply()),this.options.keepNullAttributes&&h==null?this.attribs[c]=new p(this,c,""):h!=null&&(this.attribs[c]=new p(this,c,h));return this},s.prototype.removeAttribute=function(c){var h,v,A;if(c==null)throw new Error("Missing attribute name. "+this.debugInfo());if(c=a(c),Array.isArray(c))for(v=0,A=c.length;v<A;v++)h=c[v],delete this.attribs[h];else delete this.attribs[c];return this},s.prototype.toString=function(c){return this.options.writer.element(this,this.options.writer.filterOptions(c))},s.prototype.att=function(c,h){return this.attribute(c,h)},s.prototype.a=function(c,h){return this.attribute(c,h)},s.prototype.getAttribute=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c].value:null},s.prototype.setAttribute=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getAttributeNode=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c]:null},s.prototype.setAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.removeAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setAttributeNS=function(c,h,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.removeAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getAttributeNodeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setAttributeNodeNS=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagNameNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.hasAttribute=function(c){return this.attribs.hasOwnProperty(c)},s.prototype.hasAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setIdAttribute=function(c,h){return this.attribs.hasOwnProperty(c)?this.attribs[c].isId:h},s.prototype.setIdAttributeNS=function(c,h,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setIdAttributeNode=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagNameNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByClassName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.isEqualNode=function(c){var h,v,A;if(!s.__super__.isEqualNode.apply(this,arguments).isEqualNode(c))return!1;if(c.namespaceURI!==this.namespaceURI)return!1;if(c.prefix!==this.prefix)return!1;if(c.localName!==this.localName)return!1;if(c.attribs.length!==this.attribs.length)return!1;for(h=v=0,A=this.attribs.length-1;0<=A?v<=A:v>=A;h=0<=A?++v:--v)if(!this.attribs[h].isEqualNode(c.attribs[h]))return!1;return!0},s}(l)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/keys"),g=S(y);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m;D.exports=m=function(){function p(f){this.nodes=f}return Object.defineProperty(p.prototype,"length",{get:function(){return(0,g.default)(this.nodes).length||0}}),p.prototype.clone=function(){return this.nodes=null},p.prototype.getNamedItem=function(f){return this.nodes[f]},p.prototype.setNamedItem=function(f){var d;return d=this.nodes[f.nodeName],this.nodes[f.nodeName]=f,d||null},p.prototype.removeNamedItem=function(f){var d;return d=this.nodes[f],delete this.nodes[f],d||null},p.prototype.item=function(f){return this.nodes[(0,g.default)(this.nodes)[f]]||null},p.prototype.getNamedItemNS=function(f,d){throw new Error("This DOM method is not implemented.")},p.prototype.setNamedItemNS=function(f){throw new Error("This DOM method is not implemented.")},p.prototype.removeNamedItemNS=function(f,d){throw new Error("This DOM method is not implemented.")},p}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(R,D,n){"use strict";(function(){var y,g,S,m,p,f,d,l,a,i,t,o,e,u,r,s,c,h,v,A={}.hasOwnProperty;v=R("./Utility"),h=v.isObject,c=v.isFunction,s=v.isEmpty,r=v.getValue,l=null,S=null,m=null,p=null,f=null,e=null,u=null,o=null,d=null,g=null,t=null,a=null,y=null,D.exports=i=function(){function b(x){this.parent=x,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=R("./XMLElement"),S=R("./XMLCData"),m=R("./XMLComment"),p=R("./XMLDeclaration"),f=R("./XMLDocType"),e=R("./XMLRaw"),u=R("./XMLText"),o=R("./XMLProcessingInstruction"),d=R("./XMLDummy"),g=R("./NodeType"),t=R("./XMLNodeList"),a=R("./XMLNamedNodeMap"),y=R("./DocumentPosition"))}return Object.defineProperty(b.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(b.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(b.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(b.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(b.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new t(this.children)),this.childNodeList}}),Object.defineProperty(b.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(b.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(b.prototype,"previousSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E-1]||null}}),Object.defineProperty(b.prototype,"nextSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E+1]||null}}),Object.defineProperty(b.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(b.prototype,"textContent",{get:function(){var E,T,_,C,w;if(this.nodeType===g.Element||this.nodeType===g.DocumentFragment){for(w="",C=this.children,T=0,_=C.length;T<_;T++)E=C[T],E.textContent&&(w+=E.textContent);return w}else return null},set:function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.setParent=function(x){var E,T,_,C,w;for(this.parent=x,x&&(this.options=x.options,this.stringify=x.stringify),C=this.children,w=[],T=0,_=C.length;T<_;T++)E=C[T],w.push(E.setParent(this));return w},b.prototype.element=function(x,E,T){var _,C,w,O,I,k,M,U,P,X,F;if(k=null,E===null&&T==null&&(P=[{},null],E=P[0],T=P[1]),E==null&&(E={}),E=r(E),h(E)||(X=[E,T],T=X[0],E=X[1]),x!=null&&(x=r(x)),Array.isArray(x))for(w=0,M=x.length;w<M;w++)C=x[w],k=this.element(C);else if(c(x))k=this.element(x.apply());else if(h(x))for(I in x){if(!A.call(x,I))continue;if(F=x[I],c(F)&&(F=F.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&I.indexOf(this.stringify.convertAttKey)===0)k=this.attribute(I.substr(this.stringify.convertAttKey.length),F);else if(!this.options.separateArrayItems&&Array.isArray(F)&&s(F))k=this.dummy();else if(h(F)&&s(F))k=this.element(I);else if(!this.options.keepNullNodes&&F==null)k=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(F))for(O=0,U=F.length;O<U;O++)C=F[O],_={},_[I]=C,k=this.element(_);else h(F)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&I.indexOf(this.stringify.convertTextKey)===0?k=this.element(F):(k=this.element(I),k.element(F)):k=this.element(I,F)}else!this.options.keepNullNodes&&T===null?k=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&x.indexOf(this.stringify.convertTextKey)===0?k=this.text(T):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&x.indexOf(this.stringify.convertCDataKey)===0?k=this.cdata(T):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&x.indexOf(this.stringify.convertCommentKey)===0?k=this.comment(T):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&x.indexOf(this.stringify.convertRawKey)===0?k=this.raw(T):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&x.indexOf(this.stringify.convertPIKey)===0?k=this.instruction(x.substr(this.stringify.convertPIKey.length),T):k=this.node(x,E,T);if(k==null)throw new Error("Could not create any elements with: "+x+". "+this.debugInfo());return k},b.prototype.insertBefore=function(x,E,T){var _,C,w,O,I;if(x!=null?x.type:void 0)return w=x,O=E,w.setParent(this),O?(C=children.indexOf(O),I=children.splice(C),children.push(w),Array.prototype.push.apply(children,I)):children.push(w),w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(x));return C=this.parent.children.indexOf(this),I=this.parent.children.splice(C),_=this.parent.element(x,E,T),Array.prototype.push.apply(this.parent.children,I),_},b.prototype.insertAfter=function(x,E,T){var _,C,w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(x));return C=this.parent.children.indexOf(this),w=this.parent.children.splice(C+1),_=this.parent.element(x,E,T),Array.prototype.push.apply(this.parent.children,w),_},b.prototype.remove=function(){var x,E;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return x=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[x,x-x+1].concat(E=[])),this.parent},b.prototype.node=function(x,E,T){var _,C;return x!=null&&(x=r(x)),E||(E={}),E=r(E),h(E)||(C=[E,T],T=C[0],E=C[1]),_=new l(this,x,E),T!=null&&_.text(T),this.children.push(_),_},b.prototype.text=function(x){var E;return h(x)&&this.element(x),E=new u(this,x),this.children.push(E),this},b.prototype.cdata=function(x){var E;return E=new S(this,x),this.children.push(E),this},b.prototype.comment=function(x){var E;return E=new m(this,x),this.children.push(E),this},b.prototype.commentBefore=function(x){var E,T,_;return T=this.parent.children.indexOf(this),_=this.parent.children.splice(T),E=this.parent.comment(x),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.commentAfter=function(x){var E,T,_;return T=this.parent.children.indexOf(this),_=this.parent.children.splice(T+1),E=this.parent.comment(x),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.raw=function(x){var E;return E=new e(this,x),this.children.push(E),this},b.prototype.dummy=function(){var x;return x=new d(this),x},b.prototype.instruction=function(x,E){var T,_,C,w,O;if(x!=null&&(x=r(x)),E!=null&&(E=r(E)),Array.isArray(x))for(w=0,O=x.length;w<O;w++)T=x[w],this.instruction(T);else if(h(x))for(T in x){if(!A.call(x,T))continue;_=x[T],this.instruction(T,_)}else c(E)&&(E=E.apply()),C=new o(this,x,E),this.children.push(C);return this},b.prototype.instructionBefore=function(x,E){var T,_,C;return _=this.parent.children.indexOf(this),C=this.parent.children.splice(_),T=this.parent.instruction(x,E),Array.prototype.push.apply(this.parent.children,C),this},b.prototype.instructionAfter=function(x,E){var T,_,C;return _=this.parent.children.indexOf(this),C=this.parent.children.splice(_+1),T=this.parent.instruction(x,E),Array.prototype.push.apply(this.parent.children,C),this},b.prototype.declaration=function(x,E,T){var _,C;return _=this.document(),C=new p(_,x,E,T),_.children.length===0?_.children.unshift(C):_.children[0].type===g.Declaration?_.children[0]=C:_.children.unshift(C),_.root()||_},b.prototype.dtd=function(x,E){var T,_,C,w,O,I,k,M,U,P;for(_=this.document(),C=new f(_,x,E),U=_.children,w=O=0,k=U.length;O<k;w=++O)if(T=U[w],T.type===g.DocType)return _.children[w]=C,C;for(P=_.children,w=I=0,M=P.length;I<M;w=++I)if(T=P[w],T.isRoot)return _.children.splice(w,0,C),C;return _.children.push(C),C},b.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},b.prototype.root=function(){var x;for(x=this;x;){if(x.type===g.Document)return x.rootObject;if(x.isRoot)return x;x=x.parent}},b.prototype.document=function(){var x;for(x=this;x;){if(x.type===g.Document)return x;x=x.parent}},b.prototype.end=function(x){return this.document().end(x)},b.prototype.prev=function(){var x;if(x=this.parent.children.indexOf(this),x<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[x-1]},b.prototype.next=function(){var x;if(x=this.parent.children.indexOf(this),x===-1||x===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[x+1]},b.prototype.importDocument=function(x){var E;return E=x.root().clone(),E.parent=this,E.isRoot=!1,this.children.push(E),this},b.prototype.debugInfo=function(x){var E,T;return x=x||this.name,x==null&&!((E=this.parent)!=null?E.name:void 0)?"":x==null?"parent: <"+this.parent.name+">":((T=this.parent)!=null?T.name:void 0)?"node: <"+x+">, parent: <"+this.parent.name+">":"node: <"+x+">"},b.prototype.ele=function(x,E,T){return this.element(x,E,T)},b.prototype.nod=function(x,E,T){return this.node(x,E,T)},b.prototype.txt=function(x){return this.text(x)},b.prototype.dat=function(x){return this.cdata(x)},b.prototype.com=function(x){return this.comment(x)},b.prototype.ins=function(x,E){return this.instruction(x,E)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(x,E,T){return this.declaration(x,E,T)},b.prototype.e=function(x,E,T){return this.element(x,E,T)},b.prototype.n=function(x,E,T){return this.node(x,E,T)},b.prototype.t=function(x){return this.text(x)},b.prototype.d=function(x){return this.cdata(x)},b.prototype.c=function(x){return this.comment(x)},b.prototype.r=function(x){return this.raw(x)},b.prototype.i=function(x,E){return this.instruction(x,E)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(x){return this.importDocument(x)},b.prototype.replaceChild=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeChild=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.appendChild=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.hasChildNodes=function(){return this.children.length!==0},b.prototype.cloneNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isSupported=function(x,E){return!0},b.prototype.hasAttributes=function(){return this.attribs.length!==0},b.prototype.compareDocumentPosition=function(x){var E,T;return E=this,E===x?0:this.document()!==x.document()?(T=y.Disconnected|y.ImplementationSpecific,Math.random()<.5?T|=y.Preceding:T|=y.Following,T):E.isAncestor(x)?y.Contains|y.Preceding:E.isDescendant(x)?y.Contains|y.Following:E.isPreceding(x)?y.Preceding:y.Following},b.prototype.isSameNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupPrefix=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isDefaultNamespace=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupNamespaceURI=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(x){var E,T,_;if(x.nodeType!==this.nodeType)return!1;if(x.children.length!==this.children.length)return!1;for(E=T=0,_=this.children.length-1;0<=_?T<=_:T>=_;E=0<=_?++T:--T)if(!this.children[E].isEqualNode(x.children[E]))return!1;return!0},b.prototype.getFeature=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setUserData=function(x,E,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getUserData=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.contains=function(x){return x?x===this||this.isDescendant(x):!1},b.prototype.isDescendant=function(x){var E,T,_,C,w;for(w=this.children,_=0,C=w.length;_<C;_++){if(E=w[_],x===E)return!0;if(T=E.isDescendant(x),T)return!0}return!1},b.prototype.isAncestor=function(x){return x.isDescendant(this)},b.prototype.isPreceding=function(x){var E,T;return E=this.treePosition(x),T=this.treePosition(this),E===-1||T===-1?!1:E<T},b.prototype.isFollowing=function(x){var E,T;return E=this.treePosition(x),T=this.treePosition(this),E===-1||T===-1?!1:E>T},b.prototype.treePosition=function(x){var E,T;return T=0,E=!1,this.foreachTreeNode(this.document(),function(_){if(T++,!E&&_===x)return E=!0}),E?T:-1},b.prototype.foreachTreeNode=function(x,E){var T,_,C,w,O;for(x||(x=this.document()),w=x.children,_=0,C=w.length;_<C;_++){if(T=w[_],O=E(T))return O;if(O=this.foreachTreeNode(T,E),O)return O}},b}()}).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(R,D,n){"use strict";(function(){var y;D.exports=y=function(){function g(S){this.nodes=S}return Object.defineProperty(g.prototype,"length",{get:function(){return this.nodes.length||0}}),g.prototype.clone=function(){return this.nodes=null},g.prototype.item=function(S){return this.nodes[S]||null},g}()}).call(void 0)},{}],275:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=S(y);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m,p,f,d=function(i,t){for(var o in t)l.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},l={}.hasOwnProperty;m=R("./NodeType"),p=R("./XMLCharacterData"),D.exports=f=function(a){d(i,a);function i(t,o,e){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=m.ProcessingInstruction,this.target=this.stringify.insTarget(o),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return i.prototype.clone=function(){return(0,g.default)(this)},i.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},i.prototype.isEqualNode=function(t){return i.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)?!(t.target!==this.target):!1},i}(p)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=S(y);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m,p,f,d=function(i,t){for(var o in t)l.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},l={}.hasOwnProperty;m=R("./NodeType"),p=R("./XMLNode"),D.exports=f=function(a){d(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=m.Raw,this.value=this.stringify.raw(o)}return i.prototype.clone=function(){return(0,g.default)(this)},i.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},i}(p)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(R,D,n){"use strict";(function(){var y,g,S,m,p=function(l,a){for(var i in a)f.call(a,i)&&(l[i]=a[i]);function t(){this.constructor=l}return t.prototype=a.prototype,l.prototype=new t,l.__super__=a.prototype,l},f={}.hasOwnProperty;y=R("./NodeType"),m=R("./XMLWriterBase"),g=R("./WriterState"),D.exports=S=function(d){p(l,d);function l(a,i){this.stream=a,l.__super__.constructor.call(this,i)}return l.prototype.endline=function(a,i,t){return a.isLastRootNode&&i.state===g.CloseTag?"":l.__super__.endline.call(this,a,i,t)},l.prototype.document=function(a,i){var t,o,e,u,r,s,c,h,v;for(c=a.children,o=e=0,r=c.length;e<r;o=++e)t=c[o],t.isLastRootNode=o===a.children.length-1;for(i=this.filterOptions(i),h=a.children,v=[],u=0,s=h.length;u<s;u++)t=h[u],v.push(this.writeChildNode(t,i,0));return v},l.prototype.attribute=function(a,i,t){return this.stream.write(l.__super__.attribute.call(this,a,i,t))},l.prototype.cdata=function(a,i,t){return this.stream.write(l.__super__.cdata.call(this,a,i,t))},l.prototype.comment=function(a,i,t){return this.stream.write(l.__super__.comment.call(this,a,i,t))},l.prototype.declaration=function(a,i,t){return this.stream.write(l.__super__.declaration.call(this,a,i,t))},l.prototype.docType=function(a,i,t){var o,e,u,r;if(t||(t=0),this.openNode(a,i,t),i.state=g.OpenTag,this.stream.write(this.indent(a,i,t)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,i,t)),i.state=g.InsideTag,r=a.children,e=0,u=r.length;e<u;e++)o=r[e],this.writeChildNode(o,i,t+1);i.state=g.CloseTag,this.stream.write("]")}return i.state=g.CloseTag,this.stream.write(i.spaceBeforeSlash+">"),this.stream.write(this.endline(a,i,t)),i.state=g.None,this.closeNode(a,i,t)},l.prototype.element=function(a,i,t){var o,e,u,r,s,c,h,v,A,b;t||(t=0),this.openNode(a,i,t),i.state=g.OpenTag,this.stream.write(this.indent(a,i,t)+"<"+a.name),A=a.attribs;for(h in A){if(!f.call(A,h))continue;o=A[h],this.attribute(o,i,t)}if(u=a.children.length,r=u===0?null:a.children[0],u===0||a.children.every(function(x){return(x.type===y.Text||x.type===y.Raw)&&x.value===""}))i.allowEmpty?(this.stream.write(">"),i.state=g.CloseTag,this.stream.write("</"+a.name+">")):(i.state=g.CloseTag,this.stream.write(i.spaceBeforeSlash+"/>"));else if(i.pretty&&u===1&&(r.type===y.Text||r.type===y.Raw)&&r.value!=null)this.stream.write(">"),i.state=g.InsideTag,i.suppressPrettyCount++,v=!0,this.writeChildNode(r,i,t+1),i.suppressPrettyCount--,v=!1,i.state=g.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,i,t)),i.state=g.InsideTag,b=a.children,s=0,c=b.length;s<c;s++)e=b[s],this.writeChildNode(e,i,t+1);i.state=g.CloseTag,this.stream.write(this.indent(a,i,t)+"</"+a.name+">")}return this.stream.write(this.endline(a,i,t)),i.state=g.None,this.closeNode(a,i,t)},l.prototype.processingInstruction=function(a,i,t){return this.stream.write(l.__super__.processingInstruction.call(this,a,i,t))},l.prototype.raw=function(a,i,t){return this.stream.write(l.__super__.raw.call(this,a,i,t))},l.prototype.text=function(a,i,t){return this.stream.write(l.__super__.text.call(this,a,i,t))},l.prototype.dtdAttList=function(a,i,t){return this.stream.write(l.__super__.dtdAttList.call(this,a,i,t))},l.prototype.dtdElement=function(a,i,t){return this.stream.write(l.__super__.dtdElement.call(this,a,i,t))},l.prototype.dtdEntity=function(a,i,t){return this.stream.write(l.__super__.dtdEntity.call(this,a,i,t))},l.prototype.dtdNotation=function(a,i,t){return this.stream.write(l.__super__.dtdNotation.call(this,a,i,t))},l}(m)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(R,D,n){"use strict";(function(){var y,g,S=function(f,d){for(var l in d)m.call(d,l)&&(f[l]=d[l]);function a(){this.constructor=f}return a.prototype=d.prototype,f.prototype=new a,f.__super__=d.prototype,f},m={}.hasOwnProperty;g=R("./XMLWriterBase"),D.exports=y=function(p){S(f,p);function f(d){f.__super__.constructor.call(this,d)}return f.prototype.document=function(d,l){var a,i,t,o,e;for(l=this.filterOptions(l),o="",e=d.children,i=0,t=e.length;i<t;i++)a=e[i],o+=this.writeChildNode(a,l,0);return l.pretty&&o.slice(-l.newline.length)===l.newline&&(o=o.slice(0,-l.newline.length)),o},f}(g)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(R,D,n){"use strict";(function(){var y,g=function(p,f){return function(){return p.apply(f,arguments)}},S={}.hasOwnProperty;D.exports=y=function(){function m(p){this.assertLegalName=g(this.assertLegalName,this),this.assertLegalChar=g(this.assertLegalChar,this);var f,d,l;p||(p={}),this.options=p,this.options.version||(this.options.version="1.0"),d=p.stringify||{};for(f in d){if(!S.call(d,f))continue;l=d[f],this[f]=l}}return m.prototype.name=function(p){return this.options.noValidation?p:this.assertLegalName(""+p||"")},m.prototype.text=function(p){return this.options.noValidation?p:this.assertLegalChar(this.textEscape(""+p||""))},m.prototype.cdata=function(p){return this.options.noValidation?p:(p=""+p||"",p=p.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(p))},m.prototype.comment=function(p){if(this.options.noValidation)return p;if(p=""+p||"",p.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+p);return this.assertLegalChar(p)},m.prototype.raw=function(p){return this.options.noValidation?p:""+p||""},m.prototype.attValue=function(p){return this.options.noValidation?p:this.assertLegalChar(this.attEscape(p=""+p||""))},m.prototype.insTarget=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},m.prototype.insValue=function(p){if(this.options.noValidation)return p;if(p=""+p||"",p.match(/\?>/))throw new Error("Invalid processing instruction value: "+p);return this.assertLegalChar(p)},m.prototype.xmlVersion=function(p){if(this.options.noValidation)return p;if(p=""+p||"",!p.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+p);return p},m.prototype.xmlEncoding=function(p){if(this.options.noValidation)return p;if(p=""+p||"",!p.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+p);return this.assertLegalChar(p)},m.prototype.xmlStandalone=function(p){return this.options.noValidation?p:p?"yes":"no"},m.prototype.dtdPubID=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},m.prototype.dtdSysID=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},m.prototype.dtdElementValue=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},m.prototype.dtdAttType=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},m.prototype.dtdAttDefault=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},m.prototype.dtdEntityValue=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},m.prototype.dtdNData=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},m.prototype.convertAttKey="@",m.prototype.convertPIKey="?",m.prototype.convertTextKey="#text",m.prototype.convertCDataKey="#cdata",m.prototype.convertCommentKey="#comment",m.prototype.convertRawKey="#raw",m.prototype.assertLegalChar=function(p){var f,d;if(this.options.noValidation)return p;if(f="",this.options.version==="1.0"){if(f=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,d=p.match(f))throw new Error("Invalid character in string: "+p+" at index "+d.index)}else if(this.options.version==="1.1"&&(f=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,d=p.match(f)))throw new Error("Invalid character in string: "+p+" at index "+d.index);return p},m.prototype.assertLegalName=function(p){var f;if(this.options.noValidation)return p;if(this.assertLegalChar(p),f=/^([: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])*$/,!p.match(f))throw new Error("Invalid character in name");return p},m.prototype.textEscape=function(p){var f;return this.options.noValidation?p:(f=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,p.replace(f,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},m.prototype.attEscape=function(p){var f;return this.options.noValidation?p:(f=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,p.replace(f,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},m}()}).call(void 0)},{}],280:[function(R,D,n){"use strict";var y=R("babel-runtime/core-js/object/create"),g=S(y);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m,p,f,d=function(i,t){for(var o in t)l.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},l={}.hasOwnProperty;m=R("./NodeType"),p=R("./XMLCharacterData"),D.exports=f=function(a){d(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=m.Text,this.value=this.stringify.text(o)}return Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){var o,e,u;for(u="",e=this.previousSibling;e;)u=e.data+u,e=e.previousSibling;for(u+=this.data,o=this.nextSibling;o;)u=u+o.data,o=o.nextSibling;return u}}),i.prototype.clone=function(){return(0,g.default)(this)},i.prototype.toString=function(t){return this.options.writer.text(this,this.options.writer.filterOptions(t))},i.prototype.splitText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceWholeText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i}(p)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(R,D,n){"use strict";(function(){var y,g,S,m,p,f,d,l,a,i,t,o,e,u,r,s,c,h={}.hasOwnProperty;c=R("./Utility").assign,y=R("./NodeType"),a=R("./XMLDeclaration"),i=R("./XMLDocType"),S=R("./XMLCData"),m=R("./XMLComment"),o=R("./XMLElement"),u=R("./XMLRaw"),r=R("./XMLText"),e=R("./XMLProcessingInstruction"),t=R("./XMLDummy"),p=R("./XMLDTDAttList"),f=R("./XMLDTDElement"),d=R("./XMLDTDEntity"),l=R("./XMLDTDNotation"),g=R("./WriterState"),D.exports=s=function(){function v(A){var b,x,E;A||(A={}),this.options=A,x=A.writer||{};for(b in x){if(!h.call(x,b))continue;E=x[b],this["_"+b]=this[b],this[b]=E}}return v.prototype.filterOptions=function(A){var b,x,E,T,_,C,w,O;return A||(A={}),A=c({},this.options,A),b={writer:this},b.pretty=A.pretty||!1,b.allowEmpty=A.allowEmpty||!1,b.indent=(x=A.indent)!=null?x:" ",b.newline=(E=A.newline)!=null?E:`
`,b.offset=(T=A.offset)!=null?T:0,b.dontPrettyTextNodes=(_=(C=A.dontPrettyTextNodes)!=null?C:A.dontprettytextnodes)!=null?_:0,b.spaceBeforeSlash=(w=(O=A.spaceBeforeSlash)!=null?O:A.spacebeforeslash)!=null?w:"",b.spaceBeforeSlash===!0&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=g.None,b},v.prototype.indent=function(A,b,x){var E;return!b.pretty||b.suppressPrettyCount?"":b.pretty&&(E=(x||0)+b.offset+1,E>0)?new Array(E).join(b.indent):""},v.prototype.endline=function(A,b,x){return!b.pretty||b.suppressPrettyCount?"":b.newline},v.prototype.attribute=function(A,b,x){var E;return this.openAttribute(A,b,x),E=" "+A.name+'="'+A.value+'"',this.closeAttribute(A,b,x),E},v.prototype.cdata=function(A,b,x){var E;return this.openNode(A,b,x),b.state=g.OpenTag,E=this.indent(A,b,x)+"<![CDATA[",b.state=g.InsideTag,E+=A.value,b.state=g.CloseTag,E+="]]>"+this.endline(A,b,x),b.state=g.None,this.closeNode(A,b,x),E},v.prototype.comment=function(A,b,x){var E;return this.openNode(A,b,x),b.state=g.OpenTag,E=this.indent(A,b,x)+"<!-- ",b.state=g.InsideTag,E+=A.value,b.state=g.CloseTag,E+=" -->"+this.endline(A,b,x),b.state=g.None,this.closeNode(A,b,x),E},v.prototype.declaration=function(A,b,x){var E;return this.openNode(A,b,x),b.state=g.OpenTag,E=this.indent(A,b,x)+"<?xml",b.state=g.InsideTag,E+=' version="'+A.version+'"',A.encoding!=null&&(E+=' encoding="'+A.encoding+'"'),A.standalone!=null&&(E+=' standalone="'+A.standalone+'"'),b.state=g.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(A,b,x),b.state=g.None,this.closeNode(A,b,x),E},v.prototype.docType=function(A,b,x){var E,T,_,C,w;if(x||(x=0),this.openNode(A,b,x),b.state=g.OpenTag,C=this.indent(A,b,x),C+="<!DOCTYPE "+A.root().name,A.pubID&&A.sysID?C+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(C+=' SYSTEM "'+A.sysID+'"'),A.children.length>0){for(C+=" [",C+=this.endline(A,b,x),b.state=g.InsideTag,w=A.children,T=0,_=w.length;T<_;T++)E=w[T],C+=this.writeChildNode(E,b,x+1);b.state=g.CloseTag,C+="]"}return b.state=g.CloseTag,C+=b.spaceBeforeSlash+">",C+=this.endline(A,b,x),b.state=g.None,this.closeNode(A,b,x),C},v.prototype.element=function(A,b,x){var E,T,_,C,w,O,I,k,M,U,P,X,F,j;x||(x=0),U=!1,P="",this.openNode(A,b,x),b.state=g.OpenTag,P+=this.indent(A,b,x)+"<"+A.name,X=A.attribs;for(M in X){if(!h.call(X,M))continue;E=X[M],P+=this.attribute(E,b,x)}if(_=A.children.length,C=_===0?null:A.children[0],_===0||A.children.every(function(K){return(K.type===y.Text||K.type===y.Raw)&&K.value===""}))b.allowEmpty?(P+=">",b.state=g.CloseTag,P+="</"+A.name+">"+this.endline(A,b,x)):(b.state=g.CloseTag,P+=b.spaceBeforeSlash+"/>"+this.endline(A,b,x));else if(b.pretty&&_===1&&(C.type===y.Text||C.type===y.Raw)&&C.value!=null)P+=">",b.state=g.InsideTag,b.suppressPrettyCount++,U=!0,P+=this.writeChildNode(C,b,x+1),b.suppressPrettyCount--,U=!1,b.state=g.CloseTag,P+="</"+A.name+">"+this.endline(A,b,x);else{if(b.dontPrettyTextNodes){for(F=A.children,w=0,I=F.length;w<I;w++)if(T=F[w],(T.type===y.Text||T.type===y.Raw)&&T.value!=null){b.suppressPrettyCount++,U=!0;break}}for(P+=">"+this.endline(A,b,x),b.state=g.InsideTag,j=A.children,O=0,k=j.length;O<k;O++)T=j[O],P+=this.writeChildNode(T,b,x+1);b.state=g.CloseTag,P+=this.indent(A,b,x)+"</"+A.name+">",U&&b.suppressPrettyCount--,P+=this.endline(A,b,x),b.state=g.None}return this.closeNode(A,b,x),P},v.prototype.writeChildNode=function(A,b,x){switch(A.type){case y.CData:return this.cdata(A,b,x);case y.Comment:return this.comment(A,b,x);case y.Element:return this.element(A,b,x);case y.Raw:return this.raw(A,b,x);case y.Text:return this.text(A,b,x);case y.ProcessingInstruction:return this.processingInstruction(A,b,x);case y.Dummy:return"";case y.Declaration:return this.declaration(A,b,x);case y.DocType:return this.docType(A,b,x);case y.AttributeDeclaration:return this.dtdAttList(A,b,x);case y.ElementDeclaration:return this.dtdElement(A,b,x);case y.EntityDeclaration:return this.dtdEntity(A,b,x);case y.NotationDeclaration:return this.dtdNotation(A,b,x);default:throw new Error("Unknown XML node type: "+A.constructor.name)}},v.prototype.processingInstruction=function(A,b,x){var E;return this.openNode(A,b,x),b.state=g.OpenTag,E=this.indent(A,b,x)+"<?",b.state=g.InsideTag,E+=A.target,A.value&&(E+=" "+A.value),b.state=g.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(A,b,x),b.state=g.None,this.closeNode(A,b,x),E},v.prototype.raw=function(A,b,x){var E;return this.openNode(A,b,x),b.state=g.OpenTag,E=this.indent(A,b,x),b.state=g.InsideTag,E+=A.value,b.state=g.CloseTag,E+=this.endline(A,b,x),b.state=g.None,this.closeNode(A,b,x),E},v.prototype.text=function(A,b,x){var E;return this.openNode(A,b,x),b.state=g.OpenTag,E=this.indent(A,b,x),b.state=g.InsideTag,E+=A.value,b.state=g.CloseTag,E+=this.endline(A,b,x),b.state=g.None,this.closeNode(A,b,x),E},v.prototype.dtdAttList=function(A,b,x){var E;return this.openNode(A,b,x),b.state=g.OpenTag,E=this.indent(A,b,x)+"<!ATTLIST",b.state=g.InsideTag,E+=" "+A.elementName+" "+A.attributeName+" "+A.attributeType,A.defaultValueType!=="#DEFAULT"&&(E+=" "+A.defaultValueType),A.defaultValue&&(E+=' "'+A.defaultValue+'"'),b.state=g.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,x),b.state=g.None,this.closeNode(A,b,x),E},v.prototype.dtdElement=function(A,b,x){var E;return this.openNode(A,b,x),b.state=g.OpenTag,E=this.indent(A,b,x)+"<!ELEMENT",b.state=g.InsideTag,E+=" "+A.name+" "+A.value,b.state=g.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,x),b.state=g.None,this.closeNode(A,b,x),E},v.prototype.dtdEntity=function(A,b,x){var E;return this.openNode(A,b,x),b.state=g.OpenTag,E=this.indent(A,b,x)+"<!ENTITY",b.state=g.InsideTag,A.pe&&(E+=" %"),E+=" "+A.name,A.value?E+=' "'+A.value+'"':(A.pubID&&A.sysID?E+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(E+=' SYSTEM "'+A.sysID+'"'),A.nData&&(E+=" NDATA "+A.nData)),b.state=g.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,x),b.state=g.None,this.closeNode(A,b,x),E},v.prototype.dtdNotation=function(A,b,x){var E;return this.openNode(A,b,x),b.state=g.OpenTag,E=this.indent(A,b,x)+"<!NOTATION",b.state=g.InsideTag,E+=" "+A.name,A.pubID&&A.sysID?E+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.pubID?E+=' PUBLIC "'+A.pubID+'"':A.sysID&&(E+=' SYSTEM "'+A.sysID+'"'),b.state=g.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,x),b.state=g.None,this.closeNode(A,b,x),E},v.prototype.openNode=function(A,b,x){},v.prototype.closeNode=function(A,b,x){},v.prototype.openAttribute=function(A,b,x){},v.prototype.closeAttribute=function(A,b,x){},v}()}).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(R,D,n){"use strict";(function(){var y,g,S,m,p,f,d,l,a,i;i=R("./Utility"),l=i.assign,a=i.isFunction,S=R("./XMLDOMImplementation"),m=R("./XMLDocument"),p=R("./XMLDocumentCB"),d=R("./XMLStringWriter"),f=R("./XMLStreamWriter"),y=R("./NodeType"),g=R("./WriterState"),D.exports.create=function(t,o,e,u){var r,s;if(t==null)throw new Error("Root element needs a name.");return u=l({},o,e,u),r=new m(u),s=r.element(t),u.headless||(r.declaration(u),(u.pubID!=null||u.sysID!=null)&&r.dtd(u)),s},D.exports.begin=function(t,o,e){var u;return a(t)&&(u=[t,o],o=u[0],e=u[1],t={}),o?new p(t,o,e):new m(t)},D.exports.stringWriter=function(t){return new d(t)},D.exports.streamWriter=function(t,o){return new f(t,o)},D.exports.implementation=new S,D.exports.nodeType=y,D.exports.writerState=g}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(R,D,n){D.exports=g;var y=Object.prototype.hasOwnProperty;function g(){for(var S={},m=0;m<arguments.length;m++){var p=arguments[m];for(var f in p)y.call(p,f)&&(S[f]=p[f])}return S}},{}],284:[function(R,D,n){"use strict";var y=R("buffer").Buffer,g=R("./sha"),S=R("./md5"),m={sha1:g,md5:S},p=64,f=y.alloc(p);f.fill(0);function d(i,t,o){y.isBuffer(t)||(t=y.from(t)),y.isBuffer(o)||(o=y.from(o)),t.length>p?t=i(t):t.length<p&&(t=y.concat([t,f],p));for(var e=y.alloc(p),u=y.alloc(p),r=0;r<p;r++)e[r]=t[r]^54,u[r]=t[r]^92;var s=i(y.concat([e,o]));return i(y.concat([u,s]))}function l(i,t){i=i||"sha1";var o=m[i],e=[],u=0;return o||a("algorithm:",i,"is not yet supported"),{update:function(s){return y.isBuffer(s)||(s=y.from(s)),e.push(s),u+=s.length,this},digest:function(s){var c=y.concat(e),h=t?d(o,t,c):o(c);return e=null,s?h.toString(s):h}}}function a(){var i=[].slice.call(arguments).join(" ");throw new Error([i,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}n.createHash=function(i){return l(i)},n.createHmac=function(i,t){return l(i,t)},n.createCredentials=function(){a("sorry,createCredentials is not implemented yet")},n.createCipher=function(){a("sorry,createCipher is not implemented yet")},n.createCipheriv=function(){a("sorry,createCipheriv is not implemented yet")},n.createDecipher=function(){a("sorry,createDecipher is not implemented yet")},n.createDecipheriv=function(){a("sorry,createDecipheriv is not implemented yet")},n.createSign=function(){a("sorry,createSign is not implemented yet")},n.createVerify=function(){a("sorry,createVerify is not implemented yet")},n.createDiffieHellman=function(){a("sorry,createDiffieHellman is not implemented yet")},n.pbkdf2=function(){a("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(R,D,n){"use strict";var y=R("buffer").Buffer,g=4,S=y.alloc(g);S.fill(0);var m=8;function p(l,a){if(l.length%g!==0){var i=l.length+(g-l.length%g);l=y.concat([l,S],i)}for(var t=[],o=a?l.readInt32BE:l.readInt32LE,e=0;e<l.length;e+=g)t.push(o.call(l,e));return t}function f(l,a,i){for(var t=y.alloc(a),o=i?t.writeInt32BE:t.writeInt32LE,e=0;e<l.length;e++)o.call(t,l[e],e*4,!0);return t}function d(l,a,i,t){y.isBuffer(l)||(l=y.from(l));var o=a(p(l,t),l.length*m);return f(o,i,t)}D.exports={hash:d}},{buffer:73}],286:[function(R,D,n){"use strict";var y=R("./helpers");function g(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function S(t,o){t[o>>5]|=128<<o%32,t[(o+64>>>9<<4)+14]=o;for(var e=1732584193,u=-271733879,r=-1732584194,s=271733878,c=0;c<t.length;c+=16){var h=e,v=u,A=r,b=s;e=p(e,u,r,s,t[c+0],7,-680876936),s=p(s,e,u,r,t[c+1],12,-389564586),r=p(r,s,e,u,t[c+2],17,606105819),u=p(u,r,s,e,t[c+3],22,-1044525330),e=p(e,u,r,s,t[c+4],7,-176418897),s=p(s,e,u,r,t[c+5],12,1200080426),r=p(r,s,e,u,t[c+6],17,-1473231341),u=p(u,r,s,e,t[c+7],22,-45705983),e=p(e,u,r,s,t[c+8],7,1770035416),s=p(s,e,u,r,t[c+9],12,-1958414417),r=p(r,s,e,u,t[c+10],17,-42063),u=p(u,r,s,e,t[c+11],22,-1990404162),e=p(e,u,r,s,t[c+12],7,1804603682),s=p(s,e,u,r,t[c+13],12,-40341101),r=p(r,s,e,u,t[c+14],17,-1502002290),u=p(u,r,s,e,t[c+15],22,1236535329),e=f(e,u,r,s,t[c+1],5,-165796510),s=f(s,e,u,r,t[c+6],9,-1069501632),r=f(r,s,e,u,t[c+11],14,643717713),u=f(u,r,s,e,t[c+0],20,-373897302),e=f(e,u,r,s,t[c+5],5,-701558691),s=f(s,e,u,r,t[c+10],9,38016083),r=f(r,s,e,u,t[c+15],14,-660478335),u=f(u,r,s,e,t[c+4],20,-405537848),e=f(e,u,r,s,t[c+9],5,568446438),s=f(s,e,u,r,t[c+14],9,-1019803690),r=f(r,s,e,u,t[c+3],14,-187363961),u=f(u,r,s,e,t[c+8],20,1163531501),e=f(e,u,r,s,t[c+13],5,-1444681467),s=f(s,e,u,r,t[c+2],9,-51403784),r=f(r,s,e,u,t[c+7],14,1735328473),u=f(u,r,s,e,t[c+12],20,-1926607734),e=d(e,u,r,s,t[c+5],4,-378558),s=d(s,e,u,r,t[c+8],11,-2022574463),r=d(r,s,e,u,t[c+11],16,1839030562),u=d(u,r,s,e,t[c+14],23,-35309556),e=d(e,u,r,s,t[c+1],4,-1530992060),s=d(s,e,u,r,t[c+4],11,1272893353),r=d(r,s,e,u,t[c+7],16,-155497632),u=d(u,r,s,e,t[c+10],23,-1094730640),e=d(e,u,r,s,t[c+13],4,681279174),s=d(s,e,u,r,t[c+0],11,-358537222),r=d(r,s,e,u,t[c+3],16,-722521979),u=d(u,r,s,e,t[c+6],23,76029189),e=d(e,u,r,s,t[c+9],4,-640364487),s=d(s,e,u,r,t[c+12],11,-421815835),r=d(r,s,e,u,t[c+15],16,530742520),u=d(u,r,s,e,t[c+2],23,-995338651),e=l(e,u,r,s,t[c+0],6,-198630844),s=l(s,e,u,r,t[c+7],10,1126891415),r=l(r,s,e,u,t[c+14],15,-1416354905),u=l(u,r,s,e,t[c+5],21,-57434055),e=l(e,u,r,s,t[c+12],6,1700485571),s=l(s,e,u,r,t[c+3],10,-1894986606),r=l(r,s,e,u,t[c+10],15,-1051523),u=l(u,r,s,e,t[c+1],21,-2054922799),e=l(e,u,r,s,t[c+8],6,1873313359),s=l(s,e,u,r,t[c+15],10,-30611744),r=l(r,s,e,u,t[c+6],15,-1560198380),u=l(u,r,s,e,t[c+13],21,1309151649),e=l(e,u,r,s,t[c+4],6,-145523070),s=l(s,e,u,r,t[c+11],10,-1120210379),r=l(r,s,e,u,t[c+2],15,718787259),u=l(u,r,s,e,t[c+9],21,-343485551),e=a(e,h),u=a(u,v),r=a(r,A),s=a(s,b)}return Array(e,u,r,s)}function m(t,o,e,u,r,s){return a(i(a(a(o,t),a(u,s)),r),e)}function p(t,o,e,u,r,s,c){return m(o&e|~o&u,t,o,r,s,c)}function f(t,o,e,u,r,s,c){return m(o&u|e&~u,t,o,r,s,c)}function d(t,o,e,u,r,s,c){return m(o^e^u,t,o,r,s,c)}function l(t,o,e,u,r,s,c){return m(e^(o|~u),t,o,r,s,c)}function a(t,o){var e=(t&65535)+(o&65535),u=(t>>16)+(o>>16)+(e>>16);return u<<16|e&65535}function i(t,o){return t<<o|t>>>32-o}D.exports=function(o){return y.hash(o,S,16)}},{"./helpers":285}],287:[function(R,D,n){"use strict";var y=R("./helpers");function g(d,l){d[l>>5]|=128<<24-l%32,d[(l+64>>9<<4)+15]=l;for(var a=Array(80),i=1732584193,t=-271733879,o=-1732584194,e=271733878,u=-1009589776,r=0;r<d.length;r+=16){for(var s=i,c=t,h=o,v=e,A=u,b=0;b<80;b++){b<16?a[b]=d[r+b]:a[b]=f(a[b-3]^a[b-8]^a[b-14]^a[b-16],1);var x=p(p(f(i,5),S(b,t,o,e)),p(p(u,a[b]),m(b)));u=e,e=o,o=f(t,30),t=i,i=x}i=p(i,s),t=p(t,c),o=p(o,h),e=p(e,v),u=p(u,A)}return Array(i,t,o,e,u)}function S(d,l,a,i){return d<20?l&a|~l&i:d<40?l^a^i:d<60?l&a|l&i|a&i:l^a^i}function m(d){return d<20?1518500249:d<40?1859775393:d<60?-1894007588:-899497514}function p(d,l){var a=(d&65535)+(l&65535),i=(d>>16)+(l>>16)+(a>>16);return i<<16|a&65535}function f(d,l){return d<<l|d>>>32-l}D.exports=function(l){return y.hash(l,g,20,!0)}},{"./helpers":285}],288:[function(R,D,n){"use strict";D.exports=function(){return function(){}}},{}],289:[function(R,D,n){(function(y){"use strict";var g=R("babel-runtime/helpers/typeof"),S=m(g);function m(i){return i&&i.__esModule?i:{default:i}}var p=R("stream"),f=p.Stream,d=R("../lib/common/utils/isArray"),l=d.isArray;D.exports.string=function(t){return typeof t=="string"},D.exports.array=l,D.exports.buffer=y.isBuffer;function a(i){return i instanceof f}D.exports.writableStream=function(t){return a(t)&&typeof t._write=="function"&&(0,S.default)(t._writableState)==="object"}}).call(this,{isBuffer:R("../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(R,D,n){"use strict";n.encodeURIComponent=function(y){try{return encodeURIComponent(y)}catch(g){return y}},n.escape=R("escape-html"),n.timestamp=function(g){if(g){var S=g;return typeof S=="string"&&(S=Number(S)),String(g).length===10&&(S*=1e3),new Date(S)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(R,D,n){(function(y,g){"use strict";var S=R("babel-runtime/core-js/json/stringify"),m=d(S),p=R("babel-runtime/helpers/typeof"),f=d(p);function d(b){return b&&b.__esModule?b:{default:b}}var l=R("util"),a=R("url"),i=R("http"),t=R("https"),o=R("debug")("urllib"),e=R("humanize-ms"),u,r=0,s=Math.pow(2,31)-10,c=/^https?:\/\//i;function h(b,x){return b===void 0?x:b}function v(b,x){return function(E,T,_){if(E)return x(E);b({data:T,status:_.statusCode,headers:_.headers,res:_})}}n.TIMEOUTS=[e("300s"),e("300s")];var A=["json","text"];n.request=function(x,E,T){return arguments.length===2&&typeof E=="function"&&(T=E,E=null),typeof T=="function"?n.requestWithCallback(x,E,T):(u||(u=R("any-promise")),new u(function(_,C){n.requestWithCallback(x,E,v(_,C))}))},n.requestWithCallback=function(x,E,T){if(!x||typeof x!="string"&&(typeof x=="undefined"?"undefined":(0,f.default)(x))!=="object"){var _=l.format("expect request url to be a string or a http request options, but got %j",x);throw new Error(_)}arguments.length===2&&typeof E=="function"&&(T=E,E=null),E=E||{},r>=s&&(r=0);var C=++r;E.requestUrls=E.requestUrls||[];var w={requestId:C,url:x,args:E,ctx:E.ctx};E.emitter&&E.emitter.emit("request",w),E.timeout=E.timeout||n.TIMEOUTS,E.maxRedirects=E.maxRedirects||10,E.streaming=E.streaming||E.customResponse;var O=Date.now(),I;typeof x=="string"?(c.test(x)||(x="http://"+x),I=a.parse(x)):I=x;var k=(E.type||E.method||I.method||"GET").toUpperCase(),M=I.port||80,U=i,P=h(E.agent,n.agent),X=E.fixJSONCtlChars;I.protocol==="https:"&&(U=t,P=h(E.httpsAgent,n.httpsAgent),I.port||(M=443));var F={host:I.hostname||I.host||"localhost",path:I.path||"/",method:k,port:M,agent:P,headers:E.headers||{},lookup:E.lookup};Array.isArray(E.timeout)?F.requestTimeout=E.timeout[E.timeout.length-1]:typeof E.timeout!="undefined"&&(F.requestTimeout=E.timeout);for(var j=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],K=0;K<j.length;K++){var z=j[K];E.hasOwnProperty(z)&&(F[z]=E[z])}F.rejectUnauthorized===!1&&!F.hasOwnProperty("secureOptions")&&(F.secureOptions=R("constants").SSL_OP_NO_TLSv1_2);var V=E.auth||I.auth;V&&(F.auth=V);var Q=E.content||E.data,G=k==="GET"||k==="HEAD"||E.dataAsQueryString;if(!E.content&&(Q&&!(typeof Q=="string"||g.isBuffer(Q))))if(G)Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q);else{var te=F.headers["Content-Type"]||F.headers["content-type"];te||(E.contentType==="json"?te="application/json":te="application/x-www-form-urlencoded",F.headers["Content-Type"]=te),parseContentType(te).type==="application/json"?Q=(0,m.default)(Q):Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q)}G&&Q&&(F.path+=(I.query?"&":"?")+Q,Q=null);var q=0;if(Q){var se=Q.length;g.isBuffer(Q)||(se=g.byteLength(Q)),q=F.headers["Content-Length"]=se}E.dataType==="json"&&(F.headers.Accept="application/json"),typeof E.beforeRequest=="function"&&E.beforeRequest(F);var re=null,we=null,Oe=null,Me=!1,Qe=!1,Ve=0,dt=-1,Fe=!1,ue="",et="",he=null;E.timing&&(he={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function J(){re&&(clearTimeout(re),re=null)}function Y(){we&&(clearTimeout(we),we=null)}function $(He,nr,ht){if(Y(),!T){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),C,y.pid,F.method,x),He&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),C,y.pid,He.name,He.message,He.stack);return}var Gt=T;T=null;var pr={};if(ht&&(dt=ht.statusCode,pr=ht.headers),dt===401&&pr["www-authenticate"]&&(!E.headers||!E.headers.Authorization)&&E.digestAuth){var Qt=pr["www-authenticate"];if(Qt.indexOf("Digest ")>=0)return o("Request#%d %s: got digest auth header WWW-Authenticate: %s",C,x,Qt),E.headers=E.headers||{},E.headers.Authorization=digestAuthHeader(F.method,F.path,Qt,E.digestAuth),o("Request#%d %s: auth with digest header: %s",C,x,E.headers.Authorization),ht.headers["set-cookie"]&&(E.headers.Cookie=ht.headers["set-cookie"].join(";")),n.requestWithCallback(x,E,Gt)}var Ht=Date.now()-O;he&&(he.contentDownload=Ht),o("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ht,Ve,dt,F.method,F.host,F.path,Qe,he);var Jt={status:dt,statusCode:dt,headers:pr,size:Ve,aborted:Fe,rt:Ht,keepAliveSocket:Qe,data:nr,requestUrls:E.requestUrls,timing:he,remoteAddress:ue,remotePort:et};if(He){var Ge="";P&&typeof P.getCurrentStatus=="function"&&(Ge=", agent status: "+(0,m.default)(P.getCurrentStatus())),He.message+=", "+F.method+" "+x+" "+dt+" (connected: "+Me+", keepalive socket: "+Qe+Ge+`)
headers: `+(0,m.default)(pr),He.data=nr,He.path=F.path,He.status=dt,He.headers=pr,He.res=Jt}Gt(He,nr,E.streaming?ht:Jt),E.emitter&&(w.url=x,w.socket=Ct&&Ct.connection,w.options=F,w.size=q,E.emitter.emit("response",{requestId:C,error:He,ctx:E.ctx,req:w,res:Jt}))}function de(He){var nr=null;if(E.followRedirect&&statuses.redirect[He.statusCode]){E._followRedirectCount=(E._followRedirectCount||0)+1;var ht=He.headers.location;if(!ht)nr=new Error("Got statusCode "+He.statusCode+" but cannot resolve next location from headers"),nr.name="FollowRedirectError";else if(E._followRedirectCount>E.maxRedirects)nr=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+x),nr.name="MaxRedirectError";else{var Gt=E.formatRedirectUrl?E.formatRedirectUrl(x,ht):a.resolve(x,ht);o("Request#%d %s: `redirected` from %s to %s",C,F.path,x,Gt),Y(),E.headers&&E.headers.Host&&c.test(ht)&&(E.headers.Host=null);var pr=T;return T=null,n.requestWithCallback(Gt,E,pr),{redirect:!0,error:null}}}return{redirect:!1,error:nr}}!F.headers["User-Agent"]&&!F.headers["user-agent"]&&(F.headers["User-Agent"]=navigator.userAgent),E.gzip&&(!F.headers["Accept-Encoding"]&&!F.headers["accept-encoding"]&&(F.headers["Accept-Encoding"]="gzip"));function be(He,nr,ht){var Gt=He.headers["content-encoding"];return ht(null,nr,Gt)}var Te=E.writeStream;o("Request#%d %s %s with headers %j, options.path: %s",C,k,x,F.headers,F.path),E.requestUrls.push(x);function Be(He){if(he&&(he.waiting=Date.now()-O),o("Request#%d %s `req response` event emit: status %d, headers: %j",C,x,He.statusCode,He.headers),E.streaming){var nr=de(He);if(nr.redirect){He.resume();return}return nr.error?(He.resume(),$(nr.error,null,He)):$(null,null,He)}if(He.on("close",function(){o("Request#%d %s: `res close` event emit, total size %d",C,x,Ve)}),He.on("error",function(){o("Request#%d %s: `res error` event emit, total size %d",C,x,Ve)}),He.on("aborted",function(){Fe=!0,o("Request#%d %s: `res aborted` event emit, total size %d",C,x,Ve)}),Te){var nr=de(He);if(nr.redirect){He.resume();return}return nr.error?(He.resume(),Te.end(),$(nr.error,null,He)):(E.consumeWriteStream===!1?He.on("end",$.bind(null,null,null,He)):isNode010||isNode012?first([[Te,"close"],[He,"aborted"]],function(pr,Qt,Ht){o("Request#%d %s: writeStream or res %s event emitted",C,x,Ht),$(Oe||null,null,He)}):Te.on("close",function(){o("Request#%d %s: writeStream close event emitted",C,x),$(Oe||null,null,He)}),He.pipe(Te))}var ht=[];He.on("data",function(Gt){o("Request#%d %s: `res data` event emit, size %d",C,x,Gt.length),Ve+=Gt.length,ht.push(Gt)}),He.on("end",function(){var Gt=g.concat(ht,Ve);if(o("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",C,x,Ve,He._dumped),Oe)return $(Oe,Gt,He);var pr=de(He);if(pr.error)return $(pr.error,Gt,He);if(pr.redirect)return;be(He,Gt,function(Qt,Ht,Jt){if(Qt)return $(Qt,Gt,He);if(!Jt&&A.indexOf(E.dataType)>=0){try{Ht=decodeBodyByCharset(Ht,He)}catch(pe){return o("decodeBodyByCharset error: %s",pe),$(null,Ht,He)}if(E.dataType==="json")if(Ve===0)Ht=null;else{var Ge=parseJSON(Ht,X);Ge.error?Qt=Ge.error:Ht=Ge.data}}Fe&&o("Request#%d %s: Remote socket was terminated before `response.end()` was called",C,x),$(Qt,Ht,He)})})}var fe,xe;Array.isArray(E.timeout)?(fe=e(E.timeout[0]),xe=e(E.timeout[1])):fe=xe=e(E.timeout),o("ConnectTimeout: %d, ResponseTimeout: %d",fe,xe);function ke(){o("Connect timer ticking, timeout: %d",fe),re=setTimeout(function(){re=null,dt===-1&&(dt=-2);var He="Connect timeout for "+fe+"ms",nr="ConnectionTimeoutError";Ct.socket||(nr="SocketAssignTimeoutError",He+=", working sockets is full"),Oe=new Error(He),Oe.name=nr,Oe.requestId=C,o("ConnectTimeout: Request#%d %s %s: %s, connected: %s",C,x,Oe.name,He,Me),pt()},fe)}function nt(){o("Response timer ticking, timeout: %d",xe),we=setTimeout(function(){we=null;var He="Response timeout for "+xe+"ms",nr="ResponseTimeoutError";Oe=new Error(He),Oe.name=nr,Oe.requestId=C,o("ResponseTimeout: Request#%d %s %s: %s, connected: %s",C,x,Oe.name,He,Me),pt()},xe)}var Ct;F.mode=E.mode?E.mode:"";try{Ct=U.request(F,Be)}catch(He){return $(He)}typeof window=="undefined"?ke():Ct.on("requestTimeout",function(){dt===-1&&(dt=-2);var He="Connect timeout for "+fe+"ms",nr="ConnectionTimeoutError";Oe=new Error(He),Oe.name=nr,Oe.requestId=C,pt()});function pt(){o("Request#%d %s abort, connected: %s",C,x,Me),Ct.socket||(Oe.noSocket=!0,$(Oe)),Ct.abort()}return he&&Ct.on("finish",function(){he.requestSent=Date.now()-O}),Ct.once("socket",function(He){he&&(he.queuing=Date.now()-O),isNode010&&He.socket&&(He=He.socket);var nr=He.readyState;if(nr==="opening"){He.once("lookup",function(ht,Gt,pr){o("Request#%d %s lookup: %s, %s, %s",C,x,ht,Gt,pr),he&&(he.dnslookup=Date.now()-O),Gt&&(ue=Gt)}),He.once("connect",function(){he&&(he.connected=Date.now()-O),J(),nt(),o("Request#%d %s new socket connected",C,x),Me=!0,ue||(ue=He.remoteAddress),et=He.remotePort});return}o("Request#%d %s reuse socket connected, readyState: %s",C,x,nr),Me=!0,Qe=!0,ue||(ue=He.remoteAddress),et=He.remotePort,J(),nt()}),Ct.on("error",function(He){(He.name==="Error"||He.name==="TypeError")&&(He.name=Me?"ResponseError":"RequestError"),He.message+=' (req "error")',o("Request#%d %s `req error` event emit, %s: %s",C,x,He.name,He.message),$(Oe||He)}),Te&&Te.once("error",function(He){He.message+=' (writeStream "error")',Oe=He,o("Request#%d %s `writeStream error` event emit, %s: %s",C,x,He.name,He.message),pt()}),E.stream?(E.stream.pipe(Ct),E.stream.once("error",function(He){He.message+=' (stream "error")',Oe=He,o("Request#%d %s `readStream error` event emit, %s: %s",C,x,He.name,He.message),pt()})):Ct.end(Q),Ct.requestId=C,Ct}}).call(this,R("_process"),R("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(R,D,n){var y=n("hX1E"),g=y.normalizeRadian,S=Math.PI*2;function m(p,f,d,l,a,i,t,o,e){if(t===0)return!1;var u=t;o-=p,e-=f;var r=Math.sqrt(o*o+e*e);if(r-u>d||r+u<d)return!1;if(Math.abs(l-a)%S<1e-4)return!0;if(i){var s=l;l=g(a),a=g(s)}else l=g(l),a=g(a);l>a&&(a+=S);var c=Math.atan2(e,o);return c<0&&(c+=S),c>=l&&c<=a||c+S>=l&&c+S<=a}D.containStroke=m},n4Lv:function(R,D,n){var y=n("7hqr"),g=y.isDimensionStacked,S=n("bYtY"),m=S.map;function p(l,a,i){var t=l.getBaseAxis(),o=l.getOtherAxis(t),e=f(o,i),u=t.dim,r=o.dim,s=a.mapDimension(r),c=a.mapDimension(u),h=r==="x"||r==="radius"?1:0,v=m(l.dimensions,function(x){return a.mapDimension(x)}),A,b=a.getCalculationInfo("stackResultDimension");return(A|=g(a,v[0]))&&(v[0]=b),(A|=g(a,v[1]))&&(v[1]=b),{dataDimsForPoint:v,valueStart:e,valueAxisDim:r,baseAxisDim:u,stacked:!!A,valueDim:s,baseDim:c,baseDataOffset:h,stackedOverDimension:a.getCalculationInfo("stackedOverDimension")}}function f(l,a){var i=0,t=l.scale.getExtent();return a==="start"?i=t[0]:a==="end"?i=t[1]:t[0]>0?i=t[0]:t[1]<0&&(i=t[1]),i}function d(l,a,i,t){var o=NaN;l.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),t)),isNaN(o)&&(o=l.valueStart);var e=l.baseDataOffset,u=[];return u[e]=i.get(l.baseDim,t),u[1-e]=o,a.dataToPoint(u)}D.prepareDataCoordInfo=p,D.getStackedOnPoint=d},n6Mw:function(R,D,n){var y=n("SrGk"),g=n("bYtY"),S=n("Fofx");function m(f,d){y.call(this,f,d,"clipPath","__clippath_in_use__")}g.inherits(m,y),m.prototype.update=function(f){var d=this.getSvgElement(f);d&&this.updateDom(d,f.__clipPaths,!1);var l=this.getTextSvgElement(f);l&&this.updateDom(l,f.__clipPaths,!0),this.markUsed(f)},m.prototype.updateDom=function(f,d,l){if(d&&d.length>0){var a=this.getDefs(!0),i=d[0],t,o,e=l?"_textDom":"_dom";i[e]?(o=i[e].getAttribute("id"),t=i[e],a.contains(t)||a.appendChild(t)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,t=this.createElement("clipPath"),t.setAttribute("id",o),a.appendChild(t),i[e]=t);var u=this.getSvgProxy(i);if(i.transform&&i.parent.invTransform&&!l){var r=Array.prototype.slice.call(i.transform);S.mul(i.transform,i.parent.invTransform,i.transform),u.brush(i),i.transform=r}else u.brush(i);var s=this.getSvgElement(i);t.innerHTML="",t.appendChild(s.cloneNode()),f.setAttribute("clip-path","url(#"+o+")"),d.length>1&&this.updateDom(t,d.slice(1),l)}else f&&f.setAttribute("clip-path","none")},m.prototype.markUsed=function(f){var d=this;f.__clipPaths&&g.each(f.__clipPaths,function(l){l._dom&&y.prototype.markUsed.call(d,l._dom),l._textDom&&y.prototype.markUsed.call(d,l._textDom)})};var p=m;R.exports=p},nCxF:function(R,D,n){var y=n("QBsz"),g=y.min,S=y.max,m=y.scale,p=y.distance,f=y.add,d=y.clone,l=y.sub;function a(i,t,o,e){var u=[],r=[],s=[],c=[],h,v,A,b;if(e){A=[Infinity,Infinity],b=[-Infinity,-Infinity];for(var x=0,E=i.length;x<E;x++)g(A,A,i[x]),S(b,b,i[x]);g(A,A,e[0]),S(b,b,e[1])}for(var x=0,E=i.length;x<E;x++){var T=i[x];if(o)h=i[x?x-1:E-1],v=i[(x+1)%E];else if(x===0||x===E-1){u.push(d(i[x]));continue}else h=i[x-1],v=i[x+1];l(r,v,h),m(r,r,t);var _=p(T,h),C=p(T,v),w=_+C;w!==0&&(_/=w,C/=w),m(s,r,-_),m(c,r,C);var O=f([],T,s),I=f([],T,c);e&&(S(O,O,A),g(O,O,b),S(I,I,A),g(I,I,b)),u.push(O),u.push(I)}return o&&u.push(u.shift()),u}R.exports=a},nKiI:function(R,D,n){var y=n("bYtY"),g=n("mFDi"),S=n("OELB"),m=S.parsePercent,p=S.MAX_SAFE_INTEGER,f=n("+TT/"),d=n("VaxA"),l=Math.max,a=Math.min,i=y.retrieve,t=y.each,o=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],u=["upperLabel","show"],r=["upperLabel","height"],s={seriesType:"treemap",reset:function(O,I,k,M){var U=k.getWidth(),P=k.getHeight(),X=O.option,F=f.getLayoutRect(O.getBoxLayoutParams(),{width:k.getWidth(),height:k.getHeight()}),j=X.size||[],K=m(i(F.width,j[0]),U),z=m(i(F.height,j[1]),P),V=M&&M.type,Q=["treemapZoomToNode","treemapRootToNode"],G=d.retrieveTargetInfo(M,Q,O),te=V==="treemapRender"||V==="treemapMove"?M.rootRect:null,q=O.getViewRoot(),se=d.getPathToRoot(q);if(V!=="treemapMove"){var re=V==="treemapZoomToNode"?T(O,G,q,K,z):te?[te.width,te.height]:[K,z],we=X.sort;we&&we!=="asc"&&we!=="desc"&&(we="desc");var Oe={squareRatio:X.squareRatio,sort:we,leafDepth:X.leafDepth};q.hostTree.clearLayouts();var Me={x:0,y:0,width:re[0],height:re[1],area:re[0]*re[1]};q.setLayout(Me),c(q,Oe,!1,0);var Me=q.getLayout();t(se,function(Ve,dt){var Fe=(se[dt+1]||q).getValue();Ve.setLayout(y.extend({dataExtent:[Fe,Fe],borderWidth:0,upperHeight:0},Me))})}var Qe=O.getData().tree.root;Qe.setLayout(_(F,te,G),!0),O.setLayoutInfo(F),C(Qe,new g(-F.x,-F.y,U,P),se,q,0)}};function c(O,I,k,M){var U,P;if(O.isRemoved())return;var X=O.getLayout();U=X.width,P=X.height;var F=O.getModel(),j=F.get(o),K=F.get(e)/2,z=w(F),V=Math.max(j,z),Q=j-K,G=V-K,F=O.getModel();O.setLayout({borderWidth:j,upperHeight:V,upperLabelHeight:z},!0),U=l(U-2*Q,0),P=l(P-Q-G,0);var te=U*P,q=h(O,F,te,I,k,M);if(!q.length)return;var se={x:Q,y:G,width:U,height:P},re=a(U,P),we=Infinity,Oe=[];Oe.area=0;for(var Me=0,Qe=q.length;Me<Qe;){var Ve=q[Me];Oe.push(Ve),Oe.area+=Ve.getLayout().area;var dt=x(Oe,re,I.squareRatio);dt<=we?(Me++,we=dt):(Oe.area-=Oe.pop().getLayout().area,E(Oe,re,se,K,!1),re=a(se.width,se.height),Oe.length=Oe.area=0,we=Infinity)}if(Oe.length&&E(Oe,re,se,K,!0),!k){var Fe=F.get("childrenVisibleMin");Fe!=null&&te<Fe&&(k=!0)}for(var Me=0,Qe=q.length;Me<Qe;Me++)c(q[Me],I,k,M+1)}function h(O,I,k,M,U,P){var X=O.children||[],F=M.sort;F!=="asc"&&F!=="desc"&&(F=null);var j=M.leafDepth!=null&&M.leafDepth<=P;if(U&&!j)return O.viewChildren=[];X=y.filter(X,function(G){return!G.isRemoved()}),A(X,F);var K=b(I,X,F);if(K.sum===0)return O.viewChildren=[];if(K.sum=v(I,k,K.sum,F,X),K.sum===0)return O.viewChildren=[];for(var z=0,V=X.length;z<V;z++){var Q=X[z].getValue()/K.sum*k;X[z].setLayout({area:Q})}return j&&(X.length&&O.setLayout({isLeafRoot:!0},!0),X.length=0),O.viewChildren=X,O.setLayout({dataExtent:K.dataExtent},!0),X}function v(O,I,k,M,U){if(!M)return k;for(var P=O.get("visibleMin"),X=U.length,F=X,j=X-1;j>=0;j--){var K=U[M==="asc"?X-j-1:j].getValue();K/k*I<P&&(F=j,k-=K)}return M==="asc"?U.splice(0,X-F):U.splice(F,X-F),k}function A(O,I){return I&&O.sort(function(k,M){var U=I==="asc"?k.getValue()-M.getValue():M.getValue()-k.getValue();return U===0?I==="asc"?k.dataIndex-M.dataIndex:M.dataIndex-k.dataIndex:U}),O}function b(O,I,k){for(var M=0,U=0,P=I.length;U<P;U++)M+=I[U].getValue();var X=O.get("visualDimension"),F;if(!I||!I.length)F=[NaN,NaN];else if(X==="value"&&k)F=[I[I.length-1].getValue(),I[0].getValue()],k==="asc"&&F.reverse();else{var F=[Infinity,-Infinity];t(I,function(K){var z=K.getValue(X);z<F[0]&&(F[0]=z),z>F[1]&&(F[1]=z)})}return{sum:M,dataExtent:F}}function x(O,I,k){for(var M=0,U=Infinity,P=0,X,F=O.length;P<F;P++)X=O[P].getLayout().area,X&&(X<U&&(U=X),X>M&&(M=X));var j=O.area*O.area,K=I*I*k;return j?l(K*M/j,j/(K*U)):Infinity}function E(O,I,k,M,U){var P=I===k.width?0:1,X=1-P,F=["x","y"],j=["width","height"],K=k[F[P]],z=I?O.area/I:0;(U||z>k[j[X]])&&(z=k[j[X]]);for(var V=0,Q=O.length;V<Q;V++){var G=O[V],te={},q=z?G.getLayout().area/z:0,se=te[j[X]]=l(z-2*M,0),re=k[F[P]]+k[j[P]]-K,we=V===Q-1||re<q?re:q,Oe=te[j[P]]=l(we-2*M,0);te[F[X]]=k[F[X]]+a(M,se/2),te[F[P]]=K+a(M,Oe/2),K+=we,G.setLayout(te,!0)}k[F[X]]+=z,k[j[X]]-=z}function T(O,I,k,M,U){var P=(I||{}).node,X=[M,U];if(!P||P===k)return X;for(var F,j=M*U,K=j*O.option.zoomToNodeRatio;F=P.parentNode;){for(var z=0,V=F.children,Q=0,G=V.length;Q<G;Q++)z+=V[Q].getValue();var te=P.getValue();if(te===0)return X;K*=z/te;var q=F.getModel(),se=q.get(o),re=Math.max(se,w(q,se));K+=4*se*se+(3*se+re)*Math.pow(K,.5),K>p&&(K=p),P=F}K<j&&(K=j);var we=Math.pow(K/j,.5);return[M*we,U*we]}function _(O,I,k){if(I)return{x:I.x,y:I.y};var M={x:0,y:0};if(!k)return M;var U=k.node,P=U.getLayout();if(!P)return M;for(var X=[P.width/2,P.height/2],F=U;F;){var j=F.getLayout();X[0]+=j.x,X[1]+=j.y,F=F.parentNode}return{x:O.width/2-X[0],y:O.height/2-X[1]}}function C(O,I,k,M,U){var P=O.getLayout(),X=k[U],F=X&&X===O;if(X&&!F||U===k.length&&O!==M)return;O.setLayout({isInView:!0,invisible:!F&&!I.intersect(P),isAboveViewRoot:F},!0);var j=new g(I.x-P.x,I.y-P.y,I.width,I.height);t(O.viewChildren||[],function(K){C(K,j,k,M,U+1)})}function w(O){return O.get(u)?O.get(r):0}R.exports=s},nPnh:function(R,D){var n=Math.round;function y(m,p,f){if(!p)return;var d=p.x1,l=p.x2,a=p.y1,i=p.y2;m.x1=d,m.x2=l,m.y1=a,m.y2=i;var t=f&&f.lineWidth;if(!t)return;n(d*2)===n(l*2)&&(m.x1=m.x2=S(d,t,!0)),n(a*2)===n(i*2)&&(m.y1=m.y2=S(a,t,!0))}function g(m,p,f){if(!p)return;var d=p.x,l=p.y,a=p.width,i=p.height;m.x=d,m.y=l,m.width=a,m.height=i;var t=f&&f.lineWidth;if(!t)return;m.x=S(d,t,!0),m.y=S(l,t,!0),m.width=Math.max(S(d+a,t,!1)-m.x,a===0?0:1),m.height=Math.max(S(l+i,t,!1)-m.y,i===0?0:1)}function S(m,p,f){if(!p)return m;var d=n(m*2);return(d+n(p))%2===0?d/2:(d+(f?1:-1))/2}D.subPixelOptimizeLine=y,D.subPixelOptimizeRect=g,D.subPixelOptimize=S},nRaC:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("0fbx"),m=n.n(S),p=n("OaEy"),f=n("R9oj")},nVfU:function(R,D,n){var y=n("bYtY"),g=n("OELB"),S=g.parsePercent,m=n("7hqr"),p=m.isDimensionStacked,f=n("zM3Q"),d="__ec_stack_",l=.5,a=typeof Float32Array!="undefined"?Float32Array:Array;function i(E){return E.get("stack")||d+E.seriesIndex}function t(E){return E.dim+E.index}function o(E){var T=[],_=E.axis,C="axis0";if(_.type!=="category")return;for(var w=_.getBandWidth(),O=0;O<E.count||0;O++)T.push(y.defaults({bandWidth:w,axisKey:C,stackId:d+O},E));for(var I=s(T),k=[],O=0;O<E.count;O++){var M=I[C][d+O];M.offsetCenter=M.offset+M.width/2,k.push(M)}return k}function e(E,T){var _=[];return T.eachSeriesByType(E,function(C){A(C)&&!b(C)&&_.push(C)}),_}function u(E){var T={};y.each(E,function(M){var U=M.coordinateSystem,P=U.getBaseAxis();if(P.type!=="time"&&P.type!=="value")return;for(var X=M.getData(),F=P.dim+"_"+P.index,j=X.mapDimension(P.dim),K=0,z=X.count();K<z;++K){var V=X.get(j,K);T[F]?T[F].push(V):T[F]=[V]}});var _=[];for(var C in T)if(T.hasOwnProperty(C)){var w=T[C];if(w){w.sort(function(M,U){return M-U});for(var O=null,I=1;I<w.length;++I){var k=w[I]-w[I-1];k>0&&(O=O===null?k:Math.min(O,k))}_[C]=O}}return _}function r(E){var T=u(E),_=[];return y.each(E,function(C){var w=C.coordinateSystem,O=w.getBaseAxis(),I=O.getExtent(),k;if(O.type==="category")k=O.getBandWidth();else if(O.type==="value"||O.type==="time"){var M=O.dim+"_"+O.index,U=T[M],P=Math.abs(I[1]-I[0]),X=O.scale.getExtent(),F=Math.abs(X[1]-X[0]);k=U?P/F*U:P}else{var j=C.getData();k=Math.abs(I[1]-I[0])/j.count()}var K=S(C.get("barWidth"),k),z=S(C.get("barMaxWidth"),k),V=S(C.get("barMinWidth")||1,k),Q=C.get("barGap"),G=C.get("barCategoryGap");_.push({bandWidth:k,barWidth:K,barMaxWidth:z,barMinWidth:V,barGap:Q,barCategoryGap:G,axisKey:t(O),stackId:i(C)})}),s(_)}function s(E){var T={};y.each(E,function(C,w){var O=C.axisKey,I=C.bandWidth,k=T[O]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},M=k.stacks;T[O]=k;var U=C.stackId;M[U]||k.autoWidthCount++,M[U]=M[U]||{width:0,maxWidth:0};var P=C.barWidth;P&&!M[U].width&&(M[U].width=P,P=Math.min(k.remainedWidth,P),k.remainedWidth-=P);var X=C.barMaxWidth;X&&(M[U].maxWidth=X);var F=C.barMinWidth;F&&(M[U].minWidth=F);var j=C.barGap;j!=null&&(k.gap=j);var K=C.barCategoryGap;K!=null&&(k.categoryGap=K)});var _={};return y.each(T,function(C,w){_[w]={};var O=C.stacks,I=C.bandWidth,k=S(C.categoryGap,I),M=S(C.gap,1),U=C.remainedWidth,P=C.autoWidthCount,X=(U-k)/(P+(P-1)*M);X=Math.max(X,0),y.each(O,function(z){var V=z.maxWidth,Q=z.minWidth;if(z.width){var G=z.width;V&&(G=Math.min(G,V)),Q&&(G=Math.max(G,Q)),z.width=G,U-=G+M*G,P--}else{var G=X;V&&V<G&&(G=Math.min(V,U)),Q&&Q>G&&(G=Q),G!==X&&(z.width=G,U-=G+M*G,P--)}}),X=(U-k)/(P+(P-1)*M),X=Math.max(X,0);var F=0,j;y.each(O,function(z,V){z.width||(z.width=X),j=z,F+=z.width*(1+M)}),j&&(F-=j.width*M);var K=-F/2;y.each(O,function(z,V){_[w][V]=_[w][V]||{bandWidth:I,offset:K,width:z.width},K+=z.width*(1+M)})}),_}function c(E,T,_){if(E&&T){var C=E[t(T)];return C!=null&&_!=null&&(C=C[i(_)]),C}}function h(E,T){var _=e(E,T),C=r(_),w={},O={};y.each(_,function(I){var k=I.getData(),M=I.coordinateSystem,U=M.getBaseAxis(),P=i(I),X=C[t(U)][P],F=X.offset,j=X.width,K=M.getOtherAxis(U),z=I.get("barMinHeight")||0;w[P]=w[P]||[],O[P]=O[P]||[],k.setLayout({bandWidth:X.bandWidth,offset:F,size:j});for(var V=k.mapDimension(K.dim),Q=k.mapDimension(U.dim),G=p(k,V),te=K.isHorizontal(),q=x(U,K,G),se=0,re=k.count();se<re;se++){var we=k.get(V,se),Oe=k.get(Q,se),Me=we>=0?"p":"n",Qe=q;G&&(w[P][Oe]||(w[P][Oe]={p:q,n:q}),Qe=w[P][Oe][Me]);var Ve,dt,Fe,ue;if(te){var et=M.dataToPoint([we,Oe]);Ve=Qe,dt=et[1]+F,Fe=et[0]-q,ue=j,Math.abs(Fe)<z&&(Fe=(Fe<0?-1:1)*z),isNaN(Fe)||G&&(w[P][Oe][Me]+=Fe)}else{var et=M.dataToPoint([Oe,we]);Ve=et[0]+F,dt=Qe,Fe=j,ue=et[1]-q,Math.abs(ue)<z&&(ue=(ue<=0?-1:1)*z),isNaN(ue)||G&&(w[P][Oe][Me]+=ue)}k.setItemLayout(se,{x:Ve,y:dt,width:Fe,height:ue})}},this)}var v={seriesType:"bar",plan:f(),reset:function(E){if(!A(E)||!b(E))return;var T=E.getData(),_=E.coordinateSystem,C=_.grid.getRect(),w=_.getBaseAxis(),O=_.getOtherAxis(w),I=T.mapDimension(O.dim),k=T.mapDimension(w.dim),M=O.isHorizontal(),U=M?0:1,P=c(r([E]),w,E).width;return P>l||(P=l),{progress:X};function X(F,j){for(var K=F.count,z=new a(K*2),V=new a(K*2),Q=new a(K),G,te=[],q=[],se=0,re=0;(G=F.next())!=null;)q[U]=j.get(I,G),q[1-U]=j.get(k,G),te=_.dataToPoint(q,null,te),V[se]=M?C.x+C.width:te[0],z[se++]=te[0],V[se]=M?te[1]:C.y+C.height,z[se++]=te[1],Q[re++]=G;j.setLayout({largePoints:z,largeDataIndices:Q,largeBackgroundPoints:V,barWidth:P,valueAxisStart:x(w,O,!1),backgroundStart:M?C.x:C.y,valueAxisHorizontal:M})}}};function A(E){return E.coordinateSystem&&E.coordinateSystem.type==="cartesian2d"}function b(E){return E.pipelineContext&&E.pipelineContext.large}function x(E,T,_){return T.toGlobalCoord(T.dataToCoord(T.type==="log"?1:0))}D.getLayoutOnAxis=o,D.prepareLayoutBarSeries=e,D.makeColumnLayout=r,D.retrieveColumnLayout=c,D.layout=h,D.largeLayout=v},ngQI:function(R,D,n){"use strict";n.d(D,"a",function(){return gu}),n.d(D,"b",function(){return js}),n.d(D,"c",function(){return ln});var y=n("q1tI"),g=n.n(y),S=n("dI71"),m=n("wx14"),p=n("ANjH"),f=n("/MKj");function d(Ue,ae){if(Ue.length!==ae.length)return!1;for(var _e=0;_e<Ue.length;_e++)if(Ue[_e]!==ae[_e])return!1;return!0}function l(Ue,ae){var _e=Object(y.useState)(function(){return{inputs:ae,result:Ue()}})[0],$e=Object(y.useRef)(!0),Et=Object(y.useRef)(_e),qt=$e.current||Boolean(ae&&Et.current.inputs&&d(ae,Et.current.inputs)),ar=qt?Et.current:{inputs:ae,result:Ue()};return Object(y.useEffect)(function(){$e.current=!1,Et.current=ar},[ar]),ar.result}function a(Ue,ae){return l(function(){return Ue},ae)}var i=l,t=a,o=n("9R94"),e=function(ae){var _e=ae.top,$e=ae.right,Et=ae.bottom,qt=ae.left,ar=$e-qt,lr=Et-_e,Gr={top:_e,right:$e,bottom:Et,left:qt,width:ar,height:lr,x:qt,y:_e,center:{x:($e+qt)/2,y:(Et+_e)/2}};return Gr},u=function(ae,_e){return{top:ae.top-_e.top,left:ae.left-_e.left,bottom:ae.bottom+_e.bottom,right:ae.right+_e.right}},r=function(ae,_e){return{top:ae.top+_e.top,left:ae.left+_e.left,bottom:ae.bottom-_e.bottom,right:ae.right-_e.right}},s=function(ae,_e){return{top:ae.top+_e.y,left:ae.left+_e.x,bottom:ae.bottom+_e.y,right:ae.right+_e.x}},c={top:0,right:0,bottom:0,left:0},h=function(ae){var _e=ae.borderBox,$e=ae.margin,Et=$e===void 0?c:$e,qt=ae.border,ar=qt===void 0?c:qt,lr=ae.padding,Gr=lr===void 0?c:lr,pn=e(u(_e,Et)),zr=e(r(_e,ar)),Hr=e(r(zr,Gr));return{marginBox:pn,borderBox:e(_e),paddingBox:zr,contentBox:Hr,margin:Et,border:ar,padding:Gr}},v=function(ae){var _e=ae.slice(0,-2),$e=ae.slice(-2);if($e!=="px")return 0;var Et=Number(_e);return isNaN(Et)&&Object(o.a)(!1),Et},A=function(){return{x:window.pageXOffset,y:window.pageYOffset}},b=function(ae,_e){var $e=ae.borderBox,Et=ae.border,qt=ae.margin,ar=ae.padding,lr=s($e,_e);return h({borderBox:lr,border:Et,margin:qt,padding:ar})},x=function(ae,_e){return _e===void 0&&(_e=A()),b(ae,_e)},E=function(ae,_e){var $e={top:v(_e.marginTop),right:v(_e.marginRight),bottom:v(_e.marginBottom),left:v(_e.marginLeft)},Et={top:v(_e.paddingTop),right:v(_e.paddingRight),bottom:v(_e.paddingBottom),left:v(_e.paddingLeft)},qt={top:v(_e.borderTopWidth),right:v(_e.borderRightWidth),bottom:v(_e.borderBottomWidth),left:v(_e.borderLeftWidth)};return h({borderBox:ae,margin:$e,padding:Et,border:qt})},T=function(ae){var _e=ae.getBoundingClientRect(),$e=window.getComputedStyle(ae);return E(_e,$e)},_=Number.isNaN||function(ae){return typeof ae=="number"&&ae!==ae};function C(Ue,ae){return Ue===ae?!0:!!(_(Ue)&&_(ae))}function w(Ue,ae){if(Ue.length!==ae.length)return!1;for(var _e=0;_e<Ue.length;_e++)if(!C(Ue[_e],ae[_e]))return!1;return!0}function O(Ue,ae){ae===void 0&&(ae=w);var _e,$e=[],Et,qt=!1;function ar(){for(var lr=[],Gr=0;Gr<arguments.length;Gr++)lr[Gr]=arguments[Gr];return qt&&_e===this&&ae(lr,$e)||(Et=Ue.apply(this,lr),qt=!0,_e=this,$e=lr),Et}return ar}var I=O,k=function(ae){var _e=[],$e=null,Et=function(){for(var ar=arguments.length,lr=new Array(ar),Gr=0;Gr<ar;Gr++)lr[Gr]=arguments[Gr];if(_e=lr,$e)return;$e=requestAnimationFrame(function(){$e=null,ae.apply(void 0,_e)})};return Et.cancel=function(){if(!$e)return;cancelAnimationFrame($e),$e=null},Et},M=k,U=n("i8i4"),P=n.n(U),X=!0,F=/[ \t]{2,}/g,j=/^[ \t]*/gm,K=function(ae){return ae.replace(F," ").replace(j,"").trim()},z=function(ae){return K(`
%creact-beautiful-dnd
%c`+K(ae)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},V=function(ae){return[z(ae),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Q="__react-beautiful-dnd-disable-dev-warnings";function G(Ue,ae){var _e;if(X)return;if(typeof window!="undefined"&&window[Q])return;(_e=console)[Ue].apply(_e,V(ae))}var te=G.bind(null,"warn"),q=G.bind(null,"error");function se(){}function re(Ue,ae){return Object(m.a)({},Ue,{},ae)}function we(Ue,ae,_e){var $e=ae.map(function(Et){var qt=re(_e,Et.options);return Ue.addEventListener(Et.eventName,Et.fn,qt),function(){Ue.removeEventListener(Et.eventName,Et.fn,qt)}});return function(){$e.forEach(function(qt){qt()})}}var Oe=!0,Me="Invariant failed";function Qe(Ue){this.message=Ue}Qe.prototype.toString=function(){return this.message};function Ve(Ue,ae){if(Ue)return;throw Oe?new Qe(Me):new Qe(Me+": "+(ae||""))}var dt=function(Ue){Object(S.a)(ae,Ue);function ae(){for(var $e,Et=arguments.length,qt=new Array(Et),ar=0;ar<Et;ar++)qt[ar]=arguments[ar];return $e=Ue.call.apply(Ue,[this].concat(qt))||this,$e.callbacks=null,$e.unbind=se,$e.onWindowError=function(lr){var Gr=$e.getCallbacks();Gr.isDragging()&&Gr.tryAbort();var pn=lr.error;pn instanceof Qe&&lr.preventDefault()},$e.getCallbacks=function(){if(!$e.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return $e.callbacks},$e.setCallbacks=function(lr){$e.callbacks=lr},$e}var _e=ae.prototype;return _e.componentDidMount=function(){this.unbind=we(window,[{eventName:"error",fn:this.onWindowError}])},_e.componentWillUnmount=function(){this.unbind()},_e.componentDidCatch=function(Et){if(Et instanceof Qe){this.setState({});return}throw Et},_e.render=function(){return this.props.children(this.setCallbacks)},ae}(g.a.Component),Fe=`
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
`,ue=function(ae){return ae+1},et=function(ae){return`
You have lifted an item in position `+ue(ae.source.index)+`
`},he=function(ae,_e){var $e=ae.droppableId===_e.droppableId,Et=ue(ae.index),qt=ue(_e.index);return $e?`
You have moved the item from position `+Et+`
to position `+qt+`
`:`
You have moved the item from position `+Et+`
in list `+ae.droppableId+`
to list `+_e.droppableId+`
in position `+qt+`
`},J=function(ae,_e,$e){var Et=_e.droppableId===$e.droppableId;return Et?`
The item `+ae+`
has been combined with `+$e.draggableId:`
The item `+ae+`
in list `+_e.droppableId+`
has been combined with `+$e.draggableId+`
in list `+$e.droppableId+`
`},Y=function(ae){var _e=ae.destination;if(_e)return he(ae.source,_e);var $e=ae.combine;return $e?J(ae.draggableId,ae.source,$e):"You are over an area that cannot be dropped on"},$=function(ae){return`
The item has returned to its starting position
of `+ue(ae.index)+`
`},de=function(ae){if(ae.reason==="CANCEL")return`
Movement cancelled.
`+$(ae.source)+`
`;var _e=ae.destination,$e=ae.combine;return _e?`
You have dropped the item.
`+he(ae.source,_e)+`
`:$e?`
You have dropped the item.
`+J(ae.draggableId,ae.source,$e)+`
`:`
The item has been dropped while not over a drop area.
`+$(ae.source)+`
`},be={dragHandleUsageInstructions:Fe,onDragStart:et,onDragUpdate:Y,onDragEnd:de},Te={x:0,y:0},Be=function(ae,_e){return{x:ae.x+_e.x,y:ae.y+_e.y}},fe=function(ae,_e){return{x:ae.x-_e.x,y:ae.y-_e.y}},xe=function(ae,_e){return ae.x===_e.x&&ae.y===_e.y},ke=function(ae){return{x:ae.x!==0?-ae.x:0,y:ae.y!==0?-ae.y:0}},nt=function(ae,_e,$e){var Et;return $e===void 0&&($e=0),Et={},Et[ae]=_e,Et[ae==="x"?"y":"x"]=$e,Et},Ct=function(ae,_e){return Math.sqrt(Math.pow(_e.x-ae.x,2)+Math.pow(_e.y-ae.y,2))},pt=function(ae,_e){return Math.min.apply(Math,_e.map(function($e){return Ct(ae,$e)}))},He=function(ae){return function(_e){return{x:ae(_e.x),y:ae(_e.y)}}},nr=function(ae,_e){var $e=e({top:Math.max(_e.top,ae.top),right:Math.min(_e.right,ae.right),bottom:Math.min(_e.bottom,ae.bottom),left:Math.max(_e.left,ae.left)});return $e.width<=0||$e.height<=0?null:$e},ht=function(ae,_e){return{top:ae.top+_e.y,left:ae.left+_e.x,bottom:ae.bottom+_e.y,right:ae.right+_e.x}},Gt=function(ae){return[{x:ae.left,y:ae.top},{x:ae.right,y:ae.top},{x:ae.left,y:ae.bottom},{x:ae.right,y:ae.bottom}]},pr={top:0,right:0,bottom:0,left:0},Qt=function(ae,_e){return _e?ht(ae,_e.scroll.diff.displacement):ae},Ht=function(ae,_e,$e){if($e&&$e.increasedBy){var Et;return Object(m.a)({},ae,(Et={},Et[_e.end]=ae[_e.end]+$e.increasedBy[_e.line],Et))}return ae},Jt=function(ae,_e){return _e&&_e.shouldClipSubject?nr(_e.pageMarginBox,ae):e(ae)},Ge=function(ae){var _e=ae.page,$e=ae.withPlaceholder,Et=ae.axis,qt=ae.frame,ar=Qt(_e.marginBox,qt),lr=Ht(ar,Et,$e),Gr=Jt(lr,qt);return{page:_e,withPlaceholder:$e,active:Gr}},pe=function(ae,_e){ae.frame||Ve(!1);var $e=ae.frame,Et=fe(_e,$e.scroll.initial),qt=ke(Et),ar=Object(m.a)({},$e,{scroll:{initial:$e.scroll.initial,current:_e,diff:{value:Et,displacement:qt},max:$e.scroll.max}}),lr=Ge({page:ae.subject.page,withPlaceholder:ae.subject.withPlaceholder,axis:ae.axis,frame:ar}),Gr=Object(m.a)({},ae,{frame:ar,subject:lr});return Gr};function oe(Ue){return Number.isInteger?Number.isInteger(Ue):typeof Ue=="number"&&isFinite(Ue)&&Math.floor(Ue)===Ue}function ct(Ue){return Object.values?Object.values(Ue):Object.keys(Ue).map(function(ae){return Ue[ae]})}function qe(Ue,ae){if(Ue.findIndex)return Ue.findIndex(ae);for(var _e=0;_e<Ue.length;_e++)if(ae(Ue[_e]))return _e;return-1}function me(Ue,ae){if(Ue.find)return Ue.find(ae);var _e=qe(Ue,ae);return _e!==-1?Ue[_e]:void 0}function Kt(Ue){return Array.prototype.slice.call(Ue)}var vr=I(function(Ue){return Ue.reduce(function(ae,_e){return ae[_e.descriptor.id]=_e,ae},{})}),bt=I(function(Ue){return Ue.reduce(function(ae,_e){return ae[_e.descriptor.id]=_e,ae},{})}),or=I(function(Ue){return ct(Ue)}),_t=I(function(Ue){return ct(Ue)}),jt=I(function(Ue,ae){var _e=_t(ae).filter(function($e){return Ue===$e.descriptor.droppableId}).sort(function($e,Et){return $e.descriptor.index-Et.descriptor.index});return _e});function ut(Ue){return Ue.at&&Ue.at.type==="REORDER"?Ue.at.destination:null}function St(Ue){return Ue.at&&Ue.at.type==="COMBINE"?Ue.at.combine:null}var mt=I(function(Ue,ae){return ae.filter(function(_e){return _e.descriptor.id!==Ue.descriptor.id})}),lt=function(ae){var _e=ae.isMovingForward,$e=ae.draggable,Et=ae.destination,qt=ae.insideDestination,ar=ae.previousImpact;if(!Et.isCombineEnabled)return null;var lr=ut(ar);if(!lr)return null;function Gr(Mi){var da={type:"COMBINE",combine:{draggableId:Mi,droppableId:Et.descriptor.id}};return Object(m.a)({},ar,{at:da})}var pn=ar.displaced.all,zr=pn.length?pn[0]:null;if(_e)return zr?Gr(zr):null;var Hr=mt($e,qt);if(!zr){if(!Hr.length)return null;var un=Hr[Hr.length-1];return Gr(un.descriptor.id)}var bn=qe(Hr,function(Mi){return Mi.descriptor.id===zr});bn!==-1||Ve(!1);var Gn=bn-1;if(Gn<0)return null;var Li=Hr[Gn];return Gr(Li.descriptor.id)},tt=function(ae,_e){return ae.descriptor.droppableId===_e.descriptor.id},Cr={point:Te,value:0},nn={invisible:{},visible:{},all:[]},mn={displaced:nn,displacedBy:Cr,at:null},Bn=function(ae,_e){return function($e){return ae<=$e&&$e<=_e}},oi=function(ae){var _e=Bn(ae.top,ae.bottom),$e=Bn(ae.left,ae.right);return function(Et){var qt=_e(Et.top)&&_e(Et.bottom)&&$e(Et.left)&&$e(Et.right);if(qt)return!0;var ar=_e(Et.top)||_e(Et.bottom),lr=$e(Et.left)||$e(Et.right),Gr=ar&&lr;if(Gr)return!0;var pn=Et.top<ae.top&&Et.bottom>ae.bottom,zr=Et.left<ae.left&&Et.right>ae.right,Hr=pn&&zr;if(Hr)return!0;var un=pn&&lr||zr&&ar;return un}},wn=function(ae){var _e=Bn(ae.top,ae.bottom),$e=Bn(ae.left,ae.right);return function(Et){var qt=_e(Et.top)&&_e(Et.bottom)&&$e(Et.left)&&$e(Et.right);return qt}},Rn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Zt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Tt=function(ae){return function(_e){var $e=Bn(_e.top,_e.bottom),Et=Bn(_e.left,_e.right);return function(qt){return ae===Rn?$e(qt.top)&&$e(qt.bottom):Et(qt.left)&&Et(qt.right)}}},De=function(ae,_e){var $e=_e.frame?_e.frame.scroll.diff.displacement:Te;return ht(ae,$e)},Re=function(ae,_e,$e){return _e.subject.active?$e(_e.subject.active)(ae):!1},Pe=function(ae,_e,$e){return $e(_e)(ae)},rt=function(ae){var _e=ae.target,$e=ae.destination,Et=ae.viewport,qt=ae.withDroppableDisplacement,ar=ae.isVisibleThroughFrameFn,lr=qt?De(_e,$e):_e;return Re(lr,$e,ar)&&Pe(lr,Et,ar)},wt=function(ae){return rt(Object(m.a)({},ae,{isVisibleThroughFrameFn:oi}))},Ot=function(ae){return rt(Object(m.a)({},ae,{isVisibleThroughFrameFn:wn}))},$t=function(ae){return rt(Object(m.a)({},ae,{isVisibleThroughFrameFn:Tt(ae.destination.axis)}))},Mr=function(ae,_e,$e){if(typeof $e=="boolean")return $e;if(!_e)return!0;var Et=_e.invisible,qt=_e.visible;if(Et[ae])return!1;var ar=qt[ae];return ar?ar.shouldAnimate:!0};function Vr(Ue,ae){var _e=Ue.page.marginBox,$e={top:ae.point.y,right:0,bottom:0,left:ae.point.x};return e(u(_e,$e))}function hn(Ue){var ae=Ue.afterDragging,_e=Ue.destination,$e=Ue.displacedBy,Et=Ue.viewport,qt=Ue.forceShouldAnimate,ar=Ue.last;return ae.reduce(function(Gr,pn){var zr=Vr(pn,$e),Hr=pn.descriptor.id;Gr.all.push(Hr);var un=wt({target:zr,destination:_e,viewport:Et,withDroppableDisplacement:!0});if(!un)return Gr.invisible[pn.descriptor.id]=!0,Gr;var bn=Mr(Hr,ar,qt),Gn={draggableId:Hr,shouldAnimate:bn};return Gr.visible[Hr]=Gn,Gr},{all:[],visible:{},invisible:{}})}function Vt(Ue,ae){if(!Ue.length)return 0;var _e=Ue[Ue.length-1].descriptor.index;return ae.inHomeList?_e:_e+1}function yt(Ue){var ae=Ue.insideDestination,_e=Ue.inHomeList,$e=Ue.displacedBy,Et=Ue.destination,qt=Vt(ae,{inHomeList:_e});return{displaced:nn,displacedBy:$e,at:{type:"REORDER",destination:{droppableId:Et.descriptor.id,index:qt}}}}function xt(Ue){var ae=Ue.draggable,_e=Ue.insideDestination,$e=Ue.destination,Et=Ue.viewport,qt=Ue.displacedBy,ar=Ue.last,lr=Ue.index,Gr=Ue.forceShouldAnimate,pn=tt(ae,$e);if(lr==null)return yt({insideDestination:_e,inHomeList:pn,displacedBy:qt,destination:$e});var zr=me(_e,function(Li){return Li.descriptor.index===lr});if(!zr)return yt({insideDestination:_e,inHomeList:pn,displacedBy:qt,destination:$e});var Hr=mt(ae,_e),un=_e.indexOf(zr),bn=Hr.slice(un),Gn=hn({afterDragging:bn,destination:$e,displacedBy:qt,last:ar,viewport:Et.frame,forceShouldAnimate:Gr});return{displaced:Gn,displacedBy:qt,at:{type:"REORDER",destination:{droppableId:$e.descriptor.id,index:lr}}}}function dr(Ue,ae){return Boolean(ae.effected[Ue])}var er=function(ae){var _e=ae.isMovingForward,$e=ae.destination,Et=ae.draggables,qt=ae.combine,ar=ae.afterCritical;if(!$e.isCombineEnabled)return null;var lr=qt.draggableId,Gr=Et[lr],pn=Gr.descriptor.index,zr=dr(lr,ar);return zr?_e?pn:pn-1:_e?pn+1:pn},Ut=function(ae){var _e=ae.isMovingForward,$e=ae.isInHomeList,Et=ae.insideDestination,qt=ae.location;if(!Et.length)return null;var ar=qt.index,lr=_e?ar+1:ar-1,Gr=Et[0].descriptor.index,pn=Et[Et.length-1].descriptor.index,zr=$e?pn:pn+1;return lr<Gr||lr>zr?null:lr},ir=function(ae){var _e=ae.isMovingForward,$e=ae.isInHomeList,Et=ae.draggable,qt=ae.draggables,ar=ae.destination,lr=ae.insideDestination,Gr=ae.previousImpact,pn=ae.viewport,zr=ae.afterCritical,Hr=Gr.at;if(Hr||Ve(!1),Hr.type==="REORDER"){var un=Ut({isMovingForward:_e,isInHomeList:$e,location:Hr.destination,insideDestination:lr});return un==null?null:xt({draggable:Et,insideDestination:lr,destination:ar,viewport:pn,last:Gr.displaced,displacedBy:Gr.displacedBy,index:un})}var bn=er({isMovingForward:_e,destination:ar,displaced:Gr.displaced,draggables:qt,combine:Hr.combine,afterCritical:zr});return bn==null?null:xt({draggable:Et,insideDestination:lr,destination:ar,viewport:pn,last:Gr.displaced,displacedBy:Gr.displacedBy,index:bn})},Ft=function(ae){var _e=ae.displaced,$e=ae.afterCritical,Et=ae.combineWith,qt=ae.displacedBy,ar=Boolean(_e.visible[Et]||_e.invisible[Et]);return dr(Et,$e)?ar?Te:ke(qt.point):ar?qt.point:Te},rr=function(ae){var _e=ae.afterCritical,$e=ae.impact,Et=ae.draggables,qt=St($e);qt||Ve(!1);var ar=qt.draggableId,lr=Et[ar].page.borderBox.center,Gr=Ft({displaced:$e.displaced,afterCritical:_e,combineWith:ar,displacedBy:$e.displacedBy});return Be(lr,Gr)},Kr=function(ae,_e){return _e.margin[ae.start]+_e.borderBox[ae.size]/2},Rr=function(ae,_e){return _e.margin[ae.end]+_e.borderBox[ae.size]/2},kr=function(ae,_e,$e){return _e[ae.crossAxisStart]+$e.margin[ae.crossAxisStart]+$e.borderBox[ae.crossAxisSize]/2},dn=function(ae){var _e=ae.axis,$e=ae.moveRelativeTo,Et=ae.isMoving;return nt(_e.line,$e.marginBox[_e.end]+Kr(_e,Et),kr(_e,$e.marginBox,Et))},yn=function(ae){var _e=ae.axis,$e=ae.moveRelativeTo,Et=ae.isMoving;return nt(_e.line,$e.marginBox[_e.start]-Rr(_e,Et),kr(_e,$e.marginBox,Et))},ri=function(ae){var _e=ae.axis,$e=ae.moveInto,Et=ae.isMoving;return nt(_e.line,$e.contentBox[_e.start]+Kr(_e,Et),kr(_e,$e.contentBox,Et))},$n=function(ae){var _e=ae.impact,$e=ae.draggable,Et=ae.draggables,qt=ae.droppable,ar=ae.afterCritical,lr=jt(qt.descriptor.id,Et),Gr=$e.page,pn=qt.axis;if(!lr.length)return ri({axis:pn,moveInto:qt.page,isMoving:Gr});var zr=_e.displaced,Hr=_e.displacedBy,un=zr.all[0];if(un){var bn=Et[un];if(dr(un,ar))return yn({axis:pn,moveRelativeTo:bn.page,isMoving:Gr});var Gn=b(bn.page,Hr.point);return yn({axis:pn,moveRelativeTo:Gn,isMoving:Gr})}var Li=lr[lr.length-1];if(Li.descriptor.id===$e.descriptor.id)return Gr.borderBox.center;if(dr(Li.descriptor.id,ar)){var Mi=b(Li.page,ke(ar.displacedBy.point));return dn({axis:pn,moveRelativeTo:Mi,isMoving:Gr})}return dn({axis:pn,moveRelativeTo:Li.page,isMoving:Gr})},pi=function(ae,_e){var $e=ae.frame;return $e?Be(_e,$e.scroll.diff.displacement):_e},_i=function(ae){var _e=ae.impact,$e=ae.draggable,Et=ae.droppable,qt=ae.draggables,ar=ae.afterCritical,lr=$e.page.borderBox.center,Gr=_e.at;return Et&&Gr?Gr.type==="REORDER"?$n({impact:_e,draggable:$e,draggables:qt,droppable:Et,afterCritical:ar}):rr({impact:_e,draggables:qt,afterCritical:ar}):lr},Di=function(ae){var _e=_i(ae),$e=ae.droppable,Et=$e?pi($e,_e):_e;return Et},Wi=function(ae,_e){var $e=fe(_e,ae.scroll.initial),Et=ke($e),qt=e({top:_e.y,bottom:_e.y+ae.frame.height,left:_e.x,right:_e.x+ae.frame.width}),ar={frame:qt,scroll:{initial:ae.scroll.initial,max:ae.scroll.max,current:_e,diff:{value:$e,displacement:Et}}};return ar};function at(Ue,ae){return Ue.map(function(_e){return ae[_e]})}function Le(Ue,ae){for(var _e=0;_e<ae.length;_e++){var $e=ae[_e].visible[Ue];if($e)return $e}return null}var je=function(ae){var _e=ae.impact,$e=ae.viewport,Et=ae.destination,qt=ae.draggables,ar=ae.maxScrollChange,lr=Wi($e,Be($e.scroll.current,ar)),Gr=Et.frame?pe(Et,Be(Et.frame.scroll.current,ar)):Et,pn=_e.displaced,zr=hn({afterDragging:at(pn.all,qt),destination:Et,displacedBy:_e.displacedBy,viewport:lr.frame,last:pn,forceShouldAnimate:!1}),Hr=hn({afterDragging:at(pn.all,qt),destination:Gr,displacedBy:_e.displacedBy,viewport:$e.frame,last:pn,forceShouldAnimate:!1}),un={},bn={},Gn=[pn,zr,Hr];pn.all.forEach(function(Mi){var da=Le(Mi,Gn);if(da){bn[Mi]=da;return}un[Mi]=!0});var Li=Object(m.a)({},_e,{displaced:{all:pn.all,invisible:un,visible:bn}});return Li},Xe=function(ae,_e){return Be(ae.scroll.diff.displacement,_e)},it=function(ae){var _e=ae.pageBorderBoxCenter,$e=ae.draggable,Et=ae.viewport,qt=Xe(Et,_e),ar=fe(qt,$e.page.borderBox.center);return Be($e.client.borderBox.center,ar)},Ze=function(ae){var _e=ae.draggable,$e=ae.destination,Et=ae.newPageBorderBoxCenter,qt=ae.viewport,ar=ae.withDroppableDisplacement,lr=ae.onlyOnMainAxis,Gr=lr===void 0?!1:lr,pn=fe(Et,_e.page.borderBox.center),zr=ht(_e.page.borderBox,pn),Hr={target:zr,destination:$e,withDroppableDisplacement:ar,viewport:qt};return Gr?$t(Hr):Ot(Hr)},ot=function(ae){var _e=ae.isMovingForward,$e=ae.draggable,Et=ae.destination,qt=ae.draggables,ar=ae.previousImpact,lr=ae.viewport,Gr=ae.previousPageBorderBoxCenter,pn=ae.previousClientSelection,zr=ae.afterCritical;if(!Et.isEnabled)return null;var Hr=jt(Et.descriptor.id,qt),un=tt($e,Et),bn=lt({isMovingForward:_e,draggable:$e,destination:Et,insideDestination:Hr,previousImpact:ar})||ir({isMovingForward:_e,isInHomeList:un,draggable:$e,draggables:qt,destination:Et,insideDestination:Hr,previousImpact:ar,viewport:lr,afterCritical:zr});if(!bn)return null;var Gn=Di({impact:bn,draggable:$e,droppable:Et,draggables:qt,afterCritical:zr}),Li=Ze({draggable:$e,destination:Et,newPageBorderBoxCenter:Gn,viewport:lr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Li){var Mi=it({pageBorderBoxCenter:Gn,draggable:$e,viewport:lr});return{clientSelection:Mi,impact:bn,scrollJumpRequest:null}}var da=fe(Gn,Gr),$i=je({impact:bn,viewport:lr,destination:Et,draggables:qt,maxScrollChange:da});return{clientSelection:pn,impact:$i,scrollJumpRequest:da}},Lt=function(ae){var _e=ae.subject.active;return _e||Ve(!1),_e},At=function(ae){var _e=ae.isMovingForward,$e=ae.pageBorderBoxCenter,Et=ae.source,qt=ae.droppables,ar=ae.viewport,lr=Et.subject.active;if(!lr)return null;var Gr=Et.axis,pn=Bn(lr[Gr.start],lr[Gr.end]),zr=or(qt).filter(function(un){return un!==Et}).filter(function(un){return un.isEnabled}).filter(function(un){return Boolean(un.subject.active)}).filter(function(un){return oi(ar.frame)(Lt(un))}).filter(function(un){var bn=Lt(un);return _e?lr[Gr.crossAxisEnd]<bn[Gr.crossAxisEnd]:bn[Gr.crossAxisStart]<lr[Gr.crossAxisStart]}).filter(function(un){var bn=Lt(un),Gn=Bn(bn[Gr.start],bn[Gr.end]);return pn(bn[Gr.start])||pn(bn[Gr.end])||Gn(lr[Gr.start])||Gn(lr[Gr.end])}).sort(function(un,bn){var Gn=Lt(un)[Gr.crossAxisStart],Li=Lt(bn)[Gr.crossAxisStart];return _e?Gn-Li:Li-Gn}).filter(function(un,bn,Gn){return Lt(un)[Gr.crossAxisStart]===Lt(Gn[0])[Gr.crossAxisStart]});if(!zr.length)return null;if(zr.length===1)return zr[0];var Hr=zr.filter(function(un){var bn=Bn(Lt(un)[Gr.start],Lt(un)[Gr.end]);return bn($e[Gr.line])});return Hr.length===1?Hr[0]:Hr.length>1?Hr.sort(function(un,bn){return Lt(un)[Gr.start]-Lt(bn)[Gr.start]})[0]:zr.sort(function(un,bn){var Gn=pt($e,Gt(Lt(un))),Li=pt($e,Gt(Lt(bn)));return Gn!==Li?Gn-Li:Lt(un)[Gr.start]-Lt(bn)[Gr.start]})[0]},mr=function(ae,_e){var $e=ae.page.borderBox.center;return dr(ae.descriptor.id,_e)?fe($e,_e.displacedBy.point):$e},qr=function(ae,_e){var $e=ae.page.borderBox;return dr(ae.descriptor.id,_e)?ht($e,ke(_e.displacedBy.point)):$e},Qr=function(ae){var _e=ae.pageBorderBoxCenter,$e=ae.viewport,Et=ae.destination,qt=ae.insideDestination,ar=ae.afterCritical,lr=qt.filter(function(Gr){return Ot({target:qr(Gr,ar),destination:Et,viewport:$e.frame,withDroppableDisplacement:!0})}).sort(function(Gr,pn){var zr=Ct(_e,pi(Et,mr(Gr,ar))),Hr=Ct(_e,pi(Et,mr(pn,ar)));return zr<Hr?-1:Hr<zr?1:Gr.descriptor.index-pn.descriptor.index});return lr[0]||null},gn=I(function(ae,_e){var $e=_e[ae.line];return{value:$e,point:nt(ae.line,$e)}}),yr=function(ae,_e,$e){var Et=ae.axis;if(ae.descriptor.mode==="virtual")return nt(Et.line,_e[Et.line]);var qt=ae.subject.page.contentBox[Et.size],ar=jt(ae.descriptor.id,$e),lr=ar.reduce(function(zr,Hr){return zr+Hr.client.marginBox[Et.size]},0),Gr=lr+_e[Et.line],pn=Gr-qt;return pn<=0?null:nt(Et.line,pn)},Vn=function(ae,_e){return Object(m.a)({},ae,{scroll:Object(m.a)({},ae.scroll,{max:_e})})},Br=function(ae,_e,$e){var Et=ae.frame;tt(_e,ae)&&Ve(!1),ae.subject.withPlaceholder&&Ve(!1);var qt=gn(ae.axis,_e.displaceBy).point,ar=yr(ae,qt,$e),lr={placeholderSize:qt,increasedBy:ar,oldFrameMaxScroll:ae.frame?ae.frame.scroll.max:null};if(!Et){var Gr=Ge({page:ae.subject.page,withPlaceholder:lr,axis:ae.axis,frame:ae.frame});return Object(m.a)({},ae,{subject:Gr})}var pn=ar?Be(Et.scroll.max,ar):Et.scroll.max,zr=Vn(Et,pn),Hr=Ge({page:ae.subject.page,withPlaceholder:lr,axis:ae.axis,frame:zr});return Object(m.a)({},ae,{subject:Hr,frame:zr})},jn=function(ae){var _e=ae.subject.withPlaceholder;_e||Ve(!1);var $e=ae.frame;if(!$e){var Et=Ge({page:ae.subject.page,axis:ae.axis,frame:null,withPlaceholder:null});return Object(m.a)({},ae,{subject:Et})}var qt=_e.oldFrameMaxScroll;qt||Ve(!1);var ar=Vn($e,qt),lr=Ge({page:ae.subject.page,axis:ae.axis,frame:ar,withPlaceholder:null});return Object(m.a)({},ae,{subject:lr,frame:ar})},xn=function(ae){var _e=ae.previousPageBorderBoxCenter,$e=ae.moveRelativeTo,Et=ae.insideDestination,qt=ae.draggable,ar=ae.draggables,lr=ae.destination,Gr=ae.viewport,pn=ae.afterCritical;if(!$e){if(Et.length)return null;var zr={displaced:nn,displacedBy:Cr,at:{type:"REORDER",destination:{droppableId:lr.descriptor.id,index:0}}},Hr=Di({impact:zr,draggable:qt,droppable:lr,draggables:ar,afterCritical:pn}),un=tt(qt,lr)?lr:Br(lr,qt,ar),bn=Ze({draggable:qt,destination:un,newPageBorderBoxCenter:Hr,viewport:Gr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return bn?zr:null}var Gn=Boolean(_e[lr.axis.line]<=$e.page.borderBox.center[lr.axis.line]),Li=function(){var da=$e.descriptor.index;return $e.descriptor.id===qt.descriptor.id||Gn?da:da+1}(),Mi=gn(lr.axis,qt.displaceBy);return xt({draggable:qt,insideDestination:Et,destination:lr,viewport:Gr,displacedBy:Mi,last:nn,index:Li})},tn=function(ae){var _e=ae.isMovingForward,$e=ae.previousPageBorderBoxCenter,Et=ae.draggable,qt=ae.isOver,ar=ae.draggables,lr=ae.droppables,Gr=ae.viewport,pn=ae.afterCritical,zr=At({isMovingForward:_e,pageBorderBoxCenter:$e,source:qt,droppables:lr,viewport:Gr});if(!zr)return null;var Hr=jt(zr.descriptor.id,ar),un=Qr({pageBorderBoxCenter:$e,viewport:Gr,destination:zr,insideDestination:Hr,afterCritical:pn}),bn=xn({previousPageBorderBoxCenter:$e,destination:zr,draggable:Et,draggables:ar,moveRelativeTo:un,insideDestination:Hr,viewport:Gr,afterCritical:pn});if(!bn)return null;var Gn=Di({impact:bn,draggable:Et,droppable:zr,draggables:ar,afterCritical:pn}),Li=it({pageBorderBoxCenter:Gn,draggable:Et,viewport:Gr});return{clientSelection:Li,impact:bn,scrollJumpRequest:null}},ti=function(ae){var _e=ae.at;return _e?_e.type==="REORDER"?_e.destination.droppableId:_e.combine.droppableId:null},mi=function(ae,_e){var $e=ti(ae);return $e?_e[$e]:null},Pi=function(ae){var _e=ae.state,$e=ae.type,Et=mi(_e.impact,_e.dimensions.droppables),qt=Boolean(Et),ar=_e.dimensions.droppables[_e.critical.droppable.id],lr=Et||ar,Gr=lr.axis.direction,pn=Gr==="vertical"&&($e==="MOVE_UP"||$e==="MOVE_DOWN")||Gr==="horizontal"&&($e==="MOVE_LEFT"||$e==="MOVE_RIGHT");if(pn&&!qt)return null;var zr=$e==="MOVE_DOWN"||$e==="MOVE_RIGHT",Hr=_e.dimensions.draggables[_e.critical.draggable.id],un=_e.current.page.borderBoxCenter,bn=_e.dimensions,Gn=bn.draggables,Li=bn.droppables;return pn?ot({isMovingForward:zr,previousPageBorderBoxCenter:un,draggable:Hr,destination:lr,draggables:Gn,viewport:_e.viewport,previousClientSelection:_e.current.client.selection,previousImpact:_e.impact,afterCritical:_e.afterCritical}):tn({isMovingForward:zr,previousPageBorderBoxCenter:un,draggable:Hr,isOver:lr,draggables:Gn,droppables:Li,viewport:_e.viewport,afterCritical:_e.afterCritical})};function en(Ue){return Ue.phase==="DRAGGING"||Ue.phase==="COLLECTING"}function Tn(Ue){var ae=Bn(Ue.top,Ue.bottom),_e=Bn(Ue.left,Ue.right);return function(Et){return ae(Et.y)&&_e(Et.x)}}function Yn(Ue,ae){return Ue.left<ae.right&&Ue.right>ae.left&&Ue.top<ae.bottom&&Ue.bottom>ae.top}function Yt(Ue){var ae=Ue.pageBorderBox,_e=Ue.draggable,$e=Ue.candidates,Et=_e.page.borderBox.center,qt=$e.map(function(ar){var lr=ar.axis,Gr=nt(ar.axis.line,ae.center[lr.line],ar.page.borderBox.center[lr.crossAxisLine]);return{id:ar.descriptor.id,distance:Ct(Et,Gr)}}).sort(function(ar,lr){return lr.distance-ar.distance});return qt[0]?qt[0].id:null}function Dt(Ue){var ae=Ue.pageBorderBox,_e=Ue.draggable,$e=Ue.droppables,Et=or($e).filter(function(qt){if(!qt.isEnabled)return!1;var ar=qt.subject.active;if(!ar)return!1;if(!Yn(ae,ar))return!1;if(Tn(ar)(ae.center))return!0;var lr=qt.axis,Gr=ar.center[lr.crossAxisLine],pn=ae[lr.crossAxisStart],zr=ae[lr.crossAxisEnd],Hr=Bn(ar[lr.crossAxisStart],ar[lr.crossAxisEnd]),un=Hr(pn),bn=Hr(zr);return!un&&!bn?!0:un?pn<Gr:zr>Gr});return Et.length?Et.length===1?Et[0].descriptor.id:Yt({pageBorderBox:ae,draggable:_e,candidates:Et}):null}var Bt=function(ae,_e){return e(ht(ae,_e))},Wt=function(ae,_e){var $e=ae.frame;return $e?Bt(_e,$e.scroll.diff.value):_e};function Xt(Ue){var ae=Ue.displaced,_e=Ue.id;return Boolean(ae.visible[_e]||ae.invisible[_e])}function kt(Ue){var ae=Ue.draggable,_e=Ue.closest,$e=Ue.inHomeList;return _e?$e&&_e.descriptor.index>ae.descriptor.index?_e.descriptor.index-1:_e.descriptor.index:null}var hr=function(ae){var _e=ae.pageBorderBoxWithDroppableScroll,$e=ae.draggable,Et=ae.destination,qt=ae.insideDestination,ar=ae.last,lr=ae.viewport,Gr=ae.afterCritical,pn=Et.axis,zr=gn(Et.axis,$e.displaceBy),Hr=zr.value,un=_e[pn.start],bn=_e[pn.end],Gn=mt($e,qt),Li=me(Gn,function(da){var $i=da.descriptor.id,Qa=da.page.borderBox.center[pn.line],ya=dr($i,Gr),fo=Xt({displaced:ar,id:$i});return ya?fo?bn<=Qa:un<Qa-Hr:fo?bn<=Qa+Hr:un<Qa}),Mi=kt({draggable:$e,closest:Li,inHomeList:tt($e,Et)});return xt({draggable:$e,insideDestination:qt,destination:Et,viewport:lr,last:ar,displacedBy:zr,index:Mi})},br=4,wr=function(ae){var _e=ae.draggable,$e=ae.pageBorderBoxWithDroppableScroll,Et=ae.previousImpact,qt=ae.destination,ar=ae.insideDestination,lr=ae.afterCritical;if(!qt.isCombineEnabled)return null;var Gr=qt.axis,pn=gn(qt.axis,_e.displaceBy),zr=pn.value,Hr=$e[Gr.start],un=$e[Gr.end],bn=mt(_e,ar),Gn=me(bn,function(Mi){var da=Mi.descriptor.id,$i=Mi.page.borderBox,Qa=$i[Gr.size],ya=Qa/br,fo=dr(da,lr),za=Xt({displaced:Et.displaced,id:da});return fo?za?un>$i[Gr.start]+ya&&un<$i[Gr.end]-ya:Hr>$i[Gr.start]-zr+ya&&Hr<$i[Gr.end]-zr-ya:za?un>$i[Gr.start]+zr+ya&&un<$i[Gr.end]+zr-ya:Hr>$i[Gr.start]+ya&&Hr<$i[Gr.end]-ya});if(!Gn)return null;var Li={displacedBy:pn,displaced:Et.displaced,at:{type:"COMBINE",combine:{draggableId:Gn.descriptor.id,droppableId:qt.descriptor.id}}};return Li},Fr=function(ae){var _e=ae.pageOffset,$e=ae.draggable,Et=ae.draggables,qt=ae.droppables,ar=ae.previousImpact,lr=ae.viewport,Gr=ae.afterCritical,pn=Bt($e.page.borderBox,_e),zr=Dt({pageBorderBox:pn,draggable:$e,droppables:qt});if(!zr)return mn;var Hr=qt[zr],un=jt(Hr.descriptor.id,Et),bn=Wt(Hr,pn);return wr({pageBorderBoxWithDroppableScroll:bn,draggable:$e,previousImpact:ar,destination:Hr,insideDestination:un,afterCritical:Gr})||hr({pageBorderBoxWithDroppableScroll:bn,draggable:$e,destination:Hr,insideDestination:un,last:ar.displaced,viewport:lr,afterCritical:Gr})},Xn=function(ae,_e){var $e;return Object(m.a)({},ae,($e={},$e[_e.descriptor.id]=_e,$e))},Fn=function(ae){var _e=ae.previousImpact,$e=ae.impact,Et=ae.droppables,qt=ti(_e),ar=ti($e);if(!qt)return Et;if(qt===ar)return Et;var lr=Et[qt];if(!lr.subject.withPlaceholder)return Et;var Gr=jn(lr);return Xn(Et,Gr)},hi=function(ae){var _e=ae.draggable,$e=ae.draggables,Et=ae.droppables,qt=ae.previousImpact,ar=ae.impact,lr=Fn({previousImpact:qt,impact:ar,droppables:Et}),Gr=ti(ar);if(!Gr)return lr;var pn=Et[Gr];if(tt(_e,pn))return lr;if(pn.subject.withPlaceholder)return lr;var zr=Br(pn,_e,$e);return Xn(lr,zr)},An=function(ae){var _e=ae.state,$e=ae.clientSelection,Et=ae.dimensions,qt=ae.viewport,ar=ae.impact,lr=ae.scrollJumpRequest,Gr=qt||_e.viewport,pn=Et||_e.dimensions,zr=$e||_e.current.client.selection,Hr=fe(zr,_e.initial.client.selection),un={offset:Hr,selection:zr,borderBoxCenter:Be(_e.initial.client.borderBoxCenter,Hr)},bn={selection:Be(un.selection,Gr.scroll.current),borderBoxCenter:Be(un.borderBoxCenter,Gr.scroll.current),offset:Be(un.offset,Gr.scroll.diff.value)},Gn={client:un,page:bn};if(_e.phase==="COLLECTING")return Object(m.a)({phase:"COLLECTING"},_e,{dimensions:pn,viewport:Gr,current:Gn});var Li=pn.draggables[_e.critical.draggable.id],Mi=ar||Fr({pageOffset:bn.offset,draggable:Li,draggables:pn.draggables,droppables:pn.droppables,previousImpact:_e.impact,viewport:Gr,afterCritical:_e.afterCritical}),da=hi({draggable:Li,impact:Mi,previousImpact:_e.impact,draggables:pn.draggables,droppables:pn.droppables}),$i=Object(m.a)({},_e,{current:Gn,dimensions:{draggables:pn.draggables,droppables:da},impact:Mi,viewport:Gr,scrollJumpRequest:lr||null,forceShouldAnimate:lr?!1:null});return $i};function jr(Ue,ae){return Ue.map(function(_e){return ae[_e]})}var In=function(ae){var _e=ae.impact,$e=ae.viewport,Et=ae.draggables,qt=ae.destination,ar=ae.forceShouldAnimate,lr=_e.displaced,Gr=jr(lr.all,Et),pn=hn({afterDragging:Gr,destination:qt,displacedBy:_e.displacedBy,viewport:$e.frame,forceShouldAnimate:ar,last:lr});return Object(m.a)({},_e,{displaced:pn})},Qn=function(ae){var _e=ae.impact,$e=ae.draggable,Et=ae.droppable,qt=ae.draggables,ar=ae.viewport,lr=ae.afterCritical,Gr=Di({impact:_e,draggable:$e,draggables:qt,droppable:Et,afterCritical:lr});return it({pageBorderBoxCenter:Gr,draggable:$e,viewport:ar})},qn=function(ae){var _e=ae.state,$e=ae.dimensions,Et=ae.viewport;_e.movementMode==="SNAP"||Ve(!1);var qt=_e.impact,ar=Et||_e.viewport,lr=$e||_e.dimensions,Gr=lr.draggables,pn=lr.droppables,zr=Gr[_e.critical.draggable.id],Hr=ti(qt);Hr||Ve(!1);var un=pn[Hr],bn=In({impact:qt,viewport:ar,destination:un,draggables:Gr}),Gn=Qn({impact:bn,draggable:zr,droppable:un,draggables:Gr,viewport:ar,afterCritical:_e.afterCritical});return An({impact:bn,clientSelection:Gn,state:_e,dimensions:lr,viewport:ar})},si=function(ae){return{index:ae.index,droppableId:ae.droppableId}},Ci=function(ae){var _e=ae.draggable,$e=ae.home,Et=ae.draggables,qt=ae.viewport,ar=gn($e.axis,_e.displaceBy),lr=jt($e.descriptor.id,Et),Gr=lr.indexOf(_e);Gr!==-1||Ve(!1);var pn=lr.slice(Gr+1),zr=pn.reduce(function(Gn,Li){return Gn[Li.descriptor.id]=!0,Gn},{}),Hr={inVirtualList:$e.descriptor.mode==="virtual",displacedBy:ar,effected:zr},un=hn({afterDragging:pn,destination:$e,displacedBy:ar,last:null,viewport:qt.frame,forceShouldAnimate:!1}),bn={displaced:un,displacedBy:ar,at:{type:"REORDER",destination:si(_e.descriptor)}};return{impact:bn,afterCritical:Hr}},ki=function(ae,_e){return{draggables:ae.draggables,droppables:Xn(ae.droppables,_e)}},Ri=function(ae){},oa=function(ae){},ma=function(ae){var _e=ae.draggable,$e=ae.offset,Et=ae.initialWindowScroll,qt=b(_e.client,$e),ar=x(qt,Et),lr=Object(m.a)({},_e,{placeholder:Object(m.a)({},_e.placeholder,{client:qt}),client:qt,page:ar});return lr},aa=function(ae){var _e=ae.frame;return _e||Ve(!1),_e},ba=function(ae){var _e=ae.additions,$e=ae.updatedDroppables,Et=ae.viewport,qt=Et.scroll.diff.value;return _e.map(function(ar){var lr=ar.descriptor.droppableId,Gr=$e[lr],pn=aa(Gr),zr=pn.scroll.diff.value,Hr=Be(qt,zr),un=ma({draggable:ar,offset:Hr,initialWindowScroll:Et.scroll.initial});return un})},bi=function(ae){var _e=ae.state,$e=ae.published;Ri();var Et=$e.modified.map(function(ya){var fo=_e.dimensions.droppables[ya.droppableId],za=pe(fo,ya.scroll);return za}),qt=Object(m.a)({},_e.dimensions.droppables,{},vr(Et)),ar=bt(ba({additions:$e.additions,updatedDroppables:qt,viewport:_e.viewport})),lr=Object(m.a)({},_e.dimensions.draggables,{},ar);$e.removals.forEach(function(ya){delete lr[ya]});var Gr={droppables:qt,draggables:lr},pn=ti(_e.impact),zr=pn?Gr.droppables[pn]:null,Hr=Gr.draggables[_e.critical.draggable.id],un=Gr.droppables[_e.critical.droppable.id],bn=Ci({draggable:Hr,home:un,draggables:lr,viewport:_e.viewport}),Gn=bn.impact,Li=bn.afterCritical,Mi=zr&&zr.isCombineEnabled?_e.impact:Gn,da=Fr({pageOffset:_e.current.page.offset,draggable:Gr.draggables[_e.critical.draggable.id],draggables:Gr.draggables,droppables:Gr.droppables,previousImpact:Mi,viewport:_e.viewport,afterCritical:Li});oa();var $i=Object(m.a)({phase:"DRAGGING"},_e,{phase:"DRAGGING",impact:da,onLiftImpact:Gn,dimensions:Gr,afterCritical:Li,forceShouldAnimate:!1});if(_e.phase==="COLLECTING")return $i;var Qa=Object(m.a)({phase:"DROP_PENDING"},$i,{phase:"DROP_PENDING",reason:_e.reason,isWaiting:!1});return Qa},Pn=function(ae){return ae.movementMode==="SNAP"},ji=function(ae,_e,$e){var Et=ki(ae.dimensions,_e);return!Pn(ae)||$e?An({state:ae,dimensions:Et}):qn({state:ae,dimensions:Et})};function ha(Ue){return Ue.isDragging&&Ue.movementMode==="SNAP"?Object(m.a)({phase:"DRAGGING"},Ue,{scrollJumpRequest:null}):Ue}var ta={phase:"IDLE",completed:null,shouldFlush:!1},ra=function(ae,_e){if(ae===void 0&&(ae=ta),_e.type==="FLUSH")return Object(m.a)({},ta,{shouldFlush:!0});if(_e.type==="INITIAL_PUBLISH"){ae.phase==="IDLE"||Ve(!1);var $e=_e.payload,Et=$e.critical,qt=$e.clientSelection,ar=$e.viewport,lr=$e.dimensions,Gr=$e.movementMode,pn=lr.draggables[Et.draggable.id],zr=lr.droppables[Et.droppable.id],Hr={selection:qt,borderBoxCenter:pn.client.borderBox.center,offset:Te},un={client:Hr,page:{selection:Be(Hr.selection,ar.scroll.initial),borderBoxCenter:Be(Hr.selection,ar.scroll.initial),offset:Be(Hr.selection,ar.scroll.diff.value)}},bn=or(lr.droppables).every(function(xs){return!xs.isFixedOnPage}),Gn=Ci({draggable:pn,home:zr,draggables:lr.draggables,viewport:ar}),Li=Gn.impact,Mi=Gn.afterCritical,da={phase:"DRAGGING",isDragging:!0,critical:Et,movementMode:Gr,dimensions:lr,initial:un,current:un,isWindowScrollAllowed:bn,impact:Li,afterCritical:Mi,onLiftImpact:Li,viewport:ar,scrollJumpRequest:null,forceShouldAnimate:null};return da}if(_e.type==="COLLECTION_STARTING"){if(ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING")return ae;ae.phase==="DRAGGING"||Ve(!1);var $i=Object(m.a)({phase:"COLLECTING"},ae,{phase:"COLLECTING"});return $i}if(_e.type==="PUBLISH_WHILE_DRAGGING")return ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING"||Ve(!1),bi({state:ae,published:_e.payload});if(_e.type==="MOVE"){if(ae.phase==="DROP_PENDING")return ae;en(ae)||Ve(!1);var Qa=_e.payload.client;return xe(Qa,ae.current.client.selection)?ae:An({state:ae,clientSelection:Qa,impact:Pn(ae)?ae.impact:null})}if(_e.type==="UPDATE_DROPPABLE_SCROLL"){if(ae.phase==="DROP_PENDING")return ha(ae);if(ae.phase==="COLLECTING")return ha(ae);en(ae)||Ve(!1);var ya=_e.payload,fo=ya.id,za=ya.newScroll,Xo=ae.dimensions.droppables[fo];if(!Xo)return ae;var ls=pe(Xo,za);return ji(ae,ls,!1)}if(_e.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ae.phase==="DROP_PENDING")return ae;en(ae)||Ve(!1);var N=_e.payload,B=N.id,ie=N.isEnabled,le=ae.dimensions.droppables[B];le||Ve(!1),le.isEnabled!==ie||Ve(!1);var ge=Object(m.a)({},le,{isEnabled:ie});return ji(ae,ge,!0)}if(_e.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ae.phase==="DROP_PENDING")return ae;en(ae)||Ve(!1);var Ke=_e.payload,Rt=Ke.id,sr=Ke.isCombineEnabled,xr=ae.dimensions.droppables[Rt];xr||Ve(!1),xr.isCombineEnabled!==sr||Ve(!1);var Ir=Object(m.a)({},xr,{isCombineEnabled:sr});return ji(ae,Ir,!0)}if(_e.type==="MOVE_BY_WINDOW_SCROLL"){if(ae.phase==="DROP_PENDING"||ae.phase==="DROP_ANIMATING")return ae;en(ae)||Ve(!1),ae.isWindowScrollAllowed||Ve(!1);var Kn=_e.payload.newScroll;if(xe(ae.viewport.scroll.current,Kn))return ha(ae);var ni=Wi(ae.viewport,Kn);return Pn(ae)?qn({state:ae,viewport:ni}):An({state:ae,viewport:ni})}if(_e.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!en(ae))return ae;var Ei=_e.payload.maxScroll;if(xe(Ei,ae.viewport.scroll.max))return ae;var Oi=Object(m.a)({},ae.viewport,{scroll:Object(m.a)({},ae.viewport.scroll,{max:Ei})});return Object(m.a)({phase:"DRAGGING"},ae,{viewport:Oi})}if(_e.type==="MOVE_UP"||_e.type==="MOVE_DOWN"||_e.type==="MOVE_LEFT"||_e.type==="MOVE_RIGHT"){if(ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING")return ae;ae.phase==="DRAGGING"||Ve(!1);var la=Pi({state:ae,type:_e.type});return la?An({state:ae,impact:la.impact,clientSelection:la.clientSelection,scrollJumpRequest:la.scrollJumpRequest}):ae}if(_e.type==="DROP_PENDING"){var Ca=_e.payload.reason;ae.phase==="COLLECTING"||Ve(!1);var Wa=Object(m.a)({phase:"DROP_PENDING"},ae,{phase:"DROP_PENDING",isWaiting:!0,reason:Ca});return Wa}if(_e.type==="DROP_ANIMATE"){var Ma=_e.payload,Na=Ma.completed,qa=Ma.dropDuration,ho=Ma.newHomeClientOffset;ae.phase==="DRAGGING"||ae.phase==="DROP_PENDING"||Ve(!1);var ns={phase:"DROP_ANIMATING",completed:Na,dropDuration:qa,newHomeClientOffset:ho,dimensions:ae.dimensions};return ns}if(_e.type==="DROP_COMPLETE"){var Mo=_e.payload.completed;return{phase:"IDLE",completed:Mo,shouldFlush:!1}}return ae},Nr=function(ae){return{type:"BEFORE_INITIAL_CAPTURE",payload:ae}},Er=function(ae){return{type:"LIFT",payload:ae}},On=function(ae){return{type:"INITIAL_PUBLISH",payload:ae}},gr=function(ae){return{type:"PUBLISH_WHILE_DRAGGING",payload:ae}},Pr=function(){return{type:"COLLECTION_STARTING",payload:null}},Xr=function(ae){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ae}},cn=function(ae){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ae}},Un=function(ae){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ae}},Nt=function(ae){return{type:"MOVE",payload:ae}},Lr=function(ae){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ae}},Dr=function(ae){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ae}},an=function(){return{type:"MOVE_UP",payload:null}},Cn=function(){return{type:"MOVE_DOWN",payload:null}},Nn=function(){return{type:"MOVE_RIGHT",payload:null}},En=function(){return{type:"MOVE_LEFT",payload:null}},ei=function(){return{type:"FLUSH",payload:null}},Wn=function(ae){return{type:"DROP_ANIMATE",payload:ae}},gi=function(ae){return{type:"DROP_COMPLETE",payload:ae}},Fi=function(ae){return{type:"DROP",payload:ae}},wi=function(ae){return{type:"DROP_PENDING",payload:ae}},Ii=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Vi(Ue){if(Ue.length<=1)return;for(var ae=Ue.map(function(lr){return lr.descriptor.index}),_e={},$e=1;$e<ae.length;$e++){var Et=ae[$e],qt=ae[$e-1];Et!==qt+1&&(_e[Et]=!0)}if(!Object.keys(_e).length)return;var ar=ae.map(function(lr){var Gr=Boolean(_e[lr]);return Gr?"[\u{1F525}"+lr+"]":""+lr}).join(", ")}function ea(Ue,ae){if(!1)var _e}var Xi=function(ae){return function(_e){var $e=_e.getState,Et=_e.dispatch;return function(qt){return function(ar){if(ar.type!=="LIFT"){qt(ar);return}var lr=ar.payload,Gr=lr.id,pn=lr.clientSelection,zr=lr.movementMode,Hr=$e();Hr.phase==="DROP_ANIMATING"&&Et(gi({completed:Hr.completed})),$e().phase==="IDLE"||Ve(!1),Et(ei()),Et(Nr({draggableId:Gr,movementMode:zr}));var un={shouldPublishImmediately:zr==="SNAP"},bn={draggableId:Gr,scrollOptions:un},Gn=ae.startPublishing(bn),Li=Gn.critical,Mi=Gn.dimensions,da=Gn.viewport;ea(Li,Mi),Et(On({critical:Li,dimensions:Mi,clientSelection:pn,movementMode:zr,viewport:da}))}}}},zi=function(ae){return function(){return function(_e){return function($e){$e.type==="INITIAL_PUBLISH"&&ae.dragging(),$e.type==="DROP_ANIMATE"&&ae.dropping($e.payload.completed.result.reason),($e.type==="FLUSH"||$e.type==="DROP_COMPLETE")&&ae.resting(),_e($e)}}}},Hi={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ji={opacity:{drop:0,combining:.7},scale:{drop:.75}},ca={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Ta=ca.outOfTheWay+"s "+Hi.outOfTheWay,na={fluid:"opacity "+Ta,snap:"transform "+Ta+", opacity "+Ta,drop:function(ae){var _e=ae+"s "+Hi.drop;return"transform "+_e+", opacity "+_e},outOfTheWay:"transform "+Ta,placeholder:"height "+Ta+", width "+Ta+", margin "+Ta},Pa=function(ae){return xe(ae,Te)?null:"translate("+ae.x+"px, "+ae.y+"px)"},La={moveTo:Pa,drop:function(ae,_e){var $e=Pa(ae);return $e?_e?$e+" scale("+Ji.scale.drop+")":$e:null}},va=ca.minDropTime,ga=ca.maxDropTime,Oa=ga-va,Aa=1500,Xa=.6,_a=function(ae){var _e=ae.current,$e=ae.destination,Et=ae.reason,qt=Ct(_e,$e);if(qt<=0)return va;if(qt>=Aa)return ga;var ar=qt/Aa,lr=va+Oa*ar,Gr=Et==="CANCEL"?lr*Xa:lr;return Number(Gr.toFixed(2))},Va=function(ae){var _e=ae.impact,$e=ae.draggable,Et=ae.dimensions,qt=ae.viewport,ar=ae.afterCritical,lr=Et.draggables,Gr=Et.droppables,pn=ti(_e),zr=pn?Gr[pn]:null,Hr=Gr[$e.descriptor.droppableId],un=Qn({impact:_e,draggable:$e,draggables:lr,afterCritical:ar,droppable:zr||Hr,viewport:qt}),bn=fe(un,$e.client.borderBox.center);return bn},Bi=function(ae){var _e=ae.draggables,$e=ae.reason,Et=ae.lastImpact,qt=ae.home,ar=ae.viewport,lr=ae.onLiftImpact;if(!Et.at||$e!=="DROP"){var Gr=In({draggables:_e,impact:lr,destination:qt,viewport:ar,forceShouldAnimate:!0});return{impact:Gr,didDropInsideDroppable:!1}}if(Et.at.type==="REORDER")return{impact:Et,didDropInsideDroppable:!0};var pn=Object(m.a)({},Et,{displaced:nn});return{impact:pn,didDropInsideDroppable:!0}},io=function(ae){var _e=ae.getState,$e=ae.dispatch;return function(Et){return function(qt){if(qt.type!=="DROP"){Et(qt);return}var ar=_e(),lr=qt.payload.reason;if(ar.phase==="COLLECTING"){$e(wi({reason:lr}));return}if(ar.phase==="IDLE")return;var Gr=ar.phase==="DROP_PENDING"&&ar.isWaiting;Gr&&Ve(!1),ar.phase==="DRAGGING"||ar.phase==="DROP_PENDING"||Ve(!1);var pn=ar.critical,zr=ar.dimensions,Hr=zr.draggables[ar.critical.draggable.id],un=Bi({reason:lr,lastImpact:ar.impact,afterCritical:ar.afterCritical,onLiftImpact:ar.onLiftImpact,home:ar.dimensions.droppables[ar.critical.droppable.id],viewport:ar.viewport,draggables:ar.dimensions.draggables}),bn=un.impact,Gn=un.didDropInsideDroppable,Li=Gn?ut(bn):null,Mi=Gn?St(bn):null,da={index:pn.draggable.index,droppableId:pn.droppable.id},$i={draggableId:Hr.descriptor.id,type:Hr.descriptor.type,source:da,reason:lr,mode:ar.movementMode,destination:Li,combine:Mi},Qa=Va({impact:bn,draggable:Hr,dimensions:zr,viewport:ar.viewport,afterCritical:ar.afterCritical}),ya={critical:ar.critical,afterCritical:ar.afterCritical,result:$i,impact:bn},fo=!xe(ar.current.client.offset,Qa)||Boolean($i.combine);if(!fo){$e(gi({completed:ya}));return}var za=_a({current:ar.current.client.offset,destination:Qa,reason:lr}),Xo={newHomeClientOffset:Qa,dropDuration:za,completed:ya};$e(Wn(Xo))}}},oo=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Qo(Ue){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(_e){if(_e.target!==window&&_e.target!==window.document)return;Ue()}}}function mo(Ue){var ae=Ue.onWindowScroll;function _e(){ae(oo())}var $e=M(_e),Et=Qo($e),qt=se;function ar(){return qt!==se}function lr(){ar()&&Ve(!1),qt=we(window,[Et])}function Gr(){ar()||Ve(!1),$e.cancel(),qt(),qt=se}return{start:lr,stop:Gr,isActive:ar}}var Co=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},ao=function(ae){var _e=mo({onWindowScroll:function(Et){ae.dispatch(Lr({newScroll:Et}))}});return function($e){return function(Et){!_e.isActive()&&Et.type==="INITIAL_PUBLISH"&&_e.start(),_e.isActive()&&Co(Et)&&_e.stop(),$e(Et)}}},xo=function(ae){var _e=!1,$e=!1,Et=setTimeout(function(){$e=!0}),qt=function(lr){if(_e)return;if($e)return;_e=!0,ae(lr),clearTimeout(Et)};return qt.wasCalled=function(){return _e},qt},bo=function(){var ae=[],_e=function(ar){var lr=qe(ae,function(zr){return zr.timerId===ar});lr!==-1||Ve(!1);var Gr=ae.splice(lr,1),pn=Gr[0];pn.callback()},$e=function(ar){var lr=setTimeout(function(){return _e(lr)}),Gr={timerId:lr,callback:ar};ae.push(Gr)},Et=function(){if(!ae.length)return;var ar=[].concat(ae);ae.length=0,ar.forEach(function(lr){clearTimeout(lr.timerId),lr.callback()})};return{add:$e,flush:Et}},to=function(ae,_e){return ae==null&&_e==null?!0:ae==null||_e==null?!1:ae.droppableId===_e.droppableId&&ae.index===_e.index},Jo=function(ae,_e){return ae==null&&_e==null?!0:ae==null||_e==null?!1:ae.draggableId===_e.draggableId&&ae.droppableId===_e.droppableId},Uo=function(ae,_e){if(ae===_e)return!0;var $e=ae.draggable.id===_e.draggable.id&&ae.draggable.droppableId===_e.draggable.droppableId&&ae.draggable.type===_e.draggable.type&&ae.draggable.index===_e.draggable.index,Et=ae.droppable.id===_e.droppable.id&&ae.droppable.type===_e.droppable.type;return $e&&Et},wo=function(ae,_e){Ri(),_e(),oa()},ts=function(ae,_e){return{draggableId:ae.draggable.id,type:ae.droppable.type,source:{droppableId:ae.droppable.id,index:ae.draggable.index},mode:_e}},Ia=function(ae,_e,$e,Et){if(!ae){$e(Et(_e));return}var qt=xo($e),ar={announce:qt};ae(_e,ar),qt.wasCalled()||$e(Et(_e))},Oo=function(ae,_e){var $e=bo(),Et=null,qt=function(bn,Gn){Et&&Ve(!1),wo("onBeforeCapture",function(){var Li=ae().onBeforeCapture;if(Li){var Mi={draggableId:bn,mode:Gn};Li(Mi)}})},ar=function(bn,Gn){Et&&Ve(!1),wo("onBeforeDragStart",function(){var Li=ae().onBeforeDragStart;Li&&Li(ts(bn,Gn))})},lr=function(bn,Gn){Et&&Ve(!1);var Li=ts(bn,Gn);Et={mode:Gn,lastCritical:bn,lastLocation:Li.source,lastCombine:null},$e.add(function(){wo("onDragStart",function(){return Ia(ae().onDragStart,Li,_e,be.onDragStart)})})},Gr=function(bn,Gn){var Li=ut(Gn),Mi=St(Gn);Et||Ve(!1);var da=!Uo(bn,Et.lastCritical);da&&(Et.lastCritical=bn);var $i=!to(Et.lastLocation,Li);$i&&(Et.lastLocation=Li);var Qa=!Jo(Et.lastCombine,Mi);if(Qa&&(Et.lastCombine=Mi),!da&&!$i&&!Qa)return;var ya=Object(m.a)({},ts(bn,Et.mode),{combine:Mi,destination:Li});$e.add(function(){wo("onDragUpdate",function(){return Ia(ae().onDragUpdate,ya,_e,be.onDragUpdate)})})},pn=function(){Et||Ve(!1),$e.flush()},zr=function(bn){Et||Ve(!1),Et=null,wo("onDragEnd",function(){return Ia(ae().onDragEnd,bn,_e,be.onDragEnd)})},Hr=function(){if(!Et)return;var bn=Object(m.a)({},ts(Et.lastCritical,Et.mode),{combine:null,destination:null,reason:"CANCEL"});zr(bn)};return{beforeCapture:qt,beforeStart:ar,start:lr,update:Gr,flush:pn,drop:zr,abort:Hr}},Io=function(ae,_e){var $e=Oo(ae,_e);return function(Et){return function(qt){return function(ar){if(ar.type==="BEFORE_INITIAL_CAPTURE"){$e.beforeCapture(ar.payload.draggableId,ar.payload.movementMode);return}if(ar.type==="INITIAL_PUBLISH"){var lr=ar.payload.critical;$e.beforeStart(lr,ar.payload.movementMode),qt(ar),$e.start(lr,ar.payload.movementMode);return}if(ar.type==="DROP_COMPLETE"){var Gr=ar.payload.completed.result;$e.flush(),qt(ar),$e.drop(Gr);return}if(qt(ar),ar.type==="FLUSH"){$e.abort();return}var pn=Et.getState();pn.phase==="DRAGGING"&&$e.update(pn.critical,pn.impact)}}}},os=function(ae){return function(_e){return function($e){if($e.type!=="DROP_ANIMATION_FINISHED"){_e($e);return}var Et=ae.getState();Et.phase==="DROP_ANIMATING"||Ve(!1),ae.dispatch(gi({completed:Et.completed}))}}},So=function(ae){var _e=null,$e=null;function Et(){$e&&(cancelAnimationFrame($e),$e=null),_e&&(_e(),_e=null)}return function(qt){return function(ar){if((ar.type==="FLUSH"||ar.type==="DROP_COMPLETE"||ar.type==="DROP_ANIMATION_FINISHED")&&Et(),qt(ar),ar.type!=="DROP_ANIMATE")return;var lr={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var pn=ae.getState();pn.phase==="DROP_ANIMATING"&&ae.dispatch(Ii())}};$e=requestAnimationFrame(function(){$e=null,_e=we(window,[lr])})}}},rs=function(ae){return function(){return function(_e){return function($e){($e.type==="DROP_COMPLETE"||$e.type==="FLUSH"||$e.type==="DROP_ANIMATE")&&ae.stopPublishing(),_e($e)}}}},Ho=function(ae){var _e=!1;return function(){return function($e){return function(Et){if(Et.type==="INITIAL_PUBLISH"){_e=!0,ae.tryRecordFocus(Et.payload.critical.draggable.id),$e(Et),ae.tryRestoreFocusRecorded();return}if($e(Et),!_e)return;if(Et.type==="FLUSH"){_e=!1,ae.tryRestoreFocusRecorded();return}if(Et.type==="DROP_COMPLETE"){_e=!1;var qt=Et.payload.completed.result;qt.combine&&ae.tryShiftRecord(qt.draggableId,qt.combine.draggableId),ae.tryRestoreFocusRecorded()}}}}},_o=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},uo=function(ae){return function(_e){return function($e){return function(Et){if(_o(Et)){ae.stop(),$e(Et);return}if(Et.type==="INITIAL_PUBLISH"){$e(Et);var qt=_e.getState();qt.phase==="DRAGGING"||Ve(!1),ae.start(qt);return}$e(Et),ae.scroll(_e.getState())}}}},Ha=function(ae){return function(_e){return function($e){if(_e($e),$e.type!=="PUBLISH_WHILE_DRAGGING")return;var Et=ae.getState();if(Et.phase!=="DROP_PENDING")return;if(Et.isWaiting)return;ae.dispatch(Fi({reason:Et.reason}))}}},vt=p.d,_r=function(ae){var _e=ae.dimensionMarshal,$e=ae.focusMarshal,Et=ae.styleMarshal,qt=ae.getResponders,ar=ae.announce,lr=ae.autoScroller;return Object(p.e)(ra,vt(Object(p.a)(zi(Et),rs(_e),Xi(_e),io,os,So,Ha,uo(lr),ao,Ho($e),Io(qt,ar))))},rn=function(){return{additions:{},removals:{},modified:{}}};function Jr(Ue){var ae=Ue.registry,_e=Ue.callbacks,$e=rn(),Et=null,qt=function(){if(Et)return;_e.collectionStarting(),Et=requestAnimationFrame(function(){Et=null,Ri();var zr=$e,Hr=zr.additions,un=zr.removals,bn=zr.modified,Gn=Object.keys(Hr).map(function(da){return ae.draggable.getById(da).getDimension(Te)}).sort(function(da,$i){return da.descriptor.index-$i.descriptor.index}),Li=Object.keys(bn).map(function(da){var $i=ae.droppable.getById(da),Qa=$i.callbacks.getScrollWhileDragging();return{droppableId:da,scroll:Qa}}),Mi={additions:Gn,removals:Object.keys(un),modified:Li};$e=rn(),oa(),_e.publish(Mi)})},ar=function(zr){var Hr=zr.descriptor.id;$e.additions[Hr]=zr,$e.modified[zr.descriptor.droppableId]=!0,$e.removals[Hr]&&delete $e.removals[Hr],qt()},lr=function(zr){var Hr=zr.descriptor;$e.removals[Hr.id]=!0,$e.modified[Hr.droppableId]=!0,$e.additions[Hr.id]&&delete $e.additions[Hr.id],qt()},Gr=function(){if(!Et)return;cancelAnimationFrame(Et),Et=null,$e=rn()};return{add:ar,remove:lr,stop:Gr}}var Jn=function(ae){var _e=ae.scrollHeight,$e=ae.scrollWidth,Et=ae.height,qt=ae.width,ar=fe({x:$e,y:_e},{x:qt,y:Et}),lr={x:Math.max(0,ar.x),y:Math.max(0,ar.y)};return lr},fn=function(){var ae=document.documentElement;return ae||Ve(!1),ae},Yr=function(){var ae=fn(),_e=Jn({scrollHeight:ae.scrollHeight,scrollWidth:ae.scrollWidth,width:ae.clientWidth,height:ae.clientHeight});return _e},ii=function(){var ae=oo(),_e=Yr(),$e=ae.y,Et=ae.x,qt=fn(),ar=qt.clientWidth,lr=qt.clientHeight,Gr=Et+ar,pn=$e+lr,zr=e({top:$e,left:Et,right:Gr,bottom:pn}),Hr={frame:zr,scroll:{initial:ae,current:ae,max:_e,diff:{value:Te,displacement:Te}}};return Hr},on=function(ae){var _e=ae.critical,$e=ae.scrollOptions,Et=ae.registry;Ri();var qt=ii(),ar=qt.scroll.current,lr=_e.droppable,Gr=Et.droppable.getAllByType(lr.type).map(function(un){return un.callbacks.getDimensionAndWatchScroll(ar,$e)}),pn=Et.draggable.getAllByType(_e.draggable.type).map(function(un){return un.getDimension(ar)}),zr={draggables:bt(pn),droppables:vr(Gr)};oa();var Hr={dimensions:zr,critical:_e,viewport:qt};return Hr};function zn(Ue,ae,_e){if(_e.descriptor.id===ae.id)return!1;if(_e.descriptor.type!==ae.type)return!1;var $e=Ue.droppable.getById(_e.descriptor.droppableId);return!($e.descriptor.mode!=="virtual")}var ui=function(ae,_e){var $e=null,Et=Jr({callbacks:{publish:_e.publishWhileDragging,collectionStarting:_e.collectionStarting},registry:ae}),qt=function(Gn,Li){if(ae.droppable.exists(Gn)||Ve(!1),!$e)return;_e.updateDroppableIsEnabled({id:Gn,isEnabled:Li})},ar=function(Gn,Li){if(!$e)return;ae.droppable.exists(Gn)||Ve(!1),_e.updateDroppableIsCombineEnabled({id:Gn,isCombineEnabled:Li})},lr=function(Gn,Li){if(!$e)return;ae.droppable.exists(Gn)||Ve(!1),_e.updateDroppableScroll({id:Gn,newScroll:Li})},Gr=function(Gn,Li){if(!$e)return;ae.droppable.getById(Gn).callbacks.scroll(Li)},pn=function(){if(!$e)return;Et.stop();var Gn=$e.critical.droppable;ae.droppable.getAllByType(Gn.type).forEach(function(Li){return Li.callbacks.dragStopped()}),$e.unsubscribe(),$e=null},zr=function(Gn){$e||Ve(!1);var Li=$e.critical.draggable;Gn.type==="ADDITION"&&(zn(ae,Li,Gn.value)&&Et.add(Gn.value)),Gn.type==="REMOVAL"&&(zn(ae,Li,Gn.value)&&Et.remove(Gn.value))},Hr=function(Gn){$e&&Ve(!1);var Li=ae.draggable.getById(Gn.draggableId),Mi=ae.droppable.getById(Li.descriptor.droppableId),da={draggable:Li.descriptor,droppable:Mi.descriptor},$i=ae.subscribe(zr);return $e={critical:da,unsubscribe:$i},on({critical:da,registry:ae,scrollOptions:Gn.scrollOptions})},un={updateDroppableIsEnabled:qt,updateDroppableIsCombineEnabled:ar,scrollDroppable:Gr,updateDroppableScroll:lr,startPublishing:Hr,stopPublishing:pn};return un},di=function(ae,_e){return ae.phase==="IDLE"?!0:ae.phase!=="DROP_ANIMATING"||ae.completed.result.draggableId===_e?!1:ae.completed.result.reason==="DROP"},li=function(ae){window.scrollBy(ae.x,ae.y)},Ti=I(function(Ue){return or(Ue).filter(function(ae){return ae.isEnabled?!!ae.frame:!1})}),vi=function(ae,_e){var $e=me(Ti(_e),function(Et){return Et.frame||Ve(!1),Tn(Et.frame.pageMarginBox)(ae)});return $e},yi=function(ae){var _e=ae.center,$e=ae.destination,Et=ae.droppables;if($e){var qt=Et[$e];return qt.frame?qt:null}var ar=vi(_e,Et);return ar},Ni={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ae){return Math.pow(ae,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ia=function(ae,_e){var $e=ae[_e.size]*Ni.startFromPercentage,Et=ae[_e.size]*Ni.maxScrollAtPercentage,qt={startScrollingFrom:$e,maxScrollValueAt:Et};return qt},Ki=function(ae){var _e=ae.startOfRange,$e=ae.endOfRange,Et=ae.current,qt=$e-_e;if(qt===0)return 0;var ar=Et-_e,lr=ar/qt;return lr},fa=1,Ya=function(ae,_e){if(ae>_e.startScrollingFrom)return 0;if(ae<=_e.maxScrollValueAt)return Ni.maxPixelScroll;if(ae===_e.startScrollingFrom)return fa;var $e=Ki({startOfRange:_e.maxScrollValueAt,endOfRange:_e.startScrollingFrom,current:ae}),Et=1-$e,qt=Ni.maxPixelScroll*Ni.ease(Et);return Math.ceil(qt)},Sa=Ni.durationDampening.accelerateAt,wa=Ni.durationDampening.stopDampeningAt,Da=function(ae,_e){var $e=_e,Et=wa,qt=Date.now(),ar=qt-$e;if(ar>=wa)return ae;if(ar<Sa)return fa;var lr=Ki({startOfRange:Sa,endOfRange:Et,current:ar}),Gr=ae*Ni.ease(lr);return Math.ceil(Gr)},ja=function(ae){var _e=ae.distanceToEdge,$e=ae.thresholds,Et=ae.dragStartTime,qt=ae.shouldUseTimeDampening,ar=Ya(_e,$e);return ar===0?0:qt?Math.max(Da(ar,Et),fa):ar},ko=function(ae){var _e=ae.container,$e=ae.distanceToEdges,Et=ae.dragStartTime,qt=ae.axis,ar=ae.shouldUseTimeDampening,lr=ia(_e,qt),Gr=$e[qt.end]<$e[qt.start];return Gr?ja({distanceToEdge:$e[qt.end],thresholds:lr,dragStartTime:Et,shouldUseTimeDampening:ar}):-1*ja({distanceToEdge:$e[qt.start],thresholds:lr,dragStartTime:Et,shouldUseTimeDampening:ar})},ro=function(ae){var _e=ae.container,$e=ae.subject,Et=ae.proposedScroll,qt=$e.height>_e.height,ar=$e.width>_e.width;return!ar&&!qt?Et:ar&&qt?null:{x:ar?0:Et.x,y:qt?0:Et.y}},pa=He(function(Ue){return Ue===0?0:Ue}),Ea=function(ae){var _e=ae.dragStartTime,$e=ae.container,Et=ae.subject,qt=ae.center,ar=ae.shouldUseTimeDampening,lr={top:qt.y-$e.top,right:$e.right-qt.x,bottom:$e.bottom-qt.y,left:qt.x-$e.left},Gr=ko({container:$e,distanceToEdges:lr,dragStartTime:_e,axis:Rn,shouldUseTimeDampening:ar}),pn=ko({container:$e,distanceToEdges:lr,dragStartTime:_e,axis:Zt,shouldUseTimeDampening:ar}),zr=pa({x:pn,y:Gr});if(xe(zr,Te))return null;var Hr=ro({container:$e,subject:Et,proposedScroll:zr});return Hr?xe(Hr,Te)?null:Hr:null},Fa=He(function(Ue){return Ue===0?0:Ue>0?1:-1}),Ka=function(){var Ue=function(_e,$e){return _e<0?_e:_e>$e?_e-$e:0};return function(ae){var _e=ae.current,$e=ae.max,Et=ae.change,qt=Be(_e,Et),ar={x:Ue(qt.x,$e.x),y:Ue(qt.y,$e.y)};return xe(ar,Te)?null:ar}}(),lo=function(ae){var _e=ae.max,$e=ae.current,Et=ae.change,qt={x:Math.max($e.x,_e.x),y:Math.max($e.y,_e.y)},ar=Fa(Et),lr=Ka({max:qt,current:$e,change:ar});return lr?ar.x!==0&&lr.x===0?!0:ar.y!==0&&lr.y===0:!0},so=function(ae,_e){return lo({current:ae.scroll.current,max:ae.scroll.max,change:_e})},To=function(ae,_e){if(!so(ae,_e))return null;var $e=ae.scroll.max,Et=ae.scroll.current;return Ka({current:Et,max:$e,change:_e})},Lo=function(ae,_e){var $e=ae.frame;return $e?lo({current:$e.scroll.current,max:$e.scroll.max,change:_e}):!1},is=function(ae,_e){var $e=ae.frame;return $e&&Lo(ae,_e)?Ka({current:$e.scroll.current,max:$e.scroll.max,change:_e}):null},cs=function(ae){var _e=ae.viewport,$e=ae.subject,Et=ae.center,qt=ae.dragStartTime,ar=ae.shouldUseTimeDampening,lr=Ea({dragStartTime:qt,container:_e.frame,subject:$e,center:Et,shouldUseTimeDampening:ar});return lr&&so(_e,lr)?lr:null},Rs=function(ae){var _e=ae.droppable,$e=ae.subject,Et=ae.center,qt=ae.dragStartTime,ar=ae.shouldUseTimeDampening,lr=_e.frame;if(!lr)return null;var Gr=Ea({dragStartTime:qt,container:lr.pageMarginBox,subject:$e,center:Et,shouldUseTimeDampening:ar});return Gr&&Lo(_e,Gr)?Gr:null},Ko=function(ae){var _e=ae.state,$e=ae.dragStartTime,Et=ae.shouldUseTimeDampening,qt=ae.scrollWindow,ar=ae.scrollDroppable,lr=_e.current.page.borderBoxCenter,Gr=_e.dimensions.draggables[_e.critical.draggable.id],pn=Gr.page.marginBox;if(_e.isWindowScrollAllowed){var zr=_e.viewport,Hr=cs({dragStartTime:$e,viewport:zr,subject:pn,center:lr,shouldUseTimeDampening:Et});if(Hr){qt(Hr);return}}var un=yi({center:lr,destination:ti(_e.impact),droppables:_e.dimensions.droppables});if(!un)return;var bn=Rs({dragStartTime:$e,droppable:un,subject:pn,center:lr,shouldUseTimeDampening:Et});bn&&ar(un.descriptor.id,bn)},as=function(ae){var _e=ae.scrollWindow,$e=ae.scrollDroppable,Et=M(_e),qt=M($e),ar=null,lr=function(Hr){ar||Ve(!1);var un=ar,bn=un.shouldUseTimeDampening,Gn=un.dragStartTime;Ko({state:Hr,scrollWindow:Et,scrollDroppable:qt,dragStartTime:Gn,shouldUseTimeDampening:bn})},Gr=function(Hr){Ri(),ar&&Ve(!1);var un=Date.now(),bn=!1,Gn=function(){bn=!0};Ko({state:Hr,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Gn,scrollDroppable:Gn}),ar={dragStartTime:un,shouldUseTimeDampening:bn},oa(),bn&&lr(Hr)},pn=function(){if(!ar)return;Et.cancel(),qt.cancel(),ar=null};return{start:Gr,stop:pn,scroll:lr}},co=function(ae){var _e=ae.move,$e=ae.scrollDroppable,Et=ae.scrollWindow,qt=function(zr,Hr){var un=Be(zr.current.client.selection,Hr);_e({client:un})},ar=function(zr,Hr){if(!Lo(zr,Hr))return Hr;var un=is(zr,Hr);if(!un)return $e(zr.descriptor.id,Hr),null;var bn=fe(Hr,un);$e(zr.descriptor.id,bn);var Gn=fe(Hr,bn);return Gn},lr=function(zr,Hr,un){if(!zr)return un;if(!so(Hr,un))return un;var bn=To(Hr,un);if(!bn)return Et(un),null;var Gn=fe(un,bn);Et(Gn);var Li=fe(un,Gn);return Li},Gr=function(zr){var Hr=zr.scrollJumpRequest;if(!Hr)return;var un=ti(zr.impact);un||Ve(!1);var bn=ar(zr.dimensions.droppables[un],Hr);if(!bn)return;var Gn=zr.viewport,Li=lr(zr.isWindowScrollAllowed,Gn,bn);if(!Li)return;qt(zr,Li)};return Gr},Ao=function(ae){var _e=ae.scrollDroppable,$e=ae.scrollWindow,Et=ae.move,qt=as({scrollWindow:$e,scrollDroppable:_e}),ar=co({move:Et,scrollWindow:$e,scrollDroppable:_e}),lr=function(zr){if(zr.phase!=="DRAGGING")return;if(zr.movementMode==="FLUID"){qt.scroll(zr);return}if(!zr.scrollJumpRequest)return;ar(zr)},Gr={scroll:lr,start:qt.start,stop:qt.stop};return Gr},$a="data-rbd",ss=function(){var Ue=$a+"-drag-handle";return{base:Ue,draggableId:Ue+"-draggable-id",contextId:Ue+"-context-id"}}(),_s=function(){var Ue=$a+"-draggable";return{base:Ue,contextId:Ue+"-context-id",id:Ue+"-id"}}(),Fo=function(){var Ue=$a+"-droppable";return{base:Ue,contextId:Ue+"-context-id",id:Ue+"-id"}}(),il={contextId:$a+"-scroll-container-context-id"},Eo=function(ae){return function(_e){return"["+_e+'="'+ae+'"]'}},zo=function(ae,_e){return ae.map(function($e){var Et=$e.styles[_e];return Et?$e.selector+" { "+Et+" }":""}).join(" ")},Fs="pointer-events: none;",ms=function(ae){var _e=Eo(ae),$e=function(){var Gr=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:_e(ss.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Gr,dragging:Fs,dropAnimating:Gr}}}(),Et=function(){var Gr=`
transition: `+na.outOfTheWay+`;
`;return{selector:_e(_s.contextId),styles:{dragging:Gr,dropAnimating:Gr,userCancel:Gr}}}(),qt={selector:_e(Fo.contextId),styles:{always:"overflow-anchor: none;"}},ar={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;
`}},lr=[Et,$e,qt,ar];return{always:zo(lr,"always"),resting:zo(lr,"resting"),dragging:zo(lr,"dragging"),dropAnimating:zo(lr,"dropAnimating"),userCancel:zo(lr,"userCancel")}},hs=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,Sn=function(){var ae=document.querySelector("head");return ae||Ve(!1),ae},Ns=function(ae){var _e=document.createElement("style");return ae&&_e.setAttribute("nonce",ae),_e.type="text/css",_e};function Ll(Ue,ae){var _e=i(function(){return ms(Ue)},[Ue]),$e=Object(y.useRef)(null),Et=Object(y.useRef)(null),qt=t(I(function(Hr){var un=Et.current;un||Ve(!1),un.textContent=Hr}),[]),ar=t(function(Hr){var un=$e.current;un||Ve(!1),un.textContent=Hr},[]);hs(function(){!$e.current&&!Et.current||Ve(!1);var Hr=Ns(ae),un=Ns(ae);return $e.current=Hr,Et.current=un,Hr.setAttribute($a+"-always",Ue),un.setAttribute($a+"-dynamic",Ue),Sn().appendChild(Hr),Sn().appendChild(un),ar(_e.always),qt(_e.resting),function(){var bn=function(Li){var Mi=Li.current;Mi||Ve(!1),Sn().removeChild(Mi),Li.current=null};bn($e),bn(Et)}},[ae,ar,qt,_e.always,_e.resting,Ue]);var lr=t(function(){return qt(_e.dragging)},[qt,_e.dragging]),Gr=t(function(Hr){if(Hr==="DROP"){qt(_e.dropAnimating);return}qt(_e.userCancel)},[qt,_e.dropAnimating,_e.userCancel]),pn=t(function(){if(!Et.current)return;qt(_e.resting)},[qt,_e.resting]),zr=i(function(){return{dragging:lr,dropping:Gr,resting:pn}},[lr,Gr,pn]);return zr}var el=function(ae){return ae&&ae.ownerDocument?ae.ownerDocument.defaultView:window};function Gs(Ue){return Ue instanceof el(Ue).HTMLElement}function ds(Ue,ae){var _e="["+ss.contextId+'="'+Ue+'"]',$e=Kt(document.querySelectorAll(_e));if(!$e.length)return null;var Et=me($e,function(qt){return qt.getAttribute(ss.draggableId)===ae});return Et&&Gs(Et)?Et:null}function ks(Ue){var ae=Object(y.useRef)({}),_e=Object(y.useRef)(null),$e=Object(y.useRef)(null),Et=Object(y.useRef)(!1),qt=t(function(un,bn){var Gn={id:un,focus:bn};return ae.current[un]=Gn,function(){var Mi=ae.current,da=Mi[un];da!==Gn&&delete Mi[un]}},[]),ar=t(function(un){var bn=ds(Ue,un);bn&&bn!==document.activeElement&&bn.focus()},[Ue]),lr=t(function(un,bn){_e.current===un&&(_e.current=bn)},[]),Gr=t(function(){if($e.current)return;if(!Et.current)return;$e.current=requestAnimationFrame(function(){$e.current=null;var un=_e.current;un&&ar(un)})},[ar]),pn=t(function(un){_e.current=null;var bn=document.activeElement;if(!bn)return;if(bn.getAttribute(ss.draggableId)!==un)return;_e.current=un},[]);hs(function(){return Et.current=!0,function(){Et.current=!1;var un=$e.current;un&&cancelAnimationFrame(un)}},[]);var zr=i(function(){return{register:qt,tryRecordFocus:pn,tryRestoreFocusRecorded:Gr,tryShiftRecord:lr}},[qt,pn,Gr,lr]);return zr}function Qs(){var Ue={draggables:{},droppables:{}},ae=[];function _e(Hr){return ae.push(Hr),function(){var bn=ae.indexOf(Hr);if(bn===-1)return;ae.splice(bn,1)}}function $e(Hr){ae.length&&ae.forEach(function(un){return un(Hr)})}function Et(Hr){return Ue.draggables[Hr]||null}function qt(Hr){var un=Et(Hr);return un||Ve(!1),un}var ar={register:function(un){Ue.draggables[un.descriptor.id]=un,$e({type:"ADDITION",value:un})},update:function(un,bn){var Gn=Ue.draggables[bn.descriptor.id];if(!Gn)return;if(Gn.uniqueId!==un.uniqueId)return;delete Ue.draggables[bn.descriptor.id],Ue.draggables[un.descriptor.id]=un},unregister:function(un){var bn=un.descriptor.id,Gn=Et(bn);if(!Gn)return;if(un.uniqueId!==Gn.uniqueId)return;delete Ue.draggables[bn],$e({type:"REMOVAL",value:un})},getById:qt,findById:Et,exists:function(un){return Boolean(Et(un))},getAllByType:function(un){return ct(Ue.draggables).filter(function(bn){return bn.descriptor.type===un})}};function lr(Hr){return Ue.droppables[Hr]||null}function Gr(Hr){var un=lr(Hr);return un||Ve(!1),un}var pn={register:function(un){Ue.droppables[un.descriptor.id]=un},unregister:function(un){var bn=lr(un.descriptor.id);if(!bn)return;if(un.uniqueId!==bn.uniqueId)return;delete Ue.droppables[un.descriptor.id]},getById:Gr,findById:lr,exists:function(un){return Boolean(lr(un))},getAllByType:function(un){return ct(Ue.droppables).filter(function(bn){return bn.descriptor.type===un})}};function zr(){Ue.draggables={},Ue.droppables={},ae.length=0}return{draggable:ar,droppable:pn,subscribe:_e,clean:zr}}function tl(){var Ue=i(Qs,[]);return Object(y.useEffect)(function(){return function(){requestAnimationFrame(Ue.clean)}},[Ue]),Ue}var Ss=g.a.createContext(null),Bs=function(){var ae=document.body;return ae||Ve(!1),ae},al={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Js=function(ae){return"rbd-announcement-"+ae};function Vo(Ue){var ae=i(function(){return Js(Ue)},[Ue]),_e=Object(y.useRef)(null);Object(y.useEffect)(function(){var qt=document.createElement("div");return _e.current=qt,qt.id=ae,qt.setAttribute("aria-live","assertive"),qt.setAttribute("aria-atomic","true"),Object(m.a)(qt.style,al),Bs().appendChild(qt),function(){setTimeout(function(){var Gr=Bs();Gr.contains(qt)&&Gr.removeChild(qt),qt===_e.current&&(_e.current=null)})}},[ae]);var $e=t(function(Et){var qt=_e.current;if(qt){qt.textContent=Et;return}},[]);return $e}var No=0,fs={separator:"::"};function Ds(){No=0}function go(Ue,ae){return ae===void 0&&(ae=fs),i(function(){return""+Ue+ae.separator+No++},[ae.separator,Ue])}function zt(Ue){var ae=Ue.contextId,_e=Ue.uniqueId;return"rbd-hidden-text-"+ae+"-"+_e}function ur(Ue){var ae=Ue.contextId,_e=Ue.text,$e=go("hidden-text",{separator:"-"}),Et=i(function(){return zt({contextId:ae,uniqueId:$e})},[$e,ae]);return Object(y.useEffect)(function(){var ar=document.createElement("div");return ar.id=Et,ar.textContent=_e,ar.style.display="none",Bs().appendChild(ar),function(){var Gr=Bs();Gr.contains(ar)&&Gr.removeChild(ar)}},[Et,_e]),Et}var Dn=g.a.createContext(null),fi={react:"^16.8.5","react-dom":"^16.8.5"},Mt=/(\d+)\.(\d+)\.(\d+)/,ce=function(ae){var _e=Mt.exec(ae);_e!=null||Ve(!1);var $e=Number(_e[1]),Et=Number(_e[2]),qt=Number(_e[3]);return{major:$e,minor:Et,patch:qt,raw:ae}},Se=function(ae,_e){return _e.major>ae.major?!0:_e.major<ae.major?!1:_e.minor>ae.minor?!0:_e.minor<ae.minor?!1:_e.patch>=ae.patch},Ie=function(ae,_e){var $e=ce(ae),Et=ce(_e);if(Se($e,Et))return},Je=`
We expect a html5 doctype: <!doctype html>
This is to ensure consistent browser layout and measurement
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
`,Pt=function(ae){var _e=ae.doctype;if(!_e)return;_e.name.toLowerCase()!=="html",_e.publicId!==""};function cr(Ue){}function Zr(Ue,ae){cr(function(){Object(y.useEffect)(function(){try{Ue()}catch(_e){q(`
A setup problem was encountered.
> `+_e.message+`
`)}},ae)})}function vn(){Zr(function(){Ie(fi.react,g.a.version),Pt(document)},[])}function kn(Ue){var ae=Object(y.useRef)(Ue);return Object(y.useEffect)(function(){ae.current=Ue}),ae}function ci(){var Ue=null;function ae(){return Boolean(Ue)}function _e(ar){return ar===Ue}function $e(ar){Ue&&Ve(!1);var lr={abandon:ar};return Ue=lr,lr}function Et(){Ue||Ve(!1),Ue=null}function qt(){Ue&&(Ue.abandon(),Et())}return{isClaimed:ae,isActive:_e,claim:$e,release:Et,tryAbandon:qt}}var Si=9,Ai=13,Qi=27,sa=32,Ua=33,no=34,Wo=35,Zo=36,Bo=37,Es=38,As=39,$o=40,Do,vo=(Do={},Do[Ai]=!0,Do[Si]=!0,Do),Ms=function(ae){vo[ae.keyCode]&&ae.preventDefault()},rl=function(){var Ue="visibilitychange";if(typeof document=="undefined")return Ue;var ae=[Ue,"ms"+Ue,"webkit"+Ue,"moz"+Ue,"o"+Ue],_e=me(ae,function($e){return"on"+$e in document});return _e||Ue}(),gs=0,Ra=5;function dl(Ue,ae){return Math.abs(ae.x-Ue.x)>=Ra||Math.abs(ae.y-Ue.y)>=Ra}var fl={type:"IDLE"};function Us(Ue){var ae=Ue.cancel,_e=Ue.completed,$e=Ue.getPhase,Et=Ue.setPhase;return[{eventName:"mousemove",fn:function(ar){var lr=ar.button,Gr=ar.clientX,pn=ar.clientY;if(lr!==gs)return;var zr={x:Gr,y:pn},Hr=$e();if(Hr.type==="DRAGGING"){ar.preventDefault(),Hr.actions.move(zr);return}Hr.type==="PENDING"||Ve(!1);var un=Hr.point;if(!dl(un,zr))return;ar.preventDefault();var bn=Hr.actions.fluidLift(zr);Et({type:"DRAGGING",actions:bn})}},{eventName:"mouseup",fn:function(ar){var lr=$e();if(lr.type!=="DRAGGING"){ae();return}ar.preventDefault(),lr.actions.drop({shouldBlockNextClick:!0}),_e()}},{eventName:"mousedown",fn:function(ar){$e().type==="DRAGGING"&&ar.preventDefault(),ae()}},{eventName:"keydown",fn:function(ar){var lr=$e();if(lr.type==="PENDING"){ae();return}if(ar.keyCode===Qi){ar.preventDefault(),ae();return}Ms(ar)}},{eventName:"resize",fn:ae},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){$e().type==="PENDING"&&ae()}},{eventName:"webkitmouseforcedown",fn:function(ar){var lr=$e();if(lr.type!=="IDLE"||Ve(!1),lr.actions.shouldRespectForcePress()){ae();return}ar.preventDefault()}},{eventName:rl,fn:ae}]}function Os(Ue){var ae=Object(y.useRef)(fl),_e=Object(y.useRef)(se),$e=i(function(){return{eventName:"mousedown",fn:function(Hr){if(Hr.defaultPrevented)return;if(Hr.button!==gs)return;if(Hr.ctrlKey||Hr.metaKey||Hr.shiftKey||Hr.altKey)return;var un=Ue.findClosestDraggableId(Hr);if(!un)return;var bn=Ue.tryGetLock(un,ar,{sourceEvent:Hr});if(!bn)return;Hr.preventDefault();var Gn={x:Hr.clientX,y:Hr.clientY};_e.current(),pn(bn,Gn)}}},[Ue]),Et=i(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Hr){if(Hr.defaultPrevented)return;var un=Ue.findClosestDraggableId(Hr);if(!un)return;var bn=Ue.findOptionsForDraggable(un);if(!bn)return;if(bn.shouldRespectForcePress)return;if(!Ue.canGetLock(un))return;Hr.preventDefault()}}},[Ue]),qt=t(function(){var Hr={passive:!1,capture:!0};_e.current=we(window,[Et,$e],Hr)},[Et,$e]),ar=t(function(){var zr=ae.current;if(zr.type==="IDLE")return;ae.current=fl,_e.current(),qt()},[qt]),lr=t(function(){var zr=ae.current;ar(),zr.type==="DRAGGING"&&zr.actions.cancel({shouldBlockNextClick:!0}),zr.type==="PENDING"&&zr.actions.abort()},[ar]),Gr=t(function(){var Hr={capture:!0,passive:!1},un=Us({cancel:lr,completed:ar,getPhase:function(){return ae.current},setPhase:function(Gn){ae.current=Gn}});_e.current=we(window,un,Hr)},[lr,ar]),pn=t(function(Hr,un){ae.current.type==="IDLE"||Ve(!1),ae.current={type:"PENDING",point:un,actions:Hr},Gr()},[Gr]);hs(function(){return qt(),function(){_e.current()}},[qt])}var Xs;function Ql(){}var Ul=(Xs={},Xs[no]=!0,Xs[Ua]=!0,Xs[Zo]=!0,Xs[Wo]=!0,Xs);function wl(Ue,ae){function _e(){ae(),Ue.cancel()}function $e(){ae(),Ue.drop()}return[{eventName:"keydown",fn:function(qt){if(qt.keyCode===Qi){qt.preventDefault(),_e();return}if(qt.keyCode===sa){qt.preventDefault(),$e();return}if(qt.keyCode===$o){qt.preventDefault(),Ue.moveDown();return}if(qt.keyCode===Es){qt.preventDefault(),Ue.moveUp();return}if(qt.keyCode===As){qt.preventDefault(),Ue.moveRight();return}if(qt.keyCode===Bo){qt.preventDefault(),Ue.moveLeft();return}if(Ul[qt.keyCode]){qt.preventDefault();return}Ms(qt)}},{eventName:"mousedown",fn:_e},{eventName:"mouseup",fn:_e},{eventName:"click",fn:_e},{eventName:"touchstart",fn:_e},{eventName:"resize",fn:_e},{eventName:"wheel",fn:_e,options:{passive:!0}},{eventName:rl,fn:_e}]}function Cs(Ue){var ae=Object(y.useRef)(Ql),_e=i(function(){return{eventName:"keydown",fn:function(qt){if(qt.defaultPrevented)return;if(qt.keyCode!==sa)return;var ar=Ue.findClosestDraggableId(qt);if(!ar)return;var lr=Ue.tryGetLock(ar,zr,{sourceEvent:qt});if(!lr)return;qt.preventDefault();var Gr=!0,pn=lr.snapLift();ae.current();function zr(){Gr||Ve(!1),Gr=!1,ae.current(),$e()}ae.current=we(window,wl(pn,zr),{capture:!0,passive:!1})}}},[Ue]),$e=t(function(){var qt={passive:!1,capture:!0};ae.current=we(window,[_e],qt)},[_e]);hs(function(){return $e(),function(){ae.current()}},[$e])}var Ws={type:"IDLE"},Cl=120,pl=.15;function jo(Ue){var ae=Ue.cancel,_e=Ue.getPhase;return[{eventName:"orientationchange",fn:ae},{eventName:"resize",fn:ae},{eventName:"contextmenu",fn:function(Et){Et.preventDefault()}},{eventName:"keydown",fn:function(Et){if(_e().type!=="DRAGGING"){ae();return}Et.keyCode===Qi&&Et.preventDefault(),ae()}},{eventName:rl,fn:ae}]}function yo(Ue){var ae=Ue.cancel,_e=Ue.completed,$e=Ue.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(qt){var ar=$e();if(ar.type!=="DRAGGING"){ae();return}ar.hasMoved=!0;var lr=qt.touches[0],Gr=lr.clientX,pn=lr.clientY,zr={x:Gr,y:pn};qt.preventDefault(),ar.actions.move(zr)}},{eventName:"touchend",fn:function(qt){var ar=$e();if(ar.type!=="DRAGGING"){ae();return}qt.preventDefault(),ar.actions.drop({shouldBlockNextClick:!0}),_e()}},{eventName:"touchcancel",fn:function(qt){if($e().type!=="DRAGGING"){ae();return}qt.preventDefault(),ae()}},{eventName:"touchforcechange",fn:function(qt){var ar=$e();ar.type!=="IDLE"||Ve(!1);var lr=qt.touches[0];if(!lr)return;var Gr=lr.force>=pl;if(!Gr)return;var pn=ar.actions.shouldRespectForcePress();if(ar.type==="PENDING"){pn&&ae();return}if(pn){if(ar.hasMoved){qt.preventDefault();return}ae();return}qt.preventDefault()}},{eventName:rl,fn:ae}]}function qo(Ue){var ae=Object(y.useRef)(Ws),_e=Object(y.useRef)(se),$e=t(function(){return ae.current},[]),Et=t(function(bn){ae.current=bn},[]),qt=i(function(){return{eventName:"touchstart",fn:function(bn){if(bn.defaultPrevented)return;var Gn=Ue.findClosestDraggableId(bn);if(!Gn)return;var Li=Ue.tryGetLock(Gn,lr,{sourceEvent:bn});if(!Li)return;var Mi=bn.touches[0],da=Mi.clientX,$i=Mi.clientY,Qa={x:da,y:$i};_e.current(),Hr(Li,Qa)}}},[Ue]),ar=t(function(){var bn={capture:!0,passive:!1};_e.current=we(window,[qt],bn)},[qt]),lr=t(function(){var un=ae.current;if(un.type==="IDLE")return;un.type==="PENDING"&&clearTimeout(un.longPressTimerId),Et(Ws),_e.current(),ar()},[ar,Et]),Gr=t(function(){var un=ae.current;lr(),un.type==="DRAGGING"&&un.actions.cancel({shouldBlockNextClick:!0}),un.type==="PENDING"&&un.actions.abort()},[lr]),pn=t(function(){var bn={capture:!0,passive:!1},Gn={cancel:Gr,completed:lr,getPhase:$e},Li=we(window,yo(Gn),bn),Mi=we(window,jo(Gn),bn);_e.current=function(){Li(),Mi()}},[Gr,$e,lr]),zr=t(function(){var bn=$e();bn.type==="PENDING"||Ve(!1);var Gn=bn.actions.fluidLift(bn.point);Et({type:"DRAGGING",actions:Gn,hasMoved:!1})},[$e,Et]),Hr=t(function(bn,Gn){$e().type==="IDLE"||Ve(!1);var Li=setTimeout(zr,Cl);Et({type:"PENDING",point:Gn,actions:bn,longPressTimerId:Li}),pn()},[pn,$e,Et,zr]);hs(function(){return ar(),function(){_e.current();var Gn=$e();Gn.type==="PENDING"&&(clearTimeout(Gn.longPressTimerId),Et(Ws))}},[$e,ar,Et]),hs(function(){var bn=we(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return bn},[])}function ps(Ue){cr(function(){var ae=kn(Ue);Zr(function(){ae.current.length===Ue.length||Ve(!1)})})}var Is={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function es(Ue,ae){if(ae==null)return!1;var _e=Boolean(Is[ae.tagName.toLowerCase()]);if(_e)return!0;var $e=ae.getAttribute("contenteditable");return $e==="true"||$e===""?!0:ae===Ue?!1:es(Ue,ae.parentElement)}function Ls(Ue,ae){var _e=ae.target;return Gs(_e)?es(Ue,_e):!1}var Ps=function(ae){return e(ae.getBoundingClientRect()).center};function ml(Ue){return Ue instanceof el(Ue).Element}var Rl=function(){var Ue="matches";if(typeof document=="undefined")return Ue;var ae=[Ue,"msMatchesSelector","webkitMatchesSelector"],_e=me(ae,function($e){return $e in Element.prototype});return _e||Ue}();function _l(Ue,ae){return Ue==null?null:Ue[Rl](ae)?Ue:_l(Ue.parentElement,ae)}function Bl(Ue,ae){return Ue.closest?Ue.closest(ae):_l(Ue,ae)}function jl(Ue){return"["+ss.contextId+'="'+Ue+'"]'}function kl(Ue,ae){var _e=ae.target;if(!ml(_e))return null;var $e=jl(Ue),Et=Bl(_e,$e);return Et&&Gs(Et)?Et:null}function Xl(Ue,ae){var _e=kl(Ue,ae);return _e?_e.getAttribute(ss.draggableId):null}function ol(Ue,ae){var _e="["+_s.contextId+'="'+Ue+'"]',$e=Kt(document.querySelectorAll(_e)),Et=me($e,function(qt){return qt.getAttribute(_s.id)===ae});return Et&&Gs(Et)?Et:null}function Ys(Ue){Ue.preventDefault()}function sl(Ue){var ae=Ue.expected,_e=Ue.phase,$e=Ue.isLockActive,Et=Ue.shouldWarn;return $e()?!(ae!==_e):!1}function nl(Ue){var ae=Ue.lockAPI,_e=Ue.store,$e=Ue.registry,Et=Ue.draggableId;if(ae.isClaimed())return!1;var qt=$e.draggable.findById(Et);return qt&&qt.options.isEnabled?!!di(_e.getState(),Et):!1}function Sl(Ue){var ae=Ue.lockAPI,_e=Ue.contextId,$e=Ue.store,Et=Ue.registry,qt=Ue.draggableId,ar=Ue.forceSensorStop,lr=Ue.sourceEvent,Gr=nl({lockAPI:ae,store:$e,registry:Et,draggableId:qt});if(!Gr)return null;var pn=Et.draggable.getById(qt),zr=ol(_e,pn.descriptor.id);if(!zr)return null;if(lr&&!pn.options.canDragInteractiveElements&&Ls(zr,lr))return null;var Hr=ae.claim(ar||se),un="PRE_DRAG";function bn(){return pn.options.shouldRespectForcePress}function Gn(){return ae.isActive(Hr)}function Li(za,Xo){sl({expected:za,phase:un,isLockActive:Gn,shouldWarn:!0})&&$e.dispatch(Xo())}var Mi=Li.bind(null,"DRAGGING");function da(za){function Xo(){ae.release(),un="COMPLETED"}un!=="PRE_DRAG"&&(Xo(),un==="PRE_DRAG"||Ve(!1)),$e.dispatch(Er(za.liftActionArgs)),un="DRAGGING";function ls(N,B){if(B===void 0&&(B={shouldBlockNextClick:!1}),za.cleanup(),B.shouldBlockNextClick){var ie=we(window,[{eventName:"click",fn:Ys,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ie)}Xo(),$e.dispatch(Fi({reason:N}))}return Object(m.a)({isActive:function(){return sl({expected:"DRAGGING",phase:un,isLockActive:Gn,shouldWarn:!1})},shouldRespectForcePress:bn,drop:function(B){return ls("DROP",B)},cancel:function(B){return ls("CANCEL",B)}},za.actions)}function $i(za){var Xo=M(function(N){Mi(function(){return Nt({client:N})})}),ls=da({liftActionArgs:{id:qt,clientSelection:za,movementMode:"FLUID"},cleanup:function(){return Xo.cancel()},actions:{move:Xo}});return Object(m.a)({},ls,{move:Xo})}function Qa(){var za={moveUp:function(){return Mi(an)},moveRight:function(){return Mi(Nn)},moveDown:function(){return Mi(Cn)},moveLeft:function(){return Mi(En)}};return da({liftActionArgs:{id:qt,clientSelection:Ps(zr),movementMode:"SNAP"},cleanup:se,actions:za})}function ya(){var za=sl({expected:"PRE_DRAG",phase:un,isLockActive:Gn,shouldWarn:!0});za&&ae.release()}var fo={isActive:function(){return sl({expected:"PRE_DRAG",phase:un,isLockActive:Gn,shouldWarn:!1})},shouldRespectForcePress:bn,fluidLift:$i,snapLift:Qa,abort:ya};return fo}var Ml=[Os,Cs,qo];function Wl(Ue){var ae=Ue.contextId,_e=Ue.store,$e=Ue.registry,Et=Ue.customSensors,qt=Ue.enableDefaultSensors,ar=[].concat(qt?Ml:[],Et||[]),lr=Object(y.useState)(function(){return ci()})[0],Gr=t(function($i,Qa){$i.isDragging&&!Qa.isDragging&&lr.tryAbandon()},[lr]);hs(function(){var $i=_e.getState(),Qa=_e.subscribe(function(){var ya=_e.getState();Gr($i,ya),$i=ya});return Qa},[lr,_e,Gr]),hs(function(){return lr.tryAbandon},[lr.tryAbandon]);var pn=t(function(da){return nl({lockAPI:lr,registry:$e,store:_e,draggableId:da})},[lr,$e,_e]),zr=t(function(da,$i,Qa){return Sl({lockAPI:lr,registry:$e,contextId:ae,store:_e,draggableId:da,forceSensorStop:$i,sourceEvent:Qa&&Qa.sourceEvent?Qa.sourceEvent:null})},[ae,lr,$e,_e]),Hr=t(function(da){return Xl(ae,da)},[ae]),un=t(function(da){var $i=$e.draggable.findById(da);return $i?$i.options:null},[$e.draggable]),bn=t(function(){if(!lr.isClaimed())return;lr.tryAbandon(),_e.getState().phase!=="IDLE"&&_e.dispatch(ei())},[lr,_e]),Gn=t(lr.isClaimed,[lr]),Li=i(function(){return{canGetLock:pn,tryGetLock:zr,findClosestDraggableId:Hr,findOptionsForDraggable:un,tryReleaseLock:bn,isLockClaimed:Gn}},[pn,zr,Hr,un,bn,Gn]);ps(ar);for(var Mi=0;Mi<ar.length;Mi++)ar[Mi](Li)}var au=function(ae){return{onBeforeCapture:ae.onBeforeCapture,onBeforeDragStart:ae.onBeforeDragStart,onDragStart:ae.onDragStart,onDragEnd:ae.onDragEnd,onDragUpdate:ae.onDragUpdate}};function Nl(Ue){return Ue.current||Ve(!1),Ue.current}function $l(Ue){var ae=Ue.contextId,_e=Ue.setCallbacks,$e=Ue.sensors,Et=Ue.nonce,qt=Ue.dragHandleUsageInstructions,ar=Object(y.useRef)(null);vn();var lr=kn(Ue),Gr=t(function(){return au(lr.current)},[lr]),pn=Vo(ae),zr=ur({contextId:ae,text:qt}),Hr=Ll(ae,Et),un=t(function(N){Nl(ar).dispatch(N)},[]),bn=i(function(){return Object(p.b)({publishWhileDragging:gr,updateDroppableScroll:Xr,updateDroppableIsEnabled:cn,updateDroppableIsCombineEnabled:Un,collectionStarting:Pr},un)},[un]),Gn=tl(),Li=i(function(){return ui(Gn,bn)},[Gn,bn]),Mi=i(function(){return Ao(Object(m.a)({scrollWindow:li,scrollDroppable:Li.scrollDroppable},Object(p.b)({move:Nt},un)))},[Li.scrollDroppable,un]),da=ks(ae),$i=i(function(){return _r({announce:pn,autoScroller:Mi,dimensionMarshal:Li,focusMarshal:da,getResponders:Gr,styleMarshal:Hr})},[pn,Mi,Li,da,Gr,Hr]);ar.current=$i;var Qa=t(function(){var N=Nl(ar),B=N.getState();B.phase!=="IDLE"&&N.dispatch(ei())},[]),ya=t(function(){var N=Nl(ar).getState();return N.isDragging||N.phase==="DROP_ANIMATING"},[]),fo=i(function(){return{isDragging:ya,tryAbort:Qa}},[ya,Qa]);_e(fo);var za=t(function(N){return di(Nl(ar).getState(),N)},[]),Xo=t(function(){return en(Nl(ar).getState())},[]),ls=i(function(){return{marshal:Li,focus:da,contextId:ae,canLift:za,isMovementAllowed:Xo,dragHandleUsageInstructionsId:zr,registry:Gn}},[ae,Li,zr,da,za,Xo,Gn]);return Wl({contextId:ae,store:$i,registry:Gn,customSensors:$e,enableDefaultSensors:Ue.enableDefaultSensors!==!1}),Object(y.useEffect)(function(){return Qa},[Qa]),g.a.createElement(Dn.Provider,{value:ls},g.a.createElement(f.a,{context:Ss,store:$i},Ue.children))}var tu=0;function Iu(){tu=0}function pu(){return i(function(){return""+tu++},[])}function mu(){Iu(),Ds()}function gu(Ue){var ae=pu(),_e=Ue.dragHandleUsageInstructions||be.dragHandleUsageInstructions;return g.a.createElement(dt,null,function($e){return g.a.createElement($l,{nonce:Ue.nonce,contextId:ae,setCallbacks:$e,dragHandleUsageInstructions:_e,enableDefaultSensors:Ue.enableDefaultSensors,sensors:Ue.sensors,onBeforeCapture:Ue.onBeforeCapture,onBeforeDragStart:Ue.onBeforeDragStart,onDragStart:Ue.onDragStart,onDragUpdate:Ue.onDragUpdate,onDragEnd:Ue.onDragEnd},Ue.children)})}var ql=function(ae){return function(_e){return ae===_e}},Tl=ql("scroll"),ll=ql("auto"),Hl=ql("visible"),xl=function(ae,_e){return _e(ae.overflowX)||_e(ae.overflowY)},xu=function(ae,_e){return _e(ae.overflowX)&&_e(ae.overflowY)},vu=function(ae){var _e=window.getComputedStyle(ae),$e={overflowX:_e.overflowX,overflowY:_e.overflowY};return xl($e,Tl)||xl($e,ll)},Au=function(){return!1;var ae,_e;if(!vu(ae))return!1;var $e,Et;if(xu(Et,Hl))return!1},Ol=function Ue(ae){return ae==null?null:ae===document.body?Au()?ae:null:ae===document.documentElement?null:vu(ae)?ae:Ue(ae.parentElement)},cu=function(ae){if(!ae)return;var _e=Ol(ae.parentElement);if(!_e)return},du=function(ae){return{x:ae.scrollLeft,y:ae.scrollTop}},Lu=function Ue(ae){if(!ae)return!1;var _e=window.getComputedStyle(ae);return _e.position==="fixed"?!0:Ue(ae.parentElement)},zl=function(ae){var _e=Ol(ae),$e=Lu(ae);return{closestScrollable:_e,isFixedOnPage:$e}},ru=function(ae){var _e=ae.descriptor,$e=ae.isEnabled,Et=ae.isCombineEnabled,qt=ae.isFixedOnPage,ar=ae.direction,lr=ae.client,Gr=ae.page,pn=ae.closest,zr=function(){if(!pn)return null;var Gn=pn.scrollSize,Li=pn.client,Mi=Jn({scrollHeight:Gn.scrollHeight,scrollWidth:Gn.scrollWidth,height:Li.paddingBox.height,width:Li.paddingBox.width});return{pageMarginBox:pn.page.marginBox,frameClient:Li,scrollSize:Gn,shouldClipSubject:pn.shouldClipSubject,scroll:{initial:pn.scroll,current:pn.scroll,max:Mi,diff:{value:Te,displacement:Te}}}}(),Hr=ar==="vertical"?Rn:Zt,un=Ge({page:Gr,withPlaceholder:null,axis:Hr,frame:zr}),bn={descriptor:_e,isCombineEnabled:Et,isFixedOnPage:qt,axis:Hr,isEnabled:$e,client:lr,page:Gr,frame:zr,subject:un};return bn},ou=function(ae,_e){var $e=T(ae);if(!_e)return $e;if(ae!==_e)return $e;var Et=$e.paddingBox.top-_e.scrollTop,qt=$e.paddingBox.left-_e.scrollLeft,ar=Et+_e.scrollHeight,lr=qt+_e.scrollWidth,Gr={top:Et,right:lr,bottom:ar,left:qt},pn=u(Gr,$e.border),zr=h({borderBox:pn,margin:$e.margin,border:$e.border,padding:$e.padding});return zr},su=function(ae){var _e=ae.ref,$e=ae.descriptor,Et=ae.env,qt=ae.windowScroll,ar=ae.direction,lr=ae.isDropDisabled,Gr=ae.isCombineEnabled,pn=ae.shouldClipSubject,zr=Et.closestScrollable,Hr=ou(_e,zr),un=x(Hr,qt),bn=function(){if(!zr)return null;var Li=T(zr),Mi={scrollHeight:zr.scrollHeight,scrollWidth:zr.scrollWidth};return{client:Li,page:x(Li,qt),scroll:du(zr),scrollSize:Mi,shouldClipSubject:pn}}(),Gn=ru({descriptor:$e,isEnabled:!lr,isCombineEnabled:Gr,isFixedOnPage:Et.isFixedOnPage,direction:ar,client:Hr,page:un,closest:bn});return Gn},Jl={passive:!1},Du={passive:!0},Ru=function(ae){return ae.shouldPublishImmediately?Jl:Du};function Zl(Ue){var ae=Object(y.useContext)(Ue);return ae||Ve(!1),ae}var yu=function(ae){return ae&&ae.env.closestScrollable||null};function Su(Ue){var ae=Object(y.useRef)(null),_e=Zl(Dn),$e=go("droppable"),Et=_e.registry,qt=_e.marshal,ar=kn(Ue),lr=i(function(){return{id:Ue.droppableId,type:Ue.type,mode:Ue.mode}},[Ue.droppableId,Ue.mode,Ue.type]),Gr=Object(y.useRef)(lr),pn=i(function(){return I(function(ya,fo){ae.current||Ve(!1);var za={x:ya,y:fo};qt.updateDroppableScroll(lr.id,za)})},[lr.id,qt]),zr=t(function(){var ya=ae.current;return!ya||!ya.env.closestScrollable?Te:du(ya.env.closestScrollable)},[]),Hr=t(function(){var ya=zr();pn(ya.x,ya.y)},[zr,pn]),un=i(function(){return M(Hr)},[Hr]),bn=t(function(){var ya=ae.current,fo=yu(ya);ya&&fo||Ve(!1);var za=ya.scrollOptions;if(za.shouldPublishImmediately){Hr();return}un()},[un,Hr]),Gn=t(function(ya,fo){ae.current&&Ve(!1);var za=ar.current,Xo=za.getDroppableRef();Xo||Ve(!1);var ls=zl(Xo),N={ref:Xo,descriptor:lr,env:ls,scrollOptions:fo};ae.current=N;var B=su({ref:Xo,descriptor:lr,env:ls,windowScroll:ya,direction:za.direction,isDropDisabled:za.isDropDisabled,isCombineEnabled:za.isCombineEnabled,shouldClipSubject:!za.ignoreContainerClipping}),ie=ls.closestScrollable;return ie&&(ie.setAttribute(il.contextId,_e.contextId),ie.addEventListener("scroll",bn,Ru(N.scrollOptions))),B},[_e.contextId,lr,bn,ar]),Li=t(function(){var ya=ae.current,fo=yu(ya);return ya&&fo||Ve(!1),du(fo)},[]),Mi=t(function(){var ya=ae.current;ya||Ve(!1);var fo=yu(ya);if(ae.current=null,!fo)return;un.cancel(),fo.removeAttribute(il.contextId),fo.removeEventListener("scroll",bn,Ru(ya.scrollOptions))},[bn,un]),da=t(function(ya){var fo=ae.current;fo||Ve(!1);var za=yu(fo);za||Ve(!1),za.scrollTop+=ya.y,za.scrollLeft+=ya.x},[]),$i=i(function(){return{getDimensionAndWatchScroll:Gn,getScrollWhileDragging:Li,dragStopped:Mi,scroll:da}},[Mi,Gn,Li,da]),Qa=i(function(){return{uniqueId:$e,descriptor:lr,callbacks:$i}},[$i,lr,$e]);hs(function(){return Gr.current=Qa.descriptor,Et.droppable.register(Qa),function(){ae.current&&Mi(),Et.droppable.unregister(Qa)}},[$i,lr,Mi,Qa,qt,Et.droppable]),hs(function(){if(!ae.current)return;qt.updateDroppableIsEnabled(Gr.current.id,!Ue.isDropDisabled)},[Ue.isDropDisabled,qt]),hs(function(){if(!ae.current)return;qt.updateDroppableIsCombineEnabled(Gr.current.id,Ue.isCombineEnabled)},[Ue.isCombineEnabled,qt])}function bu(){}var hl={width:0,height:0,margin:pr},Dl=function(ae){var _e=ae.isAnimatingOpenOnMount,$e=ae.placeholder,Et=ae.animate;return _e||Et==="close"?hl:{height:$e.client.borderBox.height,width:$e.client.borderBox.width,margin:$e.client.margin}},nu=function(ae){var _e=ae.isAnimatingOpenOnMount,$e=ae.placeholder,Et=ae.animate,qt=Dl({isAnimatingOpenOnMount:_e,placeholder:$e,animate:Et});return{display:$e.display,boxSizing:"border-box",width:qt.width,height:qt.height,marginTop:qt.margin.top,marginRight:qt.margin.right,marginBottom:qt.margin.bottom,marginLeft:qt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Et!=="none"?na.placeholder:null}};function Nu(Ue){var ae=Object(y.useRef)(null),_e=t(function(){if(!ae.current)return;clearTimeout(ae.current),ae.current=null},[]),$e=Ue.animate,Et=Ue.onTransitionEnd,qt=Ue.onClose,ar=Ue.contextId,lr=Object(y.useState)(Ue.animate==="open"),Gr=lr[0],pn=lr[1];Object(y.useEffect)(function(){return Gr?$e!=="open"?(_e(),pn(!1),bu):ae.current?bu:(ae.current=setTimeout(function(){ae.current=null,pn(!1)}),_e):bu},[$e,Gr,_e]);var zr=t(function(un){if(un.propertyName!=="height")return;Et(),$e==="close"&&qt()},[$e,qt,Et]),Hr=nu({isAnimatingOpenOnMount:Gr,animate:Ue.animate,placeholder:Ue.placeholder});return g.a.createElement(Ue.placeholder.tagName,{style:Hr,"data-rbd-placeholder-context-id":ar,onTransitionEnd:zr,ref:Ue.innerRef})}var hu=g.a.memo(Nu),fu=g.a.createContext(null);function iu(Ue){Ue&&Gs(Ue)||Ve(!1)}function Ae(Ue){return typeof Ue=="boolean"}function ee(Ue,ae){ae.forEach(function(_e){return _e(Ue)})}var L=[function(ae){var _e=ae.props;_e.droppableId||Ve(!1),typeof _e.droppableId=="string"||Ve(!1)},function(ae){var _e=ae.props;Ae(_e.isDropDisabled)||Ve(!1),Ae(_e.isCombineEnabled)||Ve(!1),Ae(_e.ignoreContainerClipping)||Ve(!1)},function(ae){var _e=ae.getDroppableRef;iu(_e())}],W=[function(ae){var _e=ae.props,$e=ae.getPlaceholderRef;if(!_e.placeholder)return;var Et=$e();if(Et)return}],H=[function(ae){var _e=ae.props;_e.renderClone||Ve(!1)},function(ae){var _e=ae.getPlaceholderRef;_e()&&Ve(!1)}];function Z(Ue){Zr(function(){ee(Ue,L),Ue.props.mode==="standard"&&ee(Ue,W),Ue.props.mode==="virtual"&&ee(Ue,H)})}var ne=function(Ue){Object(S.a)(ae,Ue);function ae(){for(var $e,Et=arguments.length,qt=new Array(Et),ar=0;ar<Et;ar++)qt[ar]=arguments[ar];return $e=Ue.call.apply(Ue,[this].concat(qt))||this,$e.state={isVisible:Boolean($e.props.on),data:$e.props.on,animate:$e.props.shouldAnimate&&$e.props.on?"open":"none"},$e.onClose=function(){if($e.state.animate!=="close")return;$e.setState({isVisible:!1})},$e}ae.getDerivedStateFromProps=function(Et,qt){return Et.shouldAnimate?Et.on?{isVisible:!0,data:Et.on,animate:"open"}:qt.isVisible?{isVisible:!0,data:qt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(Et.on),data:Et.on,animate:"none"}};var _e=ae.prototype;return _e.render=function(){if(!this.state.isVisible)return null;var Et={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Et)},ae}(g.a.PureComponent),ve={dragging:5e3,dropAnimating:4500},Ce=function(ae,_e){return _e?na.drop(_e.duration):ae?na.snap:na.fluid},ze=function(ae,_e){return ae?_e?Ji.opacity.drop:Ji.opacity.combining:null},st=function(ae){return ae.forceShouldAnimate!=null?ae.forceShouldAnimate:ae.mode==="SNAP"};function gt(Ue){var ae=Ue.dimension,_e=ae.client,$e=Ue.offset,Et=Ue.combineWith,qt=Ue.dropping,ar=Boolean(Et),lr=st(Ue),Gr=Boolean(qt),pn=Gr?La.drop($e,ar):La.moveTo($e),zr={position:"fixed",top:_e.marginBox.top,left:_e.marginBox.left,boxSizing:"border-box",width:_e.borderBox.width,height:_e.borderBox.height,transition:Ce(lr,qt),transform:pn,opacity:ze(ar,Gr),zIndex:Gr?ve.dropAnimating:ve.dragging,pointerEvents:"none"};return zr}function tr(Ue){return{transform:La.moveTo(Ue.offset),transition:Ue.shouldAnimateDisplacement?null:"none"}}function Or(Ue){return Ue.type==="DRAGGING"?gt(Ue):tr(Ue)}function Sr(Ue,ae,_e){_e===void 0&&(_e=Te);var $e=window.getComputedStyle(ae),Et=ae.getBoundingClientRect(),qt=E(Et,$e),ar=x(qt,_e),lr={client:qt,tagName:ae.tagName.toLowerCase(),display:$e.display},Gr={x:qt.marginBox.width,y:qt.marginBox.height},pn={descriptor:Ue,placeholder:lr,displaceBy:Gr,client:qt,page:ar};return pn}function Wr(Ue){var ae=go("draggable"),_e=Ue.descriptor,$e=Ue.registry,Et=Ue.getDraggableRef,qt=Ue.canDragInteractiveElements,ar=Ue.shouldRespectForcePress,lr=Ue.isEnabled,Gr=i(function(){return{canDragInteractiveElements:qt,shouldRespectForcePress:ar,isEnabled:lr}},[qt,lr,ar]),pn=t(function(bn){var Gn=Et();return Gn||Ve(!1),Sr(_e,Gn,bn)},[_e,Et]),zr=i(function(){return{uniqueId:ae,descriptor:_e,options:Gr,getDimension:pn}},[_e,pn,Gr,ae]),Hr=Object(y.useRef)(zr),un=Object(y.useRef)(!0);hs(function(){return $e.draggable.register(Hr.current),function(){return $e.draggable.unregister(Hr.current)}},[$e.draggable]),hs(function(){if(un.current){un.current=!1;return}var bn=Hr.current;Hr.current=zr,$e.draggable.update(zr,bn)},[zr,$e.draggable])}function $r(Ue,ae,_e){Zr(function(){function $e(qt){return"Draggable[id: "+qt+"]: "}var Et=Ue.draggableId;if(Et||Ve(!1),typeof Et=="string"||Ve(!1),oe(Ue.index)||Ve(!1),Ue.mapped.type==="DRAGGING")return;iu(_e()),Ue.isEnabled&&(ds(ae,Et)||Ve(!1))})}function Ln(Ue){cr(function(){var ae=Object(y.useRef)(Ue);Zr(function(){Ue===ae.current||Ve(!1)},[Ue])})}function Mn(Ue){Ue.preventDefault()}function Zn(Ue){var ae=Object(y.useRef)(null),_e=t(function(N){ae.current=N},[]),$e=t(function(){return ae.current},[]),Et=Zl(Dn),qt=Et.contextId,ar=Et.dragHandleUsageInstructionsId,lr=Et.registry,Gr=Zl(fu),pn=Gr.type,zr=Gr.droppableId,Hr=i(function(){return{id:Ue.draggableId,index:Ue.index,type:pn,droppableId:zr}},[Ue.draggableId,Ue.index,pn,zr]),un=Ue.children,bn=Ue.draggableId,Gn=Ue.isEnabled,Li=Ue.shouldRespectForcePress,Mi=Ue.canDragInteractiveElements,da=Ue.isClone,$i=Ue.mapped,Qa=Ue.dropAnimationFinished;if($r(Ue,qt,$e),Ln(da),!da){var ya=i(function(){return{descriptor:Hr,registry:lr,getDraggableRef:$e,canDragInteractiveElements:Mi,shouldRespectForcePress:Li,isEnabled:Gn}},[Hr,lr,$e,Mi,Li,Gn]);Wr(ya)}var fo=i(function(){return Gn?{tabIndex:0,role:"button","aria-describedby":ar,"data-rbd-drag-handle-draggable-id":bn,"data-rbd-drag-handle-context-id":qt,draggable:!1,onDragStart:Mn}:null},[qt,ar,bn,Gn]),za=t(function(N){if($i.type!=="DRAGGING")return;if(!$i.dropping)return;if(N.propertyName!=="transform")return;Qa()},[Qa,$i]),Xo=i(function(){var N=Or($i),B=$i.type==="DRAGGING"&&$i.dropping?za:null,ie={innerRef:_e,draggableProps:{"data-rbd-draggable-context-id":qt,"data-rbd-draggable-id":bn,style:N,onTransitionEnd:B},dragHandleProps:fo};return ie},[qt,fo,bn,$i,za,_e]),ls=i(function(){return{draggableId:Hr.id,type:Hr.type,source:{index:Hr.index,droppableId:Hr.droppableId}}},[Hr.droppableId,Hr.id,Hr.index,Hr.type]);return un(Xo,$i.snapshot,ls)}var xi=function(ae,_e){return ae===_e},ua=function(ae){var _e=ae.combine,$e=ae.destination;return $e?$e.droppableId:_e?_e.droppableId:null},Gi=function(ae){return ae.combine?ae.combine.draggableId:null},Zi=function(ae){return ae.at&&ae.at.type==="COMBINE"?ae.at.combine.draggableId:null};function ka(){var Ue=I(function(Et,qt){return{x:Et,y:qt}}),ae=I(function(Et,qt,ar,lr,Gr){return{isDragging:!0,isClone:qt,isDropAnimating:Boolean(Gr),dropAnimation:Gr,mode:Et,draggingOver:ar,combineWith:lr,combineTargetFor:null}}),_e=I(function(Et,qt,ar,lr,Gr,pn,zr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Gr,combineWith:pn,mode:qt,offset:Et,dimension:ar,forceShouldAnimate:zr,snapshot:ae(qt,lr,Gr,pn,null)}}}),$e=function(qt,ar){if(qt.isDragging){if(qt.critical.draggable.id!==ar.draggableId)return null;var lr=qt.current.client.offset,Gr=qt.dimensions.draggables[ar.draggableId],pn=ti(qt.impact),zr=Zi(qt.impact),Hr=qt.forceShouldAnimate;return _e(Ue(lr.x,lr.y),qt.movementMode,Gr,ar.isClone,pn,zr,Hr)}if(qt.phase==="DROP_ANIMATING"){var un=qt.completed;if(un.result.draggableId!==ar.draggableId)return null;var bn=ar.isClone,Gn=qt.dimensions.draggables[ar.draggableId],Li=un.result,Mi=Li.mode,da=ua(Li),$i=Gi(Li),Qa=qt.dropDuration,ya={duration:Qa,curve:Hi.drop,moveTo:qt.newHomeClientOffset,opacity:$i?Ji.opacity.drop:null,scale:$i?Ji.scale.drop:null};return{mapped:{type:"DRAGGING",offset:qt.newHomeClientOffset,dimension:Gn,dropping:ya,draggingOver:da,combineWith:$i,mode:Mi,forceShouldAnimate:null,snapshot:ae(Mi,bn,da,$i,ya)}}}return null};return $e}function Ga(Ue){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Ue,combineWith:null}}var Ba={mapped:{type:"SECONDARY",offset:Te,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ga(null)}};function xa(){var Ue=I(function(ar,lr){return{x:ar,y:lr}}),ae=I(Ga),_e=I(function(ar,lr,Gr){return lr===void 0&&(lr=null),{mapped:{type:"SECONDARY",offset:ar,combineTargetFor:lr,shouldAnimateDisplacement:Gr,snapshot:ae(lr)}}}),$e=function(lr){return lr?_e(Te,lr,!0):null},Et=function(lr,Gr,pn,zr){var Hr=pn.displaced.visible[lr],un=Boolean(zr.inVirtualList&&zr.effected[lr]),bn=St(pn),Gn=bn&&bn.draggableId===lr?Gr:null;if(!Hr){if(!un)return $e(Gn);if(pn.displaced.invisible[lr])return null;var Li=ke(zr.displacedBy.point),Mi=Ue(Li.x,Li.y);return _e(Mi,Gn,!0)}if(un)return $e(Gn);var da=pn.displacedBy.point,$i=Ue(da.x,da.y);return _e($i,Gn,Hr.shouldAnimate)},qt=function(lr,Gr){if(lr.isDragging)return lr.critical.draggable.id===Gr.draggableId?null:Et(Gr.draggableId,lr.critical.draggable.id,lr.impact,lr.afterCritical);if(lr.phase==="DROP_ANIMATING"){var pn=lr.completed;return pn.result.draggableId===Gr.draggableId?null:Et(Gr.draggableId,pn.result.draggableId,pn.impact,pn.afterCritical)}return null};return qt}var Go=function(){var ae=ka(),_e=xa(),$e=function(qt,ar){return ae(qt,ar)||_e(qt,ar)||Ba};return $e},bs={dropAnimationFinished:Ii},ys=Object(f.c)(Go,bs,null,{context:Ss,pure:!0,areStatePropsEqual:xi})(Zn);function Ts(Ue){var ae=Zl(fu),_e=ae.isUsingCloneFor;return _e===Ue.draggableId&&!Ue.isClone?null:g.a.createElement(ys,Ue)}function js(Ue){var ae=typeof Ue.isDragDisabled=="boolean"?!Ue.isDragDisabled:!0,_e=Boolean(Ue.disableInteractiveElementBlocking),$e=Boolean(Ue.shouldRespectForcePress);return g.a.createElement(Ts,Object(m.a)({},Ue,{isClone:!1,isEnabled:ae,canDragInteractiveElements:_e,shouldRespectForcePress:$e}))}function ws(Ue){var ae=Object(y.useContext)(Dn);ae||Ve(!1);var _e=ae.contextId,$e=ae.isMovementAllowed,Et=Object(y.useRef)(null),qt=Object(y.useRef)(null),ar=Ue.children,lr=Ue.droppableId,Gr=Ue.type,pn=Ue.mode,zr=Ue.direction,Hr=Ue.ignoreContainerClipping,un=Ue.isDropDisabled,bn=Ue.isCombineEnabled,Gn=Ue.snapshot,Li=Ue.useClone,Mi=Ue.updateViewportMaxScroll,da=Ue.getContainerForClone,$i=t(function(){return Et.current},[]),Qa=t(function(le){Et.current=le},[]),ya=t(function(){return qt.current},[]),fo=t(function(le){qt.current=le},[]);Z({props:Ue,getDroppableRef:$i,getPlaceholderRef:ya});var za=t(function(){$e()&&Mi({maxScroll:Yr()})},[$e,Mi]);Su({droppableId:lr,type:Gr,mode:pn,direction:zr,isDropDisabled:un,isCombineEnabled:bn,ignoreContainerClipping:Hr,getDroppableRef:$i});var Xo=g.a.createElement(ne,{on:Ue.placeholder,shouldAnimate:Ue.shouldAnimatePlaceholder},function(le){var ge=le.onClose,Ke=le.data,Rt=le.animate;return g.a.createElement(hu,{placeholder:Ke,onClose:ge,innerRef:fo,animate:Rt,contextId:_e,onTransitionEnd:za})}),ls=i(function(){return{innerRef:Qa,placeholder:Xo,droppableProps:{"data-rbd-droppable-id":lr,"data-rbd-droppable-context-id":_e}}},[_e,lr,Xo,Qa]),N=Li?Li.dragging.draggableId:null,B=i(function(){return{droppableId:lr,type:Gr,isUsingCloneFor:N}},[lr,N,Gr]);function ie(){if(!Li)return null;var le=Li.dragging,ge=Li.render,Ke=g.a.createElement(Ts,{draggableId:le.draggableId,index:le.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Rt,sr){return ge(Rt,sr,le)});return P.a.createPortal(Ke,da())}return g.a.createElement(fu.Provider,{value:B},ar(ls,Gn),ie())}var Hs=function(ae,_e){return ae===_e.droppable.type},Ee=function(ae,_e){return _e.draggables[ae.draggable.id]},Ye=function(){var ae={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},_e=Object(m.a)({},ae,{shouldAnimatePlaceholder:!1}),$e=I(function(ar){return{draggableId:ar.id,type:ar.type,source:{index:ar.index,droppableId:ar.droppableId}}}),Et=I(function(ar,lr,Gr,pn,zr,Hr){var un=zr.descriptor.id,bn=zr.descriptor.droppableId===ar;if(bn){var Gn=Hr?{render:Hr,dragging:$e(zr.descriptor)}:null,Li={isDraggingOver:Gr,draggingOverWith:Gr?un:null,draggingFromThisWith:un,isUsingPlaceholder:!0};return{placeholder:zr.placeholder,shouldAnimatePlaceholder:!1,snapshot:Li,useClone:Gn}}if(!lr)return _e;if(!pn)return ae;var Mi={isDraggingOver:Gr,draggingOverWith:un,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:zr.placeholder,shouldAnimatePlaceholder:!0,snapshot:Mi,useClone:null}}),qt=function(lr,Gr){var pn=Gr.droppableId,zr=Gr.type,Hr=!Gr.isDropDisabled,un=Gr.renderClone;if(lr.isDragging){var bn=lr.critical;if(!Hs(zr,bn))return _e;var Gn=Ee(bn,lr.dimensions),Li=ti(lr.impact)===pn;return Et(pn,Hr,Li,Li,Gn,un)}if(lr.phase==="DROP_ANIMATING"){var Mi=lr.completed;if(!Hs(zr,Mi.critical))return _e;var da=Ee(Mi.critical,lr.dimensions);return Et(pn,Hr,ua(Mi.result)===pn,ti(Mi.impact)===pn,da,un)}if(lr.phase==="IDLE"&&lr.completed&&!lr.shouldFlush){var $i=lr.completed;if(!Hs(zr,$i.critical))return _e;var Qa=ti($i.impact)===pn,ya=Boolean($i.impact.at&&$i.impact.at.type==="COMBINE"),fo=$i.critical.droppable.id===pn;return Qa?ya?ae:_e:fo?ae:_e}return _e};return qt},It={updateViewportMaxScroll:Dr};function fr(){return document.body||Ve(!1),document.body}var Ur={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:fr},ln=Object(f.c)(Ye,It,null,{context:Ss,pure:!0,areStatePropsEqual:xi})(ws);ln.defaultProps=Ur},ni6a:function(R,D,n){var y=n("pzxd"),g=n("mFDi"),S=n("gut8"),m=S.WILL_BE_RESTORED,p=new g,f=function(){};f.prototype={constructor:f,drawRectText:function(a,i){var t=this.style;i=t.textRect||i,this.__dirty&&y.normalizeTextStyle(t,!0);var o=t.text;if(o!=null&&(o+=""),!y.needDrawText(o,t))return;a.save();var e=this.transform;t.transformText?this.setTransform(a):e&&(p.copy(i),p.applyTransform(e),i=p),y.renderText(this,a,o,t,i,m),a.restore()}};var d=f;R.exports=d},nkfE:function(R,D,n){var y=n("bYtY"),g=n("ca2m"),S=n("bLfw"),m=n("+TT/"),p=m.getLayoutParams,f=m.mergeLayoutParam,d=n("jkPA"),l=["value","category","time","log"];function a(i,t,o,e){y.each(l,function(u){t.extend({type:i+"Axis."+u,mergeDefaultAndTheme:function(r,s){var c=this.layoutMode,h=c?p(r):{},v=s.getTheme();y.merge(r,v.get(u+"Axis")),y.merge(r,this.getDefaultOption()),r.type=o(i,r),c&&f(r,h,c)},optionUpdated:function(){var r=this.option;r.type==="category"&&(this.__ordinalMeta=d.createByAxisModel(this))},getCategories:function(r){var s=this.option;if(s.type==="category")return r?s.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:y.mergeAll([{},g[u+"Axis"],e],!0)})}),S.registerSubTypeDefaulter(i+"Axis",y.curry(o,i))}R.exports=a},noeP:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("UOVi");y.registerAction("dataZoom",function(m,p){var f=S.createLinkedNodesFinder(g.bind(p.eachComponent,p,"dataZoom"),S.eachAxisDim,function(l,a){return l.get(a.axisIndex)}),d=[];p.eachComponent({mainType:"dataZoom",query:m},function(l,a){d.push.apply(d,f(l).nodes)}),g.each(d,function(l,a){l.setRawRange({start:m.start,end:m.end,startValue:m.startValue,endValue:m.endValue})})})},o40c:function(R,D,n){var y=n("IwbS"),g=n("OS9S"),S=n("loD1"),m=n("aKvl"),p=y.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(a,i){var t=i.segs,o=i.curveness;if(i.polyline)for(var e=0;e<t.length;){var u=t[e++];if(u>0){a.moveTo(t[e++],t[e++]);for(var r=1;r<u;r++)a.lineTo(t[e++],t[e++])}}else for(var e=0;e<t.length;){var s=t[e++],c=t[e++],h=t[e++],v=t[e++];if(a.moveTo(s,c),o>0){var A=(s+h)/2-(c-v)*o,b=(c+v)/2-(h-s)*o;a.quadraticCurveTo(A,b,h,v)}else a.lineTo(h,v)}},findDataIndex:function(a,i){var t=this.shape,o=t.segs,e=t.curveness;if(t.polyline)for(var u=0,r=0;r<o.length;){var s=o[r++];if(s>0)for(var c=o[r++],h=o[r++],v=1;v<s;v++){var A=o[r++],b=o[r++];if(S.containStroke(c,h,A,b))return u}u++}else for(var u=0,r=0;r<o.length;){var c=o[r++],h=o[r++],A=o[r++],b=o[r++];if(e>0){var x=(c+A)/2-(h-b)*e,E=(h+b)/2-(A-c)*e;if(m.containStroke(c,h,x,E,A,b))return u}else if(S.containStroke(c,h,A,b))return u;u++}return-1}});function f(){this.group=new y.Group}var d=f.prototype;d.isPersistent=function(){return!this._incremental},d.updateData=function(a){this.group.removeAll();var i=new p({rectHover:!0,cursor:"default"});i.setShape({segs:a.getLayout("linesPoints")}),this._setCommon(i,a),this.group.add(i),this._incremental=null},d.incrementalPrepareUpdate=function(a){this.group.removeAll(),this._clearIncremental(),a.count()>5e5?(this._incremental||(this._incremental=new g({silent:!0})),this.group.add(this._incremental)):this._incremental=null},d.incrementalUpdate=function(a,i){var t=new p;t.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(t,i,!!this._incremental),this._incremental?this._incremental.addDisplayable(t,!0):(t.rectHover=!0,t.cursor="default",t.__startIndex=a.start,this.group.add(t))},d.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},d._setCommon=function(a,i,t){var o=i.hostModel;a.setShape({polyline:o.get("polyline"),curveness:o.get("lineStyle.curveness")}),a.useStyle(o.getModel("lineStyle").getLineStyle()),a.style.strokeNoScale=!0;var e=i.getVisual("color");e&&a.setStyle("stroke",e),a.setStyle("fill"),t||(a.seriesIndex=o.seriesIndex,a.on("mousemove",function(u){a.dataIndex=null;var r=a.findDataIndex(u.offsetX,u.offsetY);r>0&&(a.dataIndex=r+a.__startIndex)}))},d._clearIncremental=function(){var a=this._incremental;a&&a.clearDisplaybles()};var l=f;R.exports=l},oBaM:function(R,D,n){var y=n("T4UG"),g=n("5GtS"),S=n("bYtY"),m=n("7aKB"),p=m.encodeHTML,f=n("xKMd"),d=y.extend({type:"series.radar",dependencies:["radar"],init:function(a){d.superApply(this,"init",arguments),this.legendVisualProvider=new f(S.bind(this.getData,this),S.bind(this.getRawData,this))},getInitialData:function(a,i){return g(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(a){var i=this.getData(),t=this.coordinateSystem,o=t.getIndicatorAxes(),e=this.getData().getName(a);return p(e===""?this.name:e)+"<br/>"+S.map(o,function(u,r){var s=i.get(i.mapDimension(u.dim),a);return p(u.name+" : "+s)}).join("<br />")},getTooltipPosition:function(a){if(a!=null){for(var i=this.getData(),t=this.coordinateSystem,o=i.getValues(S.map(t.dimensions,function(s){return i.mapDimension(s)}),a,!0),e=0,u=o.length;e<u;e++)if(!isNaN(o[e])){var r=t.getIndicatorAxes();return t.coordToPoint(r[e].dataToCoord(o[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}}),l=d;R.exports=l},oE7X:function(R,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(R,D,n){},oRuE:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.Iso10126={pad:function(S,m){var p=m*4,f=p-S.sigBytes%p;S.concat(y.lib.WordArray.random(f-1)).concat(y.lib.WordArray.create([f<<24],1))},unpad:function(S){var m=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=m}},y.pad.Iso10126})},oVpE:function(R,D,n){var y=n("bYtY"),g=n("IwbS"),S=n("mFDi"),m=n("6GrX"),p=m.calculateTextPosition,f=g.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,c){var h=c.cx,v=c.cy,A=c.width/2,b=c.height/2;s.moveTo(h,v-b),s.lineTo(h+A,v+b),s.lineTo(h-A,v+b),s.closePath()}}),d=g.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,c){var h=c.cx,v=c.cy,A=c.width/2,b=c.height/2;s.moveTo(h,v-b),s.lineTo(h+A,v),s.lineTo(h,v+b),s.lineTo(h-A,v),s.closePath()}}),l=g.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,c){var h=c.x,v=c.y,A=c.width/5*3,b=Math.max(A,c.height),x=A/2,E=x*x/(b-x),T=v-b+x+E,_=Math.asin(E/x),C=Math.cos(_)*x,w=Math.sin(_),O=Math.cos(_),I=x*.6,k=x*.7;s.moveTo(h-C,T+E),s.arc(h,T,x,Math.PI-_,Math.PI*2+_),s.bezierCurveTo(h+C-w*I,T+E+O*I,h,v-k,h,v),s.bezierCurveTo(h,v-k,h-C+w*I,T+E+O*I,h-C,T+E),s.closePath()}}),a=g.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,c){var h=c.height,v=c.width,A=c.x,b=c.y,x=v/3*2;s.moveTo(A,b),s.lineTo(A+x,b+h),s.lineTo(A,b+h/4*3),s.lineTo(A-x,b+h),s.lineTo(A,b),s.closePath()}}),i={line:g.Line,rect:g.Rect,roundRect:g.Rect,square:g.Rect,circle:g.Circle,diamond:d,pin:l,arrow:a,triangle:f},t={line:function(s,c,h,v,A){A.x1=s,A.y1=c+v/2,A.x2=s+h,A.y2=c+v/2},rect:function(s,c,h,v,A){A.x=s,A.y=c,A.width=h,A.height=v},roundRect:function(s,c,h,v,A){A.x=s,A.y=c,A.width=h,A.height=v,A.r=Math.min(h,v)/4},square:function(s,c,h,v,A){var b=Math.min(h,v);A.x=s,A.y=c,A.width=b,A.height=b},circle:function(s,c,h,v,A){A.cx=s+h/2,A.cy=c+v/2,A.r=Math.min(h,v)/2},diamond:function(s,c,h,v,A){A.cx=s+h/2,A.cy=c+v/2,A.width=h,A.height=v},pin:function(s,c,h,v,A){A.x=s+h/2,A.y=c+v/2,A.width=h,A.height=v},arrow:function(s,c,h,v,A){A.x=s+h/2,A.y=c+v/2,A.width=h,A.height=v},triangle:function(s,c,h,v,A){A.cx=s+h/2,A.cy=c+v/2,A.width=h,A.height=v}},o={};y.each(i,function(s,c){o[c]=new s});var e=g.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(s,c,h){var v=p(s,c,h),A=this.shape;return A&&A.symbolType==="pin"&&c.textPosition==="inside"&&(v.y=h.y+h.height*.4),v},buildPath:function(s,c,h){var v=c.symbolType;if(v!=="none"){var A=o[v];A||(v="rect",A=o[v]),t[v](c.x,c.y,c.width,c.height,A.shape),A.buildPath(s,A.shape,h)}}});function u(s,c){if(this.type!=="image"){var h=this.style,v=this.shape;v&&v.symbolType==="line"?h.stroke=s:this.__isEmptyBrush?(h.stroke=s,h.fill=c||"#fff"):(h.fill&&(h.fill=s),h.stroke&&(h.stroke=s)),this.dirty(!1)}}function r(s,c,h,v,A,b,x){var E=s.indexOf("empty")===0;E&&(s=s.substr(5,1).toLowerCase()+s.substr(6));var T;return s.indexOf("image://")===0?T=g.makeImage(s.slice(8),new S(c,h,v,A),x?"center":"cover"):s.indexOf("path://")===0?T=g.makePath(s.slice(7),{},new S(c,h,v,A),x?"center":"cover"):T=new e({shape:{symbolType:s,x:c,y:h,width:v,height:A}}),T.__isEmptyBrush=E,T.setColor=u,T.setColor(b),T}D.createSymbol=r},oY9F:function(R,D,n){var y=n("OlYY"),g=y.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});R.exports=g},or5M:function(R,D,n){var y=n("1hJj"),g=n("QoRX"),S=n("xYSL"),m=1,p=2;function f(d,l,a,i,t,o){var e=a&m,u=d.length,r=l.length;if(u!=r&&!(e&&r>u))return!1;var s=o.get(d),c=o.get(l);if(s&&c)return s==l&&c==d;var h=-1,v=!0,A=a&p?new y:void 0;for(o.set(d,l),o.set(l,d);++h<u;){var b=d[h],x=l[h];if(i)var E=e?i(x,b,h,l,d,o):i(b,x,h,d,l,o);if(E!==void 0){if(E)continue;v=!1;break}if(A){if(!g(l,function(T,_){if(!S(A,_)&&(b===T||t(b,T,a,i,o)))return A.push(_)})){v=!1;break}}else if(!(b===x||t(b,x,a,i,o))){v=!1;break}}return o.delete(d),o.delete(l),v}R.exports=f},osHv:function(R,D,n){(function(y){y(n("VrN/"))})(function(y){"use strict";var g=y.Pos;function S(c,h){return c.line-h.line||c.ch-h.ch}var m="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",p=m+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",f=new RegExp("<(/?)(["+m+"]["+p+"]*)","g");function d(c,h,v,A){this.line=h,this.ch=v,this.cm=c,this.text=c.getLine(h),this.min=A?Math.max(A.from,c.firstLine()):c.firstLine(),this.max=A?Math.min(A.to-1,c.lastLine()):c.lastLine()}function l(c,h){var v=c.cm.getTokenTypeAt(g(c.line,h));return v&&/\btag\b/.test(v)}function a(c){return c.line>=c.max?void 0:(c.ch=0,c.text=c.cm.getLine(++c.line),!0)}function i(c){return c.line<=c.min?void 0:(c.text=c.cm.getLine(--c.line),c.ch=c.text.length,!0)}function t(c){for(;;){var h=c.text.indexOf(">",c.ch);if(h==-1){if(a(c))continue;return}if(!l(c,h+1)){c.ch=h+1;continue}var v=c.text.lastIndexOf("/",h),A=v>-1&&!/\S/.test(c.text.slice(v+1,h));return c.ch=h+1,A?"selfClose":"regular"}}function o(c){for(;;){var h=c.ch?c.text.lastIndexOf("<",c.ch-1):-1;if(h==-1){if(i(c))continue;return}if(!l(c,h+1)){c.ch=h;continue}f.lastIndex=h,c.ch=h;var v=f.exec(c.text);if(v&&v.index==h)return v}}function e(c){for(;;){f.lastIndex=c.ch;var h=f.exec(c.text);if(!h){if(a(c))continue;return}if(!l(c,h.index+1)){c.ch=h.index+1;continue}return c.ch=h.index+h[0].length,h}}function u(c){for(;;){var h=c.ch?c.text.lastIndexOf(">",c.ch-1):-1;if(h==-1){if(i(c))continue;return}if(!l(c,h+1)){c.ch=h;continue}var v=c.text.lastIndexOf("/",h),A=v>-1&&!/\S/.test(c.text.slice(v+1,h));return c.ch=h+1,A?"selfClose":"regular"}}function r(c,h){for(var v=[];;){var A=e(c),b,x=c.line,E=c.ch-(A?A[0].length:0);if(!A||!(b=t(c)))return;if(b=="selfClose")continue;if(A[1]){for(var T=v.length-1;T>=0;--T)if(v[T]==A[2]){v.length=T;break}if(T<0&&(!h||h==A[2]))return{tag:A[2],from:g(x,E),to:g(c.line,c.ch)}}else v.push(A[2])}}function s(c,h){for(var v=[];;){var A=u(c);if(!A)return;if(A=="selfClose"){o(c);continue}var b=c.line,x=c.ch,E=o(c);if(!E)return;if(E[1])v.push(E[2]);else{for(var T=v.length-1;T>=0;--T)if(v[T]==E[2]){v.length=T;break}if(T<0&&(!h||h==E[2]))return{tag:E[2],from:g(c.line,c.ch),to:g(b,x)}}}}y.registerHelper("fold","xml",function(c,h){for(var v=new d(c,h.line,0);;){var A=e(v);if(!A||v.line!=h.line)return;var b=t(v);if(!b)return;if(!A[1]&&b!="selfClose"){var x=g(v.line,v.ch),E=r(v,A[2]);return E&&S(E.from,x)>0?{from:x,to:E.from}:null}}}),y.findMatchingTag=function(c,h,v){var A=new d(c,h.line,h.ch,v);if(A.text.indexOf(">")==-1&&A.text.indexOf("<")==-1)return;var b=t(A),x=b&&g(A.line,A.ch),E=b&&o(A);if(!b||!E||S(A,h)>0)return;var T={from:g(A.line,A.ch),to:x,tag:E[2]};return b=="selfClose"?{open:T,close:null,at:"open"}:E[1]?{open:s(A,E[2]),close:T,at:"close"}:(A=new d(c,x.line,x.ch,v),{open:T,close:r(A,E[2]),at:"open"})},y.findEnclosingTag=function(c,h,v,A){for(var b=new d(c,h.line,h.ch,v);;){var x=s(b,A);if(!x)break;var E=new d(c,h.line,h.ch,v),T=r(E,x.tag);if(T)return{open:x,close:T}}},y.scanForClosingTag=function(c,h,v,A){var b=new d(c,h.line,h.ch,A?{from:0,to:A}:null);return r(b,v)}})},ozfa:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("KxFI"),m=n.n(S)},"p+If":function(R,D,n){var y=n("ProS");n("cpOr"),n("rkZ5");var g=n("ZYIC"),S=n("7ph2");y.registerLayout(g),y.registerVisual(S)},"p/La":function(R,D){var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function y(g,S){g==="china"&&S.name==="\u53F0\u6E7E"&&S.geometries.push({type:"polygon",exterior:n[0]})}R.exports=y},p1MT:function(R,D,n){var y=n("Hw7h"),g=n("IwbS"),S=n("6Ic6"),m=n("OELB"),p=m.parsePercent,f=m.round,d=m.linearMap;function l(e,u){var r=e.get("center"),s=u.getWidth(),c=u.getHeight(),h=Math.min(s,c),v=p(r[0],u.getWidth()),A=p(r[1],u.getHeight()),b=p(e.get("radius"),h/2);return{cx:v,cy:A,r:b}}function a(e,u){return u&&(typeof u=="string"?e=u.replace("{value}",e!=null?e:""):typeof u=="function"&&(e=u(e))),e}var i=Math.PI*2,t=S.extend({type:"gauge",render:function(e,u,r){this.group.removeAll();var s=e.get("axisLine.lineStyle.color"),c=l(e,r);this._renderMain(e,u,r,s,c)},dispose:function(){},_renderMain:function(e,u,r,s,c){for(var h=this.group,v=e.getModel("axisLine"),A=v.getModel("lineStyle"),b=e.get("clockwise"),x=-e.get("startAngle")/180*Math.PI,E=-e.get("endAngle")/180*Math.PI,T=(E-x)%i,_=x,C=A.get("width"),w=v.get("show"),O=0;w&&O<s.length;O++){var I=Math.min(Math.max(s[O][0],0),1),E=x+T*I,k=new g.Sector({shape:{startAngle:_,endAngle:E,cx:c.cx,cy:c.cy,clockwise:b,r0:c.r-C,r:c.r},silent:!0});k.setStyle({fill:s[O][1]}),k.setStyle(A.getLineStyle(["color","borderWidth","borderColor"])),h.add(k),_=E}var M=function(P){if(P<=0)return s[0][1];for(var X=0;X<s.length;X++)if(s[X][0]>=P&&(X===0?0:s[X-1][0])<P)return s[X][1];return s[X-1][1]};if(!b){var U=x;x=E,E=U}this._renderTicks(e,u,r,M,c,x,E,b),this._renderPointer(e,u,r,M,c,x,E,b),this._renderTitle(e,u,r,M,c),this._renderDetail(e,u,r,M,c)},_renderTicks:function(e,u,r,s,c,h,v,A){for(var b=this.group,x=c.cx,E=c.cy,T=c.r,_=+e.get("min"),C=+e.get("max"),w=e.getModel("splitLine"),O=e.getModel("axisTick"),I=e.getModel("axisLabel"),k=e.get("splitNumber"),M=O.get("splitNumber"),U=p(w.get("length"),T),P=p(O.get("length"),T),X=h,F=(v-h)/k,j=F/M,K=w.getModel("lineStyle").getLineStyle(),z=O.getModel("lineStyle").getLineStyle(),V=0;V<=k;V++){var Q=Math.cos(X),G=Math.sin(X);if(w.get("show")){var te=new g.Line({shape:{x1:Q*T+x,y1:G*T+E,x2:Q*(T-U)+x,y2:G*(T-U)+E},style:K,silent:!0});K.stroke==="auto"&&te.setStyle({stroke:s(V/k)}),b.add(te)}if(I.get("show")){var q=a(f(V/k*(C-_)+_),I.get("formatter")),se=I.get("distance"),re=s(V/k);b.add(new g.Text({style:g.setTextStyle({},I,{text:q,x:Q*(T-U-se)+x,y:G*(T-U-se)+E,textVerticalAlign:G<-.4?"top":G>.4?"bottom":"middle",textAlign:Q<-.4?"left":Q>.4?"right":"center"},{autoColor:re}),silent:!0}))}if(O.get("show")&&V!==k){for(var we=0;we<=M;we++){var Q=Math.cos(X),G=Math.sin(X),Oe=new g.Line({shape:{x1:Q*T+x,y1:G*T+E,x2:Q*(T-P)+x,y2:G*(T-P)+E},silent:!0,style:z});z.stroke==="auto"&&Oe.setStyle({stroke:s((V+we/M)/k)}),b.add(Oe),X+=j}X-=j}else X+=F}},_renderPointer:function(e,u,r,s,c,h,v,A){var b=this.group,x=this._data;if(!e.get("pointer.show")){x&&x.eachItemGraphicEl(function(w){b.remove(w)});return}var E=[+e.get("min"),+e.get("max")],T=[h,v],_=e.getData(),C=_.mapDimension("value");_.diff(x).add(function(w){var O=new y({shape:{angle:h}});g.initProps(O,{shape:{angle:d(_.get(C,w),E,T,!0)}},e),b.add(O),_.setItemGraphicEl(w,O)}).update(function(w,O){var I=x.getItemGraphicEl(O);g.updateProps(I,{shape:{angle:d(_.get(C,w),E,T,!0)}},e),b.add(I),_.setItemGraphicEl(w,I)}).remove(function(w){var O=x.getItemGraphicEl(w);b.remove(O)}).execute(),_.eachItemGraphicEl(function(w,O){var I=_.getItemModel(O),k=I.getModel("pointer");w.setShape({x:c.cx,y:c.cy,width:p(k.get("width"),c.r),r:p(k.get("length"),c.r)}),w.useStyle(I.getModel("itemStyle").getItemStyle()),w.style.fill==="auto"&&w.setStyle("fill",s(d(_.get(C,O),E,[0,1],!0))),g.setHoverStyle(w,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=_},_renderTitle:function(e,u,r,s,c){var h=e.getData(),v=h.mapDimension("value"),A=e.getModel("title");if(A.get("show")){var b=A.get("offsetCenter"),x=c.cx+p(b[0],c.r),E=c.cy+p(b[1],c.r),T=+e.get("min"),_=+e.get("max"),C=e.getData().get(v,0),w=s(d(C,[T,_],[0,1],!0));this.group.add(new g.Text({silent:!0,style:g.setTextStyle({},A,{x,y:E,text:h.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:w,forceRich:!0})}))}},_renderDetail:function(e,u,r,s,c){var h=e.getModel("detail"),v=+e.get("min"),A=+e.get("max");if(h.get("show")){var b=h.get("offsetCenter"),x=c.cx+p(b[0],c.r),E=c.cy+p(b[1],c.r),T=p(h.get("width"),c.r),_=p(h.get("height"),c.r),C=e.getData(),w=C.get(C.mapDimension("value"),0),O=s(d(w,[v,A],[0,1],!0));this.group.add(new g.Text({silent:!0,style:g.setTextStyle({},h,{x,y:E,text:a(w,h.get("formatter")),textWidth:isNaN(T)?null:T,textHeight:isNaN(_)?null:_,textAlign:"center",textVerticalAlign:"middle"},{autoColor:O,forceRich:!0})}))}}}),o=t;R.exports=o},"p77/":function(R,D,n){},pA7S:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.WordArray,p=S.BlockCipher,f=g.algo,d=[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],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],i=[{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}],t=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],o=f.DES=p.extend({_doReset:function(){for(var c=this._key,h=c.words,v=[],A=0;A<56;A++){var b=d[A]-1;v[A]=h[b>>>5]>>>31-b%32&1}for(var x=this._subKeys=[],E=0;E<16;E++){for(var T=x[E]=[],_=a[E],A=0;A<24;A++)T[A/6|0]|=v[(l[A]-1+_)%28]<<31-A%6,T[4+(A/6|0)]|=v[28+(l[A+24]-1+_)%28]<<31-A%6;T[0]=T[0]<<1|T[0]>>>31;for(var A=1;A<7;A++)T[A]=T[A]>>>(A-1)*4+3;T[7]=T[7]<<5|T[7]>>>27}for(var C=this._invSubKeys=[],A=0;A<16;A++)C[A]=x[15-A]},encryptBlock:function(c,h){this._doCryptBlock(c,h,this._subKeys)},decryptBlock:function(c,h){this._doCryptBlock(c,h,this._invSubKeys)},_doCryptBlock:function(c,h,v){this._lBlock=c[h],this._rBlock=c[h+1],e.call(this,4,252645135),e.call(this,16,65535),u.call(this,2,858993459),u.call(this,8,16711935),e.call(this,1,1431655765);for(var A=0;A<16;A++){for(var b=v[A],x=this._lBlock,E=this._rBlock,T=0,_=0;_<8;_++)T|=i[_][((E^b[_])&t[_])>>>0];this._lBlock=E,this._rBlock=x^T}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,e.call(this,1,1431655765),u.call(this,8,16711935),u.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),c[h]=this._lBlock,c[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(s,c){var h=(this._lBlock>>>s^this._rBlock)&c;this._rBlock^=h,this._lBlock^=h<<s}function u(s,c){var h=(this._rBlock>>>s^this._lBlock)&c;this._lBlock^=h,this._rBlock^=h<<s}g.DES=p._createHelper(o);var r=f.TripleDES=p.extend({_doReset:function(){var c=this._key,h=c.words;if(h.length!==2&&h.length!==4&&h.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=h.slice(0,2),A=h.length<4?h.slice(0,2):h.slice(2,4),b=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=o.createEncryptor(m.create(v)),this._des2=o.createEncryptor(m.create(A)),this._des3=o.createEncryptor(m.create(b))},encryptBlock:function(c,h){this._des1.encryptBlock(c,h),this._des2.decryptBlock(c,h),this._des3.encryptBlock(c,h)},decryptBlock:function(c,h){this._des3.decryptBlock(c,h),this._des2.encryptBlock(c,h),this._des1.decryptBlock(c,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});g.TripleDES=p._createHelper(r)}(),y.TripleDES})},pC0b:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("xzDV"),m=n.n(S),p=n("5Dmo")},"pED+":function(R,D,n){},pG52:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("WXVj"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},pLH3:function(R,D,n){var y=n("ProS");n("ALo7"),n("TWL2");var g=n("mOdp"),S=n("JLnu"),m=n("0/Rx");y.registerVisual(g("funnel")),y.registerLayout(S),y.registerProcessor(m("funnel"))},pP6R:function(R,D,n){var y=n("ProS"),g="\0_ec_interaction_mutex";function S(d,l,a){var i=f(d);i[l]=a}function m(d,l,a){var i=f(d),t=i[l];t===a&&(i[l]=null)}function p(d,l){return!!f(d)[l]}function f(d){return d[g]||(d[g]={})}y.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),D.take=S,D.release=m,D.isTaken=p},pSRY:function(R,D,n){var y=n("QkVE");function g(S){return y(this,S).has(S)}R.exports=g},pWdF:function(R,D,n){"use strict";n.d(D,"a",function(){return iu});var y=n("oBTY"),g=n("rAM+"),S=n("tJVT"),m=n("tS8v"),p=n("oZsa"),f=n("iZzK");function d(Ae){return Function.toString.call(Ae).indexOf("[native code]")!==-1}var l=n("cHpt");function a(Ae,ee,L){return Object(l.a)()?a=Reflect.construct:a=function(H,Z,ne){var ve=[null];ve.push.apply(ve,Z);var Ce=Function.bind.apply(H,ve),ze=new Ce;return ne&&Object(f.a)(ze,ne.prototype),ze},a.apply(null,arguments)}function i(Ae){var ee=typeof Map=="function"?new Map:void 0;return i=function(W){if(W===null||!d(W))return W;if(typeof W!="function")throw new TypeError("Super expression must either be null or a function");if(typeof ee!="undefined"){if(ee.has(W))return ee.get(W);ee.set(W,H)}function H(){return a(W,arguments,Object(p.a)(this).constructor)}return H.prototype=Object.create(W.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),Object(f.a)(H,W)},i(Ae)}var t=n("w4Tj"),o=n("yKVA"),e=n("879j"),u=n("jrin"),r=n("fWQN"),s=n("mtLc");function c(Ae){return Ae&&Ae.__esModule&&Object.prototype.hasOwnProperty.call(Ae,"default")?Ae.default:Ae}var h={exports:{}};(function(Ae,ee){(function(L){var W=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,H=/^(?=([^\/?#]*))\1([^]*)$/,Z=/(?:\/|^)\.(?=\/)/g,ne=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,ve={buildAbsoluteURL:function(ze,st,gt){if(gt=gt||{},ze=ze.trim(),st=st.trim(),!st){if(!gt.alwaysNormalize)return ze;var tr=ve.parseURL(ze);if(!tr)throw new Error("Error trying to parse base URL.");return tr.path=ve.normalizePath(tr.path),ve.buildURLFromParts(tr)}var Or=ve.parseURL(st);if(!Or)throw new Error("Error trying to parse relative URL.");if(Or.scheme)return gt.alwaysNormalize?(Or.path=ve.normalizePath(Or.path),ve.buildURLFromParts(Or)):st;var Sr=ve.parseURL(ze);if(!Sr)throw new Error("Error trying to parse base URL.");if(!Sr.netLoc&&Sr.path&&Sr.path[0]!=="/"){var Wr=H.exec(Sr.path);Sr.netLoc=Wr[1],Sr.path=Wr[2]}Sr.netLoc&&!Sr.path&&(Sr.path="/");var $r={scheme:Sr.scheme,netLoc:Or.netLoc,path:null,params:Or.params,query:Or.query,fragment:Or.fragment};if(!Or.netLoc&&($r.netLoc=Sr.netLoc,Or.path[0]!=="/"))if(!Or.path)$r.path=Sr.path,Or.params||($r.params=Sr.params,Or.query||($r.query=Sr.query));else{var Ln=Sr.path,Mn=Ln.substring(0,Ln.lastIndexOf("/")+1)+Or.path;$r.path=ve.normalizePath(Mn)}return $r.path===null&&($r.path=gt.alwaysNormalize?ve.normalizePath(Or.path):Or.path),ve.buildURLFromParts($r)},parseURL:function(ze){var st=W.exec(ze);return st?{scheme:st[1]||"",netLoc:st[2]||"",path:st[3]||"",params:st[4]||"",query:st[5]||"",fragment:st[6]||""}:null},normalizePath:function(ze){for(ze=ze.split("").reverse().join("").replace(Z,"");ze.length!==(ze=ze.replace(ne,"")).length;);return ze.split("").reverse().join("")},buildURLFromParts:function(ze){return ze.scheme+ze.netLoc+ze.path+ze.params+ze.query+ze.fragment}};Ae.exports=ve})()})(h);var v=h.exports;function A(Ae,ee){var L=Object.keys(Ae);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(Ae);ee&&(W=W.filter(function(H){return Object.getOwnPropertyDescriptor(Ae,H).enumerable})),L.push.apply(L,W)}return L}function b(Ae){for(var ee=1;ee<arguments.length;ee++){var L=arguments[ee]!=null?arguments[ee]:{};ee%2?A(Object(L),!0).forEach(function(W){x(Ae,W,L[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ae,Object.getOwnPropertyDescriptors(L)):A(Object(L)).forEach(function(W){Object.defineProperty(Ae,W,Object.getOwnPropertyDescriptor(L,W))})}return Ae}function x(Ae,ee,L){return ee=_(ee),ee in Ae?Object.defineProperty(Ae,ee,{value:L,enumerable:!0,configurable:!0,writable:!0}):Ae[ee]=L,Ae}function E(){return E=Object.assign?Object.assign.bind():function(Ae){for(var ee=1;ee<arguments.length;ee++){var L=arguments[ee];for(var W in L)Object.prototype.hasOwnProperty.call(L,W)&&(Ae[W]=L[W])}return Ae},E.apply(this,arguments)}function T(Ae,ee){if(typeof Ae!="object"||Ae===null)return Ae;var L=Ae[Symbol.toPrimitive];if(L!==void 0){var W=L.call(Ae,ee||"default");if(typeof W!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ee==="string"?String:Number)(Ae)}function _(Ae){var ee=T(Ae,"string");return typeof ee=="symbol"?ee:String(ee)}var C=Number.isFinite||function(Ae){return typeof Ae=="number"&&isFinite(Ae)},w=function(Ae){return Ae.MEDIA_ATTACHING="hlsMediaAttaching",Ae.MEDIA_ATTACHED="hlsMediaAttached",Ae.MEDIA_DETACHING="hlsMediaDetaching",Ae.MEDIA_DETACHED="hlsMediaDetached",Ae.BUFFER_RESET="hlsBufferReset",Ae.BUFFER_CODECS="hlsBufferCodecs",Ae.BUFFER_CREATED="hlsBufferCreated",Ae.BUFFER_APPENDING="hlsBufferAppending",Ae.BUFFER_APPENDED="hlsBufferAppended",Ae.BUFFER_EOS="hlsBufferEos",Ae.BUFFER_FLUSHING="hlsBufferFlushing",Ae.BUFFER_FLUSHED="hlsBufferFlushed",Ae.MANIFEST_LOADING="hlsManifestLoading",Ae.MANIFEST_LOADED="hlsManifestLoaded",Ae.MANIFEST_PARSED="hlsManifestParsed",Ae.LEVEL_SWITCHING="hlsLevelSwitching",Ae.LEVEL_SWITCHED="hlsLevelSwitched",Ae.LEVEL_LOADING="hlsLevelLoading",Ae.LEVEL_LOADED="hlsLevelLoaded",Ae.LEVEL_UPDATED="hlsLevelUpdated",Ae.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",Ae.LEVELS_UPDATED="hlsLevelsUpdated",Ae.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",Ae.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",Ae.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",Ae.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",Ae.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",Ae.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",Ae.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",Ae.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",Ae.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",Ae.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",Ae.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",Ae.CUES_PARSED="hlsCuesParsed",Ae.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",Ae.INIT_PTS_FOUND="hlsInitPtsFound",Ae.FRAG_LOADING="hlsFragLoading",Ae.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",Ae.FRAG_LOADED="hlsFragLoaded",Ae.FRAG_DECRYPTED="hlsFragDecrypted",Ae.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",Ae.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",Ae.FRAG_PARSING_METADATA="hlsFragParsingMetadata",Ae.FRAG_PARSED="hlsFragParsed",Ae.FRAG_BUFFERED="hlsFragBuffered",Ae.FRAG_CHANGED="hlsFragChanged",Ae.FPS_DROP="hlsFpsDrop",Ae.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",Ae.ERROR="hlsError",Ae.DESTROYING="hlsDestroying",Ae.KEY_LOADING="hlsKeyLoading",Ae.KEY_LOADED="hlsKeyLoaded",Ae.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",Ae.BACK_BUFFER_REACHED="hlsBackBufferReached",Ae}({}),O=function(Ae){return Ae.NETWORK_ERROR="networkError",Ae.MEDIA_ERROR="mediaError",Ae.KEY_SYSTEM_ERROR="keySystemError",Ae.MUX_ERROR="muxError",Ae.OTHER_ERROR="otherError",Ae}({}),I=function(Ae){return Ae.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",Ae.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",Ae.KEY_SYSTEM_NO_SESSION="keySystemNoSession",Ae.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",Ae.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",Ae.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",Ae.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",Ae.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",Ae.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",Ae.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",Ae.MANIFEST_LOAD_ERROR="manifestLoadError",Ae.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",Ae.MANIFEST_PARSING_ERROR="manifestParsingError",Ae.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",Ae.LEVEL_EMPTY_ERROR="levelEmptyError",Ae.LEVEL_LOAD_ERROR="levelLoadError",Ae.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",Ae.LEVEL_PARSING_ERROR="levelParsingError",Ae.LEVEL_SWITCH_ERROR="levelSwitchError",Ae.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",Ae.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",Ae.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",Ae.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",Ae.FRAG_LOAD_ERROR="fragLoadError",Ae.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",Ae.FRAG_DECRYPT_ERROR="fragDecryptError",Ae.FRAG_PARSING_ERROR="fragParsingError",Ae.FRAG_GAP="fragGap",Ae.REMUX_ALLOC_ERROR="remuxAllocError",Ae.KEY_LOAD_ERROR="keyLoadError",Ae.KEY_LOAD_TIMEOUT="keyLoadTimeOut",Ae.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",Ae.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",Ae.BUFFER_APPEND_ERROR="bufferAppendError",Ae.BUFFER_APPENDING_ERROR="bufferAppendingError",Ae.BUFFER_STALLED_ERROR="bufferStalledError",Ae.BUFFER_FULL_ERROR="bufferFullError",Ae.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",Ae.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",Ae.INTERNAL_EXCEPTION="internalException",Ae.INTERNAL_ABORTED="aborted",Ae.UNKNOWN="unknown",Ae}({}),k=function(){},M={trace:k,debug:k,log:k,warn:k,info:k,error:k},U=M;function P(Ae){var ee=self.console[Ae];return ee?ee.bind(self.console,"[".concat(Ae,"] >")):k}function X(Ae){for(var ee=arguments.length,L=new Array(ee>1?ee-1:0),W=1;W<ee;W++)L[W-1]=arguments[W];L.forEach(function(H){U[H]=Ae[H]?Ae[H].bind(Ae):P(H)})}function F(Ae,ee){if(self.console&&Ae===!0||typeof Ae=="object"){X(Ae,"debug","log","info","warn","error");try{U.log('Debug logs enabled for "'.concat(ee,'" in hls.js version ',"1.4.12"))}catch(L){U=M}}else U=M}var j=U,K=/^(\d+)x(\d+)$/,z=/(.+?)=(".*?"|.*?)(?:,|$)/g,V=function(){function Ae(ee){Object(r.a)(this,Ae),typeof ee=="string"&&(ee=Ae.parseAttrList(ee));for(var L in ee)ee.hasOwnProperty(L)&&(L.substring(0,2)==="X-"&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(L)),this[L]=ee[L])}return Object(s.a)(Ae,[{key:"decimalInteger",value:function(L){var W=parseInt(this[L],10);return W>Number.MAX_SAFE_INTEGER?Infinity:W}},{key:"hexadecimalInteger",value:function(L){if(this[L]){var W=(this[L]||"0x").slice(2);W=(W.length&1?"0":"")+W;for(var H=new Uint8Array(W.length/2),Z=0;Z<W.length/2;Z++)H[Z]=parseInt(W.slice(Z*2,Z*2+2),16);return H}else return null}},{key:"hexadecimalIntegerAsNumber",value:function(L){var W=parseInt(this[L],16);return W>Number.MAX_SAFE_INTEGER?Infinity:W}},{key:"decimalFloatingPoint",value:function(L){return parseFloat(this[L])}},{key:"optionalFloat",value:function(L,W){var H=this[L];return H?parseFloat(H):W}},{key:"enumeratedString",value:function(L){return this[L]}},{key:"bool",value:function(L){return this[L]==="YES"}},{key:"decimalResolution",value:function(L){var W=K.exec(this[L]);return W===null?void 0:{width:parseInt(W[1],10),height:parseInt(W[2],10)}}}],[{key:"parseAttrList",value:function(L){var W,H={},Z='"';for(z.lastIndex=0;(W=z.exec(L))!==null;){var ne=W[2];ne.indexOf(Z)===0&&ne.lastIndexOf(Z)===ne.length-1&&(ne=ne.slice(1,-1));var ve=W[1].trim();H[ve]=ne}return H}}]),Ae}();function Q(Ae){return Ae!=="ID"&&Ae!=="CLASS"&&Ae!=="START-DATE"&&Ae!=="DURATION"&&Ae!=="END-DATE"&&Ae!=="END-ON-NEXT"}function G(Ae){return Ae==="SCTE35-OUT"||Ae==="SCTE35-IN"}var te=function(){function Ae(ee,L){if(Object(r.a)(this,Ae),this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,L){var W=L.attr;for(var H in W)if(Object.prototype.hasOwnProperty.call(ee,H)&&ee[H]!==W[H]){j.warn('DATERANGE tag attribute: "'.concat(H,'" does not match for tags with ID: "').concat(ee.ID,'"')),this._badValueForSameId=H;break}ee=E(new V({}),W,ee)}if(this.attr=ee,this._startDate=new Date(ee["START-DATE"]),"END-DATE"in this.attr){var Z=new Date(this.attr["END-DATE"]);C(Z.getTime())&&(this._endDate=Z)}}return Object(s.a)(Ae,[{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 L=this.duration;return L!==null?new Date(this._startDate.getTime()+L*1e3):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var L=this.attr.decimalFloatingPoint("DURATION");if(C(L))return L}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&C(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),Ae}(),q=Object(s.a)(function Ae(){Object(r.a)(this,Ae),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}}),se={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"},re=function(){function Ae(ee){var L;Object(r.a)(this,Ae),this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(L={},Object(u.a)(L,se.AUDIO,null),Object(u.a)(L,se.VIDEO,null),Object(u.a)(L,se.AUDIOVIDEO,null),L),this.baseurl=ee}return Object(s.a)(Ae,[{key:"setByteRange",value:function(L,W){var H=L.split("@",2),Z=[];H.length===1?Z[0]=W?W.byteRangeEndOffset:0:Z[0]=parseInt(H[1]),Z[1]=parseInt(H[0])+Z[0],this._byteRange=Z}},{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=v.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(L){this._url=L}}]),Ae}(),we=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this,H),Z._decryptdata=null,Z.rawProgramDateTime=null,Z.programDateTime=null,Z.tagList=[],Z.duration=0,Z.sn=0,Z.levelkeys=void 0,Z.type=void 0,Z.loader=null,Z.keyLoader=null,Z.level=-1,Z.cc=0,Z.startPTS=void 0,Z.endPTS=void 0,Z.startDTS=void 0,Z.endDTS=void 0,Z.start=0,Z.deltaPTS=void 0,Z.maxStartPTS=void 0,Z.minEndPTS=void 0,Z.stats=new q,Z.urlId=0,Z.data=void 0,Z.bitrateTest=!1,Z.title=null,Z.initSegment=null,Z.endList=void 0,Z.gap=void 0,Z.type=W,Z}return Object(s.a)(L,[{key:"decryptdata",get:function(){var H=this.levelkeys;if(!H&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var Z=this.levelkeys.identity;if(Z)this._decryptdata=Z.getDecryptData(this.sn);else{var ne=Object.keys(this.levelkeys);if(ne.length===1)return this._decryptdata=this.levelkeys[ne[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!C(this.programDateTime))return null;var H=C(this.duration)?this.duration:0;return this.programDateTime+H*1e3}},{key:"encrypted",get:function(){var H;if((H=this._decryptdata)!=null&&H.encrypted)return!0;if(this.levelkeys){var Z=Object.keys(this.levelkeys),ne=Z.length;if(ne>1||ne===1&&this.levelkeys[Z[0]].encrypted)return!0}return!1}},{key:"setKeyFormat",value:function(H){if(this.levelkeys){var Z=this.levelkeys[H];Z&&!this._decryptdata&&(this._decryptdata=Z.getDecryptData(this.sn))}}},{key:"abortRequests",value:function(){var H,Z;(H=this.loader)==null||H.abort(),(Z=this.keyLoader)==null||Z.abort()}},{key:"setElementaryStreamInfo",value:function(H,Z,ne,ve,Ce){var ze=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,st=this.elementaryStreams,gt=st[H];if(!gt){st[H]={startPTS:Z,endPTS:ne,startDTS:ve,endDTS:Ce,partial:ze};return}gt.startPTS=Math.min(gt.startPTS,Z),gt.endPTS=Math.max(gt.endPTS,ne),gt.startDTS=Math.min(gt.startDTS,ve),gt.endDTS=Math.max(gt.endDTS,Ce)}},{key:"clearElementaryStreamInfo",value:function(){var H=this.elementaryStreams;H[se.AUDIO]=null,H[se.VIDEO]=null,H[se.AUDIOVIDEO]=null}}]),L}(re),Oe=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z,ne,ve){var Ce;Object(r.a)(this,L),Ce=ee.call(this,Z),Ce.fragOffset=0,Ce.duration=0,Ce.gap=!1,Ce.independent=!1,Ce.relurl=void 0,Ce.fragment=void 0,Ce.index=void 0,Ce.stats=new q,Ce.duration=W.decimalFloatingPoint("DURATION"),Ce.gap=W.bool("GAP"),Ce.independent=W.bool("INDEPENDENT"),Ce.relurl=W.enumeratedString("URI"),Ce.fragment=H,Ce.index=ne;var ze=W.enumeratedString("BYTERANGE");return ze&&Ce.setByteRange(ze,ve),ve&&(Ce.fragOffset=ve.fragOffset+ve.duration),Ce}return Object(s.a)(L,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var H=this.elementaryStreams;return!!(H.audio||H.video||H.audiovideo)}}]),L}(re),Me=10,Qe=function(){function Ae(ee){Object(r.a)(this,Ae),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.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.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=ee}return Object(s.a)(Ae,[{key:"reloaded",value:function(L){if(!L){this.advanced=!0,this.updated=!0;return}var W=this.lastPartSn-L.lastPartSn,H=this.lastPartIndex-L.lastPartIndex;this.updated=this.endSN!==L.endSN||!!H||!!W||!this.live,this.advanced=this.endSN>L.endSN||W>0||W===0&&H>0,this.updated||this.advanced?this.misses=Math.floor(L.misses*.6):this.misses=L.misses+1,this.availabilityDelay=L.availabilityDelay}},{key:"hasProgramDateTime",get:function(){return this.fragments.length?C(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||Me}},{key:"drift",get:function(){var L=this.driftEndTime-this.driftStartTime;if(L>0){var W=this.driftEnd-this.driftStart;return W*1e3/L}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var L;return(L=this.fragments)!=null&&L.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 L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),Ae}();function Ve(Ae){return Uint8Array.from(atob(Ae),function(ee){return ee.charCodeAt(0)})}function dt(Ae){var ee=et(Ae).subarray(0,16),L=new Uint8Array(16);return L.set(ee,16-ee.length),L}function Fe(Ae){var ee=function(W,H,Z){var ne=W[H];W[H]=W[Z],W[Z]=ne};ee(Ae,0,3),ee(Ae,1,2),ee(Ae,4,5),ee(Ae,6,7)}function ue(Ae){var ee=Ae.split(":"),L=null;if(ee[0]==="data"&&ee.length===2){var W=ee[1].split(";"),H=W[W.length-1].split(",");if(H.length===2){var Z=H[0]==="base64",ne=H[1];Z?(W.splice(-1,1),L=Ve(ne)):L=dt(ne)}}return L}function et(Ae){return Uint8Array.from(unescape(encodeURIComponent(Ae)),function(ee){return ee.charCodeAt(0)})}var he={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},J={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Y(Ae){switch(Ae){case J.FAIRPLAY:return he.FAIRPLAY;case J.PLAYREADY:return he.PLAYREADY;case J.WIDEVINE:return he.WIDEVINE;case J.CLEARKEY:return he.CLEARKEY}}var $={WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function de(Ae){if(Ae===$.WIDEVINE)return he.WIDEVINE}function be(Ae){switch(Ae){case he.FAIRPLAY:return J.FAIRPLAY;case he.PLAYREADY:return J.PLAYREADY;case he.WIDEVINE:return J.WIDEVINE;case he.CLEARKEY:return J.CLEARKEY}}function Te(Ae){var ee=Ae.drmSystems,L=Ae.widevineLicenseUrl,W=ee?[he.FAIRPLAY,he.WIDEVINE,he.PLAYREADY,he.CLEARKEY].filter(function(H){return!!ee[H]}):[];return!W[he.WIDEVINE]&&L&&W.push(he.WIDEVINE),W}var Be=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function fe(Ae,ee,L,W){var H;switch(Ae){case he.FAIRPLAY:H=["cenc","sinf"];break;case he.WIDEVINE:case he.PLAYREADY:H=["cenc"];break;case he.CLEARKEY:H=["cenc","keyids"];break;default:throw new Error("Unknown key-system: ".concat(Ae))}return xe(H,ee,L,W)}function xe(Ae,ee,L,W){var H={initDataTypes:Ae,persistentState:W.persistentState||"not-allowed",distinctiveIdentifier:W.distinctiveIdentifier||"not-allowed",sessionTypes:W.sessionTypes||[W.sessionType||"temporary"],audioCapabilities:ee.map(function(Z){return{contentType:'audio/mp4; codecs="'.concat(Z,'"'),robustness:W.audioRobustness||"",encryptionScheme:W.audioEncryptionScheme||null}}),videoCapabilities:L.map(function(Z){return{contentType:'video/mp4; codecs="'.concat(Z,'"'),robustness:W.videoRobustness||"",encryptionScheme:W.videoEncryptionScheme||null}})};return[H]}function ke(Ae,ee,L){return Uint8Array.prototype.slice?Ae.slice(ee,L):new Uint8Array(Array.prototype.slice.call(Ae,ee,L))}var nt=function(ee,L){return L+10<=ee.length&&(ee[L]===73&&ee[L+1]===68&&ee[L+2]===51&&(ee[L+3]<255&&ee[L+4]<255&&(ee[L+6]<128&&ee[L+7]<128&&ee[L+8]<128&&ee[L+9]<128)))},Ct=function(ee,L){return L+10<=ee.length&&(ee[L]===51&&ee[L+1]===68&&ee[L+2]===73&&(ee[L+3]<255&&ee[L+4]<255&&(ee[L+6]<128&&ee[L+7]<128&&ee[L+8]<128&&ee[L+9]<128)))},pt=function(ee,L){for(var W=L,H=0;nt(ee,L);){H+=10;var Z=He(ee,L+6);H+=Z,Ct(ee,L+10)&&(H+=10),L+=H}return H>0?ee.subarray(W,W+H):void 0},He=function(ee,L){var W=0;return W=(ee[L]&127)<<21,W|=(ee[L+1]&127)<<14,W|=(ee[L+2]&127)<<7,W|=ee[L+3]&127,W},nr=function(ee,L){return nt(ee,L)&&He(ee,L+6)+10<=ee.length-L},ht=function(ee){for(var L=Qt(ee),W=0;W<L.length;W++){var H=L[W];if(Gt(H))return oe(H)}return},Gt=function(ee){return ee&&ee.key==="PRIV"&&ee.info==="com.apple.streaming.transportStreamTimestamp"},pr=function(ee){var L=String.fromCharCode(ee[0],ee[1],ee[2],ee[3]),W=He(ee,4),H=10;return{type:L,size:W,data:ee.subarray(H,H+W)}},Qt=function(ee){for(var L=0,W=[];nt(ee,L);){var H=He(ee,L+6);L+=10;for(var Z=L+H;L+8<Z;){var ne=pr(ee.subarray(L)),ve=Ht(ne);ve&&W.push(ve),L+=ne.size+10}Ct(ee,L)&&(L+=10)}return W},Ht=function(ee){return ee.type==="PRIV"?Jt(ee):ee.type[0]==="W"?pe(ee):Ge(ee)},Jt=function(ee){if(ee.size<2)return;var L=ct(ee.data,!0),W=new Uint8Array(ee.data.subarray(L.length+1));return{key:ee.type,info:L,data:W.buffer}},Ge=function(ee){if(ee.size<2)return;if(ee.type==="TXXX"){var L=1,W=ct(ee.data.subarray(L),!0);L+=W.length+1;var H=ct(ee.data.subarray(L));return{key:ee.type,info:W,data:H}}var Z=ct(ee.data.subarray(1));return{key:ee.type,data:Z}},pe=function(ee){if(ee.type==="WXXX"){if(ee.size<2)return;var L=1,W=ct(ee.data.subarray(L),!0);L+=W.length+1;var H=ct(ee.data.subarray(L));return{key:ee.type,info:W,data:H}}var Z=ct(ee.data);return{key:ee.type,data:Z}},oe=function(ee){if(ee.data.byteLength===8){var L=new Uint8Array(ee.data),W=L[3]&1,H=(L[4]<<23)+(L[5]<<15)+(L[6]<<7)+L[7];return H/=45,W&&(H+=4772185884e-2),Math.round(H)}return},ct=function(ee){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=me();if(W){var H=W.decode(ee);if(L){var Z=H.indexOf("\0");return Z!==-1?H.substring(0,Z):H}return H.replace(/\0/g,"")}for(var ne=ee.length,ve,Ce,ze,st="",gt=0;gt<ne;){if(ve=ee[gt++],ve===0&&L)return st;if(ve===0||ve===3)continue;switch(ve>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:st+=String.fromCharCode(ve);break;case 12:case 13:Ce=ee[gt++],st+=String.fromCharCode((ve&31)<<6|Ce&63);break;case 14:Ce=ee[gt++],ze=ee[gt++],st+=String.fromCharCode((ve&15)<<12|(Ce&63)<<6|(ze&63)<<0);break}}return st},qe;function me(){return!qe&&typeof self.TextDecoder!="undefined"&&(qe=new self.TextDecoder("utf-8")),qe}var Kt={hexDump:function(ee){for(var L="",W=0;W<ee.length;W++){var H=ee[W].toString(16);H.length<2&&(H="0"+H),L+=H}return L}},vr=Math.pow(2,32)-1,bt=[].push,or={video:1,audio:2,id3:3,text:4};function _t(Ae){return String.fromCharCode.apply(null,Ae)}function jt(Ae,ee){var L=Ae[ee]<<8|Ae[ee+1];return L<0?65536+L:L}function ut(Ae,ee){var L=St(Ae,ee);return L<0?4294967296+L:L}function St(Ae,ee){return Ae[ee]<<24|Ae[ee+1]<<16|Ae[ee+2]<<8|Ae[ee+3]}function mt(Ae,ee,L){Ae[ee]=L>>24,Ae[ee+1]=L>>16&255,Ae[ee+2]=L>>8&255,Ae[ee+3]=L&255}function lt(Ae,ee){var L=[];if(!ee.length)return L;for(var W=Ae.byteLength,H=0;H<W;){var Z=ut(Ae,H),ne=_t(Ae.subarray(H+4,H+8)),ve=Z>1?H+Z:W;if(ne===ee[0])if(ee.length===1)L.push(Ae.subarray(H+8,ve));else{var Ce=lt(Ae.subarray(H+8,ve),ee.slice(1));Ce.length&&bt.apply(L,Ce)}H=ve}return L}function tt(Ae){var ee=[],L=Ae[0],W=8,H=ut(Ae,W);W+=4;var Z=0,ne=0;L===0?W+=8:W+=16,W+=2;var ve=Ae.length+ne,Ce=jt(Ae,W);W+=2;for(var ze=0;ze<Ce;ze++){var st=W,gt=ut(Ae,st);st+=4;var tr=gt&2147483647,Or=(gt&2147483648)>>>31;if(Or===1)return j.warn("SIDX has hierarchical references (not supported)"),null;var Sr=ut(Ae,st);st+=4,ee.push({referenceSize:tr,subsegmentDuration:Sr,info:{duration:Sr/H,start:ve,end:ve+tr-1}}),ve+=tr,st+=4,W=st}return{earliestPresentationTime:Z,timescale:H,version:L,referencesCount:Ce,references:ee}}function Cr(Ae){for(var ee=[],L=lt(Ae,["moov","trak"]),W=0;W<L.length;W++){var H=L[W],Z=lt(H,["tkhd"])[0];if(Z){var ne=Z[0],ve=ne===0?12:20,Ce=ut(Z,ve),ze=lt(H,["mdia","mdhd"])[0];if(ze){ne=ze[0],ve=ne===0?12:20;var st=ut(ze,ve),gt=lt(H,["mdia","hdlr"])[0];if(gt){var tr=_t(gt.subarray(8,12)),Or={soun:se.AUDIO,vide:se.VIDEO}[tr];if(Or){var Sr=lt(H,["mdia","minf","stbl","stsd"])[0],Wr=void 0;Sr&&(Wr=_t(Sr.subarray(12,16))),ee[Ce]={timescale:st,type:Or},ee[Or]={timescale:st,id:Ce,codec:Wr}}}}}}var $r=lt(Ae,["moov","mvex","trex"]);return $r.forEach(function(Ln){var Mn=ut(Ln,4),Zn=ee[Mn];Zn&&(Zn.default={duration:ut(Ln,12),flags:ut(Ln,20)})}),ee}function nn(Ae,ee){if(!Ae||!ee)return Ae;var L=ee.keyId;if(L&&ee.isCommonEncryption){var W=lt(Ae,["moov","trak"]);W.forEach(function(H){var Z=lt(H,["mdia","minf","stbl","stsd"])[0],ne=Z.subarray(8),ve=lt(ne,["enca"]),Ce=ve.length>0;Ce||(ve=lt(ne,["encv"])),ve.forEach(function(ze){var st=Ce?ze.subarray(28):ze.subarray(78),gt=lt(st,["sinf"]);gt.forEach(function(tr){var Or=mn(tr);if(Or){var Sr=Or.subarray(8,24);Sr.some(function(Wr){return Wr!==0})||(j.log("[eme] Patching keyId in 'enc".concat(Ce?"a":"v",">sinf>>tenc' box: ").concat(Kt.hexDump(Sr)," -> ").concat(Kt.hexDump(L))),Or.set(L,8))}})})})}return Ae}function mn(Ae){var ee=lt(Ae,["schm"])[0];if(ee){var L=_t(ee.subarray(4,8));if(L==="cbcs"||L==="cenc")return lt(Ae,["schi","tenc"])[0]}return j.error("[eme] missing 'schm' box"),null}function Bn(Ae,ee){return lt(ee,["moof","traf"]).reduce(function(L,W){var H=lt(W,["tfdt"])[0],Z=H[0],ne=lt(W,["tfhd"]).reduce(function(ve,Ce){var ze=ut(Ce,4),st=Ae[ze];if(st){var gt=ut(H,4);if(Z===1){if(gt===vr)return j.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),ve;gt*=vr+1,gt+=ut(H,8)}var tr=st.timescale||9e4,Or=gt/tr;if(isFinite(Or)&&(ve===null||Or<ve))return Or}return ve},null);return ne!==null&&isFinite(ne)&&(L===null||ne<L)?ne:L},null)}function oi(Ae,ee){for(var L=0,W=0,H=0,Z=lt(Ae,["moof","traf"]),ne=0;ne<Z.length;ne++){var ve=Z[ne],Ce=lt(ve,["tfhd"])[0],ze=ut(Ce,4),st=ee[ze];if(!st)continue;var gt=st.default,tr=ut(Ce,0)|(gt==null?void 0:gt.flags),Or=gt==null?void 0:gt.duration;tr&8&&(tr&2?Or=ut(Ce,12):Or=ut(Ce,8));for(var Sr=st.timescale||9e4,Wr=lt(ve,["trun"]),$r=0;$r<Wr.length;$r++){if(L=wn(Wr[$r]),!L&&Or){var Ln=ut(Wr[$r],4);L=Or*Ln}st.type===se.VIDEO?W+=L/Sr:st.type===se.AUDIO&&(H+=L/Sr)}}if(W===0&&H===0){for(var Mn=0,Zn=lt(Ae,["sidx"]),xi=0;xi<Zn.length;xi++){var ua=tt(Zn[xi]);ua!=null&&ua.references&&(Mn+=ua.references.reduce(function(Gi,Zi){return Gi+Zi.info.duration||0},0))}return Mn}return W||H}function wn(Ae){var ee=ut(Ae,0),L=8;ee&1&&(L+=4),ee&4&&(L+=4);for(var W=0,H=ut(Ae,4),Z=0;Z<H;Z++){if(ee&256){var ne=ut(Ae,L);W+=ne,L+=4}ee&512&&(L+=4),ee&1024&&(L+=4),ee&2048&&(L+=4)}return W}function Rn(Ae,ee,L){lt(ee,["moof","traf"]).forEach(function(W){lt(W,["tfhd"]).forEach(function(H){var Z=ut(H,4),ne=Ae[Z];if(!ne)return;var ve=ne.timescale||9e4;lt(W,["tfdt"]).forEach(function(Ce){var ze=Ce[0],st=ut(Ce,4);if(ze===0)st-=L*ve,st=Math.max(st,0),mt(Ce,4,st);else{st*=Math.pow(2,32),st+=ut(Ce,8),st-=L*ve,st=Math.max(st,0);var gt=Math.floor(st/(vr+1)),tr=Math.floor(st%(vr+1));mt(Ce,4,gt),mt(Ce,8,tr)}})})})}function Zt(Ae){var ee={valid:null,remainder:null},L=lt(Ae,["moof"]);if(L){if(L.length<2)return ee.remainder=Ae,ee}else return ee;var W=L[L.length-1];return ee.valid=ke(Ae,0,W.byteOffset-8),ee.remainder=ke(Ae,W.byteOffset-8),ee}function Tt(Ae,ee){var L=new Uint8Array(Ae.length+ee.length);return L.set(Ae),L.set(ee,Ae.length),L}function De(Ae,ee){var L=[],W=ee.samples,H=ee.timescale,Z=ee.id,ne=!1,ve=lt(W,["moof"]);return ve.map(function(Ce){var ze=Ce.byteOffset-8,st=lt(Ce,["traf"]);st.map(function(gt){var tr=lt(gt,["tfdt"]).map(function(Or){var Sr=Or[0],Wr=ut(Or,4);return Sr===1&&(Wr*=Math.pow(2,32),Wr+=ut(Or,8)),Wr/H})[0];return tr!==void 0&&(Ae=tr),lt(gt,["tfhd"]).map(function(Or){var Sr=ut(Or,4),Wr=ut(Or,0)&16777215,$r=(Wr&1)!==0,Ln=(Wr&2)!==0,Mn=(Wr&8)!==0,Zn=0,xi=(Wr&16)!==0,ua=0,Gi=(Wr&32)!==0,Zi=8;Sr===Z&&($r&&(Zi+=8),Ln&&(Zi+=4),Mn&&(Zn=ut(Or,Zi),Zi+=4),xi&&(ua=ut(Or,Zi),Zi+=4),Gi&&(Zi+=4),ee.type==="video"&&(ne=Re(ee.codec)),lt(gt,["trun"]).map(function(ka){var Ga=ka[0],Ba=ut(ka,0)&16777215,xa=(Ba&1)!==0,Go=0,bs=(Ba&4)!==0,ys=(Ba&256)!==0,Ts=0,js=(Ba&512)!==0,ws=0,Hs=(Ba&1024)!==0,Ee=(Ba&2048)!==0,Ye=0,It=ut(ka,4),fr=8;xa&&(Go=ut(ka,fr),fr+=4),bs&&(fr+=4);for(var Ur=Go+ze,ln=0;ln<It;ln++){if(ys?(Ts=ut(ka,fr),fr+=4):Ts=Zn,js?(ws=ut(ka,fr),fr+=4):ws=ua,Hs&&(fr+=4),Ee&&(Ga===0?Ye=ut(ka,fr):Ye=St(ka,fr),fr+=4),ee.type===se.VIDEO)for(var Ue=0;Ue<ws;){var ae=ut(W,Ur);if(Ur+=4,Pe(ne,W[Ur])){var _e=W.subarray(Ur,Ur+ae);rt(_e,ne?2:1,Ae+Ye/H,L)}Ur+=ae,Ue+=ae+4}Ae+=Ts/H}}))})})}),L}function Re(Ae){if(!Ae)return!1;var ee=Ae.indexOf("."),L=ee<0?Ae:Ae.substring(0,ee);return L==="hvc1"||L==="hev1"||L==="dvh1"||L==="dvhe"}function Pe(Ae,ee){if(Ae){var L=ee>>1&63;return L===39||L===40}else{var W=ee&31;return W===6}}function rt(Ae,ee,L,W){var H=wt(Ae),Z=0;Z+=ee;for(var ne=0,ve=0,Ce=!1,ze=0;Z<H.length;){ne=0;do{if(Z>=H.length)break;ze=H[Z++],ne+=ze}while(ze===255);ve=0;do{if(Z>=H.length)break;ze=H[Z++],ve+=ze}while(ze===255);var st=H.length-Z;if(!Ce&&ne===4&&Z<H.length){Ce=!0;var gt=H[Z++];if(gt===181){var tr=jt(H,Z);if(Z+=2,tr===49){var Or=ut(H,Z);if(Z+=4,Or===1195456820){var Sr=H[Z++];if(Sr===3){var Wr=H[Z++],$r=31&Wr,Ln=64&Wr,Mn=Ln?2+$r*3:0,Zn=new Uint8Array(Mn);if(Ln){Zn[0]=Wr;for(var xi=1;xi<Mn;xi++)Zn[xi]=H[Z++]}W.push({type:Sr,payloadType:ne,pts:L,bytes:Zn})}}}}}else if(ne===5&&ve<st){if(Ce=!0,ve>16){for(var ua=[],Gi=0;Gi<16;Gi++){var Zi=H[Z++].toString(16);ua.push(Zi.length==1?"0"+Zi:Zi),(Gi===3||Gi===5||Gi===7||Gi===9)&&ua.push("-")}for(var ka=ve-16,Ga=new Uint8Array(ka),Ba=0;Ba<ka;Ba++)Ga[Ba]=H[Z++];W.push({payloadType:ne,pts:L,uuid:ua.join(""),userData:ct(Ga),userDataBytes:Ga})}}else if(ve<st)Z+=ve;else if(ve>st)break}}function wt(Ae){for(var ee=Ae.byteLength,L=[],W=1;W<ee-2;)Ae[W]===0&&Ae[W+1]===0&&Ae[W+2]===3?(L.push(W+2),W+=2):W++;if(L.length===0)return Ae;var H=ee-L.length,Z=new Uint8Array(H),ne=0;for(W=0;W<H;ne++,W++)ne===L[0]&&(ne++,L.shift()),Z[W]=Ae[ne];return Z}function Ot(Ae){var ee=Ae[0],L="",W="",H=0,Z=0,ne=0,ve=0,Ce=0,ze=0;if(ee===0){for(;_t(Ae.subarray(ze,ze+1))!=="\0";)L+=_t(Ae.subarray(ze,ze+1)),ze+=1;for(L+=_t(Ae.subarray(ze,ze+1)),ze+=1;_t(Ae.subarray(ze,ze+1))!=="\0";)W+=_t(Ae.subarray(ze,ze+1)),ze+=1;W+=_t(Ae.subarray(ze,ze+1)),ze+=1,H=ut(Ae,12),Z=ut(Ae,16),ve=ut(Ae,20),Ce=ut(Ae,24),ze=28}else if(ee===1){ze+=4,H=ut(Ae,ze),ze+=4;var st=ut(Ae,ze);ze+=4;var gt=ut(Ae,ze);for(ze+=4,ne=Math.pow(2,32)*st+gt,Number.isSafeInteger(ne)||(ne=Number.MAX_SAFE_INTEGER,j.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),ve=ut(Ae,ze),ze+=4,Ce=ut(Ae,ze),ze+=4;_t(Ae.subarray(ze,ze+1))!=="\0";)L+=_t(Ae.subarray(ze,ze+1)),ze+=1;for(L+=_t(Ae.subarray(ze,ze+1)),ze+=1;_t(Ae.subarray(ze,ze+1))!=="\0";)W+=_t(Ae.subarray(ze,ze+1)),ze+=1;W+=_t(Ae.subarray(ze,ze+1)),ze+=1}var tr=Ae.subarray(ze,Ae.byteLength);return{schemeIdUri:L,value:W,timeScale:H,presentationTime:ne,presentationTimeDelta:Z,eventDuration:ve,id:Ce,payload:tr}}function $t(Ae){for(var ee=arguments.length,L=new Array(ee>1?ee-1:0),W=1;W<ee;W++)L[W-1]=arguments[W];for(var H=L.length,Z=8,ne=H;ne--;)Z+=L[ne].byteLength;var ve=new Uint8Array(Z);for(ve[0]=Z>>24&255,ve[1]=Z>>16&255,ve[2]=Z>>8&255,ve[3]=Z&255,ve.set(Ae,4),ne=0,Z=8;ne<H;ne++)ve.set(L[ne],Z),Z+=L[ne].byteLength;return ve}function Mr(Ae,ee,L){if(Ae.byteLength!==16)throw new RangeError("Invalid system id");var W,H;if(ee){W=1,H=new Uint8Array(ee.length*16);for(var Z=0;Z<ee.length;Z++){var ne=ee[Z];if(ne.byteLength!==16)throw new RangeError("Invalid key");H.set(ne,Z*16)}}else W=0,H=new Uint8Array;var ve;W>0?(ve=new Uint8Array(4),ee.length>0&&new DataView(ve.buffer).setUint32(0,ee.length,!1)):ve=new Uint8Array;var Ce=new Uint8Array(4);return L&&L.byteLength>0&&new DataView(Ce.buffer).setUint32(0,L.byteLength,!1),$t([112,115,115,104],new Uint8Array([W,0,0,0]),Ae,ve,H,Ce,L||new Uint8Array)}function Vr(Ae){if(!(Ae instanceof ArrayBuffer)||Ae.byteLength<32)return null;var ee={version:0,systemId:"",kids:null,data:null},L=new DataView(Ae),W=L.getUint32(0);if(Ae.byteLength!==W&&W>44)return null;var H=L.getUint32(4);if(H!==1886614376)return null;if(ee.version=L.getUint32(8)>>>24,ee.version>1)return null;ee.systemId=Kt.hexDump(new Uint8Array(Ae,12,16));var Z=L.getUint32(28);if(ee.version===0){if(W-32<Z)return null;ee.data=new Uint8Array(Ae,32,Z)}else if(ee.version===1){ee.kids=[];for(var ne=0;ne<Z;ne++)ee.kids.push(new Uint8Array(Ae,32+ne*16,16))}return ee}var hn={},Vt=function(){function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;Object(r.a)(this,Ae),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=ee,this.uri=L,this.keyFormat=W,this.keyFormatVersions=H,this.iv=Z,this.encrypted=ee?ee!=="NONE":!1,this.isCommonEncryption=this.encrypted&&ee!=="AES-128"}return Object(s.a)(Ae,[{key:"isSupported",value:function(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case J.FAIRPLAY:case J.WIDEVINE:case J.PLAYREADY:case J.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}},{key:"getDecryptData",value:function(L){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof L!="number"&&(this.method==="AES-128"&&!this.iv&&j.warn('missing IV for initialization segment with method="'.concat(this.method,'" - compliance issue')),L=0);var W=yt(L),H=new Ae(this.method,this.uri,"identity",this.keyFormatVersions,W);return H}var Z=ue(this.uri);if(Z)switch(this.keyFormat){case J.WIDEVINE:this.pssh=Z,Z.length>=22&&(this.keyId=Z.subarray(Z.length-22,Z.length-6));break;case J.PLAYREADY:{var ne=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Mr(ne,null,Z);var ve=new Uint16Array(Z.buffer,Z.byteOffset,Z.byteLength/2),Ce=String.fromCharCode.apply(null,Array.from(ve)),ze=Ce.substring(Ce.indexOf("<"),Ce.length),st=new DOMParser,gt=st.parseFromString(ze,"text/xml"),tr=gt.getElementsByTagName("KID")[0];if(tr){var Or=tr.childNodes[0]?tr.childNodes[0].nodeValue:tr.getAttribute("VALUE");if(Or){var Sr=Ve(Or).subarray(0,16);Fe(Sr),this.keyId=Sr}}break}default:{var Wr=Z.subarray(0,16);if(Wr.length!==16){var $r=new Uint8Array(16);$r.set(Wr,16-Wr.length),Wr=$r}this.keyId=Wr;break}}if(!this.keyId||this.keyId.byteLength!==16){var Ln=hn[this.uri];if(!Ln){var Mn=Object.keys(hn).length%Number.MAX_SAFE_INTEGER;Ln=new Uint8Array(16);var Zn=new DataView(Ln.buffer,12,4);Zn.setUint32(0,Mn),hn[this.uri]=Ln}this.keyId=Ln}return this}}],[{key:"clearKeyUriToKeyIdMap",value:function(){hn={}}}]),Ae}();function yt(Ae){for(var ee=new Uint8Array(16),L=12;L<16;L++)ee[L]=Ae>>8*(15-L)&255;return ee}var xt=/\{\$([a-zA-Z0-9-_]+)\}/g;function dr(Ae){return xt.test(Ae)}function er(Ae,ee,L){if(Ae.variableList!==null||Ae.hasVariableRefs)for(var W=L.length;W--;){var H=L[W],Z=ee[H];Z&&(ee[H]=Ut(Ae,Z))}}function Ut(Ae,ee){if(Ae.variableList!==null||Ae.hasVariableRefs){var L=Ae.variableList;return ee.replace(xt,function(W){var H=W.substring(2,W.length-1),Z=L==null?void 0:L[H];return Z===void 0?(Ae.playlistParsingError||(Ae.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'.concat(H,'"'))),W):Z})}return ee}function ir(Ae,ee,L){var W=Ae.variableList;W||(Ae.variableList=W={});var H,Z;if("QUERYPARAM"in ee){H=ee.QUERYPARAM;try{var ne=new self.URL(L).searchParams;if(ne.has(H))Z=ne.get(H);else throw new Error('"'.concat(H,'" does not match any query parameter in URI: "').concat(L,'"'))}catch(ve){Ae.playlistParsingError||(Ae.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: ".concat(ve.message)))}}else H=ee.NAME,Z=ee.VALUE;H in W?Ae.playlistParsingError||(Ae.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'.concat(H,'"'))):W[H]=Z||""}function Ft(Ae,ee,L){var W=ee.IMPORT;if(L&&W in L){var H=Ae.variableList;H||(Ae.variableList=H={}),H[W]=L[W]}else Ae.playlistParsingError||(Ae.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'.concat(W,'"')))}function rr(){return typeof self=="undefined"?void 0:self.MediaSource||self.WebKitMediaSource}var Kr={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,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}},Rr=rr();function kr(Ae,ee){var L=Kr[ee];return!!L&&L[Ae.slice(0,4)]===!0}function dn(Ae,ee){var L;return(L=Rr==null?void 0:Rr.isTypeSupported("".concat(ee||"video",'/mp4;codecs="').concat(Ae,'"')))!=null?L:!1}var yn=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,ri=/#EXT-X-MEDIA:(.*)/g,$n=/^#EXT(?:INF|-X-TARGETDURATION):/m,pi=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),_i=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|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("|")),Di=function(){function Ae(){Object(r.a)(this,Ae)}return Object(s.a)(Ae,null,[{key:"findGroup",value:function(L,W){for(var H=0;H<L.length;H++){var Z=L[H];if(Z.id===W)return Z}}},{key:"convertAVC1ToAVCOTI",value:function(L){var W=L.split(".");if(W.length>2){var H=W.shift()+".";return H+=parseInt(W.shift()).toString(16),H+=("000"+parseInt(W.shift()).toString(16)).slice(-4),H}return L}},{key:"resolve",value:function(L,W){return v.buildAbsoluteURL(W,L,{alwaysNormalize:!0})}},{key:"isMediaPlaylist",value:function(L){return $n.test(L)}},{key:"parseMasterPlaylist",value:function(L,W){var H=dr(L),Z={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:H},ne=[];yn.lastIndex=0;for(var ve;(ve=yn.exec(L))!=null;)if(ve[1]){var Ce,ze=new V(ve[1]);er(Z,ze,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var st=Ut(Z,ve[2]),gt={attrs:ze,bitrate:ze.decimalInteger("AVERAGE-BANDWIDTH")||ze.decimalInteger("BANDWIDTH"),name:ze.NAME,url:Ae.resolve(st,W)},tr=ze.decimalResolution("RESOLUTION");tr&&(gt.width=tr.width,gt.height=tr.height),Le((ze.CODECS||"").split(/[ ,]+/).filter(function(ua){return ua}),gt),gt.videoCodec&&gt.videoCodec.indexOf("avc1")!==-1&&(gt.videoCodec=Ae.convertAVC1ToAVCOTI(gt.videoCodec)),(Ce=gt.unknownCodecs)!=null&&Ce.length||ne.push(gt),Z.levels.push(gt)}else if(ve[3]){var Or=ve[3],Sr=ve[4];switch(Or){case"SESSION-DATA":{var Wr=new V(Sr);er(Z,Wr,["DATA-ID","LANGUAGE","VALUE","URI"]);var $r=Wr["DATA-ID"];$r&&(Z.sessionData===null&&(Z.sessionData={}),Z.sessionData[$r]=Wr);break}case"SESSION-KEY":{var Ln=Wi(Sr,W,Z);Ln.encrypted&&Ln.isSupported()?(Z.sessionKeys===null&&(Z.sessionKeys=[]),Z.sessionKeys.push(Ln)):j.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'.concat(Sr,'"'));break}case"DEFINE":{{var Mn=new V(Sr);er(Z,Mn,["NAME","VALUE","QUERYPARAM"]),ir(Z,Mn,W)}break}case"CONTENT-STEERING":{var Zn=new V(Sr);er(Z,Zn,["SERVER-URI","PATHWAY-ID"]),Z.contentSteering={uri:Ae.resolve(Zn["SERVER-URI"],W),pathwayId:Zn["PATHWAY-ID"]||"."};break}case"START":{Z.startTimeOffset=at(Sr);break}}}var xi=ne.length>0&&ne.length<Z.levels.length;return Z.levels=xi?ne:Z.levels,Z.levels.length===0&&(Z.playlistParsingError=new Error("no levels found in manifest")),Z}},{key:"parseMasterPlaylistMedia",value:function(L,W,H){var Z,ne={},ve=H.levels,Ce={AUDIO:ve.map(function($r){return{id:$r.attrs.AUDIO,audioCodec:$r.audioCodec}}),SUBTITLES:ve.map(function($r){return{id:$r.attrs.SUBTITLES,textCodec:$r.textCodec}}),"CLOSED-CAPTIONS":[]},ze=0;for(ri.lastIndex=0;(Z=ri.exec(L))!==null;){var st=new V(Z[1]),gt=st.TYPE;if(gt){var tr=Ce[gt],Or=ne[gt]||[];ne[gt]=Or,er(H,st,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var Sr={attrs:st,bitrate:0,id:ze++,groupId:st["GROUP-ID"]||"",instreamId:st["INSTREAM-ID"],name:st.NAME||st.LANGUAGE||"",type:gt,default:st.bool("DEFAULT"),autoselect:st.bool("AUTOSELECT"),forced:st.bool("FORCED"),lang:st.LANGUAGE,url:st.URI?Ae.resolve(st.URI,W):""};if(tr!=null&&tr.length){var Wr=Ae.findGroup(tr,Sr.groupId)||tr[0];je(Sr,Wr,"audioCodec"),je(Sr,Wr,"textCodec")}Or.push(Sr)}}return ne}},{key:"parseLevelPlaylist",value:function(L,W,H,Z,ne,ve){var Ce=new Qe(W),ze=Ce.fragments,st=null,gt=0,tr=0,Or=0,Sr=0,Wr=null,$r=new we(Z,W),Ln,Mn,Zn,xi=-1,ua=!1;for(pi.lastIndex=0,Ce.m3u8=L,Ce.hasVariableRefs=dr(L);(Ln=pi.exec(L))!==null;){ua&&(ua=!1,$r=new we(Z,W),$r.start=Or,$r.sn=gt,$r.cc=Sr,$r.level=H,st&&($r.initSegment=st,$r.rawProgramDateTime=st.rawProgramDateTime,st.rawProgramDateTime=null));var Gi=Ln[1];if(Gi){$r.duration=parseFloat(Gi);var Zi=(" "+Ln[2]).slice(1);$r.title=Zi||null,$r.tagList.push(Zi?["INF",Gi,Zi]:["INF",Gi])}else if(Ln[3]){if(C($r.duration)){$r.start=Or,Zn&&ot($r,Zn,Ce),$r.sn=gt,$r.level=H,$r.cc=Sr,$r.urlId=ne,ze.push($r);var ka=(" "+Ln[3]).slice(1);$r.relurl=Ut(Ce,ka),it($r,Wr),Wr=$r,Or+=$r.duration,gt++,tr=0,ua=!0}}else if(Ln[4]){var Ga=(" "+Ln[4]).slice(1);Wr?$r.setByteRange(Ga,Wr):$r.setByteRange(Ga)}else if(Ln[5])$r.rawProgramDateTime=(" "+Ln[5]).slice(1),$r.tagList.push(["PROGRAM-DATE-TIME",$r.rawProgramDateTime]),xi===-1&&(xi=ze.length);else{if(Ln=Ln[0].match(_i),!Ln){j.warn("No matches on slow regex match for level playlist!");continue}for(Mn=1;Mn<Ln.length&&!(typeof Ln[Mn]!="undefined");Mn++);var Ba=(" "+Ln[Mn]).slice(1),xa=(" "+Ln[Mn+1]).slice(1),Go=Ln[Mn+2]?(" "+Ln[Mn+2]).slice(1):"";switch(Ba){case"PLAYLIST-TYPE":Ce.type=xa.toUpperCase();break;case"MEDIA-SEQUENCE":gt=Ce.startSN=parseInt(xa);break;case"SKIP":{var bs=new V(xa);er(Ce,bs,["RECENTLY-REMOVED-DATERANGES"]);var ys=bs.decimalInteger("SKIPPED-SEGMENTS");if(C(ys)){Ce.skippedSegments=ys;for(var Ts=ys;Ts--;)ze.unshift(null);gt+=ys}var js=bs.enumeratedString("RECENTLY-REMOVED-DATERANGES");js&&(Ce.recentlyRemovedDateranges=js.split(" "));break}case"TARGETDURATION":Ce.targetduration=Math.max(parseInt(xa),1);break;case"VERSION":Ce.version=parseInt(xa);break;case"EXTM3U":break;case"ENDLIST":Ce.live=!1;break;case"#":(xa||Go)&&$r.tagList.push(Go?[xa,Go]:[xa]);break;case"DISCONTINUITY":Sr++,$r.tagList.push(["DIS"]);break;case"GAP":$r.gap=!0,$r.tagList.push([Ba]);break;case"BITRATE":$r.tagList.push([Ba,xa]);break;case"DATERANGE":{var ws=new V(xa);er(Ce,ws,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),er(Ce,ws,ws.clientAttrs);var Hs=new te(ws,Ce.dateRanges[ws.ID]);Hs.isValid||Ce.skippedSegments?Ce.dateRanges[Hs.id]=Hs:j.warn('Ignoring invalid DATERANGE tag: "'.concat(xa,'"')),$r.tagList.push(["EXT-X-DATERANGE",xa]);break}case"DEFINE":{{var Ee=new V(xa);er(Ce,Ee,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Ee?Ft(Ce,Ee,ve):ir(Ce,Ee,W)}break}case"DISCONTINUITY-SEQUENCE":Sr=parseInt(xa);break;case"KEY":{var Ye=Wi(xa,W,Ce);if(Ye.isSupported()){if(Ye.method==="NONE"){Zn=void 0;break}Zn||(Zn={}),Zn[Ye.keyFormat]&&(Zn=E({},Zn)),Zn[Ye.keyFormat]=Ye}else j.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'.concat(xa,'"'));break}case"START":Ce.startTimeOffset=at(xa);break;case"MAP":{var It=new V(xa);if(er(Ce,It,["BYTERANGE","URI"]),$r.duration){var fr=new we(Z,W);Ze(fr,It,H,Zn),st=fr,$r.initSegment=st,st.rawProgramDateTime&&!$r.rawProgramDateTime&&($r.rawProgramDateTime=st.rawProgramDateTime)}else Ze($r,It,H,Zn),st=$r,ua=!0;break}case"SERVER-CONTROL":{var Ur=new V(xa);Ce.canBlockReload=Ur.bool("CAN-BLOCK-RELOAD"),Ce.canSkipUntil=Ur.optionalFloat("CAN-SKIP-UNTIL",0),Ce.canSkipDateRanges=Ce.canSkipUntil>0&&Ur.bool("CAN-SKIP-DATERANGES"),Ce.partHoldBack=Ur.optionalFloat("PART-HOLD-BACK",0),Ce.holdBack=Ur.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var ln=new V(xa);Ce.partTarget=ln.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=Ce.partList;Ue||(Ue=Ce.partList=[]);var ae=tr>0?Ue[Ue.length-1]:void 0,_e=tr++,$e=new V(xa);er(Ce,$e,["BYTERANGE","URI"]);var Et=new Oe($e,$r,W,_e,ae);Ue.push(Et),$r.duration+=Et.duration;break}case"PRELOAD-HINT":{var qt=new V(xa);er(Ce,qt,["URI"]),Ce.preloadHint=qt;break}case"RENDITION-REPORT":{var ar=new V(xa);er(Ce,ar,["URI"]),Ce.renditionReports=Ce.renditionReports||[],Ce.renditionReports.push(ar);break}default:j.warn("line parsed but not handled: ".concat(Ln));break}}}Wr&&!Wr.relurl?(ze.pop(),Or-=Wr.duration,Ce.partList&&(Ce.fragmentHint=Wr)):Ce.partList&&(it($r,Wr),$r.cc=Sr,Ce.fragmentHint=$r,Zn&&ot($r,Zn,Ce));var lr=ze.length,Gr=ze[0],pn=ze[lr-1];if(Or+=Ce.skippedSegments*Ce.targetduration,Or>0&&lr&&pn){Ce.averagetargetduration=Or/lr;var zr=pn.sn;Ce.endSN=zr!=="initSegment"?zr:0,Ce.live||(pn.endList=!0),Gr&&(Ce.startCC=Gr.cc)}else Ce.endSN=0,Ce.startCC=0;return Ce.fragmentHint&&(Or+=Ce.fragmentHint.duration),Ce.totalduration=Or,Ce.endCC=Sr,xi>0&&Xe(ze,xi),Ce}}]),Ae}();function Wi(Ae,ee,L){var W,H,Z=new V(Ae);er(L,Z,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var ne=(W=Z.METHOD)!=null?W:"",ve=Z.URI,Ce=Z.hexadecimalInteger("IV"),ze=Z.KEYFORMATVERSIONS,st=(H=Z.KEYFORMAT)!=null?H:"identity";ve&&Z.IV&&!Ce&&j.error("Invalid IV: ".concat(Z.IV));var gt=ve?Di.resolve(ve,ee):"",tr=(ze||"1").split("/").map(Number).filter(Number.isFinite);return new Vt(ne,gt,st,tr,Ce)}function at(Ae){var ee=new V(Ae),L=ee.decimalFloatingPoint("TIME-OFFSET");return C(L)?L:null}function Le(Ae,ee){["video","audio","text"].forEach(function(L){var W=Ae.filter(function(Z){return kr(Z,L)});if(W.length){var H=W.filter(function(Z){return Z.lastIndexOf("avc1",0)===0||Z.lastIndexOf("mp4a",0)===0});ee["".concat(L,"Codec")]=H.length>0?H[0]:W[0],Ae=Ae.filter(function(Z){return W.indexOf(Z)===-1})}}),ee.unknownCodecs=Ae}function je(Ae,ee,L){var W=ee[L];W&&(Ae[L]=W)}function Xe(Ae,ee){for(var L=Ae[ee],W=ee;W--;){var H=Ae[W];if(!H)return;H.programDateTime=L.programDateTime-H.duration*1e3,L=H}}function it(Ae,ee){Ae.rawProgramDateTime?Ae.programDateTime=Date.parse(Ae.rawProgramDateTime):ee!=null&&ee.programDateTime&&(Ae.programDateTime=ee.endProgramDateTime),C(Ae.programDateTime)||(Ae.programDateTime=null,Ae.rawProgramDateTime=null)}function Ze(Ae,ee,L,W){Ae.relurl=ee.URI,ee.BYTERANGE&&Ae.setByteRange(ee.BYTERANGE),Ae.level=L,Ae.sn="initSegment",W&&(Ae.levelkeys=W),Ae.initSegment=null}function ot(Ae,ee,L){Ae.levelkeys=ee;var W=L.encryptedFragments;(!W.length||W[W.length-1].levelkeys!==ee)&&Object.keys(ee).some(function(H){return ee[H].isCommonEncryption})&&W.push(Ae)}var Lt={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},At={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function mr(Ae){var ee=Ae.type;switch(ee){case Lt.AUDIO_TRACK:return At.AUDIO;case Lt.SUBTITLE_TRACK:return At.SUBTITLE;default:return At.MAIN}}function qr(Ae,ee){var L=Ae.url;return(L===void 0||L.indexOf("data:")===0)&&(L=ee.url),L}var Qr=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=ee,this.registerListeners()}return Object(s.a)(Ae,[{key:"startLoad",value:function(L){}},{key:"stopLoad",value:function(){this.destroyInternalLoaders()}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.LEVEL_LOADING,this.onLevelLoading,this),L.on(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.on(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.LEVEL_LOADING,this.onLevelLoading,this),L.off(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.off(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"createInternalLoader",value:function(L){var W=this.hls.config,H=W.pLoader,Z=W.loader,ne=H||Z,ve=new ne(W);return this.loaders[L.type]=ve,ve}},{key:"getInternalLoader",value:function(L){return this.loaders[L.type]}},{key:"resetInternalLoader",value:function(L){this.loaders[L]&&delete this.loaders[L]}},{key:"destroyInternalLoaders",value:function(){for(var L in this.loaders){var W=this.loaders[L];W&&W.destroy(),this.resetInternalLoader(L)}}},{key:"destroy",value:function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}},{key:"onManifestLoading",value:function(L,W){var H=W.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Lt.MANIFEST,url:H,deliveryDirectives:null})}},{key:"onLevelLoading",value:function(L,W){var H=W.id,Z=W.level,ne=W.url,ve=W.deliveryDirectives;this.load({id:H,level:Z,responseType:"text",type:Lt.LEVEL,url:ne,deliveryDirectives:ve})}},{key:"onAudioTrackLoading",value:function(L,W){var H=W.id,Z=W.groupId,ne=W.url,ve=W.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:Lt.AUDIO_TRACK,url:ne,deliveryDirectives:ve})}},{key:"onSubtitleTrackLoading",value:function(L,W){var H=W.id,Z=W.groupId,ne=W.url,ve=W.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:Lt.SUBTITLE_TRACK,url:ne,deliveryDirectives:ve})}},{key:"load",value:function(L){var W=this,H,Z=this.hls.config,ne=this.getInternalLoader(L);if(ne){var ve=ne.context;if(ve&&ve.url===L.url){j.trace("[playlist-loader]: playlist request ongoing");return}j.log("[playlist-loader]: aborting previous loader for type: ".concat(L.type)),ne.abort()}var Ce;if(L.type===Lt.MANIFEST?Ce=Z.manifestLoadPolicy.default:Ce=E({},Z.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),ne=this.createInternalLoader(L),(H=L.deliveryDirectives)!=null&&H.part){var ze;if(L.type===Lt.LEVEL&&L.level!==null?ze=this.hls.levels[L.level].details:L.type===Lt.AUDIO_TRACK&&L.id!==null?ze=this.hls.audioTracks[L.id].details:L.type===Lt.SUBTITLE_TRACK&&L.id!==null&&(ze=this.hls.subtitleTracks[L.id].details),ze){var st=ze.partTarget,gt=ze.targetduration;if(st&&gt){var tr=Math.max(st*3,gt*.8)*1e3;Ce=E({},Ce,{maxTimeToFirstByteMs:Math.min(tr,Ce.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(tr,Ce.maxTimeToFirstByteMs)})}}}var Or=Ce.errorRetry||Ce.timeoutRetry||{},Sr={loadPolicy:Ce,timeout:Ce.maxLoadTimeMs,maxRetry:Or.maxNumRetry||0,retryDelay:Or.retryDelayMs||0,maxRetryDelay:Or.maxRetryDelayMs||0},Wr={onSuccess:function(Ln,Mn,Zn,xi){var ua=W.getInternalLoader(Zn);W.resetInternalLoader(Zn.type);var Gi=Ln.data;if(Gi.indexOf("#EXTM3U")!==0){W.handleManifestParsingError(Ln,Zn,new Error("no EXTM3U delimiter"),xi||null,Mn);return}Mn.parsing.start=performance.now(),Di.isMediaPlaylist(Gi)?W.handleTrackOrLevelPlaylist(Ln,Mn,Zn,xi||null,ua):W.handleMasterPlaylist(Ln,Mn,Zn,xi)},onError:function(Ln,Mn,Zn,xi){W.handleNetworkError(Mn,Zn,!1,Ln,xi)},onTimeout:function(Ln,Mn,Zn){W.handleNetworkError(Mn,Zn,!0,void 0,Ln)}};ne.load(L,Sr,Wr)}},{key:"handleMasterPlaylist",value:function(L,W,H,Z){var ne=this.hls,ve=L.data,Ce=qr(L,H),ze=Di.parseMasterPlaylist(ve,Ce);if(ze.playlistParsingError){this.handleManifestParsingError(L,H,ze.playlistParsingError,Z,W);return}var st=ze.contentSteering,gt=ze.levels,tr=ze.sessionData,Or=ze.sessionKeys,Sr=ze.startTimeOffset,Wr=ze.variableList;this.variableList=Wr;var $r=Di.parseMasterPlaylistMedia(ve,Ce,ze),Ln=$r.AUDIO,Mn=Ln===void 0?[]:Ln,Zn=$r.SUBTITLES,xi=$r["CLOSED-CAPTIONS"];if(Mn.length){var ua=Mn.some(function(Gi){return!Gi.url});!ua&&gt[0].audioCodec&&!gt[0].attrs.AUDIO&&(j.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Mn.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new V({}),bitrate:0,url:""}))}ne.trigger(w.MANIFEST_LOADED,{levels:gt,audioTracks:Mn,subtitles:Zn,captions:xi,contentSteering:st,url:Ce,stats:W,networkDetails:Z,sessionData:tr,sessionKeys:Or,startTimeOffset:Sr,variableList:Wr})}},{key:"handleTrackOrLevelPlaylist",value:function(L,W,H,Z,ne){var ve=this.hls,Ce=H.id,ze=H.level,st=H.type,gt=qr(L,H),tr=C(Ce)?Ce:0,Or=C(ze)?ze:tr,Sr=mr(H),Wr=Di.parseLevelPlaylist(L.data,gt,Or,Sr,tr,this.variableList);if(st===Lt.MANIFEST){var $r={attrs:new V({}),bitrate:0,details:Wr,name:"",url:gt};ve.trigger(w.MANIFEST_LOADED,{levels:[$r],audioTracks:[],url:gt,stats:W,networkDetails:Z,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}W.parsing.end=performance.now(),H.levelDetails=Wr,this.handlePlaylistLoaded(Wr,L,W,H,Z,ne)}},{key:"handleManifestParsingError",value:function(L,W,H,Z,ne){this.hls.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.MANIFEST_PARSING_ERROR,fatal:W.type===Lt.MANIFEST,url:L.url,err:H,error:H,reason:H.message,response:L,context:W,networkDetails:Z,stats:ne})}},{key:"handleNetworkError",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3?arguments[3]:void 0,ne=arguments.length>4?arguments[4]:void 0,ve="A network ".concat(H?"timeout":"error"+(Z?" (status "+Z.code+")":"")," occurred while loading ").concat(L.type);L.type===Lt.LEVEL?ve+=": ".concat(L.level," id: ").concat(L.id):(L.type===Lt.AUDIO_TRACK||L.type===Lt.SUBTITLE_TRACK)&&(ve+=" id: ".concat(L.id,' group-id: "').concat(L.groupId,'"'));var Ce=new Error(ve);j.warn("[playlist-loader]: ".concat(ve));var ze=I.UNKNOWN,st=!1,gt=this.getInternalLoader(L);switch(L.type){case Lt.MANIFEST:ze=H?I.MANIFEST_LOAD_TIMEOUT:I.MANIFEST_LOAD_ERROR,st=!0;break;case Lt.LEVEL:ze=H?I.LEVEL_LOAD_TIMEOUT:I.LEVEL_LOAD_ERROR,st=!1;break;case Lt.AUDIO_TRACK:ze=H?I.AUDIO_TRACK_LOAD_TIMEOUT:I.AUDIO_TRACK_LOAD_ERROR,st=!1;break;case Lt.SUBTITLE_TRACK:ze=H?I.SUBTITLE_TRACK_LOAD_TIMEOUT:I.SUBTITLE_LOAD_ERROR,st=!1;break}gt&&this.resetInternalLoader(L.type);var tr={type:O.NETWORK_ERROR,details:ze,fatal:st,url:L.url,loader:gt,context:L,error:Ce,networkDetails:W,stats:ne};if(Z){var Or=(W==null?void 0:W.url)||L.url;tr.response=b({url:Or,data:void 0},Z)}this.hls.trigger(w.ERROR,tr)}},{key:"handlePlaylistLoaded",value:function(L,W,H,Z,ne,ve){var Ce=this.hls,ze=Z.type,st=Z.level,gt=Z.id,tr=Z.groupId,Or=Z.deliveryDirectives,Sr=qr(W,Z),Wr=mr(Z),$r=typeof Z.level=="number"&&Wr===At.MAIN?st:void 0;if(!L.fragments.length){var Ln=new Error("No Segments found in Playlist");Ce.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_EMPTY_ERROR,fatal:!1,url:Sr,error:Ln,reason:Ln.message,response:W,context:Z,level:$r,parent:Wr,networkDetails:ne,stats:H});return}L.targetduration||(L.playlistParsingError=new Error("Missing Target Duration"));var Mn=L.playlistParsingError;if(Mn){Ce.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_PARSING_ERROR,fatal:!1,url:Sr,error:Mn,reason:Mn.message,response:W,context:Z,level:$r,parent:Wr,networkDetails:ne,stats:H});return}L.live&&ve&&(ve.getCacheAge&&(L.ageHeader=ve.getCacheAge()||0),(!ve.getCacheAge||isNaN(L.ageHeader))&&(L.ageHeader=0));switch(ze){case Lt.MANIFEST:case Lt.LEVEL:Ce.trigger(w.LEVEL_LOADED,{details:L,level:$r||0,id:gt||0,stats:H,networkDetails:ne,deliveryDirectives:Or});break;case Lt.AUDIO_TRACK:Ce.trigger(w.AUDIO_TRACK_LOADED,{details:L,id:gt||0,groupId:tr||"",stats:H,networkDetails:ne,deliveryDirectives:Or});break;case Lt.SUBTITLE_TRACK:Ce.trigger(w.SUBTITLE_TRACK_LOADED,{details:L,id:gt||0,groupId:tr||"",stats:H,networkDetails:ne,deliveryDirectives:Or});break}}}]),Ae}();function gn(Ae,ee){var L;try{L=new Event("addtrack")}catch(W){L=document.createEvent("Event"),L.initEvent("addtrack",!1,!1)}L.track=Ae,ee.dispatchEvent(L)}function yr(Ae,ee){var L=Ae.mode;if(L==="disabled"&&(Ae.mode="hidden"),Ae.cues&&!Ae.cues.getCueById(ee.id))try{if(Ae.addCue(ee),!Ae.cues.getCueById(ee.id))throw new Error("addCue is failed for: ".concat(ee))}catch(H){j.debug("[texttrack-utils]: ".concat(H));try{var W=new self.TextTrackCue(ee.startTime,ee.endTime,ee.text);W.id=ee.id,Ae.addCue(W)}catch(Z){j.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: ".concat(Z))}}L==="disabled"&&(Ae.mode=L)}function Vn(Ae){var ee=Ae.mode;if(ee==="disabled"&&(Ae.mode="hidden"),Ae.cues)for(var L=Ae.cues.length;L--;)Ae.removeCue(Ae.cues[L]);ee==="disabled"&&(Ae.mode=ee)}function Br(Ae,ee,L,W){var H=Ae.mode;if(H==="disabled"&&(Ae.mode="hidden"),Ae.cues&&Ae.cues.length>0)for(var Z=xn(Ae.cues,ee,L),ne=0;ne<Z.length;ne++)(!W||W(Z[ne]))&&Ae.removeCue(Z[ne]);H==="disabled"&&(Ae.mode=H)}function jn(Ae,ee){if(ee<Ae[0].startTime)return 0;var L=Ae.length-1;if(ee>Ae[L].endTime)return-1;for(var W=0,H=L;W<=H;){var Z=Math.floor((H+W)/2);if(ee<Ae[Z].startTime)H=Z-1;else if(ee>Ae[Z].startTime&&W<L)W=Z+1;else return Z}return Ae[W].startTime-ee<ee-Ae[H].startTime?W:H}function xn(Ae,ee,L){var W=[],H=jn(Ae,ee);if(H>-1)for(var Z=H,ne=Ae.length;Z<ne;Z++){var ve=Ae[Z];if(ve.startTime>=ee&&ve.endTime<=L)W.push(ve);else if(ve.startTime>L)return W}return W}var tn={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"},ti=.25;function mi(){return typeof self=="undefined"?void 0:self.WebKitDataCue||self.VTTCue||self.TextTrackCue}var Pi=function(){var Ae=mi();try{new Ae(0,Number.POSITIVE_INFINITY,"")}catch(ee){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function en(Ae,ee){return Ae.getTime()/1e3-ee}function Tn(Ae){return Uint8Array.from(Ae.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var Yn=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=ee,this._registerListeners()}return Object(s.a)(Ae,[{key:"destroy",value:function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}},{key:"_registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"onMediaAttached",value:function(L,W){this.media=W.media}},{key:"onMediaDetaching",value:function(){if(!this.id3Track)return;Vn(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={}}},{key:"onManifestLoading",value:function(){this.dateRangeCuesAppended={}}},{key:"createTrack",value:function(L){var W=this.getID3Track(L.textTracks);return W.mode="hidden",W}},{key:"getID3Track",value:function(L){if(!this.media)return;for(var W=0;W<L.length;W++){var H=L[W];if(H.kind==="metadata"&&H.label==="id3")return gn(H,this.media),H}return this.media.addTextTrack("metadata","id3")}},{key:"onFragParsingMetadata",value:function(L,W){if(!this.media)return;var H=this.hls.config,Z=H.enableEmsgMetadataCues,ne=H.enableID3MetadataCues;if(!Z&&!ne)return;var ve=W.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var Ce=mi(),ze=0;ze<ve.length;ze++){var st=ve[ze].type;if(st===tn.emsg&&!Z||!ne)continue;var gt=Qt(ve[ze].data);if(gt){var tr=ve[ze].pts,Or=tr+ve[ze].duration;Or>Pi&&(Or=Pi);var Sr=Or-tr;Sr<=0&&(Or=tr+ti);for(var Wr=0;Wr<gt.length;Wr++){var $r=gt[Wr];if(!Gt($r)){this.updateId3CueEnds(tr,st);var Ln=new Ce(tr,Or,"");Ln.value=$r,st&&(Ln.type=st),this.id3Track.addCue(Ln)}}}}}},{key:"updateId3CueEnds",value:function(L,W){var H,Z=(H=this.id3Track)==null?void 0:H.cues;if(Z)for(var ne=Z.length;ne--;){var ve=Z[ne];ve.type===W&&ve.startTime<L&&ve.endTime===Pi&&(ve.endTime=L)}}},{key:"onBufferFlushing",value:function(L,W){var H=W.startOffset,Z=W.endOffset,ne=W.type,ve=this.id3Track,Ce=this.hls;if(!Ce)return;var ze=Ce.config,st=ze.enableEmsgMetadataCues,gt=ze.enableID3MetadataCues;if(ve&&(st||gt)){var tr;ne==="audio"?tr=function(Sr){return Sr.type===tn.audioId3&&gt}:ne==="video"?tr=function(Sr){return Sr.type===tn.emsg&&st}:tr=function(Sr){return Sr.type===tn.audioId3&&gt||Sr.type===tn.emsg&&st},Br(ve,H,Z,tr)}}},{key:"onLevelUpdated",value:function(L,W){var H=this,Z=W.details;if(!this.media||!Z.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;var ne=this.dateRangeCuesAppended,ve=this.id3Track,Ce=Z.dateRanges,ze=Object.keys(Ce);if(ve)for(var st=Object.keys(ne).filter(function(Mn){return!ze.includes(Mn)}),gt=function(){var Zn=st[tr];Object.keys(ne[Zn].cues).forEach(function(xi){ve.removeCue(ne[Zn].cues[xi])}),delete ne[Zn]},tr=st.length;tr--;)gt();var Or=Z.fragments[Z.fragments.length-1];if(ze.length===0||!C(Or==null?void 0:Or.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var Sr=Or.programDateTime/1e3-Or.start,Wr=mi(),$r=function(){var Zn=ze[_i8],xi=Ce[Zn],ua=ne[Zn],Gi=(ua==null?void 0:ua.cues)||{},Zi=(ua==null?void 0:ua.durationKnown)||!1,ka=en(xi.startDate,Sr),Ga=Pi,Ba=xi.endDate;if(Ba)Ga=en(Ba,Sr),Zi=!0;else if(xi.endOnNext&&!Zi){var xa=ze.reduce(function(ws,Hs){var Ee=Ce[Hs];return Ee.class===xi.class&&Ee.id!==Hs&&Ee.startDate>xi.startDate&&ws.push(Ee),ws},[]).sort(function(ws,Hs){return ws.startDate.getTime()-Hs.startDate.getTime()})[0];xa&&(Ga=en(xa.startDate,Sr),Zi=!0)}for(var Go=Object.keys(xi.attr),bs=0;bs<Go.length;bs++){var ys=Go[bs];if(!Q(ys))continue;var Ts=Gi[ys];if(Ts)Zi&&!ua.durationKnown&&(Ts.endTime=Ga);else{var js=xi.attr[ys];Ts=new Wr(ka,Ga,""),G(ys)&&(js=Tn(js)),Ts.value={key:ys,data:js},Ts.type=tn.dateRange,Ts.id=Zn,H.id3Track.addCue(Ts),Gi[ys]=Ts}}ne[Zn]={cues:Gi,dateRange:xi,durationKnown:Zi}},Ln=0;Ln<ze.length;Ln++)$r()}}]),Ae}(),Yt=function(){function Ae(ee){var L=this;Object(r.a)(this,Ae),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=ee,this.config=ee.config,this.registerListeners()}return Object(s.a)(Ae,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var L=this.config,W=this.levelDetails;return L.liveMaxLatencyDuration!==void 0?L.liveMaxLatencyDuration:W?L.liveMaxLatencyDurationCount*W.targetduration:0}},{key:"targetLatency",get:function(){var L=this.levelDetails;if(L===null)return null;var W=L.holdBack,H=L.partHoldBack,Z=L.targetduration,ne=this.config,ve=ne.liveSyncDuration,Ce=ne.liveSyncDurationCount,ze=ne.lowLatencyMode,st=this.hls.userConfig,gt=ze&&H||W;(st.liveSyncDuration||st.liveSyncDurationCount||gt===0)&&(gt=ve!==void 0?ve:Ce*Z);var tr=Z,Or=1;return gt+Math.min(this.stallCount*Or,tr)}},{key:"liveSyncPosition",get:function(){var L=this.estimateLiveEdge(),W=this.targetLatency,H=this.levelDetails;if(L===null||W===null||H===null)return null;var Z=H.edge,ne=L-W-this.edgeStalled,ve=Z-H.totalduration,Ce=Z-(this.config.lowLatencyMode&&H.partTarget||H.targetduration);return Math.min(Math.max(ve,ne),Ce)}},{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 W=(this.config.lowLatencyMode&&L.partTarget||L.targetduration)*3;return Math.max(L.age-W,0)}},{key:"forwardBufferLength",get:function(){var L=this.media,W=this.levelDetails;if(!L||!W)return 0;var H=L.buffered.length;return(H?L.buffered.end(H-1):W.edge)-this.currentTime}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(L,W){this.media=W.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}},{key:"onMediaDetaching",value:function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}},{key:"onManifestLoading",value:function(){this.levelDetails=null,this._latency=null,this.stallCount=0}},{key:"onLevelUpdated",value:function(L,W){var H=W.details;this.levelDetails=H,H.advanced&&this.timeupdate(),!H.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}},{key:"onError",value:function(L,W){var H;if(W.details!==I.BUFFER_STALLED_ERROR)return;this.stallCount++,(H=this.levelDetails)!=null&&H.live&&j.warn("[playback-rate-controller]: Stall detected, adjusting target latency")}},{key:"timeupdate",value:function(){var L=this.media,W=this.levelDetails;if(!L||!W)return;this.currentTime=L.currentTime;var H=this.computeLatency();if(H===null)return;this._latency=H;var Z=this.config,ne=Z.lowLatencyMode,ve=Z.maxLiveSyncPlaybackRate;if(!ne||ve===1)return;var Ce=this.targetLatency;if(Ce===null)return;var ze=H-Ce,st=Math.min(this.maxLatency,Ce+W.targetduration),gt=ze<st;if(W.live&&gt&&ze>.05&&this.forwardBufferLength>1){var tr=Math.min(2,Math.max(1,ve)),Or=Math.round(2/(1+Math.exp(-.75*ze-this.edgeStalled))*20)/20;L.playbackRate=Math.min(tr,Math.max(1,Or))}else L.playbackRate!==1&&L.playbackRate!==0&&(L.playbackRate=1)}},{key:"estimateLiveEdge",value:function(){var L=this.levelDetails;return L===null?null:L.edge+L.age}},{key:"computeLatency",value:function(){var L=this.estimateLiveEdge();return L===null?null:L-this.currentTime}}]),Ae}(),Dt=["NONE","TYPE-0","TYPE-1",null],Bt={No:"",Yes:"YES",v2:"v2"};function Wt(Ae,ee){var L=Ae.canSkipUntil,W=Ae.canSkipDateRanges,H=Ae.endSN,Z=ee!==void 0?ee-H:0;return L&&Z<L?W?Bt.v2:Bt.Yes:Bt.No}var Xt=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=ee,this.part=L,this.skip=W}return Object(s.a)(Ae,[{key:"addDirectives",value:function(L){var W=new self.URL(L);return this.msn!==void 0&&W.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&W.searchParams.set("_HLS_part",this.part.toString()),this.skip&&W.searchParams.set("_HLS_skip",this.skip),W.href}}]),Ae}(),kt=function(){function Ae(ee){Object(r.a)(this,Ae),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=[ee.url],this._attrs=[ee.attrs],this.bitrate=ee.bitrate,ee.details&&(this.details=ee.details),this.id=ee.id||0,this.name=ee.name,this.width=ee.width||0,this.height=ee.height||0,this.audioCodec=ee.audioCodec,this.videoCodec=ee.videoCodec,this.unknownCodecs=ee.unknownCodecs,this.codecSet=[ee.videoCodec,ee.audioCodec].filter(function(L){return L}).join(",").replace(/\.[^.,]+/g,"")}return Object(s.a)(Ae,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"attrs",get:function(){return this._attrs[this._urlId]}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(L){var W=L%this.url.length;this._urlId!==W&&(this.fragmentError=0,this.loadError=0,this.details=void 0,this._urlId=W)}},{key:"audioGroupId",get:function(){var L;return(L=this.audioGroupIds)==null?void 0:L[this.urlId]}},{key:"textGroupId",get:function(){var L;return(L=this.textGroupIds)==null?void 0:L[this.urlId]}},{key:"addFallback",value:function(L){this.url.push(L.url),this._attrs.push(L.attrs)}}]),Ae}();function hr(Ae,ee){var L=ee.startPTS;if(C(L)){var W=0,H;ee.sn>Ae.sn?(W=L-Ae.start,H=Ae):(W=Ae.start-L,H=ee),H.duration!==W&&(H.duration=W)}else if(ee.sn>Ae.sn){var Z=Ae.cc===ee.cc;Z&&Ae.minEndPTS?ee.start=Ae.start+(Ae.minEndPTS-Ae.start):ee.start=Ae.start+Ae.duration}else ee.start=Math.max(Ae.start-ee.duration,0)}function br(Ae,ee,L,W,H,Z){var ne=W-L;ne<=0&&(j.warn("Fragment should have a positive duration",ee),W=L+ee.duration,Z=H+ee.duration);var ve=L,Ce=W,ze=ee.startPTS,st=ee.endPTS;if(C(ze)){var gt=Math.abs(ze-L);C(ee.deltaPTS)?ee.deltaPTS=Math.max(gt,ee.deltaPTS):ee.deltaPTS=gt,ve=Math.max(L,ze),L=Math.min(L,ze),H=Math.min(H,ee.startDTS),Ce=Math.min(W,st),W=Math.max(W,st),Z=Math.max(Z,ee.endDTS)}var tr=L-ee.start;ee.start!==0&&(ee.start=L),ee.duration=W-ee.start,ee.startPTS=L,ee.maxStartPTS=ve,ee.startDTS=H,ee.endPTS=W,ee.minEndPTS=Ce,ee.endDTS=Z;var Or=ee.sn;if(!Ae||Or<Ae.startSN||Or>Ae.endSN)return 0;var Sr,Wr=Or-Ae.startSN,$r=Ae.fragments;for($r[Wr]=ee,Sr=Wr;Sr>0;Sr--)hr($r[Sr],$r[Sr-1]);for(Sr=Wr;Sr<$r.length-1;Sr++)hr($r[Sr],$r[Sr+1]);return Ae.fragmentHint&&hr($r[$r.length-1],Ae.fragmentHint),Ae.PTSKnown=Ae.alignedSliding=!0,tr}function wr(Ae,ee){for(var L=null,W=Ae.fragments,H=W.length-1;H>=0;H--){var Z=W[H].initSegment;if(Z){L=Z;break}}Ae.fragmentHint&&delete Ae.fragmentHint.endPTS;var ne=0,ve;if(Fn(Ae,ee,function(Sr,Wr){Sr.relurl&&(ne=Sr.cc-Wr.cc),C(Sr.startPTS)&&C(Sr.endPTS)&&(Wr.start=Wr.startPTS=Sr.startPTS,Wr.startDTS=Sr.startDTS,Wr.maxStartPTS=Sr.maxStartPTS,Wr.endPTS=Sr.endPTS,Wr.endDTS=Sr.endDTS,Wr.minEndPTS=Sr.minEndPTS,Wr.duration=Sr.endPTS-Sr.startPTS,Wr.duration&&(ve=Wr),ee.PTSKnown=ee.alignedSliding=!0),Wr.elementaryStreams=Sr.elementaryStreams,Wr.loader=Sr.loader,Wr.stats=Sr.stats,Wr.urlId=Sr.urlId,Sr.initSegment&&(Wr.initSegment=Sr.initSegment,L=Sr.initSegment)}),L){var Ce=ee.fragmentHint?ee.fragments.concat(ee.fragmentHint):ee.fragments;Ce.forEach(function(Sr){var Wr;(!Sr.initSegment||Sr.initSegment.relurl===((Wr=L)==null?void 0:Wr.relurl))&&(Sr.initSegment=L)})}if(ee.skippedSegments)if(ee.deltaUpdateFailed=ee.fragments.some(function(Sr){return!Sr}),ee.deltaUpdateFailed){j.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var ze=ee.skippedSegments;ze--;)ee.fragments.shift();ee.startSN=ee.fragments[0].sn,ee.startCC=ee.fragments[0].cc}else ee.canSkipDateRanges&&(ee.dateRanges=Fr(Ae.dateRanges,ee.dateRanges,ee.recentlyRemovedDateranges));var st=ee.fragments;if(ne){j.warn("discontinuity sliding from playlist, take drift into account");for(var gt=0;gt<st.length;gt++)st[gt].cc+=ne}ee.skippedSegments&&(ee.startCC=ee.fragments[0].cc),Xn(Ae.partList,ee.partList,function(Sr,Wr){Wr.elementaryStreams=Sr.elementaryStreams,Wr.stats=Sr.stats}),ve?br(ee,ve,ve.startPTS,ve.endPTS,ve.startDTS,ve.endDTS):hi(Ae,ee),st.length&&(ee.totalduration=ee.edge-st[0].start),ee.driftStartTime=Ae.driftStartTime,ee.driftStart=Ae.driftStart;var tr=ee.advancedDateTime;if(ee.advanced&&tr){var Or=ee.edge;ee.driftStart||(ee.driftStartTime=tr,ee.driftStart=Or),ee.driftEndTime=tr,ee.driftEnd=Or}else ee.driftEndTime=Ae.driftEndTime,ee.driftEnd=Ae.driftEnd,ee.advancedDateTime=Ae.advancedDateTime}function Fr(Ae,ee,L){var W=E({},Ae);return L&&L.forEach(function(H){delete W[H]}),Object.keys(ee).forEach(function(H){var Z=new te(ee[H].attr,W[H]);Z.isValid?W[H]=Z:j.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'.concat(JSON.stringify(ee[H].attr),'"'))}),W}function Xn(Ae,ee,L){if(Ae&&ee)for(var W=0,H=0,Z=Ae.length;H<=Z;H++){var ne=Ae[H],ve=ee[H+W];ne&&ve&&ne.index===ve.index&&ne.fragment.sn===ve.fragment.sn?L(ne,ve):W--}}function Fn(Ae,ee,L){for(var W=ee.skippedSegments,H=Math.max(Ae.startSN,ee.startSN)-ee.startSN,Z=(Ae.fragmentHint?1:0)+(W?ee.endSN:Math.min(Ae.endSN,ee.endSN))-ee.startSN,ne=ee.startSN-Ae.startSN,ve=ee.fragmentHint?ee.fragments.concat(ee.fragmentHint):ee.fragments,Ce=Ae.fragmentHint?Ae.fragments.concat(Ae.fragmentHint):Ae.fragments,ze=H;ze<=Z;ze++){var st=Ce[ne+ze],gt=ve[ze];W&&!gt&&ze<W&&(gt=ee.fragments[ze]=st),st&&gt&&L(st,gt)}}function hi(Ae,ee){var L=ee.startSN+ee.skippedSegments-Ae.startSN,W=Ae.fragments;if(L<0||L>=W.length)return;An(ee,W[L].start)}function An(Ae,ee){if(ee){for(var L=Ae.fragments,W=Ae.skippedSegments;W<L.length;W++)L[W].start+=ee;Ae.fragmentHint&&(Ae.fragmentHint.start+=ee)}}function jr(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Infinity,L=1e3*Ae.targetduration;if(Ae.updated){var W=Ae.fragments,H=4;if(W.length&&L*H>ee){var Z=W[W.length-1].duration*1e3;Z<L&&(L=Z)}}else L/=2;return Math.round(L)}function In(Ae,ee,L){if(!(Ae!=null&&Ae.details))return null;var W=Ae.details,H=W.fragments[ee-W.startSN];return H||(H=W.fragmentHint,H&&H.sn===ee?H:ee<W.startSN&&L&&L.sn===ee?L:null)}function Qn(Ae,ee,L){var W;return Ae!=null&&Ae.details?qn((W=Ae.details)==null?void 0:W.partList,ee,L):null}function qn(Ae,ee,L){if(Ae)for(var W=Ae.length;W--;){var H=Ae[W];if(H.index===L&&H.fragment.sn===ee)return H}return null}function si(Ae){switch(Ae.details){case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_TIMEOUT:case I.LEVEL_LOAD_TIMEOUT:case I.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Ci(Ae,ee){var L=si(ee);return Ae.default["".concat(L?"timeout":"error","Retry")]}function ki(Ae,ee){var L=Ae.backoff==="linear"?1:Math.pow(2,ee);return Math.min(L*Ae.retryDelayMs,Ae.maxRetryDelayMs)}function Ri(Ae){return b(b({},Ae),{errorRetry:null,timeoutRetry:null})}function oa(Ae,ee,L,W){return!!Ae&&ee<Ae.maxNumRetry&&(ma(W)||!!L)}function ma(Ae){return Ae===0&&navigator.onLine===!1||!!Ae&&(Ae<400||Ae>499)}var aa={search:function(ee,L){for(var W=0,H=ee.length-1,Z=null,ne=null;W<=H;){Z=(W+H)/2|0,ne=ee[Z];var ve=L(ne);if(ve>0)W=Z+1;else if(ve<0)H=Z-1;else return ne}return null}};function ba(Ae,ee,L){if(ee===null||!Array.isArray(Ae)||!Ae.length||!C(ee))return null;var W=Ae[0].programDateTime;if(ee<(W||0))return null;var H=Ae[Ae.length-1].endProgramDateTime;if(ee>=(H||0))return null;L=L||0;for(var Z=0;Z<Ae.length;++Z){var ne=Ae[Z];if(ji(ee,L,ne))return ne}return null}function bi(Ae,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,H=null;if(Ae?H=ee[Ae.sn-ee[0].sn+1]||null:L===0&&ee[0].start===0&&(H=ee[0]),H&&Pn(L,W,H)===0)return H;var Z=aa.search(ee,Pn.bind(null,L,W));return Z&&(Z!==Ae||!H)?Z:H}function Pn(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=arguments.length>2?arguments[2]:void 0;if(L.start<=Ae&&L.start+L.duration>Ae)return 0;var W=Math.min(ee,L.duration+(L.deltaPTS?L.deltaPTS:0));return L.start+L.duration-W<=Ae?1:L.start-W>Ae&&L.start?-1:0}function ji(Ae,ee,L){var W=Math.min(ee,L.duration+(L.deltaPTS?L.deltaPTS:0))*1e3,H=L.endProgramDateTime||0;return H-W>Ae}function ha(Ae,ee){return aa.search(Ae,function(L){return L.cc<ee?1:L.cc>ee?-1:0})}var ta=3e5,ra={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Nr={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4},Er=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=ee,this.log=j.log.bind(j,"[info]:"),this.warn=j.warn.bind(j,"[warning]:"),this.error=j.error.bind(j,"[error]:"),this.registerListeners()}return Object(s.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.ERROR,this.onError,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(w.ERROR,this.onError,this),L.off(w.ERROR,this.onErrorOut,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}},{key:"startLoad",value:function(L){this.playlistError=0}},{key:"stopLoad",value:function(){}},{key:"getVariantLevelIndex",value:function(L){return(L==null?void 0:L.type)===At.MAIN?L.level:this.hls.loadLevel}},{key:"onManifestLoading",value:function(){this.playlistError=0,this.penalizedRenditions={}}},{key:"onLevelUpdated",value:function(){this.playlistError=0}},{key:"onError",value:function(L,W){var H,Z;if(W.fatal)return;var ne=this.hls,ve=W.context;switch(W.details){case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:W.errorAction=this.getFragRetryOrSwitchAction(W);return;case I.FRAG_PARSING_ERROR:if((H=W.frag)!=null&&H.gap){W.errorAction={action:ra.DoNothing,flags:Nr.None};return}case I.FRAG_GAP:case I.FRAG_DECRYPT_ERROR:{W.errorAction=this.getFragRetryOrSwitchAction(W),W.errorAction.action=ra.SendAlternateToPenaltyBox;return}case I.LEVEL_EMPTY_ERROR:case I.LEVEL_PARSING_ERROR:{var Ce,ze,st=W.parent===At.MAIN?W.level:ne.loadLevel;W.details===I.LEVEL_EMPTY_ERROR&&!!((Ce=W.context)!=null&&(ze=Ce.levelDetails)!=null&&ze.live)?W.errorAction=this.getPlaylistRetryOrSwitchAction(W,st):(W.levelRetry=!1,W.errorAction=this.getLevelSwitchAction(W,st))}return;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:typeof(ve==null?void 0:ve.level)=="number"&&(W.errorAction=this.getPlaylistRetryOrSwitchAction(W,ve.level));return;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.SUBTITLE_LOAD_ERROR:case I.SUBTITLE_TRACK_LOAD_TIMEOUT:if(ve){var gt=ne.levels[ne.loadLevel];if(gt&&(ve.type===Lt.AUDIO_TRACK&&ve.groupId===gt.audioGroupId||ve.type===Lt.SUBTITLE_TRACK&&ve.groupId===gt.textGroupId)){W.errorAction=this.getPlaylistRetryOrSwitchAction(W,ne.loadLevel),W.errorAction.action=ra.SendAlternateToPenaltyBox,W.errorAction.flags=Nr.MoveAllAlternatesMatchingHost;return}}return;case I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{var tr=ne.levels[ne.loadLevel],Or=tr==null?void 0:tr.attrs["HDCP-LEVEL"];Or&&(W.errorAction={action:ra.SendAlternateToPenaltyBox,flags:Nr.MoveAllAlternatesMatchingHDCP,hdcpLevel:Or})}return;case I.BUFFER_ADD_CODEC_ERROR:case I.REMUX_ALLOC_ERROR:W.errorAction=this.getLevelSwitchAction(W,(Z=W.level)!=null?Z:ne.loadLevel);return;case I.INTERNAL_EXCEPTION:case I.BUFFER_APPENDING_ERROR:case I.BUFFER_APPEND_ERROR:case I.BUFFER_FULL_ERROR:case I.LEVEL_SWITCH_ERROR:case I.BUFFER_STALLED_ERROR:case I.BUFFER_SEEK_OVER_HOLE:case I.BUFFER_NUDGE_ON_STALL:W.errorAction={action:ra.DoNothing,flags:Nr.None};return}if(W.type===O.KEY_SYSTEM_ERROR){var Sr=this.getVariantLevelIndex(W.frag);W.levelRetry=!1,W.errorAction=this.getLevelSwitchAction(W,Sr);return}}},{key:"getPlaylistRetryOrSwitchAction",value:function(L,W){var H,Z=this.hls,ne=Ci(Z.config.playlistLoadPolicy,L),ve=this.playlistError++,Ce=(H=L.response)==null?void 0:H.code,ze=oa(ne,ve,si(L),Ce);if(ze)return{action:ra.RetryRequest,flags:Nr.None,retryConfig:ne,retryCount:ve};var st=this.getLevelSwitchAction(L,W);return ne&&(st.retryConfig=ne,st.retryCount=ve),st}},{key:"getFragRetryOrSwitchAction",value:function(L){var W=this.hls,H=this.getVariantLevelIndex(L.frag),Z=W.levels[H],ne=W.config,ve=ne.fragLoadPolicy,Ce=ne.keyLoadPolicy,ze=Ci(L.details.startsWith("key")?Ce:ve,L),st=W.levels.reduce(function(Wr,$r){return Wr+$r.fragmentError},0);if(Z){var gt;L.details!==I.FRAG_GAP&&Z.fragmentError++;var tr=(gt=L.response)==null?void 0:gt.code,Or=oa(ze,st,si(L),tr);if(Or)return{action:ra.RetryRequest,flags:Nr.None,retryConfig:ze,retryCount:st}}var Sr=this.getLevelSwitchAction(L,H);return ze&&(Sr.retryConfig=ze,Sr.retryCount=st),Sr}},{key:"getLevelSwitchAction",value:function(L,W){var H=this.hls;W==null&&(W=H.loadLevel);var Z=this.hls.levels[W];if(Z&&(Z.loadError++,H.autoLevelEnabled)){for(var ne,ve,Ce=-1,ze=H.levels,st=H.loadLevel,gt=H.minAutoLevel,tr=H.maxAutoLevel,Or=(ne=L.frag)==null?void 0:ne.type,Sr=(ve=L.context)!=null?ve:{},Wr=Sr.type,$r=Sr.groupId,Ln=ze.length;Ln--;){var Mn=(Ln+st)%ze.length;if(Mn!==st&&Mn>=gt&&Mn<=tr&&ze[Mn].loadError===0){var Zn=ze[Mn];if(L.details===I.FRAG_GAP&&L.frag){var xi=ze[Mn].details;if(xi){var ua=bi(L.frag,xi.fragments,L.frag.start);if(ua!=null&&ua.gap)continue}}else{if(Wr===Lt.AUDIO_TRACK&&$r===Zn.audioGroupId||Wr===Lt.SUBTITLE_TRACK&&$r===Zn.textGroupId)continue;if(Or===At.AUDIO&&Z.audioGroupId===Zn.audioGroupId||Or===At.SUBTITLE&&Z.textGroupId===Zn.textGroupId)continue}Ce=Mn;break}}if(Ce>-1&&H.loadLevel!==Ce)return L.levelRetry=!0,this.playlistError=0,{action:ra.SendAlternateToPenaltyBox,flags:Nr.None,nextAutoLevel:Ce}}return{action:ra.SendAlternateToPenaltyBox,flags:Nr.MoveAllAlternatesMatchingHost}}},{key:"onErrorOut",value:function(L,W){var H;switch((H=W.errorAction)==null?void 0:H.action){case ra.DoNothing:break;case ra.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(W),!W.errorAction.resolved&&W.details!==I.FRAG_GAP&&(W.fatal=!0);break}if(W.fatal){this.hls.stopLoad();return}}},{key:"sendAlternateToPenaltyBox",value:function(L){var W=this.hls,H=L.errorAction;if(!H)return;var Z=H.flags,ne=H.hdcpLevel,ve=H.nextAutoLevel;switch(Z){case Nr.None:this.switchLevel(L,ve);break;case Nr.MoveAllAlternatesMatchingHost:H.resolved||(H.resolved=this.redundantFailover(L));break;case Nr.MoveAllAlternatesMatchingHDCP:ne&&(W.maxHdcpLevel=Dt[Dt.indexOf(ne)-1],H.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'.concat(W.maxHdcpLevel,'" or lower'));break}H.resolved||this.switchLevel(L,ve)}},{key:"switchLevel",value:function(L,W){W!==void 0&&L.errorAction&&(this.warn("switching to level ".concat(W," after ").concat(L.details)),this.hls.nextAutoLevel=W,L.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}},{key:"redundantFailover",value:function(L){var W=this,H=this.hls,Z=this.penalizedRenditions,ne=L.parent===At.MAIN?L.level:H.loadLevel,ve=H.levels[ne],Ce=ve.url.length,ze=L.frag?L.frag.urlId:ve.urlId;ve.urlId===ze&&(!L.frag||ve.details)&&this.penalizeRendition(ve,L);for(var st=function(){var Sr=(ze+tr)%Ce,Wr=Z[Sr];if(!Wr||On(Wr,L,Z[ze]))return W.warn("Switching to Redundant Stream ".concat(Sr+1,"/").concat(Ce,': "').concat(ve.url[Sr],'" after ').concat(L.details)),W.playlistError=0,H.levels.forEach(function($r){$r.urlId=Sr}),H.nextLoadLevel=ne,{v:!0}},gt,tr=1;tr<Ce;tr++)if(gt=st(),gt)return gt.v;return!1}},{key:"penalizeRendition",value:function(L,W){var H=this.penalizedRenditions,Z=H[L.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};Z.lastErrorPerfMs=performance.now(),Z.errors.push(W),Z.details=L.details,H[L.urlId]=Z}}]),Ae}();function On(Ae,ee,L){if(performance.now()-Ae.lastErrorPerfMs>ta)return!0;var W=Ae.details;if(ee.details===I.FRAG_GAP&&W&&ee.frag){var H=ee.frag.start,Z=bi(null,W.fragments,H);if(Z&&!Z.gap)return!0}if(L&&Ae.errors.length<L.errors.length){var ne=Ae.errors[Ae.errors.length-1];if(W&&ne.frag&&ee.frag&&Math.abs(ne.frag.start-ee.frag.start)>W.targetduration*3)return!0}return!1}var gr=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=j.log.bind(j,"".concat(L,":")),this.warn=j.warn.bind(j,"".concat(L,":")),this.hls=ee}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.clearTimer(),this.hls=this.log=this.warn=null}},{key:"clearTimer",value:function(){clearTimeout(this.timer),this.timer=-1}},{key:"startLoad",value:function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}},{key:"stopLoad",value:function(){this.canLoad=!1,this.clearTimer()}},{key:"switchParams",value:function(L,W){var H=W==null?void 0:W.renditionReports;if(H){for(var Z=-1,ne=0;ne<H.length;ne++){var ve=H[ne],Ce=void 0;try{Ce=new self.URL(ve.URI,W.url).href}catch(Or){j.warn("Could not construct new URL for Rendition Report: ".concat(Or)),Ce=ve.URI||""}if(Ce===L){Z=ne;break}else Ce===L.substring(0,Ce.length)&&(Z=ne)}if(Z!==-1){var ze=H[Z],st=parseInt(ze["LAST-MSN"])||(W==null?void 0:W.lastPartSn),gt=parseInt(ze["LAST-PART"])||(W==null?void 0:W.lastPartIndex);if(this.hls.config.lowLatencyMode){var tr=Math.min(W.age-W.partTarget,W.targetduration);gt>=0&&tr>W.partTarget&&(gt+=1)}return new Xt(st,gt>=0?gt:void 0,Bt.No)}}}},{key:"loadPlaylist",value:function(L){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}},{key:"shouldLoadPlaylist",value:function(L){return this.canLoad&&!!L&&!!L.url&&(!L.details||L.details.live)}},{key:"shouldReloadPlaylist",value:function(L){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(L)}},{key:"playlistLoaded",value:function(L,W,H){var Z=this,ne=W.details,ve=W.stats,Ce=self.performance.now(),ze=ve.loading.first?Math.max(0,Ce-ve.loading.first):0;if(ne.advancedDateTime=Date.now()-ze,ne.live||H!=null&&H.live){if(ne.reloaded(H),H&&this.log("live playlist ".concat(L," ").concat(ne.advanced?"REFRESHED "+ne.lastPartSn+"-"+ne.lastPartIndex:ne.updated?"UPDATED":"MISSED")),H&&ne.fragments.length>0&&wr(H,ne),!this.canLoad||!ne.live)return;var st,gt=void 0,tr=void 0;if(ne.canBlockReload&&ne.endSN&&ne.advanced){var Or=this.hls.config.lowLatencyMode,Sr=ne.lastPartSn,Wr=ne.endSN,$r=ne.lastPartIndex,Ln=$r!==-1,Mn=Sr===Wr,Zn=Or?0:$r;Ln?(gt=Mn?Wr+1:Sr,tr=Mn?Zn:$r+1):gt=Wr+1;var xi=ne.age,ua=xi+ne.ageHeader,Gi=Math.min(ua-ne.partTarget,ne.targetduration*1.5);if(Gi>0){if(H&&Gi>H.tuneInGoal)this.warn("CDN Tune-in goal increased from: ".concat(H.tuneInGoal," to: ").concat(Gi," with playlist age: ").concat(ne.age)),Gi=0;else{var Zi=Math.floor(Gi/ne.targetduration);if(gt+=Zi,tr!==void 0){var ka=Math.round(Gi%ne.targetduration/ne.partTarget);tr+=ka}this.log("CDN Tune-in age: ".concat(ne.ageHeader,"s last advanced ").concat(xi.toFixed(2),"s goal: ").concat(Gi," skip sn ").concat(Zi," to part ").concat(tr))}ne.tuneInGoal=Gi}if(st=this.getDeliveryDirectives(ne,W.deliveryDirectives,gt,tr),Or||!Mn){this.loadPlaylist(st);return}}else(ne.canBlockReload||ne.canSkipUntil)&&(st=this.getDeliveryDirectives(ne,W.deliveryDirectives,gt,tr));var Ga=this.hls.mainForwardBufferInfo,Ba=Ga?Ga.end-Ga.len:0,xa=(ne.edge-Ba)*1e3,Go=jr(ne,xa);ne.updated&&Ce>this.requestScheduled+Go&&(this.requestScheduled=ve.loading.start),gt!==void 0&&ne.canBlockReload?this.requestScheduled=ve.loading.first+Go-(ne.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+Go<Ce?this.requestScheduled=Ce:this.requestScheduled-Ce<=0&&(this.requestScheduled+=Go);var bs=this.requestScheduled-Ce;bs=Math.max(0,bs),this.log("reload live playlist ".concat(L," in ").concat(Math.round(bs)," ms")),this.timer=self.setTimeout(function(){return Z.loadPlaylist(st)},bs)}else this.clearTimer()}},{key:"getDeliveryDirectives",value:function(L,W,H,Z){var ne=Wt(L,H);return W!=null&&W.skip&&L.deltaUpdateFailed&&(H=W.msn,Z=W.part,ne=Bt.No),new Xt(H,Z,ne)}},{key:"checkRetry",value:function(L){var W=this,H=L.details,Z=si(L),ne=L.errorAction,ve=ne||{},Ce=ve.action,ze=ve.retryCount,st=ze===void 0?0:ze,gt=ve.retryConfig,tr=!!ne&&!!gt&&(Ce===ra.RetryRequest||!ne.resolved&&Ce===ra.SendAlternateToPenaltyBox);if(tr){var Or;if(this.requestScheduled=-1,st>=gt.maxNumRetry)return!1;if(Z&&(Or=L.context)!=null&&Or.deliveryDirectives)this.warn("Retrying playlist loading ".concat(st+1,"/").concat(gt.maxNumRetry,' after "').concat(H,'" without delivery-directives')),this.loadPlaylist();else{var Sr=ki(gt,st);this.timer=self.setTimeout(function(){return W.loadPlaylist()},Sr),this.warn("Retrying playlist loading ".concat(st+1,"/").concat(gt.maxNumRetry,' after "').concat(H,'" in ').concat(Sr,"ms"))}L.levelRetry=!0,ne.resolved=!0}return tr}}]),Ae}(),Pr,Xr=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this,W,"[level-controller]"),Z._levels=[],Z._firstLevel=-1,Z._startLevel=void 0,Z.currentLevel=null,Z.currentLevelIndex=-1,Z.manualLevelIndex=-1,Z.steering=void 0,Z.onParsedComplete=void 0,Z.steering=H,Z._registerListeners(),Z}return Object(s.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.FRAG_LOADED,this.onFragLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.FRAG_LOADED,this.onFragLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),Object(t.a)(Object(p.a)(L.prototype),"destroy",this).call(this)}},{key:"startLoad",value:function(){var H=this._levels;H.forEach(function(Z){Z.loadError=0,Z.fragmentError=0}),Object(t.a)(Object(p.a)(L.prototype),"startLoad",this).call(this)}},{key:"resetLevels",value:function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[]}},{key:"onManifestLoading",value:function(H,Z){this.resetLevels()}},{key:"onManifestLoaded",value:function(H,Z){var ne=[],ve={},Ce;Z.levels.forEach(function(ze){var st,gt=ze.attrs;((st=ze.audioCodec)==null?void 0:st.indexOf("mp4a.40.34"))!==-1&&(Pr||(Pr=/chrome|firefox/i.test(navigator.userAgent)),Pr&&(ze.audioCodec=void 0));var tr=gt.AUDIO,Or=gt.CODECS,Sr=gt["FRAME-RATE"],Wr=gt["PATHWAY-ID"],$r=gt.RESOLUTION,Ln=gt.SUBTITLES,Mn="".concat(Wr||".","-"),Zn="".concat(Mn).concat(ze.bitrate,"-").concat($r,"-").concat(Sr,"-").concat(Or);Ce=ve[Zn],Ce?Ce.addFallback(ze):(Ce=new kt(ze),ve[Zn]=Ce,ne.push(Ce)),cn(Ce,"audio",tr),cn(Ce,"text",Ln)}),this.filterAndSortMediaOptions(ne,Z)}},{key:"filterAndSortMediaOptions",value:function(H,Z){var ne=this,ve=[],Ce=[],ze=!1,st=!1,gt=!1,tr=H.filter(function(Zn){var xi=Zn.audioCodec,ua=Zn.videoCodec,Gi=Zn.width,Zi=Zn.height,ka=Zn.unknownCodecs;return ze||(ze=!!(Gi&&Zi)),st||(st=!!ua),gt||(gt=!!xi),!(ka!=null&&ka.length)&&(!xi||dn(xi,"audio"))&&(!ua||dn(ua,"video"))});if((ze||st)&&gt&&(tr=tr.filter(function(Zn){var xi=Zn.videoCodec,ua=Zn.width,Gi=Zn.height;return!!xi||!!(ua&&Gi)})),tr.length===0){Promise.resolve().then(function(){if(ne.hls){var Zn=new Error("no level with compatible codecs found in manifest");ne.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:Z.url,error:Zn,reason:Zn.message})}});return}Z.audioTracks&&(ve=Z.audioTracks.filter(function(Zn){return!Zn.audioCodec||dn(Zn.audioCodec,"audio")}),Un(ve)),Z.subtitles&&(Ce=Z.subtitles,Un(Ce));var Or=tr.slice(0);tr.sort(function(Zn,xi){return Zn.attrs["HDCP-LEVEL"]!==xi.attrs["HDCP-LEVEL"]?(Zn.attrs["HDCP-LEVEL"]||"")>(xi.attrs["HDCP-LEVEL"]||"")?1:-1:Zn.bitrate!==xi.bitrate?Zn.bitrate-xi.bitrate:Zn.attrs["FRAME-RATE"]!==xi.attrs["FRAME-RATE"]?Zn.attrs.decimalFloatingPoint("FRAME-RATE")-xi.attrs.decimalFloatingPoint("FRAME-RATE"):Zn.attrs.SCORE!==xi.attrs.SCORE?Zn.attrs.decimalFloatingPoint("SCORE")-xi.attrs.decimalFloatingPoint("SCORE"):ze&&Zn.height!==xi.height?Zn.height-xi.height:0});var Sr=Or[0];if(this.steering&&(tr=this.steering.filterParsedLevels(tr),tr.length!==Or.length)){for(var Wr=0;Wr<Or.length;Wr++)if(Or[Wr].pathwayId===tr[0].pathwayId){Sr=Or[Wr];break}}this._levels=tr;for(var $r=0;$r<tr.length;$r++)if(tr[$r]===Sr){this._firstLevel=$r,this.log("manifest loaded, ".concat(tr.length," level(s) found, first bitrate: ").concat(Sr.bitrate));break}var Ln=gt&&!st,Mn={levels:tr,audioTracks:ve,subtitleTracks:Ce,sessionData:Z.sessionData,sessionKeys:Z.sessionKeys,firstLevel:this._firstLevel,stats:Z.stats,audio:gt,video:st,altAudio:!Ln&&ve.some(function(Zn){return!!Zn.url})};this.hls.trigger(w.MANIFEST_PARSED,Mn),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}},{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(H){var Z=this._levels;if(Z.length===0)return;if(H<0||H>=Z.length){var ne=new Error("invalid level idx"),ve=H<0;if(this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.LEVEL_SWITCH_ERROR,level:H,fatal:ve,error:ne,reason:ne.message}),ve)return;H=Math.min(H,Z.length-1)}var Ce=this.currentLevelIndex,ze=this.currentLevel,st=ze?ze.attrs["PATHWAY-ID"]:void 0,gt=Z[H],tr=gt.attrs["PATHWAY-ID"];if(this.currentLevelIndex=H,this.currentLevel=gt,Ce===H&&gt.details&&ze&&st===tr)return;this.log("Switching to level ".concat(H).concat(tr?" with Pathway "+tr:""," from level ").concat(Ce).concat(st?" with Pathway "+st:""));var Or=E({},gt,{level:H,maxBitrate:gt.maxBitrate,attrs:gt.attrs,uri:gt.uri,urlId:gt.urlId});delete Or._attrs,delete Or._urlId,this.hls.trigger(w.LEVEL_SWITCHING,Or);var Sr=gt.details;if(!Sr||Sr.live){var Wr=this.switchParams(gt.uri,ze==null?void 0:ze.details);this.loadPlaylist(Wr)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(H){this.manualLevelIndex=H,this._startLevel===void 0&&(this._startLevel=H),H!==-1&&(this.level=H)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(H){this._firstLevel=H}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var H=this.hls.config.startLevel;return H!==void 0?H:this._firstLevel}else return this._startLevel},set:function(H){this._startLevel=H}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===Lt.LEVEL&&Z.context.level===this.level&&this.checkRetry(Z)}},{key:"onFragLoaded",value:function(H,Z){var ne=Z.frag;if(ne!==void 0&&ne.type===At.MAIN){var ve=this._levels[ne.level];ve!==void 0&&(ve.loadError=0)}}},{key:"onLevelLoaded",value:function(H,Z){var ne,ve=Z.level,Ce=Z.details,ze=this._levels[ve];if(!ze){var st;this.warn("Invalid level index ".concat(ve)),(st=Z.deliveryDirectives)!=null&&st.skip&&(Ce.deltaUpdateFailed=!0);return}ve===this.currentLevelIndex?(ze.fragmentError===0&&(ze.loadError=0),this.playlistLoaded(ve,Z,ze.details)):(ne=Z.deliveryDirectives)!=null&&ne.skip&&(Ce.deltaUpdateFailed=!0)}},{key:"onAudioTrackSwitched",value:function(H,Z){var ne=this.currentLevel;if(!ne)return;var ve=this.hls.audioTracks[Z.id].groupId;if(ne.audioGroupIds&&ne.audioGroupId!==ve){for(var Ce=-1,ze=0;ze<ne.audioGroupIds.length;ze++)if(ne.audioGroupIds[ze]===ve){Ce=ze;break}Ce!==-1&&Ce!==ne.urlId&&(ne.urlId=Ce,this.canLoad&&this.startLoad())}}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(p.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.currentLevelIndex,ne=this.currentLevel;if(ne&&this.shouldLoadPlaylist(ne)){var ve=ne.urlId,Ce=ne.uri;if(H)try{Ce=H.addDirectives(Ce)}catch(st){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(st))}var ze=ne.attrs["PATHWAY-ID"];this.log("Loading level index ".concat(Z).concat((H==null?void 0:H.msn)!==void 0?" at sn "+H.msn+" part "+H.part:""," with").concat(ze?" Pathway "+ze:""," URI ").concat(ve+1,"/").concat(ne.url.length," ").concat(Ce)),this.clearTimer(),this.hls.trigger(w.LEVEL_LOADING,{url:Ce,level:Z,id:ve,deliveryDirectives:H||null})}}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(H){this.level=H,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=H)}},{key:"removeLevel",value:function(H,Z){var ne=this,ve=function(st,gt){return gt!==Z},Ce=this._levels.filter(function(ze,st){return st!==H?!0:ze.url.length>1&&Z!==void 0?(ze.url=ze.url.filter(ve),ze.audioGroupIds&&(ze.audioGroupIds=ze.audioGroupIds.filter(ve)),ze.textGroupIds&&(ze.textGroupIds=ze.textGroupIds.filter(ve)),ze.urlId=0,!0):(ne.steering&&ne.steering.removeLevel(ze),!1)});this.hls.trigger(w.LEVELS_UPDATED,{levels:Ce})}},{key:"onLevelsUpdated",value:function(H,Z){var ne=Z.levels;ne.forEach(function(ve,Ce){var ze=ve.details;ze!=null&&ze.fragments&&ze.fragments.forEach(function(st){st.level=Ce})}),this._levels=ne}}]),L}(gr);function cn(Ae,ee,L){if(!L)return;ee==="audio"?(Ae.audioGroupIds||(Ae.audioGroupIds=[]),Ae.audioGroupIds[Ae.url.length-1]=L):ee==="text"&&(Ae.textGroupIds||(Ae.textGroupIds=[]),Ae.textGroupIds[Ae.url.length-1]=L)}function Un(Ae){var ee={};Ae.forEach(function(L){var W=L.groupId||"";L.id=ee[W]=ee[W]||0,ee[W]++})}var Nt={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"},Lr=function(){function Ae(ee){Object(r.a)(this,Ae),this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=ee,this._registerListeners()}return Object(s.a)(Ae,[{key:"_registerListeners",value:function(){var L=this.hls;L.on(w.BUFFER_APPENDED,this.onBufferAppended,this),L.on(w.FRAG_BUFFERED,this.onFragBuffered,this),L.on(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(w.BUFFER_APPENDED,this.onBufferAppended,this),L.off(w.FRAG_BUFFERED,this.onFragBuffered,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}},{key:"getAppendedFrag",value:function(L,W){var H=this.activePartLists[W];if(H)for(var Z=H.length;Z--;){var ne=H[Z];if(!ne)break;var ve=ne.end;if(ne.start<=L&&ve!==null&&L<=ve)return ne}return this.getBufferedFrag(L,W)}},{key:"getBufferedFrag",value:function(L,W){for(var H=this.fragments,Z=Object.keys(H),ne=Z.length;ne--;){var ve=H[Z[ne]];if((ve==null?void 0:ve.body.type)===W&&ve.buffered){var Ce=ve.body;if(Ce.start<=L&&L<=Ce.end)return Ce}}return null}},{key:"detectEvictedFragments",value:function(L,W,H,Z){var ne=this;this.timeRanges&&(this.timeRanges[L]=W);var ve=(Z==null?void 0:Z.fragment.sn)||-1;Object.keys(this.fragments).forEach(function(Ce){var ze=ne.fragments[Ce];if(!ze)return;if(ve>=ze.body.sn)return;if(!ze.buffered&&!ze.loaded){ze.body.type===H&&ne.removeFragment(ze.body);return}var st=ze.range[L];if(!st)return;st.time.some(function(gt){var tr=!ne.isTimeBuffered(gt.startPTS,gt.endPTS,W);return tr&&ne.removeFragment(ze.body),tr})})}},{key:"detectPartialFragments",value:function(L){var W=this,H=this.timeRanges,Z=L.frag,ne=L.part;if(!H||Z.sn==="initSegment")return;var ve=an(Z),Ce=this.fragments[ve];if(!Ce||Ce.buffered&&Z.gap)return;var ze=!Z.relurl;if(Object.keys(H).forEach(function(gt){var tr=Z.elementaryStreams[gt];if(!tr)return;var Or=H[gt],Sr=ze||tr.partial===!0;Ce.range[gt]=W.getBufferedTimes(Z,ne,Sr,Or)}),Ce.loaded=null,Object.keys(Ce.range).length){Ce.buffered=!0;var st=Ce.body.endList=Z.endList||Ce.body.endList;st&&(this.endListFragments[Ce.body.type]=Ce),Dr(Ce)||this.removeParts(Z.sn-1,Z.type)}else this.removeFragment(Ce.body)}},{key:"removeParts",value:function(L,W){var H=this.activePartLists[W];if(!H)return;this.activePartLists[W]=H.filter(function(Z){return Z.fragment.sn>=L})}},{key:"fragBuffered",value:function(L,W){var H=an(L),Z=this.fragments[H];!Z&&W&&(Z=this.fragments[H]={body:L,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},L.gap&&(this.hasGaps=!0)),Z&&(Z.loaded=null,Z.buffered=!0)}},{key:"getBufferedTimes",value:function(L,W,H,Z){for(var ne={time:[],partial:H},ve=L.start,Ce=L.end,ze=L.minEndPTS||Ce,st=L.maxStartPTS||ve,gt=0;gt<Z.length;gt++){var tr=Z.start(gt)-this.bufferPadding,Or=Z.end(gt)+this.bufferPadding;if(st>=tr&&ze<=Or){ne.time.push({startPTS:Math.max(ve,Z.start(gt)),endPTS:Math.min(Ce,Z.end(gt))});break}else if(ve<Or&&Ce>tr)ne.partial=!0,ne.time.push({startPTS:Math.max(ve,Z.start(gt)),endPTS:Math.min(Ce,Z.end(gt))});else if(Ce<=tr)break}return ne}},{key:"getPartialFragment",value:function(L){var W=null,H,Z,ne,ve=0,Ce=this.bufferPadding,ze=this.fragments;return Object.keys(ze).forEach(function(st){var gt=ze[st];if(!gt)return;Dr(gt)&&(Z=gt.body.start-Ce,ne=gt.body.end+Ce,L>=Z&&L<=ne&&(H=Math.min(L-Z,ne-L),ve<=H&&(W=gt.body,ve=H)))}),W}},{key:"isEndListAppended",value:function(L){var W=this.endListFragments[L];return W!==void 0&&(W.buffered||Dr(W))}},{key:"getState",value:function(L){var W=an(L),H=this.fragments[W];return H?H.buffered?Dr(H)?Nt.PARTIAL:Nt.OK:Nt.APPENDING:Nt.NOT_LOADED}},{key:"isTimeBuffered",value:function(L,W,H){for(var Z,ne,ve=0;ve<H.length;ve++){if(Z=H.start(ve)-this.bufferPadding,ne=H.end(ve)+this.bufferPadding,L>=Z&&W<=ne)return!0;if(W<=Z)return!1}return!1}},{key:"onFragLoaded",value:function(L,W){var H=W.frag,Z=W.part;if(H.sn==="initSegment"||H.bitrateTest)return;var ne=Z?null:W,ve=an(H);this.fragments[ve]={body:H,appendedPTS:null,loaded:ne,buffered:!1,range:Object.create(null)}}},{key:"onBufferAppended",value:function(L,W){var H=this,Z=W.frag,ne=W.part,ve=W.timeRanges;if(Z.sn==="initSegment")return;var Ce=Z.type;if(ne){var ze=this.activePartLists[Ce];ze||(this.activePartLists[Ce]=ze=[]),ze.push(ne)}this.timeRanges=ve,Object.keys(ve).forEach(function(st){var gt=ve[st];H.detectEvictedFragments(st,gt,Ce,ne)})}},{key:"onFragBuffered",value:function(L,W){this.detectPartialFragments(W)}},{key:"hasFragment",value:function(L){var W=an(L);return!!this.fragments[W]}},{key:"hasParts",value:function(L){var W;return!!((W=this.activePartLists[L])!=null&&W.length)}},{key:"removeFragmentsInRange",value:function(L,W,H,Z,ne){var ve=this;if(Z&&!this.hasGaps)return;Object.keys(this.fragments).forEach(function(Ce){var ze=ve.fragments[Ce];if(!ze)return;var st=ze.body;if(st.type!==H||Z&&!st.gap)return;st.start<W&&st.end>L&&(ze.buffered||ne)&&ve.removeFragment(st)})}},{key:"removeFragment",value:function(L){var W=an(L);L.stats.loaded=0,L.clearElementaryStreamInfo();var H=this.activePartLists[L.type];if(H){var Z=L.sn;this.activePartLists[L.type]=H.filter(function(ne){return ne.fragment.sn!==Z})}delete this.fragments[W],L.endList&&delete this.endListFragments[L.type]}},{key:"removeAllFragments",value:function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}]),Ae}();function Dr(Ae){var ee,L,W;return Ae.buffered&&(Ae.body.gap||((ee=Ae.range.video)==null?void 0:ee.partial)||((L=Ae.range.audio)==null?void 0:L.partial)||((W=Ae.range.audiovideo)==null?void 0:W.partial))}function an(Ae){return"".concat(Ae.type,"_").concat(Ae.level,"_").concat(Ae.urlId,"_").concat(Ae.sn)}var Cn=Math.pow(2,17),Nn=function(){function Ae(ee){Object(r.a)(this,Ae),this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=ee}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.loader&&(this.loader.destroy(),this.loader=null)}},{key:"abort",value:function(){this.loader&&this.loader.abort()}},{key:"load",value:function(L,W){var H=this,Z=L.url;if(!Z)return Promise.reject(new Wn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,error:new Error("Fragment does not have a ".concat(Z?"part list":"url")),networkDetails:null}));this.abort();var ne=this.config,ve=ne.fLoader,Ce=ne.loader;return new Promise(function(ze,st){if(H.loader&&H.loader.destroy(),L.gap)if(L.tagList.some(function(Wr){return Wr[0]==="GAP"})){st(ei(L));return}else L.gap=!1;var gt=H.loader=L.loader=ve?new ve(ne):new Ce(ne),tr=En(L),Or=Ri(ne.fragLoadPolicy.default),Sr={loadPolicy:Or,timeout:Or.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:L.sn==="initSegment"?Infinity:Cn};L.stats=gt.stats,gt.load(tr,Sr,{onSuccess:function($r,Ln,Mn,Zn){H.resetLoader(L,gt);var xi=$r.data;Mn.resetIV&&L.decryptdata&&(L.decryptdata.iv=new Uint8Array(xi.slice(0,16)),xi=xi.slice(16)),ze({frag:L,part:null,payload:xi,networkDetails:Zn})},onError:function($r,Ln,Mn,Zn){H.resetLoader(L,gt),st(new Wn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,response:b({url:Z,data:void 0},$r),error:new Error("HTTP Error ".concat($r.code," ").concat($r.text)),networkDetails:Mn,stats:Zn}))},onAbort:function($r,Ln,Mn){H.resetLoader(L,gt),st(new Wn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,error:new Error("Aborted"),networkDetails:Mn,stats:$r}))},onTimeout:function($r,Ln,Mn){H.resetLoader(L,gt),st(new Wn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,error:new Error("Timeout after ".concat(Sr.timeout,"ms")),networkDetails:Mn,stats:$r}))},onProgress:function($r,Ln,Mn,Zn){W&&W({frag:L,part:null,payload:Mn,networkDetails:Zn})}})})}},{key:"loadPart",value:function(L,W,H){var Z=this;this.abort();var ne=this.config,ve=ne.fLoader,Ce=ne.loader;return new Promise(function(ze,st){if(Z.loader&&Z.loader.destroy(),L.gap||W.gap){st(ei(L,W));return}var gt=Z.loader=L.loader=ve?new ve(ne):new Ce(ne),tr=En(L,W),Or=Ri(ne.fragLoadPolicy.default),Sr={loadPolicy:Or,timeout:Or.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Cn};W.stats=gt.stats,gt.load(tr,Sr,{onSuccess:function($r,Ln,Mn,Zn){Z.resetLoader(L,gt),Z.updateStatsFromPart(L,W);var xi={frag:L,part:W,payload:$r.data,networkDetails:Zn};H(xi),ze(xi)},onError:function($r,Ln,Mn,Zn){Z.resetLoader(L,gt),st(new Wn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,part:W,response:b({url:tr.url,data:void 0},$r),error:new Error("HTTP Error ".concat($r.code," ").concat($r.text)),networkDetails:Mn,stats:Zn}))},onAbort:function($r,Ln,Mn){L.stats.aborted=W.stats.aborted,Z.resetLoader(L,gt),st(new Wn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,part:W,error:new Error("Aborted"),networkDetails:Mn,stats:$r}))},onTimeout:function($r,Ln,Mn){Z.resetLoader(L,gt),st(new Wn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,part:W,error:new Error("Timeout after ".concat(Sr.timeout,"ms")),networkDetails:Mn,stats:$r}))}})})}},{key:"updateStatsFromPart",value:function(L,W){var H=L.stats,Z=W.stats,ne=Z.total;if(H.loaded+=Z.loaded,ne){var ve=Math.round(L.duration/W.duration),Ce=Math.min(Math.round(H.loaded/ne),ve),ze=ve-Ce,st=ze*Math.round(H.loaded/Ce);H.total=H.loaded+st}else H.total=Math.max(H.loaded,H.total);var gt=H.loading,tr=Z.loading;gt.start?gt.first+=tr.first-tr.start:(gt.start=tr.start,gt.first=tr.first),gt.end=tr.end}},{key:"resetLoader",value:function(L,W){L.loader=null,this.loader===W&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),W.destroy()}}]),Ae}();function En(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,L=ee||Ae,W={frag:Ae,part:ee,responseType:"arraybuffer",url:L.url,headers:{},rangeStart:0,rangeEnd:0},H=L.byteRangeStartOffset,Z=L.byteRangeEndOffset;if(C(H)&&C(Z)){var ne,ve=H,Ce=Z;if(Ae.sn==="initSegment"&&((ne=Ae.decryptdata)==null?void 0:ne.method)==="AES-128"){var ze=Z-H;ze%16&&(Ce=Z+(16-ze%16)),H!==0&&(W.resetIV=!0,ve=H-16)}W.rangeStart=ve,W.rangeEnd=Ce}return W}function ei(Ae,ee){var L=new Error("GAP ".concat(Ae.gap?"tag":"attribute"," found")),W={type:O.MEDIA_ERROR,details:I.FRAG_GAP,fatal:!1,frag:Ae,error:L,networkDetails:null};return ee&&(W.part=ee),(ee||Ae).stats.aborted=!0,new Wn(W)}var Wn=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=ee.call(this,W.error.message),H.data=void 0,H.data=W,H}return Object(s.a)(L)}(i(Error)),gi=function(){function Ae(ee){Object(r.a)(this,Ae),this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=ee}return Object(s.a)(Ae,[{key:"abort",value:function(L){for(var W in this.keyUriToKeyInfo){var H=this.keyUriToKeyInfo[W].loader;if(H){if(L&&L!==H.context.frag.type)return;H.abort()}}}},{key:"detach",value:function(){for(var L in this.keyUriToKeyInfo){var W=this.keyUriToKeyInfo[L];(W.mediaKeySessionContext||W.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[L]}}},{key:"destroy",value:function(){this.detach();for(var L in this.keyUriToKeyInfo){var W=this.keyUriToKeyInfo[L].loader;W&&W.destroy()}this.keyUriToKeyInfo={}}},{key:"createKeyLoadError",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I.KEY_LOAD_ERROR,H=arguments.length>2?arguments[2]:void 0,Z=arguments.length>3?arguments[3]:void 0,ne=arguments.length>4?arguments[4]:void 0;return new Wn({type:O.NETWORK_ERROR,details:W,fatal:!1,frag:L,response:ne,error:H,networkDetails:Z})}},{key:"loadClear",value:function(L,W){var H=this;if(this.emeController&&this.config.emeEnabled)for(var Z=L.sn,ne=L.cc,ve=function(){var st=W[Ce];if(ne<=st.cc&&(Z==="initSegment"||st.sn==="initSegment"||Z<st.sn))return H.emeController.selectKeySystemFormat(st).then(function(gt){st.setKeyFormat(gt)}),1},Ce=0;Ce<W.length&&!ve();Ce++);}},{key:"load",value:function(L){var W=this;return!L.decryptdata&&L.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(L).then(function(H){return W.loadInternal(L,H)}):this.loadInternal(L)}},{key:"loadInternal",value:function(L,W){var H,Z;W&&L.setKeyFormat(W);var ne=L.decryptdata;if(!ne){var ve=new Error(W?"Expected frag.decryptdata to be defined after setting format ".concat(W):"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,ve))}var Ce=ne.uri;if(!Ce)return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,new Error('Invalid key URI: "'.concat(Ce,'"'))));var ze=this.keyUriToKeyInfo[Ce];if((H=ze)!=null&&H.decryptdata.key)return ne.key=ze.decryptdata.key,Promise.resolve({frag:L,keyInfo:ze});if((Z=ze)!=null&&Z.keyLoadPromise){var st;switch((st=ze.mediaKeySessionContext)==null?void 0:st.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return ze.keyLoadPromise.then(function(gt){return ne.key=gt.keyInfo.decryptdata.key,{frag:L,keyInfo:ze}})}}ze=this.keyUriToKeyInfo[Ce]={decryptdata:ne,keyLoadPromise:null,loader:null,mediaKeySessionContext:null};switch(ne.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return ne.keyFormat==="identity"?this.loadKeyHTTP(ze,L):this.loadKeyEME(ze,L);case"AES-128":return this.loadKeyHTTP(ze,L);default:return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'.concat(ne.method,'"'))))}}},{key:"loadKeyEME",value:function(L,W){var H={frag:W,keyInfo:L};if(this.emeController&&this.config.emeEnabled){var Z=this.emeController.loadKey(H);if(Z)return(L.keyLoadPromise=Z.then(function(ne){return L.mediaKeySessionContext=ne,H})).catch(function(ne){throw L.keyLoadPromise=null,ne})}return Promise.resolve(H)}},{key:"loadKeyHTTP",value:function(L,W){var H=this,Z=this.config,ne=Z.loader,ve=new ne(Z);return W.keyLoader=L.loader=ve,L.keyLoadPromise=new Promise(function(Ce,ze){var st={keyInfo:L,frag:W,responseType:"arraybuffer",url:L.decryptdata.uri},gt=Z.keyLoadPolicy.default,tr={loadPolicy:gt,timeout:gt.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Or={onSuccess:function(Wr,$r,Ln,Mn){var Zn=Ln.frag,xi=Ln.keyInfo,ua=Ln.url;if(!Zn.decryptdata||xi!==H.keyUriToKeyInfo[ua])return ze(H.createKeyLoadError(Zn,I.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Mn));xi.decryptdata.key=Zn.decryptdata.key=new Uint8Array(Wr.data),Zn.keyLoader=null,xi.loader=null,Ce({frag:Zn,keyInfo:xi})},onError:function(Wr,$r,Ln,Mn){H.resetLoader($r),ze(H.createKeyLoadError(W,I.KEY_LOAD_ERROR,new Error("HTTP Error ".concat(Wr.code," loading key ").concat(Wr.text)),Ln,b({url:st.url,data:void 0},Wr)))},onTimeout:function(Wr,$r,Ln){H.resetLoader($r),ze(H.createKeyLoadError(W,I.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Ln))},onAbort:function(Wr,$r,Ln){H.resetLoader($r),ze(H.createKeyLoadError(W,I.INTERNAL_ABORTED,new Error("key loading aborted"),Ln))}};ve.load(st,tr,Or)})}},{key:"resetLoader",value:function(L){var W=L.frag,H=L.keyInfo,Z=L.url,ne=H.loader;W.keyLoader===ne&&(W.keyLoader=null,H.loader=null),delete this.keyUriToKeyInfo[Z],ne&&ne.destroy()}}]),Ae}(),Fi=function(){function Ae(){Object(r.a)(this,Ae),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.onHandlerDestroying(),this.onHandlerDestroyed()}},{key:"onHandlerDestroying",value:function(){this.clearNextTick(),this.clearInterval()}},{key:"onHandlerDestroyed",value:function(){}},{key:"hasInterval",value:function(){return!!this._tickInterval}},{key:"hasNextTick",value:function(){return!!this._tickTimer}},{key:"setInterval",value:function(L){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,L),!0)}},{key:"clearInterval",value:function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}},{key:"clearNextTick",value:function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}},{key:"tick",value:function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}},{key:"tickImmediate",value:function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}},{key:"doTick",value:function(){}}]),Ae}(),wi={length:0,start:function(){return 0},end:function(){return 0}},Ii=function(){function Ae(){Object(r.a)(this,Ae)}return Object(s.a)(Ae,null,[{key:"isBuffered",value:function(L,W){try{if(L){for(var H=Ae.getBuffered(L),Z=0;Z<H.length;Z++)if(W>=H.start(Z)&&W<=H.end(Z))return!0}}catch(ne){}return!1}},{key:"bufferInfo",value:function(L,W,H){try{if(L){var Z=Ae.getBuffered(L),ne=[],ve;for(ve=0;ve<Z.length;ve++)ne.push({start:Z.start(ve),end:Z.end(ve)});return this.bufferedInfo(ne,W,H)}}catch(Ce){}return{len:0,start:W,end:W,nextStart:void 0}}},{key:"bufferedInfo",value:function(L,W,H){W=Math.max(0,W),L.sort(function($r,Ln){var Mn=$r.start-Ln.start;return Mn||Ln.end-$r.end});var Z=[];if(H)for(var ne=0;ne<L.length;ne++){var ve=Z.length;if(ve){var Ce=Z[ve-1].end;L[ne].start-Ce<H?L[ne].end>Ce&&(Z[ve-1].end=L[ne].end):Z.push(L[ne])}else Z.push(L[ne])}else Z=L;for(var ze=0,st,gt=W,tr=W,Or=0;Or<Z.length;Or++){var Sr=Z[Or].start,Wr=Z[Or].end;if(W+H>=Sr&&W<Wr)gt=Sr,tr=Wr,ze=tr-W;else if(W+H<Sr){st=Sr;break}}return{len:ze,start:gt||0,end:tr||0,nextStart:st}}},{key:"getBuffered",value:function(L){try{return L.buffered}catch(W){return j.log("failed to get media.buffered",W),wi}}}]),Ae}(),Vi=Object(s.a)(function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,ne=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;Object(r.a)(this,Ae),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=ea(),this.buffering={audio:ea(),video:ea(),audiovideo:ea()},this.level=ee,this.sn=L,this.id=W,this.size=H,this.part=Z,this.partial=ne});function ea(){return{start:0,executeStart:0,executeEnd:0,end:0}}function Xi(Ae,ee){for(var L=null,W=0,H=Ae.length;W<H;W++){var Z=Ae[W];if(Z&&Z.cc===ee){L=Z;break}}return L}function zi(Ae,ee,L){return!!(ee.details&&(L.endCC>L.startCC||Ae&&Ae.cc<L.startCC))}function Hi(Ae,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,W=Ae.fragments,H=ee.fragments;if(!H.length||!W.length){j.log("No fragments to align");return}var Z=Xi(W,H[0].cc);if(!Z||Z&&!Z.startPTS){j.log("No frag in previous level to align on");return}return Z}function Ji(Ae,ee){if(Ae){var L=Ae.start+ee;Ae.start=Ae.startPTS=L,Ae.endPTS=L+Ae.duration}}function ca(Ae,ee){for(var L=ee.fragments,W=0,H=L.length;W<H;W++)Ji(L[W],Ae);ee.fragmentHint&&Ji(ee.fragmentHint,Ae),ee.alignedSliding=!0}function Ta(Ae,ee,L){if(!ee)return;na(Ae,L,ee),!L.alignedSliding&&ee.details&&Pa(L,ee.details),!L.alignedSliding&&ee.details&&!L.skippedSegments&&hi(ee.details,L)}function na(Ae,ee,L){if(zi(Ae,L,ee)){var W=Hi(L.details,ee);W&&C(W.start)&&(j.log("Adjusting PTS using last level due to CC increase within current level ".concat(ee.url)),ca(W.start,ee))}}function Pa(Ae,ee){if(!ee.fragments.length||!Ae.hasProgramDateTime||!ee.hasProgramDateTime)return;var L=ee.fragments[0].programDateTime,W=Ae.fragments[0].programDateTime,H=(W-L)/1e3+ee.fragments[0].start;H&&C(H)&&(j.log("Adjusting PTS using programDateTime delta ".concat(W-L,"ms, sliding:").concat(H.toFixed(3)," ").concat(Ae.url," ")),ca(H,Ae))}function La(Ae,ee){if(!Ae.hasProgramDateTime||!ee.hasProgramDateTime)return;var L=Ae.fragments,W=ee.fragments;if(!L.length||!W.length)return;var H=Math.round(W.length/2)-1,Z=W[H],ne=Xi(L,Z.cc)||L[Math.round(L.length/2)-1],ve=Z.programDateTime,Ce=ne.programDateTime;if(ve===null||Ce===null)return;var ze=(Ce-ve)/1e3-(ne.start-Z.start);ca(ze,Ae)}var va=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.subtle=void 0,this.aesIV=void 0,this.subtle=ee,this.aesIV=L}return Object(s.a)(Ae,[{key:"decrypt",value:function(L,W){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},W,L)}}]),Ae}(),ga=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.subtle=void 0,this.key=void 0,this.subtle=ee,this.key=L}return Object(s.a)(Ae,[{key:"expandKey",value:function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}]),Ae}();function Oa(Ae){var ee=Ae.byteLength,L=ee&&new DataView(Ae.buffer).getUint8(ee-1);return L?ke(Ae,0,ee-L):Ae}var Aa=function(){function Ae(){Object(r.a)(this,Ae),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()}return Object(s.a)(Ae,[{key:"uint8ArrayToUint32Array_",value:function(L){for(var W=new DataView(L),H=new Uint32Array(4),Z=0;Z<4;Z++)H[Z]=W.getUint32(Z*4);return H}},{key:"initTable",value:function(){var L=this.sBox,W=this.invSBox,H=this.subMix,Z=H[0],ne=H[1],ve=H[2],Ce=H[3],ze=this.invSubMix,st=ze[0],gt=ze[1],tr=ze[2],Or=ze[3],Sr=new Uint32Array(256),Wr=0,$r=0,Ln=0;for(Ln=0;Ln<256;Ln++)Ln<128?Sr[Ln]=Ln<<1:Sr[Ln]=Ln<<1^283;for(Ln=0;Ln<256;Ln++){var Mn=$r^$r<<1^$r<<2^$r<<3^$r<<4;Mn=Mn>>>8^Mn&255^99,L[Wr]=Mn,W[Mn]=Wr;var Zn=Sr[Wr],xi=Sr[Zn],ua=Sr[xi],Gi=Sr[Mn]*257^Mn*16843008;Z[Wr]=Gi<<24|Gi>>>8,ne[Wr]=Gi<<16|Gi>>>16,ve[Wr]=Gi<<8|Gi>>>24,Ce[Wr]=Gi,Gi=ua*16843009^xi*65537^Zn*257^Wr*16843008,st[Mn]=Gi<<24|Gi>>>8,gt[Mn]=Gi<<16|Gi>>>16,tr[Mn]=Gi<<8|Gi>>>24,Or[Mn]=Gi,Wr?(Wr=Zn^Sr[Sr[Sr[ua^Zn]]],$r^=Sr[Sr[$r]]):Wr=$r=1}}},{key:"expandKey",value:function(L){for(var W=this.uint8ArrayToUint32Array_(L),H=!0,Z=0;Z<W.length&&H;)H=W[Z]===this.key[Z],Z++;if(H)return;this.key=W;var ne=this.keySize=W.length;if(ne!==4&&ne!==6&&ne!==8)throw new Error("Invalid aes key size="+ne);var ve=this.ksRows=(ne+6+1)*4,Ce,ze,st=this.keySchedule=new Uint32Array(ve),gt=this.invKeySchedule=new Uint32Array(ve),tr=this.sBox,Or=this.rcon,Sr=this.invSubMix,Wr=Sr[0],$r=Sr[1],Ln=Sr[2],Mn=Sr[3],Zn,xi;for(Ce=0;Ce<ve;Ce++){if(Ce<ne){Zn=st[Ce]=W[Ce];continue}xi=Zn,Ce%ne===0?(xi=xi<<8|xi>>>24,xi=tr[xi>>>24]<<24|tr[xi>>>16&255]<<16|tr[xi>>>8&255]<<8|tr[xi&255],xi^=Or[Ce/ne|0]<<24):ne>6&&Ce%ne===4&&(xi=tr[xi>>>24]<<24|tr[xi>>>16&255]<<16|tr[xi>>>8&255]<<8|tr[xi&255]),st[Ce]=Zn=(st[Ce-ne]^xi)>>>0}for(ze=0;ze<ve;ze++)Ce=ve-ze,ze&3?xi=st[Ce]:xi=st[Ce-4],ze<4||Ce<=4?gt[ze]=xi:gt[ze]=Wr[tr[xi>>>24]]^$r[tr[xi>>>16&255]]^Ln[tr[xi>>>8&255]]^Mn[tr[xi&255]],gt[ze]=gt[ze]>>>0}},{key:"networkToHostOrderSwap",value:function(L){return L<<24|(L&65280)<<8|(L&16711680)>>8|L>>>24}},{key:"decrypt",value:function(L,W,H){for(var Z=this.keySize+6,ne=this.invKeySchedule,ve=this.invSBox,Ce=this.invSubMix,ze=Ce[0],st=Ce[1],gt=Ce[2],tr=Ce[3],Or=this.uint8ArrayToUint32Array_(H),Sr=Or[0],Wr=Or[1],$r=Or[2],Ln=Or[3],Mn=new Int32Array(L),Zn=new Int32Array(Mn.length),xi,ua,Gi,Zi,ka,Ga,Ba,xa,Go,bs,ys,Ts,js,ws,Hs=this.networkToHostOrderSwap;W<Mn.length;){for(Go=Hs(Mn[W]),bs=Hs(Mn[W+1]),ys=Hs(Mn[W+2]),Ts=Hs(Mn[W+3]),ka=Go^ne[0],Ga=Ts^ne[1],Ba=ys^ne[2],xa=bs^ne[3],js=4,ws=1;ws<Z;ws++)xi=ze[ka>>>24]^st[Ga>>16&255]^gt[Ba>>8&255]^tr[xa&255]^ne[js],ua=ze[Ga>>>24]^st[Ba>>16&255]^gt[xa>>8&255]^tr[ka&255]^ne[js+1],Gi=ze[Ba>>>24]^st[xa>>16&255]^gt[ka>>8&255]^tr[Ga&255]^ne[js+2],Zi=ze[xa>>>24]^st[ka>>16&255]^gt[Ga>>8&255]^tr[Ba&255]^ne[js+3],ka=xi,Ga=ua,Ba=Gi,xa=Zi,js=js+4;xi=ve[ka>>>24]<<24^ve[Ga>>16&255]<<16^ve[Ba>>8&255]<<8^ve[xa&255]^ne[js],ua=ve[Ga>>>24]<<24^ve[Ba>>16&255]<<16^ve[xa>>8&255]<<8^ve[ka&255]^ne[js+1],Gi=ve[Ba>>>24]<<24^ve[xa>>16&255]<<16^ve[ka>>8&255]<<8^ve[Ga&255]^ne[js+2],Zi=ve[xa>>>24]<<24^ve[ka>>16&255]<<16^ve[Ga>>8&255]<<8^ve[Ba&255]^ne[js+3],Zn[W]=Hs(xi^Sr),Zn[W+1]=Hs(Zi^Wr),Zn[W+2]=Hs(Gi^$r),Zn[W+3]=Hs(ua^Ln),Sr=Go,Wr=bs,$r=ys,Ln=Ts,W=W+4}return Zn.buffer}}]),Ae}(),Xa=16,_a=function(){function Ae(ee){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=L.removePKCS7Padding,H=W===void 0?!0:W;if(Object(r.a)(this,Ae),this.logEnabled=!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.useSoftware=void 0,this.useSoftware=ee.enableSoftwareAES,this.removePKCS7Padding=H,H)try{var Z=self.crypto;Z&&(this.subtle=Z.subtle||Z.webkitSubtle)}catch(ne){}this.subtle===null&&(this.useSoftware=!0)}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}},{key:"isSync",value:function(){return this.useSoftware}},{key:"flush",value:function(){var L=this.currentResult,W=this.remainderData;if(!L||W)return this.reset(),null;var H=new Uint8Array(L);return this.reset(),this.removePKCS7Padding?Oa(H):H}},{key:"reset",value:function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}},{key:"decrypt",value:function(L,W,H){var Z=this;return this.useSoftware?new Promise(function(ne,ve){Z.softwareDecrypt(new Uint8Array(L),W,H);var Ce=Z.flush();Ce?ne(Ce.buffer):ve(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(L),W,H)}},{key:"softwareDecrypt",value:function(L,W,H){var Z=this.currentIV,ne=this.currentResult,ve=this.remainderData;this.logOnce("JS AES decrypt"),ve&&(L=Tt(ve,L),this.remainderData=null);var Ce=this.getValidChunk(L);if(!Ce.length)return null;Z&&(H=Z);var ze=this.softwareDecrypter;ze||(ze=this.softwareDecrypter=new Aa),ze.expandKey(W);var st=ne;return this.currentResult=ze.decrypt(Ce.buffer,0,H),this.currentIV=ke(Ce,-16).buffer,st||null}},{key:"webCryptoDecrypt",value:function(L,W,H){var Z=this,ne=this.subtle;return(this.key!==W||!this.fastAesKey)&&(this.key=W,this.fastAesKey=new ga(ne,W)),this.fastAesKey.expandKey().then(function(ve){if(!ne)return Promise.reject(new Error("web crypto not initialized"));Z.logOnce("WebCrypto AES decrypt");var Ce=new va(ne,new Uint8Array(H));return Ce.decrypt(L.buffer,ve)}).catch(function(ve){return j.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, ".concat(ve.name,": ").concat(ve.message)),Z.onWebCryptoError(L,W,H)})}},{key:"onWebCryptoError",value:function(L,W,H){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(L,W,H);var Z=this.flush();if(Z)return Z.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}},{key:"getValidChunk",value:function(L){var W=L,H=L.length-L.length%Xa;return H!==L.length&&(W=ke(L,0,H),this.remainderData=ke(L,H)),W}},{key:"logOnce",value:function(L){if(!this.logEnabled)return;j.log("[decrypter]: ".concat(L)),this.logEnabled=!1}}]),Ae}(),Va={toString:function(ee){for(var L="",W=ee.length,H=0;H<W;H++)L+="[".concat(ee.start(H).toFixed(3),"-").concat(ee.end(H).toFixed(3),"]");return L}},Bi={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"},io=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z,ne,ve){var Ce;return Object(r.a)(this,L),Ce=ee.call(this),Ce.hls=void 0,Ce.fragPrevious=null,Ce.fragCurrent=null,Ce.fragmentTracker=void 0,Ce.transmuxer=null,Ce._state=Bi.STOPPED,Ce.playlistType=void 0,Ce.media=null,Ce.mediaBuffer=null,Ce.config=void 0,Ce.bitrateTest=!1,Ce.lastCurrentTime=0,Ce.nextLoadPosition=0,Ce.startPosition=0,Ce.startTimeOffset=null,Ce.loadedmetadata=!1,Ce.retryDate=0,Ce.levels=null,Ce.fragmentLoader=void 0,Ce.keyLoader=void 0,Ce.levelLastLoaded=null,Ce.startFragRequested=!1,Ce.decrypter=void 0,Ce.initPTS=[],Ce.onvseeking=null,Ce.onvended=null,Ce.logPrefix="",Ce.log=void 0,Ce.warn=void 0,Ce.playlistType=ve,Ce.logPrefix=ne,Ce.log=j.log.bind(j,"".concat(ne,":")),Ce.warn=j.warn.bind(j,"".concat(ne,":")),Ce.hls=W,Ce.fragmentLoader=new Nn(W.config),Ce.keyLoader=Z,Ce.fragmentTracker=H,Ce.config=W.config,Ce.decrypter=new _a(W.config),W.on(w.MANIFEST_LOADED,Ce.onManifestLoaded,Object(m.a)(Ce)),Ce}return Object(s.a)(L,[{key:"doTick",value:function(){this.onTickEnd()}},{key:"onTickEnd",value:function(){}},{key:"startLoad",value:function(H){}},{key:"stopLoad",value:function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var H=this.fragCurrent;H!=null&&H.loader&&(H.abortRequests(),this.fragmentTracker.removeFragment(H)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Bi.STOPPED}},{key:"_streamEnded",value:function(H,Z){if(Z.live||H.nextStart||!H.end||!this.media)return!1;var ne=Z.partList;if(ne!=null&&ne.length){var ve=ne[ne.length-1],Ce=Ii.isBuffered(this.media,ve.start+ve.duration/2);return Ce}var ze=Z.fragments[Z.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(ze)}},{key:"getLevelDetails",value:function(){if(this.levels&&this.levelLastLoaded!==null){var H;return(H=this.levels[this.levelLastLoaded])==null?void 0:H.details}}},{key:"onMediaAttached",value:function(H,Z){var ne=this.media=this.mediaBuffer=Z.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),ne.addEventListener("seeking",this.onvseeking),ne.addEventListener("ended",this.onvended);var ve=this.config;this.levels&&ve.autoStartLoad&&this.state===Bi.STOPPED&&this.startLoad(ve.startPosition)}},{key:"onMediaDetaching",value:function(){var H=this.media;H!=null&&H.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),H&&this.onvseeking&&this.onvended&&(H.removeEventListener("seeking",this.onvseeking),H.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}},{key:"onMediaSeeking",value:function(){var H=this.config,Z=this.fragCurrent,ne=this.media,ve=this.mediaBuffer,Ce=this.state,ze=ne?ne.currentTime:0,st=Ii.bufferInfo(ve||ne,ze,H.maxBufferHole);if(this.log("media seeking to ".concat(C(ze)?ze.toFixed(3):ze,", state: ").concat(Ce)),this.state===Bi.ENDED)this.resetLoadingState();else if(Z){var gt=H.maxFragLookUpTolerance,tr=Z.start-gt,Or=Z.start+Z.duration+gt;if(!st.len||Or<st.start||tr>st.end){var Sr=ze>Or;(ze<tr||Sr)&&(Sr&&Z.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),Z.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}ne&&(this.fragmentTracker.removeFragmentsInRange(ze,Infinity,this.playlistType,!0),this.lastCurrentTime=ze),!this.loadedmetadata&&!st.len&&(this.nextLoadPosition=this.startPosition=ze),this.tickImmediate()}},{key:"onMediaEnded",value:function(){this.startPosition=this.lastCurrentTime=0}},{key:"onManifestLoaded",value:function(H,Z){this.startTimeOffset=Z.startTimeOffset,this.initPTS=[]}},{key:"onHandlerDestroying",value:function(){this.stopLoad(),Object(t.a)(Object(p.a)(L.prototype),"onHandlerDestroying",this).call(this)}},{key:"onHandlerDestroyed",value:function(){this.state=Bi.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,Object(t.a)(Object(p.a)(L.prototype),"onHandlerDestroyed",this).call(this)}},{key:"loadFragment",value:function(H,Z,ne){this._loadFragForPlayback(H,Z,ne)}},{key:"_loadFragForPlayback",value:function(H,Z,ne){var ve=this,Ce=function(st){if(ve.fragContextChanged(H)){ve.warn("Fragment ".concat(H.sn).concat(st.part?" p: "+st.part.index:""," of level ").concat(H.level," was dropped during download.")),ve.fragmentTracker.removeFragment(H);return}H.stats.chunkCount++,ve._handleFragmentLoadProgress(st)};this._doFragLoad(H,Z,ne,Ce).then(function(ze){if(!ze)return;var st=ve.state;if(ve.fragContextChanged(H)){(st===Bi.FRAG_LOADING||!ve.fragCurrent&&st===Bi.PARSING)&&(ve.fragmentTracker.removeFragment(H),ve.state=Bi.IDLE);return}"payload"in ze&&(ve.log("Loaded fragment ".concat(H.sn," of level ").concat(H.level)),ve.hls.trigger(w.FRAG_LOADED,ze)),ve._handleFragmentLoadComplete(ze)}).catch(function(ze){if(ve.state===Bi.STOPPED||ve.state===Bi.ERROR)return;ve.warn(ze),ve.resetFragmentLoading(H)})}},{key:"clearTrackerIfNeeded",value:function(H){var Z,ne=this.fragmentTracker,ve=ne.getState(H);if(ve===Nt.APPENDING){var Ce=H.type,ze=this.getFwdBufferInfo(this.mediaBuffer,Ce),st=Math.max(H.duration,ze?ze.len:this.config.maxBufferLength);this.reduceMaxBufferLength(st)&&ne.removeFragment(H)}else((Z=this.mediaBuffer)==null?void 0:Z.buffered.length)===0?ne.removeAllFragments():ne.hasParts(H.type)&&(ne.detectPartialFragments({frag:H,part:null,stats:H.stats,id:H.type}),ne.getState(H)===Nt.PARTIAL&&ne.removeFragment(H))}},{key:"checkLiveUpdate",value:function(H){if(H.updated&&!H.live){var Z=H.fragments[H.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:Z,part:null,stats:Z.stats,id:Z.type})}H.fragments[0]||(H.deltaUpdateFailed=!0)}},{key:"flushMainBuffer",value:function(H,Z){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!(H-Z))return;var ve={startOffset:H,endOffset:Z,type:ne};this.hls.trigger(w.BUFFER_FLUSHING,ve)}},{key:"_loadInitSegment",value:function(H,Z){var ne=this;this._doFragLoad(H,Z).then(function(ve){if(!ve||ne.fragContextChanged(H)||!ne.levels)throw new Error("init load aborted");return ve}).then(function(ve){var Ce=ne.hls,ze=ve.payload,st=H.decryptdata;if(ze&&ze.byteLength>0&&st&&st.key&&st.iv&&st.method==="AES-128"){var gt=self.performance.now();return ne.decrypter.decrypt(new Uint8Array(ze),st.key.buffer,st.iv.buffer).catch(function(tr){throw Ce.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:tr,reason:tr.message,frag:H}),tr}).then(function(tr){var Or=self.performance.now();return Ce.trigger(w.FRAG_DECRYPTED,{frag:H,payload:tr,stats:{tstart:gt,tdecrypt:Or}}),ve.payload=tr,ve})}return ve}).then(function(ve){var Ce=ne.fragCurrent,ze=ne.hls,st=ne.levels;if(!st)throw new Error("init load aborted, missing levels");var gt=H.stats;ne.state=Bi.IDLE,Z.fragmentError=0,H.data=new Uint8Array(ve.payload),gt.parsing.start=gt.buffering.start=self.performance.now(),gt.parsing.end=gt.buffering.end=self.performance.now(),ve.frag===Ce&&ze.trigger(w.FRAG_BUFFERED,{stats:gt,frag:Ce,part:null,id:H.type}),ne.tick()}).catch(function(ve){if(ne.state===Bi.STOPPED||ne.state===Bi.ERROR)return;ne.warn(ve),ne.resetFragmentLoading(H)})}},{key:"fragContextChanged",value:function(H){var Z=this.fragCurrent;return!H||!Z||H.level!==Z.level||H.sn!==Z.sn||H.urlId!==Z.urlId}},{key:"fragBufferedComplete",value:function(H,Z){var ne,ve,Ce,ze,st=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered ".concat(H.type," sn: ").concat(H.sn).concat(Z?" part: "+Z.index:""," of ").concat(this.playlistType===At.MAIN?"level":"track"," ").concat(H.level," (frag:[").concat(((ne=H.startPTS)!=null?ne:NaN).toFixed(3),"-").concat(((ve=H.endPTS)!=null?ve:NaN).toFixed(3),"] > buffer:").concat(st?Va.toString(Ii.getBuffered(st)):"(detached)",")")),this.state=Bi.IDLE,!st)return;!this.loadedmetadata&&H.type==At.MAIN&&st.buffered.length&&((Ce=this.fragCurrent)==null?void 0:Ce.sn)===((ze=this.fragPrevious)==null?void 0:ze.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick()}},{key:"seekToStartPos",value:function(){}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this.transmuxer;if(!Z)return;var ne=H.frag,ve=H.part,Ce=H.partsLoaded,ze=!Ce||Ce.length===0||Ce.some(function(gt){return!gt}),st=new Vi(ne.level,ne.sn,ne.stats.chunkCount+1,0,ve?ve.index:-1,!ze);Z.flush(st)}},{key:"_handleFragmentLoadProgress",value:function(H){}},{key:"_doFragLoad",value:function(H,Z){var ne=this,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ce=arguments.length>3?arguments[3]:void 0,ze,st=Z==null?void 0:Z.details;if(!this.levels||!st)throw new Error("frag load aborted, missing level".concat(st?"":" detail","s"));var gt=null;if(H.encrypted&&!((ze=H.decryptdata)!=null&&ze.key)?(this.log("Loading key for ".concat(H.sn," of [").concat(st.startSN,"-").concat(st.endSN,"], ").concat(this.logPrefix==="[stream-controller]"?"level":"track"," ").concat(H.level)),this.state=Bi.KEY_LOADING,this.fragCurrent=H,gt=this.keyLoader.load(H).then(function(Mn){if(!ne.fragContextChanged(Mn.frag))return ne.hls.trigger(w.KEY_LOADED,Mn),ne.state===Bi.KEY_LOADING&&(ne.state=Bi.IDLE),Mn}),this.hls.trigger(w.KEY_LOADING,{frag:H}),this.fragCurrent===null&&(gt=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!H.encrypted&&st.encryptedFragments.length&&this.keyLoader.loadClear(H,st.encryptedFragments),ve=Math.max(H.start,ve||0),this.config.lowLatencyMode&&H.sn!=="initSegment"){var tr=st.partList;if(tr&&Ce){ve>H.end&&st.fragmentHint&&(H=st.fragmentHint);var Or=this.getNextPart(tr,H,ve);if(Or>-1){var Sr=tr[Or];this.log("Loading part sn: ".concat(H.sn," p: ").concat(Sr.index," cc: ").concat(H.cc," of playlist [").concat(st.startSN,"-").concat(st.endSN,"] parts [0-").concat(Or,"-").concat(tr.length-1,"] ").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(ve.toFixed(3)))),this.nextLoadPosition=Sr.start+Sr.duration,this.state=Bi.FRAG_LOADING;var Wr;return gt?Wr=gt.then(function(Mn){return!Mn||ne.fragContextChanged(Mn.frag)?null:ne.doFragPartsLoad(H,Sr,Z,Ce)}).catch(function(Mn){return ne.handleFragLoadError(Mn)}):Wr=this.doFragPartsLoad(H,Sr,Z,Ce).catch(function(Mn){return ne.handleFragLoadError(Mn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,part:Sr,targetBufferTime:ve}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Wr}else if(!H.url||this.loadedEndOfParts(tr,ve))return Promise.resolve(null)}}this.log("Loading fragment ".concat(H.sn," cc: ").concat(H.cc," ").concat(st?"of ["+st.startSN+"-"+st.endSN+"] ":"").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(ve.toFixed(3)))),C(H.sn)&&!this.bitrateTest&&(this.nextLoadPosition=H.start+H.duration),this.state=Bi.FRAG_LOADING;var $r=this.config.progressive,Ln;return $r&&gt?Ln=gt.then(function(Mn){return!Mn||ne.fragContextChanged(Mn==null?void 0:Mn.frag)?null:ne.fragmentLoader.load(H,Ce)}).catch(function(Mn){return ne.handleFragLoadError(Mn)}):Ln=Promise.all([this.fragmentLoader.load(H,$r?Ce:void 0),gt]).then(function(Mn){var Zn=Object(S.a)(Mn,1),xi=Zn[0];return!$r&&xi&&Ce&&Ce(xi),xi}).catch(function(Mn){return ne.handleFragLoadError(Mn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,targetBufferTime:ve}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):Ln}},{key:"doFragPartsLoad",value:function(H,Z,ne,ve){var Ce=this;return new Promise(function(ze,st){var gt,tr=[],Or=(gt=ne.details)==null?void 0:gt.partList,Sr=function Wr($r){Ce.fragmentLoader.loadPart(H,$r,ve).then(function(Ln){tr[$r.index]=Ln;var Mn=Ln.part;Ce.hls.trigger(w.FRAG_LOADED,Ln);var Zn=Qn(ne,H.sn,$r.index+1)||qn(Or,H.sn,$r.index+1);if(Zn)Wr(Zn);else return ze({frag:H,part:Mn,partsLoaded:tr})}).catch(st)};Sr(Z)})}},{key:"handleFragLoadError",value:function(H){if("data"in H){var Z=H.data;H.data&&Z.details===I.INTERNAL_ABORTED?this.handleFragLoadAborted(Z.frag,Z.part):this.hls.trigger(w.ERROR,Z)}else this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,err:H,error:H,fatal:!0});return null}},{key:"_handleTransmuxerFlush",value:function(H){var Z=this.getCurrentContext(H);if(!Z||this.state!==Bi.PARSING){!this.fragCurrent&&this.state!==Bi.STOPPED&&this.state!==Bi.ERROR&&(this.state=Bi.IDLE);return}var ne=Z.frag,ve=Z.part,Ce=Z.level,ze=self.performance.now();ne.stats.parsing.end=ze,ve&&(ve.stats.parsing.end=ze),this.updateLevelTiming(ne,ve,Ce,H.partial)}},{key:"getCurrentContext",value:function(H){var Z=this.levels,ne=this.fragCurrent,ve=H.level,Ce=H.sn,ze=H.part;if(!(Z!=null&&Z[ve]))return this.warn("Levels object was unset while buffering fragment ".concat(Ce," of level ").concat(ve,". The current chunk will not be buffered.")),null;var st=Z[ve],gt=ze>-1?Qn(st,Ce,ze):null,tr=gt?gt.fragment:In(st,Ce,ne);return tr?(ne&&ne!==tr&&(tr.stats=ne.stats),{frag:tr,part:gt,level:st}):null}},{key:"bufferFragmentData",value:function(H,Z,ne,ve,Ce){var ze;if(!H||this.state!==Bi.PARSING)return;var st=H.data1,gt=H.data2,tr=st;if(st&&gt&&(tr=Tt(st,gt)),!((ze=tr)!=null&&ze.length))return;var Or={type:H.type,frag:Z,part:ne,chunkMeta:ve,parent:Z.type,data:tr};if(this.hls.trigger(w.BUFFER_APPENDING,Or),H.dropped&&H.independent&&!ne){if(Ce)return;this.flushBufferGap(Z)}}},{key:"flushBufferGap",value:function(H){var Z=this.media;if(!Z)return;if(!Ii.isBuffered(Z,Z.currentTime)){this.flushMainBuffer(0,H.start);return}var ne=Z.currentTime,ve=Ii.bufferInfo(Z,ne,0),Ce=H.duration,ze=Math.min(this.config.maxFragLookUpTolerance*2,Ce*.25),st=Math.max(Math.min(H.start-ze,ve.end-ze),ne+ze);H.start-st>ze&&this.flushMainBuffer(st,H.start)}},{key:"getFwdBufferInfo",value:function(H,Z){var ne=this.getLoadPosition();return C(ne)?this.getFwdBufferInfoAtPos(H,ne,Z):null}},{key:"getFwdBufferInfoAtPos",value:function(H,Z,ne){var ve=this.config.maxBufferHole,Ce=Ii.bufferInfo(H,Z,ve);if(Ce.len===0&&Ce.nextStart!==void 0){var ze=this.fragmentTracker.getBufferedFrag(Z,ne);if(ze&&Ce.nextStart<ze.end)return Ii.bufferInfo(H,Z,Math.max(Ce.nextStart,ve))}return Ce}},{key:"getMaxBufferLength",value:function(H){var Z=this.config,ne;return H?ne=Math.max(8*Z.maxBufferSize/H,Z.maxBufferLength):ne=Z.maxBufferLength,Math.min(ne,Z.maxMaxBufferLength)}},{key:"reduceMaxBufferLength",value:function(H){var Z=this.config,ne=H||Z.maxBufferLength;return Z.maxMaxBufferLength>=ne?(Z.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to ".concat(Z.maxMaxBufferLength,"s")),!0):!1}},{key:"getAppendedFrag",value:function(H){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:At.MAIN,ne=this.fragmentTracker.getAppendedFrag(H,At.MAIN);return ne&&"fragment"in ne?ne.fragment:ne}},{key:"getNextFragment",value:function(H,Z){var ne=Z.fragments,ve=ne.length;if(!ve)return null;var Ce=this.config,ze=ne[0].start,st;if(Z.live){var gt=Ce.initialLiveManifestSize;if(ve<gt)return this.warn("Not enough fragments to start playback (have: ".concat(ve,", need: ").concat(gt,")")),null;!Z.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(st=this.getInitialLiveFragment(Z,ne),this.startPosition=st?this.hls.liveSyncPosition||st.start:H)}else H<=ze&&(st=ne[0]);if(!st){var tr=Ce.lowLatencyMode?Z.partEnd:Z.fragmentEnd;st=this.getFragmentAtPosition(H,tr,Z)}return this.mapToInitFragWhenRequired(st)}},{key:"isLoopLoading",value:function(H,Z){var ne=this.fragmentTracker.getState(H);return(ne===Nt.OK||ne===Nt.PARTIAL&&!!H.gap)&&this.nextLoadPosition>Z}},{key:"getNextFragmentLoopLoading",value:function(H,Z,ne,ve,Ce){var ze=H.gap,st=this.getNextFragment(this.nextLoadPosition,Z);if(st===null)return st;if(H=st,ze&&H&&!H.gap&&ne.nextStart){var gt=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,ne.nextStart,ve);if(gt!==null&&ne.len+gt.len>=Ce)return this.log('buffer full after gaps in "'.concat(ve,'" playlist starting at sn: ').concat(H.sn)),null}return H}},{key:"mapToInitFragWhenRequired",value:function(H){return H!=null&&H.initSegment&&!(H!=null&&H.initSegment.data)&&!this.bitrateTest?H.initSegment:H}},{key:"getNextPart",value:function(H,Z,ne){for(var ve=-1,Ce=!1,ze=!0,st=0,gt=H.length;st<gt;st++){var tr=H[st];if(ze=ze&&!tr.independent,ve>-1&&ne<tr.start)break;var Or=tr.loaded;Or?ve=-1:(Ce||tr.independent||ze)&&tr.fragment===Z&&(ve=st),Ce=Or}return ve}},{key:"loadedEndOfParts",value:function(H,Z){var ne=H[H.length-1];return ne&&Z>ne.start&&ne.loaded}},{key:"getInitialLiveFragment",value:function(H,Z){var ne=this.fragPrevious,ve=null;if(ne){if(H.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: ".concat(ne.programDateTime)),ve=ba(Z,ne.endProgramDateTime,this.config.maxFragLookUpTolerance)),!ve){var Ce=ne.sn+1;if(Ce>=H.startSN&&Ce<=H.endSN){var ze=Z[Ce-H.startSN];ne.cc===ze.cc&&(ve=ze,this.log("Live playlist, switching playlist, load frag with next SN: ".concat(ve.sn)))}ve||(ve=ha(Z,ne.cc),ve&&this.log("Live playlist, switching playlist, load frag with same CC: ".concat(ve.sn)))}}else{var st=this.hls.liveSyncPosition;st!==null&&(ve=this.getFragmentAtPosition(st,this.bitrateTest?H.fragmentEnd:H.edge,H))}return ve}},{key:"getFragmentAtPosition",value:function(H,Z,ne){var ve=this.config,Ce=this.fragPrevious,ze=ne.fragments,st=ne.endSN,gt=ne.fragmentHint,tr=ve.maxFragLookUpTolerance,Or=ne.partList,Sr=!!(ve.lowLatencyMode&&Or!=null&&Or.length&&gt);Sr&&gt&&!this.bitrateTest&&(ze=ze.concat(gt),st=gt.sn);var Wr;if(H<Z){var $r=H>Z-tr?0:tr;Wr=bi(Ce,ze,H,$r)}else Wr=ze[ze.length-1];if(Wr){var Ln=Wr.sn-ne.startSN,Mn=this.fragmentTracker.getState(Wr);if((Mn===Nt.OK||Mn===Nt.PARTIAL&&Wr.gap)&&(Ce=Wr),Ce&&Wr.sn===Ce.sn&&(!Sr||Or[0].fragment.sn>Wr.sn)){var Zn=Ce&&Wr.level===Ce.level;if(Zn){var xi=ze[Ln+1];Wr.sn<st&&this.fragmentTracker.getState(xi)!==Nt.OK?Wr=xi:Wr=null}}}return Wr}},{key:"synchronizeToLiveEdge",value:function(H){var Z=this.config,ne=this.media;if(!ne)return;var ve=this.hls.liveSyncPosition,Ce=ne.currentTime,ze=H.fragments[0].start,st=H.edge,gt=Ce>=ze-Z.maxFragLookUpTolerance&&Ce<=st;if(ve!==null&&ne.duration>ve&&(Ce<ve||!gt)){var tr=Z.liveMaxLatencyDuration!==void 0?Z.liveMaxLatencyDuration:Z.liveMaxLatencyDurationCount*H.targetduration;(!gt&&ne.readyState<4||Ce<st-tr)&&(this.loadedmetadata||(this.nextLoadPosition=ve),ne.readyState&&(this.warn("Playback: ".concat(Ce.toFixed(3)," is located too far from the end of live sliding playlist: ").concat(st,", reset currentTime to : ").concat(ve.toFixed(3))),ne.currentTime=ve))}}},{key:"alignPlaylists",value:function(H,Z){var ne=this.levels,ve=this.levelLastLoaded,Ce=this.fragPrevious,ze=ve!==null?ne[ve]:null,st=H.fragments.length;if(!st)return this.warn("No fragments in live playlist"),0;var gt=H.fragments[0].start,tr=!Z,Or=H.alignedSliding&&C(gt);if(tr||!Or&&!gt){Ta(Ce,ze,H);var Sr=H.fragments[0].start;return this.log("Live playlist sliding: ".concat(Sr.toFixed(2)," start-sn: ").concat(Z?Z.startSN:"na","->").concat(H.startSN," prev-sn: ").concat(Ce?Ce.sn:"na"," fragments: ").concat(st)),Sr}return gt}},{key:"waitForCdnTuneIn",value:function(H){var Z=3;return H.live&&H.canBlockReload&&H.partTarget&&H.tuneInGoal>Math.max(H.partHoldBack,H.partTarget*Z)}},{key:"setStartPosition",value:function(H,Z){var ne=this.startPosition;if(ne<Z&&(ne=-1),ne===-1||this.lastCurrentTime===-1){var ve=this.startTimeOffset!==null,Ce=ve?this.startTimeOffset:H.startTimeOffset;Ce!==null&&C(Ce)?(ne=Z+Ce,Ce<0&&(ne+=H.totalduration),ne=Math.min(Math.max(Z,ne),Z+H.totalduration),this.log("Start time offset ".concat(Ce," found in ").concat(ve?"multivariant":"media"," playlist, adjust startPosition to ").concat(ne)),this.startPosition=ne):H.live?ne=this.hls.liveSyncPosition||Z:this.startPosition=ne=0,this.lastCurrentTime=ne}this.nextLoadPosition=ne}},{key:"getLoadPosition",value:function(){var H=this.media,Z=0;return this.loadedmetadata&&H?Z=H.currentTime:this.nextLoadPosition&&(Z=this.nextLoadPosition),Z}},{key:"handleFragLoadAborted",value:function(H,Z){this.transmuxer&&H.sn!=="initSegment"&&H.stats.aborted&&(this.warn("Fragment ".concat(H.sn).concat(Z?" part "+Z.index:""," of level ").concat(H.level," was aborted")),this.resetFragmentLoading(H))}},{key:"resetFragmentLoading",value:function(H){(!this.fragCurrent||!this.fragContextChanged(H)&&this.state!==Bi.FRAG_LOADING_WAITING_RETRY)&&(this.state=Bi.IDLE)}},{key:"onFragmentOrKeyLoadError",value:function(H,Z){if(Z.chunkMeta&&!Z.frag){var ne=this.getCurrentContext(Z.chunkMeta);ne&&(Z.frag=ne.frag)}var ve=Z.frag;if(!ve||ve.type!==H||!this.levels)return;if(this.fragContextChanged(ve)){var Ce;this.warn("Frag load error must match current frag to retry ".concat(ve.url," > ").concat((Ce=this.fragCurrent)==null?void 0:Ce.url));return}var ze=Z.details===I.FRAG_GAP;ze&&this.fragmentTracker.fragBuffered(ve,!0);var st=Z.errorAction,gt=st||{},tr=gt.action,Or=gt.retryCount,Sr=Or===void 0?0:Or,Wr=gt.retryConfig;if(st&&tr===ra.RetryRequest&&Wr){var $r;this.resetStartWhenNotLoaded(($r=this.levelLastLoaded)!=null?$r:ve.level);var Ln=ki(Wr,Sr);this.warn("Fragment ".concat(ve.sn," of ").concat(H," ").concat(ve.level," errored with ").concat(Z.details,", retrying loading ").concat(Sr+1,"/").concat(Wr.maxNumRetry," in ").concat(Ln,"ms")),st.resolved=!0,this.retryDate=self.performance.now()+Ln,this.state=Bi.FRAG_LOADING_WAITING_RETRY}else Wr&&st?(this.resetFragmentErrors(H),Sr<Wr.maxNumRetry?ze||(st.resolved=!0):j.warn("".concat(Z.details," reached or exceeded max retry (").concat(Sr,")"))):(st==null?void 0:st.action)===ra.SendAlternateToPenaltyBox?this.state=Bi.WAITING_LEVEL:this.state=Bi.ERROR;this.tickImmediate()}},{key:"reduceLengthAndFlushBuffer",value:function(H){if(this.state===Bi.PARSING||this.state===Bi.PARSED){var Z=H.parent,ne=this.getFwdBufferInfo(this.mediaBuffer,Z),ve=ne&&ne.len>.5;ve&&this.reduceMaxBufferLength(ne.len);var Ce=!ve;return Ce&&this.warn("Buffer full error while media.currentTime is not buffered, flush ".concat(Z," buffer")),H.frag&&(this.fragmentTracker.removeFragment(H.frag),this.nextLoadPosition=H.frag.start),this.resetLoadingState(),Ce}return!1}},{key:"resetFragmentErrors",value:function(H){H===At.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE)}},{key:"afterBufferFlushed",value:function(H,Z,ne){if(!H)return;var ve=Ii.getBuffered(H);this.fragmentTracker.detectEvictedFragments(Z,ve,ne),this.state===Bi.ENDED&&this.resetLoadingState()}},{key:"resetLoadingState",value:function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Bi.IDLE}},{key:"resetStartWhenNotLoaded",value:function(H){if(!this.loadedmetadata){this.startFragRequested=!1;var Z=this.levels?this.levels[H].details:null;Z!=null&&Z.live?(this.startPosition=-1,this.setStartPosition(Z,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}},{key:"resetWhenMissingContext",value:function(H){var Z;this.warn("The loading context changed while buffering fragment ".concat(H.sn," of level ").concat(H.level,". This chunk will not be buffered.")),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded((Z=this.levelLastLoaded)!=null?Z:H.level),this.resetLoadingState()}},{key:"removeUnbufferedFrags",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.fragmentTracker.removeFragmentsInRange(H,Infinity,this.playlistType,!1,!0)}},{key:"updateLevelTiming",value:function(H,Z,ne,ve){var Ce=this,ze,st=ne.details;if(!st){this.warn("level.details undefined");return}var gt=Object.keys(H.elementaryStreams).reduce(function(Or,Sr){var Wr=H.elementaryStreams[Sr];if(Wr){var $r=Wr.endPTS-Wr.startPTS;if($r<=0)return Ce.warn("Could not parse fragment ".concat(H.sn," ").concat(Sr," duration reliably (").concat($r,")")),Or||!1;var Ln=ve?0:br(st,H,Wr.startPTS,Wr.endPTS,Wr.startDTS,Wr.endDTS);return Ce.hls.trigger(w.LEVEL_PTS_UPDATED,{details:st,level:ne,drift:Ln,type:Sr,frag:H,start:Wr.startPTS,end:Wr.endPTS}),!0}return Or},!1);if(gt)ne.fragmentError=0;else if(((ze=this.transmuxer)==null?void 0:ze.error)===null){var tr=new Error("Found no media in fragment ".concat(H.sn," of level ").concat(H.level," resetting transmuxer to fallback to playlist timing"));if(ne.fragmentError===0&&(ne.fragmentError++,H.gap=!0,this.fragmentTracker.removeFragment(H),this.fragmentTracker.fragBuffered(H,!0)),this.warn(tr.message),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:tr,frag:H,reason:"Found no media in msn ".concat(H.sn,' of level "').concat(ne.url,'"')}),!this.hls)return;this.resetTransmuxer()}this.state=Bi.PARSED,this.hls.trigger(w.FRAG_PARSED,{frag:H,part:Z})}},{key:"resetTransmuxer",value:function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}},{key:"recoverWorkerError",value:function(H){if(H.event==="demuxerWorker"){var Z,ne,ve;this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded((Z=(ne=this.levelLastLoaded)!=null?ne:(ve=this.fragCurrent)==null?void 0:ve.level)!=null?Z:0),this.resetLoadingState()}}},{key:"state",get:function(){return this._state},set:function(H){var Z=this._state;Z!==H&&(this._state=H,this.log("".concat(Z,"->").concat(H)))}}]),L}(Fi);function oo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Qo(){var Ae=rr();if(!Ae)return!1;var ee=oo(),L=Ae&&typeof Ae.isTypeSupported=="function"&&Ae.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),W=!ee||ee.prototype&&typeof ee.prototype.appendBuffer=="function"&&typeof ee.prototype.remove=="function";return!!L&&!!W}function mo(){var Ae,ee=oo();return typeof(ee==null||(Ae=ee.prototype)==null?void 0:Ae.changeType)=="function"}function Co(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ao(){var Ae=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(".concat(__HLS_WORKER_BUNDLE__.toString(),")(true);")],{type:"text/javascript"}),ee=self.URL.createObjectURL(Ae),L=new self.Worker(ee);return{worker:L,objectURL:ee}}function xo(Ae){var ee=new self.URL(Ae,self.location.href).href,L=new self.Worker(ee);return{worker:L,scriptURL:ee}}function bo(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4;return{type:Ae,id:-1,pid:-1,inputTimeScale:ee,sequenceNumber:-1,samples:[],dropped:0}}var to=function(){function Ae(){Object(r.a)(this,Ae),this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}return Object(s.a)(Ae,[{key:"resetInitSegment",value:function(L,W,H,Z){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}},{key:"resetTimeStamp",value:function(L){this.initPTS=L,this.resetContiguity()}},{key:"resetContiguity",value:function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}},{key:"canParse",value:function(L,W){return!1}},{key:"appendFrame",value:function(L,W,H){}},{key:"demux",value:function(L,W){this.cachedData&&(L=Tt(this.cachedData,L),this.cachedData=null);var H=pt(L,0),Z=H?H.length:0,ne,ve=this._audioTrack,Ce=this._id3Track,ze=H?ht(H):void 0,st=L.length;for((this.basePTS===null||this.frameIndex===0&&C(ze))&&(this.basePTS=Jo(ze,W,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),H&&H.length>0&&Ce.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:tn.audioId3,duration:Number.POSITIVE_INFINITY});Z<st;){if(this.canParse(L,Z)){var gt=this.appendFrame(ve,L,Z);gt?(this.frameIndex++,this.lastPTS=gt.sample.pts,Z+=gt.length,ne=Z):Z=st}else nr(L,Z)?(H=pt(L,Z),Ce.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:tn.audioId3,duration:Number.POSITIVE_INFINITY}),Z+=H.length,ne=Z):Z++;if(Z===st&&ne!==st){var tr=ke(L,ne);this.cachedData?this.cachedData=Tt(this.cachedData,tr):this.cachedData=tr}}return{audioTrack:ve,videoTrack:bo(),id3Track:Ce,textTrack:bo()}}},{key:"demuxSampleAes",value:function(L,W,H){return Promise.reject(new Error("[".concat(this,"] This demuxer does not support Sample-AES decryption")))}},{key:"flush",value:function(L){var W=this.cachedData;return W&&(this.cachedData=null,this.demux(W,0)),{audioTrack:this._audioTrack,videoTrack:bo(),id3Track:this._id3Track,textTrack:bo()}}},{key:"destroy",value:function(){}}]),Ae}(),Jo=function(ee,L,W){if(C(ee))return ee*90;var H=W?W.baseTime*9e4/W.timescale:0;return L*9e4+H};function Uo(Ae,ee,L,W){var H,Z,ne,ve,Ce=navigator.userAgent.toLowerCase(),ze=W,st=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];H=((ee[L+2]&192)>>>6)+1;var gt=(ee[L+2]&60)>>>2;if(gt>st.length-1){Ae.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:".concat(gt)});return}return ne=(ee[L+2]&1)<<2,ne|=(ee[L+3]&192)>>>6,j.log("manifest codec:".concat(W,", ADTS type:").concat(H,", samplingIndex:").concat(gt)),/firefox/i.test(Ce)?gt>=6?(H=5,ve=new Array(4),Z=gt-3):(H=2,ve=new Array(2),Z=gt):Ce.indexOf("android")!==-1?(H=2,ve=new Array(2),Z=gt):(H=5,ve=new Array(4),W&&(W.indexOf("mp4a.40.29")!==-1||W.indexOf("mp4a.40.5")!==-1)||!W&&gt>=6?Z=gt-3:((W&&W.indexOf("mp4a.40.2")!==-1&&(gt>=6&&ne===1||/vivaldi/i.test(Ce))||!W&&ne===1)&&(H=2,ve=new Array(2)),Z=gt)),ve[0]=H<<3,ve[0]|=(gt&14)>>1,ve[1]|=(gt&1)<<7,ve[1]|=ne<<3,H===5&&(ve[1]|=(Z&14)>>1,ve[2]=(Z&1)<<7,ve[2]|=2<<2,ve[3]=0),{config:ve,samplerate:st[gt],channelCount:ne,codec:"mp4a.40."+H,manifestCodec:ze}}function wo(Ae,ee){return Ae[ee]===255&&(Ae[ee+1]&246)===240}function ts(Ae,ee){return Ae[ee+1]&1?7:9}function Ia(Ae,ee){return(Ae[ee+3]&3)<<11|Ae[ee+4]<<3|(Ae[ee+5]&224)>>>5}function Oo(Ae,ee){return ee+5<Ae.length}function Io(Ae,ee){return ee+1<Ae.length&&wo(Ae,ee)}function os(Ae,ee){return Oo(Ae,ee)&&wo(Ae,ee)&&Ia(Ae,ee)<=Ae.length-ee}function So(Ae,ee){if(Io(Ae,ee)){var L=ts(Ae,ee);if(ee+L>=Ae.length)return!1;var W=Ia(Ae,ee);if(W<=L)return!1;var H=ee+W;return H===Ae.length||Io(Ae,H)}return!1}function rs(Ae,ee,L,W,H){if(!Ae.samplerate){var Z=Uo(ee,L,W,H);if(!Z)return;Ae.config=Z.config,Ae.samplerate=Z.samplerate,Ae.channelCount=Z.channelCount,Ae.codec=Z.codec,Ae.manifestCodec=Z.manifestCodec,j.log("parsed codec:".concat(Ae.codec,", rate:").concat(Z.samplerate,", channels:").concat(Z.channelCount))}}function Ho(Ae){return 1024*9e4/Ae}function _o(Ae,ee){var L=ts(Ae,ee);if(ee+L<=Ae.length){var W=Ia(Ae,ee)-L;if(W>0)return{headerLength:L,frameLength:W}}}function uo(Ae,ee,L,W,H){var Z=Ho(Ae.samplerate),ne=W+H*Z,ve=_o(ee,L),Ce;if(ve){var ze=ve.frameLength,st=ve.headerLength,gt=st+ze,tr=Math.max(0,L+gt-ee.length);tr?(Ce=new Uint8Array(gt-st),Ce.set(ee.subarray(L+st,ee.length),0)):Ce=ee.subarray(L+st,L+gt);var Or={unit:Ce,pts:ne};return tr||Ae.samples.push(Or),{sample:Or,length:gt,missing:tr}}var Sr=ee.length-L;Ce=new Uint8Array(Sr),Ce.set(ee.subarray(L,ee.length),0);var Wr={unit:Ce,pts:ne};return{sample:Wr,length:Sr,missing:-1}}var Ha=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this),Z.observer=void 0,Z.config=void 0,Z.observer=W,Z.config=H,Z}return Object(s.a)(L,[{key:"resetInitSegment",value:function(H,Z,ne,ve){Object(t.a)(Object(p.a)(L.prototype),"resetInitSegment",this).call(this,H,Z,ne,ve),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:Z,duration:ve,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return os(H,Z)}},{key:"appendFrame",value:function(H,Z,ne){rs(H,this.observer,Z,ne,H.manifestCodec);var ve=uo(H,Z,ne,this.basePTS,this.frameIndex);if(ve&&ve.missing===0)return ve}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=pt(H,0)||[],ne=Z.length,ve=H.length;ne<ve;ne++)if(So(H,ne))return j.log("ADTS sync word found !"),!0;return!1}}]),L}(to),vt=/\/emsg[-/]ID3/i,_r=function(){function Ae(ee,L){Object(r.a)(this,Ae),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}return Object(s.a)(Ae,[{key:"resetTimeStamp",value:function(){}},{key:"resetInitSegment",value:function(L,W,H,Z){var ne=this.videoTrack=bo("video",1),ve=this.audioTrack=bo("audio",1),Ce=this.txtTrack=bo("text",1);if(this.id3Track=bo("id3",1),this.timeOffset=0,!(L!=null&&L.byteLength))return;var ze=Cr(L);if(ze.video){var st=ze.video,gt=st.id,tr=st.timescale,Or=st.codec;ne.id=gt,ne.timescale=Ce.timescale=tr,ne.codec=Or}if(ze.audio){var Sr=ze.audio,Wr=Sr.id,$r=Sr.timescale,Ln=Sr.codec;ve.id=Wr,ve.timescale=$r,ve.codec=Ln}Ce.id=or.text,ne.sampleDuration=0,ne.duration=ve.duration=Z}},{key:"resetContiguity",value:function(){this.remainderData=null}},{key:"demux",value:function(L,W){this.timeOffset=W;var H=L,Z=this.videoTrack,ne=this.txtTrack;if(this.config.progressive){this.remainderData&&(H=Tt(this.remainderData,L));var ve=Zt(H);this.remainderData=ve.remainder,Z.samples=ve.valid||new Uint8Array}else Z.samples=H;var Ce=this.extractID3Track(Z,W);return ne.samples=De(W,Z),{videoTrack:Z,audioTrack:this.audioTrack,id3Track:Ce,textTrack:this.txtTrack}}},{key:"flush",value:function(){var L=this.timeOffset,W=this.videoTrack,H=this.txtTrack;W.samples=this.remainderData||new Uint8Array,this.remainderData=null;var Z=this.extractID3Track(W,this.timeOffset);return H.samples=De(L,W),{videoTrack:W,audioTrack:bo(),id3Track:Z,textTrack:bo()}}},{key:"extractID3Track",value:function(L,W){var H=this.id3Track;if(L.samples.length){var Z=lt(L.samples,["emsg"]);Z&&Z.forEach(function(ne){var ve=Ot(ne);if(vt.test(ve.schemeIdUri)){var Ce=C(ve.presentationTime)?ve.presentationTime/ve.timeScale:W+ve.presentationTimeDelta/ve.timeScale,ze=ve.eventDuration===4294967295?Number.POSITIVE_INFINITY:ve.eventDuration/ve.timeScale;ze<=.001&&(ze=Number.POSITIVE_INFINITY);var st=ve.payload;H.samples.push({data:st,len:st.byteLength,dts:Ce,pts:Ce,type:tn.emsg,duration:ze})}})}return H}},{key:"demuxSampleAes",value:function(L,W,H){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(L){return L=L.length>16384?L.subarray(0,16384):L,lt(L,["moof"]).length>0}}]),Ae}(),rn=null,Jr=[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],Jn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],fn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Yr=[0,1,1,4];function ii(Ae,ee,L,W,H){if(L+24>ee.length)return;var Z=on(ee,L);if(Z&&L+Z.frameLength<=ee.length){var ne=Z.samplesPerFrame*9e4/Z.sampleRate,ve=W+H*ne,Ce={unit:ee.subarray(L,L+Z.frameLength),pts:ve,dts:ve};return Ae.config=[],Ae.channelCount=Z.channelCount,Ae.samplerate=Z.sampleRate,Ae.samples.push(Ce),{sample:Ce,length:Z.frameLength,missing:0}}}function on(Ae,ee){var L=Ae[ee+1]>>3&3,W=Ae[ee+1]>>1&3,H=Ae[ee+2]>>4&15,Z=Ae[ee+2]>>2&3;if(L!==1&&H!==0&&H!==15&&Z!==3){var ne=Ae[ee+2]>>1&1,ve=Ae[ee+3]>>6,Ce=L===3?3-W:W===3?3:4,ze=Jr[Ce*14+H-1]*1e3,st=L===3?0:L===2?1:2,gt=Jn[st*3+Z],tr=ve===3?1:2,Or=fn[L][W],Sr=Yr[W],Wr=Or*8*Sr,$r=Math.floor(Or*ze/gt+ne)*Sr;if(rn===null){var Ln=navigator.userAgent||"",Mn=Ln.match(/Chrome\/(\d+)/i);rn=Mn?parseInt(Mn[1]):0}var Zn=!!rn&&rn<=87;return Zn&&W===2&&ze>=224e3&&ve===0&&(Ae[ee+3]=Ae[ee+3]|128),{sampleRate:gt,channelCount:tr,frameLength:$r,samplesPerFrame:Wr}}}function zn(Ae,ee){return Ae[ee]===255&&(Ae[ee+1]&224)===224&&(Ae[ee+1]&6)!==0}function ui(Ae,ee){return ee+1<Ae.length&&zn(Ae,ee)}function di(Ae,ee){var L=4;return zn(Ae,ee)&&L<=Ae.length-ee}function li(Ae,ee){if(ee+1<Ae.length&&zn(Ae,ee)){var L=4,W=on(Ae,ee),H=L;W!=null&&W.frameLength&&(H=W.frameLength);var Z=ee+H;return Z===Ae.length||ui(Ae,Z)}return!1}var Ti=function(){function Ae(ee){Object(r.a)(this,Ae),this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=ee,this.bytesAvailable=ee.byteLength,this.word=0,this.bitsAvailable=0}return Object(s.a)(Ae,[{key:"loadWord",value:function(){var L=this.data,W=this.bytesAvailable,H=L.byteLength-W,Z=new Uint8Array(4),ne=Math.min(4,W);if(ne===0)throw new Error("no bytes available");Z.set(L.subarray(H,H+ne)),this.word=new DataView(Z.buffer).getUint32(0),this.bitsAvailable=ne*8,this.bytesAvailable-=ne}},{key:"skipBits",value:function(L){var W;L=Math.min(L,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>L?(this.word<<=L,this.bitsAvailable-=L):(L-=this.bitsAvailable,W=L>>3,L-=W<<3,this.bytesAvailable-=W,this.loadWord(),this.word<<=L,this.bitsAvailable-=L)}},{key:"readBits",value:function(L){var W=Math.min(this.bitsAvailable,L),H=this.word>>>32-W;if(L>32&&j.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=W,this.bitsAvailable>0)this.word<<=W;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return W=L-W,W>0&&this.bitsAvailable?H<<W|this.readBits(W):H}},{key:"skipLZ",value:function(){var L;for(L=0;L<this.bitsAvailable;++L)if((this.word&2147483648>>>L)!==0)return this.word<<=L,this.bitsAvailable-=L,L;return this.loadWord(),L+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"skipEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var L=this.skipLZ();return this.readBits(L+1)-1}},{key:"readEG",value:function(){var L=this.readUEG();return 1&L?1+L>>>1:-1*(L>>>1)}},{key:"readBoolean",value:function(){return this.readBits(1)===1}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"readUShort",value:function(){return this.readBits(16)}},{key:"readUInt",value:function(){return this.readBits(32)}},{key:"skipScalingList",value:function(L){for(var W=8,H=8,Z,ne=0;ne<L;ne++)H!==0&&(Z=this.readEG(),H=(W+Z+256)%256),W=H===0?W:H}},{key:"readSPS",value:function(){var L=0,W=0,H=0,Z=0,ne,ve,Ce,ze=this.readUByte.bind(this),st=this.readBits.bind(this),gt=this.readUEG.bind(this),tr=this.readBoolean.bind(this),Or=this.skipBits.bind(this),Sr=this.skipEG.bind(this),Wr=this.skipUEG.bind(this),$r=this.skipScalingList.bind(this);ze();var Ln=ze();if(st(5),Or(3),ze(),Wr(),Ln===100||Ln===110||Ln===122||Ln===244||Ln===44||Ln===83||Ln===86||Ln===118||Ln===128){var Mn=gt();if(Mn===3&&Or(1),Wr(),Wr(),Or(1),tr())for(ve=Mn!==3?8:12,Ce=0;Ce<ve;Ce++)tr()&&(Ce<6?$r(16):$r(64))}Wr();var Zn=gt();if(Zn===0)gt();else if(Zn===1)for(Or(1),Sr(),Sr(),ne=gt(),Ce=0;Ce<ne;Ce++)Sr();Wr(),Or(1);var xi=gt(),ua=gt(),Gi=st(1);Gi===0&&Or(1),Or(1),tr()&&(L=gt(),W=gt(),H=gt(),Z=gt());var Zi=[1,1];if(tr()&&tr()){var ka=ze();switch(ka){case 1:Zi=[1,1];break;case 2:Zi=[12,11];break;case 3:Zi=[10,11];break;case 4:Zi=[16,11];break;case 5:Zi=[40,33];break;case 6:Zi=[24,11];break;case 7:Zi=[20,11];break;case 8:Zi=[32,11];break;case 9:Zi=[80,33];break;case 10:Zi=[18,11];break;case 11:Zi=[15,11];break;case 12:Zi=[64,33];break;case 13:Zi=[160,99];break;case 14:Zi=[4,3];break;case 15:Zi=[3,2];break;case 16:Zi=[2,1];break;case 255:{Zi=[ze()<<8|ze(),ze()<<8|ze()];break}}}return{width:Math.ceil((xi+1)*16-L*2-W*2),height:(2-Gi)*(ua+1)*16-(Gi?2:4)*(H+Z),pixelRatio:Zi}}},{key:"readSliceType",value:function(){return this.readUByte(),this.readUEG(),this.readUEG()}}]),Ae}(),vi=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),this.keyData=void 0,this.decrypter=void 0,this.keyData=W,this.decrypter=new _a(L,{removePKCS7Padding:!1})}return Object(s.a)(Ae,[{key:"decryptBuffer",value:function(L){return this.decrypter.decrypt(L,this.keyData.key.buffer,this.keyData.iv.buffer)}},{key:"decryptAacSample",value:function(L,W,H){var Z=this,ne=L[W].unit;if(ne.length<=16)return;var ve=ne.subarray(16,ne.length-ne.length%16),Ce=ve.buffer.slice(ve.byteOffset,ve.byteOffset+ve.length);this.decryptBuffer(Ce).then(function(ze){var st=new Uint8Array(ze);ne.set(st,16),Z.decrypter.isSync()||Z.decryptAacSamples(L,W+1,H)})}},{key:"decryptAacSamples",value:function(L,W,H){for(;;W++){if(W>=L.length){H();return}if(L[W].unit.length<32)continue;if(this.decryptAacSample(L,W,H),!this.decrypter.isSync())return}}},{key:"getAvcEncryptedData",value:function(L){for(var W=Math.floor((L.length-48)/160)*16+16,H=new Int8Array(W),Z=0,ne=32;ne<L.length-16;ne+=160,Z+=16)H.set(L.subarray(ne,ne+16),Z);return H}},{key:"getAvcDecryptedUnit",value:function(L,W){for(var H=new Uint8Array(W),Z=0,ne=32;ne<L.length-16;ne+=160,Z+=16)L.set(H.subarray(Z,Z+16),ne);return L}},{key:"decryptAvcSample",value:function(L,W,H,Z,ne){var ve=this,Ce=wt(ne.data),ze=this.getAvcEncryptedData(Ce);this.decryptBuffer(ze.buffer).then(function(st){ne.data=ve.getAvcDecryptedUnit(Ce,st),ve.decrypter.isSync()||ve.decryptAvcSamples(L,W,H+1,Z)})}},{key:"decryptAvcSamples",value:function(L,W,H,Z){if(L instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;W++,H=0){if(W>=L.length){Z();return}for(var ne=L[W].units;!(H>=ne.length);H++){var ve=ne[H];if(ve.data.length<=48||ve.type!==1&&ve.type!==5)continue;if(this.decryptAvcSample(L,W,H,Z,ve),!this.decrypter.isSync())return}}}}]),Ae}(),yi=188,Ni=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),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=ee,this.config=L,this.typeSupported=W}return Object(s.a)(Ae,[{key:"resetInitSegment",value:function(L,W,H,Z){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=Ae.createTrack("video"),this._audioTrack=Ae.createTrack("audio",Z),this._id3Track=Ae.createTrack("id3"),this._txtTrack=Ae.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=W,this.videoCodec=H,this._duration=Z}},{key:"resetTimeStamp",value:function(){}},{key:"resetContiguity",value:function(){var L=this._audioTrack,W=this._avcTrack,H=this._id3Track;L&&(L.pesData=null),W&&(W.pesData=null),H&&(H.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null}},{key:"demux",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;H||(this.sampleAes=null);var ne,ve=this._avcTrack,Ce=this._audioTrack,ze=this._id3Track,st=this._txtTrack,gt=ve.pid,tr=ve.pesData,Or=Ce.pid,Sr=ze.pid,Wr=Ce.pesData,$r=ze.pesData,Ln=null,Mn=this.pmtParsed,Zn=this._pmtId,xi=L.length;if(this.remainderData&&(L=Tt(this.remainderData,L),xi=L.length,this.remainderData=null),xi<yi&&!Z)return this.remainderData=L,{audioTrack:Ce,videoTrack:ve,id3Track:ze,textTrack:st};var ua=Math.max(0,Ae.syncOffset(L));xi-=(xi-ua)%yi,xi<L.byteLength&&!Z&&(this.remainderData=new Uint8Array(L.buffer,xi,L.buffer.byteLength-xi));for(var Gi=0,Zi=ua;Zi<xi;Zi+=yi)if(L[Zi]===71){var ka=!!(L[Zi+1]&64),Ga=Ki(L,Zi),Ba=(L[Zi+3]&48)>>4,xa=void 0;if(Ba>1){if(xa=Zi+5+L[Zi+4],xa===Zi+yi)continue}else xa=Zi+4;switch(Ga){case gt:ka&&(tr&&(ne=Sa(tr))&&this.parseAVCPES(ve,st,ne,!1),tr={data:[],size:0}),tr&&(tr.data.push(L.subarray(xa,Zi+yi)),tr.size+=Zi+yi-xa);break;case Or:if(ka){if(Wr&&(ne=Sa(Wr)))switch(Ce.segmentCodec){case"aac":this.parseAACPES(Ce,ne);break;case"mp3":this.parseMPEGPES(Ce,ne);break}Wr={data:[],size:0}}Wr&&(Wr.data.push(L.subarray(xa,Zi+yi)),Wr.size+=Zi+yi-xa);break;case Sr:ka&&($r&&(ne=Sa($r))&&this.parseID3PES(ze,ne),$r={data:[],size:0}),$r&&($r.data.push(L.subarray(xa,Zi+yi)),$r.size+=Zi+yi-xa);break;case 0:ka&&(xa+=L[xa]+1),Zn=this._pmtId=fa(L,xa);break;case Zn:{ka&&(xa+=L[xa]+1);var Go=Ya(L,xa,this.typeSupported,H);gt=Go.avc,gt>0&&(ve.pid=gt),Or=Go.audio,Or>0&&(Ce.pid=Or,Ce.segmentCodec=Go.segmentCodec),Sr=Go.id3,Sr>0&&(ze.pid=Sr),Ln!==null&&!Mn&&(j.warn("MPEG-TS PMT found at ".concat(Zi," after unknown PID '").concat(Ln,"'. Backtracking to sync byte @").concat(ua," to parse all TS packets.")),Ln=null,Zi=ua-188),Mn=this.pmtParsed=!0;break}case 17:case 8191:break;default:Ln=Ga;break}}else Gi++;if(Gi>0){var bs=new Error("Found ".concat(Gi," TS packet/s that do not start with 0x47"));this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:bs,reason:bs.message})}ve.pesData=tr,Ce.pesData=Wr,ze.pesData=$r;var ys={audioTrack:Ce,videoTrack:ve,id3Track:ze,textTrack:st};return Z&&this.extractRemainingSamples(ys),ys}},{key:"flush",value:function(){var L=this.remainderData;this.remainderData=null;var W;return L?W=this.demux(L,-1,!1,!0):W={videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(W),this.sampleAes?this.decrypt(W,this.sampleAes):W}},{key:"extractRemainingSamples",value:function(L){var W=L.audioTrack,H=L.videoTrack,Z=L.id3Track,ne=L.textTrack,ve=H.pesData,Ce=W.pesData,ze=Z.pesData,st;if(ve&&(st=Sa(ve))?(this.parseAVCPES(H,ne,st,!0),H.pesData=null):H.pesData=ve,Ce&&(st=Sa(Ce))){switch(W.segmentCodec){case"aac":this.parseAACPES(W,st);break;case"mp3":this.parseMPEGPES(W,st);break}W.pesData=null}else Ce!=null&&Ce.size&&j.log("last AAC PES packet truncated,might overlap between fragments"),W.pesData=Ce;ze&&(st=Sa(ze))?(this.parseID3PES(Z,st),Z.pesData=null):Z.pesData=ze}},{key:"demuxSampleAes",value:function(L,W,H){var Z=this.demux(L,H,!0,!this.config.progressive),ne=this.sampleAes=new vi(this.observer,this.config,W);return this.decrypt(Z,ne)}},{key:"decrypt",value:function(L,W){return new Promise(function(H){var Z=L.audioTrack,ne=L.videoTrack;Z.samples&&Z.segmentCodec==="aac"?W.decryptAacSamples(Z.samples,0,function(){ne.samples?W.decryptAvcSamples(ne.samples,0,0,function(){H(L)}):H(L)}):ne.samples&&W.decryptAvcSamples(ne.samples,0,0,function(){H(L)})})}},{key:"destroy",value:function(){this._duration=0}},{key:"parseAVCPES",value:function(L,W,H,Z){var ne=this,ve=this.parseAVCNALu(L,H.data),Ce=this.avcSample,ze,st=!1;H.data=null,Ce&&ve.length&&!L.audFound&&(wa(Ce,L),Ce=this.avcSample=ia(!1,H.pts,H.dts,"")),ve.forEach(function(gt){var tr;switch(gt.type){case 1:{var Or=!1;ze=!0;var Sr=gt.data;if(st&&Sr.length>4){var Wr=new Ti(Sr).readSliceType();(Wr===2||Wr===4||Wr===7||Wr===9)&&(Or=!0)}if(Or){var $r;($r=Ce)!=null&&$r.frame&&!Ce.key&&(wa(Ce,L),Ce=ne.avcSample=null)}Ce||(Ce=ne.avcSample=ia(!0,H.pts,H.dts,"")),Ce.frame=!0,Ce.key=Or;break}case 5:ze=!0,(tr=Ce)!=null&&tr.frame&&!Ce.key&&(wa(Ce,L),Ce=ne.avcSample=null),Ce||(Ce=ne.avcSample=ia(!0,H.pts,H.dts,"")),Ce.key=!0,Ce.frame=!0;break;case 6:{ze=!0,rt(gt.data,1,H.pts,W.samples);break}case 7:if(ze=!0,st=!0,!L.sps){var Ln=gt.data,Mn=new Ti(Ln),Zn=Mn.readSPS();L.width=Zn.width,L.height=Zn.height,L.pixelRatio=Zn.pixelRatio,L.sps=[Ln],L.duration=ne._duration;for(var xi=Ln.subarray(1,4),ua="avc1.",Gi=0;Gi<3;Gi++){var Zi=xi[Gi].toString(16);Zi.length<2&&(Zi="0"+Zi),ua+=Zi}L.codec=ua}break;case 8:ze=!0,L.pps||(L.pps=[gt.data]);break;case 9:ze=!1,L.audFound=!0,Ce&&wa(Ce,L),Ce=ne.avcSample=ia(!1,H.pts,H.dts,"");break;case 12:ze=!0;break;default:ze=!1,Ce&&(Ce.debug+="unknown NAL "+gt.type+" ");break}if(Ce&&ze){var ka=Ce.units;ka.push(gt)}}),Z&&Ce&&(wa(Ce,L),this.avcSample=null)}},{key:"getLastNalUnit",value:function(L){var W,H=this.avcSample,Z;if((!H||H.units.length===0)&&(H=L[L.length-1]),(W=H)!=null&&W.units){var ne=H.units;Z=ne[ne.length-1]}return Z}},{key:"parseAVCNALu",value:function(L,W){var H=W.byteLength,Z=L.naluState||0,ne=Z,ve=[],Ce=0,ze,st,gt,tr=-1,Or=0;for(Z===-1&&(tr=0,Or=W[0]&31,Z=0,Ce=1);Ce<H;){if(ze=W[Ce++],!Z){Z=ze?0:1;continue}if(Z===1){Z=ze?0:2;continue}if(!ze)Z=3;else if(ze===1){if(tr>=0){var Sr={data:W.subarray(tr,Ce-Z-1),type:Or};ve.push(Sr)}else{var Wr=this.getLastNalUnit(L.samples);if(Wr&&(ne&&Ce<=4-ne&&(Wr.state&&(Wr.data=Wr.data.subarray(0,Wr.data.byteLength-ne))),st=Ce-Z-1,st>0)){var $r=new Uint8Array(Wr.data.byteLength+st);$r.set(Wr.data,0),$r.set(W.subarray(0,st),Wr.data.byteLength),Wr.data=$r,Wr.state=0}}Ce<H?(gt=W[Ce]&31,tr=Ce,Or=gt,Z=0):Z=-1}else Z=0}if(tr>=0&&Z>=0){var Ln={data:W.subarray(tr,H),type:Or,state:Z};ve.push(Ln)}if(ve.length===0){var Mn=this.getLastNalUnit(L.samples);if(Mn){var Zn=new Uint8Array(Mn.data.byteLength+W.byteLength);Zn.set(Mn.data,0),Zn.set(W,Mn.data.byteLength),Mn.data=Zn}}return L.naluState=Z,ve}},{key:"parseAACPES",value:function(L,W){var H=0,Z=this.aacOverFlow,ne=W.data;if(Z){this.aacOverFlow=null;var ve=Z.missing,Ce=Z.sample.unit.byteLength;if(ve===-1){var ze=new Uint8Array(Ce+ne.byteLength);ze.set(Z.sample.unit,0),ze.set(ne,Ce),ne=ze}else{var st=Ce-ve;Z.sample.unit.set(ne.subarray(0,ve),st),L.samples.push(Z.sample),H=Z.missing}}var gt,tr;for(gt=H,tr=ne.length;gt<tr-1&&!Io(ne,gt);gt++);if(gt!==H){var Or,Sr=gt<tr-1;Sr?Or="AAC PES did not start with ADTS header,offset:".concat(gt):Or="No ADTS header found in AAC PES";var Wr=new Error(Or);if(j.warn("parsing error: ".concat(Or)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,levelRetry:Sr,error:Wr,reason:Or}),!Sr)return}rs(L,this.observer,ne,gt,this.audioCodec);var $r;if(W.pts!==void 0)$r=W.pts;else if(Z){var Ln=Ho(L.samplerate);$r=Z.sample.pts+Ln}else{j.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var Mn=0,Zn;gt<tr;)if(Zn=uo(L,ne,gt,$r,Mn),gt+=Zn.length,Zn.missing){this.aacOverFlow=Zn;break}else for(Mn++;gt<tr-1&&!Io(ne,gt);gt++);}},{key:"parseMPEGPES",value:function(L,W){var H=W.data,Z=H.length,ne=0,ve=0,Ce=W.pts;if(Ce===void 0){j.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;ve<Z;)if(ui(H,ve)){var ze=ii(L,H,ve,Ce,ne);if(ze)ve+=ze.length,ne++;else break}else ve++}},{key:"parseID3PES",value:function(L,W){if(W.pts===void 0){j.warn("[tsdemuxer]: ID3 PES unknown PTS");return}var H=E({},W,{type:this._avcTrack?tn.emsg:tn.audioId3,duration:Number.POSITIVE_INFINITY});L.samples.push(H)}}],[{key:"probe",value:function(L){var W=Ae.syncOffset(L);return W>0&&j.warn("MPEG2-TS detected but first sync word found @ offset ".concat(W)),W!==-1}},{key:"syncOffset",value:function(L){for(var W=L.length,H=Math.min(yi*5,L.length-yi)+1,Z=0;Z<H;){for(var ne=!1,ve=-1,Ce=0,ze=Z;ze<W;ze+=yi)if(L[ze]===71){if(Ce++,ve===-1&&(ve=ze,ve!==0&&(H=Math.min(ve+yi*99,L.length-yi)+1)),ne||(ne=Ki(L,ze)===0),ne&&Ce>1&&(ve===0&&Ce>2||ze+yi>H))return ve}else{if(Ce)return-1;break}Z++}return-1}},{key:"createTrack",value:function(L,W){return{container:L==="video"||L==="audio"?"video/mp2t":void 0,type:L,id:or[L],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:L==="audio"?W:void 0}}}]),Ae}();function ia(Ae,ee,L,W){return{key:Ae,frame:!1,pts:ee,dts:L,units:[],debug:W,length:0}}function Ki(Ae,ee){return((Ae[ee+1]&31)<<8)+Ae[ee+2]}function fa(Ae,ee){return(Ae[ee+10]&31)<<8|Ae[ee+11]}function Ya(Ae,ee,L,W){var H={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},Z=(Ae[ee+1]&15)<<8|Ae[ee+2],ne=ee+3+Z-4,ve=(Ae[ee+10]&15)<<8|Ae[ee+11];for(ee+=12+ve;ee<ne;){var Ce=Ki(Ae,ee);switch(Ae[ee]){case 207:if(!W){j.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:H.audio===-1&&(H.audio=Ce);break;case 21:H.id3===-1&&(H.id3=Ce);break;case 219:if(!W){j.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:H.avc===-1&&(H.avc=Ce);break;case 3:case 4:L.mpeg!==!0&&L.mp3!==!0?j.log("MPEG audio found, not supported in this browser"):H.audio===-1&&(H.audio=Ce,H.segmentCodec="mp3");break;case 36:j.warn("Unsupported HEVC stream type found");break}ee+=((Ae[ee+3]&15)<<8|Ae[ee+4])+5}return H}function Sa(Ae){var ee=0,L,W,H,Z,ne,ve=Ae.data;if(!Ae||Ae.size===0)return null;for(;ve[0].length<19&&ve.length>1;){var Ce=new Uint8Array(ve[0].length+ve[1].length);Ce.set(ve[0]),Ce.set(ve[1],ve[0].length),ve[0]=Ce,ve.splice(1,1)}L=ve[0];var ze=(L[0]<<16)+(L[1]<<8)+L[2];if(ze===1){if(W=(L[4]<<8)+L[5],W&&W>Ae.size-6)return null;var st=L[7];st&192&&(Z=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,st&64?(ne=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,Z-ne>60*9e4&&(j.warn("".concat(Math.round((Z-ne)/9e4),"s delta between PTS and DTS, align them")),Z=ne)):ne=Z),H=L[8];var gt=H+9;if(Ae.size<=gt)return null;Ae.size-=gt;for(var tr=new Uint8Array(Ae.size),Or=0,Sr=ve.length;Or<Sr;Or++){L=ve[Or];var Wr=L.byteLength;if(gt)if(gt>Wr){gt-=Wr;continue}else L=L.subarray(gt),Wr-=gt,gt=0;tr.set(L,ee),ee+=Wr}return W&&(W-=H+3),{data:tr,pts:Z,dts:ne,len:W}}return null}function wa(Ae,ee){if(Ae.units.length&&Ae.frame){if(Ae.pts===void 0){var L=ee.samples,W=L.length;if(W){var H=L[W-1];Ae.pts=H.pts,Ae.dts=H.dts}else{ee.dropped++;return}}ee.samples.push(Ae)}Ae.debug.length&&j.log(Ae.pts+"/"+Ae.dts+":"+Ae.debug)}var Da=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(){return Object(r.a)(this,L),ee.apply(this,arguments)}return Object(s.a)(L,[{key:"resetInitSegment",value:function(H,Z,ne,ve){Object(t.a)(Object(p.a)(L.prototype),"resetInitSegment",this).call(this,H,Z,ne,ve),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:Z,duration:ve,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return di(H,Z)}},{key:"appendFrame",value:function(H,Z,ne){return this.basePTS===null?void 0:ii(H,Z,ne,this.basePTS,this.frameIndex)}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=pt(H,0)||[],ne=Z.length,ve=H.length;ne<ve;ne++)if(li(H,ne))return j.log("MPEG Audio sync word found !"),!0;return!1}}]),L}(to),ja=function(){function Ae(){Object(r.a)(this,Ae)}return Object(s.a)(Ae,null,[{key:"getSilentFrame",value:function(L,W){switch(L){case"mp4a.40.2":if(W===1)return new Uint8Array([0,200,0,128,35,128]);if(W===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(W===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(W===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(W===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(W===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(W===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(W===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(W===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}}]),Ae}(),ko=Math.pow(2,32)-1,ro=function(){function Ae(){Object(r.a)(this,Ae)}return Object(s.a)(Ae,null,[{key:"init",value:function(){Ae.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 L;for(L in Ae.types)Ae.types.hasOwnProperty(L)&&(Ae.types[L]=[L.charCodeAt(0),L.charCodeAt(1),L.charCodeAt(2),L.charCodeAt(3)]);var W=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]),H=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]);Ae.HDLR_TYPES={video:W,audio:H};var Z=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ne=new Uint8Array([0,0,0,0,0,0,0,0]);Ae.STTS=Ae.STSC=Ae.STCO=ne,Ae.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ae.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ae.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ae.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var ve=new Uint8Array([105,115,111,109]),Ce=new Uint8Array([97,118,99,49]),ze=new Uint8Array([0,0,0,1]);Ae.FTYP=Ae.box(Ae.types.ftyp,ve,ze,ve,Ce),Ae.DINF=Ae.box(Ae.types.dinf,Ae.box(Ae.types.dref,Z))}},{key:"box",value:function(L){for(var W=8,H=arguments.length,Z=new Array(H>1?H-1:0),ne=1;ne<H;ne++)Z[ne-1]=arguments[ne];for(var ve=Z.length,Ce=ve;ve--;)W+=Z[ve].byteLength;var ze=new Uint8Array(W);for(ze[0]=W>>24&255,ze[1]=W>>16&255,ze[2]=W>>8&255,ze[3]=W&255,ze.set(L,4),ve=0,W=8;ve<Ce;ve++)ze.set(Z[ve],W),W+=Z[ve].byteLength;return ze}},{key:"hdlr",value:function(L){return Ae.box(Ae.types.hdlr,Ae.HDLR_TYPES[L])}},{key:"mdat",value:function(L){return Ae.box(Ae.types.mdat,L)}},{key:"mdhd",value:function(L,W){W*=L;var H=Math.floor(W/(ko+1)),Z=Math.floor(W%(ko+1));return Ae.box(Ae.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,85,196,0,0]))}},{key:"mdia",value:function(L){return Ae.box(Ae.types.mdia,Ae.mdhd(L.timescale,L.duration),Ae.hdlr(L.type),Ae.minf(L))}},{key:"mfhd",value:function(L){return Ae.box(Ae.types.mfhd,new Uint8Array([0,0,0,0,L>>24,L>>16&255,L>>8&255,L&255]))}},{key:"minf",value:function(L){return L.type==="audio"?Ae.box(Ae.types.minf,Ae.box(Ae.types.smhd,Ae.SMHD),Ae.DINF,Ae.stbl(L)):Ae.box(Ae.types.minf,Ae.box(Ae.types.vmhd,Ae.VMHD),Ae.DINF,Ae.stbl(L))}},{key:"moof",value:function(L,W,H){return Ae.box(Ae.types.moof,Ae.mfhd(L),Ae.traf(H,W))}},{key:"moov",value:function(L){for(var W=L.length,H=[];W--;)H[W]=Ae.trak(L[W]);return Ae.box.apply(null,[Ae.types.moov,Ae.mvhd(L[0].timescale,L[0].duration)].concat(H).concat(Ae.mvex(L)))}},{key:"mvex",value:function(L){for(var W=L.length,H=[];W--;)H[W]=Ae.trex(L[W]);return Ae.box.apply(null,[Ae.types.mvex].concat(H))}},{key:"mvhd",value:function(L,W){W*=L;var H=Math.floor(W/(ko+1)),Z=Math.floor(W%(ko+1)),ne=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&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 Ae.box(Ae.types.mvhd,ne)}},{key:"sdtp",value:function(L){var W=L.samples||[],H=new Uint8Array(4+W.length),Z,ne;for(Z=0;Z<W.length;Z++)ne=W[Z].flags,H[Z+4]=ne.dependsOn<<4|ne.isDependedOn<<2|ne.hasRedundancy;return Ae.box(Ae.types.sdtp,H)}},{key:"stbl",value:function(L){return Ae.box(Ae.types.stbl,Ae.stsd(L),Ae.box(Ae.types.stts,Ae.STTS),Ae.box(Ae.types.stsc,Ae.STSC),Ae.box(Ae.types.stsz,Ae.STSZ),Ae.box(Ae.types.stco,Ae.STCO))}},{key:"avc1",value:function(L){var W=[],H=[],Z,ne,ve;for(Z=0;Z<L.sps.length;Z++)ne=L.sps[Z],ve=ne.byteLength,W.push(ve>>>8&255),W.push(ve&255),W=W.concat(Array.prototype.slice.call(ne));for(Z=0;Z<L.pps.length;Z++)ne=L.pps[Z],ve=ne.byteLength,H.push(ve>>>8&255),H.push(ve&255),H=H.concat(Array.prototype.slice.call(ne));var Ce=Ae.box(Ae.types.avcC,new Uint8Array([1,W[3],W[4],W[5],252|3,224|L.sps.length].concat(W).concat([L.pps.length]).concat(H))),ze=L.width,st=L.height,gt=L.pixelRatio[0],tr=L.pixelRatio[1];return Ae.box(Ae.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,ze>>8&255,ze&255,st>>8&255,st&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]),Ce,Ae.box(Ae.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ae.box(Ae.types.pasp,new Uint8Array([gt>>24,gt>>16&255,gt>>8&255,gt&255,tr>>24,tr>>16&255,tr>>8&255,tr&255])))}},{key:"esds",value:function(L){var W=L.config.length;return new Uint8Array([0,0,0,0,3,23+W,0,1,0,4,15+W,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([W]).concat(L.config).concat([6,1,2]))}},{key:"mp4a",value:function(L){var W=L.samplerate;return Ae.box(Ae.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,W>>8&255,W&255,0,0]),Ae.box(Ae.types.esds,Ae.esds(L)))}},{key:"mp3",value:function(L){var W=L.samplerate;return Ae.box(Ae.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,W>>8&255,W&255,0,0]))}},{key:"stsd",value:function(L){return L.type==="audio"?L.segmentCodec==="mp3"&&L.codec==="mp3"?Ae.box(Ae.types.stsd,Ae.STSD,Ae.mp3(L)):Ae.box(Ae.types.stsd,Ae.STSD,Ae.mp4a(L)):Ae.box(Ae.types.stsd,Ae.STSD,Ae.avc1(L))}},{key:"tkhd",value:function(L){var W=L.id,H=L.duration*L.timescale,Z=L.width,ne=L.height,ve=Math.floor(H/(ko+1)),Ce=Math.floor(H%(ko+1));return Ae.box(Ae.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,W>>24&255,W>>16&255,W>>8&255,W&255,0,0,0,0,ve>>24,ve>>16&255,ve>>8&255,ve&255,Ce>>24,Ce>>16&255,Ce>>8&255,Ce&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,Z>>8&255,Z&255,0,0,ne>>8&255,ne&255,0,0]))}},{key:"traf",value:function(L,W){var H=Ae.sdtp(L),Z=L.id,ne=Math.floor(W/(ko+1)),ve=Math.floor(W%(ko+1));return Ae.box(Ae.types.traf,Ae.box(Ae.types.tfhd,new Uint8Array([0,0,0,0,Z>>24,Z>>16&255,Z>>8&255,Z&255])),Ae.box(Ae.types.tfdt,new Uint8Array([1,0,0,0,ne>>24,ne>>16&255,ne>>8&255,ne&255,ve>>24,ve>>16&255,ve>>8&255,ve&255])),Ae.trun(L,H.length+16+20+8+16+8+8),H)}},{key:"trak",value:function(L){return L.duration=L.duration||4294967295,Ae.box(Ae.types.trak,Ae.tkhd(L),Ae.mdia(L))}},{key:"trex",value:function(L){var W=L.id;return Ae.box(Ae.types.trex,new Uint8Array([0,0,0,0,W>>24,W>>16&255,W>>8&255,W&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(L,W){var H=L.samples||[],Z=H.length,ne=12+16*Z,ve=new Uint8Array(ne),Ce,ze,st,gt,tr,Or;for(W+=8+ne,ve.set([L.type==="video"?1:0,0,15,1,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,W>>>24&255,W>>>16&255,W>>>8&255,W&255],0),Ce=0;Ce<Z;Ce++)ze=H[Ce],st=ze.duration,gt=ze.size,tr=ze.flags,Or=ze.cts,ve.set([st>>>24&255,st>>>16&255,st>>>8&255,st&255,gt>>>24&255,gt>>>16&255,gt>>>8&255,gt&255,tr.isLeading<<2|tr.dependsOn,tr.isDependedOn<<6|tr.hasRedundancy<<4|tr.paddingValue<<1|tr.isNonSync,tr.degradPrio&240<<8,tr.degradPrio&15,Or>>>24&255,Or>>>16&255,Or>>>8&255,Or&255],12+16*Ce);return Ae.box(Ae.types.trun,ve)}},{key:"initSegment",value:function(L){Ae.types||Ae.init();var W=Ae.moov(L),H=new Uint8Array(Ae.FTYP.byteLength+W.byteLength);return H.set(Ae.FTYP),H.set(W,Ae.FTYP.byteLength),H}}]),Ae}();ro.types=void 0,ro.HDLR_TYPES=void 0,ro.STTS=void 0,ro.STSC=void 0,ro.STCO=void 0,ro.STSZ=void 0,ro.VMHD=void 0,ro.SMHD=void 0,ro.STSD=void 0,ro.FTYP=void 0,ro.DINF=void 0;var pa=9e4;function Ea(Ae,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,H=Ae*ee*L;return W?Math.round(H):H}function Fa(Ae,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ea(Ae,ee,1/L,W)}function Ka(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ea(Ae,1e3,1/pa,ee)}function lo(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Ea(Ae,pa,1/ee)}var so=10*1e3,To=1024,Lo=1152,is=null,cs=null,Rs=function(){function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";if(Object(r.a)(this,Ae),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=ee,this.config=L,this.typeSupported=W,this.ISGenerated=!1,is===null){var Z=navigator.userAgent||"",ne=Z.match(/Chrome\/(\d+)/i);is=ne?parseInt(ne[1]):0}if(cs===null){var ve=navigator.userAgent.match(/Safari\/(\d+)/i);cs=ve?parseInt(ve[1]):0}}return Object(s.a)(Ae,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){j.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=L}},{key:"resetNextTimestamp",value:function(){j.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}},{key:"resetInitSegment",value:function(){j.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1}},{key:"getVideoStartPts",value:function(L){var W=!1,H=L.reduce(function(Z,ne){var ve=ne.pts-Z;return ve<-4294967296?(W=!0,Ko(Z,ne.pts)):ve>0?Z:ne.pts},L[0].pts);return W&&j.debug("PTS rollover detected"),H}},{key:"remux",value:function(L,W,H,Z,ne,ve,Ce,ze){var st,gt,tr,Or,Sr,Wr,$r=ne,Ln=ne,Mn=L.pid>-1,Zn=W.pid>-1,xi=W.samples.length,ua=L.samples.length>0,Gi=Ce&&xi>0||xi>1,Zi=(!Mn||ua)&&(!Zn||Gi)||this.ISGenerated||Ce;if(Zi){this.ISGenerated||(tr=this.generateIS(L,W,ne,ve));var ka=this.isVideoContiguous,Ga=-1,Ba;if(Gi&&(Ga=as(W.samples),!ka&&this.config.forceKeyFrameOnDiscontinuity))if(Wr=!0,Ga>0){j.warn("[mp4-remuxer]: Dropped ".concat(Ga," out of ").concat(xi," video samples due to a missing keyframe"));var xa=this.getVideoStartPts(W.samples);W.samples=W.samples.slice(Ga),W.dropped+=Ga,Ln+=(W.samples[0].pts-xa)/W.inputTimeScale,Ba=Ln}else Ga===-1&&(j.warn("[mp4-remuxer]: No keyframe found out of ".concat(xi," video samples")),Wr=!1);if(this.ISGenerated){if(ua&&Gi){var Go=this.getVideoStartPts(W.samples),bs=Ko(L.samples[0].pts,Go)-Go,ys=bs/W.inputTimeScale;$r+=Math.max(0,ys),Ln+=Math.max(0,-ys)}if(ua){if(L.samplerate||(j.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),tr=this.generateIS(L,W,ne,ve)),gt=this.remuxAudio(L,$r,this.isAudioContiguous,ve,Zn||Gi||ze===At.AUDIO?Ln:void 0),Gi){var Ts=gt?gt.endPTS-gt.startPTS:0;W.inputTimeScale||(j.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),tr=this.generateIS(L,W,ne,ve)),st=this.remuxVideo(W,Ln,ka,Ts)}}else Gi&&(st=this.remuxVideo(W,Ln,ka,0));st&&(st.firstKeyFrame=Ga,st.independent=Ga!==-1,st.firstKeyFramePTS=Ba)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(H.samples.length&&(Sr=co(H,ne,this._initPTS,this._initDTS)),Z.samples.length&&(Or=Ao(Z,ne,this._initPTS))),{audio:gt,video:st,initSegment:tr,independent:Wr,text:Or,id3:Sr}}},{key:"generateIS",value:function(L,W,H,Z){var ne=L.samples,ve=W.samples,Ce=this.typeSupported,ze={},st=this._initPTS,gt=!st||Z,tr="audio/mp4",Or,Sr,Wr;if(gt&&(Or=Sr=Infinity),L.config&&ne.length){L.timescale=L.samplerate;switch(L.segmentCodec){case"mp3":Ce.mpeg?(tr="audio/mpeg",L.codec=""):Ce.mp3&&(L.codec="mp3");break}ze.audio={id:"audio",container:tr,codec:L.codec,initSegment:L.segmentCodec==="mp3"&&Ce.mpeg?new Uint8Array(0):ro.initSegment([L]),metadata:{channelCount:L.channelCount}},gt&&(Wr=L.inputTimeScale,!st||Wr!==st.timescale?Or=Sr=ne[0].pts-Math.round(Wr*H):gt=!1)}if(W.sps&&W.pps&&ve.length&&(W.timescale=W.inputTimeScale,ze.video={id:"main",container:"video/mp4",codec:W.codec,initSegment:ro.initSegment([W]),metadata:{width:W.width,height:W.height}},gt))if(Wr=W.inputTimeScale,!st||Wr!==st.timescale){var $r=this.getVideoStartPts(ve),Ln=Math.round(Wr*H);Sr=Math.min(Sr,Ko(ve[0].dts,$r)-Ln),Or=Math.min(Or,$r-Ln)}else gt=!1;if(Object.keys(ze).length)return this.ISGenerated=!0,gt?(this._initPTS={baseTime:Or,timescale:Wr},this._initDTS={baseTime:Sr,timescale:Wr}):Or=Wr=void 0,{tracks:ze,initPTS:Or,timescale:Wr}}},{key:"remuxVideo",value:function(L,W,H,Z){var ne=L.inputTimeScale,ve=L.samples,Ce=[],ze=ve.length,st=this._initPTS,gt=this.nextAvcDts,tr=8,Or=this.videoSampleDuration,Sr,Wr,$r=Number.POSITIVE_INFINITY,Ln=Number.NEGATIVE_INFINITY,Mn=!1;if(!H||gt===null){var Zn=W*ne,xi=ve[0].pts-Ko(ve[0].dts,ve[0].pts);gt=Zn-xi}for(var ua=st.baseTime*ne/st.timescale,Gi=0;Gi<ze;Gi++){var Zi=ve[Gi];Zi.pts=Ko(Zi.pts-ua,gt),Zi.dts=Ko(Zi.dts-ua,gt),Zi.dts<ve[Gi>0?Gi-1:Gi].dts&&(Mn=!0)}Mn&&ve.sort(function(Ke,Rt){var sr=Ke.dts-Rt.dts,xr=Ke.pts-Rt.pts;return sr||xr}),Sr=ve[0].dts,Wr=ve[ve.length-1].dts;var ka=Wr-Sr,Ga=ka?Math.round(ka/(ze-1)):Or||L.inputTimeScale/30;if(H){var Ba=Sr-gt,xa=Ba>Ga,Go=Ba<-1;if((xa||Go)&&(xa?j.warn("AVC: ".concat(Ka(Ba,!0)," ms (").concat(Ba,"dts) hole between fragments detected, filling it")):j.warn("AVC: ".concat(Ka(-Ba,!0)," ms (").concat(Ba,"dts) overlapping between fragments detected")),!Go||gt>=ve[0].pts)){Sr=gt;var bs=ve[0].pts-Ba;ve[0].dts=Sr,ve[0].pts=bs,j.log("Video: First PTS/DTS adjusted: ".concat(Ka(bs,!0),"/").concat(Ka(Sr,!0),", delta: ").concat(Ka(Ba,!0)," ms"))}}Sr=Math.max(0,Sr);for(var ys=0,Ts=0,js=0;js<ze;js++){for(var ws=ve[js],Hs=ws.units,Ee=Hs.length,Ye=0,It=0;It<Ee;It++)Ye+=Hs[It].data.length;Ts+=Ye,ys+=Ee,ws.length=Ye,ws.dts=Math.max(ws.dts,Sr),$r=Math.min(ws.pts,$r),Ln=Math.max(ws.pts,Ln)}Wr=ve[ze-1].dts;var fr=Ts+4*ys+8,Ur;try{Ur=new Uint8Array(fr)}catch(Ke){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:Ke,bytes:fr,reason:"fail allocating video mdat ".concat(fr)});return}var ln=new DataView(Ur.buffer);ln.setUint32(0,fr),Ur.set(ro.types.mdat,4);for(var Ue=!1,ae=Number.POSITIVE_INFINITY,_e=Number.POSITIVE_INFINITY,$e=Number.NEGATIVE_INFINITY,Et=Number.NEGATIVE_INFINITY,qt=0;qt<ze;qt++){for(var ar=ve[qt],lr=ar.units,Gr=0,pn=0,zr=lr.length;pn<zr;pn++){var Hr=lr[pn],un=Hr.data,bn=Hr.data.byteLength;ln.setUint32(tr,bn),tr+=4,Ur.set(un,tr),tr+=bn,Gr+=4+bn}var Gn=void 0;if(qt<ze-1)Or=ve[qt+1].dts-ar.dts,Gn=ve[qt+1].pts-ar.pts;else{var Li=this.config,Mi=qt>0?ar.dts-ve[qt-1].dts:Ga;if(Gn=qt>0?ar.pts-ve[qt-1].pts:Ga,Li.stretchShortVideoTrack&&this.nextAudioPts!==null){var da=Math.floor(Li.maxBufferHole*ne),$i=(Z?$r+Z*ne:this.nextAudioPts)-ar.pts;$i>da?(Or=$i-Mi,Or<0?Or=Mi:Ue=!0,j.log("[mp4-remuxer]: It is approximately ".concat($i/90," ms to the next segment; using duration ").concat(Or/90," ms for the last video frame."))):Or=Mi}else Or=Mi}var Qa=Math.round(ar.pts-ar.dts);ae=Math.min(ae,Or),$e=Math.max($e,Or),_e=Math.min(_e,Gn),Et=Math.max(Et,Gn),Ce.push(new $a(ar.key,Or,Gr,Qa))}if(Ce.length){if(is){if(is<70){var ya=Ce[0].flags;ya.dependsOn=2,ya.isNonSync=0}}else if(cs&&(Et-_e<$e-ae&&Ga/$e<.025&&Ce[0].cts===0)){j.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var fo=Sr,za=0,Xo=Ce.length;za<Xo;za++){var ls=fo+Ce[za].duration,N=fo+Ce[za].cts;if(za<Xo-1){var B=ls+Ce[za+1].cts;Ce[za].duration=B-N}else Ce[za].duration=za?Ce[za-1].duration:Ga;Ce[za].cts=0,fo=ls}}}Or=Ue||!Or?Ga:Or,this.nextAvcDts=gt=Wr+Or,this.videoSampleDuration=Or,this.isVideoContiguous=!0;var ie=ro.moof(L.sequenceNumber++,Sr,E({},L,{samples:Ce})),le="video",ge={data1:ie,data2:Ur,startPTS:$r/ne,endPTS:(Ln+Or)/ne,startDTS:Sr/ne,endDTS:gt/ne,type:le,hasAudio:!1,hasVideo:!0,nb:Ce.length,dropped:L.dropped};return L.samples=[],L.dropped=0,ge}},{key:"remuxAudio",value:function(L,W,H,Z,ne){var ve=L.inputTimeScale,Ce=L.samplerate?L.samplerate:ve,ze=ve/Ce,st=L.segmentCodec==="aac"?To:Lo,gt=st*ze,tr=this._initPTS,Or=L.segmentCodec==="mp3"&&this.typeSupported.mpeg,Sr=[],Wr=ne!==void 0,$r=L.samples,Ln=Or?0:8,Mn=this.nextAudioPts||-1,Zn=W*ve,xi=tr.baseTime*ve/tr.timescale;if(this.isAudioContiguous=H=H||$r.length&&Mn>0&&(Z&&Math.abs(Zn-Mn)<9e3||Math.abs(Ko($r[0].pts-xi,Zn)-Mn)<20*gt),$r.forEach(function(Hr){Hr.pts=Ko(Hr.pts-xi,Zn)}),!H||Mn<0){if($r=$r.filter(function(Hr){return Hr.pts>=0}),!$r.length)return;ne===0?Mn=0:Z&&!Wr?Mn=Math.max(0,Zn):Mn=$r[0].pts}if(L.segmentCodec==="aac")for(var ua=this.config.maxAudioFramesDrift,Gi=0,Zi=Mn;Gi<$r.length;Gi++){var ka=$r[Gi],Ga=ka.pts,Ba=Ga-Zi,xa=Math.abs(1e3*Ba/ve);if(Ba<=-ua*gt&&Wr)Gi===0&&(j.warn("Audio frame @ ".concat((Ga/ve).toFixed(3),"s overlaps nextAudioPts by ").concat(Math.round(1e3*Ba/ve)," ms.")),this.nextAudioPts=Mn=Zi=Ga);else if(Ba>=ua*gt&&xa<so&&Wr){var Go=Math.round(Ba/gt);Zi=Ga-Go*gt,Zi<0&&(Go--,Zi+=gt),Gi===0&&(this.nextAudioPts=Mn=Zi),j.warn("[mp4-remuxer]: Injecting ".concat(Go," audio frame @ ").concat((Zi/ve).toFixed(3),"s due to ").concat(Math.round(1e3*Ba/ve)," ms gap."));for(var bs=0;bs<Go;bs++){var ys=Math.max(Zi,0),Ts=ja.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);Ts||(j.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Ts=ka.unit.subarray()),$r.splice(Gi,0,{unit:Ts,pts:ys}),Zi+=gt,Gi++}}ka.pts=Zi,Zi+=gt}for(var js=null,ws=null,Hs,Ee=0,Ye=$r.length;Ye--;)Ee+=$r[Ye].unit.byteLength;for(var It=0,fr=$r.length;It<fr;It++){var Ur=$r[It],ln=Ur.unit,Ue=Ur.pts;if(ws!==null){var ae=Sr[It-1];ae.duration=Math.round((Ue-ws)/ze)}else if(H&&L.segmentCodec==="aac"&&(Ue=Mn),js=Ue,Ee>0){Ee+=Ln;try{Hs=new Uint8Array(Ee)}catch(Hr){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:Hr,bytes:Ee,reason:"fail allocating audio mdat ".concat(Ee)});return}if(!Or){var _e=new DataView(Hs.buffer);_e.setUint32(0,Ee),Hs.set(ro.types.mdat,4)}}else return;Hs.set(ln,Ln);var $e=ln.byteLength;Ln+=$e,Sr.push(new $a(!0,st,$e,0)),ws=Ue}var Et=Sr.length;if(!Et)return;var qt=Sr[Sr.length-1];this.nextAudioPts=Mn=ws+ze*qt.duration;var ar=Or?new Uint8Array(0):ro.moof(L.sequenceNumber++,js/ze,E({},L,{samples:Sr}));L.samples=[];var lr=js/ve,Gr=Mn/ve,pn="audio",zr={data1:ar,data2:Hs,startPTS:lr,endPTS:Gr,startDTS:lr,endDTS:Gr,type:pn,hasAudio:!0,hasVideo:!1,nb:Et};return this.isAudioContiguous=!0,zr}},{key:"remuxEmptyAudio",value:function(L,W,H,Z){var ne=L.inputTimeScale,ve=L.samplerate?L.samplerate:ne,Ce=ne/ve,ze=this.nextAudioPts,st=this._initDTS,gt=st.baseTime*9e4/st.timescale,tr=(ze!==null?ze:Z.startDTS*ne)+gt,Or=Z.endDTS*ne+gt,Sr=Ce*To,Wr=Math.ceil((Or-tr)/Sr),$r=ja.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);if(j.warn("[mp4-remuxer]: remux empty Audio"),!$r){j.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var Ln=[],Mn=0;Mn<Wr;Mn++){var Zn=tr+Mn*Sr;Ln.push({unit:$r,pts:Zn,dts:Zn})}return L.samples=Ln,this.remuxAudio(L,W,H,!1)}}]),Ae}();function Ko(Ae,ee){var L;if(ee===null)return Ae;for(ee<Ae?L=-8589934592:L=8589934592;Math.abs(Ae-ee)>4294967296;)Ae+=L;return Ae}function as(Ae){for(var ee=0;ee<Ae.length;ee++)if(Ae[ee].key)return ee;return-1}function co(Ae,ee,L,W){var H=Ae.samples.length;if(!H)return;for(var Z=Ae.inputTimeScale,ne=0;ne<H;ne++){var ve=Ae.samples[ne];ve.pts=Ko(ve.pts-L.baseTime*Z/L.timescale,ee*Z)/Z,ve.dts=Ko(ve.dts-W.baseTime*Z/W.timescale,ee*Z)/Z}var Ce=Ae.samples;return Ae.samples=[],{samples:Ce}}function Ao(Ae,ee,L){var W=Ae.samples.length;if(!W)return;for(var H=Ae.inputTimeScale,Z=0;Z<W;Z++){var ne=Ae.samples[Z];ne.pts=Ko(ne.pts-L.baseTime*H/L.timescale,ee*H)/H}Ae.samples.sort(function(Ce,ze){return Ce.pts-ze.pts});var ve=Ae.samples;return Ae.samples=[],{samples:ve}}var $a=Object(s.a)(function Ae(ee,L,W,H){Object(r.a)(this,Ae),this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=L,this.size=W,this.cts=H,this.flags=new ss(ee)}),ss=Object(s.a)(function Ae(ee){Object(r.a)(this,Ae),this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=ee?2:1,this.isNonSync=ee?0:1}),_s=function(){function Ae(){Object(r.a)(this,Ae),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}return Object(s.a)(Ae,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){this.initPTS=L,this.lastEndTime=null}},{key:"resetNextTimestamp",value:function(){this.lastEndTime=null}},{key:"resetInitSegment",value:function(L,W,H,Z){this.audioCodec=W,this.videoCodec=H,this.generateInitSegment(nn(L,Z)),this.emitInitSegment=!0}},{key:"generateInitSegment",value:function(L){var W=this.audioCodec,H=this.videoCodec;if(!(L!=null&&L.byteLength)){this.initTracks=void 0,this.initData=void 0;return}var Z=this.initData=Cr(L);W||(W=il(Z.audio,se.AUDIO)),H||(H=il(Z.video,se.VIDEO));var ne={};Z.audio&&Z.video?ne.audiovideo={container:"video/mp4",codec:W+","+H,initSegment:L,id:"main"}:Z.audio?ne.audio={container:"audio/mp4",codec:W,initSegment:L,id:"audio"}:Z.video?ne.video={container:"video/mp4",codec:H,initSegment:L,id:"main"}:j.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=ne}},{key:"remux",value:function(L,W,H,Z,ne,ve){var Ce,ze,st=this.initPTS,gt=this.lastEndTime,tr={audio:void 0,video:void 0,text:Z,id3:H,initSegment:void 0};C(gt)||(gt=this.lastEndTime=ne||0);var Or=W.samples;if(!(Or!=null&&Or.length))return tr;var Sr={initPTS:void 0,timescale:1},Wr=this.initData;if((Ce=Wr)!=null&&Ce.length||(this.generateInitSegment(Or),Wr=this.initData),!((ze=Wr)!=null&&ze.length))return j.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),tr;this.emitInitSegment&&(Sr.tracks=this.initTracks,this.emitInitSegment=!1);var $r=oi(Or,Wr),Ln=Bn(Wr,Or),Mn=Ln===null?ne:Ln;(Fo(st,Mn,ne,$r)||Sr.timescale!==st.timescale&&ve)&&(Sr.initPTS=Mn-ne,st&&st.timescale===1&&j.warn("Adjusting initPTS by ".concat(Sr.initPTS-st.baseTime)),this.initPTS=st={baseTime:Sr.initPTS,timescale:1});var Zn=L?Mn-st.baseTime/st.timescale:gt,xi=Zn+$r;Rn(Wr,Or,st.baseTime/st.timescale),$r>0?this.lastEndTime=xi:(j.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var ua=!!Wr.audio,Gi=!!Wr.video,Zi="";ua&&(Zi+="audio"),Gi&&(Zi+="video");var ka={data1:Or,startPTS:Zn,startDTS:Zn,endPTS:xi,endDTS:xi,type:Zi,hasAudio:ua,hasVideo:Gi,nb:1,dropped:0};return tr.audio=ka.type==="audio"?ka:void 0,tr.video=ka.type!=="audio"?ka:void 0,tr.initSegment=Sr,tr.id3=co(H,ne,st,st),Z.samples.length&&(tr.text=Ao(Z,ne,st)),tr}}]),Ae}();function Fo(Ae,ee,L,W){if(Ae===null)return!0;var H=Math.max(W,1),Z=ee-Ae.baseTime/Ae.timescale;return Math.abs(Z-L)>H}function il(Ae,ee){var L=Ae==null?void 0:Ae.codec;return L&&L.length>4?L:L==="hvc1"||L==="hev1"?"hvc1.1.6.L120.90":L==="av01"?"av01.0.04M.08":L==="avc1"||ee===se.VIDEO?"avc1.42e01e":"mp4a.40.5"}var Eo;try{Eo=self.performance.now.bind(self.performance)}catch(Ae){j.debug("Unable to use Performance API on this environment"),Eo=typeof self!="undefined"&&self.Date.now}var zo=[{demux:_r,remux:_s},{demux:Ni,remux:Rs},{demux:Ha,remux:Rs},{demux:Da,remux:Rs}],Fs=function(){function Ae(ee,L,W,H,Z){Object(r.a)(this,Ae),this.async=!1,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=ee,this.typeSupported=L,this.config=W,this.vendor=H,this.id=Z}return Object(s.a)(Ae,[{key:"configure",value:function(L){this.transmuxConfig=L,this.decrypter&&this.decrypter.reset()}},{key:"push",value:function(L,W,H,Z){var ne=this,ve=H.transmuxing;ve.executeStart=Eo();var Ce=new Uint8Array(L),ze=this.currentTransmuxState,st=this.transmuxConfig;Z&&(this.currentTransmuxState=Z);var gt=Z||ze,tr=gt.contiguous,Or=gt.discontinuity,Sr=gt.trackSwitch,Wr=gt.accurateTimeOffset,$r=gt.timeOffset,Ln=gt.initSegmentChange,Mn=st.audioCodec,Zn=st.videoCodec,xi=st.defaultInitPts,ua=st.duration,Gi=st.initSegmentData,Zi=ms(Ce,W);if(Zi&&Zi.method==="AES-128"){var ka=this.getDecrypter();if(ka.isSync()){var Ga=ka.softwareDecrypt(Ce,Zi.key.buffer,Zi.iv.buffer),Ba=H.part>-1;if(Ba&&(Ga=ka.flush()),!Ga)return ve.executeEnd=Eo(),hs(H);Ce=new Uint8Array(Ga)}else return this.decryptionPromise=ka.webCryptoDecrypt(Ce,Zi.key.buffer,Zi.iv.buffer).then(function(Ts){var js=ne.push(Ts,null,H);return ne.decryptionPromise=null,js}),this.decryptionPromise}var xa=this.needsProbing(Or,Sr);if(xa){var Go=this.configureTransmuxer(Ce);if(Go)return j.warn("[transmuxer] ".concat(Go.message)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Go,reason:Go.message}),ve.executeEnd=Eo(),hs(H)}(Or||Sr||Ln||xa)&&this.resetInitSegment(Gi,Mn,Zn,ua,W),(Or||Ln||xa)&&this.resetInitialTimestamp(xi),tr||this.resetContiguity();var bs=this.transmux(Ce,Zi,$r,Wr,H),ys=this.currentTransmuxState;return ys.contiguous=!0,ys.discontinuity=!1,ys.trackSwitch=!1,ve.executeEnd=Eo(),bs}},{key:"flush",value:function(L){var W=this,H=L.transmuxing;H.executeStart=Eo();var Z=this.decrypter,ne=this.currentTransmuxState,ve=this.decryptionPromise;if(ve)return ve.then(function(){return W.flush(L)});var Ce=[],ze=ne.timeOffset;if(Z){var st=Z.flush();st&&Ce.push(this.push(st,null,L))}var gt=this.demuxer,tr=this.remuxer;if(!gt||!tr)return H.executeEnd=Eo(),[hs(L)];var Or=gt.flush(ze);return Sn(Or)?Or.then(function(Sr){return W.flushRemux(Ce,Sr,L),Ce}):(this.flushRemux(Ce,Or,L),Ce)}},{key:"flushRemux",value:function(L,W,H){var Z=W.audioTrack,ne=W.videoTrack,ve=W.id3Track,Ce=W.textTrack,ze=this.currentTransmuxState,st=ze.accurateTimeOffset,gt=ze.timeOffset;j.log("[transmuxer.ts]: Flushed fragment ".concat(H.sn).concat(H.part>-1?" p: "+H.part:""," of level ").concat(H.level));var tr=this.remuxer.remux(Z,ne,ve,Ce,gt,st,!0,this.id);L.push({remuxResult:tr,chunkMeta:H}),H.transmuxing.executeEnd=Eo()}},{key:"resetInitialTimestamp",value:function(L){var W=this.demuxer,H=this.remuxer;if(!W||!H)return;W.resetTimeStamp(L),H.resetTimeStamp(L)}},{key:"resetContiguity",value:function(){var L=this.demuxer,W=this.remuxer;if(!L||!W)return;L.resetContiguity(),W.resetNextTimestamp()}},{key:"resetInitSegment",value:function(L,W,H,Z,ne){var ve=this.demuxer,Ce=this.remuxer;if(!ve||!Ce)return;ve.resetInitSegment(L,W,H,Z),Ce.resetInitSegment(L,W,H,ne)}},{key:"destroy",value:function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}},{key:"transmux",value:function(L,W,H,Z,ne){var ve;return W&&W.method==="SAMPLE-AES"?ve=this.transmuxSampleAes(L,W,H,Z,ne):ve=this.transmuxUnencrypted(L,H,Z,ne),ve}},{key:"transmuxUnencrypted",value:function(L,W,H,Z){var ne=this.demuxer.demux(L,W,!1,!this.config.progressive),ve=ne.audioTrack,Ce=ne.videoTrack,ze=ne.id3Track,st=ne.textTrack,gt=this.remuxer.remux(ve,Ce,ze,st,W,H,!1,this.id);return{remuxResult:gt,chunkMeta:Z}}},{key:"transmuxSampleAes",value:function(L,W,H,Z,ne){var ve=this;return this.demuxer.demuxSampleAes(L,W,H).then(function(Ce){var ze=ve.remuxer.remux(Ce.audioTrack,Ce.videoTrack,Ce.id3Track,Ce.textTrack,H,Z,!1,ve.id);return{remuxResult:ze,chunkMeta:ne}})}},{key:"configureTransmuxer",value:function(L){for(var W=this.config,H=this.observer,Z=this.typeSupported,ne=this.vendor,ve,Ce=0,ze=zo.length;Ce<ze;Ce++)if(zo[Ce].demux.probe(L)){ve=zo[Ce];break}if(!ve)return new Error("Failed to find demuxer by probing fragment data");var st=this.demuxer,gt=this.remuxer,tr=ve.remux,Or=ve.demux;(!gt||!(gt instanceof tr))&&(this.remuxer=new tr(H,W,Z,ne)),(!st||!(st instanceof Or))&&(this.demuxer=new Or(H,W,Z),this.probe=Or.probe)}},{key:"needsProbing",value:function(L,W){return!this.demuxer||!this.remuxer||L||W}},{key:"getDecrypter",value:function(){var L=this.decrypter;return L||(L=this.decrypter=new _a(this.config)),L}}]),Ae}();function ms(Ae,ee){var L=null;return Ae.byteLength>0&&ee!=null&&ee.key!=null&&ee.iv!==null&&ee.method!=null&&(L=ee),L}var hs=function(ee){return{remuxResult:{},chunkMeta:ee}};function Sn(Ae){return"then"in Ae&&Ae.then instanceof Function}var Ns=Object(s.a)(function Ae(ee,L,W,H,Z){Object(r.a)(this,Ae),this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=ee,this.videoCodec=L,this.initSegmentData=W,this.duration=H,this.defaultInitPts=Z||null}),Ll=Object(s.a)(function Ae(ee,L,W,H,Z,ne){Object(r.a)(this,Ae),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=ee,this.contiguous=L,this.accurateTimeOffset=W,this.trackSwitch=H,this.timeOffset=Z,this.initSegmentChange=ne}),el={exports:{}};(function(Ae){var ee=Object.prototype.hasOwnProperty,L="~";function W(){}Object.create&&(W.prototype=Object.create(null),new W().__proto__||(L=!1));function H(Ce,ze,st){this.fn=Ce,this.context=ze,this.once=st||!1}function Z(Ce,ze,st,gt,tr){if(typeof st!="function")throw new TypeError("The listener must be a function");var Or=new H(st,gt||Ce,tr),Sr=L?L+ze:ze;return Ce._events[Sr]?Ce._events[Sr].fn?Ce._events[Sr]=[Ce._events[Sr],Or]:Ce._events[Sr].push(Or):(Ce._events[Sr]=Or,Ce._eventsCount++),Ce}function ne(Ce,ze){--Ce._eventsCount===0?Ce._events=new W:delete Ce._events[ze]}function ve(){this._events=new W,this._eventsCount=0}ve.prototype.eventNames=function(){var ze=[],st,gt;if(this._eventsCount===0)return ze;for(gt in st=this._events)ee.call(st,gt)&&ze.push(L?gt.slice(1):gt);return Object.getOwnPropertySymbols?ze.concat(Object.getOwnPropertySymbols(st)):ze},ve.prototype.listeners=function(ze){var st=L?L+ze:ze,gt=this._events[st];if(!gt)return[];if(gt.fn)return[gt.fn];for(var tr=0,Or=gt.length,Sr=new Array(Or);tr<Or;tr++)Sr[tr]=gt[tr].fn;return Sr},ve.prototype.listenerCount=function(ze){var st=L?L+ze:ze,gt=this._events[st];return gt?gt.fn?1:gt.length:0},ve.prototype.emit=function(ze,st,gt,tr,Or,Sr){var Wr=L?L+ze:ze;if(!this._events[Wr])return!1;var $r=this._events[Wr],Ln=arguments.length,Mn,Zn;if($r.fn){$r.once&&this.removeListener(ze,$r.fn,void 0,!0);switch(Ln){case 1:return $r.fn.call($r.context),!0;case 2:return $r.fn.call($r.context,st),!0;case 3:return $r.fn.call($r.context,st,gt),!0;case 4:return $r.fn.call($r.context,st,gt,tr),!0;case 5:return $r.fn.call($r.context,st,gt,tr,Or),!0;case 6:return $r.fn.call($r.context,st,gt,tr,Or,Sr),!0}for(Zn=1,Mn=new Array(Ln-1);Zn<Ln;Zn++)Mn[Zn-1]=arguments[Zn];$r.fn.apply($r.context,Mn)}else{var xi=$r.length,ua;for(Zn=0;Zn<xi;Zn++){$r[Zn].once&&this.removeListener(ze,$r[Zn].fn,void 0,!0);switch(Ln){case 1:$r[Zn].fn.call($r[Zn].context);break;case 2:$r[Zn].fn.call($r[Zn].context,st);break;case 3:$r[Zn].fn.call($r[Zn].context,st,gt);break;case 4:$r[Zn].fn.call($r[Zn].context,st,gt,tr);break;default:if(!Mn)for(ua=1,Mn=new Array(Ln-1);ua<Ln;ua++)Mn[ua-1]=arguments[ua];$r[Zn].fn.apply($r[Zn].context,Mn)}}}return!0},ve.prototype.on=function(ze,st,gt){return Z(this,ze,st,gt,!1)},ve.prototype.once=function(ze,st,gt){return Z(this,ze,st,gt,!0)},ve.prototype.removeListener=function(ze,st,gt,tr){var Or=L?L+ze:ze;if(!this._events[Or])return this;if(!st)return ne(this,Or),this;var Sr=this._events[Or];if(Sr.fn)Sr.fn===st&&(!tr||Sr.once)&&(!gt||Sr.context===gt)&&ne(this,Or);else{for(var Wr=0,$r=[],Ln=Sr.length;Wr<Ln;Wr++)(Sr[Wr].fn!==st||tr&&!Sr[Wr].once||gt&&Sr[Wr].context!==gt)&&$r.push(Sr[Wr]);$r.length?this._events[Or]=$r.length===1?$r[0]:$r:ne(this,Or)}return this},ve.prototype.removeAllListeners=function(ze){var st;return ze?(st=L?L+ze:ze,this._events[st]&&ne(this,st)):(this._events=new W,this._eventsCount=0),this},ve.prototype.off=ve.prototype.removeListener,ve.prototype.addListener=ve.prototype.on,ve.prefixed=L,ve.EventEmitter=ve,Ae.exports=ve})(el);var Gs=el.exports,ds=c(Gs),ks=rr()||{isTypeSupported:function(){return!1}},Qs=function(){function Ae(ee,L,W,H){var Z=this;Object(r.a)(this,Ae),this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var ne=ee.config;this.hls=ee,this.id=L,this.useWorker=!!ne.enableWorker,this.onTransmuxComplete=W,this.onFlush=H;var ve=function(Or,Sr){Sr=Sr||{},Sr.frag=Z.frag,Sr.id=Z.id,Or===w.ERROR&&(Z.error=Sr.error),Z.hls.trigger(Or,Sr)};this.observer=new ds,this.observer.on(w.FRAG_DECRYPTED,ve),this.observer.on(w.ERROR,ve);var Ce={mp4:ks.isTypeSupported("video/mp4"),mpeg:ks.isTypeSupported("audio/mpeg"),mp3:ks.isTypeSupported('audio/mp4; codecs="mp3"')},ze=navigator.vendor;if(this.useWorker&&typeof Worker!="undefined"){var st=ne.workerPath||Co();if(st){try{ne.workerPath?(j.log("loading Web Worker ".concat(ne.workerPath,' for "').concat(L,'"')),this.workerContext=xo(ne.workerPath)):(j.log('injecting Web Worker for "'.concat(L,'"')),this.workerContext=ao()),this.onwmsg=function(tr){return Z.onWorkerMessage(tr)};var gt=this.workerContext.worker;gt.addEventListener("message",this.onwmsg),gt.onerror=function(tr){var Or=new Error("".concat(tr.message," (").concat(tr.filename,":").concat(tr.lineno,")"));ne.enableWorker=!1,j.warn('Error in "'.concat(L,'" Web Worker, fallback to inline')),Z.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:Or})},gt.postMessage({cmd:"init",typeSupported:Ce,vendor:ze,id:L,config:JSON.stringify(ne)})}catch(tr){j.warn('Error setting up "'.concat(L,'" Web Worker, fallback to inline'),tr),this.resetWorker(),this.error=null,this.transmuxer=new Fs(this.observer,Ce,ne,ze,L)}return}}this.transmuxer=new Fs(this.observer,Ce,ne,ze,L)}return Object(s.a)(Ae,[{key:"resetWorker",value:function(){if(this.workerContext){var L=this.workerContext,W=L.worker,H=L.objectURL;H&&self.URL.revokeObjectURL(H),W.removeEventListener("message",this.onwmsg),W.onerror=null,W.terminate(),this.workerContext=null}}},{key:"destroy",value:function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var L=this.transmuxer;L&&(L.destroy(),this.transmuxer=null)}var W=this.observer;W&&W.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}},{key:"push",value:function(L,W,H,Z,ne,ve,Ce,ze,st,gt){var tr=this,Or,Sr;st.transmuxing.start=self.performance.now();var Wr=this.transmuxer,$r=ve?ve.start:ne.start,Ln=ne.decryptdata,Mn=this.frag,Zn=!(Mn&&ne.cc===Mn.cc),xi=!(Mn&&st.level===Mn.level),ua=Mn?st.sn-Mn.sn:-1,Gi=this.part?st.part-this.part.index:-1,Zi=ua===0&&st.id>1&&st.id===(Mn==null?void 0:Mn.stats.chunkCount),ka=!xi&&(ua===1||ua===0&&(Gi===1||Zi&&Gi<=0)),Ga=self.performance.now();(xi||ua||ne.stats.parsing.start===0)&&(ne.stats.parsing.start=Ga),ve&&(Gi||!ka)&&(ve.stats.parsing.start=Ga);var Ba=!(Mn&&((Or=ne.initSegment)==null?void 0:Or.url)===((Sr=Mn.initSegment)==null?void 0:Sr.url)),xa=new Ll(Zn,ka,ze,xi,$r,Ba);if(!ka||Zn||Ba){j.log("[transmuxer-interface, ".concat(ne.type,"]: Starting new transmux session for sn: ").concat(st.sn," p: ").concat(st.part," level: ").concat(st.level," id: ").concat(st.id,`
discontinuity: `).concat(Zn,`
trackSwitch: `).concat(xi,`
contiguous: `).concat(ka,`
accurateTimeOffset: `).concat(ze,`
timeOffset: `).concat($r,`
initSegmentChange: `).concat(Ba));var Go=new Ns(H,Z,W,Ce,gt);this.configureTransmuxer(Go)}if(this.frag=ne,this.part=ve,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:L,decryptdata:Ln,chunkMeta:st,state:xa},L instanceof ArrayBuffer?[L]:[]);else if(Wr){var bs=Wr.push(L,Ln,st,xa);Sn(bs)?(Wr.async=!0,bs.then(function(ys){tr.handleTransmuxComplete(ys)}).catch(function(ys){tr.transmuxerError(ys,st,"transmuxer-interface push error")})):(Wr.async=!1,this.handleTransmuxComplete(bs))}}},{key:"flush",value:function(L){var W=this;L.transmuxing.start=self.performance.now();var H=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:L});else if(H){var Z=H.flush(L),ne=Sn(Z);ne||H.async?(Sn(Z)||(Z=Promise.resolve(Z)),Z.then(function(ve){W.handleFlushResult(ve,L)}).catch(function(ve){W.transmuxerError(ve,L,"transmuxer-interface flush error")})):this.handleFlushResult(Z,L)}}},{key:"transmuxerError",value:function(L,W,H){if(!this.hls)return;this.error=L,this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,chunkMeta:W,fatal:!1,error:L,err:L,reason:H})}},{key:"handleFlushResult",value:function(L,W){var H=this;L.forEach(function(Z){H.handleTransmuxComplete(Z)}),this.onFlush(W)}},{key:"onWorkerMessage",value:function(L){var W=L.data,H=this.hls;switch(W.event){case"init":{var Z,ne=(Z=this.workerContext)==null?void 0:Z.objectURL;ne&&self.URL.revokeObjectURL(ne);break}case"transmuxComplete":{this.handleTransmuxComplete(W.data);break}case"flush":{this.onFlush(W.data);break}case"workerLog":j[W.data.logType]&&j[W.data.logType](W.data.message);break;default:{W.data=W.data||{},W.data.frag=this.frag,W.data.id=this.id,H.trigger(W.event,W.data);break}}}},{key:"configureTransmuxer",value:function(L){var W=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:L}):W&&W.configure(L)}},{key:"handleTransmuxComplete",value:function(L){L.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(L)}}]),Ae}(),tl=250,Ss=2,Bs=.1,al=.05,Js=function(){function Ae(ee,L,W,H){Object(r.a)(this,Ae),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=ee,this.media=L,this.fragmentTracker=W,this.hls=H}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.media=null,this.hls=this.fragmentTracker=null}},{key:"poll",value:function(L,W){var H=this.config,Z=this.media,ne=this.stalled;if(Z===null)return;var ve=Z.currentTime,Ce=Z.seeking,ze=this.seeking&&!Ce,st=!this.seeking&&Ce;if(this.seeking=Ce,ve!==L){if(this.moved=!0,ne!==null){if(this.stallReported){var gt=self.performance.now()-ne;j.warn("playback not stuck anymore @".concat(ve,", after ").concat(Math.round(gt),"ms")),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if(st||ze){this.stalled=null;return}if(Z.paused&&!Ce||Z.ended||Z.playbackRate===0||!Ii.getBuffered(Z).length)return;var tr=Ii.bufferInfo(Z,ve,0),Or=tr.len>0,Sr=tr.nextStart||0;if(!Or&&!Sr)return;if(Ce){var Wr=tr.len>Ss,$r=!Sr||W&&W.start<=ve||Sr-ve>Ss&&!this.fragmentTracker.getPartialFragment(ve);if(Wr||$r)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var Ln,Mn=Math.max(Sr,tr.start||0)-ve,Zn=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,xi=Zn==null||(Ln=Zn.details)==null?void 0:Ln.live,ua=xi?Zn.details.targetduration*2:Ss,Gi=this.fragmentTracker.getPartialFragment(ve);if(Mn>0&&(Mn<=ua||Gi)){this._trySkipBufferHole(Gi);return}}var Zi=self.performance.now();if(ne===null){this.stalled=Zi;return}var ka=Zi-ne;if(!Ce&&ka>=tl&&(this._reportStall(tr),!this.media))return;var Ga=Ii.bufferInfo(Z,ve,H.maxBufferHole);this._tryFixBufferStall(Ga,ka)}},{key:"_tryFixBufferStall",value:function(L,W){var H=this.config,Z=this.fragmentTracker,ne=this.media;if(ne===null)return;var ve=ne.currentTime,Ce=Z.getPartialFragment(ve);if(Ce){var ze=this._trySkipBufferHole(Ce);if(ze||!this.media)return}(L.len>H.maxBufferHole||L.nextStart&&L.nextStart-ve<H.maxBufferHole)&&W>H.highBufferWatchdogPeriod*1e3&&(j.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},{key:"_reportStall",value:function(L){var W=this.hls,H=this.media,Z=this.stallReported;if(!Z&&H){this.stallReported=!0;var ne=new Error("Playback stalling at @".concat(H.currentTime," due to low buffer (").concat(JSON.stringify(L),")"));j.warn(ne.message),W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,fatal:!1,error:ne,buffer:L.len})}}},{key:"_trySkipBufferHole",value:function(L){var W=this.config,H=this.hls,Z=this.media;if(Z===null)return 0;var ne=Z.currentTime,ve=Ii.bufferInfo(Z,ne,0),Ce=ne<ve.start?ve.start:ve.nextStart;if(Ce){var ze=ve.len<=W.maxBufferHole,st=ve.len>0&&ve.len<1&&Z.readyState<3,gt=Ce-ne;if(gt>0&&(ze||st)){if(gt>W.maxBufferHole){var tr=this.fragmentTracker,Or=!1;if(ne===0){var Sr=tr.getAppendedFrag(0,At.MAIN);Sr&&Ce<Sr.end&&(Or=!0)}if(!Or){var Wr=L||tr.getAppendedFrag(ne,At.MAIN);if(Wr){for(var $r=!1,Ln=Wr.end;Ln<Ce;){var Mn=tr.getPartialFragment(Ln);if(Mn)Ln+=Mn.duration;else{$r=!0;break}}if($r)return 0}}}var Zn=Math.max(Ce+al,ne+Bs);if(j.warn("skipping hole, adjusting currentTime from ".concat(ne," to ").concat(Zn)),this.moved=!0,this.stalled=null,Z.currentTime=Zn,L&&!L.gap){var xi=new Error("fragment loaded with buffer holes, seeking from ".concat(ne," to ").concat(Zn));H.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:xi,reason:xi.message,frag:L})}return Zn}}return 0}},{key:"_tryNudgeBuffer",value:function(){var L=this.config,W=this.hls,H=this.media,Z=this.nudgeRetry;if(H===null)return;var ne=H.currentTime;if(this.nudgeRetry++,Z<L.nudgeMaxRetry){var ve=ne+(Z+1)*L.nudgeOffset,Ce=new Error("Nudging 'currentTime' from ".concat(ne," to ").concat(ve));j.warn(Ce.message),H.currentTime=ve,W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_NUDGE_ON_STALL,error:Ce,fatal:!1})}else{var ze=new Error("Playhead still not moving while enough data buffered @".concat(ne," after ").concat(L.nudgeMaxRetry," nudges"));j.error(ze.message),W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,error:ze,fatal:!0})}}}]),Ae}(),Vo=100,No=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W,H,Z,"[stream-controller]",At.MAIN),ne.audioCodecSwap=!1,ne.gapController=null,ne.level=-1,ne._forceStartLoad=!1,ne.altAudio=!1,ne.audioOnly=!1,ne.fragPlaying=null,ne.onvplaying=null,ne.onvseeked=null,ne.fragLastKbps=0,ne.couldBacktrack=!1,ne.backtrackFragment=null,ne.audioCodecSwitch=!1,ne.videoBuffer=null,ne._registerListeners(),ne}return Object(s.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.on(w.ERROR,this.onError,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.off(w.ERROR,this.onError,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.onMediaDetaching()}},{key:"startLoad",value:function(H){if(this.levels){var Z=this.lastCurrentTime,ne=this.hls;if(this.stopLoad(),this.setInterval(Vo),this.level=-1,!this.startFragRequested){var ve=ne.startLevel;ve===-1&&(ne.config.testBandwidth&&this.levels.length>1?(ve=0,this.bitrateTest=!0):ve=ne.nextAutoLevel),this.level=ne.nextLoadLevel=ve,this.loadedmetadata=!1}Z>0&&H===-1&&(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z),this.state=Bi.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}else this._forceStartLoad=!0,this.state=Bi.STOPPED}},{key:"stopLoad",value:function(){this._forceStartLoad=!1,Object(t.a)(Object(p.a)(L.prototype),"stopLoad",this).call(this)}},{key:"doTick",value:function(){switch(this.state){case Bi.WAITING_LEVEL:{var H,Z=this.levels,ne=this.level,ve=Z==null||(H=Z[ne])==null?void 0:H.details;if(ve&&(!ve.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(ve))break;this.state=Bi.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Bi.IDLE;break}break}case Bi.FRAG_LOADING_WAITING_RETRY:{var Ce,ze=self.performance.now(),st=this.retryDate;(!st||ze>=st||(Ce=this.media)!=null&&Ce.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=Bi.IDLE)}break}this.state===Bi.IDLE&&this.doTickIdle(),this.onTickEnd()}},{key:"onTickEnd",value:function(){Object(t.a)(Object(p.a)(L.prototype),"onTickEnd",this).call(this),this.checkBuffer(),this.checkFragmentChanged()}},{key:"doTickIdle",value:function(){var H=this.hls,Z=this.levelLastLoaded,ne=this.levels,ve=this.media,Ce=H.config,ze=H.nextLoadLevel;if(Z===null||!ve&&(this.startFragRequested||!Ce.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!(ne!=null&&ne[ze]))return;var st=ne[ze],gt=this.getMainFwdBufferInfo();if(gt===null)return;var tr=this.getLevelDetails();if(tr&&this._streamEnded(gt,tr)){var Or={};this.altAudio&&(Or.type="video"),this.hls.trigger(w.BUFFER_EOS,Or),this.state=Bi.ENDED;return}H.loadLevel!==ze&&H.manualLevel===-1&&this.log("Adapting to level ".concat(ze," from level ").concat(this.level)),this.level=H.nextLoadLevel=ze;var Sr=st.details;if(!Sr||this.state===Bi.WAITING_LEVEL||Sr.live&&this.levelLastLoaded!==ze){this.level=ze,this.state=Bi.WAITING_LEVEL;return}var Wr=gt.len,$r=this.getMaxBufferLength(st.maxBitrate);if(Wr>=$r)return;this.backtrackFragment&&this.backtrackFragment.start>gt.end&&(this.backtrackFragment=null);var Ln=this.backtrackFragment?this.backtrackFragment.start:gt.end,Mn=this.getNextFragment(Ln,Sr);if(this.couldBacktrack&&!this.fragPrevious&&Mn&&Mn.sn!=="initSegment"&&this.fragmentTracker.getState(Mn)!==Nt.OK){var Zn,xi=((Zn=this.backtrackFragment)!=null?Zn:Mn).sn,ua=xi-Sr.startSN,Gi=Sr.fragments[ua-1];Gi&&Mn.cc===Gi.cc&&(Mn=Gi,this.fragmentTracker.removeFragment(Gi))}else this.backtrackFragment&&gt.len&&(this.backtrackFragment=null);if(Mn&&this.isLoopLoading(Mn,Ln)){var Zi=Mn.gap;if(!Zi){var ka=this.audioOnly&&!this.altAudio?se.AUDIO:se.VIDEO,Ga=(ka===se.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ga&&this.afterBufferFlushed(Ga,ka,At.MAIN)}Mn=this.getNextFragmentLoopLoading(Mn,Sr,gt,At.MAIN,$r)}if(!Mn)return;Mn.initSegment&&!Mn.initSegment.data&&!this.bitrateTest&&(Mn=Mn.initSegment),this.loadFragment(Mn,st,Ln)}},{key:"loadFragment",value:function(H,Z,ne){var ve=this.fragmentTracker.getState(H);this.fragCurrent=H,ve===Nt.NOT_LOADED||ve===Nt.PARTIAL?H.sn==="initSegment"?this._loadInitSegment(H,Z):this.bitrateTest?(this.log("Fragment ".concat(H.sn," of level ").concat(H.level," is being downloaded to test bitrate and will not be buffered")),this._loadBitrateTestFrag(H,Z)):(this.startFragRequested=!0,Object(t.a)(Object(p.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne)):this.clearTrackerIfNeeded(H)}},{key:"getBufferedFrag",value:function(H){return this.fragmentTracker.getBufferedFrag(H,At.MAIN)}},{key:"followingBufferedFrag",value:function(H){return H?this.getBufferedFrag(H.end+.5):null}},{key:"immediateLevelSwitch",value:function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}},{key:"nextLevelSwitch",value:function(){var H=this.levels,Z=this.media;if(Z!=null&&Z.readyState){var ne,ve=this.getAppendedFrag(Z.currentTime);ve&&ve.start>1&&this.flushMainBuffer(0,ve.start-1);var Ce=this.getLevelDetails();if(Ce!=null&&Ce.live){var ze=this.getMainFwdBufferInfo();if(!ze||ze.len<Ce.targetduration*2)return}if(!Z.paused&&H){var st=this.hls.nextLoadLevel,gt=H[st],tr=this.fragLastKbps;tr&&this.fragCurrent?ne=this.fragCurrent.duration*gt.maxBitrate/(1e3*tr)+1:ne=0}else ne=0;var Or=this.getBufferedFrag(Z.currentTime+ne);if(Or){var Sr=this.followingBufferedFrag(Or);if(Sr){this.abortCurrentFrag();var Wr=Sr.maxStartPTS?Sr.maxStartPTS:Sr.start,$r=Sr.duration,Ln=Math.max(Or.end,Wr+Math.min(Math.max($r-this.config.maxFragLookUpTolerance,$r*.5),$r*.75));this.flushMainBuffer(Ln,Number.POSITIVE_INFINITY)}}}}},{key:"abortCurrentFrag",value:function(){var H=this.fragCurrent;this.fragCurrent=null,this.backtrackFragment=null,H&&(H.abortRequests(),this.fragmentTracker.removeFragment(H));switch(this.state){case Bi.KEY_LOADING:case Bi.FRAG_LOADING:case Bi.FRAG_LOADING_WAITING_RETRY:case Bi.PARSING:case Bi.PARSED:this.state=Bi.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}},{key:"flushMainBuffer",value:function(H,Z){Object(t.a)(Object(p.a)(L.prototype),"flushMainBuffer",this).call(this,H,Z,this.altAudio?"video":null)}},{key:"onMediaAttached",value:function(H,Z){Object(t.a)(Object(p.a)(L.prototype),"onMediaAttached",this).call(this,H,Z);var ne=Z.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),ne.addEventListener("playing",this.onvplaying),ne.addEventListener("seeked",this.onvseeked),this.gapController=new Js(this.config,ne,this.fragmentTracker,this.hls)}},{key:"onMediaDetaching",value:function(){var H=this.media;H&&this.onvplaying&&this.onvseeked&&(H.removeEventListener("playing",this.onvplaying),H.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),Object(t.a)(Object(p.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onMediaPlaying",value:function(){this.tick()}},{key:"onMediaSeeked",value:function(){var H=this.media,Z=H?H.currentTime:null;C(Z)&&this.log("Media seeked to ".concat(Z.toFixed(3)));var ne=this.getMainFwdBufferInfo();if(ne===null||ne.len===0){this.warn('Main forward buffer length on "seeked" event '.concat(ne?ne.len:"empty",")"));return}this.tick()}},{key:"onManifestLoading",value:function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(w.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.levels=this.fragPlaying=this.backtrackFragment=null,this.altAudio=this.audioOnly=!1}},{key:"onManifestParsed",value:function(H,Z){var ne=!1,ve=!1,Ce;Z.levels.forEach(function(ze){Ce=ze.audioCodec,Ce&&(Ce.indexOf("mp4a.40.2")!==-1&&(ne=!0),Ce.indexOf("mp4a.40.5")!==-1&&(ve=!0))}),this.audioCodecSwitch=ne&&ve&&!mo(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=Z.levels,this.startFragRequested=!1}},{key:"onLevelLoading",value:function(H,Z){var ne=this.levels;if(!ne||this.state!==Bi.IDLE)return;var ve=ne[Z.level];(!ve.details||ve.details.live&&this.levelLastLoaded!==Z.level||this.waitForCdnTuneIn(ve.details))&&(this.state=Bi.WAITING_LEVEL)}},{key:"onLevelLoaded",value:function(H,Z){var ne,ve=this.levels,Ce=Z.level,ze=Z.details,st=ze.totalduration;if(!ve){this.warn("Levels were reset while loading level ".concat(Ce));return}this.log("Level ".concat(Ce," loaded [").concat(ze.startSN,",").concat(ze.endSN,"]").concat(ze.lastPartSn?"[part-".concat(ze.lastPartSn,"-").concat(ze.lastPartIndex,"]"):"",", cc [").concat(ze.startCC,", ").concat(ze.endCC,"] duration:").concat(st));var gt=ve[Ce],tr=this.fragCurrent;tr&&(this.state===Bi.FRAG_LOADING||this.state===Bi.FRAG_LOADING_WAITING_RETRY)&&((tr.level!==Z.level||tr.urlId!==gt.urlId)&&tr.loader&&this.abortCurrentFrag());var Or=0;if(ze.live||(ne=gt.details)!=null&&ne.live){if(this.checkLiveUpdate(ze),ze.deltaUpdateFailed)return;Or=this.alignPlaylists(ze,gt.details)}if(gt.details=ze,this.levelLastLoaded=Ce,this.hls.trigger(w.LEVEL_UPDATED,{details:ze,level:Ce}),this.state===Bi.WAITING_LEVEL){if(this.waitForCdnTuneIn(ze))return;this.state=Bi.IDLE}this.startFragRequested?ze.live&&this.synchronizeToLiveEdge(ze):this.setStartPosition(ze,Or),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,ne=H.frag,ve=H.part,Ce=H.payload,ze=this.levels;if(!ze){this.warn("Levels were reset while fragment load was in progress. Fragment ".concat(ne.sn," of level ").concat(ne.level," will not be buffered"));return}var st=ze[ne.level],gt=st.details;if(!gt){this.warn("Dropping fragment ".concat(ne.sn," of level ").concat(ne.level," after level details were reset")),this.fragmentTracker.removeFragment(ne);return}var tr=st.videoCodec,Or=gt.PTSKnown||!gt.live,Sr=(Z=ne.initSegment)==null?void 0:Z.data,Wr=this._getAudioCodec(st),$r=this.transmuxer=this.transmuxer||new Qs(this.hls,At.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Ln=ve?ve.index:-1,Mn=Ln!==-1,Zn=new Vi(ne.level,ne.sn,ne.stats.chunkCount,Ce.byteLength,Ln,Mn),xi=this.initPTS[ne.cc];$r.push(Ce,Sr,Wr,tr,ne,ve,gt.totalduration,Or,Zn,xi)}},{key:"onAudioTrackSwitching",value:function(H,Z){var ne=this.altAudio,ve=!!Z.url;if(!ve){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var Ce=this.fragCurrent;Ce&&(this.log("Switching to main audio track, cancel main fragment load"),Ce.abortRequests(),this.fragmentTracker.removeFragment(Ce)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var ze=this.hls;ne&&(ze.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),ze.trigger(w.AUDIO_TRACK_SWITCHED,Z)}}},{key:"onAudioTrackSwitched",value:function(H,Z){var ne=Z.id,ve=!!this.hls.audioTracks[ne].url;if(ve){var Ce=this.videoBuffer;Ce&&this.mediaBuffer!==Ce&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=Ce)}this.altAudio=ve,this.tick()}},{key:"onBufferCreated",value:function(H,Z){var ne=Z.tracks,ve,Ce,ze=!1;for(var st in ne){var gt=ne[st];if(gt.id==="main"){if(Ce=st,ve=gt,st==="video"){var tr=ne[st];tr&&(this.videoBuffer=tr.buffer)}}else ze=!0}ze&&ve?(this.log("Alternate track found, use ".concat(Ce,".buffered to schedule main fragment loading")),this.mediaBuffer=ve.buffer):this.mediaBuffer=this.media}},{key:"onFragBuffered",value:function(H,Z){var ne=Z.frag,ve=Z.part;if(ne&&ne.type!==At.MAIN)return;if(this.fragContextChanged(ne)){this.warn("Fragment ".concat(ne.sn).concat(ve?" p: "+ve.index:""," of level ").concat(ne.level," finished buffering, but was aborted. state: ").concat(this.state)),this.state===Bi.PARSED&&(this.state=Bi.IDLE);return}var Ce=ve?ve.stats:ne.stats;this.fragLastKbps=Math.round(8*Ce.total/(Ce.buffering.end-Ce.loading.first)),ne.sn!=="initSegment"&&(this.fragPrevious=ne),this.fragBufferedComplete(ne,ve)}},{key:"onError",value:function(H,Z){var ne;if(Z.fatal){this.state=Bi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(At.MAIN,Z);break;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Bi.WAITING_LEVEL&&((ne=Z.context)==null?void 0:ne.type)===Lt.LEVEL&&(this.state=Bi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="main")return;this.reduceLengthAndFlushBuffer(Z)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"checkBuffer",value:function(){var H=this.media,Z=this.gapController;if(!H||!Z||!H.readyState)return;if(this.loadedmetadata||!Ii.getBuffered(H).length){var ne=this.state!==Bi.IDLE?this.fragCurrent:null;Z.poll(this.lastCurrentTime,ne)}this.lastCurrentTime=H.currentTime}},{key:"onFragLoadEmergencyAborted",value:function(){this.state=Bi.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}},{key:"onBufferFlushed",value:function(H,Z){var ne=Z.type;if(ne!==se.AUDIO||this.audioOnly&&!this.altAudio){var ve=(ne===se.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(ve,ne,At.MAIN)}}},{key:"onLevelsUpdated",value:function(H,Z){this.levels=Z.levels}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"seekToStartPos",value:function(){var H=this.media;if(!H)return;var Z=H.currentTime,ne=this.startPosition;if(ne>=0&&Z<ne){if(H.seeking){this.log("could not seek to ".concat(ne,", already seeking at ").concat(Z));return}var ve=Ii.getBuffered(H),Ce=ve.length?ve.start(0):0,ze=Ce-ne;ze>0&&(ze<this.config.maxBufferHole||ze<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by ".concat(ze," to match buffer start")),ne+=ze,this.startPosition=ne),this.log("seek to target start position ".concat(ne," from current time ").concat(Z)),H.currentTime=ne}}},{key:"_getAudioCodec",value:function(H){var Z=this.config.defaultAudioCodec||H.audioCodec;return this.audioCodecSwap&&Z&&(this.log("Swapping audio codec"),Z.indexOf("mp4a.40.5")!==-1?Z="mp4a.40.2":Z="mp4a.40.5"),Z}},{key:"_loadBitrateTestFrag",value:function(H,Z){var ne=this;H.bitrateTest=!0,this._doFragLoad(H,Z).then(function(ve){var Ce=ne.hls;if(!ve||ne.fragContextChanged(H))return;Z.fragmentError=0,ne.state=Bi.IDLE,ne.startFragRequested=!1,ne.bitrateTest=!1;var ze=H.stats;ze.parsing.start=ze.parsing.end=ze.buffering.start=ze.buffering.end=self.performance.now(),Ce.trigger(w.FRAG_LOADED,ve),H.bitrateTest=!1})}},{key:"_handleTransmuxComplete",value:function(H){var Z,ne="main",ve=this.hls,Ce=H.remuxResult,ze=H.chunkMeta,st=this.getCurrentContext(ze);if(!st){this.resetWhenMissingContext(ze);return}var gt=st.frag,tr=st.part,Or=st.level,Sr=Ce.video,Wr=Ce.text,$r=Ce.id3,Ln=Ce.initSegment,Mn=Or.details,Zn=this.altAudio?void 0:Ce.audio;if(this.fragContextChanged(gt)){this.fragmentTracker.removeFragment(gt);return}if(this.state=Bi.PARSING,Ln){if(Ln!=null&&Ln.tracks){var xi=gt.initSegment||gt;this._bufferInitSegment(Or,Ln.tracks,xi,ze),ve.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:xi,id:ne,tracks:Ln.tracks})}var ua=Ln.initPTS,Gi=Ln.timescale;C(ua)&&(this.initPTS[gt.cc]={baseTime:ua,timescale:Gi},ve.trigger(w.INIT_PTS_FOUND,{frag:gt,id:ne,initPTS:ua,timescale:Gi}))}if(Sr&&Mn&&gt.sn!=="initSegment"){var Zi=Mn.fragments[gt.sn-1-Mn.startSN],ka=gt.sn===Mn.startSN,Ga=!Zi||gt.cc>Zi.cc;if(Ce.independent!==!1){var Ba=Sr.startPTS,xa=Sr.endPTS,Go=Sr.startDTS,bs=Sr.endDTS;if(tr)tr.elementaryStreams[Sr.type]={startPTS:Ba,endPTS:xa,startDTS:Go,endDTS:bs};else if(Sr.firstKeyFrame&&Sr.independent&&ze.id===1&&!Ga&&(this.couldBacktrack=!0),Sr.dropped&&Sr.independent){var ys=this.getMainFwdBufferInfo(),Ts=(ys?ys.end:this.getLoadPosition())+this.config.maxBufferHole,js=Sr.firstKeyFramePTS?Sr.firstKeyFramePTS:Ba;if(!ka&&Ts<js-this.config.maxBufferHole&&!Ga){this.backtrack(gt);return}else Ga&&(gt.gap=!0);gt.setElementaryStreamInfo(Sr.type,gt.start,xa,gt.start,bs,!0)}gt.setElementaryStreamInfo(Sr.type,Ba,xa,Go,bs),this.backtrackFragment&&(this.backtrackFragment=gt),this.bufferFragmentData(Sr,gt,tr,ze,ka||Ga)}else if(ka||Ga)gt.gap=!0;else{this.backtrack(gt);return}}if(Zn){var ws=Zn.startPTS,Hs=Zn.endPTS,Ee=Zn.startDTS,Ye=Zn.endDTS;tr&&(tr.elementaryStreams[se.AUDIO]={startPTS:ws,endPTS:Hs,startDTS:Ee,endDTS:Ye}),gt.setElementaryStreamInfo(se.AUDIO,ws,Hs,Ee,Ye),this.bufferFragmentData(Zn,gt,tr,ze)}if(Mn&&$r!=null&&(Z=$r.samples)!=null&&Z.length){var It={id:ne,frag:gt,details:Mn,samples:$r.samples};ve.trigger(w.FRAG_PARSING_METADATA,It)}if(Mn&&Wr){var fr={id:ne,frag:gt,details:Mn,samples:Wr.samples};ve.trigger(w.FRAG_PARSING_USERDATA,fr)}}},{key:"_bufferInitSegment",value:function(H,Z,ne,ve){var Ce=this;if(this.state!==Bi.PARSING)return;this.audioOnly=!!Z.audio&&!Z.video,this.altAudio&&!this.audioOnly&&delete Z.audio;var ze=Z.audio,st=Z.video,gt=Z.audiovideo;if(ze){var tr=H.audioCodec,Or=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(tr&&(tr.indexOf("mp4a.40.5")!==-1?tr="mp4a.40.2":tr="mp4a.40.5"),ze.metadata.channelCount!==1&&Or.indexOf("firefox")===-1&&(tr="mp4a.40.5")),Or.indexOf("android")!==-1&&ze.container!=="audio/mpeg"&&(tr="mp4a.40.2",this.log("Android: force audio codec to ".concat(tr))),H.audioCodec&&H.audioCodec!==tr&&this.log('Swapping manifest audio codec "'.concat(H.audioCodec,'" for "').concat(tr,'"')),ze.levelCodec=tr,ze.id="main",this.log("Init audio buffer, container:".concat(ze.container,", codecs[selected/level/parsed]=[").concat(tr||"","/").concat(H.audioCodec||"","/").concat(ze.codec,"]"))}st&&(st.levelCodec=H.videoCodec,st.id="main",this.log("Init video buffer, container:".concat(st.container,", codecs[level/parsed]=[").concat(H.videoCodec||"","/").concat(st.codec,"]"))),gt&&this.log("Init audiovideo buffer, container:".concat(gt.container,", codecs[level/parsed]=[").concat(H.attrs.CODECS||"","/").concat(gt.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,Z),Object.keys(Z).forEach(function(Sr){var Wr=Z[Sr],$r=Wr.initSegment;$r!=null&&$r.byteLength&&Ce.hls.trigger(w.BUFFER_APPENDING,{type:Sr,data:$r,frag:ne,part:null,chunkMeta:ve,parent:ne.type})}),this.tick()}},{key:"getMainFwdBufferInfo",value:function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,At.MAIN)}},{key:"backtrack",value:function(H){this.couldBacktrack=!0,this.backtrackFragment=H,this.resetTransmuxer(),this.flushBufferGap(H),this.fragmentTracker.removeFragment(H),this.fragPrevious=null,this.nextLoadPosition=H.start,this.state=Bi.IDLE}},{key:"checkFragmentChanged",value:function(){var H=this.media,Z=null;if(H&&H.readyState>1&&H.seeking===!1){var ne=H.currentTime;if(Ii.isBuffered(H,ne)?Z=this.getAppendedFrag(ne):Ii.isBuffered(H,ne+.1)&&(Z=this.getAppendedFrag(ne+.1)),Z){this.backtrackFragment=null;var ve=this.fragPlaying,Ce=Z.level;(!ve||Z.sn!==ve.sn||ve.level!==Ce||Z.urlId!==ve.urlId)&&(this.fragPlaying=Z,this.hls.trigger(w.FRAG_CHANGED,{frag:Z}),(!ve||ve.level!==Ce)&&this.hls.trigger(w.LEVEL_SWITCHED,{level:Ce}))}}}},{key:"nextLevel",get:function(){var H=this.nextBufferedFrag;return H?H.level:-1}},{key:"currentFrag",get:function(){var H=this.media;return H?this.fragPlaying||this.getAppendedFrag(H.currentTime):null}},{key:"currentProgramDateTime",get:function(){var H=this.media;if(H){var Z=H.currentTime,ne=this.currentFrag;if(ne&&C(Z)&&C(ne.programDateTime)){var ve=ne.programDateTime+(Z-ne.start)*1e3;return new Date(ve)}}return null}},{key:"currentLevel",get:function(){var H=this.currentFrag;return H?H.level:-1}},{key:"nextBufferedFrag",get:function(){var H=this.currentFrag;return H?this.followingBufferedFrag(H):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),L}(io),fs=function(){function Ae(ee){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Object(r.a)(this,Ae),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=ee,this.alpha_=ee?Math.exp(Math.log(.5)/ee):0,this.estimate_=L,this.totalWeight_=W}return Object(s.a)(Ae,[{key:"sample",value:function(L,W){var H=Math.pow(this.alpha_,L);this.estimate_=W*(1-H)+H*this.estimate_,this.totalWeight_+=L}},{key:"getTotalWeight",value:function(){return this.totalWeight_}},{key:"getEstimate",value:function(){if(this.alpha_){var L=1-Math.pow(this.alpha_,this.totalWeight_);if(L)return this.estimate_/L}return this.estimate_}}]),Ae}(),Ds=function(){function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:100;Object(r.a)(this,Ae),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=W,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new fs(ee),this.fast_=new fs(L),this.defaultTTFB_=H,this.ttfb_=new fs(ee)}return Object(s.a)(Ae,[{key:"update",value:function(L,W){var H=this.slow_,Z=this.fast_,ne=this.ttfb_;H.halfLife!==L&&(this.slow_=new fs(L,H.getEstimate(),H.getTotalWeight())),Z.halfLife!==W&&(this.fast_=new fs(W,Z.getEstimate(),Z.getTotalWeight())),ne.halfLife!==L&&(this.ttfb_=new fs(L,ne.getEstimate(),ne.getTotalWeight()))}},{key:"sample",value:function(L,W){L=Math.max(L,this.minDelayMs_);var H=8*W,Z=L/1e3,ne=H/Z;this.fast_.sample(Z,ne),this.slow_.sample(Z,ne)}},{key:"sampleTTFB",value:function(L){var W=L/1e3,H=Math.sqrt(2)*Math.exp(-Math.pow(W,2)/2);this.ttfb_.sample(H,Math.max(L,5))}},{key:"canEstimate",value:function(){return this.fast_.getTotalWeight()>=this.minWeight_}},{key:"getEstimate",value:function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}},{key:"getEstimateTTFB",value:function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}},{key:"destroy",value:function(){}}]),Ae}(),go=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=-1,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=ee;var L=ee.config;this.bwEstimator=new Ds(L.abrEwmaSlowVoD,L.abrEwmaFastVoD,L.abrEwmaDefaultEstimate),this.registerListeners()}return Object(s.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.FRAG_LOADING,this.onFragLoading,this),L.on(w.FRAG_LOADED,this.onFragLoaded,this),L.on(w.FRAG_BUFFERED,this.onFragBuffered,this),L.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),L.on(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.FRAG_LOADING,this.onFragLoading,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this),L.off(w.FRAG_BUFFERED,this.onFragBuffered,this),L.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),L.off(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null}},{key:"onFragLoading",value:function(L,W){var H,Z=W.frag;if(this.ignoreFragment(Z))return;this.fragCurrent=Z,this.partCurrent=(H=W.part)!=null?H:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100)}},{key:"onLevelSwitching",value:function(L,W){this.clearTimer()}},{key:"getTimeToLoadFrag",value:function(L,W,H,Z){var ne=L+H/W,ve=Z?this.lastLevelLoadSec:0;return ne+ve}},{key:"onLevelLoaded",value:function(L,W){var H=this.hls.config,Z=W.stats,ne=Z.total,ve=Z.bwEstimate;C(ne)&&C(ve)&&(this.lastLevelLoadSec=8*ne/ve),W.details.live?this.bwEstimator.update(H.abrEwmaSlowLive,H.abrEwmaFastLive):this.bwEstimator.update(H.abrEwmaSlowVoD,H.abrEwmaFastVoD)}},{key:"_abandonRulesCheck",value:function(){var L=this.fragCurrent,W=this.partCurrent,H=this.hls,Z=H.autoLevelEnabled,ne=H.media;if(!L||!ne)return;var ve=performance.now(),Ce=W?W.stats:L.stats,ze=W?W.duration:L.duration,st=ve-Ce.loading.start;if(Ce.aborted||Ce.loaded&&Ce.loaded===Ce.total||L.level===0){this.clearTimer(),this._nextAutoLevel=-1;return}if(!Z||ne.paused||!ne.playbackRate||!ne.readyState)return;var gt=H.mainForwardBufferInfo;if(gt===null)return;var tr=this.bwEstimator.getEstimateTTFB(),Or=Math.abs(ne.playbackRate);if(st<=Math.max(tr,1e3*(ze/(Or*2))))return;var Sr=gt.len/Or;if(Sr>=2*ze/Or)return;var Wr=Ce.loading.first?Ce.loading.first-Ce.loading.start:-1,$r=Ce.loaded&&Wr>-1,Ln=this.bwEstimator.getEstimate(),Mn=H.levels,Zn=H.minAutoLevel,xi=Mn[L.level],ua=Ce.total||Math.max(Ce.loaded,Math.round(ze*xi.maxBitrate/8)),Gi=st-Wr;Gi<1&&$r&&(Gi=Math.min(st,Ce.loaded*8/Ln));var Zi=$r?Ce.loaded*1e3/Gi:0,ka=Zi?(ua-Ce.loaded)/Zi:ua*8/Ln+tr/1e3;if(ka<=Sr)return;var Ga=Zi?Zi*8:Ln,Ba=Number.POSITIVE_INFINITY,xa;for(xa=L.level-1;xa>Zn;xa--){var Go=Mn[xa].maxBitrate;if(Ba=this.getTimeToLoadFrag(tr/1e3,Ga,ze*Go,!Mn[xa].details),Ba<Sr)break}if(Ba>=ka)return;if(Ba>ze*10)return;H.nextLoadLevel=xa,$r?this.bwEstimator.sample(st-Math.min(tr,Wr),Ce.loaded):this.bwEstimator.sampleTTFB(st),this.clearTimer(),j.warn("[abr] Fragment ".concat(L.sn).concat(W?" part "+W.index:""," of level ").concat(L.level,` is loading too slowly;
Time to underbuffer: `).concat(Sr.toFixed(3),` s
Estimated load time for current fragment: `).concat(ka.toFixed(3),` s
Estimated load time for down switch fragment: `).concat(Ba.toFixed(3),` s
TTFB estimate: `).concat(Wr,`
Current BW estimate: `).concat(C(Ln)?(Ln/1024).toFixed(3):"Unknown",` Kb/s
New BW estimate: `).concat((this.bwEstimator.getEstimate()/1024).toFixed(3),` Kb/s
Aborting and switching to level `).concat(xa)),L.loader&&(this.fragCurrent=this.partCurrent=null,L.abortRequests()),H.trigger(w.FRAG_LOAD_EMERGENCY_ABORTED,{frag:L,part:W,stats:Ce})}},{key:"onFragLoaded",value:function(L,W){var H=W.frag,Z=W.part,ne=Z?Z.stats:H.stats;if(H.type===At.MAIN&&this.bwEstimator.sampleTTFB(ne.loading.first-ne.loading.start),this.ignoreFragment(H))return;if(this.clearTimer(),this.lastLoadedFragLevel=H.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var ve=Z?Z.duration:H.duration,Ce=this.hls.levels[H.level],ze=(Ce.loaded?Ce.loaded.bytes:0)+ne.loaded,st=(Ce.loaded?Ce.loaded.duration:0)+ve;Ce.loaded={bytes:ze,duration:st},Ce.realBitrate=Math.round(8*ze/st)}if(H.bitrateTest){var gt={stats:ne,frag:H,part:Z,id:H.type};this.onFragBuffered(w.FRAG_BUFFERED,gt),H.bitrateTest=!1}}},{key:"onFragBuffered",value:function(L,W){var H=W.frag,Z=W.part,ne=Z!=null&&Z.stats.loaded?Z.stats:H.stats;if(ne.aborted)return;if(this.ignoreFragment(H))return;var ve=ne.parsing.end-ne.loading.start-Math.min(ne.loading.first-ne.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(ve,ne.loaded),ne.bwEstimate=this.bwEstimator.getEstimate(),H.bitrateTest?this.bitrateTestDelay=ve/1e3:this.bitrateTestDelay=0}},{key:"ignoreFragment",value:function(L){return L.type!==At.MAIN||L.sn==="initSegment"}},{key:"clearTimer",value:function(){self.clearInterval(this.timer)}},{key:"nextAutoLevel",get:function(){var L=this._nextAutoLevel,W=this.bwEstimator;if(L!==-1&&!W.canEstimate())return L;var H=this.getNextABRAutoLevel();if(L!==-1){var Z=this.hls.levels;if(Z.length>Math.max(L,H)&&Z[L].loadError<=Z[H].loadError)return L}return L!==-1&&(H=Math.min(L,H)),H},set:function(L){this._nextAutoLevel=L}},{key:"getNextABRAutoLevel",value:function(){var L=this.fragCurrent,W=this.partCurrent,H=this.hls,Z=H.maxAutoLevel,ne=H.config,ve=H.minAutoLevel,Ce=H.media,ze=W?W.duration:L?L.duration:0,st=Ce&&Ce.playbackRate!==0?Math.abs(Ce.playbackRate):1,gt=this.bwEstimator?this.bwEstimator.getEstimate():ne.abrEwmaDefaultEstimate,tr=H.mainForwardBufferInfo,Or=(tr?tr.len:0)/st,Sr=this.findBestLevel(gt,ve,Z,Or,ne.abrBandWidthFactor,ne.abrBandWidthUpFactor);if(Sr>=0)return Sr;j.trace("[abr] ".concat(Or?"rebuffering expected":"buffer is empty",", finding optimal quality level"));var Wr=ze?Math.min(ze,ne.maxStarvationDelay):ne.maxStarvationDelay,$r=ne.abrBandWidthFactor,Ln=ne.abrBandWidthUpFactor;if(!Or){var Mn=this.bitrateTestDelay;if(Mn){var Zn=ze?Math.min(ze,ne.maxLoadingDelay):ne.maxLoadingDelay;Wr=Zn-Mn,j.trace("[abr] bitrate test took ".concat(Math.round(1e3*Mn),"ms, set first fragment max fetchDuration to ").concat(Math.round(1e3*Wr)," ms")),$r=Ln=1}}return Sr=this.findBestLevel(gt,ve,Z,Or+Wr,$r,Ln),Math.max(Sr,0)}},{key:"findBestLevel",value:function(L,W,H,Z,ne,ve){for(var Ce,ze=this.fragCurrent,st=this.partCurrent,gt=this.lastLoadedFragLevel,tr=this.hls.levels,Or=tr[gt],Sr=!!(Or!=null&&(Ce=Or.details)!=null&&Ce.live),Wr=Or==null?void 0:Or.codecSet,$r=st?st.duration:ze?ze.duration:0,Ln=this.bwEstimator.getEstimateTTFB()/1e3,Mn=W,Zn=-1,xi=H;xi>=W;xi--){var ua=tr[xi];if(!ua||Wr&&ua.codecSet!==Wr){ua&&(Mn=Math.min(xi,Mn),Zn=Math.max(xi,Zn));continue}Zn!==-1&&j.trace("[abr] Skipped level(s) ".concat(Mn,"-").concat(Zn,' with CODECS:"').concat(tr[Zn].attrs.CODECS,'"; not compatible with "').concat(Or.attrs.CODECS,'"'));var Gi=ua.details,Zi=(st?Gi==null?void 0:Gi.partTarget:Gi==null?void 0:Gi.averagetargetduration)||$r,ka=void 0;xi<=gt?ka=ne*L:ka=ve*L;var Ga=tr[xi].maxBitrate,Ba=this.getTimeToLoadFrag(Ln,ka,Ga*Zi,Gi===void 0);if(j.trace("[abr] level:".concat(xi," adjustedbw-bitrate:").concat(Math.round(ka-Ga)," avgDuration:").concat(Zi.toFixed(1)," maxFetchDuration:").concat(Z.toFixed(1)," fetchDuration:").concat(Ba.toFixed(1))),ka>Ga&&(Ba===0||!C(Ba)||Sr&&!this.bitrateTestDelay||Ba<Z))return xi}return-1}}]),Ae}(),zt=function(){function Ae(){Object(r.a)(this,Ae),this.chunks=[],this.dataLength=0}return Object(s.a)(Ae,[{key:"push",value:function(L){this.chunks.push(L),this.dataLength+=L.length}},{key:"flush",value:function(){var L=this.chunks,W=this.dataLength,H;if(L.length)L.length===1?H=L[0]:H=ur(L,W);else return new Uint8Array(0);return this.reset(),H}},{key:"reset",value:function(){this.chunks.length=0,this.dataLength=0}}]),Ae}();function ur(Ae,ee){for(var L=new Uint8Array(ee),W=0,H=0;H<Ae.length;H++){var Z=Ae[H];L.set(Z,W),W+=Z.length}return L}var Dn=100,fi=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W,H,Z,"[audio-stream-controller]",At.AUDIO),ne.videoBuffer=null,ne.videoTrackCC=-1,ne.waitingVideoCC=-1,ne.bufferedTrack=null,ne.switchingTrack=null,ne.trackId=-1,ne.waitingData=null,ne.mainDetails=null,ne.bufferFlushed=!1,ne.cachedTrackLoadedData=null,ne._registerListeners(),ne}return Object(s.a)(L,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}},{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.BUFFER_RESET,this.onBufferReset,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.BUFFER_RESET,this.onBufferReset,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onInitPtsFound",value:function(H,Z){var ne=Z.frag,ve=Z.id,Ce=Z.initPTS,ze=Z.timescale;if(ve==="main"){var st=ne.cc;this.initPTS[ne.cc]={baseTime:Ce,timescale:ze},this.log("InitPTS for cc: ".concat(st," found from main: ").concat(Ce)),this.videoTrackCC=st,this.state===Bi.WAITING_INIT_PTS&&this.tick()}}},{key:"startLoad",value:function(H){if(!this.levels){this.startPosition=H,this.state=Bi.STOPPED;return}var Z=this.lastCurrentTime;this.stopLoad(),this.setInterval(Dn),Z>0&&H===-1?(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z,this.state=Bi.IDLE):(this.loadedmetadata=!1,this.state=Bi.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"doTick",value:function(){switch(this.state){case Bi.IDLE:this.doTickIdle();break;case Bi.WAITING_TRACK:{var H,Z=this.levels,ne=this.trackId,ve=Z==null||(H=Z[ne])==null?void 0:H.details;if(ve){if(this.waitForCdnTuneIn(ve))break;this.state=Bi.WAITING_INIT_PTS}break}case Bi.FRAG_LOADING_WAITING_RETRY:{var Ce,ze=performance.now(),st=this.retryDate;(!st||ze>=st||(Ce=this.media)!=null&&Ce.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=Bi.IDLE);break}case Bi.WAITING_INIT_PTS:{var gt=this.waitingData;if(gt){var tr=gt.frag,Or=gt.part,Sr=gt.cache,Wr=gt.complete;if(this.initPTS[tr.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.FRAG_LOADING;var $r=Sr.flush(),Ln={frag:tr,part:Or,payload:$r,networkDetails:null};this._handleFragmentLoadProgress(Ln),Wr&&Object(t.a)(Object(p.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,Ln)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc (".concat(tr.cc,") cancelled because video is at cc ").concat(this.videoTrackCC)),this.clearWaitingFragment();else{var Mn=this.getLoadPosition(),Zn=Ii.bufferInfo(this.mediaBuffer,Mn,this.config.maxBufferHole),xi=Pn(Zn.end,this.config.maxFragLookUpTolerance,tr);xi<0&&(this.log("Waiting fragment cc (".concat(tr.cc,") @ ").concat(tr.start," cancelled because another fragment at ").concat(Zn.end," is needed")),this.clearWaitingFragment())}}else this.state=Bi.IDLE}}this.onTickEnd()}},{key:"clearWaitingFragment",value:function(){var H=this.waitingData;H&&(this.fragmentTracker.removeFragment(H.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.IDLE)}},{key:"resetLoadingState",value:function(){this.clearWaitingFragment(),Object(t.a)(Object(p.a)(L.prototype),"resetLoadingState",this).call(this)}},{key:"onTickEnd",value:function(){var H=this.media;if(!(H!=null&&H.readyState))return;this.lastCurrentTime=H.currentTime}},{key:"doTickIdle",value:function(){var H=this.hls,Z=this.levels,ne=this.media,ve=this.trackId,Ce=H.config;if(!(Z!=null&&Z[ve]))return;if(!ne&&(this.startFragRequested||!Ce.startFragPrefetch))return;var ze=Z[ve],st=ze.details;if(!st||st.live&&this.levelLastLoaded!==ve||this.waitForCdnTuneIn(st)){this.state=Bi.WAITING_TRACK;return}var gt=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&gt&&(this.bufferFlushed=!1,this.afterBufferFlushed(gt,se.AUDIO,At.AUDIO));var tr=this.getFwdBufferInfo(gt,At.AUDIO);if(tr===null)return;var Or=this.bufferedTrack,Sr=this.switchingTrack;if(!Sr&&this._streamEnded(tr,st)){H.trigger(w.BUFFER_EOS,{type:"audio"}),this.state=Bi.ENDED;return}var Wr=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,At.MAIN),$r=tr.len,Ln=this.getMaxBufferLength(Wr==null?void 0:Wr.len);if($r>=Ln&&!Sr)return;var Mn=st.fragments,Zn=Mn[0].start,xi=tr.end;if(Sr&&ne){var ua=this.getLoadPosition();Or&&Sr.attrs!==Or.attrs&&(xi=ua),st.PTSKnown&&ua<Zn&&((tr.end>Zn||tr.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),ne.currentTime=Zn+.05))}var Gi=this.getNextFragment(xi,st),Zi=!1;if(Gi&&this.isLoopLoading(Gi,xi)&&(Zi=!!Gi.gap,Gi=this.getNextFragmentLoopLoading(Gi,st,tr,At.MAIN,Ln)),!Gi){this.bufferFlushed=!0;return}var ka=Wr&&Gi.start>Wr.end+st.targetduration;if(ka||!(Wr!=null&&Wr.len)&&tr.len){var Ga=this.getAppendedFrag(Gi.start,At.MAIN);if(Ga===null)return;if(Zi||(Zi=!!Ga.gap||!!ka&&Wr.len===0),ka&&!Zi||Zi&&tr.nextStart&&tr.nextStart<Ga.end)return}this.loadFragment(Gi,ze,xi)}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(p.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.min(Math.max(Z,H),this.config.maxMaxBufferLength):Z}},{key:"onMediaDetaching",value:function(){this.videoBuffer=null,Object(t.a)(Object(p.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onAudioTracksUpdated",value:function(H,Z){var ne=Z.audioTracks;this.resetTransmuxer(),this.levels=ne.map(function(ve){return new kt(ve)})}},{key:"onAudioTrackSwitching",value:function(H,Z){var ne=!!Z.url;this.trackId=Z.id;var ve=this.fragCurrent;ve&&(ve.abortRequests(),this.removeUnbufferedFrags(ve.start)),this.resetLoadingState(),ne?this.setInterval(Dn):this.resetTransmuxer(),ne?(this.switchingTrack=Z,this.state=Bi.IDLE):(this.switchingTrack=null,this.bufferedTrack=Z,this.state=Bi.STOPPED),this.tick()}},{key:"onManifestLoading",value:function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(w.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}},{key:"onAudioTrackLoaded",value:function(H,Z){var ne;if(this.mainDetails==null){this.cachedTrackLoadedData=Z;return}var ve=this.levels,Ce=Z.details,ze=Z.id;if(!ve){this.warn("Audio tracks were reset while loading level ".concat(ze));return}this.log("Track ".concat(ze," loaded [").concat(Ce.startSN,",").concat(Ce.endSN,"]").concat(Ce.lastPartSn?"[part-".concat(Ce.lastPartSn,"-").concat(Ce.lastPartIndex,"]"):"",",duration:").concat(Ce.totalduration));var st=ve[ze],gt=0;if(Ce.live||(ne=st.details)!=null&&ne.live){this.checkLiveUpdate(Ce);var tr=this.mainDetails;if(Ce.deltaUpdateFailed||!tr)return;!st.details&&Ce.hasProgramDateTime&&tr.hasProgramDateTime?(La(Ce,tr),gt=Ce.fragments[0].start):gt=this.alignPlaylists(Ce,st.details)}st.details=Ce,this.levelLastLoaded=ze,!this.startFragRequested&&(this.mainDetails||!Ce.live)&&this.setStartPosition(st.details,gt),this.state===Bi.WAITING_TRACK&&!this.waitForCdnTuneIn(Ce)&&(this.state=Bi.IDLE),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,ne=H.frag,ve=H.part,Ce=H.payload,ze=this.config,st=this.trackId,gt=this.levels;if(!gt){this.warn("Audio tracks were reset while fragment load was in progress. Fragment ".concat(ne.sn," of level ").concat(ne.level," will not be buffered"));return}var tr=gt[st];if(!tr){this.warn("Audio track is undefined on fragment load progress");return}var Or=tr.details;if(!Or){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(ne.start);return}var Sr=ze.defaultAudioCodec||tr.audioCodec||"mp4a.40.2",Wr=this.transmuxer;Wr||(Wr=this.transmuxer=new Qs(this.hls,At.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var $r=this.initPTS[ne.cc],Ln=(Z=ne.initSegment)==null?void 0:Z.data;if($r!==void 0){var Mn=!1,Zn=ve?ve.index:-1,xi=Zn!==-1,ua=new Vi(ne.level,ne.sn,ne.stats.chunkCount,Ce.byteLength,Zn,xi);Wr.push(Ce,Ln,Sr,"",ne,ve,Or.totalduration,Mn,ua,$r)}else{this.log("Unknown video PTS for cc ".concat(ne.cc,", waiting for video PTS before demuxing audio frag ").concat(ne.sn," of [").concat(Or.startSN," ,").concat(Or.endSN,"],track ").concat(st));var Gi=this.waitingData=this.waitingData||{frag:ne,part:ve,cache:new zt,complete:!1},Zi=Gi.cache;Zi.push(new Uint8Array(Ce)),this.waitingVideoCC=this.videoTrackCC,this.state=Bi.WAITING_INIT_PTS}}},{key:"_handleFragmentLoadComplete",value:function(H){if(this.waitingData){this.waitingData.complete=!0;return}Object(t.a)(Object(p.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,H)}},{key:"onBufferReset",value:function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}},{key:"onBufferCreated",value:function(H,Z){var ne=Z.tracks.audio;ne&&(this.mediaBuffer=ne.buffer||null),Z.tracks.video&&(this.videoBuffer=Z.tracks.video.buffer||null)}},{key:"onFragBuffered",value:function(H,Z){var ne=Z.frag,ve=Z.part;if(ne.type!==At.AUDIO){if(!this.loadedmetadata&&ne.type===At.MAIN){var Ce=this.videoBuffer||this.media;if(Ce){var ze=Ii.getBuffered(Ce);ze.length&&(this.loadedmetadata=!0)}}return}if(this.fragContextChanged(ne)){this.warn("Fragment ".concat(ne.sn).concat(ve?" p: "+ve.index:""," of level ").concat(ne.level," finished buffering, but was aborted. state: ").concat(this.state,", audioSwitch: ").concat(this.switchingTrack?this.switchingTrack.name:"false"));return}if(ne.sn!=="initSegment"){this.fragPrevious=ne;var st=this.switchingTrack;st&&(this.bufferedTrack=st,this.switchingTrack=null,this.hls.trigger(w.AUDIO_TRACK_SWITCHED,b({},st)))}this.fragBufferedComplete(ne,ve)}},{key:"onError",value:function(H,Z){var ne;if(Z.fatal){this.state=Bi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(At.AUDIO,Z);break;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Bi.WAITING_TRACK&&((ne=Z.context)==null?void 0:ne.type)===Lt.AUDIO_TRACK&&(this.state=Bi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="audio")return;this.reduceLengthAndFlushBuffer(Z)&&(this.bufferedTrack=null,Object(t.a)(Object(p.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"onBufferFlushed",value:function(H,Z){var ne=Z.type;ne===se.AUDIO&&(this.bufferFlushed=!0,this.state===Bi.ENDED&&(this.state=Bi.IDLE))}},{key:"_handleTransmuxComplete",value:function(H){var Z,ne="audio",ve=this.hls,Ce=H.remuxResult,ze=H.chunkMeta,st=this.getCurrentContext(ze);if(!st){this.resetWhenMissingContext(ze);return}var gt=st.frag,tr=st.part,Or=st.level,Sr=Or.details,Wr=Ce.audio,$r=Ce.text,Ln=Ce.id3,Mn=Ce.initSegment;if(this.fragContextChanged(gt)||!Sr){this.fragmentTracker.removeFragment(gt);return}if(this.state=Bi.PARSING,this.switchingTrack&&Wr&&this.completeAudioSwitch(this.switchingTrack),Mn!=null&&Mn.tracks){var Zn=gt.initSegment||gt;this._bufferInitSegment(Mn.tracks,Zn,ze),ve.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:Zn,id:ne,tracks:Mn.tracks})}if(Wr){var xi=Wr.startPTS,ua=Wr.endPTS,Gi=Wr.startDTS,Zi=Wr.endDTS;tr&&(tr.elementaryStreams[se.AUDIO]={startPTS:xi,endPTS:ua,startDTS:Gi,endDTS:Zi}),gt.setElementaryStreamInfo(se.AUDIO,xi,ua,Gi,Zi),this.bufferFragmentData(Wr,gt,tr,ze)}if(Ln!=null&&(Z=Ln.samples)!=null&&Z.length){var ka=E({id:ne,frag:gt,details:Sr},Ln);ve.trigger(w.FRAG_PARSING_METADATA,ka)}if($r){var Ga=E({id:ne,frag:gt,details:Sr},$r);ve.trigger(w.FRAG_PARSING_USERDATA,Ga)}}},{key:"_bufferInitSegment",value:function(H,Z,ne){if(this.state!==Bi.PARSING)return;H.video&&delete H.video;var ve=H.audio;if(!ve)return;ve.levelCodec=ve.codec,ve.id="audio",this.log("Init audio buffer, container:".concat(ve.container,", codecs[parsed]=[").concat(ve.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,H);var Ce=ve.initSegment;if(Ce!=null&&Ce.byteLength){var ze={type:"audio",frag:Z,part:null,chunkMeta:ne,parent:Z.type,data:Ce};this.hls.trigger(w.BUFFER_APPENDING,ze)}this.tick()}},{key:"loadFragment",value:function(H,Z,ne){var ve=this.fragmentTracker.getState(H);if(this.fragCurrent=H,this.switchingTrack||ve===Nt.NOT_LOADED||ve===Nt.PARTIAL){var Ce;H.sn==="initSegment"?this._loadInitSegment(H,Z):(Ce=Z.details)!=null&&Ce.live&&!this.initPTS[H.cc]?(this.log("Waiting for video PTS in continuity counter ".concat(H.cc," of live stream before loading audio fragment ").concat(H.sn," of level ").concat(this.trackId)),this.state=Bi.WAITING_INIT_PTS):(this.startFragRequested=!0,Object(t.a)(Object(p.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne))}else this.clearTrackerIfNeeded(H)}},{key:"completeAudioSwitch",value:function(H){var Z=this.hls,ne=this.media,ve=this.bufferedTrack,Ce=ve==null?void 0:ve.attrs,ze=H.attrs;ne&&Ce&&(Ce.CHANNELS!==ze.CHANNELS||Ce.NAME!==ze.NAME||Ce.LANGUAGE!==ze.LANGUAGE)&&(this.log("Switching audio track : flushing all audio"),Object(t.a)(Object(p.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio")),this.bufferedTrack=H,this.switchingTrack=null,Z.trigger(w.AUDIO_TRACK_SWITCHED,b({},H))}}]),L}(io),Mt=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=ee.call(this,W,"[audio-track-controller]"),H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.currentTrack=null,H.selectDefaultTrack=!0,H.registerListeners(),H}return Object(s.a)(L,[{key:"registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,Object(t.a)(Object(p.a)(L.prototype),"destroy",this).call(this)}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(H,Z){this.tracks=Z.audioTracks||[]}},{key:"onAudioTrackLoaded",value:function(H,Z){var ne=Z.id,ve=Z.groupId,Ce=Z.details,ze=this.tracksInGroup[ne];if(!ze||ze.groupId!==ve){this.warn("Track with id:".concat(ne," and group:").concat(ve," not found in active group ").concat(ze.groupId));return}var st=ze.details;ze.details=Z.details,this.log("audio-track ".concat(ne,' "').concat(ze.name,'" lang:').concat(ze.lang," group:").concat(ve," loaded [").concat(Ce.startSN,"-").concat(Ce.endSN,"]")),ne===this.trackId&&this.playlistLoaded(ne,Z,st)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.audioGroupIds))return;var ne=Z.audioGroupIds[Z.urlId];if(this.groupId!==ne){this.groupId=ne||null;var ve=this.tracks.filter(function(ze){return!ne||ze.groupId===ne});this.selectDefaultTrack&&!ve.some(function(ze){return ze.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=ve;var Ce={audioTracks:ve};this.log("Updating audio tracks, ".concat(ve.length," track(s) found in group:").concat(ne)),this.hls.trigger(w.AUDIO_TRACKS_UPDATED,Ce),this.selectInitialTrack()}else this.shouldReloadPlaylist(this.currentTrack)&&this.setAudioTrack(this.trackId)}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===Lt.AUDIO_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&(this.requestScheduled=-1,this.checkRetry(Z))}},{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1,this.setAudioTrack(H)}},{key:"setAudioTrack",value:function(H){var Z=this.tracksInGroup;if(H<0||H>=Z.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var ne=this.currentTrack;Z[this.trackId];var ve=Z[H],Ce=ve.groupId,ze=ve.name;if(this.log("Switching to audio-track ".concat(H,' "').concat(ze,'" lang:').concat(ve.lang," group:").concat(Ce)),this.trackId=H,this.currentTrack=ve,this.selectDefaultTrack=!1,this.hls.trigger(w.AUDIO_TRACK_SWITCHING,b({},ve)),ve.details&&!ve.details.live)return;var st=this.switchParams(ve.url,ne==null?void 0:ne.details);this.loadPlaylist(st)}},{key:"selectInitialTrack",value:function(){var H=this.tracksInGroup,Z=this.findTrackId(this.currentTrack)|this.findTrackId(null);if(Z!==-1)this.setAudioTrack(Z);else{var ne=new Error("No track found for running audio group-ID: ".concat(this.groupId," track count: ").concat(H.length));this.warn(ne.message),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:ne})}}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,ne=0;ne<Z.length;ne++){var ve=Z[ne];if(!this.selectDefaultTrack||ve.default){if(!H||H.attrs["STABLE-RENDITION-ID"]!==void 0&&H.attrs["STABLE-RENDITION-ID"]===ve.attrs["STABLE-RENDITION-ID"])return ve.id;if(H.name===ve.name&&H.lang===ve.lang)return ve.id}}return-1}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(p.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var ne=Z.id,ve=Z.groupId,Ce=Z.url;if(H)try{Ce=H.addDirectives(Ce)}catch(ze){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ze))}this.log("loading audio-track playlist ".concat(ne,' "').concat(Z.name,'" lang:').concat(Z.lang," group:").concat(ve)),this.clearTimer(),this.hls.trigger(w.AUDIO_TRACK_LOADING,{url:Ce,id:ne,groupId:ve,deliveryDirectives:H||null})}}}]),L}(gr);function ce(Ae,ee){if(Ae.length!==ee.length)return!1;for(var L=0;L<Ae.length;L++)if(!Se(Ae[L].attrs,ee[L].attrs))return!1;return!0}function Se(Ae,ee){var L=Ae["STABLE-RENDITION-ID"];return L?L===ee["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some(function(W){return Ae[W]!==ee[W]})}var Ie=500,Je=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W,H,Z,"[subtitle-stream-controller]",At.SUBTITLE),ne.levels=[],ne.currentTrackId=-1,ne.tracksBuffered=[],ne.mainDetails=null,ne._registerListeners(),ne}return Object(s.a)(L,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null}},{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.on(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.off(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"startLoad",value:function(H){this.stopLoad(),this.state=Bi.IDLE,this.setInterval(Ie),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"onManifestLoading",value:function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}},{key:"onMediaDetaching",value:function(){this.tracksBuffered=[],Object(t.a)(Object(p.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details}},{key:"onSubtitleFragProcessed",value:function(H,Z){var ne=Z.frag,ve=Z.success;if(this.fragPrevious=ne,this.state=Bi.IDLE,!ve)return;var Ce=this.tracksBuffered[this.currentTrackId];if(!Ce)return;for(var ze,st=ne.start,gt=0;gt<Ce.length;gt++)if(st>=Ce[gt].start&&st<=Ce[gt].end){ze=Ce[gt];break}var tr=ne.start+ne.duration;ze?ze.end=tr:(ze={start:st,end:tr},Ce.push(ze)),this.fragmentTracker.fragBuffered(ne)}},{key:"onBufferFlushing",value:function(H,Z){var ne=Z.startOffset,ve=Z.endOffset;if(ne===0&&ve!==Number.POSITIVE_INFINITY){var Ce=ve-1;if(Ce<=0)return;Z.endOffsetSubtitles=Math.max(0,Ce),this.tracksBuffered.forEach(function(ze){for(var st=0;st<ze.length;){if(ze[st].end<=Ce){ze.shift();continue}else if(ze[st].start<Ce)ze[st].start=Ce;else break;st++}}),this.fragmentTracker.removeFragmentsInRange(ne,Ce,At.SUBTITLE)}}},{key:"onFragBuffered",value:function(H,Z){if(!this.loadedmetadata&&Z.frag.type===At.MAIN){var ne;(ne=this.media)!=null&&ne.buffered.length&&(this.loadedmetadata=!0)}}},{key:"onError",value:function(H,Z){var ne=Z.frag;(ne==null?void 0:ne.type)===At.SUBTITLE&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE))}},{key:"onSubtitleTracksUpdated",value:function(H,Z){var ne=this,ve=Z.subtitleTracks;if(ce(this.levels,ve)){this.levels=ve.map(function(Ce){return new kt(Ce)});return}this.tracksBuffered=[],this.levels=ve.map(function(Ce){var ze=new kt(Ce);return ne.tracksBuffered[ze.id]=[],ze}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,At.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}},{key:"onSubtitleTrackSwitch",value:function(H,Z){if(this.currentTrackId=Z.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var ne=this.levels[this.currentTrackId];ne!=null&&ne.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,ne&&this.setInterval(Ie)}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var ne,ve=Z.details,Ce=Z.id,ze=this.currentTrackId,st=this.levels;if(!st.length)return;var gt=st[ze];if(Ce>=st.length||Ce!==ze||!gt)return;this.mediaBuffer=this.mediaBufferTimeRanges;var tr=0;if(ve.live||(ne=gt.details)!=null&&ne.live){var Or=this.mainDetails;if(ve.deltaUpdateFailed||!Or)return;var Sr=Or.fragments[0];gt.details?(tr=this.alignPlaylists(ve,gt.details),tr===0&&Sr&&(tr=Sr.start,An(ve,tr))):ve.hasProgramDateTime&&Or.hasProgramDateTime?(La(ve,Or),tr=ve.fragments[0].start):Sr&&(tr=Sr.start,An(ve,tr))}if(gt.details=ve,this.levelLastLoaded=Ce,!this.startFragRequested&&(this.mainDetails||!ve.live)&&this.setStartPosition(gt.details,tr),this.tick(),ve.live&&!this.fragCurrent&&this.media&&this.state===Bi.IDLE){var Wr=bi(null,ve.fragments,this.media.currentTime,0);Wr||(this.warn("Subtitle playlist not aligned with playback"),gt.details=void 0)}}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this,ne=H.frag,ve=H.payload,Ce=ne.decryptdata,ze=this.hls;if(this.fragContextChanged(ne))return;if(ve&&ve.byteLength>0&&Ce&&Ce.key&&Ce.iv&&Ce.method==="AES-128"){var st=performance.now();this.decrypter.decrypt(new Uint8Array(ve),Ce.key.buffer,Ce.iv.buffer).catch(function(gt){throw ze.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:gt,reason:gt.message,frag:ne}),gt}).then(function(gt){var tr=performance.now();ze.trigger(w.FRAG_DECRYPTED,{frag:ne,payload:gt,stats:{tstart:st,tdecrypt:tr}})}).catch(function(gt){Z.warn("".concat(gt.name,": ").concat(gt.message)),Z.state=Bi.IDLE})}}},{key:"doTick",value:function(){if(!this.media){this.state=Bi.IDLE;return}if(this.state===Bi.IDLE){var H=this.currentTrackId,Z=this.levels,ne=Z[H];if(!Z.length||!ne||!ne.details)return;var ve=this.config,Ce=this.getLoadPosition(),ze=Ii.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],Ce,ve.maxBufferHole),st=ze.end,gt=ze.len,tr=this.getFwdBufferInfo(this.media,At.MAIN),Or=ne.details,Sr=this.getMaxBufferLength(tr==null?void 0:tr.len)+Or.levelTargetDuration;if(gt>Sr)return;var Wr=Or.fragments,$r=Wr.length,Ln=Or.edge,Mn=null,Zn=this.fragPrevious;if(st<Ln){var xi=ve.maxFragLookUpTolerance,ua=st>Ln-xi?0:xi;Mn=bi(Zn,Wr,Math.max(Wr[0].start,st),ua),!Mn&&Zn&&Zn.start<Wr[0].start&&(Mn=Wr[0])}else Mn=Wr[$r-1];if(!Mn)return;if(Mn=this.mapToInitFragWhenRequired(Mn),Mn.sn!=="initSegment"){var Gi=Mn.sn-Or.startSN,Zi=Wr[Gi-1];Zi&&Zi.cc===Mn.cc&&this.fragmentTracker.getState(Zi)===Nt.NOT_LOADED&&(Mn=Zi)}this.fragmentTracker.getState(Mn)===Nt.NOT_LOADED&&this.loadFragment(Mn,ne,st)}}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(p.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.max(Z,H):Z}},{key:"loadFragment",value:function(H,Z,ne){this.fragCurrent=H,H.sn==="initSegment"?this._loadInitSegment(H,Z):(this.startFragRequested=!0,Object(t.a)(Object(p.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne))}},{key:"mediaBufferTimeRanges",get:function(){return new Pt(this.tracksBuffered[this.currentTrackId]||[])}}]),L}(io),Pt=Object(s.a)(function Ae(ee){Object(r.a)(this,Ae),this.buffered=void 0;var L=function(H,Z,ne){if(Z=Z>>>0,Z>ne-1)throw new DOMException("Failed to execute '".concat(H,"' on 'TimeRanges': The index provided (").concat(Z,") is greater than the maximum bound (").concat(ne,")"));return ee[Z][H]};this.buffered={get length(){return ee.length},end:function(H){return L("end",H,ee.length)},start:function(H){return L("start",H,ee.length)}}}),cr=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=ee.call(this,W,"[subtitle-track-controller]"),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}return Object(s.a)(L,[{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,Object(t.a)(Object(p.a)(L.prototype),"destroy",this).call(this)}},{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(H){this._subtitleDisplay=H,this.trackId>-1&&this.toggleTrackModes(this.trackId)}},{key:"registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(H,Z){if(this.media=Z.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)}},{key:"pollTrackChange",value:function(H){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,H)}},{key:"onMediaDetaching",value: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=Zr(this.media.textTracks);H.forEach(function(Z){Vn(Z)}),this.subtitleTrack=-1,this.media=null}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(H,Z){this.tracks=Z.subtitleTracks}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var ne=Z.id,ve=Z.details,Ce=this.trackId,ze=this.tracksInGroup[Ce];if(!ze){this.warn("Invalid subtitle track id ".concat(ne));return}var st=ze.details;ze.details=Z.details,this.log("subtitle track ".concat(ne," loaded [").concat(ve.startSN,"-").concat(ve.endSN,"]")),ne===this.trackId&&this.playlistLoaded(ne,Z,st)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.textGroupIds))return;var ne=Z.textGroupIds[Z.urlId],ve=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;if(this.groupId!==ne){var Ce=this.tracks.filter(function(gt){return!ne||gt.groupId===ne});this.tracksInGroup=Ce;var ze=this.findTrackId(ve==null?void 0:ve.name)||this.findTrackId();this.groupId=ne||null;var st={subtitleTracks:Ce};this.log("Updating subtitle tracks, ".concat(Ce.length,' track(s) found in "').concat(ne,'" group-id')),this.hls.trigger(w.SUBTITLE_TRACKS_UPDATED,st),ze!==-1&&this.setSubtitleTrack(ze,ve)}else this.shouldReloadPlaylist(ve)&&this.setSubtitleTrack(this.trackId,ve)}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,ne=0;ne<Z.length;ne++){var ve=Z[ne];if((!this.selectDefaultTrack||ve.default)&&(!H||H===ve.name))return ve.id}return-1}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===Lt.SUBTITLE_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&this.checkRetry(Z)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1;var Z=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(H,Z)}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(p.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var ne=Z.id,ve=Z.groupId,Ce=Z.url;if(H)try{Ce=H.addDirectives(Ce)}catch(ze){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ze))}this.log("Loading subtitle playlist for id ".concat(ne)),this.hls.trigger(w.SUBTITLE_TRACK_LOADING,{url:Ce,id:ne,groupId:ve,deliveryDirectives:H||null})}}},{key:"toggleTrackModes",value:function(H){var Z=this,ne=this.media,ve=this.trackId;if(!ne)return;var Ce=Zr(ne.textTracks),ze=Ce.filter(function(tr){return tr.groupId===Z.groupId});if(H===-1)[].slice.call(Ce).forEach(function(tr){tr.mode="disabled"});else{var st=ze[ve];st&&(st.mode="disabled")}var gt=ze[H];gt&&(gt.mode=this.subtitleDisplay?"showing":"hidden")}},{key:"setSubtitleTrack",value:function(H,Z){var ne,ve=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=H;return}if(this.trackId!==H&&this.toggleTrackModes(H),this.trackId===H&&(H===-1||(ne=ve[H])!=null&&ne.details)||H<-1||H>=ve.length)return;this.clearTimer();var Ce=ve[H];if(this.log("Switching to subtitle-track ".concat(H)+(Ce?' "'.concat(Ce.name,'" lang:').concat(Ce.lang," group:").concat(Ce.groupId):"")),this.trackId=H,Ce){var ze=Ce.id,st=Ce.groupId,gt=st===void 0?"":st,tr=Ce.name,Or=Ce.type,Sr=Ce.url;this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:ze,groupId:gt,name:tr,type:Or,url:Sr});var Wr=this.switchParams(Ce.url,Z==null?void 0:Z.details);this.loadPlaylist(Wr)}else this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:H})}},{key:"onTextTracksChanged",value:function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var H=-1,Z=Zr(this.media.textTracks),ne=0;ne<Z.length;ne++)if(Z[ne].mode==="hidden")H=ne;else if(Z[ne].mode==="showing"){H=ne;break}this.subtitleTrack!==H&&(this.subtitleTrack=H)}}]),L}(gr);function Zr(Ae){for(var ee=[],L=0;L<Ae.length;L++){var W=Ae[L];(W.kind==="subtitles"||W.kind==="captions")&&W.label&&ee.push(Ae[L])}return ee}var vn=function(){function Ae(ee){Object(r.a)(this,Ae),this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=ee}return Object(s.a)(Ae,[{key:"append",value:function(L,W){var H=this.queues[W];H.push(L),H.length===1&&this.buffers[W]&&this.executeNext(W)}},{key:"insertAbort",value:function(L,W){var H=this.queues[W];H.unshift(L),this.executeNext(W)}},{key:"appendBlocker",value:function(L){var W,H=new Promise(function(ne){W=ne}),Z={execute:W,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(Z,L),H}},{key:"executeNext",value:function(L){var W=this.buffers,H=this.queues,Z=W[L],ne=H[L];if(ne.length){var ve=ne[0];try{ve.execute()}catch(Ce){j.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),ve.onError(Ce),Z!=null&&Z.updating||(ne.shift(),this.executeNext(L))}}}},{key:"shiftAndExecuteNext",value:function(L){this.queues[L].shift(),this.executeNext(L)}},{key:"current",value:function(L){return this.queues[L][0]}}]),Ae}(),kn=rr(),ci=/([ha]vc.)(?:\.[^.,]+)+/,Si=function(){function Ae(ee){var L=this;Object(r.a)(this,Ae),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.lastMpegAudioChunk=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var W=L.media,H=L.mediaSource;j.log("[buffer-controller]: Media source opened"),W&&(W.removeEventListener("emptied",L._onMediaEmptied),L.updateMediaElementDuration(),L.hls.trigger(w.MEDIA_ATTACHED,{media:W})),H&&H.removeEventListener("sourceopen",L._onMediaSourceOpen),L.checkPendingTracks()},this._onMediaSourceClose=function(){j.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){j.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var W=L.media,H=L._objectUrl;W&&W.src!==H&&j.error("Media element src was set while attaching MediaSource (".concat(H," > ").concat(W.src,")"))},this.hls=ee,this._initSourceBuffer(),this.registerListeners()}return Object(s.a)(Ae,[{key:"hasSourceTypes",value:function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}},{key:"destroy",value:function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.BUFFER_RESET,this.onBufferReset,this),L.on(w.BUFFER_APPENDING,this.onBufferAppending,this),L.on(w.BUFFER_CODECS,this.onBufferCodecs,this),L.on(w.BUFFER_EOS,this.onBufferEos,this),L.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),L.on(w.FRAG_PARSED,this.onFragParsed,this),L.on(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.BUFFER_RESET,this.onBufferReset,this),L.off(w.BUFFER_APPENDING,this.onBufferAppending,this),L.off(w.BUFFER_CODECS,this.onBufferCodecs,this),L.off(w.BUFFER_EOS,this.onBufferEos,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),L.off(w.FRAG_PARSED,this.onFragParsed,this),L.off(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"_initSourceBuffer",value:function(){this.sourceBuffer={},this.operationQueue=new vn(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null}},{key:"onManifestLoading",value:function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}},{key:"onManifestParsed",value:function(L,W){var H=2;(W.audio&&!W.video||!W.altAudio||!1)&&(H=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=H,j.log("".concat(this.bufferCodecEventsExpected," bufferCodec event(s) expected"))}},{key:"onMediaAttaching",value:function(L,W){var H=this.media=W.media;if(H&&kn){var Z=this.mediaSource=new kn;Z.addEventListener("sourceopen",this._onMediaSourceOpen),Z.addEventListener("sourceended",this._onMediaSourceEnded),Z.addEventListener("sourceclose",this._onMediaSourceClose),H.src=self.URL.createObjectURL(Z),this._objectUrl=H.src,H.addEventListener("emptied",this._onMediaEmptied)}}},{key:"onMediaDetaching",value:function(){var L=this.media,W=this.mediaSource,H=this._objectUrl;if(W){if(j.log("[buffer-controller]: media source detaching"),W.readyState==="open")try{W.endOfStream()}catch(Z){j.warn("[buffer-controller]: onMediaDetaching: ".concat(Z.message," while calling endOfStream"))}this.onBufferReset(),W.removeEventListener("sourceopen",this._onMediaSourceOpen),W.removeEventListener("sourceended",this._onMediaSourceEnded),W.removeEventListener("sourceclose",this._onMediaSourceClose),L&&(L.removeEventListener("emptied",this._onMediaEmptied),H&&self.URL.revokeObjectURL(H),L.src===H?(L.removeAttribute("src"),L.load()):j.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(w.MEDIA_DETACHED,void 0)}},{key:"onBufferReset",value:function(){var L=this;this.getSourceBufferTypes().forEach(function(W){var H=L.sourceBuffer[W];try{H&&(L.removeBufferListeners(W),L.mediaSource&&L.mediaSource.removeSourceBuffer(H),L.sourceBuffer[W]=void 0)}catch(Z){j.warn("[buffer-controller]: Failed to reset the ".concat(W," buffer"),Z)}}),this._initSourceBuffer()}},{key:"onBufferCodecs",value:function(L,W){var H=this,Z=this.getSourceBufferTypes().length;if(Object.keys(W).forEach(function(ne){if(Z){var ve=H.tracks[ne];if(ve&&typeof ve.buffer.changeType=="function"){var Ce=W[ne],ze=Ce.id,st=Ce.codec,gt=Ce.levelCodec,tr=Ce.container,Or=Ce.metadata,Sr=(ve.levelCodec||ve.codec).replace(ci,"$1"),Wr=(gt||st).replace(ci,"$1");if(Sr!==Wr){var $r="".concat(tr,";codecs=").concat(gt||st);H.appendChangeType(ne,$r),j.log("[buffer-controller]: switching codec ".concat(Sr," to ").concat(Wr)),H.tracks[ne]={buffer:ve.buffer,codec:st,container:tr,levelCodec:gt,metadata:Or,id:ze}}}}else H.pendingTracks[ne]=W[ne]}),Z)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}},{key:"appendChangeType",value:function(L,W){var H=this,Z=this.operationQueue,ne={execute:function(){var Ce=H.sourceBuffer[L];Ce&&(j.log("[buffer-controller]: changing ".concat(L," sourceBuffer type to ").concat(W)),Ce.changeType(W)),Z.shiftAndExecuteNext(L)},onStart:function(){},onComplete:function(){},onError:function(Ce){j.warn("[buffer-controller]: Failed to change ".concat(L," SourceBuffer type"),Ce)}};Z.append(ne,L)}},{key:"onBufferAppending",value:function(L,W){var H=this,Z=this.hls,ne=this.operationQueue,ve=this.tracks,Ce=W.data,ze=W.type,st=W.frag,gt=W.part,tr=W.chunkMeta,Or=tr.buffering[ze],Sr=self.performance.now();Or.start=Sr;var Wr=st.stats.buffering,$r=gt?gt.stats.buffering:null;Wr.start===0&&(Wr.start=Sr),$r&&$r.start===0&&($r.start=Sr);var Ln=ve.audio,Mn=!1;ze==="audio"&&(Ln==null?void 0:Ln.container)==="audio/mpeg"&&(Mn=!this.lastMpegAudioChunk||tr.id===1||this.lastMpegAudioChunk.sn!==tr.sn,this.lastMpegAudioChunk=tr);var Zn=st.start,xi={execute:function(){if(Or.executeStart=self.performance.now(),Mn){var Gi=H.sourceBuffer[ze];if(Gi){var Zi=Zn-Gi.timestampOffset;Math.abs(Zi)>=.1&&(j.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to ".concat(Zn," (delta: ").concat(Zi,") sn: ").concat(st.sn,")")),Gi.timestampOffset=Zn)}}H.appendExecutor(Ce,ze)},onStart:function(){},onComplete:function(){var Gi=self.performance.now();Or.executeEnd=Or.end=Gi,Wr.first===0&&(Wr.first=Gi),$r&&$r.first===0&&($r.first=Gi);var Zi=H.sourceBuffer,ka={};for(var Ga in Zi)ka[Ga]=Ii.getBuffered(Zi[Ga]);H.appendError=0,H.hls.trigger(w.BUFFER_APPENDED,{type:ze,frag:st,part:gt,chunkMeta:tr,parent:st.type,timeRanges:ka})},onError:function(Gi){j.error("[buffer-controller]: Error encountered while trying to append to the ".concat(ze," SourceBuffer"),Gi);var Zi={type:O.MEDIA_ERROR,parent:st.type,details:I.BUFFER_APPEND_ERROR,frag:st,part:gt,chunkMeta:tr,error:Gi,err:Gi,fatal:!1};Gi.code===DOMException.QUOTA_EXCEEDED_ERR?Zi.details=I.BUFFER_FULL_ERROR:(H.appendError++,Zi.details=I.BUFFER_APPEND_ERROR,H.appendError>Z.config.appendErrorMaxRetry&&(j.error("[buffer-controller]: Failed ".concat(Z.config.appendErrorMaxRetry," times to append segment in sourceBuffer")),Zi.fatal=!0)),Z.trigger(w.ERROR,Zi)}};ne.append(xi,ze)}},{key:"onBufferFlushing",value:function(L,W){var H=this,Z=this.operationQueue,ne=function(Ce){return{execute:H.removeExecutor.bind(H,Ce,W.startOffset,W.endOffset),onStart:function(){},onComplete:function(){H.hls.trigger(w.BUFFER_FLUSHED,{type:Ce})},onError:function(st){j.warn("[buffer-controller]: Failed to remove from ".concat(Ce," SourceBuffer"),st)}}};W.type?Z.append(ne(W.type),W.type):this.getSourceBufferTypes().forEach(function(ve){Z.append(ne(ve),ve)})}},{key:"onFragParsed",value:function(L,W){var H=this,Z=W.frag,ne=W.part,ve=[],Ce=ne?ne.elementaryStreams:Z.elementaryStreams;Ce[se.AUDIOVIDEO]?ve.push("audiovideo"):(Ce[se.AUDIO]&&ve.push("audio"),Ce[se.VIDEO]&&ve.push("video"));var ze=function(){var gt=self.performance.now();Z.stats.buffering.end=gt,ne&&(ne.stats.buffering.end=gt);var tr=ne?ne.stats:Z.stats;H.hls.trigger(w.FRAG_BUFFERED,{frag:Z,part:ne,stats:tr,id:Z.type})};ve.length===0&&j.warn("Fragments must have at least one ElementaryStreamType set. type: ".concat(Z.type," level: ").concat(Z.level," sn: ").concat(Z.sn)),this.blockBuffers(ze,ve)}},{key:"onFragChanged",value:function(L,W){this.flushBackBuffer()}},{key:"onBufferEos",value:function(L,W){var H=this,Z=this.getSourceBufferTypes().reduce(function(ne,ve){var Ce=H.sourceBuffer[ve];return Ce&&(!W.type||W.type===ve)&&(Ce.ending=!0,Ce.ended||(Ce.ended=!0,j.log("[buffer-controller]: ".concat(ve," sourceBuffer now EOS")))),ne&&!!(!Ce||Ce.ended)},!0);Z&&(j.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers(function(){H.getSourceBufferTypes().forEach(function(ve){var Ce=H.sourceBuffer[ve];Ce&&(Ce.ending=!1)});var ne=H.mediaSource;if(!ne||ne.readyState!=="open"){ne&&j.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: ".concat(ne.readyState));return}j.log("[buffer-controller]: Calling mediaSource.endOfStream()"),ne.endOfStream()}))}},{key:"onLevelUpdated",value:function(L,W){var H=W.details;if(!H.fragments.length)return;this.details=H,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()}},{key:"flushBackBuffer",value:function(){var L=this.hls,W=this.details,H=this.media,Z=this.sourceBuffer;if(!H||W===null)return;var ne=this.getSourceBufferTypes();if(!ne.length)return;var ve=W.live&&L.config.liveBackBufferLength!==null?L.config.liveBackBufferLength:L.config.backBufferLength;if(!C(ve)||ve<0)return;var Ce=H.currentTime,ze=W.levelTargetDuration,st=Math.max(ve,ze),gt=Math.floor(Ce/ze)*ze-st;ne.forEach(function(tr){var Or=Z[tr];if(Or){var Sr=Ii.getBuffered(Or);if(Sr.length>0&&gt>Sr.start(0)){if(L.trigger(w.BACK_BUFFER_REACHED,{bufferEnd:gt}),W.live)L.trigger(w.LIVE_BACK_BUFFER_REACHED,{bufferEnd:gt});else if(Or.ended&&Sr.end(Sr.length-1)-Ce<ze*2){j.info("[buffer-controller]: Cannot flush ".concat(tr," back buffer while SourceBuffer is in ended state"));return}L.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:gt,type:tr})}}})}},{key:"updateMediaElementDuration",value:function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var L=this.details,W=this.hls,H=this.media,Z=this.mediaSource,ne=L.fragments[0].start+L.totalduration,ve=H.duration,Ce=C(Z.duration)?Z.duration:0;L.live&&W.config.liveDurationInfinity?(j.log("[buffer-controller]: Media Source duration is set to Infinity"),Z.duration=Infinity,this.updateSeekableRange(L)):(ne>Ce&&ne>ve||!C(ve))&&(j.log("[buffer-controller]: Updating Media Source duration to ".concat(ne.toFixed(3))),Z.duration=ne)}},{key:"updateSeekableRange",value:function(L){var W=this.mediaSource,H=L.fragments,Z=H.length;if(Z&&L.live&&W!=null&&W.setLiveSeekableRange){var ne=Math.max(0,H[0].start),ve=Math.max(ne,ne+L.totalduration);W.setLiveSeekableRange(ne,ve)}}},{key:"checkPendingTracks",value:function(){var L=this.bufferCodecEventsExpected,W=this.operationQueue,H=this.pendingTracks,Z=Object.keys(H).length;if(Z&&!L||Z===2){this.createSourceBuffers(H),this.pendingTracks={};var ne=this.getSourceBufferTypes();if(ne.length)this.hls.trigger(w.BUFFER_CREATED,{tracks:this.tracks}),ne.forEach(function(Ce){W.executeNext(Ce)});else{var ve=new Error("could not create source buffer for media codec(s)");this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:ve,reason:ve.message})}}}},{key:"createSourceBuffers",value:function(L){var W=this.sourceBuffer,H=this.mediaSource;if(!H)throw Error("createSourceBuffers called when mediaSource was null");for(var Z in L)if(!W[Z]){var ne=L[Z];if(!ne)throw Error("source buffer exists for track ".concat(Z,", however track does not"));var ve=ne.levelCodec||ne.codec,Ce="".concat(ne.container,";codecs=").concat(ve);j.log("[buffer-controller]: creating sourceBuffer(".concat(Ce,")"));try{var ze=W[Z]=H.addSourceBuffer(Ce),st=Z;this.addBufferListener(st,"updatestart",this._onSBUpdateStart),this.addBufferListener(st,"updateend",this._onSBUpdateEnd),this.addBufferListener(st,"error",this._onSBUpdateError),this.tracks[Z]={buffer:ze,codec:ve,container:ne.container,levelCodec:ne.levelCodec,metadata:ne.metadata,id:ne.id}}catch(gt){j.error("[buffer-controller]: error while trying to add sourceBuffer: ".concat(gt.message)),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:gt,mimeType:Ce})}}}},{key:"_onSBUpdateStart",value:function(L){var W=this.operationQueue,H=W.current(L);H.onStart()}},{key:"_onSBUpdateEnd",value:function(L){var W=this.operationQueue,H=W.current(L);H.onComplete(),W.shiftAndExecuteNext(L)}},{key:"_onSBUpdateError",value:function(L,W){var H=new Error("".concat(L," SourceBuffer error"));j.error("[buffer-controller]: ".concat(H),W),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_APPENDING_ERROR,error:H,fatal:!1});var Z=this.operationQueue.current(L);Z&&Z.onError(W)}},{key:"removeExecutor",value:function(L,W,H){var Z=this.media,ne=this.mediaSource,ve=this.operationQueue,Ce=this.sourceBuffer,ze=Ce[L];if(!Z||!ne||!ze){j.warn("[buffer-controller]: Attempting to remove from the ".concat(L," SourceBuffer, but it does not exist")),ve.shiftAndExecuteNext(L);return}var st=C(Z.duration)?Z.duration:Infinity,gt=C(ne.duration)?ne.duration:Infinity,tr=Math.max(0,W),Or=Math.min(H,st,gt);Or>tr&&!ze.ending?(ze.ended=!1,j.log("[buffer-controller]: Removing [".concat(tr,",").concat(Or,"] from the ").concat(L," SourceBuffer")),ze.remove(tr,Or)):ve.shiftAndExecuteNext(L)}},{key:"appendExecutor",value:function(L,W){var H=this.operationQueue,Z=this.sourceBuffer,ne=Z[W];if(!ne){j.warn("[buffer-controller]: Attempting to append to the ".concat(W," SourceBuffer, but it does not exist")),H.shiftAndExecuteNext(W);return}ne.ended=!1,ne.appendBuffer(L)}},{key:"blockBuffers",value:function(L){var W=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getSourceBufferTypes();if(!H.length){j.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(L);return}var Z=this.operationQueue,ne=H.map(function(ve){return Z.appendBlocker(ve)});Promise.all(ne).then(function(){L(),H.forEach(function(ve){var Ce=W.sourceBuffer[ve];Ce!=null&&Ce.updating||Z.shiftAndExecuteNext(ve)})})}},{key:"getSourceBufferTypes",value:function(){return Object.keys(this.sourceBuffer)}},{key:"addBufferListener",value:function(L,W,H){var Z=this.sourceBuffer[L];if(!Z)return;var ne=H.bind(this,L);this.listeners[L].push({event:W,listener:ne}),Z.addEventListener(W,ne)}},{key:"removeBufferListeners",value:function(L){var W=this.sourceBuffer[L];if(!W)return;this.listeners[L].forEach(function(H){W.removeEventListener(H.event,H.listener)})}}]),Ae}(),Ai={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},Qi=function(ee){var L=ee;return Ai.hasOwnProperty(ee)&&(L=Ai[ee]),String.fromCharCode(L)},sa=15,Ua=100,no={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Wo={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Zo={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Bo={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Es=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],As=function(){function Ae(){Object(r.a)(this,Ae),this.time=null,this.verboseLevel=0}return Object(s.a)(Ae,[{key:"log",value:function(L,W){if(this.verboseLevel>=L){var H=typeof W=="function"?W():W;j.log("".concat(this.time," [").concat(L,"] ").concat(H))}}}]),Ae}(),$o=function(ee){for(var L=[],W=0;W<ee.length;W++)L.push(ee[W].toString(16));return L},Do=function(){function Ae(ee,L,W,H,Z){Object(r.a)(this,Ae),this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=ee||"white",this.underline=L||!1,this.italics=W||!1,this.background=H||"black",this.flash=Z||!1}return Object(s.a)(Ae,[{key:"reset",value:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}},{key:"setStyles",value:function(L){for(var W=["foreground","underline","italics","background","flash"],H=0;H<W.length;H++){var Z=W[H];L.hasOwnProperty(Z)&&(this[Z]=L[Z])}}},{key:"isDefault",value:function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}},{key:"equals",value:function(L){return this.foreground===L.foreground&&this.underline===L.underline&&this.italics===L.italics&&this.background===L.background&&this.flash===L.flash}},{key:"copy",value:function(L){this.foreground=L.foreground,this.underline=L.underline,this.italics=L.italics,this.background=L.background,this.flash=L.flash}},{key:"toString",value:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}]),Ae}(),vo=function(){function Ae(ee,L,W,H,Z,ne){Object(r.a)(this,Ae),this.uchar=void 0,this.penState=void 0,this.uchar=ee||" ",this.penState=new Do(L,W,H,Z,ne)}return Object(s.a)(Ae,[{key:"reset",value:function(){this.uchar=" ",this.penState.reset()}},{key:"setChar",value:function(L,W){this.uchar=L,this.penState.copy(W)}},{key:"setPenState",value:function(L){this.penState.copy(L)}},{key:"equals",value:function(L){return this.uchar===L.uchar&&this.penState.equals(L.penState)}},{key:"copy",value:function(L){this.uchar=L.uchar,this.penState.copy(L.penState)}},{key:"isEmpty",value:function(){return this.uchar===" "&&this.penState.isDefault()}}]),Ae}(),Ms=function(){function Ae(ee){Object(r.a)(this,Ae),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<Ua;L++)this.chars.push(new vo);this.logger=ee,this.pos=0,this.currPenState=new Do}return Object(s.a)(Ae,[{key:"equals",value:function(L){for(var W=!0,H=0;H<Ua;H++)if(!this.chars[H].equals(L.chars[H])){W=!1;break}return W}},{key:"copy",value:function(L){for(var W=0;W<Ua;W++)this.chars[W].copy(L.chars[W])}},{key:"isEmpty",value:function(){for(var L=!0,W=0;W<Ua;W++)if(!this.chars[W].isEmpty()){L=!1;break}return L}},{key:"setCursor",value:function(L){this.pos!==L&&(this.pos=L),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Ua&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ua)}},{key:"moveCursor",value:function(L){var W=this.pos+L;if(L>1)for(var H=this.pos+1;H<W+1;H++)this.chars[H].setPenState(this.currPenState);this.setCursor(W)}},{key:"backSpace",value:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}},{key:"insertChar",value:function(L){var W=this;L>=144&&this.backSpace();var H=Qi(L);if(this.pos>=Ua){this.logger.log(0,function(){return"Cannot insert "+L.toString(16)+" ("+H+") at position "+W.pos+". Skipping it!"});return}this.chars[this.pos].setChar(H,this.currPenState),this.moveCursor(1)}},{key:"clearFromPos",value:function(L){var W;for(W=L;W<Ua;W++)this.chars[W].reset()}},{key:"clear",value:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}},{key:"clearToEndOfRow",value:function(){this.clearFromPos(this.pos)}},{key:"getTextString",value:function(){for(var L=[],W=!0,H=0;H<Ua;H++){var Z=this.chars[H].uchar;Z!==" "&&(W=!1),L.push(Z)}return W?"":L.join("")}},{key:"setPenStyles",value:function(L){this.currPenState.setStyles(L);var W=this.chars[this.pos];W.setPenState(this.currPenState)}}]),Ae}(),rl=function(){function Ae(ee){Object(r.a)(this,Ae),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<sa;L++)this.rows.push(new Ms(ee));this.logger=ee,this.currRow=sa-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}return Object(s.a)(Ae,[{key:"reset",value:function(){for(var L=0;L<sa;L++)this.rows[L].clear();this.currRow=sa-1}},{key:"equals",value:function(L){for(var W=!0,H=0;H<sa;H++)if(!this.rows[H].equals(L.rows[H])){W=!1;break}return W}},{key:"copy",value:function(L){for(var W=0;W<sa;W++)this.rows[W].copy(L.rows[W])}},{key:"isEmpty",value:function(){for(var L=!0,W=0;W<sa;W++)if(!this.rows[W].isEmpty()){L=!1;break}return L}},{key:"backSpace",value:function(){var L=this.rows[this.currRow];L.backSpace()}},{key:"clearToEndOfRow",value:function(){var L=this.rows[this.currRow];L.clearToEndOfRow()}},{key:"insertChar",value:function(L){var W=this.rows[this.currRow];W.insertChar(L)}},{key:"setPen",value:function(L){var W=this.rows[this.currRow];W.setPenStyles(L)}},{key:"moveCursor",value:function(L){var W=this.rows[this.currRow];W.moveCursor(L)}},{key:"setCursor",value:function(L){this.logger.log(2,"setCursor: "+L);var W=this.rows[this.currRow];W.setCursor(L)}},{key:"setPAC",value:function(L){this.logger.log(2,function(){return"pacData = "+JSON.stringify(L)});var W=L.row-1;if(this.nrRollUpRows&&W<this.nrRollUpRows-1&&(W=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==W){for(var H=0;H<sa;H++)this.rows[H].clear();var Z=this.currRow+1-this.nrRollUpRows,ne=this.lastOutputScreen;if(ne){var ve=ne.rows[Z].cueStartTime,Ce=this.logger.time;if(ve&&Ce!==null&&ve<Ce)for(var ze=0;ze<this.nrRollUpRows;ze++)this.rows[W-this.nrRollUpRows+ze+1].copy(ne.rows[Z+ze])}}this.currRow=W;var st=this.rows[this.currRow];if(L.indent!==null){var gt=L.indent,tr=Math.max(gt-1,0);st.setCursor(L.indent),L.color=st.chars[tr].penState.foreground}var Or={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(Or)}},{key:"setBkgData",value:function(L){this.logger.log(2,function(){return"bkgData = "+JSON.stringify(L)}),this.backSpace(),this.setPen(L),this.insertChar(32)}},{key:"setRollUpRows",value:function(L){this.nrRollUpRows=L}},{key:"rollUp",value:function(){var L=this;if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,function(){return L.getDisplayText()});var W=this.currRow+1-this.nrRollUpRows,H=this.rows.splice(W,1)[0];H.clear(),this.rows.splice(this.currRow,0,H),this.logger.log(2,"Rolling up")}},{key:"getDisplayText",value:function(L){L=L||!1;for(var W=[],H="",Z=-1,ne=0;ne<sa;ne++){var ve=this.rows[ne].getTextString();ve&&(Z=ne+1,L?W.push("Row "+Z+": '"+ve+"'"):W.push(ve.trim()))}return W.length>0&&(L?H="["+W.join(" | ")+"]":H=W.join(`
`)),H}},{key:"getTextAndFormat",value:function(){return this.rows}}]),Ae}(),gs=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),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=ee,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new rl(W),this.nonDisplayedMemory=new rl(W),this.lastOutputScreen=new rl(W),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=W}return Object(s.a)(Ae,[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}},{key:"getHandler",value:function(){return this.outputFilter}},{key:"setHandler",value:function(L){this.outputFilter=L}},{key:"setPAC",value:function(L){this.writeScreen.setPAC(L)}},{key:"setBkgData",value:function(L){this.writeScreen.setBkgData(L)}},{key:"setMode",value:function(L){if(L===this.mode)return;this.mode=L,this.logger.log(2,function(){return"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}},{key:"insertChars",value:function(L){for(var W=this,H=0;H<L.length;H++)this.writeScreen.insertChar(L[H]);var Z=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,function(){return Z+": "+W.writeScreen.getDisplayText(!0)}),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,function(){return"DISPLAYED: "+W.displayedMemory.getDisplayText(!0)}),this.outputDataUpdate())}},{key:"ccRCL",value:function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}},{key:"ccBS",value:function(){if(this.logger.log(2,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()}},{key:"ccAOF",value:function(){}},{key:"ccAON",value:function(){}},{key:"ccDER",value:function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}},{key:"ccRU",value:function(L){this.logger.log(2,"RU("+L+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(L)}},{key:"ccFON",value:function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}},{key:"ccRDC",value:function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}},{key:"ccTR",value:function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}},{key:"ccRTD",value:function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}},{key:"ccEDM",value:function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}},{key:"ccCR",value:function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}},{key:"ccENM",value:function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}},{key:"ccEOC",value:function(){var L=this;if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var W=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=W,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,function(){return"DISP: "+L.displayedMemory.getDisplayText()})}this.outputDataUpdate(!0)}},{key:"ccTO",value:function(L){this.logger.log(2,"TO("+L+") - Tab Offset"),this.writeScreen.moveCursor(L)}},{key:"ccMIDROW",value:function(L){var W={flash:!1};if(W.underline=L%2===1,W.italics=L>=46,W.italics)W.foreground="white";else{var H=Math.floor(L/2)-16,Z=["white","green","blue","cyan","red","yellow","magenta"];W.foreground=Z[H]}this.logger.log(2,"MIDROW: "+JSON.stringify(W)),this.writeScreen.setPen(W)}},{key:"outputDataUpdate",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,W=this.logger.time;if(W===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=W:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,W,this.lastOutputScreen),L&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:W),this.lastOutputScreen.copy(this.displayedMemory))}},{key:"cueSplitAtTime",value:function(L){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,L,this.displayedMemory),this.cueStartTime=L))}}]),Ae}(),Ra=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var H=new As;this.channels=[null,new gs(ee,L,H),new gs(ee+1,W,H)],this.cmdHistory=Us(),this.logger=H}return Object(s.a)(Ae,[{key:"getHandler",value:function(L){return this.channels[L].getHandler()}},{key:"setHandler",value:function(L,W){this.channels[L].setHandler(W)}},{key:"addData",value:function(L,W){var H,Z,ne,ve=!1;this.logger.time=L;for(var Ce=0;Ce<W.length;Ce+=2){if(Z=W[Ce]&127,ne=W[Ce+1]&127,Z===0&&ne===0)continue;if(this.logger.log(3,"["+$o([W[Ce],W[Ce+1]])+"] -> ("+$o([Z,ne])+")"),H=this.parseCmd(Z,ne),H||(H=this.parseMidrow(Z,ne)),H||(H=this.parsePAC(Z,ne)),H||(H=this.parseBackgroundAttributes(Z,ne)),!H&&(ve=this.parseChars(Z,ne),ve)){var ze=this.currentChannel;if(ze&&ze>0){var st=this.channels[ze];st.insertChars(ve)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}!H&&!ve&&this.logger.log(2,"Couldn't parse cleaned data "+$o([Z,ne])+" orig: "+$o([W[Ce],W[Ce+1]]))}}},{key:"parseCmd",value:function(L,W){var H=this.cmdHistory,Z=(L===20||L===28||L===21||L===29)&&W>=32&&W<=47,ne=(L===23||L===31)&&W>=33&&W<=35;if(!(Z||ne))return!1;if(fl(L,W,H))return dl(null,null,H),this.logger.log(3,"Repeated command ("+$o([L,W])+") is dropped"),!0;var ve=L===20||L===21||L===23?1:2,Ce=this.channels[ve];return L===20||L===21||L===28||L===29?W===32?Ce.ccRCL():W===33?Ce.ccBS():W===34?Ce.ccAOF():W===35?Ce.ccAON():W===36?Ce.ccDER():W===37?Ce.ccRU(2):W===38?Ce.ccRU(3):W===39?Ce.ccRU(4):W===40?Ce.ccFON():W===41?Ce.ccRDC():W===42?Ce.ccTR():W===43?Ce.ccRTD():W===44?Ce.ccEDM():W===45?Ce.ccCR():W===46?Ce.ccENM():W===47&&Ce.ccEOC():Ce.ccTO(W-32),dl(L,W,H),this.currentChannel=ve,!0}},{key:"parseMidrow",value:function(L,W){var H=0;if((L===17||L===25)&&W>=32&&W<=47){if(L===17?H=1:H=2,H!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var Z=this.channels[H];return Z?(Z.ccMIDROW(W),this.logger.log(3,"MIDROW ("+$o([L,W])+")"),!0):!1}return!1}},{key:"parsePAC",value:function(L,W){var H,Z=this.cmdHistory,ne=(L>=17&&L<=23||L>=25&&L<=31)&&W>=64&&W<=127,ve=(L===16||L===24)&&W>=64&&W<=95;if(!(ne||ve))return!1;if(fl(L,W,Z))return dl(null,null,Z),!0;var Ce=L<=23?1:2;W>=64&&W<=95?H=Ce===1?no[L]:Zo[L]:H=Ce===1?Wo[L]:Bo[L];var ze=this.channels[Ce];return ze?(ze.setPAC(this.interpretPAC(H,W)),dl(L,W,Z),this.currentChannel=Ce,!0):!1}},{key:"interpretPAC",value:function(L,W){var H,Z={color:null,italics:!1,indent:null,underline:!1,row:L};return W>95?H=W-96:H=W-64,Z.underline=(H&1)===1,H<=13?Z.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(H/2)]:H<=15?(Z.italics=!0,Z.color="white"):Z.indent=Math.floor((H-16)/2)*4,Z}},{key:"parseChars",value:function(L,W){var H,Z=null,ne=null;if(L>=25?(H=2,ne=L-8):(H=1,ne=L),ne>=17&&ne<=19){var ve;ne===17?ve=W+80:ne===18?ve=W+112:ve=W+144,this.logger.log(2,"Special char '"+Qi(ve)+"' in channel "+H),Z=[ve]}else L>=32&&L<=127&&(Z=W===0?[L]:[L,W]);if(Z){var Ce=$o(Z);this.logger.log(3,"Char codes = "+Ce.join(",")),dl(L,W,this.cmdHistory)}return Z}},{key:"parseBackgroundAttributes",value:function(L,W){var H=(L===16||L===24)&&W>=32&&W<=47,Z=(L===23||L===31)&&W>=45&&W<=47;if(!(H||Z))return!1;var ne,ve={};L===16||L===24?(ne=Math.floor((W-32)/2),ve.background=Es[ne],W%2===1&&(ve.background=ve.background+"_semi")):W===45?ve.background="transparent":(ve.foreground="black",W===47&&(ve.underline=!0));var Ce=L<=23?1:2,ze=this.channels[Ce];return ze.setBkgData(ve),dl(L,W,this.cmdHistory),!0}},{key:"reset",value:function(){for(var L=0;L<Object.keys(this.channels).length;L++){var W=this.channels[L];W&&W.reset()}this.cmdHistory=Us()}},{key:"cueSplitAtTime",value:function(L){for(var W=0;W<this.channels.length;W++){var H=this.channels[W];H&&H.cueSplitAtTime(L)}}}]),Ae}();function dl(Ae,ee,L){L.a=Ae,L.b=ee}function fl(Ae,ee,L){return L.a===Ae&&L.b===ee}function Us(){return{a:null,b:null}}var Os=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=ee,this.trackName=L}return Object(s.a)(Ae,[{key:"dispatchCue",value:function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null}},{key:"newCue",value:function(L,W,H){(this.startTime===null||this.startTime>L)&&(this.startTime=L),this.endTime=W,this.screen=H,this.timelineController.createCaptionsTrack(this.trackName)}},{key:"reset",value:function(){this.cueRanges=[],this.startTime=null}}]),Ae}(),Xs=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var Ae=["","lr","rl"],ee=["start","middle","end","left","right"];function L(ve,Ce){if(typeof Ce!="string")return!1;if(!Array.isArray(ve))return!1;var ze=Ce.toLowerCase();return~ve.indexOf(ze)?ze:!1}function W(ve){return L(Ae,ve)}function H(ve){return L(ee,ve)}function Z(ve){for(var Ce=arguments.length,ze=new Array(Ce>1?Ce-1:0),st=1;st<Ce;st++)ze[st-1]=arguments[st];for(var gt=1;gt<arguments.length;gt++){var tr=arguments[gt];for(var Or in tr)ve[Or]=tr[Or]}return ve}function ne(ve,Ce,ze){var st=this,gt={enumerable:!0};st.hasBeenReset=!1;var tr="",Or=!1,Sr=ve,Wr=Ce,$r=ze,Ln=null,Mn="",Zn=!0,xi="auto",ua="start",Gi=50,Zi="middle",ka=50,Ga="middle";Object.defineProperty(st,"id",Z({},gt,{get:function(){return tr},set:function(xa){tr=""+xa}})),Object.defineProperty(st,"pauseOnExit",Z({},gt,{get:function(){return Or},set:function(xa){Or=!!xa}})),Object.defineProperty(st,"startTime",Z({},gt,{get:function(){return Sr},set:function(xa){if(typeof xa!="number")throw new TypeError("Start time must be set to a number.");Sr=xa,this.hasBeenReset=!0}})),Object.defineProperty(st,"endTime",Z({},gt,{get:function(){return Wr},set:function(xa){if(typeof xa!="number")throw new TypeError("End time must be set to a number.");Wr=xa,this.hasBeenReset=!0}})),Object.defineProperty(st,"text",Z({},gt,{get:function(){return $r},set:function(xa){$r=""+xa,this.hasBeenReset=!0}})),Object.defineProperty(st,"region",Z({},gt,{get:function(){return Ln},set:function(xa){Ln=xa,this.hasBeenReset=!0}})),Object.defineProperty(st,"vertical",Z({},gt,{get:function(){return Mn},set:function(xa){var Go=W(xa);if(Go===!1)throw new SyntaxError("An invalid or illegal string was specified.");Mn=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"snapToLines",Z({},gt,{get:function(){return Zn},set:function(xa){Zn=!!xa,this.hasBeenReset=!0}})),Object.defineProperty(st,"line",Z({},gt,{get:function(){return xi},set:function(xa){if(typeof xa!="number"&&xa!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");xi=xa,this.hasBeenReset=!0}})),Object.defineProperty(st,"lineAlign",Z({},gt,{get:function(){return ua},set:function(xa){var Go=H(xa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");ua=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"position",Z({},gt,{get:function(){return Gi},set:function(xa){if(xa<0||xa>100)throw new Error("Position must be between 0 and 100.");Gi=xa,this.hasBeenReset=!0}})),Object.defineProperty(st,"positionAlign",Z({},gt,{get:function(){return Zi},set:function(xa){var Go=H(xa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");Zi=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"size",Z({},gt,{get:function(){return ka},set:function(xa){if(xa<0||xa>100)throw new Error("Size must be between 0 and 100.");ka=xa,this.hasBeenReset=!0}})),Object.defineProperty(st,"align",Z({},gt,{get:function(){return Ga},set:function(xa){var Go=H(xa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");Ga=Go,this.hasBeenReset=!0}})),st.displayState=void 0}return ne.prototype.getCueAsHTML=function(){var ve=self.WebVTT;return ve.convertCueToDOMTree(self,this.text)},ne}(),Ql=function(){function Ae(){Object(r.a)(this,Ae)}return Object(s.a)(Ae,[{key:"decode",value:function(L,W){if(!L)return"";if(typeof L!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(L))}}]),Ae}();function Ul(Ae){function ee(W,H,Z,ne){return(W|0)*3600+(H|0)*60+(Z|0)+parseFloat(ne||0)}var L=Ae.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return L?parseFloat(L[2])>59?ee(L[2],L[3],0,L[4]):ee(L[1],L[2],L[3],L[4]):null}var wl=function(){function Ae(){Object(r.a)(this,Ae),this.values=Object.create(null)}return Object(s.a)(Ae,[{key:"set",value:function(L,W){!this.get(L)&&W!==""&&(this.values[L]=W)}},{key:"get",value:function(L,W,H){return H?this.has(L)?this.values[L]:W[H]:this.has(L)?this.values[L]:W}},{key:"has",value:function(L){return L in this.values}},{key:"alt",value:function(L,W,H){for(var Z=0;Z<H.length;++Z)if(W===H[Z]){this.set(L,W);break}}},{key:"integer",value:function(L,W){/^-?\d+$/.test(W)&&this.set(L,parseInt(W,10))}},{key:"percent",value:function(L,W){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(W)){var H=parseFloat(W);if(H>=0&&H<=100)return this.set(L,H),!0}return!1}}]),Ae}();function Cs(Ae,ee,L,W){var H=W?Ae.split(W):[Ae];for(var Z in H){if(typeof H[Z]!="string")continue;var ne=H[Z].split(L);if(ne.length!==2)continue;var ve=ne[0],Ce=ne[1];ee(ve,Ce)}}var Ws=new Xs(0,0,""),Cl=Ws.align==="middle"?"middle":"center";function pl(Ae,ee,L){var W=Ae;function H(){var ve=Ul(Ae);if(ve===null)throw new Error("Malformed timestamp: "+W);return Ae=Ae.replace(/^[^\sa-zA-Z-]+/,""),ve}function Z(ve,Ce){var ze=new wl;Cs(ve,function(tr,Or){var Sr;switch(tr){case"region":for(var Wr=L.length-1;Wr>=0;Wr--)if(L[Wr].id===Or){ze.set(tr,L[Wr].region);break}break;case"vertical":ze.alt(tr,Or,["rl","lr"]);break;case"line":Sr=Or.split(","),ze.integer(tr,Sr[0]),ze.percent(tr,Sr[0])&&ze.set("snapToLines",!1),ze.alt(tr,Sr[0],["auto"]),Sr.length===2&&ze.alt("lineAlign",Sr[1],["start",Cl,"end"]);break;case"position":Sr=Or.split(","),ze.percent(tr,Sr[0]),Sr.length===2&&ze.alt("positionAlign",Sr[1],["start",Cl,"end","line-left","line-right","auto"]);break;case"size":ze.percent(tr,Or);break;case"align":ze.alt(tr,Or,["start",Cl,"end","left","right"]);break}},/:/,/\s/),Ce.region=ze.get("region",null),Ce.vertical=ze.get("vertical","");var st=ze.get("line","auto");st==="auto"&&Ws.line===-1&&(st=-1),Ce.line=st,Ce.lineAlign=ze.get("lineAlign","start"),Ce.snapToLines=ze.get("snapToLines",!0),Ce.size=ze.get("size",100),Ce.align=ze.get("align",Cl);var gt=ze.get("position","auto");gt==="auto"&&Ws.position===50&&(gt=Ce.align==="start"||Ce.align==="left"?0:Ce.align==="end"||Ce.align==="right"?100:50),Ce.position=gt}function ne(){Ae=Ae.replace(/^\s+/,"")}if(ne(),ee.startTime=H(),ne(),Ae.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+W);Ae=Ae.slice(3),ne(),ee.endTime=H(),ne(),Z(Ae,ee)}function jo(Ae){return Ae.replace(/<br(?: \/)?>/gi,`
`)}var yo=function(){function Ae(){Object(r.a)(this,Ae),this.state="INITIAL",this.buffer="",this.decoder=new Ql,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}return Object(s.a)(Ae,[{key:"parse",value:function(L){var W=this;L&&(W.buffer+=W.decoder.decode(L,{stream:!0}));function H(){var st=W.buffer,gt=0;for(st=jo(st);gt<st.length&&st[gt]!=="\r"&&st[gt]!==`
`;)++gt;var tr=st.slice(0,gt);return st[gt]==="\r"&&++gt,st[gt]===`
`&&++gt,W.buffer=st.slice(gt),tr}function Z(st){Cs(st,function(gt,tr){},/:/)}try{var ne="";if(W.state==="INITIAL"){if(!/\r\n|\n/.test(W.buffer))return this;ne=H();var ve=ne.match(/^()?WEBVTT([ \t].*)?$/);if(!(ve!=null&&ve[0]))throw new Error("Malformed WebVTT signature.");W.state="HEADER"}for(var Ce=!1;W.buffer;){if(!/\r\n|\n/.test(W.buffer))return this;Ce?Ce=!1:ne=H();switch(W.state){case"HEADER":/:/.test(ne)?Z(ne):ne||(W.state="ID");continue;case"NOTE":ne||(W.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(ne)){W.state="NOTE";break}if(!ne)continue;if(W.cue=new Xs(0,0,""),W.state="CUE",ne.indexOf("-->")===-1){W.cue.id=ne;continue}case"CUE":if(!W.cue){W.state="BADCUE";continue}try{pl(ne,W.cue,W.regionList)}catch(st){W.cue=null,W.state="BADCUE";continue}W.state="CUETEXT";continue;case"CUETEXT":{var ze=ne.indexOf("-->")!==-1;if(!ne||ze&&(Ce=!0)){W.oncue&&W.cue&&W.oncue(W.cue),W.cue=null,W.state="ID";continue}if(W.cue===null)continue;W.cue.text&&(W.cue.text+=`
`),W.cue.text+=ne}continue;case"BADCUE":ne||(W.state="ID")}}}catch(st){W.state==="CUETEXT"&&W.cue&&W.oncue&&W.oncue(W.cue),W.cue=null,W.state=W.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}},{key:"flush",value:function(){var L=this;try{if((L.cue||L.state==="HEADER")&&(L.buffer+=`
`,L.parse()),L.state==="INITIAL"||L.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(W){L.onparsingerror&&L.onparsingerror(W)}return L.onflush&&L.onflush(),this}}]),Ae}(),qo=/\r\n|\n\r|\n|\r/g,ps=function(ee,L){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return ee.slice(W,W+L.length)===L},Is=function(ee){var L=parseInt(ee.slice(-3)),W=parseInt(ee.slice(-6,-4)),H=parseInt(ee.slice(-9,-7)),Z=ee.length>9?parseInt(ee.substring(0,ee.indexOf(":"))):0;if(!C(L)||!C(W)||!C(H)||!C(Z))throw Error("Malformed X-TIMESTAMP-MAP: Local:".concat(ee));return L+=1e3*W,L+=60*1e3*H,L+=60*60*1e3*Z,L},es=function(ee){for(var L=5381,W=ee.length;W;)L=L*33^ee.charCodeAt(--W);return(L>>>0).toString()};function Ls(Ae,ee,L){return es(Ae.toString())+es(ee.toString())+es(L)}var Ps=function(ee,L,W){var H=ee[L],Z=ee[H.prevCC];if(!Z||!Z.new&&H.new){ee.ccOffset=ee.presentationOffset=H.start,H.new=!1;return}for(;(ne=Z)!=null&&ne.new;){var ne;ee.ccOffset+=H.start-Z.start,H.new=!1,H=Z,Z=ee[H.prevCC]}ee.presentationOffset=W};function ml(Ae,ee,L,W,H,Z,ne){var ve=new yo,Ce=ct(new Uint8Array(Ae)).trim().replace(qo,`
`).split(`
`),ze=[],st=ee?lo(ee.baseTime,ee.timescale):0,gt="00:00.000",tr=0,Or=0,Sr,Wr=!0;ve.oncue=function($r){var Ln=L[W],Mn=L.ccOffset,Zn=(tr-st)/9e4;if(Ln!=null&&Ln.new&&(Or!==void 0?Mn=L.ccOffset=Ln.start:Ps(L,W,Zn)),Zn){if(!ee){Sr=new Error("Missing initPTS for VTT MPEGTS");return}Mn=Zn-L.presentationOffset}var xi=$r.endTime-$r.startTime,ua=Ko(($r.startTime+Mn-Or)*9e4,H*9e4)/9e4;$r.startTime=Math.max(ua,0),$r.endTime=Math.max(ua+xi,0);var Gi=$r.text.trim();$r.text=decodeURIComponent(encodeURIComponent(Gi)),$r.id||($r.id=Ls($r.startTime,$r.endTime,Gi)),$r.endTime>0&&ze.push($r)},ve.onparsingerror=function($r){Sr=$r},ve.onflush=function(){if(Sr){ne(Sr);return}Z(ze)},Ce.forEach(function($r){if(Wr)if(ps($r,"X-TIMESTAMP-MAP=")){Wr=!1,$r.slice(16).split(",").forEach(function(Ln){ps(Ln,"LOCAL:")?gt=Ln.slice(6):ps(Ln,"MPEGTS:")&&(tr=parseInt(Ln.slice(7)))});try{Or=Is(gt)/1e3}catch(Ln){Sr=Ln}return}else $r===""&&(Wr=!1);ve.parse($r+`
`)}),ve.flush()}var Rl="stpp.ttml.im1t",_l=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Bl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,jl={left:"start",center:"center",right:"end",start:"start",end:"end"};function kl(Ae,ee,L,W){var H=lt(new Uint8Array(Ae),["mdat"]);if(H.length===0){W(new Error("Could not parse IMSC1 mdat"));return}var Z=H.map(function(ve){return ct(ve)}),ne=Fa(ee.baseTime,1,ee.timescale);try{Z.forEach(function(ve){return L(Xl(ve,ne))})}catch(ve){W(ve)}}function Xl(Ae,ee){var L=new DOMParser,W=L.parseFromString(Ae,"text/xml"),H=W.getElementsByTagName("tt")[0];if(!H)throw new Error("Invalid ttml");var Z={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},ne=Object.keys(Z).reduce(function(gt,tr){return gt[tr]=H.getAttribute("ttp:".concat(tr))||Z[tr],gt},{}),ve=H.getAttribute("xml:space")!=="preserve",Ce=Ys(ol(H,"styling","style")),ze=Ys(ol(H,"layout","region")),st=ol(H,"body","[begin]");return[].map.call(st,function(gt){var tr=sl(gt,ve);if(!tr||!gt.hasAttribute("begin"))return null;var Or=Wl(gt.getAttribute("begin"),ne),Sr=Wl(gt.getAttribute("dur"),ne),Wr=Wl(gt.getAttribute("end"),ne);if(Or===null)throw Ml(gt);if(Wr===null){if(Sr===null)throw Ml(gt);Wr=Or+Sr}var $r=new Xs(Or-ee,Wr-ee,tr);$r.id=Ls($r.startTime,$r.endTime,$r.text);var Ln=ze[gt.getAttribute("region")],Mn=Ce[gt.getAttribute("style")],Zn=nl(Ln,Mn,Ce),xi=Zn.textAlign;if(xi){var ua=jl[xi];ua&&($r.lineAlign=ua),$r.align=xi}return E($r,Zn),$r}).filter(function(gt){return gt!==null})}function ol(Ae,ee,L){var W=Ae.getElementsByTagName(ee)[0];return W?[].slice.call(W.querySelectorAll(L)):[]}function Ys(Ae){return Ae.reduce(function(ee,L){var W=L.getAttribute("xml:id");return W&&(ee[W]=L),ee},{})}function sl(Ae,ee){return[].slice.call(Ae.childNodes).reduce(function(L,W,H){var Z;return W.nodeName==="br"&&H?L+`
`:(Z=W.childNodes)!=null&&Z.length?sl(W,ee):ee?L+W.textContent.trim().replace(/\s+/g," "):L+W.textContent},"")}function nl(Ae,ee,L){var W="http://www.w3.org/ns/ttml#styling",H=null,Z=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],ne=Ae!=null&&Ae.hasAttribute("style")?Ae.getAttribute("style"):null;return ne&&L.hasOwnProperty(ne)&&(H=L[ne]),Z.reduce(function(ve,Ce){var ze=Sl(ee,W,Ce)||Sl(Ae,W,Ce)||Sl(H,W,Ce);return ze&&(ve[Ce]=ze),ve},{})}function Sl(Ae,ee,L){return Ae&&Ae.hasAttributeNS(ee,L)?Ae.getAttributeNS(ee,L):null}function Ml(Ae){return new Error("Could not parse ttml timestamp ".concat(Ae))}function Wl(Ae,ee){if(!Ae)return null;var L=Ul(Ae);return L===null&&(_l.test(Ae)?L=au(Ae,ee):Bl.test(Ae)&&(L=Nl(Ae,ee))),L}function au(Ae,ee){var L=_l.exec(Ae),W=(L[4]|0)+(L[5]|0)/ee.subFrameRate;return(L[1]|0)*3600+(L[2]|0)*60+(L[3]|0)+W/ee.frameRate}function Nl(Ae,ee){var L=Bl.exec(Ae),W=Number(L[1]),H=L[2];switch(H){case"h":return W*3600;case"m":return W*60;case"ms":return W*1e3;case"f":return W/ee.frameRate;case"t":return W/ee.tickRate}return W}var $l=function(){function Ae(ee){if(Object(r.a)(this,Ae),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.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this.captionsProperties=void 0,this.hls=ee,this.config=ee.config,this.Cues=ee.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 L=new Os(this,"textTrack1"),W=new Os(this,"textTrack2"),H=new Os(this,"textTrack3"),Z=new Os(this,"textTrack4");this.cea608Parser1=new Ra(1,L,W),this.cea608Parser2=new Ra(3,H,Z)}ee.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),ee.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),ee.on(w.MANIFEST_LOADING,this.onManifestLoading,this),ee.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),ee.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),ee.on(w.FRAG_LOADING,this.onFragLoading,this),ee.on(w.FRAG_LOADED,this.onFragLoaded,this),ee.on(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),ee.on(w.FRAG_DECRYPTED,this.onFragDecrypted,this),ee.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),ee.on(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),ee.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this)}return Object(s.a)(Ae,[{key:"destroy",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),L.off(w.FRAG_LOADING,this.onFragLoading,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this),L.off(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),L.off(w.FRAG_DECRYPTED,this.onFragDecrypted,this),L.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),L.off(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null}},{key:"addCues",value:function(L,W,H,Z,ne){for(var ve=!1,Ce=ne.length;Ce--;){var ze=ne[Ce],st=Iu(ze[0],ze[1],W,H);if(st>=0&&(ze[0]=Math.min(ze[0],W),ze[1]=Math.max(ze[1],H),ve=!0,st/(H-W)>.5))return}if(ve||ne.push([W,H]),this.config.renderTextTracksNatively){var gt=this.captionsTracks[L];this.Cues.newCue(gt,W,H,Z)}else{var tr=this.Cues.newCue(null,W,H,Z);this.hls.trigger(w.CUES_PARSED,{type:"captions",cues:tr,track:L})}}},{key:"onInitPtsFound",value:function(L,W){var H=this,Z=W.frag,ne=W.id,ve=W.initPTS,Ce=W.timescale,ze=this.unparsedVttFrags;ne==="main"&&(this.initPTS[Z.cc]={baseTime:ve,timescale:Ce}),ze.length&&(this.unparsedVttFrags=[],ze.forEach(function(st){H.onFragLoaded(w.FRAG_LOADED,st)}))}},{key:"getExistingTrack",value:function(L){var W=this.media;if(W)for(var H=0;H<W.textTracks.length;H++){var Z=W.textTracks[H];if(Z[L])return Z}return null}},{key:"createCaptionsTrack",value:function(L){this.config.renderTextTracksNatively?this.createNativeTrack(L):this.createNonNativeTrack(L)}},{key:"createNativeTrack",value:function(L){if(this.captionsTracks[L])return;var W=this.captionsProperties,H=this.captionsTracks,Z=this.media,ne=W[L],ve=ne.label,Ce=ne.languageCode,ze=this.getExistingTrack(L);if(ze)H[L]=ze,Vn(H[L]),gn(H[L],Z);else{var st=this.createTextTrack("captions",ve,Ce);st&&(st[L]=!0,H[L]=st)}}},{key:"createNonNativeTrack",value:function(L){if(this.nonNativeCaptionsTracks[L])return;var W=this.captionsProperties[L];if(!W)return;var H=W.label,Z={_id:L,label:H,kind:"captions",default:W.media?!!W.media.default:!1,closedCaptions:W.media};this.nonNativeCaptionsTracks[L]=Z,this.hls.trigger(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[Z]})}},{key:"createTextTrack",value:function(L,W,H){var Z=this.media;return Z?Z.addTextTrack(L,W,H):void 0}},{key:"onMediaAttaching",value:function(L,W){this.media=W.media,this._cleanTracks()}},{key:"onMediaDetaching",value:function(){var L=this.captionsTracks;Object.keys(L).forEach(function(W){Vn(L[W]),delete L[W]}),this.nonNativeCaptionsTracks={}}},{key:"onManifestLoading",value:function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}},{key:"_cleanTracks",value:function(){var L=this.media;if(!L)return;var W=L.textTracks;if(W)for(var H=0;H<W.length;H++)Vn(W[H])}},{key:"onSubtitleTracksUpdated",value:function(L,W){var H=this,Z=W.subtitleTracks||[],ne=Z.some(function(st){return st.textCodec===Rl});if(this.config.enableWebVTT||ne&&this.config.enableIMSC1){var ve=ce(this.tracks,Z);if(ve){this.tracks=Z;return}if(this.textTracks=[],this.tracks=Z,this.config.renderTextTracksNatively){var Ce=this.media?this.media.textTracks:null;this.tracks.forEach(function(st,gt){var tr;if(Ce&&gt<Ce.length){for(var Or=null,Sr=0;Sr<Ce.length;Sr++)if(tu(Ce[Sr],st)){Or=Ce[Sr];break}Or&&(tr=Or)}if(tr)Vn(tr);else{var Wr=H._captionsOrSubtitlesFromCharacteristics(st);tr=H.createTextTrack(Wr,st.name,st.lang),tr&&(tr.mode="disabled")}tr&&(tr.groupId=st.groupId,H.textTracks.push(tr))})}else if(this.tracks.length){var ze=this.tracks.map(function(st){return{label:st.name,kind:st.type.toLowerCase(),default:st.default,subtitleTrack:st}});this.hls.trigger(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:ze})}}}},{key:"_captionsOrSubtitlesFromCharacteristics",value:function(L){if(L.attrs.CHARACTERISTICS){var W=/transcribes-spoken-dialog/gi.test(L.attrs.CHARACTERISTICS),H=/describes-music-and-sound/gi.test(L.attrs.CHARACTERISTICS);if(W&&H)return"captions"}return"subtitles"}},{key:"onManifestLoaded",value:function(L,W){var H=this;this.config.enableCEA708Captions&&W.captions&&W.captions.forEach(function(Z){var ne=/(?:CC|SERVICE)([1-4])/.exec(Z.instreamId);if(!ne)return;var ve="textTrack".concat(ne[1]),Ce=H.captionsProperties[ve];if(!Ce)return;Ce.label=Z.name,Z.lang&&(Ce.languageCode=Z.lang),Ce.media=Z})}},{key:"closedCaptionsForLevel",value:function(L){var W=this.hls.levels[L.level];return W==null?void 0:W.attrs["CLOSED-CAPTIONS"]}},{key:"onFragLoading",value:function(L,W){var H=this.cea608Parser1,Z=this.cea608Parser2,ne=this.lastSn,ve=this.lastPartIndex;if(!this.enabled||!(H&&Z))return;if(W.frag.type===At.MAIN){var Ce,ze,st=W.frag.sn,gt=(Ce=W==null||(ze=W.part)==null?void 0:ze.index)!=null?Ce:-1;st===ne+1||st===ne&&gt===ve+1||(H.reset(),Z.reset()),this.lastSn=st,this.lastPartIndex=gt}}},{key:"onFragLoaded",value:function(L,W){var H=W.frag,Z=W.payload;if(H.type===At.SUBTITLE)if(Z.byteLength){var ne=H.decryptdata,ve="stats"in W;if(ne==null||!ne.encrypted||ve){var Ce=this.tracks[H.level],ze=this.vttCCs;ze[H.cc]||(ze[H.cc]={start:H.start,prevCC:this.prevCC,new:!0},this.prevCC=H.cc),Ce&&Ce.textCodec===Rl?this._parseIMSC1(H,Z):this._parseVTTs(W)}}else this.hls.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:H,error:new Error("Empty subtitle payload")})}},{key:"_parseIMSC1",value:function(L,W){var H=this,Z=this.hls;kl(W,this.initPTS[L.cc],function(ne){H._appendCues(ne,L.level),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:L})},function(ne){j.log("Failed to parse IMSC1: ".concat(ne)),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:L,error:ne})})}},{key:"_parseVTTs",value:function(L){var W=this,H,Z=L.frag,ne=L.payload,ve=this.initPTS,Ce=this.unparsedVttFrags,ze=ve.length-1;if(!ve[Z.cc]&&ze===-1){Ce.push(L);return}var st=this.hls,gt=(H=Z.initSegment)!=null&&H.data?Tt(Z.initSegment.data,new Uint8Array(ne)):ne;ml(gt,this.initPTS[Z.cc],this.vttCCs,Z.cc,Z.start,function(tr){W._appendCues(tr,Z.level),st.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:Z})},function(tr){var Or=tr.message==="Missing initPTS for VTT MPEGTS";if(Or?Ce.push(L):W._fallbackToIMSC1(Z,ne),j.log("Failed to parse VTT cue: ".concat(tr)),Or&&ze>Z.cc)return;st.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:Z,error:tr})})}},{key:"_fallbackToIMSC1",value:function(L,W){var H=this,Z=this.tracks[L.level];Z.textCodec||kl(W,this.initPTS[L.cc],function(){Z.textCodec=Rl,H._parseIMSC1(L,W)},function(){Z.textCodec="wvtt"})}},{key:"_appendCues",value:function(L,W){var H=this.hls;if(this.config.renderTextTracksNatively){var Z=this.textTracks[W];if(!Z||Z.mode==="disabled")return;L.forEach(function(Ce){return yr(Z,Ce)})}else{var ne=this.tracks[W];if(!ne)return;var ve=ne.default?"default":"subtitles"+W;H.trigger(w.CUES_PARSED,{type:"subtitles",cues:L,track:ve})}}},{key:"onFragDecrypted",value:function(L,W){var H=W.frag;H.type===At.SUBTITLE&&this.onFragLoaded(w.FRAG_LOADED,W)}},{key:"onSubtitleTracksCleared",value:function(){this.tracks=[],this.captionsTracks={}}},{key:"onFragParsingUserdata",value:function(L,W){var H=this.cea608Parser1,Z=this.cea608Parser2;if(!this.enabled||!(H&&Z))return;var ne=W.frag,ve=W.samples;if(ne.type===At.MAIN&&this.closedCaptionsForLevel(ne)==="NONE")return;for(var Ce=0;Ce<ve.length;Ce++){var ze=ve[Ce].bytes;if(ze){var st=this.extractCea608Data(ze);H.addData(ve[Ce].pts,st[0]),Z.addData(ve[Ce].pts,st[1])}}}},{key:"onBufferFlushing",value:function(L,W){var H=W.startOffset,Z=W.endOffset,ne=W.endOffsetSubtitles,ve=W.type,Ce=this.media;if(!Ce||Ce.currentTime<Z)return;if(!ve||ve==="video"){var ze=this.captionsTracks;Object.keys(ze).forEach(function(gt){return Br(ze[gt],H,Z)})}if(this.config.renderTextTracksNatively&&(H===0&&ne!==void 0)){var st=this.textTracks;Object.keys(st).forEach(function(gt){return Br(st[gt],H,ne)})}}},{key:"extractCea608Data",value:function(L){for(var W=[[],[]],H=L[0]&31,Z=2,ne=0;ne<H;ne++){var ve=L[Z++],Ce=127&L[Z++],ze=127&L[Z++];if(Ce===0&&ze===0)continue;var st=(4&ve)!==0;if(st){var gt=3&ve;(gt===0||gt===1)&&(W[gt].push(Ce),W[gt].push(ze))}}return W}}]),Ae}();function tu(Ae,ee){return!!Ae&&Ae.label===ee.name&&!(Ae.textTrack1||Ae.textTrack2)}function Iu(Ae,ee,L,W){return Math.min(ee,W)-Math.max(Ae,L)}function pu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}var mu=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=ee,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}return Object(s.a)(Ae,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"destroy",value:function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.BUFFER_CODECS,this.onBufferCodecs,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"unregisterListener",value:function(){var L=this.hls;L.off(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.BUFFER_CODECS,this.onBufferCodecs,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"onFpsDropLevelCapping",value:function(L,W){var H=this.hls.levels[W.droppedLevel];this.isLevelAllowed(H)&&this.restrictedLevels.push({bitrate:H.bitrate,height:H.height,width:H.width})}},{key:"onMediaAttaching",value:function(L,W){this.media=W.media instanceof HTMLVideoElement?W.media:null,this.clientRect=null}},{key:"onManifestParsed",value:function(L,W){var H=this.hls;this.restrictedLevels=[],this.firstLevel=W.firstLevel,H.config.capLevelToPlayerSize&&W.video&&this.startCapping()}},{key:"onBufferCodecs",value:function(L,W){var H=this.hls;H.config.capLevelToPlayerSize&&W.video&&this.startCapping()}},{key:"onMediaDetaching",value:function(){this.stopCapping()}},{key:"detectPlayerSize",value:function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var L=this.hls.levels;if(L.length){var W=this.hls;W.autoLevelCapping=this.getMaxLevel(L.length-1),W.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=W.autoLevelCapping}}}},{key:"getMaxLevel",value:function(L){var W=this,H=this.hls.levels;if(!H.length)return-1;var Z=H.filter(function(ne,ve){return W.isLevelAllowed(ne)&&ve<=L});return this.clientRect=null,Ae.getMaxLevelByMediaSize(Z,this.mediaWidth,this.mediaHeight)}},{key:"startCapping",value: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()}},{key:"stopCapping",value:function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}},{key:"getDimensions",value:function(){if(this.clientRect)return this.clientRect;var L=this.media,W={width:0,height:0};if(L){var H=L.getBoundingClientRect();W.width=H.width,W.height=H.height,!W.width&&!W.height&&(W.width=H.right-H.left||L.width||0,W.height=H.bottom-H.top||L.height||0)}return this.clientRect=W,W}},{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 L=1;if(!this.hls.config.ignoreDevicePixelRatio)try{L=self.devicePixelRatio}catch(W){}return L}},{key:"isLevelAllowed",value:function(L){var W=this.restrictedLevels;return!W.some(function(H){return L.bitrate===H.bitrate&&L.width===H.width&&L.height===H.height})}}],[{key:"getMaxLevelByMediaSize",value:function(L,W,H){if(!(L!=null&&L.length))return-1;for(var Z=function(st,gt){return gt?st.width!==gt.width||st.height!==gt.height:!0},ne=L.length-1,ve=0;ve<L.length;ve+=1){var Ce=L[ve];if((Ce.width>=W||Ce.height>=H)&&Z(Ce,L[ve+1])){ne=ve;break}}return ne}}]),Ae}(),gu=function(){function Ae(ee){Object(r.a)(this,Ae),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=ee,this.registerListeners()}return Object(s.a)(Ae,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"destroy",value:function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}},{key:"onMediaAttaching",value:function(L,W){var H=this.hls.config;if(H.capLevelOnFPSDrop){var Z=W.media instanceof self.HTMLVideoElement?W.media:null;this.media=Z,Z&&typeof Z.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),H.fpsDroppedMonitoringPeriod)}}},{key:"checkFPS",value:function(L,W,H){var Z=performance.now();if(W){if(this.lastTime){var ne=Z-this.lastTime,ve=H-this.lastDroppedFrames,Ce=W-this.lastDecodedFrames,ze=1e3*ve/ne,st=this.hls;if(st.trigger(w.FPS_DROP,{currentDropped:ve,currentDecoded:Ce,totalDroppedFrames:H}),ze>0&&ve>st.config.fpsDroppedMonitoringThreshold*Ce){var gt=st.currentLevel;j.warn("drop FPS ratio greater than max allowed value for currentLevel: "+gt),gt>0&&(st.autoLevelCapping===-1||st.autoLevelCapping>=gt)&&(gt=gt-1,st.trigger(w.FPS_DROP_LEVEL_CAPPING,{level:gt,droppedLevel:st.currentLevel}),st.autoLevelCapping=gt,this.streamController.nextLevelSwitch())}}this.lastTime=Z,this.lastDroppedFrames=H,this.lastDecodedFrames=W}}},{key:"checkFPSInterval",value:function(){var L=this.media;if(L)if(this.isVideoPlaybackQualityAvailable){var W=L.getVideoPlaybackQuality();this.checkFPS(L,W.totalVideoFrames,W.droppedVideoFrames)}else this.checkFPS(L,L.webkitDecodedFrameCount,L.webkitDroppedFrameCount)}}]),Ae}(),ql="[eme]",Tl=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Ae.CDMCleanupPromise?[Ae.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=j.debug.bind(j,ql),this.log=j.log.bind(j,ql),this.warn=j.warn.bind(j,ql),this.error=j.error.bind(j,ql),this.hls=ee,this.config=ee.config,this.registerListeners()}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached();var L=this.config;L.requestMediaKeySystemAccessFunc=null,L.licenseXhrSetup=L.licenseResponseCallback=void 0,L.drmSystems=L.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"getLicenseServerUrl",value:function(L){var W=this.config,H=W.drmSystems,Z=W.widevineLicenseUrl,ne=H[L];if(ne)return ne.licenseUrl;if(L===he.WIDEVINE&&Z)return Z;throw new Error('no license server URL configured for key-system "'.concat(L,'"'))}},{key:"getServerCertificateUrl",value:function(L){var W=this.config.drmSystems,H=W[L];if(H)return H.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'.concat(L,'"]'))}},{key:"attemptKeySystemAccess",value:function(L){var W=this,H=this.hls.levels,Z=function(ze,st,gt){return!!ze&&gt.indexOf(ze)===st},ne=H.map(function(Ce){return Ce.audioCodec}).filter(Z),ve=H.map(function(Ce){return Ce.videoCodec}).filter(Z);return ne.length+ve.length===0&&ve.push("avc1.42e01e"),new Promise(function(Ce,ze){var st=function gt(tr){var Or=tr.shift();W.getMediaKeysPromise(Or,ne,ve).then(function(Sr){return Ce({keySystem:Or,mediaKeys:Sr})}).catch(function(Sr){tr.length?gt(tr):Sr instanceof ll?ze(Sr):ze(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_ACCESS,error:Sr,fatal:!0},Sr.message))})};st(L)})}},{key:"requestMediaKeySystemAccess",value:function(L,W){var H=this.config.requestMediaKeySystemAccessFunc;if(!(typeof H=="function")){var Z="Configured requestMediaKeySystemAccess is not a function ".concat(H);return Be===null&&self.location.protocol==="http:"&&(Z="navigator.requestMediaKeySystemAccess is not available over insecure protocol ".concat(location.protocol)),Promise.reject(new Error(Z))}return H(L,W)}},{key:"getMediaKeysPromise",value:function(L,W,H){var Z=this,ne=fe(L,W,H,this.config.drmSystemOptions),ve=this.keySystemAccessPromises[L],Ce=ve==null?void 0:ve.keySystemAccess;if(!Ce){this.log('Requesting encrypted media "'.concat(L,'" key-system access with config: ').concat(JSON.stringify(ne))),Ce=this.requestMediaKeySystemAccess(L,ne);var ze=this.keySystemAccessPromises[L]={keySystemAccess:Ce};return Ce.catch(function(st){Z.log('Failed to obtain access to key-system "'.concat(L,'": ').concat(st))}),Ce.then(function(st){Z.log('Access for key-system "'.concat(st.keySystem,'" obtained'));var gt=Z.fetchServerCertificate(L);return Z.log('Create media-keys for "'.concat(L,'"')),ze.mediaKeys=st.createMediaKeys().then(function(tr){return Z.log('Media-keys created for "'.concat(L,'"')),gt.then(function(Or){return Or?Z.setMediaKeysServerCertificate(tr,L,Or):tr})}),ze.mediaKeys.catch(function(tr){Z.error('Failed to create media-keys for "'.concat(L,'"}: ').concat(tr))}),ze.mediaKeys})}return Ce.then(function(){return ve.mediaKeys})}},{key:"createMediaKeySessionContext",value:function(L){var W=L.decryptdata,H=L.keySystem,Z=L.mediaKeys;this.log('Creating key-system session "'.concat(H,'" keyId: ').concat(Kt.hexDump(W.keyId||[])));var ne=Z.createSession(),ve={decryptdata:W,keySystem:H,mediaKeys:Z,mediaKeysSession:ne,keyStatus:"status-pending"};return this.mediaKeySessions.push(ve),ve}},{key:"renewKeySession",value:function(L){var W=L.decryptdata;if(W.pssh){var H=this.createMediaKeySessionContext(L),Z=this.getKeyIdString(W),ne="cenc";this.keyIdToKeySessionPromise[Z]=this.generateRequestWithPreferredKeySession(H,ne,W.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(L)}},{key:"getKeyIdString",value:function(L){if(!L)throw new Error("Could not read keyId of undefined decryptdata");if(L.keyId===null)throw new Error("keyId is null");return Kt.hexDump(L.keyId)}},{key:"updateKeySession",value:function(L,W){var H,Z=L.mediaKeysSession;return this.log('Updating key-session "'.concat(Z.sessionId,'" for keyID ').concat(Kt.hexDump(((H=L.decryptdata)==null?void 0:H.keyId)||[]),`
} (data length: `).concat(W&&W.byteLength,")")),Z.update(W)}},{key:"selectKeySystemFormat",value:function(L){var W=Object.keys(L.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: ".concat(L.sn," ").concat(L.type,": ").concat(L.level,") key formats ").concat(W.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(W)),this.keyFormatPromise}},{key:"getKeyFormatPromise",value:function(L){var W=this;return new Promise(function(H,Z){var ne=Te(W.config),ve=L.map(Y).filter(function(Ce){return!!Ce&&ne.indexOf(Ce)!==-1});return W.getKeySystemSelectionPromise(ve).then(function(Ce){var ze=Ce.keySystem,st=be(ze);st?H(st):Z(new Error('Unable to find format for key-system "'.concat(ze,'"')))}).catch(Z)})}},{key:"loadKey",value:function(L){var W=this,H=L.keyInfo.decryptdata,Z=this.getKeyIdString(H),ne="(keyId: ".concat(Z,' format: "').concat(H.keyFormat,'" method: ').concat(H.method," uri: ").concat(H.uri,")");this.log("Starting session for key ".concat(ne));var ve=this.keyIdToKeySessionPromise[Z];return ve||(ve=this.keyIdToKeySessionPromise[Z]=this.getKeySystemForKeyPromise(H).then(function(Ce){var ze=Ce.keySystem,st=Ce.mediaKeys;return W.throwIfDestroyed(),W.log("Handle encrypted media sn: ".concat(L.frag.sn," ").concat(L.frag.type,": ").concat(L.frag.level," using key ").concat(ne)),W.attemptSetMediaKeys(ze,st).then(function(){W.throwIfDestroyed();var gt=W.createMediaKeySessionContext({keySystem:ze,mediaKeys:st,decryptdata:H}),tr="cenc";return W.generateRequestWithPreferredKeySession(gt,tr,H.pssh,"playlist-key")})}),ve.catch(function(Ce){return W.handleError(Ce)})),ve}},{key:"throwIfDestroyed",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Invalid state";if(!this.hls)throw new Error("invalid state")}},{key:"handleError",value:function(L){if(!this.hls)return;this.error(L.message),L instanceof ll?this.hls.trigger(w.ERROR,L.data):this.hls.trigger(w.ERROR,{type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_KEYS,error:L,fatal:!0})}},{key:"getKeySystemForKeyPromise",value:function(L){var W=this.getKeyIdString(L),H=this.keyIdToKeySessionPromise[W];if(!H){var Z=Y(L.keyFormat),ne=Z?[Z]:Te(this.config);return this.attemptKeySystemAccess(ne)}return H}},{key:"getKeySystemSelectionPromise",value:function(L){if(L.length||(L=Te(this.config)),L.length===0)throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options ".concat(JSON.stringify({drmSystems:this.config.drmSystems})));return this.attemptKeySystemAccess(L)}},{key:"_onMediaEncrypted",value:function(L){var W=this,H=L.initDataType,Z=L.initData;if(this.debug('"'.concat(L.type,'" event: init data type: "').concat(H,'"')),Z===null)return;var ne,ve;if(H==="sinf"&&this.config.drmSystems[he.FAIRPLAY]){var Ce=_t(new Uint8Array(Z));try{var ze=Ve(JSON.parse(Ce).sinf),st=mn(new Uint8Array(ze));if(!st)return;ne=st.subarray(8,24),ve=he.FAIRPLAY}catch(Zn){this.warn('Failed to parse sinf "encrypted" event message initData');return}}else{var gt=Vr(Z);if(gt===null)return;gt.version===0&&gt.systemId===$.WIDEVINE&&gt.data&&(ne=gt.data.subarray(8,24)),ve=de(gt.systemId)}if(!ve||!ne)return;for(var tr=Kt.hexDump(ne),Or=this.keyIdToKeySessionPromise,Sr=this.mediaKeySessions,Wr=Or[tr],$r=function(){var xi=Sr[Mn],ua=xi.decryptdata;if(ua.pssh||!ua.keyId)return 0;var Gi=Kt.hexDump(ua.keyId);if(tr===Gi||ua.uri.replace(/-/g,"").indexOf(tr)!==-1)return Wr=Or[Gi],delete Or[Gi],ua.pssh=new Uint8Array(Z),ua.keyId=ne,Wr=Or[tr]=Wr.then(function(){return W.generateRequestWithPreferredKeySession(xi,H,Z,"encrypted-event-key-match")}),1},Ln,Mn=0;Mn<Sr.length;Mn++){if(Ln=$r(),Ln===0)continue;if(Ln===1)break}Wr||(Wr=Or[tr]=this.getKeySystemSelectionPromise([ve]).then(function(Zn){var xi=Zn.keySystem,ua=Zn.mediaKeys,Gi;W.throwIfDestroyed();var Zi=new Vt("ISO-23001-7",tr,(Gi=be(xi))!=null?Gi:"");return Zi.pssh=new Uint8Array(Z),Zi.keyId=ne,W.attemptSetMediaKeys(xi,ua).then(function(){W.throwIfDestroyed();var ka=W.createMediaKeySessionContext({decryptdata:Zi,keySystem:xi,mediaKeys:ua});return W.generateRequestWithPreferredKeySession(ka,H,Z,"encrypted-event-no-match")})})),Wr.catch(function(Zn){return W.handleError(Zn)})}},{key:"_onWaitingForKey",value:function(L){this.log('"'.concat(L.type,'" event'))}},{key:"attemptSetMediaKeys",value:function(L,W){var H=this,Z=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'.concat(L,'"'));var ne=Promise.all(Z).then(function(){if(!H.media)throw new Error("Attempted to set mediaKeys without media element attached");return H.media.setMediaKeys(W)});return this.setMediaKeysQueue.push(ne),ne.then(function(){H.log('Media-keys set for "'.concat(L,'"')),Z.push(ne),H.setMediaKeysQueue=H.setMediaKeysQueue.filter(function(ve){return Z.indexOf(ve)===-1})})}},{key:"generateRequestWithPreferredKeySession",value:function(L,W,H,Z){var ne=this,ve,Ce,ze=(ve=this.config.drmSystems)==null||(Ce=ve[L.keySystem])==null?void 0:Ce.generateRequest;if(ze)try{var st=ze.call(this.hls,W,H,L);if(!st)throw new Error("Invalid response from configured generateRequest filter");W=st.initDataType,H=L.decryptdata.pssh=st.initData?new Uint8Array(st.initData):null}catch(Wr){var gt;if(this.warn(Wr.message),(gt=this.hls)!=null&&gt.config.debug)throw Wr}if(H===null)return this.log('Skipping key-session request for "'.concat(Z,'" (no initData)')),Promise.resolve(L);var tr=this.getKeyIdString(L.decryptdata);this.log('Generating key-session request for "'.concat(Z,'": ').concat(tr," (init data type: ").concat(W," length: ").concat(H?H.byteLength:null,")"));var Or=new ds;L.mediaKeysSession.onmessage=function(Wr){var $r=L.mediaKeysSession;if(!$r){Or.emit("error",new Error("invalid state"));return}var Ln=Wr.messageType,Mn=Wr.message;ne.log('"'.concat(Ln,'" message event for session "').concat($r.sessionId,'" message size: ').concat(Mn.byteLength)),Ln==="license-request"||Ln==="license-renewal"?ne.renewLicense(L,Mn).catch(function(Zn){ne.handleError(Zn),Or.emit("error",Zn)}):Ln==="license-release"?L.keySystem===he.FAIRPLAY&&(ne.updateKeySession(L,et("acknowledged")),ne.removeSession(L)):ne.warn('unhandled media key message type "'.concat(Ln,'"'))},L.mediaKeysSession.onkeystatuseschange=function(Wr){var $r=L.mediaKeysSession;if(!$r){Or.emit("error",new Error("invalid state"));return}ne.onKeyStatusChange(L);var Ln=L.keyStatus;Or.emit("keyStatus",Ln),Ln==="expired"&&(ne.warn("".concat(L.keySystem," expired for key ").concat(tr)),ne.renewKeySession(L))};var Sr=new Promise(function(Wr,$r){Or.on("error",$r),Or.on("keyStatus",function(Ln){Ln.startsWith("usable")?Wr():Ln==="output-restricted"?$r(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Ln==="internal-error"?$r(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'.concat(Ln,'"'))):Ln==="expired"?$r(new Error("key expired while generating request")):ne.warn('unhandled key status change "'.concat(Ln,'"'))})});return L.mediaKeysSession.generateRequest(W,H).then(function(){var Wr;ne.log('Request generated for key-session "'.concat((Wr=L.mediaKeysSession)==null?void 0:Wr.sessionId,'" keyId: ').concat(tr))}).catch(function(Wr){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_SESSION,error:Wr,fatal:!1},"Error generating key-session request: ".concat(Wr))}).then(function(){return Sr}).catch(function(Wr){throw Or.removeAllListeners(),ne.removeSession(L),Wr}).then(function(){return Or.removeAllListeners(),L})}},{key:"onKeyStatusChange",value:function(L){var W=this;L.mediaKeysSession.keyStatuses.forEach(function(H,Z){W.log('key status change "'.concat(H,'" for keyStatuses keyId: ').concat(Kt.hexDump("buffer"in Z?new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength):new Uint8Array(Z))," session keyId: ").concat(Kt.hexDump(new Uint8Array(L.decryptdata.keyId||[]))," uri: ").concat(L.decryptdata.uri)),L.keyStatus=H})}},{key:"fetchServerCertificate",value:function(L){var W=this.config,H=W.loader,Z=new H(W),ne=this.getServerCertificateUrl(L);return ne?(this.log('Fetching serverCertificate for "'.concat(L,'"')),new Promise(function(ve,Ce){var ze={responseType:"arraybuffer",url:ne},st=W.certLoadPolicy.default,gt={loadPolicy:st,timeout:st.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},tr={onSuccess:function(Sr,Wr,$r,Ln){ve(Sr.data)},onError:function(Sr,Wr,$r,Ln){Ce(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:$r,response:b({url:ze.url,data:void 0},Sr)},'"'.concat(L,'" certificate request failed (').concat(ne,"). Status: ").concat(Sr.code," (").concat(Sr.text,")")))},onTimeout:function(Sr,Wr,$r){Ce(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:$r,response:{url:ze.url,data:void 0}},'"'.concat(L,'" certificate request timed out (').concat(ne,")")))},onAbort:function(Sr,Wr,$r){Ce(new Error("aborted"))}};Z.load(ze,gt,tr)})):Promise.resolve()}},{key:"setMediaKeysServerCertificate",value:function(L,W,H){var Z=this;return new Promise(function(ne,ve){L.setServerCertificate(H).then(function(Ce){Z.log("setServerCertificate ".concat(Ce?"success":"not supported by CDM"," (").concat(H==null?void 0:H.byteLength,') on "').concat(W,'"')),ne(L)}).catch(function(Ce){ve(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:Ce,fatal:!0},Ce.message))})})}},{key:"renewLicense",value:function(L,W){var H=this;return this.requestLicense(L,new Uint8Array(W)).then(function(Z){return H.updateKeySession(L,new Uint8Array(Z)).catch(function(ne){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:ne,fatal:!0},ne.message)})})}},{key:"setupLicenseXHR",value:function(L,W,H,Z){var ne=this,ve=this.config.licenseXhrSetup;return ve?Promise.resolve().then(function(){if(!H.decryptdata)throw new Error("Key removed");return ve.call(ne.hls,L,W,H,Z)}).catch(function(Ce){if(!H.decryptdata)throw Ce;return L.open("POST",W,!0),ve.call(ne.hls,L,W,H,Z)}).then(function(Ce){L.readyState||L.open("POST",W,!0);var ze=Ce||Z;return{xhr:L,licenseChallenge:ze}}):(L.open("POST",W,!0),Promise.resolve({xhr:L,licenseChallenge:Z}))}},{key:"requestLicense",value:function(L,W){var H=this,Z=this.config.keyLoadPolicy.default;return new Promise(function(ne,ve){var Ce=H.getLicenseServerUrl(L.keySystem);H.log("Sending license request to URL: ".concat(Ce));var ze=new XMLHttpRequest;ze.responseType="arraybuffer",ze.onreadystatechange=function(){if(!H.hls||!L.mediaKeysSession)return ve(new Error("invalid state"));if(ze.readyState===4)if(ze.status===200){H._requestLicenseFailureCount=0;var st=ze.response;H.log("License received ".concat(st instanceof ArrayBuffer?st.byteLength:st));var gt=H.config.licenseResponseCallback;if(gt)try{st=gt.call(H.hls,ze,Ce,L)}catch(Wr){H.error(Wr)}ne(st)}else{var tr=Z.errorRetry,Or=tr?tr.maxNumRetry:0;if(H._requestLicenseFailureCount++,H._requestLicenseFailureCount>Or||ze.status>=400&&ze.status<500)ve(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:ze,response:{url:Ce,data:void 0,code:ze.status,text:ze.statusText}},"License Request XHR failed (".concat(Ce,"). Status: ").concat(ze.status," (").concat(ze.statusText,")")));else{var Sr=Or-H._requestLicenseFailureCount+1;H.warn("Retrying license request, ".concat(Sr," attempts left")),H.requestLicense(L,W).then(ne,ve)}}},L.licenseXhr&&L.licenseXhr.readyState!==XMLHttpRequest.DONE&&L.licenseXhr.abort(),L.licenseXhr=ze,H.setupLicenseXHR(ze,Ce,L,W).then(function(st){var gt=st.xhr,tr=st.licenseChallenge;gt.send(tr)})})}},{key:"onMediaAttached",value:function(L,W){if(!this.config.emeEnabled)return;var H=W.media;this.media=H,H.addEventListener("encrypted",this.onMediaEncrypted),H.addEventListener("waitingforkey",this.onWaitingForKey)}},{key:"onMediaDetached",value:function(){var L=this,W=this.media,H=this.mediaKeySessions;W&&(W.removeEventListener("encrypted",this.onMediaEncrypted),W.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Vt.clearKeyUriToKeyIdMap();var Z=H.length;Ae.CDMCleanupPromise=Promise.all(H.map(function(ne){return L.removeSession(ne)}).concat(W==null?void 0:W.setMediaKeys(null).catch(function(ne){L.log("Could not clear media keys: ".concat(ne,". media.src: ").concat(W==null?void 0:W.src))}))).then(function(){Z&&(L.log("finished closing key sessions and clearing media keys"),H.length=0)}).catch(function(ne){L.log("Could not close sessions and clear media keys: ".concat(ne,". media.src: ").concat(W==null?void 0:W.src))})}},{key:"onManifestLoading",value:function(){this.keyFormatPromise=null}},{key:"onManifestLoaded",value:function(L,W){var H=W.sessionKeys;if(!H||!this.config.emeEnabled)return;if(!this.keyFormatPromise){var Z=H.reduce(function(ne,ve){return ne.indexOf(ve.keyFormat)===-1&&ne.push(ve.keyFormat),ne},[]);this.log("Selecting key-system from session-keys ".concat(Z.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(Z)}}},{key:"removeSession",value:function(L){var W=this,H=L.mediaKeysSession,Z=L.licenseXhr;if(H){this.log("Remove licenses and keys and close session ".concat(H.sessionId)),H.onmessage=null,H.onkeystatuseschange=null,Z&&Z.readyState!==XMLHttpRequest.DONE&&Z.abort(),L.mediaKeysSession=L.decryptdata=L.licenseXhr=void 0;var ne=this.mediaKeySessions.indexOf(L);return ne>-1&&this.mediaKeySessions.splice(ne,1),H.remove().catch(function(ve){W.log("Could not remove session: ".concat(ve))}).then(function(){return H.close()}).catch(function(ve){W.log("Could not close session: ".concat(ve))})}}}]),Ae}();Tl.CDMCleanupPromise=void 0;var ll=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this,H),Z.data=void 0,W.error||(W.error=new Error(H)),Z.data=W,W.err=W.error,Z}return Object(s.a)(L)}(i(Error)),Hl=1,xl={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},xu="h",vu=function(){function Ae(ee){var L=this;Object(r.a)(this,Ae),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(){L.initialized&&(L.starved=!0),L.buffering=!0},this.onPlaying=function(){L.initialized||(L.initialized=!0),L.buffering=!1},this.applyPlaylistData=function(Z){try{L.apply(Z,{ot:xl.MANIFEST,su:!L.initialized})}catch(ne){j.warn("Could not generate manifest CMCD data.",ne)}},this.applyFragmentData=function(Z){try{var ne=Z.frag,ve=L.hls.levels[ne.level],Ce=L.getObjectType(ne),ze={d:ne.duration*1e3,ot:Ce};(Ce===xl.VIDEO||Ce===xl.AUDIO||Ce==xl.MUXED)&&(ze.br=ve.bitrate/1e3,ze.tb=L.getTopBandwidth(Ce)/1e3,ze.bl=L.getBufferLength(Ce)),L.apply(Z,ze)}catch(st){j.warn("Could not generate segment CMCD data.",st)}},this.hls=ee;var W=this.config=ee.config,H=W.cmcd;H!=null&&(W.pLoader=this.createPlaylistLoader(),W.fLoader=this.createFragmentLoader(),this.sid=H.sessionId||Ae.uuid(),this.cid=H.contentId,this.useHeaders=H.useHeaders===!0,this.registerListeners())}return Object(s.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(w.MEDIA_DETACHED,this.onMediaDetached,this),L.on(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(w.MEDIA_DETACHED,this.onMediaDetached,this),L.off(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null}},{key:"onMediaAttached",value:function(L,W){this.media=W.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}},{key:"onMediaDetached",value:function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null}},{key:"onBufferCreated",value:function(L,W){var H,Z;this.audioBuffer=(H=W.tracks.audio)==null?void 0:H.buffer,this.videoBuffer=(Z=W.tracks.video)==null?void 0:Z.buffer}},{key:"createData",value:function(){var L;return{v:Hl,sf:xu,sid:this.sid,cid:this.cid,pr:(L=this.media)==null?void 0:L.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}},{key:"apply",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E(W,this.createData());var H=W.ot===xl.INIT||W.ot===xl.VIDEO||W.ot===xl.MUXED;if(this.starved&&H&&(W.bs=!0,W.su=!0,this.starved=!1),W.su==null&&(W.su=this.buffering),this.useHeaders){var Z=Ae.toHeaders(W);if(!Object.keys(Z).length)return;L.headers||(L.headers={}),E(L.headers,Z)}else{var ne=Ae.toQuery(W);if(!ne)return;L.url=Ae.appendQueryToUri(L.url,ne)}}},{key:"getObjectType",value:function(L){var W=L.type;return W==="subtitle"?xl.TIMED_TEXT:L.sn==="initSegment"?xl.INIT:W==="audio"?xl.AUDIO:W==="main"?this.hls.audioTracks.length?xl.VIDEO:xl.MUXED:void 0}},{key:"getTopBandwidth",value:function(L){var W=0,H,Z=this.hls;if(L===xl.AUDIO)H=Z.audioTracks;else{var ne=Z.maxAutoLevel,ve=ne>-1?ne+1:Z.levels.length;H=Z.levels.slice(0,ve)}var Ce=Object(g.a)(H),ze;try{for(Ce.s();!(ze=Ce.n()).done;){var st=ze.value;st.bitrate>W&&(W=st.bitrate)}}catch(gt){Ce.e(gt)}finally{Ce.f()}return W>0?W:NaN}},{key:"getBufferLength",value:function(L){var W=this.hls.media,H=L===xl.AUDIO?this.audioBuffer:this.videoBuffer;if(!H||!W)return NaN;var Z=Ii.bufferInfo(H,W.currentTime,this.config.maxBufferHole);return Z.len*1e3}},{key:"createPlaylistLoader",value:function(){var L=this.config.pLoader,W=this.applyPlaylistData,H=L||this.config.loader;return function(){function Z(ne){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(ne)}return Object(s.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(ve,Ce,ze){W(ve),this.loader.load(ve,Ce,ze)}}]),Z}()}},{key:"createFragmentLoader",value:function(){var L=this.config.fLoader,W=this.applyFragmentData,H=L||this.config.loader;return function(){function Z(ne){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(ne)}return Object(s.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(ve,Ce,ze){W(ve),this.loader.load(ve,Ce,ze)}}]),Z}()}}],[{key:"uuid",value:function(){var L=URL.createObjectURL(new Blob),W=L.toString();return URL.revokeObjectURL(L),W.slice(W.lastIndexOf("/")+1)}},{key:"serialize",value:function(L){var W=[],H=function(Mn){return!Number.isNaN(Mn)&&Mn!=null&&Mn!==""&&Mn!==!1},Z=function(Mn){return Math.round(Mn)},ne=function(Mn){return Z(Mn/100)*100},ve=function(Mn){return encodeURIComponent(Mn)},Ce={br:Z,d:Z,bl:ne,dl:ne,mtp:ne,nor:ve,rtp:ne,tb:Z},ze=Object.keys(L||{}).sort(),st=Object(g.a)(ze),gt;try{for(st.s();!(gt=st.n()).done;){var tr=gt.value,Or=L[tr];if(!H(Or))continue;if(tr==="v"&&Or===1)continue;if(tr=="pr"&&Or===1)continue;var Sr=Ce[tr];Sr&&(Or=Sr(Or));var Wr=typeof Or,$r=void 0;tr==="ot"||tr==="sf"||tr==="st"?$r="".concat(tr,"=").concat(Or):Wr==="boolean"?$r=tr:Wr==="number"?$r="".concat(tr,"=").concat(Or):$r="".concat(tr,"=").concat(JSON.stringify(Or)),W.push($r)}}catch(Ln){st.e(Ln)}finally{st.f()}return W.join(",")}},{key:"toHeaders",value:function(L){for(var W=Object.keys(L),H={},Z=["Object","Request","Session","Status"],ne=[{},{},{},{}],ve={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},Ce=0,ze=W;Ce<ze.length;Ce++){var st=ze[Ce],gt=ve[st]!=null?ve[st]:1;ne[gt][st]=L[st]}for(var tr=0;tr<ne.length;tr++){var Or=Ae.serialize(ne[tr]);Or&&(H["CMCD-".concat(Z[tr])]=Or)}return H}},{key:"toQuery",value:function(L){return"CMCD=".concat(encodeURIComponent(Ae.serialize(L)))}},{key:"appendQueryToUri",value:function(L,W){if(!W)return L;var H=L.includes("?")?"&":"?";return"".concat(L).concat(H).concat(W)}}]),Ae}(),Au=3e5,Ol=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=ee,this.log=j.log.bind(j,"[content-steering]:"),this.registerListeners()}return Object(s.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.ERROR,this.onError,this)}},{key:"startLoad",value:function(){if(this.started=!0,self.clearTimeout(this.reloadTimer),this.enabled&&this.uri)if(this.updated){var L=Math.max(this.timeToLoad*1e3-(performance.now()-this.updated),0);this.scheduleRefresh(this.uri,L)}else this.loadSteeringManifest(this.uri)}},{key:"stopLoad",value:function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),self.clearTimeout(this.reloadTimer)}},{key:"destroy",value:function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"removeLevel",value:function(L){var W=this.levels;W&&(this.levels=W.filter(function(H){return H!==L}))}},{key:"onManifestLoading",value:function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"onManifestLoaded",value:function(L,W){var H=W.contentSteering;if(H===null)return;this.pathwayId=H.pathwayId,this.uri=H.uri,this.started&&this.startLoad()}},{key:"onManifestParsed",value:function(L,W){this.audioTracks=W.audioTracks,this.subtitleTracks=W.subtitleTracks}},{key:"onError",value:function(L,W){var H=W.errorAction;if((H==null?void 0:H.action)===ra.SendAlternateToPenaltyBox&&H.flags===Nr.MoveAllAlternatesMatchingHost){var Z=this.pathwayPriority,ne=this.pathwayId;this.penalizedPathways[ne]||(this.penalizedPathways[ne]=performance.now()),!Z&&this.levels&&(Z=this.levels.reduce(function(ve,Ce){return ve.indexOf(Ce.pathwayId)===-1&&ve.push(Ce.pathwayId),ve},[])),Z&&Z.length>1&&(this.updatePathwayPriority(Z),H.resolved=this.pathwayId!==ne)}}},{key:"filterParsedLevels",value:function(L){this.levels=L;var W=this.getLevelsForPathway(this.pathwayId);if(W.length===0){var H=L[0].pathwayId;this.log("No levels found in Pathway ".concat(this.pathwayId,'. Setting initial Pathway to "').concat(H,'"')),W=this.getLevelsForPathway(H),this.pathwayId=H}return W.length!==L.length?(this.log("Found ".concat(W.length,"/").concat(L.length,' levels in Pathway "').concat(this.pathwayId,'"')),W):L}},{key:"getLevelsForPathway",value:function(L){return this.levels===null?[]:this.levels.filter(function(W){return L===W.pathwayId})}},{key:"updatePathwayPriority",value:function(L){this.pathwayPriority=L;var W,H=this.penalizedPathways,Z=performance.now();Object.keys(H).forEach(function(gt){Z-H[gt]>Au&&delete H[gt]});for(var ne=0;ne<L.length;ne++){var ve=L[ne];if(H[ve])continue;if(ve===this.pathwayId)return;var Ce=this.hls.nextLoadLevel,ze=this.hls.levels[Ce];if(W=this.getLevelsForPathway(ve),W.length>0){this.log('Setting Pathway to "'.concat(ve,'"')),this.pathwayId=ve,this.hls.trigger(w.LEVELS_UPDATED,{levels:W});var st=this.hls.levels[Ce];ze&&st&&this.levels&&(st.attrs["STABLE-VARIANT-ID"]!==ze.attrs["STABLE-VARIANT-ID"]&&st.bitrate!==ze.bitrate&&this.log("Unstable Pathways change from bitrate ".concat(ze.bitrate," to ").concat(st.bitrate)),this.hls.nextLoadLevel=Ce);break}}}},{key:"clonePathways",value:function(L){var W=this,H=this.levels;if(!H)return;var Z={},ne={};L.forEach(function(ve){var Ce=ve.ID,ze=ve["BASE-ID"],st=ve["URI-REPLACEMENT"];if(H.some(function(tr){return tr.pathwayId===Ce}))return;var gt=W.getLevelsForPathway(ze).map(function(tr){var Or=E({},tr);Or.details=void 0,Or.url=du(tr.uri,tr.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",st);var Sr=new V(tr.attrs);Sr["PATHWAY-ID"]=Ce;var Wr=Sr.AUDIO&&"".concat(Sr.AUDIO,"_clone_").concat(Ce),$r=Sr.SUBTITLES&&"".concat(Sr.SUBTITLES,"_clone_").concat(Ce);Wr&&(Z[Sr.AUDIO]=Wr,Sr.AUDIO=Wr),$r&&(ne[Sr.SUBTITLES]=$r,Sr.SUBTITLES=$r),Or.attrs=Sr;var Ln=new kt(Or);return cn(Ln,"audio",Wr),cn(Ln,"text",$r),Ln});H.push.apply(H,Object(y.a)(gt)),cu(W.audioTracks,Z,st,Ce),cu(W.subtitleTracks,ne,st,Ce)})}},{key:"loadSteeringManifest",value:function(L){var W=this,H=this.hls.config,Z=H.loader;this.loader&&this.loader.destroy(),this.loader=new Z(H);var ne;try{ne=new self.URL(L)}catch(Or){this.enabled=!1,this.log("Failed to parse Steering Manifest URI: ".concat(L));return}if(ne.protocol!=="data:"){var ve=(this.hls.bandwidthEstimate||H.abrEwmaDefaultEstimate)|0;ne.searchParams.set("_HLS_pathway",this.pathwayId),ne.searchParams.set("_HLS_throughput",""+ve)}var Ce={responseType:"json",url:ne.href},ze=H.steeringManifestLoadPolicy.default,st=ze.errorRetry||ze.timeoutRetry||{},gt={loadPolicy:ze,timeout:ze.maxLoadTimeMs,maxRetry:st.maxNumRetry||0,retryDelay:st.retryDelayMs||0,maxRetryDelay:st.maxRetryDelayMs||0},tr={onSuccess:function(Sr,Wr,$r,Ln){W.log('Loaded steering manifest: "'.concat(ne,'"'));var Mn=Sr.data;if(Mn.VERSION!==1){W.log("Steering VERSION ".concat(Mn.VERSION," not supported!"));return}W.updated=performance.now(),W.timeToLoad=Mn.TTL;var Zn=Mn["RELOAD-URI"],xi=Mn["PATHWAY-CLONES"],ua=Mn["PATHWAY-PRIORITY"];if(Zn)try{W.uri=new self.URL(Zn,ne).href}catch(Gi){W.enabled=!1,W.log("Failed to parse Steering Manifest RELOAD-URI: ".concat(Zn));return}W.scheduleRefresh(W.uri||$r.url),xi&&W.clonePathways(xi),ua&&W.updatePathwayPriority(ua)},onError:function(Sr,Wr,$r,Ln){if(W.log("Error loading steering manifest: ".concat(Sr.code," ").concat(Sr.text," (").concat(Wr.url,")")),W.stopLoad(),Sr.code===410){W.enabled=!1,W.log("Steering manifest ".concat(Wr.url," no longer available"));return}var Mn=W.timeToLoad*1e3;if(Sr.code===429){var Zn=W.loader;if(typeof(Zn==null?void 0:Zn.getResponseHeader)=="function"){var xi=Zn.getResponseHeader("Retry-After");xi&&(Mn=parseFloat(xi)*1e3)}W.log("Steering manifest ".concat(Wr.url," rate limited"));return}W.scheduleRefresh(W.uri||Wr.url,Mn)},onTimeout:function(Sr,Wr,$r){W.log("Timeout loading steering manifest (".concat(Wr.url,")")),W.scheduleRefresh(W.uri||Wr.url)}};this.log("Requesting steering manifest: ".concat(ne)),this.loader.load(Ce,gt,tr)}},{key:"scheduleRefresh",value:function(L){var W=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.timeToLoad*1e3;self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout(function(){W.loadSteeringManifest(L)},H)}}]),Ae}();function cu(Ae,ee,L,W){if(!Ae)return;Object.keys(ee).forEach(function(H){var Z=Ae.filter(function(ne){return ne.groupId===H}).map(function(ne){var ve=E({},ne);return ve.details=void 0,ve.attrs=new V(ve.attrs),ve.url=ve.attrs.URI=du(ne.url,ne.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",L),ve.groupId=ve.attrs["GROUP-ID"]=ee[H],ve.attrs["PATHWAY-ID"]=W,ve});Ae.push.apply(Ae,Object(y.a)(Z))})}function du(Ae,ee,L,W){var H=W.HOST,Z=W.PARAMS,ne=W[L],ve;ee&&(ve=ne==null?void 0:ne[ee],ve&&(Ae=ve));var Ce=new self.URL(Ae);return H&&!ve&&(Ce.host=H),Z&&Object.keys(Z).sort().forEach(function(ze){ze&&Ce.searchParams.set(ze,Z[ze])}),Ce.href}var Lu=/^age:\s*[\d.]+\s*$/im,zl=function(){function Ae(ee){Object(r.a)(this,Ae),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=ee&&ee.xhrSetup||null,this.stats=new q,this.retryDelay=0}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null}},{key:"abortInternal",value:function(){var L=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),L&&(L.onreadystatechange=null,L.onprogress=null,L.readyState!==4&&(this.stats.aborted=!0,L.abort()))}},{key:"abort",value:function(){var L;this.abortInternal(),(L=this.callbacks)!=null&&L.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}},{key:"load",value:function(L,W,H){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=L,this.config=W,this.callbacks=H,this.loadInternal()}},{key:"loadInternal",value:function(){var L=this,W=this.config,H=this.context;if(!W)return;var Z=this.loader=new self.XMLHttpRequest,ne=this.stats;ne.loading.first=0,ne.loaded=0,ne.aborted=!1;var ve=this.xhrSetup;ve?Promise.resolve().then(function(){return L.stats.aborted?void 0:ve(Z,H.url)}).catch(function(Ce){return Z.open("GET",H.url,!0),ve(Z,H.url)}).then(function(){if(L.stats.aborted)return;L.openAndSendXhr(Z,H,W)}).catch(function(Ce){L.callbacks.onError({code:Z.status,text:Ce.message},H,Z,ne);return}):this.openAndSendXhr(Z,H,W)}},{key:"openAndSendXhr",value:function(L,W,H){L.readyState||L.open("GET",W.url,!0);var Z=this.context.headers,ne=H.loadPolicy,ve=ne.maxTimeToFirstByteMs,Ce=ne.maxLoadTimeMs;if(Z)for(var ze in Z)L.setRequestHeader(ze,Z[ze]);W.rangeEnd&&L.setRequestHeader("Range","bytes="+W.rangeStart+"-"+(W.rangeEnd-1)),L.onreadystatechange=this.readystatechange.bind(this),L.onprogress=this.loadprogress.bind(this),L.responseType=W.responseType,self.clearTimeout(this.requestTimeout),H.timeout=ve&&C(ve)?ve:Ce,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),H.timeout),L.send()}},{key:"readystatechange",value:function(){var L=this.context,W=this.loader,H=this.stats;if(!L||!W)return;var Z=W.readyState,ne=this.config;if(H.aborted)return;if(Z>=2&&(H.loading.first===0&&(H.loading.first=Math.max(self.performance.now(),H.loading.start),ne.timeout!==ne.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),ne.timeout=ne.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),ne.loadPolicy.maxLoadTimeMs-(H.loading.first-H.loading.start)))),Z===4)){self.clearTimeout(this.requestTimeout),W.onreadystatechange=null,W.onprogress=null;var ve=W.status,Ce=W.responseType!=="text";if(ve>=200&&ve<300&&(Ce&&W.response||W.responseText!==null)){H.loading.end=Math.max(self.performance.now(),H.loading.first);var ze=Ce?W.response:W.responseText,st=W.responseType==="arraybuffer"?ze.byteLength:ze.length;if(H.loaded=H.total=st,H.bwEstimate=H.total*8e3/(H.loading.end-H.loading.first),!this.callbacks)return;var gt=this.callbacks.onProgress;if(gt&&gt(H,L,ze,W),!this.callbacks)return;var tr={url:W.responseURL,data:ze,code:ve};this.callbacks.onSuccess(tr,H,L,W)}else{var Or=ne.loadPolicy.errorRetry,Sr=H.retry;oa(Or,Sr,!1,ve)?this.retry(Or):(j.error("".concat(ve," while loading ").concat(L.url)),this.callbacks.onError({code:ve,text:W.statusText},L,W,H))}}}},{key:"loadtimeout",value:function(){var L,W=(L=this.config)==null?void 0:L.loadPolicy.timeoutRetry,H=this.stats.retry;if(oa(W,H,!0))this.retry(W);else{j.warn("timeout while loading ".concat(this.context.url));var Z=this.callbacks;Z&&(this.abortInternal(),Z.onTimeout(this.stats,this.context,this.loader))}}},{key:"retry",value:function(L){var W=this.context,H=this.stats;this.retryDelay=ki(L,H.retry),H.retry++,j.warn("".concat(status?"HTTP Status "+status:"Timeout"," while loading ").concat(W.url,", retrying ").concat(H.retry,"/").concat(L.maxNumRetry," in ").concat(this.retryDelay,"ms")),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}},{key:"loadprogress",value:function(L){var W=this.stats;W.loaded=L.loaded,L.lengthComputable&&(W.total=L.total)}},{key:"getCacheAge",value:function(){var L=null;if(this.loader&&Lu.test(this.loader.getAllResponseHeaders())){var W=this.loader.getResponseHeader("age");L=W?parseFloat(W):null}return L}},{key:"getResponseHeader",value:function(L){return this.loader&&new RegExp("^".concat(L,":\\s*[\\d.]+\\s*$"),"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(L):null}}]),Ae}();function ru(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(Ae){}return!1}var ou=/(\d+)-(\d+)\/(\d+)/,su=function(){function Ae(ee){Object(r.a)(this,Ae),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=ee.fetchSetup||Zl,this.controller=new self.AbortController,this.stats=new q}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.loader=this.callbacks=null,this.abortInternal()}},{key:"abortInternal",value:function(){var L=this.response;L!=null&&L.ok||(this.stats.aborted=!0,this.controller.abort())}},{key:"abort",value:function(){var L;this.abortInternal(),(L=this.callbacks)!=null&&L.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}},{key:"load",value:function(L,W,H){var Z=this,ne=this.stats;if(ne.loading.start)throw new Error("Loader can only be used once.");ne.loading.start=self.performance.now();var ve=Jl(L,this.controller.signal),Ce=H.onProgress,ze=L.responseType==="arraybuffer",st=ze?"byteLength":"length",gt=W.loadPolicy,tr=gt.maxTimeToFirstByteMs,Or=gt.maxLoadTimeMs;this.context=L,this.config=W,this.callbacks=H,this.request=this.fetchSetup(L,ve),self.clearTimeout(this.requestTimeout),W.timeout=tr&&C(tr)?tr:Or,this.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(ne,L,Z.response)},W.timeout),self.fetch(this.request).then(function(Sr){Z.response=Z.loader=Sr;var Wr=Math.max(self.performance.now(),ne.loading.start);if(self.clearTimeout(Z.requestTimeout),W.timeout=Or,Z.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(ne,L,Z.response)},Or-(Wr-ne.loading.start)),!Sr.ok){var $r=Sr.status,Ln=Sr.statusText;throw new yu(Ln||"fetch, bad network response",$r,Sr)}return ne.loading.first=Wr,ne.total=Ru(Sr.headers)||ne.total,Ce&&C(W.highWaterMark)?Z.loadProgressively(Sr,ne,L,W.highWaterMark,Ce):ze?Sr.arrayBuffer():L.responseType==="json"?Sr.json():Sr.text()}).then(function(Sr){var Wr=Z.response;self.clearTimeout(Z.requestTimeout),ne.loading.end=Math.max(self.performance.now(),ne.loading.first);var $r=Sr[st];$r&&(ne.loaded=ne.total=$r);var Ln={url:Wr.url,data:Sr,code:Wr.status};Ce&&!C(W.highWaterMark)&&Ce(ne,L,Sr,Wr),H.onSuccess(Ln,ne,L,Wr)}).catch(function(Sr){if(self.clearTimeout(Z.requestTimeout),ne.aborted)return;var Wr=Sr&&Sr.code||0,$r=Sr?Sr.message:null;H.onError({code:Wr,text:$r},L,Sr?Sr.details:null,ne)})}},{key:"getCacheAge",value:function(){var L=null;if(this.response){var W=this.response.headers.get("age");L=W?parseFloat(W):null}return L}},{key:"getResponseHeader",value:function(L){return this.response?this.response.headers.get(L):null}},{key:"loadProgressively",value:function(L,W,H){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ne=arguments.length>4?arguments[4]:void 0,ve=new zt,Ce=L.body.getReader(),ze=function st(){return Ce.read().then(function(gt){if(gt.done)return ve.dataLength&&ne(W,H,ve.flush(),L),Promise.resolve(new ArrayBuffer(0));var tr=gt.value,Or=tr.length;return W.loaded+=Or,Or<Z||ve.dataLength?(ve.push(tr),ve.dataLength>=Z&&ne(W,H,ve.flush(),L)):ne(W,H,tr,L),st()}).catch(function(){return Promise.reject()})};return ze()}}]),Ae}();function Jl(Ae,ee){var L={method:"GET",mode:"cors",credentials:"same-origin",signal:ee,headers:new self.Headers(E({},Ae.headers))};return Ae.rangeEnd&&L.headers.set("Range","bytes="+Ae.rangeStart+"-"+String(Ae.rangeEnd-1)),L}function Du(Ae){var ee=ou.exec(Ae);if(ee)return parseInt(ee[2])-parseInt(ee[1])+1}function Ru(Ae){var ee=Ae.get("Content-Range");if(ee){var L=Du(ee);if(C(L))return L}var W=Ae.get("Content-Length");if(W)return parseInt(W)}function Zl(Ae,ee){return new self.Request(Ae.url,ee)}var yu=function(Ae){Object(o.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W),ne.code=void 0,ne.details=void 0,ne.code=H,ne.details=Z,ne}return Object(s.a)(L)}(i(Error)),Su=/\s/,bu={newCue:function(ee,L,W,H){for(var Z=[],ne,ve,Ce,ze,st,gt=self.VTTCue||self.TextTrackCue,tr=0;tr<H.rows.length;tr++)if(ne=H.rows[tr],Ce=!0,ze=0,st="",!ne.isEmpty()){for(var Or,Sr=0;Sr<ne.chars.length;Sr++)Su.test(ne.chars[Sr].uchar)&&Ce?ze++:(st+=ne.chars[Sr].uchar,Ce=!1);ne.cueStartTime=L,L===W&&(W+=1e-4),ze>=16?ze--:ze++;var Wr=jo(st.trim()),$r=Ls(L,W,Wr);ee!=null&&(Or=ee.cues)!=null&&Or.getCueById($r)||(ve=new gt(L,W,Wr),ve.id=$r,ve.line=tr+1,ve.align="left",ve.position=10+Math.min(80,Math.floor(ze*8/32)*10),Z.push(ve))}return ee&&Z.length&&(Z.sort(function(Ln,Mn){return Ln.line==="auto"||Mn.line==="auto"?0:Ln.line>8&&Mn.line>8?Mn.line-Ln.line:Ln.line-Mn.line}),Z.forEach(function(Ln){return yr(ee,Ln)})),Z}},hl={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Dl=b(b({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,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:zl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:go,bufferController:Si,capLevelController:mu,errorController:Er,fpsController:gu,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,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Be,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:hl},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:Infinity,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},nu()),{},{subtitleStreamController:Je,subtitleTrackController:cr,timelineController:$l,audioStreamController:fi,audioTrackController:Mt,emeController:Tl,cmcdController:vu,contentSteeringController:Ol});function nu(){return{cueHandler:bu,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 Nu(Ae,ee){if((ee.liveSyncDurationCount||ee.liveMaxLatencyDurationCount)&&(ee.liveSyncDuration||ee.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(ee.liveMaxLatencyDurationCount!==void 0&&(ee.liveSyncDurationCount===void 0||ee.liveMaxLatencyDurationCount<=ee.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(ee.liveMaxLatencyDuration!==void 0&&(ee.liveSyncDuration===void 0||ee.liveMaxLatencyDuration<=ee.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var L=hu(Ae),W=["manifest","level","frag"],H=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return W.forEach(function(Z){var ne="".concat(Z==="level"?"playlist":Z,"LoadPolicy"),ve=ee[ne]===void 0,Ce=[];H.forEach(function(ze){var st="".concat(Z,"Loading").concat(ze),gt=ee[st];if(gt!==void 0&&ve){Ce.push(st);var tr=L[ne].default;ee[ne]={default:tr};switch(ze){case"TimeOut":tr.maxLoadTimeMs=gt,tr.maxTimeToFirstByteMs=gt;break;case"MaxRetry":tr.errorRetry.maxNumRetry=gt,tr.timeoutRetry.maxNumRetry=gt;break;case"RetryDelay":tr.errorRetry.retryDelayMs=gt,tr.timeoutRetry.retryDelayMs=gt;break;case"MaxRetryTimeout":tr.errorRetry.maxRetryDelayMs=gt,tr.timeoutRetry.maxRetryDelayMs=gt;break}}}),Ce.length&&j.warn('hls.js config: "'.concat(Ce.join('", "'),'" setting(s) are deprecated, use "').concat(ne,'": ').concat(JSON.stringify(ee[ne])))}),b(b({},L),ee)}function hu(Ae){return Ae&&typeof Ae=="object"?Array.isArray(Ae)?Ae.map(hu):Object.keys(Ae).reduce(function(ee,L){return ee[L]=hu(Ae[L]),ee},{}):Ae}function fu(Ae){var ee=Ae.loader;if(ee!==su&&ee!==zl)j.log("[config]: Custom loader detected, cannot enable progressive streaming"),Ae.progressive=!1;else{var L=ru();L&&(Ae.loader=su,Ae.progressive=!0,Ae.enableSoftwareAES=!0,j.log("[config]: Progressive streaming enabled, using FetchLoader"))}}var iu=function(){function Ae(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object(r.a)(this,Ae),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ds,this._autoLevelCapping=void 0,this._maxHdcpLevel=null,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,F(ee.debug||!1,"Hls instance");var L=this.config=Nu(Ae.DefaultConfig,ee);this.userConfig=ee,this._autoLevelCapping=-1,L.progressive&&fu(L);var W=L.abrController,H=L.bufferController,Z=L.capLevelController,ne=L.errorController,ve=L.fpsController,Ce=new ne(this),ze=this.abrController=new W(this),st=this.bufferController=new H(this),gt=this.capLevelController=new Z(this),tr=new ve(this),Or=new Qr(this),Sr=new Yn(this),Wr=L.contentSteeringController,$r=Wr?new Wr(this):null,Ln=this.levelController=new Xr(this,$r),Mn=new Lr(this),Zn=new gi(this.config),xi=this.streamController=new No(this,Mn,Zn);gt.setStreamController(xi),tr.setStreamController(xi);var ua=[Or,Ln,xi];$r&&ua.splice(1,0,$r),this.networkControllers=ua;var Gi=[ze,st,gt,tr,Sr,Mn];this.audioTrackController=this.createController(L.audioTrackController,ua);var Zi=L.audioStreamController;Zi&&ua.push(new Zi(this,Mn,Zn)),this.subtitleTrackController=this.createController(L.subtitleTrackController,ua);var ka=L.subtitleStreamController;ka&&ua.push(new ka(this,Mn,Zn)),this.createController(L.timelineController,Gi),Zn.emeController=this.emeController=this.createController(L.emeController,Gi),this.cmcdController=this.createController(L.cmcdController,Gi),this.latencyController=this.createController(Yt,Gi),this.coreComponents=Gi,ua.push(Ce);var Ga=Ce.onErrorOut;typeof Ga=="function"&&this.on(w.ERROR,Ga,Ce)}return Object(s.a)(Ae,[{key:"createController",value:function(L,W){if(L){var H=new L(this);return W&&W.push(H),H}return null}},{key:"on",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.on(L,W,H)}},{key:"once",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.once(L,W,H)}},{key:"removeAllListeners",value:function(L){this._emitter.removeAllListeners(L)}},{key:"off",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this,Z=arguments.length>3?arguments[3]:void 0;this._emitter.off(L,W,H,Z)}},{key:"listeners",value:function(L){return this._emitter.listeners(L)}},{key:"emit",value:function(L,W,H){return this._emitter.emit(L,W,H)}},{key:"trigger",value:function(L,W){if(this.config.debug)return this.emit(L,L,W);try{return this.emit(L,L,W)}catch(H){j.error("An internal error happened while handling event "+L+'. Error message: "'+H.message+'". Here is a stacktrace:',H),this.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:L,error:H})}return!1}},{key:"listenerCount",value:function(L){return this._emitter.listenerCount(L)}},{key:"destroy",value:function(){j.log("destroy"),this.trigger(w.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(W){return W.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(W){return W.destroy()}),this.coreComponents.length=0;var L=this.config;L.xhrSetup=L.fetchSetup=void 0,this.userConfig=null}},{key:"attachMedia",value:function(L){j.log("attachMedia"),this._media=L,this.trigger(w.MEDIA_ATTACHING,{media:L})}},{key:"detachMedia",value:function(){j.log("detachMedia"),this.trigger(w.MEDIA_DETACHING,void 0),this._media=null}},{key:"loadSource",value:function(L){this.stopLoad();var W=this.media,H=this.url,Z=this.url=v.buildAbsoluteURL(self.location.href,L,{alwaysNormalize:!0});j.log("loadSource:".concat(Z)),W&&H&&(H!==Z||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(W)),this.trigger(w.MANIFEST_LOADING,{url:L})}},{key:"startLoad",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;j.log("startLoad(".concat(L,")")),this.networkControllers.forEach(function(W){W.startLoad(L)})}},{key:"stopLoad",value:function(){j.log("stopLoad"),this.networkControllers.forEach(function(L){L.stopLoad()})}},{key:"swapAudioCodec",value:function(){j.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){j.log("recoverMediaError");var L=this._media;this.detachMedia(),L&&this.attachMedia(L)}},{key:"removeLevel",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.levelController.removeLevel(L,W)}},{key:"levels",get:function(){var L=this.levelController.levels;return L||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(L){j.log("set currentLevel:".concat(L)),this.loadLevel=L,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(L){j.log("set nextLevel:".concat(L)),this.levelController.manualLevel=L,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(L){j.log("set loadLevel:".concat(L)),this.levelController.manualLevel=L}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(L){this.levelController.nextLoadLevel=L}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(L){j.log("set firstLevel:".concat(L)),this.levelController.firstLevel=L}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(L){j.log("set startLevel:".concat(L)),L!==-1&&(L=Math.max(L,this.minAutoLevel)),this.levelController.startLevel=L}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(L){var W=!!L;W!==this.config.capLevelToPlayerSize&&(W?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=W)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(L){this._autoLevelCapping!==L&&(j.log("set autoLevelCapping:".concat(L)),this._autoLevelCapping=L)}},{key:"bandwidthEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimate():NaN}},{key:"ttfbEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(L){Dt.indexOf(L)>-1&&(this._maxHdcpLevel=L)}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var L=this.levels,W=this.config.minAutoBitrate;if(!L)return 0;for(var H=L.length,Z=0;Z<H;Z++)if(L[Z].maxBitrate>=W)return Z;return 0}},{key:"maxAutoLevel",get:function(){var L=this.levels,W=this.autoLevelCapping,H=this.maxHdcpLevel,Z;if(W===-1&&L&&L.length?Z=L.length-1:Z=W,H)for(var ne=Z;ne--;){var ve=L[ne].attrs["HDCP-LEVEL"];if(ve&&ve<=H)return ne}return Z}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(L){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,L)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var L=this.audioTrackController;return L?L.audioTracks:[]}},{key:"audioTrack",get:function(){var L=this.audioTrackController;return L?L.audioTrack:-1},set:function(L){var W=this.audioTrackController;W&&(W.audioTrack=L)}},{key:"subtitleTracks",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTrack:-1},set:function(L){var W=this.subtitleTrackController;W&&(W.subtitleTrack=L)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var L=this.subtitleTrackController;return L?L.subtitleDisplay:!1},set:function(L){var W=this.subtitleTrackController;W&&(W.subtitleDisplay=L)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(L){this.config.lowLatencyMode=L}},{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.4.12"}},{key:"isSupported",value:function(){return Qo()}},{key:"Events",get:function(){return w}},{key:"ErrorTypes",get:function(){return O}},{key:"ErrorDetails",get:function(){return I}},{key:"DefaultConfig",get:function(){return Ae.defaultConfig?Ae.defaultConfig:Dl},set:function(L){Ae.defaultConfig=L}}]),Ae}();iu.defaultConfig=void 0},pmaE:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("IwbS"),m=n("DEFe"),p="__seriesMapHighDown",f="__seriesMapCallKey",d=y.extendChartView({type:"map",render:function(i,t,o,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var u=this.group;if(u.removeAll(),i.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===i.id){var r=this._mapDraw;r&&u.add(r.group)}else if(i.needsDrawMap){var r=this._mapDraw||new m(o,!0);u.add(r.group),r.draw(i,t,o,this,e),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;i.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(i,t,o)},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(i,t,o){var e=i.originalData,u=this.group;e.each(e.mapDimension("value"),function(r,s){if(isNaN(r))return;var c=e.getItemLayout(s);if(!c||!c.point)return;var h=c.point,v=c.offset,A=new S.Circle({style:{fill:i.getData().getVisual("color")},shape:{cx:h[0]+v*9,cy:h[1],r:3},silent:!0,z2:8+(v?0:S.Z2_EMPHASIS_LIFT+1)});if(!v){var b=i.mainSeries.getData(),x=e.getName(s),E=b.indexOfName(x),T=e.getItemModel(s),_=T.getModel("label"),C=T.getModel("emphasis.label"),w=b.getItemGraphicEl(E),O=g.retrieve2(i.getFormattedLabel(E,"normal"),x),I=g.retrieve2(i.getFormattedLabel(E,"emphasis"),O),k=w[p],M=Math.random();if(!k){k=w[p]={};var U=g.curry(l,!0),P=g.curry(l,!1);w.on("mouseover",U).on("mouseout",P).on("emphasis",U).on("normal",P)}w[f]=M,g.extend(k,{recordVersion:M,circle:A,labelModel:_,hoverLabelModel:C,emphasisText:I,normalText:O}),a(k,!1)}u.add(A)})}});function l(i){var t=this[p];t&&t.recordVersion===this[f]&&a(t,i)}function a(i,t){var o=i.circle,e=i.labelModel,u=i.hoverLabelModel,r=i.emphasisText,s=i.normalText;t?(o.style.extendFrom(S.setTextStyle({},u,{text:u.get("show")?r:null},{isRectText:!0,useInsideStyle:!1},!0)),o.__mapOriginalZ2=o.z2,o.z2+=S.Z2_EMPHASIS_LIFT):(S.setTextStyle(o.style,e,{text:e.get("show")?s:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),o.dirty(!1),o.__mapOriginalZ2!=null&&(o.z2=o.__mapOriginalZ2,o.__mapOriginalZ2=null))}R.exports=d},pwpV:function(R,D,n){},pzxd:function(R,D,n){var y=n("bYtY"),g=y.retrieve2,S=y.retrieve3,m=y.each,p=y.normalizeCssArray,f=y.isString,d=y.isObject,l=n("6GrX"),a=n("VpOo"),i=n("Xnb7"),t=n("fW2E"),o=n("gut8"),e=o.ContextCachedBy,u=o.WILL_BE_RESTORED,r=l.DEFAULT_FONT,s={left:1,right:1,center:1},c={top:1,bottom:1,middle:1},h=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],v={},A={};function b(V){return x(V),m(V.rich,x),V}function x(V){if(V){V.font=l.makeFont(V);var Q=V.textAlign;Q==="middle"&&(Q="center"),V.textAlign=Q==null||s[Q]?Q:"left";var G=V.textVerticalAlign||V.textBaseline;G==="center"&&(G="middle"),V.textVerticalAlign=G==null||c[G]?G:"top";var te=V.textPadding;te&&(V.textPadding=p(V.textPadding))}}function E(V,Q,G,te,q,se){te.rich?_(V,Q,G,te,q,se):T(V,Q,G,te,q,se)}function T(V,Q,G,te,q,se){"use strict";var re=I(te),we,Oe=!1,Me=Q.__attrCachedBy===e.PLAIN_TEXT;se!==u?(se&&(we=se.style,Oe=!re&&Me&&we),Q.__attrCachedBy=re?e.NONE:e.PLAIN_TEXT):Me&&(Q.__attrCachedBy=e.NONE);var Qe=te.font||r;(!Oe||Qe!==(we.font||r))&&(Q.font=Qe);var Ve=V.__computedFont;V.__styleFont!==Qe&&(V.__styleFont=Qe,Ve=V.__computedFont=Q.font);var dt=te.textPadding,Fe=te.textLineHeight,ue=V.__textCotentBlock;(!ue||V.__dirtyText)&&(ue=V.__textCotentBlock=l.parsePlainText(G,Ve,dt,Fe,te.truncate));var et=ue.outerHeight,he=ue.lines,J=ue.lineHeight,Y=U(A,V,te,q),$=Y.baseX,de=Y.baseY,be=Y.textAlign||"left",Te=Y.textVerticalAlign;w(Q,te,q,$,de);var Be=l.adjustTextY(de,et,Te),fe=$,xe=Be;if(re||dt){var ke=l.getWidth(G,Ve),nt=ke;dt&&(nt+=dt[1]+dt[3]);var Ct=l.adjustTextX($,nt,be);re&&k(V,Q,te,Ct,Be,nt,et),dt&&(fe=K($,be,dt),xe+=dt[0])}Q.textAlign=be,Q.textBaseline="middle",Q.globalAlpha=te.opacity||1;for(var pt=0;pt<h.length;pt++){var He=h[pt],nr=He[0],ht=He[1],Gt=te[nr];(!Oe||Gt!==we[nr])&&(Q[ht]=t(Q,ht,Gt||He[2]))}xe+=J/2;var pr=te.textStrokeWidth,Qt=Oe?we.textStrokeWidth:null,Ht=!Oe||pr!==Qt,Jt=!Oe||Ht||te.textStroke!==we.textStroke,Ge=X(te.textStroke,pr),pe=F(te.textFill);if(Ge&&(Ht&&(Q.lineWidth=pr),Jt&&(Q.strokeStyle=Ge)),pe&&((!Oe||te.textFill!==we.textFill)&&(Q.fillStyle=pe)),he.length===1)Ge&&Q.strokeText(he[0],fe,xe),pe&&Q.fillText(he[0],fe,xe);else for(var pt=0;pt<he.length;pt++)Ge&&Q.strokeText(he[pt],fe,xe),pe&&Q.fillText(he[pt],fe,xe),xe+=J}function _(V,Q,G,te,q,se){se!==u&&(Q.__attrCachedBy=e.NONE);var re=V.__textCotentBlock;(!re||V.__dirtyText)&&(re=V.__textCotentBlock=l.parseRichText(G,te)),C(V,Q,re,te,q)}function C(V,Q,G,te,q){var se=G.width,re=G.outerWidth,we=G.outerHeight,Oe=te.textPadding,Me=U(A,V,te,q),Qe=Me.baseX,Ve=Me.baseY,dt=Me.textAlign,Fe=Me.textVerticalAlign;w(Q,te,q,Qe,Ve);var ue=l.adjustTextX(Qe,re,dt),et=l.adjustTextY(Ve,we,Fe),he=ue,J=et;Oe&&(he+=Oe[3],J+=Oe[0]);var Y=he+se;I(te)&&k(V,Q,te,ue,et,re,we);for(var $=0;$<G.lines.length;$++){for(var de=G.lines[$],be=de.tokens,Te=be.length,Be=de.lineHeight,fe=de.width,xe=0,ke=he,nt=Y,Ct=Te-1,pt;xe<Te&&(pt=be[xe],!pt.textAlign||pt.textAlign==="left");)O(V,Q,pt,te,Be,J,ke,"left"),fe-=pt.width,ke+=pt.width,xe++;for(;Ct>=0&&(pt=be[Ct],pt.textAlign==="right");)O(V,Q,pt,te,Be,J,nt,"right"),fe-=pt.width,nt-=pt.width,Ct--;for(ke+=(se-(ke-he)-(Y-nt)-fe)/2;xe<=Ct;)pt=be[xe],O(V,Q,pt,te,Be,J,ke+pt.width/2,"center"),ke+=pt.width,xe++;J+=Be}}function w(V,Q,G,te,q){if(G&&Q.textRotation){var se=Q.textOrigin;se==="center"?(te=G.width/2+G.x,q=G.height/2+G.y):se&&(te=se[0]+G.x,q=se[1]+G.y),V.translate(te,q),V.rotate(-Q.textRotation),V.translate(-te,-q)}}function O(V,Q,G,te,q,se,re,we){var Oe=te.rich[G.styleName]||{};Oe.text=G.text;var Me=G.textVerticalAlign,Qe=se+q/2;Me==="top"?Qe=se+G.height/2:Me==="bottom"&&(Qe=se+q-G.height/2),!G.isLineHolder&&I(Oe)&&k(V,Q,Oe,we==="right"?re-G.width:we==="center"?re-G.width/2:re,Qe-G.height/2,G.width,G.height);var Ve=G.textPadding;Ve&&(re=K(re,we,Ve),Qe-=G.height/2-Ve[2]-G.textHeight/2),P(Q,"shadowBlur",S(Oe.textShadowBlur,te.textShadowBlur,0)),P(Q,"shadowColor",Oe.textShadowColor||te.textShadowColor||"transparent"),P(Q,"shadowOffsetX",S(Oe.textShadowOffsetX,te.textShadowOffsetX,0)),P(Q,"shadowOffsetY",S(Oe.textShadowOffsetY,te.textShadowOffsetY,0)),P(Q,"textAlign",we),P(Q,"textBaseline","middle"),P(Q,"font",G.font||r);var dt=X(Oe.textStroke||te.textStroke,ue),Fe=F(Oe.textFill||te.textFill),ue=g(Oe.textStrokeWidth,te.textStrokeWidth);dt&&(P(Q,"lineWidth",ue),P(Q,"strokeStyle",dt),Q.strokeText(G.text,re,Qe)),Fe&&(P(Q,"fillStyle",Fe),Q.fillText(G.text,re,Qe))}function I(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function k(V,Q,G,te,q,se,re){var we=G.textBackgroundColor,Oe=G.textBorderWidth,Me=G.textBorderColor,Qe=f(we);if(P(Q,"shadowBlur",G.textBoxShadowBlur||0),P(Q,"shadowColor",G.textBoxShadowColor||"transparent"),P(Q,"shadowOffsetX",G.textBoxShadowOffsetX||0),P(Q,"shadowOffsetY",G.textBoxShadowOffsetY||0),Qe||Oe&&Me){Q.beginPath();var Ve=G.textBorderRadius;Ve?a.buildPath(Q,{x:te,y:q,width:se,height:re,r:Ve}):Q.rect(te,q,se,re),Q.closePath()}if(Qe)if(P(Q,"fillStyle",we),G.fillOpacity!=null){var dt=Q.globalAlpha;Q.globalAlpha=G.fillOpacity*G.opacity,Q.fill(),Q.globalAlpha=dt}else Q.fill();else if(d(we)){var Fe=we.image;Fe=i.createOrUpdateImage(Fe,null,V,M,we),Fe&&i.isImageReady(Fe)&&Q.drawImage(Fe,te,q,se,re)}if(Oe&&Me)if(P(Q,"lineWidth",Oe),P(Q,"strokeStyle",Me),G.strokeOpacity!=null){var dt=Q.globalAlpha;Q.globalAlpha=G.strokeOpacity*G.opacity,Q.stroke(),Q.globalAlpha=dt}else Q.stroke()}function M(V,Q){Q.image=V}function U(V,Q,G,te){var q=G.x||0,se=G.y||0,re=G.textAlign,we=G.textVerticalAlign;if(te){var Oe=G.textPosition;if(Oe instanceof Array)q=te.x+j(Oe[0],te.width),se=te.y+j(Oe[1],te.height);else{var Me=Q&&Q.calculateTextPosition?Q.calculateTextPosition(v,G,te):l.calculateTextPosition(v,G,te);q=Me.x,se=Me.y,re=re||Me.textAlign,we=we||Me.textVerticalAlign}var Qe=G.textOffset;Qe&&(q+=Qe[0],se+=Qe[1])}return V=V||{},V.baseX=q,V.baseY=se,V.textAlign=re,V.textVerticalAlign=we,V}function P(V,Q,G){return V[Q]=t(V,Q,G),V[Q]}function X(V,Q){return V==null||Q<=0||V==="transparent"||V==="none"?null:V.image||V.colorStops?"#000":V}function F(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function j(V,Q){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*Q:parseFloat(V):V}function K(V,Q,G){return Q==="right"?V-G[1]:Q==="center"?V+G[3]/2-G[1]/2:V+G[3]}function z(V,Q){return V!=null&&(V||Q.textBackgroundColor||Q.textBorderWidth&&Q.textBorderColor||Q.textPadding)}D.normalizeTextStyle=b,D.renderText=E,D.getBoxPosition=U,D.getStroke=X,D.getFill=F,D.parsePercent=j,D.needDrawText=z},"q/+u":function(R,D,n){var y=n("ProS"),g=n("9wZj"),S=n("yWXo"),m=n("h8O9");y.extendChartView({type:"scatter",render:function(p,f,d){var l=p.getData(),a=this._updateSymbolDraw(l,p);a.updateData(l,{clipShape:this._getClipShape(p)}),this._finished=!0},incrementalPrepareRender:function(p,f,d){var l=p.getData(),a=this._updateSymbolDraw(l,p);a.incrementalPrepareUpdate(l),this._finished=!1},incrementalRender:function(p,f,d){this._symbolDraw.incrementalUpdate(p,f.getData(),{clipShape:this._getClipShape(f)}),this._finished=p.end===f.getData().count()},updateTransform:function(p,f,d){var l=p.getData();if(this.group.dirty(),!this._finished||l.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=m().reset(p);a.progress&&a.progress({start:0,end:l.count()},l),this._symbolDraw.updateLayout(l)},_getClipShape:function(p){var f=p.coordinateSystem,d=f&&f.getArea&&f.getArea();return p.get("clip",!0)?d:null},_updateSymbolDraw:function(p,f){var d=this._symbolDraw,l=f.pipelineContext,a=l.large;return(!d||a!==this._isLargeDraw)&&(d&&d.remove(),d=this._symbolDraw=a?new S:new g,this._isLargeDraw=a,this.group.removeAll()),this.group.add(d.group),d},remove:function(p,f){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(R,D){var n=["lineStyle","normal","opacity"],y={seriesType:"parallel",reset:function(g,S,m){var p=g.getModel("itemStyle"),f=g.getModel("lineStyle"),d=S.get("color"),l=f.get("color")||p.get("color")||d[g.seriesIndex%d.length],a=g.get("inactiveOpacity"),i=g.get("activeOpacity"),t=g.getModel("lineStyle").getLineStyle(),o=g.coordinateSystem,e=g.getData(),u={normal:t.opacity,active:i,inactive:a};e.setVisual("color",l);function r(s,c){o.eachActiveState(c,function(h,v){var A=u[h];if(h==="normal"&&c.hasItemOption){var b=c.getItemModel(v).get(n,!0);b!=null&&(A=b)}c.setItemVisual(v,"opacity",A)},s.start,s.end)}return{progress:r}}};R.exports=y},q4HE:function(R,D){var n="\\ud800-\\udfff",y="\\u0300-\\u036f",g="\\ufe20-\\ufe2f",S="\\u20d0-\\u20ff",m=y+g+S,p="\\ufe0e\\ufe0f",f="["+n+"]",d="["+m+"]",l="\\ud83c[\\udffb-\\udfff]",a="(?:"+d+"|"+l+")",i="[^"+n+"]",t="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",u=a+"?",r="["+p+"]?",s="(?:"+e+"(?:"+[i,t,o].join("|")+")"+r+u+")*",c=r+u+s,h="(?:"+[i+d+"?",d,t,o,f].join("|")+")",v=RegExp(l+"(?="+l+")|"+h+c,"g");function A(b){for(var x=v.lastIndex=0;v.test(b);)++x;return x}R.exports=A},q7KB:function(R,D,n){},qBft:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.AnsiX923={pad:function(S,m){var p=S.sigBytes,f=m*4,d=f-p%f,l=p+d-1;S.clamp(),S.words[l>>>2]|=d<<24-l%4*8,S.sigBytes+=d},unpad:function(S){var m=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=m}},y.pad.Ansix923})},qH13:function(R,D,n){var y=n("ItGF"),g=n("QBsz"),S=g.applyTransform,m=n("mFDi"),p=n("Qe9p"),f=n("6GrX"),d=n("pzxd"),l=n("ni6a"),a=n("Gev7"),i=n("Dagg"),t=n("dqUG"),o=n("y+Vt"),e=n("IMiH"),u=n("QuXc"),r=n("06Qe"),s=e.CMD,c=Math.round,h=Math.sqrt,v=Math.abs,A=Math.cos,b=Math.sin,x=Math.max;if(!y.canvasSupported){var E=",",T="progid:DXImageTransform.Microsoft",_=21600,C=_/2,w=1e5,O=1e3,I=function(de){de.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",de.coordsize=_+","+_,de.coordorigin="0,0"},k=function(de){return String(de).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},M=function(de,be,Te){return"rgb("+[de,be,Te].join(",")+")"},U=function(de,be){be&&de&&be.parentNode!==de&&de.appendChild(be)},P=function(de,be){be&&de&&be.parentNode===de&&de.removeChild(be)},X=function(de,be,Te){return(parseFloat(de)||0)*w+(parseFloat(be)||0)*O+Te},F=d.parsePercent,j=function(de,be,Te){var Be=p.parse(be);Te=+Te,isNaN(Te)&&(Te=1),Be&&(de.color=M(Be[0],Be[1],Be[2]),de.opacity=Te*Be[3])},K=function(de){var be=p.parse(de);return[M(be[0],be[1],be[2]),be[3]]},z=function(de,be,Te){var Be=be.fill;if(Be!=null)if(Be instanceof u){var fe,xe=0,ke=[0,0],nt=0,Ct=1,pt=Te.getBoundingRect(),He=pt.width,nr=pt.height;if(Be.type==="linear"){fe="gradient";var ht=Te.transform,Gt=[Be.x*He,Be.y*nr],pr=[Be.x2*He,Be.y2*nr];ht&&(S(Gt,Gt,ht),S(pr,pr,ht));var Qt=pr[0]-Gt[0],Ht=pr[1]-Gt[1];xe=Math.atan2(Qt,Ht)*180/Math.PI,xe<0&&(xe+=360),xe<1e-6&&(xe=0)}else{fe="gradientradial";var Gt=[Be.x*He,Be.y*nr],ht=Te.transform,Jt=Te.scale,Ge=He,pe=nr;ke=[(Gt[0]-pt.x)/Ge,(Gt[1]-pt.y)/pe],ht&&S(Gt,Gt,ht),Ge/=Jt[0]*_,pe/=Jt[1]*_;var oe=x(Ge,pe);nt=2*0/oe,Ct=2*Be.r/oe-nt}var ct=Be.colorStops.slice();ct.sort(function(mt,lt){return mt.offset-lt.offset});for(var qe=ct.length,me=[],Kt=[],vr=0;vr<qe;vr++){var bt=ct[vr],or=K(bt.color);Kt.push(bt.offset*Ct+nt+" "+or[0]),(vr===0||vr===qe-1)&&me.push(or)}if(qe>=2){var _t=me[0][0],jt=me[1][0],ut=me[0][1]*be.opacity,St=me[1][1]*be.opacity;de.type=fe,de.method="none",de.focus="100%",de.angle=xe,de.color=_t,de.color2=jt,de.colors=Kt.join(","),de.opacity=St,de.opacity2=ut}fe==="radial"&&(de.focusposition=ke.join(","))}else j(de,Be,be.opacity)},V=function(de,be){be.lineDash&&(de.dashstyle=be.lineDash.join(" ")),be.stroke!=null&&!(be.stroke instanceof u)&&j(de,be.stroke,be.opacity)},Q=function(de,be,Te,Be){var fe=be==="fill",xe=de.getElementsByTagName(be)[0];Te[be]!=null&&Te[be]!=="none"&&(fe||!fe&&Te.lineWidth)?(de[fe?"filled":"stroked"]="true",Te[be]instanceof u&&P(de,xe),xe||(xe=r.createNode(be)),fe?z(xe,Te,Be):V(xe,Te),U(de,xe)):(de[fe?"filled":"stroked"]="false",P(de,xe))},G=[[],[],[]],te=function(de,be){var Te=s.M,Be=s.C,fe=s.L,xe=s.A,ke=s.Q,nt=[],Ct,pt,He,nr,ht,Gt,pr=de.data,Qt=de.len();for(nr=0;nr<Qt;){He=pr[nr++],pt="",Ct=0;switch(He){case Te:pt=" m ",Ct=1,ht=pr[nr++],Gt=pr[nr++],G[0][0]=ht,G[0][1]=Gt;break;case fe:pt=" l ",Ct=1,ht=pr[nr++],Gt=pr[nr++],G[0][0]=ht,G[0][1]=Gt;break;case ke:case Be:pt=" c ",Ct=3;var Ht=pr[nr++],Jt=pr[nr++],Ge=pr[nr++],pe=pr[nr++],oe,ct;He===ke?(oe=Ge,ct=pe,Ge=(Ge+2*Ht)/3,pe=(pe+2*Jt)/3,Ht=(ht+2*Ht)/3,Jt=(Gt+2*Jt)/3):(oe=pr[nr++],ct=pr[nr++]),G[0][0]=Ht,G[0][1]=Jt,G[1][0]=Ge,G[1][1]=pe,G[2][0]=oe,G[2][1]=ct,ht=oe,Gt=ct;break;case xe:var qe=0,me=0,Kt=1,vr=1,bt=0;be&&(qe=be[4],me=be[5],Kt=h(be[0]*be[0]+be[1]*be[1]),vr=h(be[2]*be[2]+be[3]*be[3]),bt=Math.atan2(-be[1]/vr,be[0]/Kt));var or=pr[nr++],_t=pr[nr++],jt=pr[nr++],ut=pr[nr++],St=pr[nr++]+bt,mt=pr[nr++]+St+bt;nr++;var lt=pr[nr++],tt=or+A(St)*jt,Cr=_t+b(St)*ut,Ht=or+A(mt)*jt,Jt=_t+b(mt)*ut,nn=lt?" wa ":" at ";Math.abs(tt-Ht)<1e-4&&(Math.abs(mt-St)>.01?lt&&(tt+=270/_):Math.abs(Cr-_t)<1e-4?lt&&tt<or||!lt&&tt>or?Jt-=270/_:Jt+=270/_:lt&&Cr<_t||!lt&&Cr>_t?Ht+=270/_:Ht-=270/_),nt.push(nn,c(((or-jt)*Kt+qe)*_-C),E,c(((_t-ut)*vr+me)*_-C),E,c(((or+jt)*Kt+qe)*_-C),E,c(((_t+ut)*vr+me)*_-C),E,c((tt*Kt+qe)*_-C),E,c((Cr*vr+me)*_-C),E,c((Ht*Kt+qe)*_-C),E,c((Jt*vr+me)*_-C)),ht=Ht,Gt=Jt;break;case s.R:var mn=G[0],Bn=G[1];mn[0]=pr[nr++],mn[1]=pr[nr++],Bn[0]=mn[0]+pr[nr++],Bn[1]=mn[1]+pr[nr++],be&&(S(mn,mn,be),S(Bn,Bn,be)),mn[0]=c(mn[0]*_-C),Bn[0]=c(Bn[0]*_-C),mn[1]=c(mn[1]*_-C),Bn[1]=c(Bn[1]*_-C),nt.push(" m ",mn[0],E,mn[1]," l ",Bn[0],E,mn[1]," l ",Bn[0],E,Bn[1]," l ",mn[0],E,Bn[1]);break;case s.Z:nt.push(" x ")}if(Ct>0){nt.push(pt);for(var oi=0;oi<Ct;oi++){var wn=G[oi];be&&S(wn,wn,be),nt.push(c(wn[0]*_-C),E,c(wn[1]*_-C),oi<Ct-1?E:"")}}}return nt.join("")};o.prototype.brushVML=function($){var de=this.style,be=this._vmlEl;be||(be=r.createNode("shape"),I(be),this._vmlEl=be),Q(be,"fill",de,this),Q(be,"stroke",de,this);var Te=this.transform,Be=Te!=null,fe=be.getElementsByTagName("stroke")[0];if(fe){var xe=de.lineWidth;if(Be&&!de.strokeNoScale){var ke=Te[0]*Te[3]-Te[1]*Te[2];xe*=h(v(ke))}fe.weight=xe+"px"}var nt=this.path||(this.path=new e);this.__dirtyPath&&(nt.beginPath(),nt.subPixelOptimize=!1,this.buildPath(nt,this.shape),nt.toStatic(),this.__dirtyPath=!1),be.path=te(nt,this.transform),be.style.zIndex=X(this.zlevel,this.z,this.z2),U($,be),de.text!=null?this.drawRectText($,this.getBoundingRect()):this.removeRectText($)},o.prototype.onRemove=function($){P($,this._vmlEl),this.removeRectText($)},o.prototype.onAdd=function($){U($,this._vmlEl),this.appendRectText($)};var q=function(de){return typeof de=="object"&&de.tagName&&de.tagName.toUpperCase()==="IMG"};i.prototype.brushVML=function($){var de=this.style,be=de.image,Te,Be;if(q(be)){var fe=be.src;if(fe===this._imageSrc)Te=this._imageWidth,Be=this._imageHeight;else{var xe=be.runtimeStyle,ke=xe.width,nt=xe.height;xe.width="auto",xe.height="auto",Te=be.width,Be=be.height,xe.width=ke,xe.height=nt,this._imageSrc=fe,this._imageWidth=Te,this._imageHeight=Be}be=fe}else be===this._imageSrc&&(Te=this._imageWidth,Be=this._imageHeight);if(!be)return;var Ct=de.x||0,pt=de.y||0,He=de.width,nr=de.height,ht=de.sWidth,Gt=de.sHeight,pr=de.sx||0,Qt=de.sy||0,Ht=ht&&Gt,Jt=this._vmlEl;Jt||(Jt=r.doc.createElement("div"),I(Jt),this._vmlEl=Jt);var Ge=Jt.style,pe=!1,oe,ct=1,qe=1;if(this.transform&&(oe=this.transform,ct=h(oe[0]*oe[0]+oe[1]*oe[1]),qe=h(oe[2]*oe[2]+oe[3]*oe[3]),pe=oe[1]||oe[2]),pe){var me=[Ct,pt],Kt=[Ct+He,pt],vr=[Ct,pt+nr],bt=[Ct+He,pt+nr];S(me,me,oe),S(Kt,Kt,oe),S(vr,vr,oe),S(bt,bt,oe);var or=x(me[0],Kt[0],vr[0],bt[0]),_t=x(me[1],Kt[1],vr[1],bt[1]),jt=[];jt.push("M11=",oe[0]/ct,E,"M12=",oe[2]/qe,E,"M21=",oe[1]/ct,E,"M22=",oe[3]/qe,E,"Dx=",c(Ct*ct+oe[4]),E,"Dy=",c(pt*qe+oe[5])),Ge.padding="0 "+c(or)+"px "+c(_t)+"px 0",Ge.filter=T+".Matrix("+jt.join("")+", SizingMethod=clip)"}else oe&&(Ct=Ct*ct+oe[4],pt=pt*qe+oe[5]),Ge.filter="",Ge.left=c(Ct)+"px",Ge.top=c(pt)+"px";var ut=this._imageEl,St=this._cropEl;ut||(ut=r.doc.createElement("div"),this._imageEl=ut);var mt=ut.style;if(Ht){if(Te&&Be)mt.width=c(ct*Te*He/ht)+"px",mt.height=c(qe*Be*nr/Gt)+"px";else{var lt=new Image,tt=this;lt.onload=function(){lt.onload=null,Te=lt.width,Be=lt.height,mt.width=c(ct*Te*He/ht)+"px",mt.height=c(qe*Be*nr/Gt)+"px",tt._imageWidth=Te,tt._imageHeight=Be,tt._imageSrc=be},lt.src=be}St||(St=r.doc.createElement("div"),St.style.overflow="hidden",this._cropEl=St);var Cr=St.style;Cr.width=c((He+pr*He/ht)*ct),Cr.height=c((nr+Qt*nr/Gt)*qe),Cr.filter=T+".Matrix(Dx="+-pr*He/ht*ct+",Dy="+-Qt*nr/Gt*qe+")",St.parentNode||Jt.appendChild(St),ut.parentNode!==St&&St.appendChild(ut)}else mt.width=c(ct*He)+"px",mt.height=c(qe*nr)+"px",Jt.appendChild(ut),St&&St.parentNode&&(Jt.removeChild(St),this._cropEl=null);var nn="",mn=de.opacity;mn<1&&(nn+=".Alpha(opacity="+c(mn*100)+") "),nn+=T+".AlphaImageLoader(src="+be+", SizingMethod=scale)",mt.filter=nn,Jt.style.zIndex=X(this.zlevel,this.z,this.z2),U($,Jt),de.text!=null&&this.drawRectText($,this.getBoundingRect())},i.prototype.onRemove=function($){P($,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText($)},i.prototype.onAdd=function($){U($,this._vmlEl),this.appendRectText($)};var se="normal",re={},we=0,Oe=100,Me=document.createElement("div"),Qe=function(de){var be=re[de];if(!be){we>Oe&&(we=0,re={});var Te=Me.style,Be;try{Te.font=de,Be=Te.fontFamily.split(",")[0]}catch(fe){}be={style:Te.fontStyle||se,variant:Te.fontVariant||se,weight:Te.fontWeight||se,size:parseFloat(Te.fontSize||12)|0,family:Be||"Microsoft YaHei"},re[de]=be,we++}return be},Ve;f.$override("measureText",function($,de){var be=r.doc;Ve||(Ve=be.createElement("div"),Ve.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",r.doc.body.appendChild(Ve));try{Ve.style.font=de}catch(Te){}return Ve.innerHTML="",Ve.appendChild(be.createTextNode($)),{width:Ve.offsetWidth}});for(var dt=new m,Fe=function(de,be,Te,Be){var fe=this.style;this.__dirty&&d.normalizeTextStyle(fe,!0);var xe=fe.text;if(xe!=null&&(xe+=""),!xe)return;if(fe.rich){var ke=f.parseRichText(xe,fe);xe=[];for(var nt=0;nt<ke.lines.length;nt++){for(var Ct=ke.lines[nt].tokens,pt=[],He=0;He<Ct.length;He++)pt.push(Ct[He].text);xe.push(pt.join(""))}xe=xe.join(`
`)}var nr,ht,Gt=fe.textAlign,pr=fe.textVerticalAlign,Qt=Qe(fe.font),Ht=Qt.style+" "+Qt.variant+" "+Qt.weight+" "+Qt.size+'px "'+Qt.family+'"';Te=Te||f.getBoundingRect(xe,Ht,Gt,pr,fe.textPadding,fe.textLineHeight);var Jt=this.transform;if(Jt&&!Be&&(dt.copy(be),dt.applyTransform(Jt),be=dt),Be)nr=be.x,ht=be.y;else{var Ge=fe.textPosition;if(Ge instanceof Array)nr=be.x+F(Ge[0],be.width),ht=be.y+F(Ge[1],be.height),Gt=Gt||"left";else{var pe=this.calculateTextPosition?this.calculateTextPosition({},fe,be):f.calculateTextPosition({},fe,be);nr=pe.x,ht=pe.y,Gt=Gt||pe.textAlign,pr=pr||pe.textVerticalAlign}}nr=f.adjustTextX(nr,Te.width,Gt),ht=f.adjustTextY(ht,Te.height,pr),ht+=Te.height/2;var oe=r.createNode,ct=this._textVmlEl,qe,me,Kt;ct?(Kt=ct.firstChild,qe=Kt.nextSibling,me=qe.nextSibling):(ct=oe("line"),qe=oe("path"),me=oe("textpath"),Kt=oe("skew"),me.style["v-text-align"]="left",I(ct),qe.textpathok=!0,me.on=!0,ct.from="0 0",ct.to="1000 0.05",U(ct,Kt),U(ct,qe),U(ct,me),this._textVmlEl=ct);var vr=[nr,ht],bt=ct.style;Jt&&Be?(S(vr,vr,Jt),Kt.on=!0,Kt.matrix=Jt[0].toFixed(3)+E+Jt[2].toFixed(3)+E+Jt[1].toFixed(3)+E+Jt[3].toFixed(3)+",0,0",Kt.offset=(c(vr[0])||0)+","+(c(vr[1])||0),Kt.origin="0 0",bt.left="0px",bt.top="0px"):(Kt.on=!1,bt.left=c(nr)+"px",bt.top=c(ht)+"px"),me.string=k(xe);try{me.style.font=Ht}catch(or){}Q(ct,"fill",{fill:fe.textFill,opacity:fe.opacity},this),Q(ct,"stroke",{stroke:fe.textStroke,opacity:fe.opacity,lineDash:fe.lineDash||null},this),ct.style.zIndex=X(this.zlevel,this.z,this.z2),U(de,ct)},ue=function(de){P(de,this._textVmlEl),this._textVmlEl=null},et=function(de){U(de,this._textVmlEl)},he=[l,a,i,o,t],J=0;J<he.length;J++){var Y=he[J].prototype;Y.drawRectText=Fe,Y.removeRectText=ue,Y.appendRectText=et}t.prototype.brushVML=function($){var de=this.style;de.text!=null?this.drawRectText($,{x:de.x||0,y:de.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText($)},t.prototype.onRemove=function($){this.removeRectText($)},t.prototype.onAdd=function($){this.appendRectText($)}}},qJCg:function(R,D,n){var y=n("BlVb"),g=n("mFDi"),S=n("IwbS"),m=S.linePolygonIntersect,p={lineX:f(0),lineY:f(1),rect:{point:function(a,i,t){return a&&t.boundingRect.contain(a[0],a[1])},rect:function(a,i,t){return a&&t.boundingRect.intersect(a)}},polygon:{point:function(a,i,t){return a&&t.boundingRect.contain(a[0],a[1])&&y.contain(t.range,a[0],a[1])},rect:function(a,i,t){var o=t.range;if(!a||o.length<=1)return!1;var e=a.x,u=a.y,r=a.width,s=a.height,c=o[0];if(y.contain(o,e,u)||y.contain(o,e+r,u)||y.contain(o,e,u+s)||y.contain(o,e+r,u+s)||g.create(a).contain(c[0],c[1])||m(e,u,e+r,u,o)||m(e,u,e,u+s,o)||m(e+r,u,e+r,u+s,o)||m(e,u+s,e+r,u+s,o))return!0}}};function f(a){var i=["x","y"],t=["width","height"];return{point:function(o,e,u){if(o){var r=u.range,s=o[a];return d(s,r)}},rect:function(o,e,u){if(o){var r=u.range,s=[o[i[a]],o[i[a]]+o[t[a]]];return s[1]<s[0]&&s.reverse(),d(s[0],r)||d(s[1],r)||d(r[0],s)||d(r[1],s)}}}}function d(a,i){return i[0]<=a&&a<=i[1]}var l=p;R.exports=l},qM6L:function(R,D,n){(function(y,g){R.exports=D=g(n("Ib8C"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.WordArray,p=g.enc,f=p.Utf16=p.Utf16BE={stringify:function(a){for(var i=a.words,t=a.sigBytes,o=[],e=0;e<t;e+=2){var u=i[e>>>2]>>>16-e%4*8&65535;o.push(String.fromCharCode(u))}return o.join("")},parse:function(a){for(var i=a.length,t=[],o=0;o<i;o++)t[o>>>1]|=a.charCodeAt(o)<<16-o%2*16;return m.create(t,i*2)}};p.Utf16LE={stringify:function(a){for(var i=a.words,t=a.sigBytes,o=[],e=0;e<t;e+=2){var u=d(i[e>>>2]>>>16-e%4*8&65535);o.push(String.fromCharCode(u))}return o.join("")},parse:function(a){for(var i=a.length,t=[],o=0;o<i;o++)t[o>>>1]|=d(a.charCodeAt(o)<<16-o%2*16);return m.create(t,i*2)}};function d(l){return l<<8&4278255360|l>>>8&16711935}}(),y.enc.Utf16})},qMZE:function(R,D,n){var y=n("JEkh"),g=y.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}}}});R.exports=g},qOx5:function(R,D,n){"use strict";n.d(D,"a",function(){return f});var y=n("Kwbf");function g(d,l){var a=new Set;return d.forEach(function(i){l.has(i)||a.add(i)}),a}function S(d){var l=d||{},a=l.disabled,i=l.disableCheckbox,t=l.checkable;return!!(a||i)||t===!1}function m(d,l,a,i){for(var t=new Set(d),o=new Set,e=0;e<=a;e+=1){var u=l.get(e)||new Set;u.forEach(function(h){var v=h.key,A=h.node,b=h.children,x=b===void 0?[]:b;t.has(v)&&!i(A)&&x.filter(function(E){return!i(E.node)}).forEach(function(E){t.add(E.key)})})}for(var r=new Set,s=a;s>=0;s-=1){var c=l.get(s)||new Set;c.forEach(function(h){var v=h.parent,A=h.node;if(i(A)||!h.parent||r.has(h.parent.key))return;if(i(h.parent.node)){r.add(v.key);return}var b=!0,x=!1;(v.children||[]).filter(function(E){return!i(E.node)}).forEach(function(E){var T=E.key,_=t.has(T);b&&!_&&(b=!1),!x&&(_||o.has(T))&&(x=!0)}),b&&t.add(v.key),x&&o.add(v.key),r.add(v.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(g(o,t))}}function p(d,l,a,i,t){for(var o=new Set(d),e=new Set(l),u=0;u<=i;u+=1){var r=a.get(u)||new Set;r.forEach(function(v){var A=v.key,b=v.node,x=v.children,E=x===void 0?[]:x;!o.has(A)&&!e.has(A)&&!t(b)&&E.filter(function(T){return!t(T.node)}).forEach(function(T){o.delete(T.key)})})}e=new Set;for(var s=new Set,c=i;c>=0;c-=1){var h=a.get(c)||new Set;h.forEach(function(v){var A=v.parent,b=v.node;if(t(b)||!v.parent||s.has(v.parent.key))return;if(t(v.parent.node)){s.add(A.key);return}var x=!0,E=!1;(A.children||[]).filter(function(T){return!t(T.node)}).forEach(function(T){var _=T.key,C=o.has(_);x&&!C&&(x=!1),!E&&(C||e.has(_))&&(E=!0)}),x||o.delete(A.key),E&&e.add(A.key),s.add(A.key)})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(g(e,o))}}function f(d,l,a,i){var t=[],o;i?o=i:o=S;var e=new Set(d.filter(function(c){var h=!!a[c];return h||t.push(c),h})),u=new Map,r=0;Object.keys(a).forEach(function(c){var h=a[c],v=h.level,A=u.get(v);A||(A=new Set,u.set(v,A)),A.add(h),r=Math.max(r,v)}),Object(y.a)(!t.length,"Tree missing follow keys: ".concat(t.slice(0,100).map(function(c){return"'".concat(c,"'")}).join(", ")));var s;return l===!0?s=m(e,u,r,o):s=p(e,l.halfCheckedKeys,u,r,o),s}},qPY4:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("u4NN"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},qWUW:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("DL4k")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="CaretDownOutlined";var i=m.forwardRef(a);D.default=i},qWt2:function(R,D,n){var y=n("ProS"),g=y.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}}});R.exports=g},qZFw:function(R,D,n){var y=n("bYtY"),g=n("6GrX"),S=n("hM6l"),m=n("4NO4"),p=m.makeInner,f=p();function d(a,i){i=i||[0,360],S.call(this,"angle",a,i),this.type="category"}d.prototype={constructor:d,pointToData:function(a,i){return this.polar.pointToData(a,i)[this.dim==="radius"?0:1]},dataToAngle:S.prototype.dataToCoord,angleToData:S.prototype.coordToData,calculateCategoryInterval:function(){var a=this,i=a.getLabelModel(),t=a.scale,o=t.getExtent(),e=t.count();if(o[1]-o[0]<1)return 0;var u=o[0],r=a.dataToCoord(u+1)-a.dataToCoord(u),s=Math.abs(r),c=g.getBoundingRect(u,i.getFont(),"center","top"),h=Math.max(c.height,7),v=h/s;isNaN(v)&&(v=Infinity);var A=Math.max(0,Math.floor(v)),b=f(a.model),x=b.lastAutoInterval,E=b.lastTickCount;return x!=null&&E!=null&&Math.abs(x-A)<=1&&Math.abs(E-e)<=1&&x>A?A=x:(b.lastTickCount=e,b.lastAutoInterval=A),A}},y.inherits(d,S);var l=d;R.exports=l},qZTm:function(R,D,n){var y=n("fR/l"),g=n("MvSz"),S=n("7GkX");function m(p){return y(p,S,g)}R.exports=m},qgGe:function(R,D,n){var y=n("bYtY"),g=n("T4UG"),S=n("Bsck"),m=n("VaxA"),p=m.wrapTreePathInfo,f=g.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(l,a){var i={name:l.name,children:l.data};d(i);var t=l.levels||[],o={};return o.levels=t,S.createTree(i,this,o).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(l){var a=g.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(l);return a.treePathInfo=p(i,this),a},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(l){l?this._viewRoot=l:l=this._viewRoot;var a=this.getRawData().tree.root;(!l||l!==a&&!a.contains(l))&&(this._viewRoot=a)}});function d(l){var a=0;y.each(l.children,function(t){d(t);var o=t.value;y.isArray(o)&&(o=o[0]),a+=o});var i=l.value;y.isArray(i)&&(i=i[0]),(i==null||isNaN(i))&&(i=a),i<0&&(i=0),y.isArray(l.value)?l.value[0]=i:l.value=i}R.exports=f},qj72:function(R,D,n){var y=n("bYtY");function g(m,p){return p=p||[0,0],y.map(["x","y"],function(f,d){var l=this.getAxis(f),a=p[d],i=m[d]/2;return l.type==="category"?l.getBandWidth():Math.abs(l.dataToCoord(a-i)-l.dataToCoord(a+i))},this)}function S(m){var p=m.grid.getRect();return{coordSys:{type:"cartesian2d",x:p.x,y:p.y,width:p.width,height:p.height},api:{coord:function(f){return m.dataToPoint(f)},size:y.bind(g,m)}}}R.exports=S},"qt/9":function(R,D,n){var y=n("ProS"),g=n("bYtY");n("Wqna"),n("1tlw"),n("Mylv");var S=n("nVfU"),m=S.layout,p=n("f5Yq");n("Ae16"),y.registerLayout(g.curry(m,"pictorialBar")),y.registerVisual(p("pictorialBar","roundRect"))},qu8F:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("OLod"))})(this,function(y){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return y.mode.CTRGladman=function(){var g=y.lib.BlockCipherMode.extend();function S(f){if((f>>24&255)===255){var d=f>>16&255,l=f>>8&255,a=f&255;d===255?(d=0,l===255?(l=0,a===255?a=0:++a):++l):++d,f=0,f+=d<<16,f+=l<<8,f+=a}else f+=1<<24;return f}function m(f){return(f[0]=S(f[0]))===0&&(f[1]=S(f[1])),f}var p=g.Encryptor=g.extend({processBlock:function(d,l){var a=this._cipher,i=a.blockSize,t=this._iv,o=this._counter;t&&(o=this._counter=t.slice(0),this._iv=void 0),m(o);var e=o.slice(0);a.encryptBlock(e,0);for(var u=0;u<i;u++)d[l+u]^=e[u]}});return g.Decryptor=p,g}(),y.mode.CTRGladman})},qwVE:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("K4ya"),m=n("XxSj"),p=y.PRIORITY.VISUAL.COMPONENT;y.registerVisual(p,{createOnAllSeries:!0,reset:function(d,l){var a=[];return l.eachComponent("visualMap",function(i){var t=d.pipelineContext;if(!i.isTargetSeries(d)||t&&t.large)return;a.push(S.incrementalApplyVisual(i.stateList,i.targetVisuals,g.bind(i.getValueState,i),i.getDataDimension(d.getData())))}),a}}),y.registerVisual(p,{createOnAllSeries:!0,reset:function(d,l){var a=d.getData(),i=[];l.eachComponent("visualMap",function(t){if(t.isTargetSeries(d)){var o=t.getVisualMeta(g.bind(f,null,d,t))||{stops:[],outerColors:[]},e=t.getDataDimension(a),u=a.getDimensionInfo(e);u!=null&&(o.dimension=u.index,i.push(o))}}),d.getData().setVisual("visualMeta",i)}});function f(d,l,a,i){for(var t=l.targetVisuals[i],o=m.prepareVisualTypes(t),e={color:d.getData().getVisual("color")},u=0,r=o.length;u<r;u++){var s=o[u],c=t[s==="opacity"?"__alphaForOpacity":s];c&&c.applyVisual(a,h,v)}return e.color;function h(A){return e[A]}function v(A,b){e[A]=b}}},"r+aA":function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("s2MQ")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="EyeInvisibleOutlined";var i=m.forwardRef(a);D.default=i},"r/2G":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("+Zaj"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},r1uz:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.BlockCipher,p=g.algo,f=16,d=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],l=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]],a={pbox:[],sbox:[]};function i(r,s){var c=s>>24&255,h=s>>16&255,v=s>>8&255,A=s&255,b=r.sbox[0][c]+r.sbox[1][h];return b=b^r.sbox[2][v],b=b+r.sbox[3][A],b}function t(r,s,c){for(var h=s,v=c,A,b=0;b<f;++b)h=h^r.pbox[b],v=i(r,h)^v,A=h,h=v,v=A;return A=h,h=v,v=A,v=v^r.pbox[f],h=h^r.pbox[f+1],{left:h,right:v}}function o(r,s,c){for(var h=s,v=c,A,b=f+1;b>1;--b)h=h^r.pbox[b],v=i(r,h)^v,A=h,h=v,v=A;return A=h,h=v,v=A,v=v^r.pbox[1],h=h^r.pbox[0],{left:h,right:v}}function e(r,s,c){for(var h=0;h<4;h++){r.sbox[h]=[];for(var v=0;v<256;v++)r.sbox[h][v]=l[h][v]}for(var A=0,b=0;b<f+2;b++)r.pbox[b]=d[b]^s[A],A++,A>=c&&(A=0);for(var x=0,E=0,T=0,_=0;_<f+2;_+=2)T=t(r,x,E),x=T.left,E=T.right,r.pbox[_]=x,r.pbox[_+1]=E;for(var C=0;C<4;C++)for(var w=0;w<256;w+=2)T=t(r,x,E),x=T.left,E=T.right,r.sbox[C][w]=x,r.sbox[C][w+1]=E;return!0}var u=p.Blowfish=m.extend({_doReset:function(){if(this._keyPriorReset===this._key)return;var s=this._keyPriorReset=this._key,c=s.words,h=s.sigBytes/4;e(a,c,h)},encryptBlock:function(s,c){var h=t(a,s[c],s[c+1]);s[c]=h.left,s[c+1]=h.right},decryptBlock:function(s,c){var h=o(a,s[c],s[c+1]);s[c]=h.left,s[c+1]=h.right},blockSize:64/32,keySize:128/32,ivSize:64/32});g.Blowfish=m._createHelper(u)}(),y.Blowfish})},r6Bn:function(R,D,n){var y=n("bYtY"),g=n("ItGF"),S=n("4fz+"),m=n("BPZU");function p(l,a){return l.zlevel===a.zlevel?l.z===a.z?l.z2-a.z2:l.z-a.z:l.zlevel-a.zlevel}var f=function(){this._roots=[],this._displayList=[],this._displayListLen=0};f.prototype={constructor:f,traverse:function(a,i){for(var t=0;t<this._roots.length;t++)this._roots[t].traverse(a,i)},getDisplayList:function(a,i){return i=i||!1,a&&this.updateDisplayList(i),this._displayList},updateDisplayList:function(a){this._displayListLen=0;for(var i=this._roots,t=this._displayList,o=0,e=i.length;o<e;o++)this._updateAndAddDisplayable(i[o],null,a);t.length=this._displayListLen,g.canvasSupported&&m(t,p)},_updateAndAddDisplayable:function(a,i,t){if(a.ignore&&!t)return;a.beforeUpdate(),a.__dirty&&a.update(),a.afterUpdate();var o=a.clipPath;if(o){i?i=i.slice():i=[];for(var e=o,u=a;e;)e.parent=u,e.updateTransform(),i.push(e),u=e,e=e.clipPath}if(a.isGroup){for(var r=a._children,s=0;s<r.length;s++){var c=r[s];a.__dirty&&(c.__dirty=!0),this._updateAndAddDisplayable(c,i,t)}a.__dirty=!1}else a.__clipPaths=i,this._displayList[this._displayListLen++]=a},addRoot:function(a){if(a.__storage===this)return;a instanceof S&&a.addChildrenToStorage(this),this.addToStorage(a),this._roots.push(a)},delRoot:function(a){if(a==null){for(var i=0;i<this._roots.length;i++){var t=this._roots[i];t instanceof S&&t.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(a instanceof Array){for(var i=0,o=a.length;i<o;i++)this.delRoot(a[i]);return}var e=y.indexOf(this._roots,a);e>=0&&(this.delFromStorage(a),this._roots.splice(e,1),a instanceof S&&a.delChildrenFromStorage(this))},addToStorage:function(a){return a&&(a.__storage=this,a.dirty(!1)),this},delFromStorage:function(a){return a&&(a.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:p};var d=f;R.exports=d},rA99:function(R,D,n){var y=n("y+Vt"),g=n("QBsz"),S=n("Sj9i"),m=S.quadraticSubdivide,p=S.cubicSubdivide,f=S.quadraticAt,d=S.cubicAt,l=S.quadraticDerivativeAt,a=S.cubicDerivativeAt,i=[];function t(e,u,r){var s=e.cpx2,c=e.cpy2;return s===null||c===null?[(r?a:d)(e.x1,e.cpx1,e.cpx2,e.x2,u),(r?a:d)(e.y1,e.cpy1,e.cpy2,e.y2,u)]:[(r?l:f)(e.x1,e.cpx1,e.x2,u),(r?l:f)(e.y1,e.cpy1,e.y2,u)]}var o=y.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(u,r){var s=r.x1,c=r.y1,h=r.x2,v=r.y2,A=r.cpx1,b=r.cpy1,x=r.cpx2,E=r.cpy2,T=r.percent;if(T===0)return;u.moveTo(s,c),x==null||E==null?(T<1&&(m(s,A,h,T,i),A=i[1],h=i[2],m(c,b,v,T,i),b=i[1],v=i[2]),u.quadraticCurveTo(A,b,h,v)):(T<1&&(p(s,A,x,h,T,i),A=i[1],x=i[2],h=i[3],p(c,b,E,v,T,i),b=i[1],E=i[2],v=i[3]),u.bezierCurveTo(A,b,x,E,h,v))},pointAt:function(u){return t(this.shape,u,!1)},tangentAt:function(u){var r=t(this.shape,u,!0);return g.normalize(r,r)}});R.exports=o},"rAM+":function(R,D,n){"use strict";n.d(D,"a",function(){return g});var y=n("Qw5x");function g(S,m){var p;if(typeof Symbol=="undefined"||S[Symbol.iterator]==null){if(Array.isArray(S)||(p=Object(y.a)(S))||m&&S&&typeof S.length=="number"){p&&(S=p);var f=0,d=function(){};return{s:d,n:function(){return f>=S.length?{done:!0}:{done:!1,value:S[f++]}},e:function(o){throw o},f:d}}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 l=!0,a=!1,i;return{s:function(){p=S[Symbol.iterator]()},n:function(){var o=p.next();return l=o.done,o},e:function(o){a=!0,i=o},f:function(){try{!l&&p.return!=null&&p.return()}finally{if(a)throw i}}}}},rEGp:function(R,D){function n(y){var g=-1,S=Array(y.size);return y.forEach(function(m){S[++g]=m}),S}R.exports=n},rHrb:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CopyToClipboard=void 0;var y=S(n("q1tI")),g=S(n("+QRC"));function S(v){return v&&v.__esModule?v:{default:v}}function m(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(b){return typeof b}:m=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},m(v)}function p(v,A){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);A&&(x=x.filter(function(E){return Object.getOwnPropertyDescriptor(v,E).enumerable})),b.push.apply(b,x)}return b}function f(v){for(var A=1;A<arguments.length;A++){var b=arguments[A]!=null?arguments[A]:{};A%2?p(b,!0).forEach(function(x){c(v,x,b[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(b)):p(b).forEach(function(x){Object.defineProperty(v,x,Object.getOwnPropertyDescriptor(b,x))})}return v}function d(v,A){if(v==null)return{};var b=l(v,A),x,E;if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(v);for(E=0;E<T.length;E++){if(x=T[E],A.indexOf(x)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(v,x))continue;b[x]=v[x]}}return b}function l(v,A){if(v==null)return{};var b={},x=Object.keys(v),E,T;for(T=0;T<x.length;T++){if(E=x[T],A.indexOf(E)>=0)continue;b[E]=v[E]}return b}function a(v,A){if(!(v instanceof A))throw new TypeError("Cannot call a class as a function")}function i(v,A){for(var b=0;b<A.length;b++){var x=A[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}function t(v,A,b){return A&&i(v.prototype,A),b&&i(v,b),v}function o(v,A){return A&&(m(A)==="object"||typeof A=="function")?A:u(v)}function e(v){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},e(v)}function u(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function r(v,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(A&&A.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),A&&s(v,A)}function s(v,A){return s=Object.setPrototypeOf||function(x,E){return x.__proto__=E,x},s(v,A)}function c(v,A,b){return A in v?Object.defineProperty(v,A,{value:b,enumerable:!0,configurable:!0,writable:!0}):v[A]=b,v}var h=function(v){r(A,v);function A(){var b,x;a(this,A);for(var E=arguments.length,T=new Array(E),_=0;_<E;_++)T[_]=arguments[_];return x=o(this,(b=e(A)).call.apply(b,[this].concat(T))),c(u(x),"onClick",function(C){var w=x.props,O=w.text,I=w.onCopy,k=w.children,M=w.options,U=y.default.Children.only(k),P=(0,g.default)(O,M);I&&I(O,P),U&&U.props&&typeof U.props.onClick=="function"&&U.props.onClick(C)}),x}return t(A,[{key:"render",value:function(){var x=this.props,E=x.text,T=x.onCopy,_=x.options,C=x.children,w=d(x,["text","onCopy","options","children"]),O=y.default.Children.only(C);return y.default.cloneElement(O,f({},w,{onClick:this.onClick}))}}]),A}(y.default.PureComponent);D.CopyToClipboard=h,c(h,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="ReloadOutlined";var d=D.a=g.forwardRef(f)},rUJ1:function(R,D){var n=/[&<>"']/,y=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,S=/[<>"']|&(?!#?\w+;)/g,m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},p=function(C){return m[C]};function f(_,C){if(C){if(n.test(_))return _.replace(y,p)}else if(g.test(_))return _.replace(S,p);return _}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function l(_){return _.replace(d,function(C,w){return w=w.toLowerCase(),w==="colon"?":":w.charAt(0)==="#"?w.charAt(1)==="x"?String.fromCharCode(parseInt(w.substring(2),16)):String.fromCharCode(+w.substring(1)):""})}var a=/(^|[^\[])\^/g;function i(_,C){_=_.source||_,C=C||"";var w={replace:function(I,k){return k=k.source||k,k=k.replace(a,"$1"),_=_.replace(I,k),w},getRegex:function(){return new RegExp(_,C)}};return w}var t=/[^\w:]/g,o=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(_,C,w){if(_){var O;try{O=decodeURIComponent(l(w)).replace(t,"").toLowerCase()}catch(I){return null}if(O.indexOf("javascript:")===0||O.indexOf("vbscript:")===0||O.indexOf("data:")===0)return null}C&&!o.test(w)&&(w=h(C,w));try{w=encodeURI(w).replace(/%25/g,"%")}catch(I){return null}return w}var u={},r=/^[^:]+:\/*[^/]*$/,s=/^([^:]+:)[\s\S]*$/,c=/^([^:]+:\/*[^/]*)[\s\S]*$/;function h(_,C){u[" "+_]||(r.test(_)?u[" "+_]=_+"/":u[" "+_]=x(_,"/",!0)),_=u[" "+_];var w=_.indexOf(":")===-1;return C.substring(0,2)==="//"?w?C:_.replace(s,"$1")+C:C.charAt(0)==="/"?w?C:_.replace(c,"$1")+C:_+C}var v={exec:function(){}};function A(_){for(var C=1,w,O;C<arguments.length;C++){w=arguments[C];for(O in w)Object.prototype.hasOwnProperty.call(w,O)&&(_[O]=w[O])}return _}function b(_,C){var w=_.replace(/\|/g,function(k,M,U){for(var P=!1,X=M;--X>=0&&U[X]==="\\";)P=!P;return P?"|":" |"}),O=w.split(/ \|/),I=0;if(O.length>C)O.splice(C);else for(;O.length<C;)O.push("");for(;I<O.length;I++)O[I]=O[I].trim().replace(/\\\|/g,"|");return O}function x(_,C,w){var O=_.length;if(O===0)return"";for(var I=0;I<O;){var k=_.charAt(O-I-1);if(k===C&&!w)I++;else if(k!==C&&w)I++;else break}return _.substr(0,O-I)}function E(_,C){if(_.indexOf(C[1])===-1)return-1;for(var w=_.length,O=0,I=0;I<w;I++)if(_[I]==="\\")I++;else if(_[I]===C[0])O++;else if(_[I]===C[1]&&(O--,O<0))return I;return-1}function T(_){_&&_.sanitize&&!_.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")}R.exports={escape:f,unescape:l,edit:i,cleanUrl:e,resolveUrl:h,noopTest:v,merge:A,splitCells:b,rtrim:x,findClosingBracket:E,checkSanitizeDeprecation:T}},rdUC:function(R,D,n){var y=n("MFOe"),g=y.Global;R.exports={name:"localStorage",read:m,write:p,each:f,remove:d,clearAll:l};function S(){return g.localStorage}function m(a){return S().getItem(a)}function p(a,i){return S().setItem(a,i)}function f(a){for(var i=S().length-1;i>=0;i--){var t=S().key(i);a(m(t),t)}}function d(a){return S().removeItem(a)}function l(){return S().clear()}},rdor:function(R,D,n){var y=n("lOQZ"),g=y.circularLayout;function S(m){m.eachSeriesByType("graph",function(p){p.get("layout")==="circular"&&g(p,"symbolSize")})}R.exports=S},rfSb:function(R,D,n){var y=n("T4UG"),g=n("sdST"),S=n("L0Ub"),m=S.getDimensionTypeByAxis,p=n("YXkt"),f=n("bYtY"),d=n("4NO4"),l=d.groupData,a=n("7aKB"),i=a.encodeHTML,t=n("xKMd"),o=2,e=y.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(r){e.superApply(this,"init",arguments),this.legendVisualProvider=new t(f.bind(this.getData,this),f.bind(this.getRawData,this))},fixData:function(r){var s=r.length,c=l(r,function(U){return U[2]}),h=[];c.buckets.each(function(U,P){h.push({name:P,dataList:U})});for(var v=h.length,A=-1,b=-1,x=0;x<v;++x){var E=h[x].dataList.length;E>A&&(A=E,b=x)}for(var T=0;T<v;++T){if(T===b)continue;for(var _=h[T].name,C=0;C<A;++C){for(var w=h[b].dataList[C][0],O=h[T].dataList.length,I=-1,k=0;k<O;++k){var M=h[T].dataList[k][0];if(M===w){I=k;break}}I===-1&&(r[s]=[],r[s][0]=w,r[s][1]=0,r[s][2]=_,s++)}}return r},getInitialData:function(r,s){for(var c=s.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],h=c.get("type"),v=f.filter(r.data,function(w){return w[2]!==void 0}),A=this.fixData(v||[]),b=[],x=this.nameMap=f.createHashMap(),E=0,T=0;T<A.length;++T)b.push(A[T][o]),x.get(A[T][o])||(x.set(A[T][o],E),E++);var _=g(A,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:m(h)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),C=new p(_,this);return C.initData(A),C},getLayerSeries:function(){for(var r=this.getData(),s=r.count(),c=[],h=0;h<s;++h)c[h]=h;var v=r.mapDimension("single"),A=l(c,function(x){return r.get("name",x)}),b=[];return A.buckets.each(function(x,E){x.sort(function(T,_){return r.get(v,T)-r.get(v,_)}),b.push({name:E,indices:x})}),b},getAxisTooltipData:function(r,s,c){f.isArray(r)||(r=r?[r]:[]);for(var h=this.getData(),v=this.getLayerSeries(),A=[],b=v.length,x,E=0;E<b;++E){for(var T=Number.MAX_VALUE,_=-1,C=v[E].indices.length,w=0;w<C;++w){var O=h.get(r[0],v[E].indices[w]),I=Math.abs(O-s);I<=T&&(x=O,T=I,_=v[E].indices[w])}A.push(_)}return{dataIndices:A,nestestValue:x}},formatTooltip:function(r){var s=this.getData(),c=s.getName(r),h=s.get(s.mapDimension("value"),r);return(isNaN(h)||h==null)&&(h="-"),i(c+" : "+h)},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}}}}),u=e;R.exports=u},rkZ5:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("ProS"),m=n("c8qY"),p=n("D9ME"),f=n("fls0"),d=n("RSch"),l=n("akwb"),a=n("o40c"),i=n("ZYIC"),t=n("sK/D"),o=t.createClipPath,e=S.extendChartView({type:"lines",init:function(){},render:function(u,r,s){var c=u.getData(),h=this._updateLineDraw(c,u),v=u.get("zlevel"),A=u.get("effect.trailLength"),b=s.getZr(),x=b.painter.getType()==="svg";x||b.painter.getLayer(v).clear(!0),this._lastZlevel!=null&&!x&&b.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(u)&&A&&(x||b.configLayer(v,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(A/10+.9,1),0)})),h.updateData(c);var E=u.get("clip",!0)&&o(u.coordinateSystem,!1,u);E?this.group.setClipPath(E):this.group.removeClipPath(),this._lastZlevel=v,this._finished=!0},incrementalPrepareRender:function(u,r,s){var c=u.getData(),h=this._updateLineDraw(c,u);h.incrementalPrepareUpdate(c),this._clearLayer(s),this._finished=!1},incrementalRender:function(u,r,s){this._lineDraw.incrementalUpdate(u,r.getData()),this._finished=u.end===r.getData().count()},updateTransform:function(u,r,s){var c=u.getData(),h=u.pipelineContext;if(!this._finished||h.large||h.progressiveRender)return{update:!0};var v=i.reset(u);v.progress&&v.progress({start:0,end:c.count()},c),this._lineDraw.updateLayout(),this._clearLayer(s)},_updateLineDraw:function(u,r){var s=this._lineDraw,c=this._showEffect(r),h=!!r.get("polyline"),v=r.pipelineContext,A=v.large;return(!s||c!==this._hasEffet||h!==this._isPolyline||A!==this._isLargeDraw)&&(s&&s.remove(),s=this._lineDraw=A?new a:new m(h?c?l:d:c?p:f),this._hasEffet=c,this._isPolyline=h,this._isLargeDraw=A,this.group.removeAll()),this.group.add(s.group),s},_showEffect:function(u){return!!u.get("effect.show")},_clearLayer:function(u){var r=u.getZr(),s=r.painter.getType()==="svg";!s&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(u,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},dispose:function(){}});R.exports=e},rmlV:function(R,D,n){var y=n("y+Vt"),g=y.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(m,p){var f=.5522848,d=p.cx,l=p.cy,a=p.rx,i=p.ry,t=a*f,o=i*f;m.moveTo(d-a,l),m.bezierCurveTo(d-a,l-o,d-t,l-i,d,l-i),m.bezierCurveTo(d+t,l-i,d+a,l-o,d+a,l),m.bezierCurveTo(d+a,l+o,d+t,l+i,d,l+i),m.bezierCurveTo(d-t,l+i,d-a,l+o,d-a,l),m.closePath()}});R.exports=g},rnVJ:function(R,D,n){var y=n("bYtY"),g=["rect","polygon","keep","clear"];function S(p,f){var d=p&&p.brush;if(y.isArray(d)||(d=d?[d]:[]),!d.length)return;var l=[];y.each(d,function(e){var u=e.hasOwnProperty("toolbox")?e.toolbox:[];u instanceof Array&&(l=l.concat(u))});var a=p&&p.toolbox;y.isArray(a)&&(a=a[0]),a||(a={feature:{}},p.toolbox=[a]);var i=a.feature||(a.feature={}),t=i.brush||(i.brush={}),o=t.type||(t.type=[]);o.push.apply(o,l),m(o),f&&!o.length&&o.push.apply(o,g)}function m(p){var f={};y.each(p,function(d){f[d]=1}),p.length=0,y.each(f,function(d,l){p.push(l)})}R.exports=S},rwxt:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("GdRQ");function g(d,l){if(!(d instanceof l))throw new TypeError("Cannot call a class as a function")}function S(d,l){for(var a=0;a<l.length;a++){var i=l[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(d,i.key,i)}}function m(d,l,a){return l&&S(d.prototype,l),a&&S(d,a),d}var p=!y.supportsCursorURIs||y.isTouchDevice,f=function(){function d(){g(this,d),this._target=null,this._canvas=document.createElement("canvas"),p&&(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 m(d,[{key:"attach",value:function(a){if(this._target&&this.detach(),this._target=a,p){document.body.appendChild(this._canvas);var i={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,i),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,i),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,i),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,i)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(p){var a={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,a),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,a),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,a),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,a),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(a,i,t,o,e){if(o===0||e===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-i,this._position.y=this._position.y+this._hotSpot.y-t,this._hotSpot.x=i,this._hotSpot.y=t;var u=this._canvas.getContext("2d");this._canvas.width=o,this._canvas.height=e;var r;try{r=new ImageData(new Uint8ClampedArray(a),o,e)}catch(c){r=u.createImageData(o,e),r.data.set(new Uint8ClampedArray(a))}if(u.clearRect(0,0,o,e),u.putImageData(r,0,0),p)this._updatePosition();else{var s=this._canvas.toDataURL();this._target.style.cursor="url("+s+")"+i+" "+t+", default"}}},{key:"clear",value:function(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}},{key:"move",value:function(a,i){if(!p)return;window.visualViewport?(this._position.x=a+window.visualViewport.offsetLeft,this._position.y=i+window.visualViewport.offsetTop):(this._position.x=a,this._position.y=i),this._updatePosition();var t=document.elementFromPoint(a,i);this._updateVisibility(t)}},{key:"_handleMouseOver",value:function(a){this._handleMouseMove(a)}},{key:"_handleMouseLeave",value:function(a){this._updateVisibility(a.relatedTarget)}},{key:"_handleMouseMove",value:function(a){this._updateVisibility(a.target),this._position.x=a.clientX-this._hotSpot.x,this._position.y=a.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(a){var i=this,t=document.elementFromPoint(a.clientX,a.clientY);this._updateVisibility(t),this._captureIsActive()&&window.setTimeout(function(){if(!i._target)return;t=document.elementFromPoint(a.clientX,a.clientY),i._updateVisibility(t)},0)}},{key:"_showCursor",value:function(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}},{key:"_hideCursor",value:function(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}},{key:"_shouldShowCursor",value:function(a){return a?a===this._target?!0:this._target.contains(a)?!(window.getComputedStyle(a).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(a){this._captureIsActive()&&(a=document.captureElement),this._shouldShowCursor(a)?this._showCursor():this._hideCursor()}},{key:"_updatePosition",value:function(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}},{key:"_captureIsActive",value:function(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}]),d}();D.default=f},rySg:function(R,D,n){n("SMc4"),n("8nMs")},"s/wZ":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("MUZu"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},s2MQ:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},s2lz:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("IwbS"),m=n("gPAo"),p=n("VaxA"),f=n("9hCq"),d=n("SgGq"),l=n("mFDi"),a=n("Fofx"),i=n("5s0K"),t=n("KCsZ"),o=n("7aKB"),e=o.windowOpen,u=g.bind,r=S.Group,s=S.Rect,c=g.each,h=3,v=["label"],A=["emphasis","label"],b=["upperLabel"],x=["emphasis","upperLabel"],E=10,T=1,_=2,C=t([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),w=function(U){var P=C(U);return P.stroke=P.fill=P.lineWidth=null,P},O=y.extendChartView({type:"treemap",init:function(U,P){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(U,P,X,F){var j=P.findComponents({mainType:"series",subType:"treemap",query:F});if(g.indexOf(j,U)<0)return;this.seriesModel=U,this.api=X,this.ecModel=P;var K=["treemapZoomToNode","treemapRootToNode"],z=p.retrieveTargetInfo(F,K,U),V=F&&F.type,Q=U.layoutInfo,G=!this._oldTree,te=this._storage,q=V==="treemapRootToNode"&&z&&te?{rootNodeGroup:te.nodeGroup[z.node.getRawIndex()],direction:F.direction}:null,se=this._giveContainerGroup(Q),re=this._doRender(se,U,q);!G&&(!V||V==="treemapZoomToNode"||V==="treemapRootToNode")?this._doAnimation(se,re,U,q):re.renderFinally(),this._resetController(X),this._renderBreadcrumb(U,X,z)},_giveContainerGroup:function(U){var P=this._containerGroup;return P||(P=this._containerGroup=new r,this._initEvents(P),this.group.add(P)),P.attr("position",[U.x,U.y]),P},_doRender:function(U,P,X){var F=P.getData().tree,j=this._oldTree,K=I(),z=I(),V=this._storage,Q=[],G=g.curry(k,P,z,V,X,K,Q);q(F.root?[F.root]:[],j&&j.root?[j.root]:[],U,F===j||!j,0);var te=se(V);return this._oldTree=F,this._storage=z,{lastsForAnimation:K,willDeleteEls:te,renderFinally:re};function q(we,Oe,Me,Qe,Ve){Qe?(Oe=we,c(we,function(ue,et){!ue.isRemoved()&&Fe(et,et)})):new m(Oe,we,dt,dt).add(Fe).update(Fe).remove(g.curry(Fe,null)).execute();function dt(ue){return ue.getId()}function Fe(ue,et){var he=ue!=null?we[ue]:null,J=et!=null?Oe[et]:null,Y=G(he,J,Me,Ve);Y&&q(he&&he.viewChildren||[],J&&J.viewChildren||[],Y,Qe,Ve+1)}}function se(we){var Oe=I();return we&&c(we,function(Me,Qe){var Ve=Oe[Qe];c(Me,function(dt){dt&&(Ve.push(dt),dt.__tmWillDelete=1)})}),Oe}function re(){c(te,function(we){c(we,function(Oe){Oe.parent&&Oe.parent.remove(Oe)})}),c(Q,function(we){we.invisible=!0,we.dirty()})}},_doAnimation:function(U,P,X,F){if(!X.get("animation"))return;var j=X.get("animationDurationUpdate"),K=X.get("animationEasing"),z=i.createWrap();c(P.willDeleteEls,function(V,Q){c(V,function(G,te){if(G.invisible)return;var q=G.parent,se;if(F&&F.direction==="drillDown")se=q===F.rootNodeGroup?{shape:{x:0,y:0,width:q.__tmNodeWidth,height:q.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var re=0,we=0;q.__tmWillDelete||(re=q.__tmNodeWidth/2,we=q.__tmNodeHeight/2),se=Q==="nodeGroup"?{position:[re,we],style:{opacity:0}}:{shape:{x:re,y:we,width:0,height:0},style:{opacity:0}}}se&&z.add(G,se,j,K)})}),c(this._storage,function(V,Q){c(V,function(G,te){var q=P.lastsForAnimation[Q][te],se={};if(!q)return;Q==="nodeGroup"?q.old&&(se.position=G.position.slice(),G.attr("position",q.old)):(q.old&&(se.shape=g.extend({},G.shape),G.setShape(q.old)),q.fadein?(G.setStyle("opacity",0),se.style={opacity:1}):G.style.opacity!==1&&(se.style={opacity:1})),z.add(G,se,j,K)})},this),this._state="animating",z.done(u(function(){this._state="ready",P.renderFinally()},this)).start()},_resetController:function(U){var P=this._controller;P||(P=this._controller=new d(U.getZr()),P.enable(this.seriesModel.get("roam")),P.on("pan",u(this._onPan,this)),P.on("zoom",u(this._onZoom,this)));var X=new l(0,0,U.getWidth(),U.getHeight());P.setPointerChecker(function(F,j,K){return X.contain(j,K)})},_clearController:function(){var U=this._controller;U&&(U.dispose(),U=null)},_onPan:function(U){if(this._state!=="animating"&&(Math.abs(U.dx)>h||Math.abs(U.dy)>h)){var P=this.seriesModel.getData().tree.root;if(!P)return;var X=P.getLayout();if(!X)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:X.x+U.dx,y:X.y+U.dy,width:X.width,height:X.height}})}},_onZoom:function(U){var P=U.originX,X=U.originY;if(this._state!=="animating"){var F=this.seriesModel.getData().tree.root;if(!F)return;var j=F.getLayout();if(!j)return;var K=new l(j.x,j.y,j.width,j.height),z=this.seriesModel.layoutInfo;P-=z.x,X-=z.y;var V=a.create();a.translate(V,V,[-P,-X]),a.scale(V,V,[U.scale,U.scale]),a.translate(V,V,[P,X]),K.applyTransform(V),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:K.x,y:K.y,width:K.width,height:K.height}})}},_initEvents:function(U){U.on("click",function(P){if(this._state!=="ready")return;var X=this.seriesModel.get("nodeClick",!0);if(!X)return;var F=this.findTarget(P.offsetX,P.offsetY);if(!F)return;var j=F.node;if(j.getLayout().isLeafRoot)this._rootToNode(F);else if(X==="zoomToNode")this._zoomToNode(F);else if(X==="link"){var K=j.hostTree.data.getItemModel(j.dataIndex),z=K.get("link",!0),V=K.get("target",!0)||"blank";z&&e(z,V)}},this)},_renderBreadcrumb:function(U,P,X){X||(X=U.get("leafDepth",!0)!=null?{node:U.getViewRoot()}:this.findTarget(P.getWidth()/2,P.getHeight()/2),X||(X={node:U.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new f(this.group))).render(U,P,X.node,u(F,this));function F(j){this._state!=="animating"&&(p.aboveViewRoot(U.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(U){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:U.node})},_rootToNode:function(U){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:U.node})},findTarget:function(U,P){var X,F=this.seriesModel.getViewRoot();return F.eachNode({attr:"viewChildren",order:"preorder"},function(j){var K=this._storage.background[j.getRawIndex()];if(K){var z=K.transformCoordToLocal(U,P),V=K.shape;if(V.x<=z[0]&&z[0]<=V.x+V.width&&V.y<=z[1]&&z[1]<=V.y+V.height)X={node:j,offsetX:z[0],offsetY:z[1]};else return!1}},this),X}});function I(){return{nodeGroup:[],background:[],content:[]}}function k(U,P,X,F,j,K,z,V,Q,G){if(!z)return;var te=z.getLayout(),q=U.getData();if(q.setItemGraphicEl(z.dataIndex,null),!te||!te.isInView)return;var se=te.width,re=te.height,we=te.borderWidth,Oe=te.invisible,Me=z.getRawIndex(),Qe=V&&V.getRawIndex(),Ve=z.viewChildren,dt=te.upperHeight,Fe=Ve&&Ve.length,ue=z.getModel("itemStyle"),et=z.getModel("emphasis.itemStyle"),he=xe("nodeGroup",r);if(!he)return;if(Q.add(he),he.attr("position",[te.x||0,te.y||0]),he.__tmNodeWidth=se,he.__tmNodeHeight=re,te.isAboveViewRoot)return he;var J=z.getModel(),Y=xe("background",s,G,T);if(Y&&de(he,Y,Fe&&te.upperLabelHeight),Fe)S.isHighDownDispatcher(he)&&S.setAsHighDownDispatcher(he,!1),Y&&(S.setAsHighDownDispatcher(Y,!0),q.setItemGraphicEl(z.dataIndex,Y));else{var $=xe("content",s,G,_);$&&be(he,$),Y&&S.isHighDownDispatcher(Y)&&S.setAsHighDownDispatcher(Y,!1),S.setAsHighDownDispatcher(he,!0),q.setItemGraphicEl(z.dataIndex,he)}return he;function de(Ct,pt,He){if(pt.dataIndex=z.dataIndex,pt.seriesIndex=U.seriesIndex,pt.setShape({x:0,y:0,width:se,height:re}),Oe)Te(pt);else{pt.invisible=!1;var nr=z.getVisual("borderColor",!0),ht=et.get("borderColor"),Gt=w(ue);Gt.fill=nr;var pr=C(et);if(pr.fill=ht,He){var Qt=se-2*we;Be(Gt,pr,nr,Qt,dt,{x:we,y:0,width:Qt,height:dt})}else Gt.text=pr.text=null;pt.setStyle(Gt),S.setElementHoverStyle(pt,pr)}Ct.add(pt)}function be(Ct,pt){pt.dataIndex=z.dataIndex,pt.seriesIndex=U.seriesIndex;var He=Math.max(se-2*we,0),nr=Math.max(re-2*we,0);if(pt.culling=!0,pt.setShape({x:we,y:we,width:He,height:nr}),Oe)Te(pt);else{pt.invisible=!1;var ht=z.getVisual("color",!0),Gt=w(ue);Gt.fill=ht;var pr=C(et);Be(Gt,pr,ht,He,nr),pt.setStyle(Gt),S.setElementHoverStyle(pt,pr)}Ct.add(pt)}function Te(Ct){!Ct.invisible&&K.push(Ct)}function Be(Ct,pt,He,nr,ht,Gt){var pr=J.get("name"),Qt=J.getModel(Gt?b:v),Ht=J.getModel(Gt?x:A),Jt=Qt.getShallow("show");S.setLabelStyle(Ct,pt,Qt,Ht,{defaultText:Jt?pr:null,autoColor:He,isRectText:!0,labelFetcher:U,labelDataIndex:z.dataIndex,labelProp:Gt?"upperLabel":"label"}),fe(Ct,Gt,te),fe(pt,Gt,te),Gt&&(Ct.textRect=g.clone(Gt)),Ct.truncate=Jt&&Qt.get("ellipsis")?{outerWidth:nr,outerHeight:ht,minChar:2}:null}function fe(Ct,pt,He){var nr=Ct.text;if(!pt&&He.isLeafRoot&&nr!=null){var ht=U.get("drillDownIcon",!0);Ct.text=ht?ht+" "+nr:nr}}function xe(Ct,pt,He,nr){var ht=Qe!=null&&X[Ct][Qe],Gt=j[Ct];return ht?(X[Ct][Qe]=null,ke(Gt,ht,Ct)):Oe||(ht=new pt({z:M(He,nr)}),ht.__tmDepth=He,ht.__tmStorageName=Ct,nt(Gt,ht,Ct)),P[Ct][Me]=ht}function ke(Ct,pt,He){var nr=Ct[Me]={};nr.old=He==="nodeGroup"?pt.position.slice():g.extend({},pt.shape)}function nt(Ct,pt,He){var nr=Ct[Me]={},ht=z.parentNode;if(ht&&(!F||F.direction==="drillDown")){var Gt=0,pr=0,Qt=j.background[ht.getRawIndex()];!F&&Qt&&Qt.old&&(Gt=Qt.old.width,pr=Qt.old.height),nr.old=He==="nodeGroup"?[0,pr]:{x:Gt,y:pr,width:0,height:0}}nr.fadein=He!=="nodeGroup"}}function M(U,P){var X=U*E+P;return(X-1)/X}R.exports=O},sAZ8:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("+rIm"),m=n("/IIm"),p=n("9KIM"),f=n("IwbS"),d=["axisLine","axisTickLabel","axisName"],l=y.extendComponentView({type:"parallelAxis",init:function(e,u){l.superApply(this,"init",arguments),(this._brushController=new m(u.getZr())).on("brush",g.bind(this._onBrush,this))},render:function(e,u,r,s){if(a(e,u,s))return;this.axisModel=e,this.api=r,this.group.removeAll();var c=this._axisGroup;if(this._axisGroup=new f.Group,this.group.add(this._axisGroup),!e.get("show"))return;var h=t(e,u),v=h.coordinateSystem,A=e.getAreaSelectStyle(),b=A.width,x=e.axis.dim,E=v.getAxisLayout(x),T=g.extend({strokeContainThreshold:b},E),_=new S(e,T);g.each(d,_.add,_),this._axisGroup.add(_.getGroup()),this._refreshBrushController(T,A,e,h,b,r);var C=s&&s.animation===!1?null:e;f.groupTransition(c,this._axisGroup,C)},_refreshBrushController:function(e,u,r,s,c,h){var v=r.axis.getExtent(),A=v[1]-v[0],b=Math.min(30,Math.abs(A)*.1),x=f.BoundingRect.create({x:v[0],y:-c/2,width:A,height:c});x.x-=b,x.width+=2*b,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:p.makeRectPanelClipPath(x),isTargetByCursor:p.makeRectIsTargetByCursor(x,h,s),getLinearBrushOtherExtent:p.makeLinearBrushOtherExtent(x,0)}]).enableBrush({brushType:"lineX",brushStyle:u,removeOnClick:!0}).updateCovers(i(r))},_onBrush:function(e,u){var r=this.axisModel,s=r.axis,c=g.map(e,function(h){return[s.coordToData(h.range[0],!0),s.coordToData(h.range[1],!0)]});(!r.option.realtime===u.isEnd||u.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:c})},dispose:function(){this._brushController.dispose()}});function a(e,u,r){return r&&r.type==="axisAreaSelect"&&u.findComponents({mainType:"parallelAxis",query:r})[0]===e}function i(e){var u=e.axis;return g.map(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[u.dataToCoord(r[0],!0),u.dataToCoord(r[1],!0)]}})}function t(e,u){return u.getComponent("parallel",e.get("parallelIndex"))}var o=l;R.exports=o},sE09:function(R,D,n){},sEf8:function(R,D){function n(y){return function(g){return y(g)}}R.exports=n},sGsY:function(R,D,n){"use strict";var y=n("lSNA"),g=n.n(y),S=n("pVnL"),m=n.n(S),p=n("q1tI"),f=n("TSYQ"),d=n.n(f),l=n("H84U"),a=n("B6l+"),i=n.n(a),t=function(z){var V=z.value,Q=z.formatter,G=z.precision,te=z.decimalSeparator,q=z.groupSeparator,se=q===void 0?"":q,re=z.prefixCls,we;if(typeof Q=="function")we=Q(V);else{var Oe=String(V),Me=Oe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Me||Oe==="-")we=Oe;else{var Qe=Me[1],Ve=Me[2]||"0",dt=Me[4]||"";Ve=Ve.replace(/\B(?=(\d{3})+(?!\d))/g,se),typeof G=="number"&&(dt=i()(dt,G,"0").slice(0,G)),dt&&(dt="".concat(te).concat(dt)),we=[p.createElement("span",{key:"int",className:"".concat(re,"-content-value-int")},Qe,Ve),dt&&p.createElement("span",{key:"decimal",className:"".concat(re,"-content-value-decimal")},dt)]}}return p.createElement("span",{className:"".concat(re,"-content-value")},we)},o=t,e=function(z){var V=z.prefixCls,Q=z.className,G=z.style,te=z.valueStyle,q=z.value,se=q===void 0?0:q,re=z.title,we=z.valueRender,Oe=z.prefix,Me=z.suffix,Qe=z.direction,Ve=z.onMouseEnter,dt=z.onMouseLeave,Fe=p.createElement(o,m()({},z,{value:se})),ue=d()(V,Q,g()({},"".concat(V,"-rtl"),Qe==="rtl"));return p.createElement("div",{className:ue,style:G,onMouseEnter:Ve,onMouseLeave:dt},re&&p.createElement("div",{className:"".concat(V,"-title")},re),p.createElement("div",{style:te,className:"".concat(V,"-content")},Oe&&p.createElement("span",{className:"".concat(V,"-content-prefix")},Oe),we?we(Fe):Fe,Me&&p.createElement("span",{className:"".concat(V,"-content-suffix")},Me)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var u=Object(l.c)({prefixCls:"statistic"})(e),r=u,s=n("lwsE"),c=n.n(s),h=n("W8MJ"),v=n.n(h),A=n("7W2i"),b=n.n(A),x=n("LQ03"),E=n.n(x),T=n("J4zp"),_=n.n(T),C=n("QQZ/"),w=n.n(C),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(K,z){var V=K,Q=/\[[^\]]*]/g,G=(z.match(Q)||[]).map(function(re){return re.slice(1,-1)}),te=z.replace(Q,"[]"),q=O.reduce(function(re,we){var Oe=_()(we,2),Me=Oe[0],Qe=Oe[1];if(re.indexOf(Me)!==-1){var Ve=Math.floor(V/Qe);return V-=Ve*Qe,re.replace(new RegExp("".concat(Me,"+"),"g"),function(dt){var Fe=dt.length;return w()(Ve.toString(),Fe,"0")})}return re},te),se=0;return q.replace(Q,function(){var re=G[se];return se+=1,re})}function k(K,z){var V=z.format,Q=V===void 0?"":V,G=new Date(K).getTime(),te=Date.now(),q=Math.max(G-te,0);return I(q,Q)}var M=n("0n0R"),U=1e3/30;function P(K){return new Date(K).getTime()}var X=function(K){b()(V,K);var z=E()(V);function V(){var Q;return c()(this,V),Q=z.apply(this,arguments),Q.syncTimer=function(){var G=Q.props.value,te=P(G);te>=Date.now()?Q.startTimer():Q.stopTimer()},Q.startTimer=function(){if(Q.countdownId)return;Q.countdownId=window.setInterval(function(){Q.forceUpdate()},U)},Q.stopTimer=function(){var G=Q.props,te=G.onFinish,q=G.value;if(Q.countdownId){clearInterval(Q.countdownId),Q.countdownId=void 0;var se=P(q);te&&se<Date.now()&&te()}},Q.formatCountdown=function(G,te){var q=Q.props.format;return k(G,m()(m()({},te),{format:q}))},Q.valueRender=function(G){return Object(M.a)(G,{title:void 0})},Q}return v()(V,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return p.createElement(r,m()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),V}(p.Component);X.defaultProps={format:"HH:mm:ss"};var F=X;r.Countdown=F;var j=D.a=r},"sK/D":function(R,D,n){var y=n("IwbS"),g=n("OELB"),S=g.round;function m(d,l,a){var i=d.getArea(),t=d.getBaseAxis().isHorizontal(),o=i.x,e=i.y,u=i.width,r=i.height,s=a.get("lineStyle.width")||2;o-=s/2,e-=s/2,u+=s,r+=s,o=Math.floor(o),u=Math.round(u);var c=new y.Rect({shape:{x:o,y:e,width:u,height:r}});return l&&(c.shape[t?"width":"height"]=0,y.initProps(c,{shape:{width:u,height:r}},a)),c}function p(d,l,a){var i=d.getArea(),t=new y.Sector({shape:{cx:S(d.cx,1),cy:S(d.cy,1),r0:S(i.r0,1),r:S(i.r,1),startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return l&&(t.shape.endAngle=i.startAngle,y.initProps(t,{shape:{endAngle:i.endAngle}},a)),t}function f(d,l,a){if(d){if(d.type==="polar")return p(d,l,a);if(d.type==="cartesian2d")return m(d,l,a)}else return null;return null}D.createGridClipPath=m,D.createPolarClipPath=p,D.createClipPath=f},sKgW:function(R,D){var n=9007199254740991,y=Math.floor;function g(S,m){var p="";if(!S||m<1||m>n)return p;do m%2&&(p+=S),m=y(m/2),m&&(S+=S);while(m);return p}R.exports=g},sPJy:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("AOa7"),m=n.n(S),p=n("lUTK"),f=n("qVdP")},sPtV:function(R,D,n){"use strict";n.d(D,"a",function(){return m});var y=n("q1tI"),g=n.n(y),S=n("hkKa");function m(p){var f=y.useRef(p),d=Object(S.a)();return[function(){return f.current},function(l){f.current=l,d()}]}},sRwP:function(R,D,n){n("jsU+"),n("2548"),n("Tp9H"),n("06DH"),n("dnwI"),n("fE02"),n("33Ds")},"sS/r":function(R,D,n){var y=n("4fz+"),g=n("iRjW"),S=n("Yl7c"),m=function(){this.group=new y,this.uid=g.getUID("viewComponent")};m.prototype={constructor:m,init:function(d,l){},render:function(d,l,a,i){},dispose:function(){},filterForExposedEvent:null};var p=m.prototype;p.updateView=p.updateLayout=p.updateVisual=function(d,l,a,i){},S.enableClassExtend(m),S.enableClassManagement(m,{registerWhenExtend:!0});var f=m;R.exports=f},"sW+o":function(R,D,n){var y=n("SrGk"),g=n("bYtY"),S=n("SUKs"),m=n("Qe9p");function p(d,l){y.call(this,d,l,["linearGradient","radialGradient"],"__gradient_in_use__")}g.inherits(p,y),p.prototype.addWithoutUpdate=function(d,l){if(l&&l.style){var a=this;g.each(["fill","stroke"],function(i){if(l.style[i]&&(l.style[i].type==="linear"||l.style[i].type==="radial")){var t=l.style[i],o=a.getDefs(!0),e;t._dom?(e=t._dom,o.contains(t._dom)||a.addDom(e)):e=a.add(t),a.markUsed(l);var u=e.getAttribute("id");d.setAttribute(i,"url(#"+u+")")}})}},p.prototype.add=function(d){var l;if(d.type==="linear")l=this.createElement("linearGradient");else if(d.type==="radial")l=this.createElement("radialGradient");else return S("Illegal gradient type."),null;return d.id=d.id||this.nextId++,l.setAttribute("id","zr"+this._zrId+"-gradient-"+d.id),this.updateDom(d,l),this.addDom(l),l},p.prototype.update=function(d){var l=this;y.prototype.update.call(this,d,function(){var a=d.type,i=d._dom.tagName;a==="linear"&&i==="linearGradient"||a==="radial"&&i==="radialGradient"?l.updateDom(d,d._dom):(l.removeDom(d),l.add(d))})},p.prototype.updateDom=function(d,l){if(d.type==="linear")l.setAttribute("x1",d.x),l.setAttribute("y1",d.y),l.setAttribute("x2",d.x2),l.setAttribute("y2",d.y2);else if(d.type==="radial")l.setAttribute("cx",d.x),l.setAttribute("cy",d.y),l.setAttribute("r",d.r);else{S("Illegal gradient type.");return}d.global?l.setAttribute("gradientUnits","userSpaceOnUse"):l.setAttribute("gradientUnits","objectBoundingBox"),l.innerHTML="";for(var a=d.colorStops,i=0,t=a.length;i<t;++i){var o=this.createElement("stop");o.setAttribute("offset",a[i].offset*100+"%");var e=a[i].color;if(e.indexOf("rgba">-1)){var u=m.parse(e)[3],r=m.toHex(e);o.setAttribute("stop-color","#"+r),o.setAttribute("stop-opacity",u)}else o.setAttribute("stop-color",a[i].color);l.appendChild(o)}d._dom=l},p.prototype.markUsed=function(d){if(d.style){var l=d.style.fill;l&&l._dom&&y.prototype.markUsed.call(this,l._dom),l=d.style.stroke,l&&l._dom&&y.prototype.markUsed.call(this,l._dom)}};var f=p;R.exports=f},sdST:function(R,D,n){var y=n("hi0g");function g(S,m){return m=m||{},y(m.coordDimensions||[],S,{dimsDef:m.dimensionsDefine||S.dimensionsDefine,encodeDef:m.encodeDefine||S.encodeDefine,dimCount:m.dimensionsCount,encodeDefaulter:m.encodeDefaulter,generateCoord:m.generateCoord,generateCoordCount:m.generateCoordCount})}R.exports=g},seXi:function(R,D,n){var y=n("qZTm"),g=1,S=Object.prototype,m=S.hasOwnProperty;function p(f,d,l,a,i,t){var o=l&g,e=y(f),u=e.length,r=y(d),s=r.length;if(u!=s&&!o)return!1;for(var c=u;c--;){var h=e[c];if(!(o?h in d:m.call(d,h)))return!1}var v=t.get(f),A=t.get(d);if(v&&A)return v==d&&A==f;var b=!0;t.set(f,d),t.set(d,f);for(var x=o;++c<u;){h=e[c];var E=f[h],T=d[h];if(a)var _=o?a(T,E,h,d,f,t):a(E,T,h,f,d,t);if(!(_===void 0?E===T||i(E,T,l,a,t):_)){b=!1;break}x||(x=h=="constructor")}if(b&&!x){var C=f.constructor,w=d.constructor;C!=w&&"constructor"in f&&"constructor"in d&&!(typeof C=="function"&&C instanceof C&&typeof w=="function"&&w instanceof w)&&(b=!1)}return t.delete(f),t.delete(d),b}R.exports=p},shjB:function(R,D){var n=9007199254740991;function y(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=n}R.exports=y},sjKO:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=S;var y=30,g=12;function S(m,p){var f,d,l,a,i,t,o,e,u,r,s,c,h,v,A,b,x,E,T,_,C,w,O,I,k;f=m.state,d=m.next_in,I=m.input,l=d+(m.avail_in-5),a=m.next_out,k=m.output,i=a-(p-m.avail_out),t=a+(m.avail_out-257),o=f.dmax,e=f.wsize,u=f.whave,r=f.wnext,s=f.window,c=f.hold,h=f.bits,v=f.lencode,A=f.distcode,b=(1<<f.lenbits)-1,x=(1<<f.distbits)-1;e:do{h<15&&(c+=I[d++]<<h,h+=8,c+=I[d++]<<h,h+=8),E=v[c&b];t:for(;;){if(T=E>>>24,c>>>=T,h-=T,T=E>>>16&255,T===0)k[a++]=E&65535;else if(T&16){_=E&65535,T&=15,T&&(h<T&&(c+=I[d++]<<h,h+=8),_+=c&(1<<T)-1,c>>>=T,h-=T),h<15&&(c+=I[d++]<<h,h+=8,c+=I[d++]<<h,h+=8),E=A[c&x];r:for(;;){if(T=E>>>24,c>>>=T,h-=T,T=E>>>16&255,T&16){if(C=E&65535,T&=15,h<T&&(c+=I[d++]<<h,h+=8,h<T&&(c+=I[d++]<<h,h+=8)),C+=c&(1<<T)-1,C>o){m.msg="invalid distance too far back",f.mode=y;break e}if(c>>>=T,h-=T,T=a-i,C>T){if(T=C-T,T>u&&f.sane){m.msg="invalid distance too far back",f.mode=y;break e}if(w=0,O=s,r===0){if(w+=e-T,T<_){_-=T;do k[a++]=s[w++];while(--T);w=a-C,O=k}}else if(r<T){if(w+=e+r-T,T-=r,T<_){_-=T;do k[a++]=s[w++];while(--T);if(w=0,r<_){T=r,_-=T;do k[a++]=s[w++];while(--T);w=a-C,O=k}}}else if(w+=r-T,T<_){_-=T;do k[a++]=s[w++];while(--T);w=a-C,O=k}for(;_>2;)k[a++]=O[w++],k[a++]=O[w++],k[a++]=O[w++],_-=3;_&&(k[a++]=O[w++],_>1&&(k[a++]=O[w++]))}else{w=a-C;do k[a++]=k[w++],k[a++]=k[w++],k[a++]=k[w++],_-=3;while(_>2);_&&(k[a++]=k[w++],_>1&&(k[a++]=k[w++]))}}else if((T&64)===0){E=A[(E&65535)+(c&(1<<T)-1)];continue r}else{m.msg="invalid distance code",f.mode=y;break e}break}}else if((T&64)===0){E=v[(E&65535)+(c&(1<<T)-1)];continue t}else if(T&32){f.mode=g;break e}else{m.msg="invalid literal/length code",f.mode=y;break e}break}}while(d<l&&a<t);_=h>>3,d-=_,h-=_<<3,c&=(1<<h)-1,m.next_in=d,m.next_out=a,m.avail_in=d<l?5+(l-d):5-(d-l),m.avail_out=a<t?257+(t-a):257-(a-t),f.hold=c,f.bits=h;return}},szbU:function(R,D,n){var y=n("bYtY"),g=y.each;function S(p){var f=p&&p.visualMap;y.isArray(f)||(f=f?[f]:[]),g(f,function(d){if(!d)return;m(d,"splitList")&&!m(d,"pieces")&&(d.pieces=d.splitList,delete d.splitList);var l=d.pieces;l&&y.isArray(l)&&g(l,function(a){y.isObject(a)&&(m(a,"start")&&!m(a,"min")&&(a.min=a.start),m(a,"end")&&!m(a,"max")&&(a.max=a.end))})})}function m(p,f){return p&&p.hasOwnProperty&&p.hasOwnProperty(f)}R.exports=S},t23M:function(R,D,n){"use strict";var y=n("wx14"),g=n("q1tI"),S=n("Zm9Q"),m=n("Kwbf"),p=n("VTBJ"),f=n("U8pU"),d=n("m+aA"),l=n("c+Xe"),a=g.createContext(null);function i(M){var U=M.children,P=M.onBatchResize,X=g.useRef(0),F=g.useRef([]),j=g.useContext(a),K=g.useCallback(function(z,V,Q){X.current+=1;var G=X.current;F.current.push({size:z,element:V,data:Q}),Promise.resolve().then(function(){G===X.current&&(P==null||P(F.current),F.current=[])}),j==null||j(z,V,Q)},[P,j]);return g.createElement(a.Provider,{value:K},U)}var t=n("bdgK"),o=new Map;function e(M){M.forEach(function(U){var P,X=U.target;(P=o.get(X))===null||P===void 0||P.forEach(function(F){return F(X)})})}var u=new t.default(e),r=null,s=null;function c(M,U){o.has(M)||(o.set(M,new Set),u.observe(M)),o.get(M).add(U)}function h(M,U){o.has(M)&&(o.get(M).delete(U),o.get(M).size||(u.unobserve(M),o.delete(M)))}var v=n("1OyB"),A=n("vuIU"),b=n("Ji7U"),x=n("LK+K"),E=function(M){Object(b.a)(P,M);var U=Object(x.a)(P);function P(){return Object(v.a)(this,P),U.apply(this,arguments)}return Object(A.a)(P,[{key:"render",value:function(){return this.props.children}}]),P}(g.Component);function T(M,U){var P=M.children,X=M.disabled,F=g.useRef(null),j=g.useRef(null),K=g.useContext(a),z=typeof P=="function",V=z?P(F):P,Q=g.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),G=!z&&g.isValidElement(V)&&Object(l.c)(V),te=G?V.ref:null,q=Object(l.d)(te,F),se=function(){var Me;return Object(d.a)(F.current)||(F.current&&Object(f.a)(F.current)==="object"?Object(d.a)((Me=F.current)===null||Me===void 0?void 0:Me.nativeElement):null)||Object(d.a)(j.current)};g.useImperativeHandle(U,function(){return se()});var re=g.useRef(M);re.current=M;var we=g.useCallback(function(Oe){var Me=re.current,Qe=Me.onResize,Ve=Me.data,dt=Oe.getBoundingClientRect(),Fe=dt.width,ue=dt.height,et=Oe.offsetWidth,he=Oe.offsetHeight,J=Math.floor(Fe),Y=Math.floor(ue);if(Q.current.width!==J||Q.current.height!==Y||Q.current.offsetWidth!==et||Q.current.offsetHeight!==he){var $={width:J,height:Y,offsetWidth:et,offsetHeight:he};Q.current=$;var de=et===Math.round(Fe)?Fe:et,be=he===Math.round(ue)?ue:he,Te=Object(p.a)(Object(p.a)({},$),{},{offsetWidth:de,offsetHeight:be});K==null||K(Te,Oe,Ve),Qe&&Promise.resolve().then(function(){Qe(Te,Oe)})}},[]);return g.useEffect(function(){var Oe=se();return Oe&&!X&&c(Oe,we),function(){return h(Oe,we)}},[F.current,X]),g.createElement(E,{ref:j},G?g.cloneElement(V,{ref:q}):V)}var _=g.forwardRef(T),C=_,w="rc-observer-key";function O(M,U){var P=M.children,X=typeof P=="function"?[P]:Object(S.a)(P);return X.map(function(F,j){var K=(F==null?void 0:F.key)||"".concat(w,"-").concat(j);return g.createElement(C,Object(y.a)({},M,{key:K,ref:j===0?U:void 0}),F)})}var I=g.forwardRef(O);I.Collection=i;var k=D.a=I},t3Fx:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=Object.assign||function(s){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(s[v]=h[v])}return s},g=function(){function s(c,h){for(var v=0;v<h.length;v++){var A=h[v];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(c,A.key,A)}}return function(c,h,v){return h&&s(c.prototype,h),v&&s(c,v),c}}(),S=n("q1tI"),m=t(S),p=n("17x9"),f=t(p),d=n("tkwv"),l=t(d),a=n("u3os"),i=n("kzFp");function t(s){return s&&s.__esModule?s:{default:s}}function o(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}function e(s,c){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:s}function u(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);s.prototype=Object.create(c&&c.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(s,c):s.__proto__=c)}var r=function(s){u(c,s);function c(h){o(this,c);var v=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,h));return v.getEchartsInstance=function(){return v.echartsLib.getInstanceByDom(v.echartsElement)||v.echartsLib.init(v.echartsElement,v.props.theme,v.props.opts)},v.dispose=function(){if(v.echartsElement){try{(0,a.clear)(v.echartsElement)}catch(A){console.warn(A)}v.echartsLib.dispose(v.echartsElement)}},v.rerender=function(){var A=v.props,b=A.onEvents,x=A.onChartReady,E=v.renderEchartDom();v.bindEvents(E,b||{}),typeof x=="function"&&v.props.onChartReady(E),v.echartsElement&&(0,a.bind)(v.echartsElement,function(){try{E.resize()}catch(T){console.warn(T)}})},v.bindEvents=function(A,b){var x=function(_,C){typeof _=="string"&&typeof C=="function"&&A.on(_,function(w){C(w,A)})};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&x(E,b[E])},v.renderEchartDom=function(){var A=v.getEchartsInstance();return A.setOption(v.props.option,v.props.notMerge||!1,v.props.lazyUpdate||!1),v.props.showLoading?A.showLoading(v.props.loadingOption||null):A.hideLoading(),A},v.echartsLib=h.echarts,v.echartsElement=null,v}return g(c,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(v){if(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(v,this.props))return;if(!(0,l.default)(v.theme,this.props.theme)||!(0,l.default)(v.opts,this.props.opts)||!(0,l.default)(v.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var A=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,l.default)((0,i.pick)(this.props,A),(0,i.pick)(v,A)))return;var b=this.renderEchartDom();if(!(0,l.default)(v.style,this.props.style)||!(0,l.default)(v.className,this.props.className))try{b.resize()}catch(x){console.warn(x)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var v=this,A=this.props,b=A.style,x=A.className,E=y({height:300},b);return m.default.createElement("div",{ref:function(_){v.echartsElement=_},style:E,className:"echarts-for-react "+x})}}]),c}(S.Component);D.default=r,r.propTypes={option:f.default.object.isRequired,echarts:f.default.object,notMerge:f.default.bool,lazyUpdate:f.default.bool,style:f.default.object,className:f.default.string,theme:f.default.oneOfType([f.default.string,f.default.object]),onChartReady:f.default.func,showLoading:f.default.bool,loadingOption:f.default.object,onEvents:f.default.object,opts:f.default.shape({devicePixelRatio:f.default.number,renderer:f.default.oneOf(["canvas","svg"]),width:f.default.oneOfType([f.default.number,f.default.oneOf([null,void 0,"auto"])]),height:f.default.oneOfType([f.default.number,f.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:f.default.func},r.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(R,D,n){var y=n("bYtY"),g=n("IwbS"),S=n("Qxkt"),m=n("Znkb"),p=n("+rIm"),f=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function d(t,o,e){o[1]>o[0]&&(o=o.slice().reverse());var u=t.coordToPoint([o[0],e]),r=t.coordToPoint([o[1],e]);return{x1:u[0],y1:u[1],x2:r[0],y2:r[1]}}function l(t){var o=t.getRadiusAxis();return o.inverse?0:1}function a(t){var o=t[0],e=t[t.length-1];o&&e&&Math.abs(Math.abs(o.coord-e.coord)-360)<1e-4&&t.pop()}var i=m.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,o){if(this.group.removeAll(),!t.get("show"))return;var e=t.axis,u=e.polar,r=u.getRadiusAxis().getExtent(),s=e.getTicksCoords(),c=e.getMinorTicksCoords(),h=y.map(e.getViewLabels(),function(v){var v=y.clone(v);return v.coord=e.dataToCoord(v.tickValue),v});a(h),a(s),y.each(f,function(v){t.get(v+".show")&&(!e.scale.isBlank()||v==="axisLine")&&this["_"+v](t,u,s,c,r,h)},this)},_axisLine:function(t,o,e,u,r){var s=t.getModel("axisLine.lineStyle"),c=l(o),h=c?0:1,v;r[h]===0?v=new g.Circle({shape:{cx:o.cx,cy:o.cy,r:r[c]},style:s.getLineStyle(),z2:1,silent:!0}):v=new g.Ring({shape:{cx:o.cx,cy:o.cy,r:r[c],r0:r[h]},style:s.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,this.group.add(v)},_axisTick:function(t,o,e,u,r){var s=t.getModel("axisTick"),c=(s.get("inside")?-1:1)*s.get("length"),h=r[l(o)],v=y.map(e,function(A){return new g.Line({shape:d(o,[h,h+c],A.coord)})});this.group.add(g.mergePath(v,{style:y.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,o,e,u,r){if(!u.length)return;for(var s=t.getModel("axisTick"),c=t.getModel("minorTick"),h=(s.get("inside")?-1:1)*c.get("length"),v=r[l(o)],A=[],b=0;b<u.length;b++)for(var x=0;x<u[b].length;x++)A.push(new g.Line({shape:d(o,[v,v+h],u[b][x].coord)}));this.group.add(g.mergePath(A,{style:y.defaults(c.getModel("lineStyle").getLineStyle(),y.defaults(s.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(t,o,e,u,r,s){var c=t.getCategories(!0),h=t.getModel("axisLabel"),v=h.get("margin"),A=t.get("triggerEvent");y.each(s,function(b,x){var E=h,T=b.tickValue,_=r[l(o)],C=o.coordToPoint([_+v,b.coord]),w=o.cx,O=o.cy,I=Math.abs(C[0]-w)/_<.3?"center":C[0]>w?"left":"right",k=Math.abs(C[1]-O)/_<.3?"middle":C[1]>O?"top":"bottom";c&&c[T]&&c[T].textStyle&&(E=new S(c[T].textStyle,h,h.ecModel));var M=new g.Text({silent:p.isLabelSilent(t)});this.group.add(M),g.setTextStyle(M.style,E,{x:C[0],y:C[1],textFill:E.getTextColor()||t.get("axisLine.lineStyle.color"),text:b.formattedLabel,textAlign:I,textVerticalAlign:k}),A&&(M.eventData=p.makeAxisEventDataBase(t),M.eventData.targetType="axisLabel",M.eventData.value=b.rawLabel)},this)},_splitLine:function(t,o,e,u,r){var s=t.getModel("splitLine"),c=s.getModel("lineStyle"),h=c.get("color"),v=0;h=h instanceof Array?h:[h];for(var A=[],b=0;b<e.length;b++){var x=v++%h.length;A[x]=A[x]||[],A[x].push(new g.Line({shape:d(o,r,e[b].coord)}))}for(var b=0;b<A.length;b++)this.group.add(g.mergePath(A[b],{style:y.defaults({stroke:h[b%h.length]},c.getLineStyle()),silent:!0,z:t.get("z")}))},_minorSplitLine:function(t,o,e,u,r){if(!u.length)return;for(var s=t.getModel("minorSplitLine"),c=s.getModel("lineStyle"),h=[],v=0;v<u.length;v++)for(var A=0;A<u[v].length;A++)h.push(new g.Line({shape:d(o,r,u[v][A].coord)}));this.group.add(g.mergePath(h,{style:c.getLineStyle(),silent:!0,z:t.get("z")}))},_splitArea:function(t,o,e,u,r){if(!e.length)return;var s=t.getModel("splitArea"),c=s.getModel("areaStyle"),h=c.get("color"),v=0;h=h instanceof Array?h:[h];for(var A=[],b=Math.PI/180,x=-e[0].coord*b,E=Math.min(r[0],r[1]),T=Math.max(r[0],r[1]),_=t.get("clockwise"),C=1;C<e.length;C++){var w=v++%h.length;A[w]=A[w]||[],A[w].push(new g.Sector({shape:{cx:o.cx,cy:o.cy,r0:E,r:T,startAngle:x,endAngle:-e[C].coord*b,clockwise:_},silent:!0})),x=-e[C].coord*b}for(var C=0;C<A.length;C++)this.group.add(g.mergePath(A[C],{style:y.defaults({fill:h[C%h.length]},c.getAreaStyle()),silent:!0}))}});R.exports=i},tMB7:function(R,D,n){var y=n("y1pI");function g(S){var m=this.__data__,p=y(m,S);return p<0?void 0:m[p][1]}R.exports=g},tSko:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("SRve")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="PlusOutlined";var i=m.forwardRef(a);D.default=i},tU7J:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("/qDX"),m=n.n(S),p=n("5Dmo"),f=n("5NDa")},tadb:function(R,D,n){var y=n("Cwc5"),g=n("Kz5y"),S=y(g,"DataView");R.exports=S},tceW:function(R,D,n){var y=n("KCsZ"),g=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),S={getBarItemStyle:function(m){var p=g(this,m);if(this.getBorderLineDash){var f=this.getBorderLineDash();f&&(p.lineDash=f)}return p}};R.exports=S},tkwv:function(R,D,n){"use strict";var y=Array.isArray,g=Object.keys,S=Object.prototype.hasOwnProperty;R.exports=function m(p,f){if(p===f)return!0;if(p&&f&&typeof p=="object"&&typeof f=="object"){var d=y(p),l=y(f),a,i,t;if(d&&l){if(i=p.length,i!=f.length)return!1;for(a=i;a--!==0;)if(!m(p[a],f[a]))return!1;return!0}if(d!=l)return!1;var o=p instanceof Date,e=f instanceof Date;if(o!=e)return!1;if(o&&e)return p.getTime()==f.getTime();var u=p instanceof RegExp,r=f instanceof RegExp;if(u!=r)return!1;if(u&&r)return p.toString()==f.toString();var s=g(p);if(i=s.length,i!==g(f).length)return!1;for(a=i;a--!==0;)if(!S.call(f,s[a]))return!1;for(a=i;a--!==0;)if(t=s[a],!m(p[t],f[t]))return!1;return!0}return p!==p&&f!==f}},txkQ:function(R,D,n){var y=n("aX58");D.zrender=y;var g=n("Fofx");D.matrix=g;var S=n("QBsz");D.vector=S;var m=n("bYtY"),p=n("Qe9p");D.color=p;var f=n("IwbS"),d=n("OELB");D.number=d;var l=n("7aKB");D.format=l;var a=n("iLNv"),i=a.throttle;D.throttle=a.throttle;var t=n("FUi9");D.helper=t;var o=n("vafp");D.parseGeoJSON=o;var e=n("YXkt");D.List=e;var u=n("Qxkt");D.Model=u;var r=n("hM6l");D.Axis=r;var s=n("ItGF");D.env=s;var c=o,h={};m.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(A){h[A]=m[A]});var v={};m.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(A){v[A]=f[A]}),D.parseGeoJson=c,D.util=h,D.graphic=v},u3DP:function(R,D,n){var y=n("6GrX"),g=n("OELB"),S=g.parsePercent,m=Math.PI/180;function p(a,i,t,o,e,u,r,s,c,h){a.sort(function(I,k){return I.y-k.y});function v(I,k,M,U){for(var P=I;P<k&&!(a[P].y+M>c+r);P++)if(a[P].y+=M,P>I&&P+1<k&&a[P+1].y>a[P].y+a[P].height){A(P,M/2);return}A(k-1,M/2)}function A(I,k){for(var M=I;M>=0&&!(a[M].y-k<c);M--)if(a[M].y-=k,M>0&&a[M].y>a[M-1].y+a[M-1].height)break}function b(I,k,M,U,P,X){for(var F=(X>0,k?Number.MAX_VALUE:0),j=0,K=I.length;j<K;j++){if(I[j].labelAlignTo!=="none")continue;var z=Math.abs(I[j].y-U),V=I[j].len,Q=I[j].len2,G=z<P+V?Math.sqrt((P+V+Q)*(P+V+Q)-z*z):Math.abs(I[j].x-M);k&&G>=F&&(G=F-10),!k&&G<=F&&(G=F+10),I[j].x=M+G*X,F=G}}for(var x=0,E,T=a.length,_=[],C=[],w=0;w<T;w++){if(a[w].position==="outer"&&a[w].labelAlignTo==="labelLine"){var O=a[w].x-h;a[w].linePoints[1][0]+=O,a[w].x=h}E=a[w].y-x,E<0&&v(w,T,-E,e),x=a[w].y+a[w].height}r-x<0&&A(T-1,x-r);for(var w=0;w<T;w++)a[w].y>=t?C.push(a[w]):_.push(a[w]);b(_,!1,i,t,o,e),b(C,!0,i,t,o,e)}function f(a,i,t,o,e,u,r,s){for(var c=[],h=[],v=Number.MAX_VALUE,A=-Number.MAX_VALUE,b=0;b<a.length;b++){if(d(a[b]))continue;a[b].x<i?(v=Math.min(v,a[b].x),c.push(a[b])):(A=Math.max(A,a[b].x),h.push(a[b]))}p(h,i,t,o,1,e,u,r,s,A),p(c,i,t,o,-1,e,u,r,s,v);for(var b=0;b<a.length;b++){var x=a[b];if(d(x))continue;var E=x.linePoints;if(E){var T=x.labelAlignTo==="edge",_=x.textRect.width,C;T?x.x<i?C=E[2][0]-x.labelDistance-r-x.labelMargin:C=r+e-x.labelMargin-E[2][0]-x.labelDistance:x.x<i?C=x.x-r-x.bleedMargin:C=r+e-x.x-x.bleedMargin,C<x.textRect.width&&(x.text=y.truncateText(x.text,C,x.font),x.labelAlignTo==="edge"&&(_=y.getWidth(x.text,x.font)));var w=E[1][0]-E[2][0];T?x.x<i?E[2][0]=r+x.labelMargin+_+x.labelDistance:E[2][0]=r+e-x.labelMargin-_-x.labelDistance:(x.x<i?E[2][0]=x.x+x.labelDistance:E[2][0]=x.x-x.labelDistance,E[1][0]=E[2][0]+w),E[1][1]=E[2][1]=x.y}}}function d(a){return a.position==="center"}function l(a,i,t,o,e,u){var r=a.getData(),s=[],c,h,v=!1,A=(a.get("minShowLabelAngle")||0)*m;r.each(function(b){var x=r.getItemLayout(b),E=r.getItemModel(b),T=E.getModel("label"),_=T.get("position")||E.get("emphasis.label.position"),C=T.get("distanceToLabelLine"),w=T.get("alignTo"),O=S(T.get("margin"),t),I=T.get("bleedMargin"),k=T.getFont(),M=E.getModel("labelLine"),U=M.get("length");U=S(U,t);var P=M.get("length2");if(P=S(P,t),x.angle<A)return;var X=(x.startAngle+x.endAngle)/2,F=Math.cos(X),j=Math.sin(X),K,z,V,Q;c=x.cx,h=x.cy;var G=a.getFormattedLabel(b,"normal")||r.getName(b),te=y.getBoundingRect(G,k,Q,"top"),q=_==="inside"||_==="inner";if(_==="center")K=x.cx,z=x.cy,Q="center";else{var se=(q?(x.r+x.r0)/2*F:x.r*F)+c,re=(q?(x.r+x.r0)/2*j:x.r*j)+h;if(K=se+F*3,z=re+j*3,!q){var we=se+F*(U+i-x.r),Oe=re+j*(U+i-x.r),Me=we+(F<0?-1:1)*P,Qe=Oe;w==="edge"?K=F<0?e+O:e+t-O:K=Me+(F<0?-C:C),z=Qe,V=[[se,re],[we,Oe],[Me,Qe]]}Q=q?"center":w==="edge"?F>0?"right":"left":F>0?"left":"right"}var Ve,dt=T.get("rotate");typeof dt=="number"?Ve=dt*(Math.PI/180):Ve=dt?F<0?-X+Math.PI:-X:0,v=!!Ve,x.label={x:K,y:z,position:_,height:te.height,len:U,len2:P,linePoints:V,textAlign:Q,verticalAlign:"middle",rotation:Ve,inside:q,labelDistance:C,labelAlignTo:w,labelMargin:O,bleedMargin:I,textRect:te,text:G,font:k},q||s.push(x.label)}),!v&&a.get("avoidLabelOverlap")&&f(s,c,h,i,t,o,e,u)}R.exports=l},u3os:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ver=D.clear=D.bind=void 0;var y=n("P4Qj"),g=function(f,d){var l=(0,y.getSensor)(f);return l.bind(d),function(){l.unbind(d)}};D.bind=g;var S=function(f){var d=(0,y.getSensor)(f);(0,y.removeSensor)(d)};D.clear=S;var m="1.0.2";D.ver=m},u4NN:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("Uc92")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="EyeOutlined";var i=m.forwardRef(a);D.default=i},u8Dt:function(R,D,n){var y=n("YESw"),g="__lodash_hash_undefined__",S=Object.prototype,m=S.hasOwnProperty;function p(f){var d=this.__data__;if(y){var l=d[f];return l===g?void 0:l}return m.call(d,f)?d[f]:void 0}R.exports=p},u9fO:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("b80e"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},uAnK:function(R,D,n){var y=n("bYtY"),g=n("Kagy"),S=n("KxfA"),m=S.retrieveRawValue;function p(f,d){var l=d.getModel("aria");if(l.get("show")){if(l.get("description")){f.setAttribute("aria-label",l.get("description"));return}}else return;var a=0;d.eachSeries(function(b,x){++a},this);var i=l.get("data.maxCount")||10,t=l.get("series.maxCount")||10,o=Math.min(a,t),e;if(a<1)return;var u=v();u?e=c(h("general.withTitle"),{title:u}):e=h("general.withoutTitle");var r=[],s=a>1?"series.multiple.prefix":"series.single.prefix";e+=c(h(s),{seriesCount:a}),d.eachSeries(function(b,x){if(x<o){var E,T=b.get("name"),_="series."+(a>1?"multiple":"single")+".";E=h(T?_+"withName":_+"withoutName"),E=c(E,{seriesId:b.seriesIndex,seriesName:b.get("name"),seriesType:A(b.subType)});var C=b.getData();window.data=C,C.count()>i?E+=c(h("data.partialData"),{displayCnt:i}):E+=h("data.allData");for(var w=[],O=0;O<C.count();O++)if(O<i){var I=C.getName(O),k=m(C,O);w.push(c(h(I?"data.withName":"data.withoutName"),{name:I,value:k}))}E+=w.join(h("data.separator.middle"))+h("data.separator.end"),r.push(E)}}),e+=r.join(h("series.multiple.separator.middle"))+h("series.multiple.separator.end"),f.setAttribute("aria-label",e);function c(b,x){if(typeof b!="string")return b;var E=b;return y.each(x,function(T,_){E=E.replace(new RegExp("\\{\\s*"+_+"\\s*\\}","g"),T)}),E}function h(b){var x=l.get(b);if(x==null){for(var E=b.split("."),T=g.aria,_=0;_<E.length;++_)T=T[E[_]];return T}else return x}function v(){var b=d.getModel("title").option;return b&&b.length&&(b=b[0]),b&&b.text}function A(b){return g.series.typeNames[b]||"\u81EA\u5B9A\u4E49\u56FE"}}R.exports=p},uGsb:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("MlIO"),n("1uat"))})(this,function(y){return function(){var g=y,S=g.x64,m=S.Word,p=S.WordArray,f=g.algo,d=f.SHA512,l=f.SHA384=d.extend({_doReset:function(){this._hash=new p.init([new m.init(3418070365,3238371032),new m.init(1654270250,914150663),new m.init(2438529370,812702999),new m.init(355462360,4144912697),new m.init(1731405415,4290775857),new m.init(2394180231,1750603025),new m.init(3675008525,1694076839),new m.init(1203062813,3204075428)])},_doFinalize:function(){var i=d._doFinalize.call(this);return i.sigBytes-=16,i}});g.SHA384=d._createHelper(l),g.HmacSHA384=d._createHmacHelper(l)}(),y.SHA384})},uGxW:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.NoPadding={pad:function(){},unpad:function(){}},y.pad.NoPadding})},uK0f:function(R,D,n){(function(y,g){R.exports=g()})(this,function(){"use strict";function y(g,S,m){m=m||{},m.childrenKeyName=m.childrenKeyName||"children";var p=g||[],f=[],d=0;do{var l=p.filter(function(a){return S(a,d)})[0];if(!l)break;f.push(l),p=l[m.childrenKeyName]||[],d+=1}while(p.length>0);return f}return y})},uOyE:function(R,D,n){var y=n("ProS");y.registerAction({type:"brush",event:"brush"},function(g,S){S.eachComponent({mainType:"brush",query:g},function(m){m.setAreas(g.areas)})}),y.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),y.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(R,D,n){R.exports=y;function y(){return n("gaXo"),{}}},uciX:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("wx14"),S=n("1OyB"),m=n("vuIU"),p=n("JX7q"),f=n("Ji7U"),d=n("LK+K"),l=n("rePB"),a=n("q1tI"),i=n("i8i4"),t=n.n(i),o=n("wgJM"),e=n("l4aY"),u=n("m+aA"),r=n("c+Xe"),s=n("zT1h"),c=n("QC+M"),h=n("TSYQ"),v=n.n(h);function A(ue,et,he){return he?ue[0]===et[0]:ue[0]===et[0]&&ue[1]===et[1]}function b(ue,et,he){var J=ue[et]||{};return Object(y.a)(Object(y.a)({},J),he)}function x(ue,et,he,J){for(var Y=he.points,$=Object.keys(ue),de=0;de<$.length;de+=1){var be=$[de];if(A(ue[be].points,Y,J))return"".concat(et,"-placement-").concat(be)}return""}var E=n("ODXe"),T=n("Ff2n"),_=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ue=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(ue)||/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(ue==null?void 0:ue.substr(0,4))},C=n("8XRh");function w(ue){var et=ue.prefixCls,he=ue.motion,J=ue.animation,Y=ue.transitionName;return he||(J?{motionName:"".concat(et,"-").concat(J)}:Y?{motionName:Y}:null)}function O(ue){var et=ue.prefixCls,he=ue.visible,J=ue.zIndex,Y=ue.mask,$=ue.maskMotion,de=ue.maskAnimation,be=ue.maskTransitionName;if(!Y)return null;var Te={};return($||be||de)&&(Te=Object(y.a)({motionAppear:!0},w({motion:$,prefixCls:et,transitionName:be,animation:de}))),a.createElement(C.b,Object(g.a)({},Te,{visible:he,removeOnLeave:!0}),function(Be){var fe=Be.className;return a.createElement("div",{style:{zIndex:J},className:v()("".concat(et,"-mask"),fe)})})}var I=n("9mu1"),k=n("TNol"),M=n("U8pU");function U(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */U=function(){return et};var ue,et={},he=Object.prototype,J=he.hasOwnProperty,Y=Object.defineProperty||function(bt,or,_t){bt[or]=_t.value},$=typeof Symbol=="function"?Symbol:{},de=$.iterator||"@@iterator",be=$.asyncIterator||"@@asyncIterator",Te=$.toStringTag||"@@toStringTag";function Be(bt,or,_t){return Object.defineProperty(bt,or,{value:_t,enumerable:!0,configurable:!0,writable:!0}),bt[or]}try{Be({},"")}catch(bt){Be=function(_t,jt,ut){return _t[jt]=ut}}function fe(bt,or,_t,jt){var ut=or&&or.prototype instanceof nr?or:nr,St=Object.create(ut.prototype),mt=new Kt(jt||[]);return Y(St,"_invoke",{value:oe(bt,_t,mt)}),St}function xe(bt,or,_t){try{return{type:"normal",arg:bt.call(or,_t)}}catch(jt){return{type:"throw",arg:jt}}}et.wrap=fe;var ke="suspendedStart",nt="suspendedYield",Ct="executing",pt="completed",He={};function nr(){}function ht(){}function Gt(){}var pr={};Be(pr,de,function(){return this});var Qt=Object.getPrototypeOf,Ht=Qt&&Qt(Qt(vr([])));Ht&&Ht!==he&&J.call(Ht,de)&&(pr=Ht);var Jt=Gt.prototype=nr.prototype=Object.create(pr);function Ge(bt){["next","throw","return"].forEach(function(or){Be(bt,or,function(_t){return this._invoke(or,_t)})})}function pe(bt,or){function _t(ut,St,mt,lt){var tt=xe(bt[ut],bt,St);if(tt.type!=="throw"){var Cr=tt.arg,nn=Cr.value;return nn&&Object(M.a)(nn)=="object"&&J.call(nn,"__await")?or.resolve(nn.__await).then(function(mn){_t("next",mn,mt,lt)},function(mn){_t("throw",mn,mt,lt)}):or.resolve(nn).then(function(mn){Cr.value=mn,mt(Cr)},function(mn){return _t("throw",mn,mt,lt)})}lt(tt.arg)}var jt;Y(this,"_invoke",{value:function(St,mt){function lt(){return new or(function(tt,Cr){_t(St,mt,tt,Cr)})}return jt=jt?jt.then(lt,lt):lt()}})}function oe(bt,or,_t){var jt=ke;return function(ut,St){if(jt===Ct)throw new Error("Generator is already running");if(jt===pt){if(ut==="throw")throw St;return{value:ue,done:!0}}for(_t.method=ut,_t.arg=St;;){var mt=_t.delegate;if(mt){var lt=ct(mt,_t);if(lt){if(lt===He)continue;return lt}}if(_t.method==="next")_t.sent=_t._sent=_t.arg;else if(_t.method==="throw"){if(jt===ke)throw jt=pt,_t.arg;_t.dispatchException(_t.arg)}else _t.method==="return"&&_t.abrupt("return",_t.arg);jt=Ct;var tt=xe(bt,or,_t);if(tt.type==="normal"){if(jt=_t.done?pt:nt,tt.arg===He)continue;return{value:tt.arg,done:_t.done}}tt.type==="throw"&&(jt=pt,_t.method="throw",_t.arg=tt.arg)}}}function ct(bt,or){var _t=or.method,jt=bt.iterator[_t];if(jt===ue)return or.delegate=null,_t==="throw"&&bt.iterator.return&&(or.method="return",or.arg=ue,ct(bt,or),or.method==="throw")||_t!=="return"&&(or.method="throw",or.arg=new TypeError("The iterator does not provide a '"+_t+"' method")),He;var ut=xe(jt,bt.iterator,or.arg);if(ut.type==="throw")return or.method="throw",or.arg=ut.arg,or.delegate=null,He;var St=ut.arg;return St?St.done?(or[bt.resultName]=St.value,or.next=bt.nextLoc,or.method!=="return"&&(or.method="next",or.arg=ue),or.delegate=null,He):St:(or.method="throw",or.arg=new TypeError("iterator result is not an object"),or.delegate=null,He)}function qe(bt){var or={tryLoc:bt[0]};1 in bt&&(or.catchLoc=bt[1]),2 in bt&&(or.finallyLoc=bt[2],or.afterLoc=bt[3]),this.tryEntries.push(or)}function me(bt){var or=bt.completion||{};or.type="normal",delete or.arg,bt.completion=or}function Kt(bt){this.tryEntries=[{tryLoc:"root"}],bt.forEach(qe,this),this.reset(!0)}function vr(bt){if(bt||bt===""){var or=bt[de];if(or)return or.call(bt);if(typeof bt.next=="function")return bt;if(!isNaN(bt.length)){var _t=-1,jt=function ut(){for(;++_t<bt.length;)if(J.call(bt,_t))return ut.value=bt[_t],ut.done=!1,ut;return ut.value=ue,ut.done=!0,ut};return jt.next=jt}}throw new TypeError(Object(M.a)(bt)+" is not iterable")}return ht.prototype=Gt,Y(Jt,"constructor",{value:Gt,configurable:!0}),Y(Gt,"constructor",{value:ht,configurable:!0}),ht.displayName=Be(Gt,Te,"GeneratorFunction"),et.isGeneratorFunction=function(bt){var or=typeof bt=="function"&&bt.constructor;return!!or&&(or===ht||(or.displayName||or.name)==="GeneratorFunction")},et.mark=function(bt){return Object.setPrototypeOf?Object.setPrototypeOf(bt,Gt):(bt.__proto__=Gt,Be(bt,Te,"GeneratorFunction")),bt.prototype=Object.create(Jt),bt},et.awrap=function(bt){return{__await:bt}},Ge(pe.prototype),Be(pe.prototype,be,function(){return this}),et.AsyncIterator=pe,et.async=function(bt,or,_t,jt,ut){ut===void 0&&(ut=Promise);var St=new pe(fe(bt,or,_t,jt),ut);return et.isGeneratorFunction(or)?St:St.next().then(function(mt){return mt.done?mt.value:St.next()})},Ge(Jt),Be(Jt,Te,"Generator"),Be(Jt,de,function(){return this}),Be(Jt,"toString",function(){return"[object Generator]"}),et.keys=function(bt){var or=Object(bt),_t=[];for(var jt in or)_t.push(jt);return _t.reverse(),function ut(){for(;_t.length;){var St=_t.pop();if(St in or)return ut.value=St,ut.done=!1,ut}return ut.done=!0,ut}},et.values=vr,Kt.prototype={constructor:Kt,reset:function(or){if(this.prev=0,this.next=0,this.sent=this._sent=ue,this.done=!1,this.delegate=null,this.method="next",this.arg=ue,this.tryEntries.forEach(me),!or)for(var _t in this)_t.charAt(0)==="t"&&J.call(this,_t)&&!isNaN(+_t.slice(1))&&(this[_t]=ue)},stop:function(){this.done=!0;var or=this.tryEntries[0].completion;if(or.type==="throw")throw or.arg;return this.rval},dispatchException:function(or){if(this.done)throw or;var _t=this;function jt(Cr,nn){return mt.type="throw",mt.arg=or,_t.next=Cr,nn&&(_t.method="next",_t.arg=ue),!!nn}for(var ut=this.tryEntries.length-1;ut>=0;--ut){var St=this.tryEntries[ut],mt=St.completion;if(St.tryLoc==="root")return jt("end");if(St.tryLoc<=this.prev){var lt=J.call(St,"catchLoc"),tt=J.call(St,"finallyLoc");if(lt&&tt){if(this.prev<St.catchLoc)return jt(St.catchLoc,!0);if(this.prev<St.finallyLoc)return jt(St.finallyLoc)}else if(lt){if(this.prev<St.catchLoc)return jt(St.catchLoc,!0)}else{if(!tt)throw new Error("try statement without catch or finally");if(this.prev<St.finallyLoc)return jt(St.finallyLoc)}}}},abrupt:function(or,_t){for(var jt=this.tryEntries.length-1;jt>=0;--jt){var ut=this.tryEntries[jt];if(ut.tryLoc<=this.prev&&J.call(ut,"finallyLoc")&&this.prev<ut.finallyLoc){var St=ut;break}}St&&(or==="break"||or==="continue")&&St.tryLoc<=_t&&_t<=St.finallyLoc&&(St=null);var mt=St?St.completion:{};return mt.type=or,mt.arg=_t,St?(this.method="next",this.next=St.finallyLoc,He):this.complete(mt)},complete:function(or,_t){if(or.type==="throw")throw or.arg;return or.type==="break"||or.type==="continue"?this.next=or.arg:or.type==="return"?(this.rval=this.arg=or.arg,this.method="return",this.next="end"):or.type==="normal"&&_t&&(this.next=_t),He},finish:function(or){for(var _t=this.tryEntries.length-1;_t>=0;--_t){var jt=this.tryEntries[_t];if(jt.finallyLoc===or)return this.complete(jt.completion,jt.afterLoc),me(jt),He}},catch:function(or){for(var _t=this.tryEntries.length-1;_t>=0;--_t){var jt=this.tryEntries[_t];if(jt.tryLoc===or){var ut=jt.completion;if(ut.type==="throw"){var St=ut.arg;me(jt)}return St}}throw new Error("illegal catch attempt")},delegateYield:function(or,_t,jt){return this.delegate={iterator:vr(or),resultName:_t,nextLoc:jt},this.method==="next"&&(this.arg=ue),He}},et}var P=n("HaE+"),X=n("dm2S"),F=["measure","alignPre","align",null,"motion"],j=function(ue,et){var he=Object(X.a)(null),J=Object(E.a)(he,2),Y=J[0],$=J[1],de=Object(a.useRef)();function be(fe){$(fe,!0)}function Te(){o.a.cancel(de.current)}function Be(fe){Te(),de.current=Object(o.a)(function(){be(function(xe){switch(Y){case"align":return"motion";case"motion":return"stable";default:}return xe}),fe==null||fe()})}return Object(a.useEffect)(function(){be("measure")},[ue]),Object(a.useEffect)(function(){switch(Y){case"measure":et();break;default:}Y&&(de.current=Object(o.a)(Object(P.a)(U().mark(function fe(){var xe,ke;return U().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:xe=F.indexOf(Y),ke=F[xe+1],ke&&xe!==-1&&be(ke);case 3:case"end":return Ct.stop()}},fe)}))))},[Y]),Object(a.useEffect)(function(){return function(){Te()}},[]),[Y,Be]},K=function(ue){var et=a.useState({width:0,height:0}),he=Object(E.a)(et,2),J=he[0],Y=he[1];function $(be){var Te=be.offsetWidth,Be=be.offsetHeight,fe=be.getBoundingClientRect(),xe=fe.width,ke=fe.height;Math.abs(Te-xe)<1&&Math.abs(Be-ke)<1&&(Te=xe,Be=ke),Y({width:Te,height:Be})}var de=a.useMemo(function(){var be={};if(ue){var Te=J.width,Be=J.height;ue.indexOf("height")!==-1&&Be?be.height=Be:ue.indexOf("minHeight")!==-1&&Be&&(be.minHeight=Be),ue.indexOf("width")!==-1&&Te?be.width=Te:ue.indexOf("minWidth")!==-1&&Te&&(be.minWidth=Te)}return be},[ue,J]);return[de,$]},z=a.forwardRef(function(ue,et){var he=ue.visible,J=ue.prefixCls,Y=ue.className,$=ue.style,de=ue.children,be=ue.zIndex,Te=ue.stretch,Be=ue.destroyPopupOnHide,fe=ue.forceRender,xe=ue.align,ke=ue.point,nt=ue.getRootDomNode,Ct=ue.getClassNameFromAlign,pt=ue.onAlign,He=ue.onMouseEnter,nr=ue.onMouseLeave,ht=ue.onMouseDown,Gt=ue.onTouchStart,pr=ue.onClick,Qt=Object(a.useRef)(),Ht=Object(a.useRef)(),Jt=Object(a.useState)(),Ge=Object(E.a)(Jt,2),pe=Ge[0],oe=Ge[1],ct=K(Te),qe=Object(E.a)(ct,2),me=qe[0],Kt=qe[1];function vr(){Te&&Kt(nt())}var bt=j(he,vr),or=Object(E.a)(bt,2),_t=or[0],jt=or[1],ut=Object(a.useState)(0),St=Object(E.a)(ut,2),mt=St[0],lt=St[1],tt=Object(a.useRef)();Object(k.a)(function(){_t==="alignPre"&&lt(0)},[_t]);function Cr(){return ke||nt}function nn(){var Tt;(Tt=Qt.current)===null||Tt===void 0||Tt.forceAlign()}function mn(Tt,De){var Re=Ct(De);pe!==Re&&oe(Re),lt(function(Pe){return Pe+1}),_t==="align"&&(pt==null||pt(Tt,De))}Object(k.a)(function(){_t==="align"&&(mt<3?nn():jt(function(){var Tt;(Tt=tt.current)===null||Tt===void 0||Tt.call(tt)}))},[mt]);var Bn=Object(y.a)({},w(ue));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Tt){var De=Bn[Tt];Bn[Tt]=function(Re,Pe){return jt(),De==null?void 0:De(Re,Pe)}});function oi(){return new Promise(function(Tt){tt.current=Tt})}a.useEffect(function(){!Bn.motionName&&_t==="motion"&&jt()},[Bn.motionName,_t]),a.useImperativeHandle(et,function(){return{forceAlign:nn,getElement:function(){return Ht.current}}});var wn=Object(y.a)(Object(y.a)({},me),{},{zIndex:be,opacity:_t==="motion"||_t==="stable"||!he?void 0:0,pointerEvents:!he&&_t!=="stable"?"none":void 0},$),Rn=!0;xe!=null&&xe.points&&(_t==="align"||_t==="stable")&&(Rn=!1);var Zt=de;return a.Children.count(de)>1&&(Zt=a.createElement("div",{className:"".concat(J,"-content")},de)),a.createElement(C.b,Object(g.a)({visible:he,ref:Ht,leavedClassName:"".concat(J,"-hidden")},Bn,{onAppearPrepare:oi,onEnterPrepare:oi,removeOnLeave:Be,forceRender:fe}),function(Tt,De){var Re=Tt.className,Pe=Tt.style,rt=v()(J,Y,pe,Re);return a.createElement(I.a,{target:Cr(),key:"popup",ref:Qt,monitorWindowResize:!0,disabled:Rn,align:xe,onAlign:mn},a.createElement("div",{ref:De,className:rt,onMouseEnter:He,onMouseLeave:nr,onMouseDownCapture:ht,onTouchStartCapture:Gt,onClick:pr,style:Object(y.a)(Object(y.a)({},Pe),wn)},Zt))})});z.displayName="PopupInner";var V=z,Q=a.forwardRef(function(ue,et){var he=ue.prefixCls,J=ue.visible,Y=ue.zIndex,$=ue.children,de=ue.mobile;de=de===void 0?{}:de;var be=de.popupClassName,Te=de.popupStyle,Be=de.popupMotion,fe=Be===void 0?{}:Be,xe=de.popupRender,ke=ue.onClick,nt=a.useRef();a.useImperativeHandle(et,function(){return{forceAlign:function(){},getElement:function(){return nt.current}}});var Ct=Object(y.a)({zIndex:Y},Te),pt=$;return a.Children.count($)>1&&(pt=a.createElement("div",{className:"".concat(he,"-content")},$)),xe&&(pt=xe(pt)),a.createElement(C.b,Object(g.a)({visible:J,ref:nt,removeOnLeave:!0},fe),function(He,nr){var ht=He.className,Gt=He.style,pr=v()(he,be,ht);return a.createElement("div",{ref:nr,className:pr,onClick:ke,style:Object(y.a)(Object(y.a)({},Gt),Ct)},pt)})});Q.displayName="MobilePopupInner";var G=Q,te=["visible","mobile"],q=a.forwardRef(function(ue,et){var he=ue.visible,J=ue.mobile,Y=Object(T.a)(ue,te),$=Object(a.useState)(he),de=Object(E.a)($,2),be=de[0],Te=de[1],Be=Object(a.useState)(!1),fe=Object(E.a)(Be,2),xe=fe[0],ke=fe[1],nt=Object(y.a)(Object(y.a)({},Y),{},{visible:be});Object(a.useEffect)(function(){Te(he),he&&J&&ke(_())},[he,J]);var Ct=xe?a.createElement(G,Object(g.a)({},nt,{mobile:J,ref:et})):a.createElement(V,Object(g.a)({},nt,{ref:et}));return a.createElement("div",null,a.createElement(O,nt),Ct)});q.displayName="Popup";var se=q,re=a.createContext(null),we=re;function Oe(){}function Me(){return""}function Qe(ue){return ue?ue.ownerDocument:window.document}var Ve=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function dt(ue){var et=function(he){Object(f.a)(Y,he);var J=Object(d.a)(Y);function Y($){var de;Object(S.a)(this,Y),de=J.call(this,$),Object(l.a)(Object(p.a)(de),"popupRef",a.createRef()),Object(l.a)(Object(p.a)(de),"triggerRef",a.createRef()),Object(l.a)(Object(p.a)(de),"portalContainer",void 0),Object(l.a)(Object(p.a)(de),"attachId",void 0),Object(l.a)(Object(p.a)(de),"clickOutsideHandler",void 0),Object(l.a)(Object(p.a)(de),"touchOutsideHandler",void 0),Object(l.a)(Object(p.a)(de),"contextMenuOutsideHandler1",void 0),Object(l.a)(Object(p.a)(de),"contextMenuOutsideHandler2",void 0),Object(l.a)(Object(p.a)(de),"mouseDownTimeout",void 0),Object(l.a)(Object(p.a)(de),"focusTime",void 0),Object(l.a)(Object(p.a)(de),"preClickTime",void 0),Object(l.a)(Object(p.a)(de),"preTouchTime",void 0),Object(l.a)(Object(p.a)(de),"delayTimer",void 0),Object(l.a)(Object(p.a)(de),"hasPopupMouseDown",void 0),Object(l.a)(Object(p.a)(de),"onMouseEnter",function(Te){var Be=de.props.mouseEnterDelay;de.fireEvents("onMouseEnter",Te),de.delaySetPopupVisible(!0,Be,Be?null:Te)}),Object(l.a)(Object(p.a)(de),"onMouseMove",function(Te){de.fireEvents("onMouseMove",Te),de.setPoint(Te)}),Object(l.a)(Object(p.a)(de),"onMouseLeave",function(Te){de.fireEvents("onMouseLeave",Te),de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)}),Object(l.a)(Object(p.a)(de),"onPopupMouseEnter",function(){de.clearDelayTimer()}),Object(l.a)(Object(p.a)(de),"onPopupMouseLeave",function(Te){var Be;if(Te.relatedTarget&&!Te.relatedTarget.setTimeout&&Object(e.a)((Be=de.popupRef.current)===null||Be===void 0?void 0:Be.getElement(),Te.relatedTarget))return;de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)}),Object(l.a)(Object(p.a)(de),"onFocus",function(Te){de.fireEvents("onFocus",Te),de.clearDelayTimer(),de.isFocusToShow()&&(de.focusTime=Date.now(),de.delaySetPopupVisible(!0,de.props.focusDelay))}),Object(l.a)(Object(p.a)(de),"onMouseDown",function(Te){de.fireEvents("onMouseDown",Te),de.preClickTime=Date.now()}),Object(l.a)(Object(p.a)(de),"onTouchStart",function(Te){de.fireEvents("onTouchStart",Te),de.preTouchTime=Date.now()}),Object(l.a)(Object(p.a)(de),"onBlur",function(Te){de.fireEvents("onBlur",Te),de.clearDelayTimer(),de.isBlurToHide()&&de.delaySetPopupVisible(!1,de.props.blurDelay)}),Object(l.a)(Object(p.a)(de),"onContextMenu",function(Te){Te.preventDefault(),de.fireEvents("onContextMenu",Te),de.setPopupVisible(!0,Te)}),Object(l.a)(Object(p.a)(de),"onContextMenuClose",function(){de.isContextMenuToShow()&&de.close()}),Object(l.a)(Object(p.a)(de),"onClick",function(Te){if(de.fireEvents("onClick",Te),de.focusTime){var Be;if(de.preClickTime&&de.preTouchTime?Be=Math.min(de.preClickTime,de.preTouchTime):de.preClickTime?Be=de.preClickTime:de.preTouchTime&&(Be=de.preTouchTime),Math.abs(Be-de.focusTime)<20)return;de.focusTime=0}de.preClickTime=0,de.preTouchTime=0,de.isClickToShow()&&(de.isClickToHide()||de.isBlurToHide())&&Te&&Te.preventDefault&&Te.preventDefault();var fe=!de.state.popupVisible;(de.isClickToHide()&&!fe||fe&&de.isClickToShow())&&de.setPopupVisible(!de.state.popupVisible,Te)}),Object(l.a)(Object(p.a)(de),"onPopupMouseDown",function(){if(de.hasPopupMouseDown=!0,clearTimeout(de.mouseDownTimeout),de.mouseDownTimeout=window.setTimeout(function(){de.hasPopupMouseDown=!1},0),de.context){var Te;(Te=de.context).onPopupMouseDown.apply(Te,arguments)}}),Object(l.a)(Object(p.a)(de),"onDocumentClick",function(Te){if(de.props.mask&&!de.props.maskClosable)return;var Be=Te.target,fe=de.getRootDomNode(),xe=de.getPopupDomNode();(!Object(e.a)(fe,Be)||de.isContextMenuOnly())&&!Object(e.a)(xe,Be)&&!de.hasPopupMouseDown&&de.close()}),Object(l.a)(Object(p.a)(de),"getRootDomNode",function(){var Te=de.props.getTriggerDOMNode;if(Te)return Te(de.triggerRef.current);try{var Be=Object(u.a)(de.triggerRef.current);if(Be)return Be}catch(fe){}return t.a.findDOMNode(Object(p.a)(de))}),Object(l.a)(Object(p.a)(de),"getPopupClassNameFromAlign",function(Te){var Be=[],fe=de.props,xe=fe.popupPlacement,ke=fe.builtinPlacements,nt=fe.prefixCls,Ct=fe.alignPoint,pt=fe.getPopupClassNameFromAlign;return xe&&ke&&Be.push(x(ke,nt,Te,Ct)),pt&&Be.push(pt(Te)),Be.join(" ")}),Object(l.a)(Object(p.a)(de),"getComponent",function(){var Te=de.props,Be=Te.prefixCls,fe=Te.destroyPopupOnHide,xe=Te.popupClassName,ke=Te.onPopupAlign,nt=Te.popupMotion,Ct=Te.popupAnimation,pt=Te.popupTransitionName,He=Te.popupStyle,nr=Te.mask,ht=Te.maskAnimation,Gt=Te.maskTransitionName,pr=Te.maskMotion,Qt=Te.zIndex,Ht=Te.popup,Jt=Te.stretch,Ge=Te.alignPoint,pe=Te.mobile,oe=Te.forceRender,ct=Te.onPopupClick,qe=de.state,me=qe.popupVisible,Kt=qe.point,vr=de.getPopupAlign(),bt={};return de.isMouseEnterToShow()&&(bt.onMouseEnter=de.onPopupMouseEnter),de.isMouseLeaveToHide()&&(bt.onMouseLeave=de.onPopupMouseLeave),bt.onMouseDown=de.onPopupMouseDown,bt.onTouchStart=de.onPopupMouseDown,a.createElement(se,Object(g.a)({prefixCls:Be,destroyPopupOnHide:fe,visible:me,point:Ge&&Kt,className:xe,align:vr,onAlign:ke,animation:Ct,getClassNameFromAlign:de.getPopupClassNameFromAlign},bt,{stretch:Jt,getRootDomNode:de.getRootDomNode,style:He,mask:nr,zIndex:Qt,transitionName:pt,maskAnimation:ht,maskTransitionName:Gt,maskMotion:pr,ref:de.popupRef,motion:nt,mobile:pe,forceRender:oe,onClick:ct}),typeof Ht=="function"?Ht():Ht)}),Object(l.a)(Object(p.a)(de),"attachParent",function(Te){o.a.cancel(de.attachId);var Be=de.props,fe=Be.getPopupContainer,xe=Be.getDocument,ke=de.getRootDomNode(),nt;fe?(ke||fe.length===0)&&(nt=fe(ke)):nt=xe(de.getRootDomNode()).body,nt?nt.appendChild(Te):de.attachId=Object(o.a)(function(){de.attachParent(Te)})}),Object(l.a)(Object(p.a)(de),"getContainer",function(){if(!de.portalContainer){var Te=de.props.getDocument,Be=Te(de.getRootDomNode()).createElement("div");Be.style.position="absolute",Be.style.top="0",Be.style.left="0",Be.style.width="100%",de.portalContainer=Be}return de.attachParent(de.portalContainer),de.portalContainer}),Object(l.a)(Object(p.a)(de),"setPoint",function(Te){var Be=de.props.alignPoint;if(!Be||!Te)return;de.setState({point:{pageX:Te.pageX,pageY:Te.pageY}})}),Object(l.a)(Object(p.a)(de),"handlePortalUpdate",function(){de.state.prevPopupVisible!==de.state.popupVisible&&de.props.afterPopupVisibleChange(de.state.popupVisible)}),Object(l.a)(Object(p.a)(de),"triggerContextValue",{onPopupMouseDown:de.onPopupMouseDown});var be;return"popupVisible"in $?be=!!$.popupVisible:be=!!$.defaultPopupVisible,de.state={prevPopupVisible:be,popupVisible:be},Ve.forEach(function(Te){de["fire".concat(Te)]=function(Be){de.fireEvents(Te,Be)}}),de}return Object(m.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var de=this.props,be=this.state;if(be.popupVisible){var Te;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Te=de.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(s.a)(Te,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Te=Te||de.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(s.a)(Te,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Te=Te||de.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(s.a)(Te,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(s.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),o.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var de;return((de=this.popupRef.current)===null||de===void 0?void 0:de.getElement())||null}},{key:"getPopupAlign",value:function(){var de=this.props,be=de.popupPlacement,Te=de.popupAlign,Be=de.builtinPlacements;return be&&Be?b(Be,be,Te):Te}},{key:"setPopupVisible",value:function(de,be){var Te=this.props.alignPoint,Be=this.state.popupVisible;this.clearDelayTimer(),Be!==de&&("popupVisible"in this.props||this.setState({popupVisible:de,prevPopupVisible:Be}),this.props.onPopupVisibleChange(de)),Te&&be&&de&&this.setPoint(be)}},{key:"delaySetPopupVisible",value:function(de,be,Te){var Be=this,fe=be*1e3;if(this.clearDelayTimer(),fe){var xe=Te?{pageX:Te.pageX,pageY:Te.pageY}:null;this.delayTimer=window.setTimeout(function(){Be.setPopupVisible(de,xe),Be.clearDelayTimer()},fe)}else this.setPopupVisible(de,Te)}},{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(de){var be=this.props.children.props,Te=this.props;return be[de]&&Te[de]?this["fire".concat(de)]:be[de]||Te[de]}},{key:"isClickToShow",value:function(){var de=this.props,be=de.action,Te=de.showAction;return be.indexOf("click")!==-1||Te.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var de=this.props.action;return de==="contextMenu"||de.length===1&&de[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var de=this.props,be=de.action,Te=de.showAction;return be.indexOf("contextMenu")!==-1||Te.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var de=this.props,be=de.action,Te=de.hideAction;return be.indexOf("click")!==-1||Te.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var de=this.props,be=de.action,Te=de.showAction;return be.indexOf("hover")!==-1||Te.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var de=this.props,be=de.action,Te=de.hideAction;return be.indexOf("hover")!==-1||Te.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var de=this.props,be=de.action,Te=de.showAction;return be.indexOf("focus")!==-1||Te.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var de=this.props,be=de.action,Te=de.hideAction;return be.indexOf("focus")!==-1||Te.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var de;(de=this.popupRef.current)===null||de===void 0||de.forceAlign()}}},{key:"fireEvents",value:function(de,be){var Te=this.props.children.props[de];Te&&Te(be);var Be=this.props[de];Be&&Be(be)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var de=this.state.popupVisible,be=this.props,Te=be.children,Be=be.forceRender,fe=be.alignPoint,xe=be.className,ke=be.autoDestroy,nt=a.Children.only(Te),Ct={key:"trigger"};this.isContextMenuToShow()?Ct.onContextMenu=this.onContextMenu:Ct.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Ct.onClick=this.onClick,Ct.onMouseDown=this.onMouseDown,Ct.onTouchStart=this.onTouchStart):(Ct.onClick=this.createTwoChains("onClick"),Ct.onMouseDown=this.createTwoChains("onMouseDown"),Ct.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Ct.onMouseEnter=this.onMouseEnter,fe&&(Ct.onMouseMove=this.onMouseMove)):Ct.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Ct.onMouseLeave=this.onMouseLeave:Ct.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Ct.onFocus=this.onFocus,Ct.onBlur=this.onBlur):(Ct.onFocus=this.createTwoChains("onFocus"),Ct.onBlur=this.createTwoChains("onBlur"));var pt=v()(nt&&nt.props&&nt.props.className,xe);pt&&(Ct.className=pt);var He=Object(y.a)({},Ct);Object(r.c)(nt)&&(He.ref=Object(r.a)(this.triggerRef,nt.ref));var nr=a.cloneElement(nt,He),ht;return(de||this.popupRef.current||Be)&&(ht=a.createElement(ue,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!de&&ke&&(ht=null),a.createElement(we.Provider,{value:this.triggerContextValue},nr,ht)}}],[{key:"getDerivedStateFromProps",value:function(de,be){var Te=de.popupVisible,Be={};return Te!==void 0&&be.popupVisible!==Te&&(Be.popupVisible=Te,Be.prevPopupVisible=be.popupVisible),Be}}]),Y}(a.Component);return Object(l.a)(et,"contextType",we),Object(l.a)(et,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Me,getDocument:Qe,onPopupVisibleChange:Oe,afterPopupVisibleChange:Oe,onPopupAlign:Oe,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),et}var Fe=D.a=dt(c.a)},ugBc:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},v56E:function(R,D,n){},v5uJ:function(R,D,n){var y=n("ProS"),g=n("2B6p"),S=g.updateCenterAndZoom;y.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(m,p){p.eachComponent({mainType:"series",subType:"tree",query:m},function(f){var d=m.dataIndex,l=f.getData().tree,a=l.getNodeByDataIndex(d);a.isExpand=!a.isExpand})}),y.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(m,p){p.eachComponent({mainType:"series",subType:"tree",query:m},function(f){var d=f.coordinateSystem,l=S(d,m);f.setCenter&&f.setCenter(l.center),f.setZoom&&f.setZoom(l.zoom)})})},"vF/C":function(R,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("visualMap",function(g){return!g.categories&&(!(g.pieces?g.pieces.length>0:g.splitNumber>0)||g.calculable)?"continuous":"piecewise"})},vKoX:function(R,D,n){var y=n("SrGk"),g=n("bYtY");function S(f,d){y.call(this,f,d,["filter"],"__filter_in_use__","_shadowDom")}g.inherits(S,y),S.prototype.addWithoutUpdate=function(f,d){if(d&&m(d.style)){var l;if(d._shadowDom){l=d._shadowDom;var a=this.getDefs(!0);a.contains(d._shadowDom)||this.addDom(l)}else l=this.add(d);this.markUsed(d);var i=l.getAttribute("id");f.style.filter="url(#"+i+")"}},S.prototype.add=function(f){var d=this.createElement("filter");return f._shadowDomId=f._shadowDomId||this.nextId++,d.setAttribute("id","zr"+this._zrId+"-shadow-"+f._shadowDomId),this.updateDom(f,d),this.addDom(d),d},S.prototype.update=function(f,d){var l=d.style;if(m(l)){var a=this;y.prototype.update.call(this,d,function(){a.updateDom(d,d._shadowDom)})}else this.remove(f,d)},S.prototype.remove=function(f,d){d._shadowDomId!=null&&(this.removeDom(f),f.style.filter="")},S.prototype.updateDom=function(f,d){var l=d.getElementsByTagName("feDropShadow");l.length===0?l=this.createElement("feDropShadow"):l=l[0];var a=f.style,i=f.scale&&f.scale[0]||1,t=f.scale&&f.scale[1]||1,o,e,u,r;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)o=a.shadowOffsetX||0,e=a.shadowOffsetY||0,u=a.shadowBlur,r=a.shadowColor;else if(a.textShadowBlur)o=a.textShadowOffsetX||0,e=a.textShadowOffsetY||0,u=a.textShadowBlur,r=a.textShadowColor;else{this.removeDom(d,a);return}l.setAttribute("dx",o/i),l.setAttribute("dy",e/t),l.setAttribute("flood-color",r);var s=u/2/i,c=u/2/t,h=s+" "+c;l.setAttribute("stdDeviation",h),d.setAttribute("x","-100%"),d.setAttribute("y","-100%"),d.setAttribute("width",Math.ceil(u/2*200)+"%"),d.setAttribute("height",Math.ceil(u/2*200)+"%"),d.appendChild(l),f._shadowDom=d},S.prototype.markUsed=function(f){f._shadowDom&&y.prototype.markUsed.call(this,f._shadowDom)};function m(f){return f&&(f.shadowBlur||f.shadowOffsetX||f.shadowOffsetY||f.textShadowBlur||f.textShadowOffsetX||f.textShadowOffsetY)}var p=S;R.exports=p},vL6D:function(R,D,n){var y=n("bYtY"),g=n("+rIm"),S=n("IwbS"),m=n("7bkD"),p=n("Znkb"),f=n("WN+l"),d=f.rectCoordAxisBuildSplitArea,l=f.rectCoordAxisHandleRemove,a=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine"],t=p.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,u,r,s){var c=this.group;c.removeAll();var h=this._axisGroup;this._axisGroup=new S.Group;var v=m.layout(e),A=new g(e,v);y.each(a,A.add,A),c.add(this._axisGroup),c.add(A.getGroup()),y.each(i,function(b){e.get(b+".show")&&this["_"+b](e)},this),S.groupTransition(h,this._axisGroup,e),t.superCall(this,"render",e,u,r,s)},remove:function(){l(this)},_splitLine:function(e){var u=e.axis;if(u.scale.isBlank())return;var r=e.getModel("splitLine"),s=r.getModel("lineStyle"),c=s.get("width"),h=s.get("color");h=h instanceof Array?h:[h];for(var v=e.coordinateSystem.getRect(),A=u.isHorizontal(),b=[],x=0,E=u.getTicksCoords({tickModel:r}),T=[],_=[],C=0;C<E.length;++C){var w=u.toGlobalCoord(E[C].coord);A?(T[0]=w,T[1]=v.y,_[0]=w,_[1]=v.y+v.height):(T[0]=v.x,T[1]=w,_[0]=v.x+v.width,_[1]=w);var O=x++%h.length;b[O]=b[O]||[],b[O].push(new S.Line({subPixelOptimize:!0,shape:{x1:T[0],y1:T[1],x2:_[0],y2:_[1]},style:{lineWidth:c},silent:!0}))}for(var C=0;C<b.length;++C)this.group.add(S.mergePath(b[C],{style:{stroke:h[C%h.length],lineDash:s.getLineDash(c),lineWidth:c},silent:!0}))},_splitArea:function(e){d(this,this._axisGroup,e,e)}}),o=t;R.exports=o},vWvF:function(R,D,n){var y=n("Bq2U"),g=n("SUKs"),S=n("bYtY"),m=S.isString,p=S.isFunction,f=S.isObject,d=S.isArrayLike,l=S.indexOf,a=function(){this.animators=[]};a.prototype={constructor:a,animate:function(r,s){var c,h=!1,v=this,A=this.__zr;if(r){var b=r.split("."),x=v;h=b[0]==="shape";for(var E=0,T=b.length;E<T;E++){if(!x)continue;x=x[b[E]]}x&&(c=x)}else c=v;if(!c){g('Property "'+r+'" is not existed in element '+v.id);return}var _=v.animators,C=new y(c,s);return C.during(function(w){v.dirty(h)}).done(function(){_.splice(l(_,C),1)}),_.push(C),A&&A.animation.addAnimator(C),C},stopAnimation:function(r){for(var s=this.animators,c=s.length,h=0;h<c;h++)s[h].stop(r);return s.length=0,this},animateTo:function(r,s,c,h,v,A){i(this,r,s,c,h,v,A)},animateFrom:function(r,s,c,h,v,A){i(this,r,s,c,h,v,A,!0)}};function i(u,r,s,c,h,v,A,b){m(c)?(v=h,h=c,c=0):p(h)?(v=h,h="linear",c=0):p(c)?(v=c,c=0):p(s)?(v=s,s=500):s||(s=500),u.stopAnimation(),t(u,"",u,r,s,c,b);var x=u.animators.slice(),E=x.length;function T(){E--,E||v&&v()}E||v&&v();for(var _=0;_<x.length;_++)x[_].done(T).start(h,A)}function t(u,r,s,c,h,v,A){var b={},x=0;for(var E in c){if(!c.hasOwnProperty(E))continue;s[E]!=null?f(c[E])&&!d(c[E])?t(u,r?r+"."+E:E,s[E],c[E],h,v,A):(A?(b[E]=s[E],o(u,r,E,c[E])):b[E]=c[E],x++):c[E]!=null&&!A&&o(u,r,E,c[E])}x>0&&u.animate(r,!1).when(h==null?500:h,b).delay(v||0)}function o(u,r,s,c){if(!r)u.attr(s,c);else{var h={};h[r]={},h[r][s]=c,u.attr(h)}}var e=a;R.exports=e},vZ6x:function(R,D,n){var y=n("Tghj"),g=y.__DEV__,S=n("bYtY"),m=n("IwbS"),p=n("4NO4"),f=n("9KIM"),d=S.each,l=S.indexOf,a=S.curry,i=["dataToPoint","pointToData"],t=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function o(C,w,O){var I=this._targetInfoList=[],k={},M=r(w,C);d(s,function(U,P){(!O||!O.include||l(O.include,P)>=0)&&U(M,I,k)})}var e=o.prototype;e.setOutputRanges=function(C,w){this.matchOutputRanges(C,w,function(O,I,k){if((O.coordRanges||(O.coordRanges=[])).push(I),!O.coordRange){O.coordRange=I;var M=v[O.brushType](0,k,I);O.__rangeOffset={offset:b[O.brushType](M.values,O.range,[1,1]),xyMinMax:M.xyMinMax}}})},e.matchOutputRanges=function(C,w,O){d(C,function(I){var k=this.findTargetInfo(I,w);k&&k!==!0&&S.each(k.coordSyses,function(M){var U=v[I.brushType](1,M,I.range);O(I,U.values,M,w)})},this)},e.setInputRanges=function(C,w){d(C,function(O){var I=this.findTargetInfo(O,w);if(O.range=O.range||[],I&&I!==!0){O.panelId=I.panelId;var k=v[O.brushType](0,I.coordSys,O.coordRange),M=O.__rangeOffset;O.range=M?b[O.brushType](k.values,M.offset,E(k.xyMinMax,M.xyMinMax)):k.values}},this)},e.makePanelOpts=function(C,w){return S.map(this._targetInfoList,function(O){var I=O.getPanelRect();return{panelId:O.panelId,defaultBrushType:w&&w(O),clipPath:f.makeRectPanelClipPath(I),isTargetByCursor:f.makeRectIsTargetByCursor(I,C,O.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(C,w,O){var I=this.findTargetInfo(C,O);return I===!0||I&&l(I.coordSyses,w.coordinateSystem)>=0},e.findTargetInfo=function(C,w){for(var O=this._targetInfoList,I=r(w,C),k=0;k<O.length;k++){var M=O[k],U=C.panelId;if(U){if(M.panelId===U)return M}else for(var k=0;k<c.length;k++)if(c[k](I,M))return M}return!0};function u(C){return C[0]>C[1]&&C.reverse(),C}function r(C,w){return p.parseFinder(C,w,{includeMainTypes:t})}var s={grid:function(C,w){var O=C.xAxisModels,I=C.yAxisModels,k=C.gridModels,M=S.createHashMap(),U={},P={};if(!O&&!I&&!k)return;d(O,function(X){var F=X.axis.grid.model;M.set(F.id,F),U[F.id]=!0}),d(I,function(X){var F=X.axis.grid.model;M.set(F.id,F),P[F.id]=!0}),d(k,function(X){M.set(X.id,X),U[X.id]=!0,P[X.id]=!0}),M.each(function(X){var F=X.coordinateSystem,j=[];d(F.getCartesians(),function(K,z){(l(O,K.getAxis("x").model)>=0||l(I,K.getAxis("y").model)>=0)&&j.push(K)}),w.push({panelId:"grid--"+X.id,gridModel:X,coordSysModel:X,coordSys:j[0],coordSyses:j,getPanelRect:h.grid,xAxisDeclared:U[X.id],yAxisDeclared:P[X.id]})})},geo:function(C,w){d(C.geoModels,function(O){var I=O.coordinateSystem;w.push({panelId:"geo--"+O.id,geoModel:O,coordSysModel:O,coordSys:I,coordSyses:[I],getPanelRect:h.geo})})}},c=[function(C,w){var O=C.xAxisModel,I=C.yAxisModel,k=C.gridModel;return!k&&O&&(k=O.axis.grid.model),!k&&I&&(k=I.axis.grid.model),k&&k===w.gridModel},function(C,w){var O=C.geoModel;return O&&O===w.geoModel}],h={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var C=this.coordSys,w=C.getBoundingRect().clone();return w.applyTransform(m.getTransform(C)),w}},v={lineX:a(A,0),lineY:a(A,1),rect:function(C,w,O){var I=w[i[C]]([O[0][0],O[1][0]]),k=w[i[C]]([O[0][1],O[1][1]]),M=[u([I[0],k[0]]),u([I[1],k[1]])];return{values:M,xyMinMax:M}},polygon:function(C,w,O){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],k=S.map(O,function(M){var U=w[i[C]](M);return I[0][0]=Math.min(I[0][0],U[0]),I[1][0]=Math.min(I[1][0],U[1]),I[0][1]=Math.max(I[0][1],U[0]),I[1][1]=Math.max(I[1][1],U[1]),U});return{values:k,xyMinMax:I}}};function A(C,w,O,I){var k=O.getAxis(["x","y"][C]),M=u(S.map([0,1],function(P){return w?k.coordToData(k.toLocalCoord(I[P])):k.toGlobalCoord(k.dataToCoord(I[P]))})),U=[];return U[C]=M,U[1-C]=[NaN,NaN],{values:M,xyMinMax:U}}var b={lineX:a(x,0),lineY:a(x,1),rect:function(C,w,O){return[[C[0][0]-O[0]*w[0][0],C[0][1]-O[0]*w[0][1]],[C[1][0]-O[1]*w[1][0],C[1][1]-O[1]*w[1][1]]]},polygon:function(C,w,O){return S.map(C,function(I,k){return[I[0]-O[0]*w[k][0],I[1]-O[1]*w[k][1]]})}};function x(C,w,O,I){return[w[0]-I[C]*O[0],w[1]-I[C]*O[1]]}function E(C,w){var O=T(C),I=T(w),k=[O[0]/I[0],O[1]/I[1]];return isNaN(k[0])&&(k[0]=1),isNaN(k[1])&&(k[1]=1),k}function T(C){return C?[C[0][1]-C[0][0],C[1][1]-C[1][0]]:[NaN,NaN]}var _=o;R.exports=_},vZI5:function(R,D,n){var y=n("bYtY"),g=n("T4UG"),S=n("5GhG"),m=S.seriesModelMixin,p=g.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(d,l,a){var i=l.getItemLayout(d);return i&&a.rect(i.brushRect)}});y.mixin(p,m,!0);var f=p;R.exports=f},vafp:function(R,D,n){var y=n("bYtY"),g=n("8nly");function S(f){if(!f.UTF8Encoding)return f;var d=f.UTF8Scale;d==null&&(d=1024);for(var l=f.features,a=0;a<l.length;a++)for(var i=l[a],t=i.geometry,o=t.coordinates,e=t.encodeOffsets,u=0;u<o.length;u++){var r=o[u];if(t.type==="Polygon")o[u]=m(r,e[u],d);else if(t.type==="MultiPolygon")for(var s=0;s<r.length;s++){var c=r[s];r[s]=m(c,e[u][s],d)}}return f.UTF8Encoding=!1,f}function m(f,d,l){for(var a=[],i=d[0],t=d[1],o=0;o<f.length;o+=2){var e=f.charCodeAt(o)-64,u=f.charCodeAt(o+1)-64;e=e>>1^-(e&1),u=u>>1^-(u&1),e+=i,u+=t,i=e,t=u,a.push([e/l,u/l])}return a}function p(f,d){return S(f),y.map(y.filter(f.features,function(l){return l.geometry&&l.properties&&l.geometry.coordinates.length>0}),function(l){var a=l.properties,i=l.geometry,t=i.coordinates,o=[];i.type==="Polygon"&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)}),i.type==="MultiPolygon"&&y.each(t,function(u){u[0]&&o.push({type:"polygon",exterior:u[0],interiors:u.slice(1)})});var e=new g(a[d||"name"],o,a.cp);return e.properties=a,e})}R.exports=p},vcCh:function(R,D,n){var y=n("ProS");n("0qV/"),y.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(g,S){S.eachComponent({mainType:"series",subType:"sankey",query:g},function(m){m.setNodePosition(g.dataIndex,[g.localX,g.localY])})})},vewr:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.getPointerEvent=y,D.stopEvent=g,D.setCapture=l,D.releaseCapture=a;function y(i){return i.changedTouches?i.changedTouches[0]:i.touches?i.touches[0]:i}function g(i){i.stopPropagation(),i.preventDefault()}var S=!1,m=null;document.captureElement=null;function p(i){if(S)return;var t=new i.constructor(i.type,i);S=!0,document.captureElement?document.captureElement.dispatchEvent(t):m.dispatchEvent(t),S=!1,i.stopPropagation(),t.defaultPrevented&&i.preventDefault(),i.type==="mouseup"&&a()}function f(){var i=document.getElementById("noVNC_mouse_capture_elem");i.style.cursor=window.getComputedStyle(document.captureElement).cursor}var d=new MutationObserver(f);function l(i){if(i.setCapture)i.setCapture(),document.captureElement=i,i.addEventListener("mouseup",a);else{a();var t=document.getElementById("noVNC_mouse_capture_elem");t===null&&(t=document.createElement("div"),t.id="noVNC_mouse_capture_elem",t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.width="100%",t.style.height="100%",t.style.zIndex=1e4,t.style.display="none",document.body.appendChild(t),t.addEventListener("contextmenu",p),t.addEventListener("mousemove",p),t.addEventListener("mouseup",p)),document.captureElement=i,d.observe(i,{attributes:!0}),f(),t.style.display="",window.addEventListener("mousemove",p),window.addEventListener("mouseup",p)}}function a(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;m=document.captureElement,document.captureElement=null,d.disconnect();var i=document.getElementById("noVNC_mouse_capture_elem");i.style.display="none",window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",p)}}},vg9a:function(R,D,n){},"vk+C":function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("RZPm"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},w4Tj:function(R,D,n){"use strict";n.d(D,"a",function(){return S});var y=n("oZsa");function g(m,p){for(;!Object.prototype.hasOwnProperty.call(m,p)&&!(m=Object(y.a)(m),m===null););return m}function S(m,p,f){return typeof Reflect!="undefined"&&Reflect.get?S=Reflect.get:S=function(l,a,i){var t=g(l,a);if(!t)return;var o=Object.getOwnPropertyDescriptor(t,a);return o.get?o.get.call(i):o.value},S(m,p,f||m)}},w5pM:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="PlusCircleOutlined";var d=D.a=g.forwardRef(f)},w6Tc:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("apAg"));function g(m){return m&&m.__esModule?m:{default:m}}var S=y;D.default=S,R.exports=S},w7YG:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.StreamCipher,p=g.algo,f=p.RC4=m.extend({_doReset:function(){for(var i=this._key,t=i.words,o=i.sigBytes,e=this._S=[],u=0;u<256;u++)e[u]=u;for(var u=0,r=0;u<256;u++){var s=u%o,c=t[s>>>2]>>>24-s%4*8&255;r=(r+e[u]+c)%256;var h=e[u];e[u]=e[r],e[r]=h}this._i=this._j=0},_doProcessBlock:function(i,t){i[t]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var a=this._S,i=this._i,t=this._j,o=0,e=0;e<4;e++){i=(i+1)%256,t=(t+a[i])%256;var u=a[i];a[i]=a[t],a[t]=u,o|=a[(a[i]+a[t])%256]<<24-e*8}return this._i=i,this._j=t,o}g.RC4=m._createHelper(f);var l=p.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)d.call(this)}});g.RC4Drop=m._createHelper(l)}(),y.RC4})},wCAj:function(R,D,n){"use strict";var y=n("cDf5"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("J4zp"),f=n.n(p),d=n("pVnL"),l=n.n(d),a=n("q1tI"),i=n("TSYQ"),t=n.n(i),o=n("BGR+"),e=n("rePB"),u=n("VTBJ"),r=n("KQm4"),s=n("U8pU"),c=n("ODXe"),h=n("Gytx"),v=n.n(h),A=n("Kwbf"),b=n("1OyB"),x=n("vuIU"),E=n("Ji7U"),T=n("LK+K"),_=n("m+aA"),C=n("Zm9Q"),w=n("c+Xe"),O=n("bdgK"),I="rc-observer-key",k=function(Nt){Object(E.a)(Dr,Nt);var Lr=Object(T.a)(Dr);function Dr(){var an;return Object(b.a)(this,Dr),an=Lr.apply(this,arguments),an.resizeObserver=null,an.childNode=null,an.currentElement=null,an.state={width:0,height:0,offsetHeight:0,offsetWidth:0},an.onResize=function(Cn){var Nn=an.props.onResize,En=Cn[0].target,ei=En.getBoundingClientRect(),Wn=ei.width,gi=ei.height,Fi=En.offsetWidth,wi=En.offsetHeight,Ii=Math.floor(Wn),Vi=Math.floor(gi);if(an.state.width!==Ii||an.state.height!==Vi||an.state.offsetWidth!==Fi||an.state.offsetHeight!==wi){var ea={width:Ii,height:Vi,offsetWidth:Fi,offsetHeight:wi};an.setState(ea),Nn&&Promise.resolve().then(function(){Nn(Object(u.a)(Object(u.a)({},ea),{},{offsetWidth:Fi,offsetHeight:wi}))})}},an.setChildNode=function(Cn){an.childNode=Cn},an}return Object(x.a)(Dr,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var Cn=this.props.disabled;if(Cn){this.destroyObserver();return}var Nn=Object(_.a)(this.childNode||this),En=Nn!==this.currentElement;En&&(this.destroyObserver(),this.currentElement=Nn),!this.resizeObserver&&Nn&&(this.resizeObserver=new O.default(this.onResize),this.resizeObserver.observe(Nn))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var Cn=this.props.children,Nn=Object(C.a)(Cn);if(Nn.length>1)Object(A.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Nn.length===0)return Object(A.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var En=Nn[0];if(a.isValidElement(En)&&Object(w.c)(En)){var ei=En.ref;Nn[0]=a.cloneElement(En,{ref:Object(w.a)(ei,this.setChildNode)})}return Nn.length===1?Nn[0]:Nn.map(function(Wn,gi){return!a.isValidElement(Wn)||"key"in Wn&&Wn.key!==null?Wn:a.cloneElement(Wn,{key:"".concat(I,"-").concat(gi)})})}}]),Dr}(a.Component);k.displayName="ResizeObserver";var M=k,U=n("qx4F");function P(Nt){return null}var X=P;function F(Nt){return null}var j=F,K=n("Ff2n"),z="RC_TABLE_KEY";function V(Nt){return Nt==null?[]:Array.isArray(Nt)?Nt:[Nt]}function Q(Nt,Lr){if(!Lr&&typeof Lr!="number")return Nt;for(var Dr=V(Lr),an=Nt,Cn=0;Cn<Dr.length;Cn+=1){if(!an)return null;var Nn=Dr[Cn];an=an[Nn]}return an}function G(Nt){var Lr=[],Dr={};return Nt.forEach(function(an){for(var Cn=an||{},Nn=Cn.key,En=Cn.dataIndex,ei=Nn||V(En).join("-")||z;Dr[ei];)ei="".concat(ei,"_next");Dr[ei]=!0,Lr.push(ei)}),Lr}function te(){var Nt={};function Lr(Nn,En){En&&Object.keys(En).forEach(function(ei){var Wn=En[ei];Wn&&Object(s.a)(Wn)==="object"?(Nn[ei]=Nn[ei]||{},Lr(Nn[ei],Wn)):Nn[ei]=Wn})}for(var Dr=arguments.length,an=new Array(Dr),Cn=0;Cn<Dr;Cn++)an[Cn]=arguments[Cn];return an.forEach(function(Nn){Lr(Nt,Nn)}),Nt}function q(Nt){return Nt!=null}function se(Nt){return Nt&&Object(s.a)(Nt)==="object"&&!Array.isArray(Nt)&&!a.isValidElement(Nt)}function re(Nt){return typeof Nt=="string"?!0:Object(w.c)(Nt)}function we(Nt,Lr){var Dr,an=Nt.prefixCls,Cn=Nt.className,Nn=Nt.record,En=Nt.index,ei=Nt.dataIndex,Wn=Nt.render,gi=Nt.children,Fi=Nt.component,wi=Fi===void 0?"td":Fi,Ii=Nt.colSpan,Vi=Nt.rowSpan,ea=Nt.fixLeft,Xi=Nt.fixRight,zi=Nt.firstFixLeft,Hi=Nt.lastFixLeft,Ji=Nt.firstFixRight,ca=Nt.lastFixRight,Ta=Nt.appendNode,na=Nt.additionalProps,Pa=na===void 0?{}:na,La=Nt.ellipsis,va=Nt.align,ga=Nt.rowType,Oa=Nt.isSticky,Aa="".concat(an,"-cell"),Xa,_a;if(gi)_a=gi;else{var Va=Q(Nn,ei);if(_a=Va,Wn){var Bi=Wn(Va,Nn,En);se(Bi)?(_a=Bi.children,Xa=Bi.props):_a=Bi}}Object(s.a)(_a)==="object"&&!Array.isArray(_a)&&!a.isValidElement(_a)&&(_a=null),La&&(Hi||Ji)&&(_a=a.createElement("span",{className:"".concat(Aa,"-content")},_a));var io=Xa||{},oo=io.colSpan,Qo=io.rowSpan,mo=io.style,Co=io.className,ao=Object(K.a)(io,["colSpan","rowSpan","style","className"]),xo=oo!==void 0?oo:Ii,bo=Qo!==void 0?Qo:Vi;if(xo===0||bo===0)return null;var to={},Jo=typeof ea=="number",Uo=typeof Xi=="number";Jo&&(to.position="sticky",to.left=ea),Uo&&(to.position="sticky",to.right=Xi);var wo={};va&&(wo.textAlign=va);var ts,Ia=La===!0?{showTitle:!0}:La;Ia&&(Ia.showTitle||ga==="header")&&(typeof _a=="string"||typeof _a=="number"?ts=_a.toString():a.isValidElement(_a)&&typeof _a.props.children=="string"&&(ts=_a.props.children));var Oo=Object(u.a)(Object(u.a)(Object(u.a)({title:ts},ao),Pa),{},{colSpan:xo&&xo!==1?xo:null,rowSpan:bo&&bo!==1?bo:null,className:t()(Aa,Cn,(Dr={},Object(e.a)(Dr,"".concat(Aa,"-fix-left"),Jo),Object(e.a)(Dr,"".concat(Aa,"-fix-left-first"),zi),Object(e.a)(Dr,"".concat(Aa,"-fix-left-last"),Hi),Object(e.a)(Dr,"".concat(Aa,"-fix-right"),Uo),Object(e.a)(Dr,"".concat(Aa,"-fix-right-first"),Ji),Object(e.a)(Dr,"".concat(Aa,"-fix-right-last"),ca),Object(e.a)(Dr,"".concat(Aa,"-ellipsis"),La),Object(e.a)(Dr,"".concat(Aa,"-with-append"),Ta),Object(e.a)(Dr,"".concat(Aa,"-fix-sticky"),(Jo||Uo)&&Oa),Dr),Pa.className,Co),style:Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)({},Pa.style),wo),to),mo),ref:re(wi)?Lr:null});return a.createElement(wi,Object.assign({},Oo),Ta,_a)}var Oe=a.forwardRef(we);Oe.displayName="Cell";var Me=a.memo(Oe,function(Nt,Lr){return Lr.shouldCellUpdate?!Lr.shouldCellUpdate(Lr.record,Nt.record):!1}),Qe=Me,Ve=a.createContext(null),dt=Ve;function Fe(Nt,Lr,Dr,an,Cn){var Nn=Dr[Nt]||{},En=Dr[Lr]||{},ei,Wn;Nn.fixed==="left"?ei=an.left[Nt]:En.fixed==="right"&&(Wn=an.right[Lr]);var gi=!1,Fi=!1,wi=!1,Ii=!1,Vi=Dr[Lr+1],ea=Dr[Nt-1];if(Cn==="rtl"){if(ei!==void 0){var Xi=ea&&ea.fixed==="left";Ii=!Xi}else if(Wn!==void 0){var zi=Vi&&Vi.fixed==="right";wi=!zi}}else if(ei!==void 0){var Hi=Vi&&Vi.fixed==="left";gi=!Hi}else if(Wn!==void 0){var Ji=ea&&ea.fixed==="right";Fi=!Ji}return{fixLeft:ei,fixRight:Wn,lastFixLeft:gi,firstFixRight:Fi,lastFixRight:wi,firstFixLeft:Ii,isSticky:an.isSticky}}function ue(Nt){var Lr=Nt.cells,Dr=Nt.stickyOffsets,an=Nt.flattenColumns,Cn=Nt.rowComponent,Nn=Nt.cellComponent,En=Nt.onHeaderRow,ei=Nt.index,Wn=a.useContext(dt),gi=Wn.prefixCls,Fi=Wn.direction,wi;En&&(wi=En(Lr.map(function(Vi){return Vi.column}),ei));var Ii=G(Lr.map(function(Vi){return Vi.column}));return a.createElement(Cn,Object.assign({},wi),Lr.map(function(Vi,ea){var Xi=Vi.column,zi=Fe(Vi.colStart,Vi.colEnd,an,Dr,Fi),Hi;return Xi&&Xi.onHeaderCell&&(Hi=Vi.column.onHeaderCell(Xi)),a.createElement(Qe,Object.assign({},Vi,{ellipsis:Xi.ellipsis,align:Xi.align,component:Nn,prefixCls:gi,key:Ii[ea]},zi,{additionalProps:Hi,rowType:"header"}))}))}ue.displayName="HeaderRow";var et=ue;function he(Nt){var Lr=[];function Dr(En,ei){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Lr[Wn]=Lr[Wn]||[];var gi=ei,Fi=En.filter(Boolean).map(function(wi){var Ii={key:wi.key,className:wi.className||"",children:wi.title,column:wi,colStart:gi},Vi=1,ea=wi.children;return ea&&ea.length>0&&(Vi=Dr(ea,gi,Wn+1).reduce(function(Xi,zi){return Xi+zi},0),Ii.hasSubColumns=!0),"colSpan"in wi&&(Vi=wi.colSpan),"rowSpan"in wi&&(Ii.rowSpan=wi.rowSpan),Ii.colSpan=Vi,Ii.colEnd=Ii.colStart+Vi-1,Lr[Wn].push(Ii),gi+=Vi,Vi});return Fi}Dr(Nt,0);for(var an=Lr.length,Cn=function(ei){Lr[ei].forEach(function(Wn){!("rowSpan"in Wn)&&!Wn.hasSubColumns&&(Wn.rowSpan=an-ei)})},Nn=0;Nn<an;Nn+=1)Cn(Nn);return Lr}function J(Nt){var Lr=Nt.stickyOffsets,Dr=Nt.columns,an=Nt.flattenColumns,Cn=Nt.onHeaderRow,Nn=a.useContext(dt),En=Nn.prefixCls,ei=Nn.getComponent,Wn=a.useMemo(function(){return he(Dr)},[Dr]),gi=ei(["header","wrapper"],"thead"),Fi=ei(["header","row"],"tr"),wi=ei(["header","cell"],"th");return a.createElement(gi,{className:"".concat(En,"-thead")},Wn.map(function(Ii,Vi){var ea=a.createElement(et,{key:Vi,flattenColumns:an,cells:Ii,stickyOffsets:Lr,rowComponent:Fi,cellComponent:wi,onHeaderRow:Cn,index:Vi});return ea}))}var Y=J,$="RC_TABLE_INTERNAL_COL_DEFINE";function de(Nt){var Lr=Nt.expandable,Dr=Object(K.a)(Nt,["expandable"]);return"expandable"in Nt?Object(u.a)(Object(u.a)({},Dr),Lr):Dr}function be(Nt){return Object.keys(Nt).reduce(function(Lr,Dr){return(Dr.substr(0,5)==="data-"||Dr.substr(0,5)==="aria-")&&(Lr[Dr]=Nt[Dr]),Lr},{})}function Te(Nt){for(var Lr=Nt.colWidths,Dr=Nt.columns,an=Nt.columCount,Cn=[],Nn=an||Dr.length,En=!1,ei=Nn-1;ei>=0;ei-=1){var Wn=Lr[ei],gi=Dr&&Dr[ei],Fi=gi&&gi[$];(Wn||Fi||En)&&(Cn.unshift(a.createElement("col",Object.assign({key:ei,style:{width:Wn,minWidth:Wn}},Fi))),En=!0)}return a.createElement("colgroup",null,Cn)}var Be=Te;function fe(Nt,Lr){return Object(a.useMemo)(function(){for(var Dr=[],an=0;an<Lr;an+=1){var Cn=Nt[an];if(Cn!==void 0)Dr[an]=Cn;else return null}return Dr},[Nt.join("_"),Lr])}var xe=a.forwardRef(function(Nt,Lr){var Dr=Nt.noData,an=Nt.columns,Cn=Nt.flattenColumns,Nn=Nt.colWidths,En=Nt.columCount,ei=Nt.stickyOffsets,Wn=Nt.direction,gi=Nt.fixHeader,Fi=Nt.offsetHeader,wi=Nt.stickyClassName,Ii=Nt.onScroll,Vi=Object(K.a)(Nt,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),ea=a.useContext(dt),Xi=ea.prefixCls,zi=ea.scrollbarSize,Hi=ea.isSticky,Ji=Hi&&!gi?0:zi,ca=a.useRef(null),Ta=a.useCallback(function(Aa){Object(w.b)(Lr,Aa),Object(w.b)(ca,Aa)},[]);a.useEffect(function(){var Aa;function Xa(_a){var Va=_a.currentTarget,Bi=_a.deltaX;Bi&&(Ii({currentTarget:Va,scrollLeft:Va.scrollLeft+Bi}),_a.preventDefault())}return(Aa=ca.current)===null||Aa===void 0||Aa.addEventListener("wheel",Xa),function(){var _a;(_a=ca.current)===null||_a===void 0||_a.removeEventListener("wheel",Xa)}},[]);var na=Cn[Cn.length-1],Pa={fixed:na?na.fixed:null,onHeaderCell:function(){return{className:"".concat(Xi,"-cell-scrollbar")}}},La=Object(a.useMemo)(function(){return Ji?[].concat(Object(r.a)(an),[Pa]):an},[Ji,an]),va=Object(a.useMemo)(function(){return Ji?[].concat(Object(r.a)(Cn),[Pa]):Cn},[Ji,Cn]),ga=Object(a.useMemo)(function(){var Aa=ei.right,Xa=ei.left;return Object(u.a)(Object(u.a)({},ei),{},{left:Wn==="rtl"?[].concat(Object(r.a)(Xa.map(function(_a){return _a+Ji})),[0]):Xa,right:Wn==="rtl"?Aa:[].concat(Object(r.a)(Aa.map(function(_a){return _a+Ji})),[0]),isSticky:Hi})},[Ji,ei,Hi]),Oa=fe(Nn,En);return a.createElement("div",{style:Object(u.a)({overflow:"hidden"},Hi?{top:Fi}:{}),ref:Ta,className:t()("".concat(Xi,"-header"),Object(e.a)({},wi,!!wi))},a.createElement("table",{style:{tableLayout:"fixed",visibility:Dr||Oa?null:"hidden"}},a.createElement(Be,{colWidths:Oa?[].concat(Object(r.a)(Oa),[Ji]):[],columCount:En+1,columns:va}),a.createElement(Y,Object.assign({},Vi,{stickyOffsets:ga,columns:La,flattenColumns:va}))))});xe.displayName="FixedHeader";var ke=xe,nt=a.createContext(null),Ct=nt;function pt(Nt){var Lr=Nt.prefixCls,Dr=Nt.children,an=Nt.component,Cn=Nt.cellComponent,Nn=Nt.fixHeader,En=Nt.fixColumn,ei=Nt.horizonScroll,Wn=Nt.className,gi=Nt.expanded,Fi=Nt.componentWidth,wi=Nt.colSpan,Ii=a.useContext(dt),Vi=Ii.scrollbarSize;return a.useMemo(function(){var ea=Dr;return En&&(ea=a.createElement("div",{style:{width:Fi-(Nn?Vi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Lr,"-expanded-row-fixed")},ea)),a.createElement(an,{className:Wn,style:{display:gi?null:"none"}},a.createElement(Qe,{component:Cn,prefixCls:Lr,colSpan:wi},ea))},[Dr,an,Nn,ei,Wn,gi,Fi,wi,Vi])}var He=pt;function nr(Nt){var Lr=Nt.className,Dr=Nt.style,an=Nt.record,Cn=Nt.index,Nn=Nt.rowKey,En=Nt.getRowKey,ei=Nt.rowExpandable,Wn=Nt.expandedKeys,gi=Nt.onRow,Fi=Nt.indent,wi=Fi===void 0?0:Fi,Ii=Nt.rowComponent,Vi=Nt.cellComponent,ea=Nt.childrenColumnName,Xi=a.useContext(dt),zi=Xi.prefixCls,Hi=Xi.fixedInfoList,Ji=a.useContext(Ct),ca=Ji.fixHeader,Ta=Ji.fixColumn,na=Ji.horizonScroll,Pa=Ji.componentWidth,La=Ji.flattenColumns,va=Ji.expandableType,ga=Ji.expandRowByClick,Oa=Ji.onTriggerExpand,Aa=Ji.rowClassName,Xa=Ji.expandedRowClassName,_a=Ji.indentSize,Va=Ji.expandIcon,Bi=Ji.expandedRowRender,io=Ji.expandIconColumnIndex,oo=a.useState(!1),Qo=Object(c.a)(oo,2),mo=Qo[0],Co=Qo[1],ao=Wn&&Wn.has(Nt.recordKey);a.useEffect(function(){ao&&Co(!0)},[ao]);var xo=va==="row"&&(!ei||ei(an)),bo=va==="nest",to=ea&&an&&an[ea],Jo=xo||bo,Uo;gi&&(Uo=gi(an,Cn));var wo=function(_o){if(ga&&Jo&&Oa(an,_o),Uo&&Uo.onClick){for(var uo,Ha=arguments.length,vt=new Array(Ha>1?Ha-1:0),_r=1;_r<Ha;_r++)vt[_r-1]=arguments[_r];(uo=Uo).onClick.apply(uo,[_o].concat(vt))}},ts;typeof Aa=="string"?ts=Aa:typeof Aa=="function"&&(ts=Aa(an,Cn,wi));var Ia=G(La),Oo=a.createElement(Ii,Object.assign({},Uo,{"data-row-key":Nn,className:t()(Lr,"".concat(zi,"-row"),"".concat(zi,"-row-level-").concat(wi),ts,Uo&&Uo.className),style:Object(u.a)(Object(u.a)({},Dr),Uo?Uo.style:null),onClick:wo}),La.map(function(Ho,_o){var uo=Ho.render,Ha=Ho.dataIndex,vt=Ho.className,_r=Ia[_o],rn=Hi[_o],Jr;_o===(io||0)&&bo&&(Jr=a.createElement(a.Fragment,null,a.createElement("span",{style:{paddingLeft:"".concat(_a*wi,"px")},className:"".concat(zi,"-row-indent indent-level-").concat(wi)}),Va({prefixCls:zi,expanded:ao,expandable:to,record:an,onExpand:Oa})));var Jn;return Ho.onCell&&(Jn=Ho.onCell(an,Cn)),a.createElement(Qe,Object.assign({className:vt,ellipsis:Ho.ellipsis,align:Ho.align,component:Vi,prefixCls:zi,key:_r,record:an,index:Cn,dataIndex:Ha,render:uo,shouldCellUpdate:Ho.shouldCellUpdate},rn,{appendNode:Jr,additionalProps:Jn}))})),Io;if(xo&&(mo||ao)){var os=Bi(an,Cn,wi+1,ao),So=Xa&&Xa(an,Cn,wi);Io=a.createElement(He,{expanded:ao,className:t()("".concat(zi,"-expanded-row"),"".concat(zi,"-expanded-row-level-").concat(wi+1),So),prefixCls:zi,fixHeader:ca,fixColumn:Ta,horizonScroll:na,component:Ii,componentWidth:Pa,cellComponent:Vi,colSpan:La.length},os)}var rs;return to&&ao&&(rs=(an[ea]||[]).map(function(Ho,_o){var uo=En(Ho,_o);return a.createElement(nr,Object.assign({},Nt,{key:uo,rowKey:uo,record:Ho,recordKey:uo,index:_o,indent:wi+1}))})),a.createElement(a.Fragment,null,Oo,Io,rs)}nr.displayName="BodyRow";var ht=nr,Gt=a.createContext(null),pr=Gt;function Qt(Nt){var Lr=Nt.columnKey,Dr=Nt.onColumnResize,an=a.useRef();return a.useEffect(function(){an.current&&Dr(Lr,an.current.offsetWidth)},[]),a.createElement(M,{onResize:function(Nn){var En=Nn.offsetWidth;Dr(Lr,En)}},a.createElement("td",{ref:an,style:{padding:0,border:0,height:0}},a.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Ht(Nt){var Lr=Nt.data,Dr=Nt.getRowKey,an=Nt.measureColumnWidth,Cn=Nt.expandedKeys,Nn=Nt.onRow,En=Nt.rowExpandable,ei=Nt.emptyNode,Wn=Nt.childrenColumnName,gi=a.useContext(pr),Fi=gi.onColumnResize,wi=a.useContext(dt),Ii=wi.prefixCls,Vi=wi.getComponent,ea=a.useContext(Ct),Xi=ea.fixHeader,zi=ea.horizonScroll,Hi=ea.flattenColumns,Ji=ea.componentWidth;return a.useMemo(function(){var ca=Vi(["body","wrapper"],"tbody"),Ta=Vi(["body","row"],"tr"),na=Vi(["body","cell"],"td"),Pa;Lr.length?Pa=Lr.map(function(va,ga){var Oa=Dr(va,ga);return a.createElement(ht,{key:Oa,rowKey:Oa,record:va,recordKey:Oa,index:ga,rowComponent:Ta,cellComponent:na,expandedKeys:Cn,onRow:Nn,getRowKey:Dr,rowExpandable:En,childrenColumnName:Wn})}):Pa=a.createElement(He,{expanded:!0,className:"".concat(Ii,"-placeholder"),prefixCls:Ii,fixHeader:Xi,fixColumn:zi,horizonScroll:zi,component:Ta,componentWidth:Ji,cellComponent:na,colSpan:Hi.length},ei);var La=G(Hi);return a.createElement(ca,{className:"".concat(Ii,"-tbody")},an&&a.createElement("tr",{"aria-hidden":"true",className:"".concat(Ii,"-measure-row"),style:{height:0}},La.map(function(va){return a.createElement(Qt,{key:va,columnKey:va,onColumnResize:Fi})})),Pa)},[Lr,Ii,Nn,an,Cn,Dr,Vi,Ji,ei,Hi])}var Jt=a.memo(Ht);Jt.displayName="Body";var Ge=Jt;function pe(Nt){return Object(C.a)(Nt).filter(function(Lr){return a.isValidElement(Lr)}).map(function(Lr){var Dr=Lr.key,an=Lr.props,Cn=an.children,Nn=Object(K.a)(an,["children"]),En=Object(u.a)({key:Dr},Nn);return Cn&&(En.children=pe(Cn)),En})}function oe(Nt){return Nt.reduce(function(Lr,Dr){var an=Dr.fixed,Cn=an===!0?"left":an,Nn=Dr.children;return Nn&&Nn.length>0?[].concat(Object(r.a)(Lr),Object(r.a)(oe(Nn).map(function(En){return Object(u.a)({fixed:Cn},En)}))):[].concat(Object(r.a)(Lr),[Object(u.a)(Object(u.a)({},Dr),{},{fixed:Cn})])},[])}function ct(Nt){for(var Lr=!0,Dr=0;Dr<Nt.length;Dr+=1){var an=Nt[Dr];if(Lr&&an.fixed!=="left")Lr=!1;else if(!Lr&&an.fixed==="left"){Object(A.a)(!1,"Index ".concat(Dr-1," of `columns` missing `fixed='left'` prop."));break}}for(var Cn=!0,Nn=Nt.length-1;Nn>=0;Nn-=1){var En=Nt[Nn];if(Cn&&En.fixed!=="right")Cn=!1;else if(!Cn&&En.fixed==="right"){Object(A.a)(!1,"Index ".concat(Nn+1," of `columns` missing `fixed='right'` prop."));break}}}function qe(Nt){return Nt.map(function(Lr){var Dr=Lr.fixed,an=Object(K.a)(Lr,["fixed"]),Cn=Dr;return Dr==="left"?Cn="right":Dr==="right"&&(Cn="left"),Object(u.a)({fixed:Cn},an)})}function me(Nt,Lr){var Dr=Nt.prefixCls,an=Nt.columns,Cn=Nt.children,Nn=Nt.expandable,En=Nt.expandedKeys,ei=Nt.getRowKey,Wn=Nt.onTriggerExpand,gi=Nt.expandIcon,Fi=Nt.rowExpandable,wi=Nt.expandIconColumnIndex,Ii=Nt.direction,Vi=Nt.expandRowByClick,ea=a.useMemo(function(){return an||pe(Cn)},[an,Cn]),Xi=a.useMemo(function(){if(Nn){var Ji,ca=wi||0,Ta=ea[ca],na=(Ji={},Object(e.a)(Ji,$,{className:"".concat(Dr,"-expand-icon-col")}),Object(e.a)(Ji,"title",""),Object(e.a)(Ji,"fixed",Ta?Ta.fixed:null),Object(e.a)(Ji,"className","".concat(Dr,"-row-expand-icon-cell")),Object(e.a)(Ji,"render",function(va,ga,Oa){var Aa=ei(ga,Oa),Xa=En.has(Aa),_a=Fi?Fi(ga):!0,Va=gi({prefixCls:Dr,expanded:Xa,expandable:_a,record:ga,onExpand:Wn});return Vi?a.createElement("span",{onClick:function(io){return io.stopPropagation()}},Va):Va}),Ji),Pa=ea.slice();return ca>=0&&Pa.splice(ca,0,na),Pa}return ea},[Nn,ea,ei,En,gi,Ii]),zi=a.useMemo(function(){var Ji=Xi;return Lr&&(Ji=Lr(Ji)),Ji.length||(Ji=[{render:function(){return null}}]),Ji},[Lr,Xi,Ii]),Hi=a.useMemo(function(){return Ii==="rtl"?qe(oe(zi)):oe(zi)},[zi,Ii]);return[zi,Hi]}var Kt=me,vr=n("xEkU"),bt=n.n(vr);function or(Nt){var Lr=Object(a.useRef)(Nt),Dr=Object(a.useState)({}),an=Object(c.a)(Dr,2),Cn=an[1],Nn=Object(a.useRef)(null),En=Object(a.useRef)([]);function ei(Wn){Nn.current===null&&(En.current=[],Nn.current=bt()(function(){En.current.forEach(function(gi){Lr.current=gi(Lr.current)}),Nn.current=null,Cn({})})),En.current.push(Wn)}return Object(a.useEffect)(function(){return function(){bt.a.cancel(Nn.current)}},[]),[Lr.current,ei]}function _t(Nt){var Lr=Object(a.useRef)(Nt),Dr=Object(a.useRef)(null);function an(){window.clearTimeout(Dr.current)}function Cn(En){Lr.current=En,an(),Dr.current=window.setTimeout(function(){Lr.current=null,Dr.current=null},100)}function Nn(){return Lr.current}return Object(a.useEffect)(function(){return an},[]),[Cn,Nn]}function jt(Nt,Lr,Dr){var an=Object(a.useMemo)(function(){for(var Cn=[],Nn=[],En=0,ei=0,Wn=0;Wn<Lr;Wn+=1)if(Dr==="rtl"){Nn[Wn]=ei,ei+=Nt[Wn]||0;var gi=Lr-Wn-1;Cn[gi]=En,En+=Nt[gi]||0}else{Cn[Wn]=En,En+=Nt[Wn]||0;var Fi=Lr-Wn-1;Nn[Fi]=ei,ei+=Nt[Fi]||0}return{left:Cn,right:Nn}},[Nt,Lr,Dr]);return an}var ut=jt;function St(Nt){var Lr=Nt.className,Dr=Nt.children;return a.createElement("div",{className:Lr},Dr)}var mt=St;function lt(Nt){var Lr=Nt.className,Dr=Nt.index,an=Nt.children,Cn=Nt.colSpan,Nn=Nt.rowSpan,En=a.useContext(dt),ei=En.prefixCls,Wn=En.fixedInfoList,gi=Wn[Dr];return a.createElement(Qe,Object.assign({className:Lr,index:Dr,component:"td",prefixCls:ei,record:null,dataIndex:null,render:function(){return{children:an,props:{colSpan:Cn,rowSpan:Nn}}}},gi))}function tt(Nt){return a.createElement("tr",Object.assign({},Nt))}function Cr(Nt){var Lr=Nt.children,Dr=a.useContext(dt),an=Dr.prefixCls;return a.createElement("tfoot",{className:"".concat(an,"-summary")},Lr)}var nn=Cr,mn={Cell:lt,Row:tt};function Bn(Nt){var Lr,Dr=Nt.prefixCls,an=Nt.record,Cn=Nt.onExpand,Nn=Nt.expanded,En=Nt.expandable,ei="".concat(Dr,"-row-expand-icon");if(!En)return a.createElement("span",{className:t()(ei,"".concat(Dr,"-row-spaced"))});var Wn=function(Fi){Cn(an,Fi),Fi.stopPropagation()};return a.createElement("span",{className:t()(ei,(Lr={},Object(e.a)(Lr,"".concat(Dr,"-row-expanded"),Nn),Object(e.a)(Lr,"".concat(Dr,"-row-collapsed"),!Nn),Lr)),onClick:Wn})}function oi(Nt,Lr,Dr){var an=[];function Cn(Nn){(Nn||[]).forEach(function(En,ei){an.push(Lr(En,ei)),Cn(En[Dr])})}return Cn(Nt),an}var wn=n("zT1h"),Rn=n("y0+3"),Zt=function(Lr,Dr){var an,Cn,Nn=Lr.scrollBodyRef,En=Lr.onScroll,ei=Lr.offsetScroll,Wn=a.useContext(dt),gi=Wn.prefixCls,Fi=((an=Nn.current)===null||an===void 0?void 0:an.scrollWidth)||0,wi=((Cn=Nn.current)===null||Cn===void 0?void 0:Cn.clientWidth)||0,Ii=Fi&&wi*(wi/Fi),Vi=a.useRef(),ea=or({scrollLeft:0,isHiddenScrollBar:!1}),Xi=Object(c.a)(ea,2),zi=Xi[0],Hi=Xi[1],Ji=a.useRef({delta:0,x:0}),ca=a.useState(!1),Ta=Object(c.a)(ca,2),na=Ta[0],Pa=Ta[1],La=function(){Pa(!1)},va=function(_a){_a.persist(),Ji.current.delta=_a.pageX-zi.scrollLeft,Ji.current.x=0,Pa(!0),_a.preventDefault()},ga=function(_a){var Va,Bi=_a||((Va=window)===null||Va===void 0?void 0:Va.event),io=Bi.buttons;if(!na||io===0){na&&Pa(!1);return}var oo=Ji.current.x+_a.pageX-Ji.current.x-Ji.current.delta;oo<=0&&(oo=0),oo+Ii>=wi&&(oo=wi-Ii),En({scrollLeft:oo/wi*(Fi+2)}),Ji.current.x=_a.pageX},Oa=function(){var _a=Object(Rn.b)(Nn.current).top,Va=_a+Nn.current.offsetHeight,Bi=document.documentElement.scrollTop+window.innerHeight;Va-Object(U.a)()<=Bi||_a>=Bi-ei?Hi(function(io){return Object(u.a)(Object(u.a)({},io),{},{isHiddenScrollBar:!0})}):Hi(function(io){return Object(u.a)(Object(u.a)({},io),{},{isHiddenScrollBar:!1})})},Aa=function(_a){Hi(function(Va){return Object(u.a)(Object(u.a)({},Va),{},{scrollLeft:_a/Fi*wi||0})})};return a.useImperativeHandle(Dr,function(){return{setScrollLeft:Aa}}),a.useEffect(function(){var Xa=Object(wn.a)(document.body,"mouseup",La,!1),_a=Object(wn.a)(document.body,"mousemove",ga,!1);return Oa(),function(){Xa.remove(),_a.remove()}},[Ii,na]),a.useEffect(function(){var Xa=Object(wn.a)(window,"scroll",Oa,!1),_a=Object(wn.a)(window,"resize",Oa,!1);return function(){Xa.remove(),_a.remove()}},[]),a.useEffect(function(){zi.isHiddenScrollBar||Hi(function(Xa){var _a,Va;return Object(u.a)(Object(u.a)({},Xa),{},{scrollLeft:Nn.current.scrollLeft/((_a=Nn.current)===null||_a===void 0?void 0:_a.scrollWidth)*((Va=Nn.current)===null||Va===void 0?void 0:Va.clientWidth)})})},[zi.isHiddenScrollBar]),Fi<=wi||!Ii||zi.isHiddenScrollBar?null:a.createElement("div",{style:{height:Object(U.a)(),width:wi,bottom:ei},className:"".concat(gi,"-sticky-scroll")},a.createElement("div",{onMouseDown:va,ref:Vi,className:t()("".concat(gi,"-sticky-scroll-bar"),Object(e.a)({},"".concat(gi,"-sticky-scroll-bar-active"),na)),style:{width:"".concat(Ii,"px"),transform:"translate3d(".concat(zi.scrollLeft,"px, 0, 0)")}}))},Tt=a.forwardRef(Zt);function De(Nt,Lr){return a.useMemo(function(){var Dr=!!Nt;return{isSticky:Dr,stickyClassName:Dr?"".concat(Lr,"-sticky-header"):"",offsetHeader:Object(s.a)(Nt)==="object"&&Nt.offsetHeader||0,offsetScroll:Object(s.a)(Nt)==="object"&&Nt.offsetScroll||0}},[Nt,Lr])}var Re=[],Pe={},rt="rc-table-internal-hook",wt=a.memo(function(Nt){var Lr=Nt.children;return Lr},function(Nt,Lr){return v()(Nt.props,Lr.props)?Nt.pingLeft!==Lr.pingLeft||Nt.pingRight!==Lr.pingRight:!1});function Ot(Nt){var Lr,Dr=Nt.prefixCls,an=Nt.className,Cn=Nt.rowClassName,Nn=Nt.style,En=Nt.data,ei=Nt.rowKey,Wn=Nt.scroll,gi=Nt.tableLayout,Fi=Nt.direction,wi=Nt.title,Ii=Nt.footer,Vi=Nt.summary,ea=Nt.id,Xi=Nt.showHeader,zi=Nt.components,Hi=Nt.emptyText,Ji=Nt.onRow,ca=Nt.onHeaderRow,Ta=Nt.internalHooks,na=Nt.transformColumns,Pa=Nt.internalRefs,La=Nt.sticky,va=En||Re,ga=!!va.length,Oa=a.useState(0),Aa=Object(c.a)(Oa,2),Xa=Aa[0],_a=Aa[1];a.useEffect(function(){_a(Object(U.a)())});var Va=a.useMemo(function(){return te(zi,{})},[zi]),Bi=a.useCallback(function(Vo,No){return Q(Va,Vo)||No},[Va]),io=a.useMemo(function(){return typeof ei=="function"?ei:function(Vo){var No=Vo&&Vo[ei];return No}},[ei]),oo=de(Nt),Qo=oo.expandIcon,mo=oo.expandedRowKeys,Co=oo.defaultExpandedRowKeys,ao=oo.defaultExpandAllRows,xo=oo.expandedRowRender,bo=oo.onExpand,to=oo.onExpandedRowsChange,Jo=oo.expandRowByClick,Uo=oo.rowExpandable,wo=oo.expandIconColumnIndex,ts=oo.expandedRowClassName,Ia=oo.childrenColumnName,Oo=oo.indentSize,Io=Qo||Bn,os=Ia||"children",So=a.useMemo(function(){return xo?"row":Nt.expandable&&Ta===rt&&Nt.expandable.__PARENT_RENDER_ICON__||va.some(function(Vo){return Vo&&Object(s.a)(Vo)==="object"&&Vo[os]})?"nest":!1},[!!xo,va]),rs=a.useState(function(){return Co||(ao?oi(va,io,os):[])}),Ho=Object(c.a)(rs,2),_o=Ho[0],uo=Ho[1],Ha=a.useMemo(function(){return new Set(mo||_o||[])},[mo,_o]),vt=a.useCallback(function(Vo){var No=io(Vo,va.indexOf(Vo)),fs,Ds=Ha.has(No);Ds?(Ha.delete(No),fs=Object(r.a)(Ha)):fs=[].concat(Object(r.a)(Ha),[No]),uo(fs),bo&&bo(!Ds,Vo),to&&to(fs)},[io,Ha,va,bo,to]),_r=a.useState(0),rn=Object(c.a)(_r,2),Jr=rn[0],Jn=rn[1],fn=Kt(Object(u.a)(Object(u.a)(Object(u.a)({},Nt),oo),{},{expandable:!!xo,expandedKeys:Ha,getRowKey:io,onTriggerExpand:vt,expandIcon:Io,expandIconColumnIndex:wo,direction:Fi}),Ta===rt?na:null),Yr=Object(c.a)(fn,2),ii=Yr[0],on=Yr[1],zn=a.useMemo(function(){return{columns:ii,flattenColumns:on}},[ii,on]),ui=a.useRef(),di=a.useRef(),li=a.useRef(),Ti=a.useState(!1),vi=Object(c.a)(Ti,2),yi=vi[0],Ni=vi[1],ia=a.useState(!1),Ki=Object(c.a)(ia,2),fa=Ki[0],Ya=Ki[1],Sa=or(new Map),wa=Object(c.a)(Sa,2),Da=wa[0],ja=wa[1],ko=G(on),ro=ko.map(function(Vo){return Da.get(Vo)}),pa=a.useMemo(function(){return ro},[ro.join("_")]),Ea=ut(pa,on.length,Fi),Fa=Wn&&q(Wn.y),Ka=Wn&&q(Wn.x),lo=Ka&&on.some(function(Vo){var No=Vo.fixed;return No}),so=a.useRef(),To=De(La,Dr),Lo=To.isSticky,is=To.offsetHeader,cs=To.offsetScroll,Rs=To.stickyClassName,Ko,as,co;Fa&&(as={overflowY:"scroll",maxHeight:Wn.y}),Ka&&(Ko={overflowX:"auto"},Fa||(as={overflowY:"hidden"}),co={width:Wn.x===!0?"auto":Wn.x,minWidth:"100%"});var Ao=a.useCallback(function(Vo,No){ja(function(fs){var Ds=new Map(fs);return Ds.set(Vo,No),Ds})},[]),$a=_t(null),ss=Object(c.a)($a,2),_s=ss[0],Fo=ss[1];function il(Vo,No){if(!No)return;typeof No=="function"?No(Vo):No.scrollLeft!==Vo&&(No.scrollLeft=Vo)}var Eo=function(No){var fs=No.currentTarget,Ds=No.scrollLeft,go=typeof Ds=="number"?Ds:fs.scrollLeft,zt=fs||Pe;if(!Fo()||Fo()===zt){var ur;_s(zt),il(go,di.current),il(go,li.current),il(go,(ur=so.current)===null||ur===void 0?void 0:ur.setScrollLeft)}if(fs){var Dn=fs.scrollWidth,fi=fs.clientWidth;Ni(go>0),Ya(go<Dn-fi)}},zo=function(){li.current&&Eo({currentTarget:li.current})},Fs=function(No){var fs=No.width;zo(),Jn(ui.current?ui.current.offsetWidth:fs)};a.useEffect(function(){return zo},[]),a.useEffect(function(){Ka&&zo()},[Ka]),a.useEffect(function(){Ta===rt&&Pa&&(Pa.body.current=li.current)});var ms=Bi(["table"],"table"),hs=a.useMemo(function(){return gi||(lo?Wn.x==="max-content"?"auto":"fixed":Fa||on.some(function(Vo){var No=Vo.ellipsis;return No})?"fixed":"auto")},[Fa,lo,on,gi]),Sn,Ns={colWidths:pa,columCount:on.length,stickyOffsets:Ea,onHeaderRow:ca,fixHeader:Fa},Ll=a.useMemo(function(){return ga?null:typeof Hi=="function"?Hi():Hi},[ga,Hi]),el=a.createElement(Ge,{data:va,measureColumnWidth:Fa||Ka||Lo,expandedKeys:Ha,rowExpandable:Uo,getRowKey:io,onRow:Ji,emptyNode:Ll,childrenColumnName:os}),Gs=a.createElement(Be,{colWidths:on.map(function(Vo){var No=Vo.width;return No}),columns:on}),ds=Vi&&a.createElement(nn,null,Vi(va)),ks=Bi(["body"]);if(Fa||Lo){var Qs;typeof ks=="function"?(Qs=ks(va,{scrollbarSize:Xa,ref:li,onScroll:Eo}),Ns.colWidths=on.map(function(Vo,No){var fs=Vo.width,Ds=No===ii.length-1?fs-Xa:fs;return typeof Ds=="number"&&!Number.isNaN(Ds)?Ds:(Object(A.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Qs=a.createElement("div",{style:Object(u.a)(Object(u.a)({},Ko),as),onScroll:Eo,ref:li,className:t()("".concat(Dr,"-body"))},a.createElement(ms,{style:Object(u.a)(Object(u.a)({},co),{},{tableLayout:hs})},Gs,el,ds),Lo&&a.createElement(Tt,{ref:so,offsetScroll:cs,scrollBodyRef:li,onScroll:Eo})),Sn=a.createElement(a.Fragment,null,Xi!==!1&&a.createElement(ke,Object.assign({noData:!va.length},Ns,zn,{direction:Fi,offsetHeader:is,stickyClassName:Rs,ref:di,onScroll:Eo})),Qs)}else Sn=a.createElement("div",{style:Object(u.a)(Object(u.a)({},Ko),as),className:t()("".concat(Dr,"-content")),onScroll:Eo,ref:li},a.createElement(ms,{style:Object(u.a)(Object(u.a)({},co),{},{tableLayout:hs})},Gs,Xi!==!1&&a.createElement(Y,Object.assign({},Ns,zn)),el,ds));var tl=be(Nt),Ss=a.createElement("div",Object.assign({className:t()(Dr,an,(Lr={},Object(e.a)(Lr,"".concat(Dr,"-rtl"),Fi==="rtl"),Object(e.a)(Lr,"".concat(Dr,"-ping-left"),yi),Object(e.a)(Lr,"".concat(Dr,"-ping-right"),fa),Object(e.a)(Lr,"".concat(Dr,"-layout-fixed"),gi==="fixed"),Object(e.a)(Lr,"".concat(Dr,"-fixed-header"),Fa),Object(e.a)(Lr,"".concat(Dr,"-fixed-column"),lo),Object(e.a)(Lr,"".concat(Dr,"-scroll-horizontal"),Ka),Object(e.a)(Lr,"".concat(Dr,"-has-fix-left"),on[0]&&on[0].fixed),Object(e.a)(Lr,"".concat(Dr,"-has-fix-right"),on[on.length-1]&&on[on.length-1].fixed==="right"),Lr)),style:Nn,id:ea,ref:ui},tl),a.createElement(wt,{pingLeft:yi,pingRight:fa,props:Object(u.a)(Object(u.a)({},Nt),{},{stickyOffsets:Ea,mergedExpandedKeys:Ha})},wi&&a.createElement(mt,{className:"".concat(Dr,"-title")},wi(va)),a.createElement("div",{className:"".concat(Dr,"-container")},Sn),Ii&&a.createElement(mt,{className:"".concat(Dr,"-footer")},Ii(va))));Ka&&(Ss=a.createElement(M,{onResize:Fs},Ss));var Bs=a.useMemo(function(){return{prefixCls:Dr,getComponent:Bi,scrollbarSize:Xa,direction:Fi,fixedInfoList:on.map(function(Vo,No){return Fe(No,No,on,Ea,Fi)}),isSticky:Lo}},[Dr,Bi,Xa,Fi,on,Ea,Fi,Lo]),al=a.useMemo(function(){return Object(u.a)(Object(u.a)({},zn),{},{tableLayout:hs,rowClassName:Cn,expandedRowClassName:ts,componentWidth:Jr,fixHeader:Fa,fixColumn:lo,horizonScroll:Ka,expandIcon:Io,expandableType:So,expandRowByClick:Jo,expandedRowRender:xo,onTriggerExpand:vt,expandIconColumnIndex:wo,indentSize:Oo})},[zn,hs,Cn,ts,Jr,Fa,lo,Ka,Io,So,Jo,xo,vt,wo,Oo]),Js=a.useMemo(function(){return{onColumnResize:Ao}},[Ao]);return a.createElement(dt.Provider,{value:Bs},a.createElement(Ct.Provider,{value:al},a.createElement(pr.Provider,{value:Js},Ss)))}Ot.Column=j,Ot.ColumnGroup=X,Ot.Summary=mn,Ot.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var $t=Ot,Mr=$t,Vr=n("W9HT"),hn=n("NUBc"),Vt=n("H84U"),yt=function(Nt,Lr){var Dr={};for(var an in Nt)Object.prototype.hasOwnProperty.call(Nt,an)&&Lr.indexOf(an)<0&&(Dr[an]=Nt[an]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Cn=0,an=Object.getOwnPropertySymbols(Nt);Cn<an.length;Cn++)Lr.indexOf(an[Cn])<0&&Object.prototype.propertyIsEnumerable.call(Nt,an[Cn])&&(Dr[an[Cn]]=Nt[an[Cn]]);return Dr},xt=10;function dr(Nt,Lr){var Dr={current:Lr.current,pageSize:Lr.pageSize},an=Nt&&g()(Nt)==="object"?Nt:{};return Object.keys(an).forEach(function(Cn){var Nn=Lr[Cn];typeof Nn!="function"&&(Dr[Cn]=Nn)}),Dr}function er(){for(var Nt={},Lr=arguments.length,Dr=new Array(Lr),an=0;an<Lr;an++)Dr[an]=arguments[an];return Dr.forEach(function(Cn){Cn&&Object.keys(Cn).forEach(function(Nn){var En=Cn[Nn];En!==void 0&&(Nt[Nn]=En)})}),Nt}function Ut(Nt,Lr,Dr){var an=Lr&&g()(Lr)==="object"?Lr:{},Cn=an.total,Nn=Cn===void 0?0:Cn,En=yt(an,["total"]),ei=Object(a.useState)(function(){return{current:"defaultCurrent"in En?En.defaultCurrent:1,pageSize:"defaultPageSize"in En?En.defaultPageSize:xt}}),Wn=f()(ei,2),gi=Wn[0],Fi=Wn[1],wi=er(gi,En,{total:Nn>0?Nn:Nt});if(!Nn){var Ii=Math.ceil(Nt/wi.pageSize);Ii<wi.current&&(wi.current=1)}var Vi=function(){var zi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,Hi=arguments.length>1?arguments[1]:void 0;Fi(l()(l()({},wi),{current:zi,pageSize:Hi||wi.pageSize}))},ea=function(zi,Hi){var Ji=wi==null?void 0:wi.pageSize;Hi&&Hi!==Ji&&(zi=1,Lr&&Lr.onShowSizeChange&&Lr.onShowSizeChange(zi,Hi)),Lr&&Lr.onChange&&Lr.onChange(zi,Hi),Vi(zi,Hi),Dr(zi,Hi||Ji)};return Lr===!1?[{},function(){}]:[l()(l()({},wi),{onChange:ea}),Vi]}function ir(Nt,Lr,Dr){var an=a.useRef({});function Cn(Nn){if(!an.current||an.current.data!==Nt||an.current.childrenColumnName!==Lr||an.current.getRowKey!==Dr){var En=function Wn(gi){gi.forEach(function(Fi,wi){var Ii=Dr(Fi,wi);ei.set(Ii,Fi),Fi&&g()(Fi)==="object"&&Lr in Fi&&Wn(Fi[Lr]||[])})},ei=new Map;En(Nt),an.current={data:Nt,childrenColumnName:Lr,kvMap:ei,getRowKey:Dr}}return an.current.kvMap.get(Nn)}return[Cn]}var Ft=n("SA+Z"),rr=n.n(Ft),Kr=n("RIqP"),Rr=n.n(Kr),kr=n("HQEm"),dn=n.n(kr),yn=n("c3jg"),ri=n("qOx5"),$n=n("wPhX"),pi=n("6cGi"),_i=n("kaz8"),Di=n("jsC+"),Wi=n("BvKs"),at=n("9yH6"),Le=n("uaoM"),je="SELECT_ALL",Xe="SELECT_INVERT";function it(Nt){return Nt&&Nt.fixed}function Ze(Nt,Lr){var Dr=[];return(Nt||[]).forEach(function(an){Dr.push(an),an&&g()(an)==="object"&&Lr in an&&(Dr=[].concat(Rr()(Dr),Rr()(Ze(an[Lr],Lr))))}),Dr}function ot(Nt,Lr){var Dr=Nt||{},an=Dr.preserveSelectedRowKeys,Cn=Dr.selectedRowKeys,Nn=Dr.getCheckboxProps,En=Dr.onChange,ei=Dr.onSelect,Wn=Dr.onSelectAll,gi=Dr.onSelectInvert,Fi=Dr.onSelectMultiple,wi=Dr.columnWidth,Ii=Dr.type,Vi=Dr.selections,ea=Dr.fixed,Xi=Dr.renderCell,zi=Dr.hideSelectAll,Hi=Dr.checkStrictly,Ji=Hi===void 0?!0:Hi,ca=Lr.prefixCls,Ta=Lr.data,na=Lr.pageData,Pa=Lr.getRecordByKey,La=Lr.getRowKey,va=Lr.expandType,ga=Lr.childrenColumnName,Oa=Lr.locale,Aa=Lr.expandIconColumnIndex,Xa=Lr.getPopupContainer,_a=a.useRef(new Map),Va=Object(pi.a)(Cn||[],{value:Cn}),Bi=f()(Va,2),io=Bi[0],oo=Bi[1],Qo=Object(a.useMemo)(function(){return Ji?{keyEntities:null}:Object(yn.a)(Ta,void 0,La)},[Ta,La,Ji]),mo=Qo.keyEntities,Co=Object(a.useMemo)(function(){return Ze(na,ga)},[na,ga]),ao=Object(a.useMemo)(function(){var uo=new Map;return Co.forEach(function(Ha,vt){var _r=La(Ha,vt),rn=(Nn?Nn(Ha):null)||{};uo.set(_r,rn)}),uo},[Co,La,Nn]),xo=Object(a.useCallback)(function(uo){var Ha;return!!((Ha=ao.get(La(uo)))===null||Ha===void 0?void 0:Ha.disabled)},[ao,La]),bo=Object(a.useMemo)(function(){if(Ji)return[io,[]];var uo=Object(ri.a)(io,!0,mo,xo),Ha=uo.checkedKeys,vt=uo.halfCheckedKeys;return[Ha,vt]},[io,Ji,mo,xo]),to=f()(bo,2),Jo=to[0],Uo=to[1],wo=Object(a.useMemo)(function(){var uo=Ii==="radio"?Jo.slice(0,1):Jo;return new Set(uo)},[Jo,Ii]),ts=Object(a.useMemo)(function(){return Ii==="radio"?new Set:new Set(Uo)},[Uo,Ii]),Ia=Object(a.useState)(null),Oo=f()(Ia,2),Io=Oo[0],os=Oo[1];a.useEffect(function(){Nt||oo([])},[!!Nt]);var So=Object(a.useCallback)(function(uo){var Ha,vt;if(an){var _r=new Map;Ha=uo,vt=uo.map(function(rn){var Jr=Pa(rn);return!Jr&&_a.current.has(rn)&&(Jr=_a.current.get(rn)),_r.set(rn,Jr),Jr}),_a.current=_r}else Ha=[],vt=[],uo.forEach(function(rn){var Jr=Pa(rn);Jr!==void 0&&(Ha.push(rn),vt.push(Jr))});oo(Ha),En&&En(Ha,vt)},[oo,Pa,En,an]),rs=Object(a.useCallback)(function(uo,Ha,vt,_r){if(ei){var rn=vt.map(function(Jr){return Pa(Jr)});ei(Pa(uo),Ha,rn,_r)}So(vt)},[ei,Pa,So]),Ho=Object(a.useMemo)(function(){if(!Vi||zi)return null;var uo=Vi===!0?[je,Xe]:Vi;return uo.map(function(Ha){return Ha===je?{key:"all",text:Oa.selectionAll,onSelect:function(){So(Ta.map(function(_r,rn){return La(_r,rn)}))}}:Ha===Xe?{key:"invert",text:Oa.selectInvert,onSelect:function(){var _r=new Set(wo);na.forEach(function(Jr,Jn){var fn=La(Jr,Jn);_r.has(fn)?_r.delete(fn):_r.add(fn)});var rn=Array.from(_r);So(rn),gi&&(Object(Le.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),gi(rn))}}:Ha})},[Vi,wo,na,La,gi,So]),_o=Object(a.useCallback)(function(uo){if(!Nt)return uo;var Ha=new Set(wo),vt=Co.map(La).filter(function(yi){return!ao.get(yi).disabled}),_r=vt.every(function(yi){return Ha.has(yi)}),rn=vt.some(function(yi){return Ha.has(yi)}),Jr=function(){var Ni=[];_r?vt.forEach(function(Ki){Ha.delete(Ki),Ni.push(Ki)}):vt.forEach(function(Ki){Ha.has(Ki)||(Ha.add(Ki),Ni.push(Ki))});var ia=Array.from(Ha);So(ia),Wn&&Wn(!_r,ia.map(function(Ki){return Pa(Ki)}),Ni.map(function(Ki){return Pa(Ki)}))},Jn;if(Ii!=="radio"){var fn;if(Ho){var Yr=a.createElement(Wi.a,{getPopupContainer:Xa},Ho.map(function(yi,Ni){var ia=yi.key,Ki=yi.text,fa=yi.onSelect;return a.createElement(Wi.a.Item,{key:ia||Ni,onClick:function(){fa&&fa(vt)}},Ki)}));fn=a.createElement("div",{className:"".concat(ca,"-selection-extra")},a.createElement(Di.a,{overlay:Yr,getPopupContainer:Xa},a.createElement("span",null,a.createElement(dn.a,null))))}var ii=Co.every(function(yi,Ni){var ia=La(yi,Ni),Ki=ao.get(ia)||{};return Ki.disabled});Jn=!zi&&a.createElement("div",{className:"".concat(ca,"-selection")},a.createElement(_i.a,{checked:!ii&&!!Co.length&&_r,indeterminate:!_r&&rn,onChange:Jr,disabled:Co.length===0||ii}),fn)}var on;Ii==="radio"?on=function(Ni,ia,Ki){var fa=La(ia,Ki),Ya=Ha.has(fa);return{node:a.createElement(at.a,l()({},ao.get(fa),{checked:Ya,onClick:function(wa){return wa.stopPropagation()},onChange:function(wa){Ha.has(fa)||rs(fa,!0,[fa],wa.nativeEvent)}})),checked:Ya}}:on=function(Ni,ia,Ki){var fa,Ya=La(ia,Ki),Sa=Ha.has(Ya),wa=ts.has(Ya),Da=ao.get(Ya),ja;return va==="nest"?(ja=wa,Object(Le.a)(!(typeof(Da==null?void 0:Da.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ja=(fa=Da==null?void 0:Da.indeterminate)!==null&&fa!==void 0?fa:wa,{node:a.createElement(_i.a,l()({},Da,{indeterminate:ja,checked:Sa,onClick:function(ro){return ro.stopPropagation()},onChange:function(ro){var pa=ro.nativeEvent,Ea=pa.shiftKey,Fa=-1,Ka=-1;if(Ea&&Ji){var lo=new Set([Io,Ya]);vt.some(function($a,ss){if(lo.has($a))if(Fa===-1)Fa=ss;else return Ka=ss,!0;return!1})}if(Ka!==-1&&Fa!==Ka&&Ji){var so=vt.slice(Fa,Ka+1),To=[];Sa?so.forEach(function($a){Ha.has($a)&&(To.push($a),Ha.delete($a))}):so.forEach(function($a){Ha.has($a)||(To.push($a),Ha.add($a))});var Lo=Array.from(Ha);So(Lo),Fi&&Fi(!Sa,Lo.map(function($a){return Pa($a)}),To.map(function($a){return Pa($a)}))}else{var is=Jo;if(Ji){var cs=Sa?Object($n.b)(is,Ya):Object($n.a)(is,Ya);rs(Ya,!Sa,cs,pa)}else{var Rs=Object(ri.a)([].concat(Rr()(is),[Ya]),!0,mo,xo),Ko=Rs.checkedKeys,as=Rs.halfCheckedKeys,co=Ko;if(Sa){var Ao=new Set(Ko);Ao.delete(Ya),co=Object(ri.a)(Array.from(Ao),{checked:!1,halfCheckedKeys:as},mo,xo).checkedKeys}rs(Ya,!Sa,co,pa)}}os(Ya)}})),checked:Sa}};var zn=function(Ni,ia,Ki){var fa=on(Ni,ia,Ki),Ya=fa.node,Sa=fa.checked;return Xi?Xi(Sa,ia,Ki,Ya):Ya},ui=m()({width:wi,className:"".concat(ca,"-selection-column"),title:Nt.columnTitle||Jn,render:zn},$,{className:"".concat(ca,"-selection-col")});if(va==="row"&&uo.length&&!Aa){var di=rr()(uo),li=di[0],Ti=di.slice(1),vi=ea||it(Ti[0]);return vi&&(li.fixed=vi),[li,l()(l()({},ui),{fixed:vi})].concat(Rr()(Ti))}return[l()(l()({},ui),{fixed:ea||it(uo[0])})].concat(Rr()(uo))},[La,Co,Nt,Jo,wo,ts,wi,Ho,va,Io,ao,Fi,rs,xo]);return[_o,wo]}var Lt=n("6SEX"),At=n.n(Lt),mr=n("i8CU"),qr=n.n(mr),Qr=n("3S7+");function gn(Nt,Lr){return"key"in Nt&&Nt.key!==void 0&&Nt.key!==null?Nt.key:Nt.dataIndex?Array.isArray(Nt.dataIndex)?Nt.dataIndex.join("."):Nt.dataIndex:Lr}function yr(Nt,Lr){return Lr?"".concat(Lr,"-").concat(Nt):"".concat(Nt)}function Vn(Nt,Lr){return typeof Nt=="function"?Nt(Lr):Nt}var Br="ascend",jn="descend";function xn(Nt){return g()(Nt.sorter)==="object"&&typeof Nt.sorter.multiple=="number"?Nt.sorter.multiple:!1}function tn(Nt){return typeof Nt=="function"?Nt:Nt&&g()(Nt)==="object"&&Nt.compare?Nt.compare:!1}function ti(Nt,Lr){return Lr?Nt[Nt.indexOf(Lr)+1]:Nt[0]}function mi(Nt,Lr,Dr){var an=[];function Cn(Nn,En){an.push({column:Nn,key:gn(Nn,En),multiplePriority:xn(Nn),sortOrder:Nn.sortOrder})}return(Nt||[]).forEach(function(Nn,En){var ei=yr(En,Dr);Nn.children?("sortOrder"in Nn&&Cn(Nn,ei),an=[].concat(Rr()(an),Rr()(mi(Nn.children,Lr,ei)))):Nn.sorter&&("sortOrder"in Nn?Cn(Nn,ei):Lr&&Nn.defaultSortOrder&&an.push({column:Nn,key:gn(Nn,ei),multiplePriority:xn(Nn),sortOrder:Nn.defaultSortOrder}))}),an}function Pi(Nt,Lr,Dr,an,Cn,Nn,En,ei){return(Lr||[]).map(function(Wn,gi){var Fi=yr(gi,ei),wi=Wn;if(wi.sorter){var Ii=wi.sortDirections||Cn,Vi=wi.showSorterTooltip===void 0?En:wi.showSorterTooltip,ea=gn(wi,Fi),Xi=Dr.find(function(ga){var Oa=ga.key;return Oa===ea}),zi=Xi?Xi.sortOrder:null,Hi=ti(Ii,zi),Ji=Ii.includes(Br)&&a.createElement(qr.a,{className:t()("".concat(Nt,"-column-sorter-up"),{active:zi===Br})}),ca=Ii.includes(jn)&&a.createElement(At.a,{className:t()("".concat(Nt,"-column-sorter-down"),{active:zi===jn})}),Ta=Nn||{},na=Ta.cancelSort,Pa=Ta.triggerAsc,La=Ta.triggerDesc,va=na;Hi===jn?va=La:Hi===Br&&(va=Pa),wi=l()(l()({},wi),{className:t()(wi.className,m()({},"".concat(Nt,"-column-sort"),zi)),title:function(Oa){var Aa=a.createElement("div",{className:"".concat(Nt,"-column-sorters")},a.createElement("span",null,Vn(Wn.title,Oa)),a.createElement("span",{className:t()("".concat(Nt,"-column-sorter"),m()({},"".concat(Nt,"-column-sorter-full"),Ji&&ca))},a.createElement("span",{className:"".concat(Nt,"-column-sorter-inner")},Ji,ca)));return Vi?a.createElement(Qr.a,{title:va},a.createElement("div",{className:"".concat(Nt,"-column-sorters-with-tooltip")},Aa)):Aa},onHeaderCell:function(Oa){var Aa=Wn.onHeaderCell&&Wn.onHeaderCell(Oa)||{},Xa=Aa.onClick;return Aa.onClick=function(_a){an({column:Wn,key:ea,sortOrder:Hi,multiplePriority:xn(Wn)}),Xa&&Xa(_a)},Aa.className=t()(Aa.className,"".concat(Nt,"-column-has-sorters")),Aa}})}return"children"in wi&&(wi=l()(l()({},wi),{children:Pi(Nt,wi.children,Dr,an,Cn,Nn,En,Fi)})),wi})}function en(Nt){var Lr=Nt.column,Dr=Nt.sortOrder;return{column:Lr,order:Dr,field:Lr.dataIndex,columnKey:Lr.key}}function Tn(Nt){var Lr=Nt.filter(function(Dr){var an=Dr.sortOrder;return an}).map(en);return Lr.length===0&&Nt.length?l()(l()({},en(Nt[Nt.length-1])),{column:void 0}):Lr.length<=1?Lr[0]||{}:Lr}function Yn(Nt,Lr,Dr){var an=Lr.slice().sort(function(En,ei){return ei.multiplePriority-En.multiplePriority}),Cn=Nt.slice(),Nn=an.filter(function(En){var ei=En.column.sorter,Wn=En.sortOrder;return tn(ei)&&Wn});return Nn.length?Cn.sort(function(En,ei){for(var Wn=0;Wn<Nn.length;Wn+=1){var gi=Nn[Wn],Fi=gi.column.sorter,wi=gi.sortOrder,Ii=tn(Fi);if(Ii&&wi){var Vi=Ii(En,ei,wi);if(Vi!==0)return wi===Br?Vi:-Vi}}return 0}).map(function(En){var ei=En[Dr];return ei?l()(l()({},En),m()({},Dr,Yn(ei,Lr,Dr))):En}):Cn}function Yt(Nt){var Lr=Nt.prefixCls,Dr=Nt.mergedColumns,an=Nt.onSorterChange,Cn=Nt.sortDirections,Nn=Nt.tableLocale,En=Nt.showSorterTooltip,ei=a.useState(mi(Dr,!0)),Wn=f()(ei,2),gi=Wn[0],Fi=Wn[1],wi=a.useMemo(function(){var zi=!0,Hi=mi(Dr,!1);if(!Hi.length)return gi;var Ji=[];function ca(na){zi?Ji.push(na):Ji.push(l()(l()({},na),{sortOrder:null}))}var Ta=null;return Hi.forEach(function(na){Ta===null?(ca(na),na.sortOrder&&(na.multiplePriority===!1?zi=!1:Ta=!0)):(Ta&&na.multiplePriority!==!1||(zi=!1),ca(na))}),Ji},[Dr,gi]),Ii=a.useMemo(function(){var zi=wi.map(function(Hi){var Ji=Hi.column,ca=Hi.sortOrder;return{column:Ji,order:ca}});return{sortColumns:zi,sortColumn:zi[0]&&zi[0].column,sortOrder:zi[0]&&zi[0].order}},[wi]);function Vi(zi){var Hi;zi.multiplePriority===!1||!wi.length||wi[0].multiplePriority===!1?Hi=[zi]:Hi=[].concat(Rr()(wi.filter(function(Ji){var ca=Ji.key;return ca!==zi.key})),[zi]),Fi(Hi),an(Tn(Hi),Hi)}var ea=function(Hi){return Pi(Lr,Hi,wi,Vi,Cn,Nn,En)},Xi=function(){return Tn(wi)};return[ea,wi,Ii,Xi]}var Dt=n("Y+p1"),Bt=n.n(Dt),Wt=n("5Uyt"),Xt=n.n(Wt),kt=n("2/Rp"),hr=n("ECub"),br=function(Lr){return a.createElement("div",{className:Lr.className,onClick:function(an){return an.stopPropagation()}},Lr.children)},wr=br,Fr=n("sPtV"),Xn=Wi.a.SubMenu,Fn=Wi.a.Item;function hi(Nt){return Nt.some(function(Lr){var Dr=Lr.children;return Dr})}function An(Nt){var Lr=Nt.filters,Dr=Nt.prefixCls,an=Nt.filteredKeys,Cn=Nt.filterMultiple,Nn=Nt.locale;return Lr.length===0?a.createElement(a.Fragment,null,a.createElement(hr.a,{image:hr.a.PRESENTED_IMAGE_SIMPLE,description:Nn.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):Lr.map(function(En,ei){var Wn=String(En.value);if(En.children)return a.createElement(Xn,{key:Wn||ei,title:En.text,popupClassName:"".concat(Dr,"-dropdown-submenu")},An({filters:En.children,prefixCls:Dr,filteredKeys:an,filterMultiple:Cn,locale:Nn}));var gi=Cn?_i.a:at.a;return a.createElement(Fn,{key:En.value!==void 0?Wn:ei},a.createElement(gi,{checked:an.includes(Wn)}),a.createElement("span",null,En.text))})}function jr(Nt){var Lr,Dr=Nt.prefixCls,an=Nt.column,Cn=Nt.dropdownPrefixCls,Nn=Nt.columnKey,En=Nt.filterMultiple,ei=Nt.filterState,Wn=Nt.triggerFilter,gi=Nt.locale,Fi=Nt.children,wi=Nt.getPopupContainer,Ii=an.filterDropdownVisible,Vi=an.onFilterDropdownVisibleChange,ea=a.useState(!1),Xi=f()(ea,2),zi=Xi[0],Hi=Xi[1],Ji=!!(ei&&(((Lr=ei.filteredKeys)===null||Lr===void 0?void 0:Lr.length)||ei.forceFiltered)),ca=function(Oo){Hi(Oo),Vi&&Vi(Oo)},Ta=typeof Ii=="boolean"?Ii:zi,na=ei&&ei.filteredKeys,Pa=Object(Fr.a)(na||[]),La=f()(Pa,2),va=La[0],ga=La[1],Oa=function(Oo){var Io=Oo.selectedKeys;ga(Io)};a.useEffect(function(){Oa({selectedKeys:na||[]})},[na]);var Aa=a.useState([]),Xa=f()(Aa,2),_a=Xa[0],Va=Xa[1],Bi=a.useRef(),io=function(Oo){Bi.current=window.setTimeout(function(){Va(Oo)})},oo=function(){window.clearTimeout(Bi.current)};a.useEffect(function(){return function(){window.clearTimeout(Bi.current)}},[]);var Qo=function(Oo){ca(!1);var Io=Oo&&Oo.length?Oo:null;if(Io===null&&(!ei||!ei.filteredKeys))return null;if(Bt()(Io,ei==null?void 0:ei.filteredKeys))return null;Wn({column:an,key:Nn,filteredKeys:Io})},mo=function(){Qo(va())},Co=function(){ga([]),Qo([])},ao=function(Oo){Oo&&na!==void 0&&ga(na||[]),ca(Oo),!Oo&&!an.filterDropdown&&mo()},xo=t()(m()({},"".concat(Cn,"-menu-without-submenu"),!hi(an.filters||[]))),bo;if(typeof an.filterDropdown=="function")bo=an.filterDropdown({prefixCls:"".concat(Cn,"-custom"),setSelectedKeys:function(Oo){return Oa({selectedKeys:Oo})},selectedKeys:va(),confirm:mo,clearFilters:Co,filters:an.filters,visible:Ta});else if(an.filterDropdown)bo=an.filterDropdown;else{var to=va()||[];bo=a.createElement(a.Fragment,null,a.createElement(Wi.a,{multiple:En,prefixCls:"".concat(Cn,"-menu"),className:xo,onClick:oo,onSelect:Oa,onDeselect:Oa,selectedKeys:to,getPopupContainer:wi,openKeys:_a,onOpenChange:io},An({filters:an.filters||[],prefixCls:Dr,filteredKeys:va(),filterMultiple:En,locale:gi})),a.createElement("div",{className:"".concat(Dr,"-dropdown-btns")},a.createElement(kt.a,{type:"link",size:"small",disabled:to.length===0,onClick:Co},gi.filterReset),a.createElement(kt.a,{type:"primary",size:"small",onClick:mo},gi.filterConfirm)))}var Jo=a.createElement(wr,{className:"".concat(Dr,"-dropdown")},bo),Uo;typeof an.filterIcon=="function"?Uo=an.filterIcon(Ji):an.filterIcon?Uo=an.filterIcon:Uo=a.createElement(Xt.a,null);var wo=a.useContext(Vt.b),ts=wo.direction;return a.createElement("div",{className:t()("".concat(Dr,"-column"))},a.createElement("span",{className:"".concat(Dr,"-column-title")},Fi),a.createElement("span",{className:t()("".concat(Dr,"-trigger-container"),m()({},"".concat(Dr,"-trigger-container-open"),Ta)),onClick:function(Oo){Oo.stopPropagation()}},a.createElement(Di.a,{overlay:Jo,trigger:["click"],visible:Ta,onVisibleChange:ao,getPopupContainer:wi,placement:ts==="rtl"?"bottomLeft":"bottomRight"},a.createElement("span",{role:"button",tabIndex:-1,className:t()("".concat(Dr,"-trigger"),{active:Ji})},Uo))))}var In=jr;function Qn(Nt,Lr,Dr){var an=[];return(Nt||[]).forEach(function(Cn,Nn){var En=yr(Nn,Dr);"children"in Cn?an=[].concat(Rr()(an),Rr()(Qn(Cn.children,Lr,En))):(Cn.filters||"filterDropdown"in Cn||"onFilter"in Cn)&&("filteredValue"in Cn?an.push({column:Cn,key:gn(Cn,En),filteredKeys:Cn.filteredValue,forceFiltered:Cn.filtered}):an.push({column:Cn,key:gn(Cn,En),filteredKeys:Lr&&Cn.defaultFilteredValue?Cn.defaultFilteredValue:void 0,forceFiltered:Cn.filtered}))}),an}function qn(Nt,Lr,Dr,an,Cn,Nn,En,ei){return Dr.map(function(Wn,gi){var Fi=yr(gi,ei),wi=Wn.filterMultiple,Ii=wi===void 0?!0:wi;if(Wn.filters||"filterDropdown"in Wn){var Vi=gn(Wn,Fi),ea=an.find(function(Xi){var zi=Xi.key;return Vi===zi});return l()(l()({},Wn),{title:function(zi){return a.createElement(In,{prefixCls:"".concat(Nt,"-filter"),dropdownPrefixCls:Lr,column:Wn,columnKey:Vi,filterState:ea,filterMultiple:Ii,triggerFilter:Cn,locale:En,getPopupContainer:Nn},Vn(Wn.title,zi))}})}return"children"in Wn?l()(l()({},Wn),{children:qn(Nt,Lr,Wn.children,an,Cn,Nn,En,Fi)}):Wn})}function si(Nt){var Lr={};return Nt.forEach(function(Dr){var an=Dr.key,Cn=Dr.filteredKeys;Lr[an]=Cn||null}),Lr}function Ci(Nt){var Lr=[];return(Nt||[]).forEach(function(Dr){var an=Dr.value,Cn=Dr.children;Lr.push(an),Cn&&(Lr=[].concat(Rr()(Lr),Rr()(Ci(Cn))))}),Lr}function ki(Nt,Lr){return Lr.reduce(function(Dr,an){var Cn=an.column,Nn=Cn.onFilter,En=Cn.filters,ei=an.filteredKeys;return Nn&&ei&&ei.length?Dr.filter(function(Wn){return ei.some(function(gi){var Fi=Ci(En),wi=Fi.findIndex(function(Vi){return String(Vi)===String(gi)}),Ii=wi!==-1?Fi[wi]:gi;return Nn(Ii,Wn)})}):Dr},Nt)}function Ri(Nt){var Lr=Nt.prefixCls,Dr=Nt.dropdownPrefixCls,an=Nt.mergedColumns,Cn=Nt.onFilterChange,Nn=Nt.getPopupContainer,En=Nt.locale,ei=a.useState(Qn(an,!0)),Wn=f()(ei,2),gi=Wn[0],Fi=Wn[1],wi=a.useMemo(function(){var Xi=Qn(an,!1);return Xi.every(function(zi){var Hi=zi.filteredKeys;return Hi===void 0})?gi:Xi},[an,gi]),Ii=a.useCallback(function(){return si(wi)},[wi]),Vi=function(zi){var Hi=wi.filter(function(Ji){var ca=Ji.key;return ca!==zi.key});Hi.push(zi),Fi(Hi),Cn(si(Hi),Hi)},ea=function(zi){return qn(Lr,Dr,zi,wi,Vi,Nn,En)};return[ea,wi,Ii]}var oa=Ri;function ma(Nt,Lr){return Nt.map(function(Dr){var an=l()({},Dr);return an.title=Vn(Dr.title,Lr),"children"in an&&(an.children=ma(an.children,Lr)),an})}function aa(Nt){var Lr=a.useCallback(function(Dr){return ma(Dr,Nt)},[Nt]);return[Lr]}function ba(Nt){return function(Dr){var an,Cn=Dr.prefixCls,Nn=Dr.onExpand,En=Dr.record,ei=Dr.expanded,Wn=Dr.expandable,gi="".concat(Cn,"-row-expand-icon");return a.createElement("button",{type:"button",onClick:function(wi){Nn(En,wi),wi.stopPropagation()},className:t()(gi,(an={},m()(an,"".concat(gi,"-spaced"),!Wn),m()(an,"".concat(gi,"-expanded"),Wn&&ei),m()(an,"".concat(gi,"-collapsed"),Wn&&!ei),an)),"aria-label":ei?Nt.collapse:Nt.expand})}}var bi=ba,Pn=n("zAh6"),ji=n("ZvpZ"),ha=ji.a,ta=n("3Nzz");function ra(Nt){return null}var Nr=ra;function Er(Nt){return null}var On=Er,gr=n("5OYt"),Pr=[];function Xr(Nt){var Lr,Dr=Nt.prefixCls,an=Nt.className,Cn=Nt.style,Nn=Nt.size,En=Nt.bordered,ei=Nt.dropdownPrefixCls,Wn=Nt.dataSource,gi=Nt.pagination,Fi=Nt.rowSelection,wi=Nt.rowKey,Ii=Nt.rowClassName,Vi=Nt.columns,ea=Nt.children,Xi=Nt.childrenColumnName,zi=Nt.onChange,Hi=Nt.getPopupContainer,Ji=Nt.loading,ca=Nt.expandIcon,Ta=Nt.expandable,na=Nt.expandedRowRender,Pa=Nt.expandIconColumnIndex,La=Nt.indentSize,va=Nt.scroll,ga=Nt.sortDirections,Oa=Nt.locale,Aa=Nt.showSorterTooltip,Xa=Aa===void 0?!0:Aa;Object(Le.a)(!(typeof wi=="function"&&wi.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var _a=Object(gr.a)(),Va=a.useMemo(function(){var Ao=new Set(Object.keys(_a).filter(function($a){return _a[$a]}));return(Vi||pe(ea)).filter(function($a){return!$a.responsive||$a.responsive.some(function(ss){return Ao.has(ss)})})},[ea,Vi,_a]),Bi=Object(o.default)(Nt,["className","style","columns"]),io=a.useContext(ta.b),oo=a.useContext(Vt.b),Qo=oo.locale,mo=Qo===void 0?ha:Qo,Co=oo.renderEmpty,ao=oo.direction,xo=Nn||io,bo=l()(l()({},mo.Table),Oa),to=Wn||Pr,Jo=a.useContext(Vt.b),Uo=Jo.getPrefixCls,wo=Uo("table",Dr),ts=Uo("dropdown",ei),Ia=l()({childrenColumnName:Xi,expandIconColumnIndex:Pa},Ta),Oo=Ia.childrenColumnName,Io=Oo===void 0?"children":Oo,os=a.useMemo(function(){return to.some(function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[Io]})?"nest":na||Ta&&Ta.expandedRowRender?"row":null},[to]),So={body:a.useRef()},rs=a.useMemo(function(){return typeof wi=="function"?wi:function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[wi]}},[wi]),Ho=ir(to,Io,rs),_o=f()(Ho,1),uo=_o[0],Ha={},vt=function($a,ss){var _s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fo=l()(l()({},Ha),$a);_s&&(Ha.resetPagination(),Fo.pagination.current&&(Fo.pagination.current=1),gi&&gi.onChange&&gi.onChange(1,Fo.pagination.pageSize)),va&&va.scrollToFirstRowOnChange!==!1&&So.body.current&&Object(Pn.a)(0,{getContainer:function(){return So.body.current}}),zi&&zi(Fo.pagination,Fo.filters,Fo.sorter,{currentDataSource:ki(Yn(to,Fo.sorterStates,Io),Fo.filterStates),action:ss})},_r=function($a,ss){vt({sorter:$a,sorterStates:ss},"sort",!1)},rn=Yt({prefixCls:wo,mergedColumns:Va,onSorterChange:_r,sortDirections:ga||["ascend","descend"],tableLocale:bo,showSorterTooltip:Xa}),Jr=f()(rn,4),Jn=Jr[0],fn=Jr[1],Yr=Jr[2],ii=Jr[3],on=a.useMemo(function(){return Yn(to,fn,Io)},[to,fn]);Ha.sorter=ii(),Ha.sorterStates=fn;var zn=function($a,ss){vt({filters:$a,filterStates:ss},"filter",!0)},ui=oa({prefixCls:wo,locale:bo,dropdownPrefixCls:ts,mergedColumns:Va,onFilterChange:zn,getPopupContainer:Hi}),di=f()(ui,3),li=di[0],Ti=di[1],vi=di[2],yi=ki(on,Ti);Ha.filters=vi(),Ha.filterStates=Ti;var Ni=a.useMemo(function(){return l()({},Yr)},[Yr]),ia=aa(Ni),Ki=f()(ia,1),fa=Ki[0],Ya=function($a,ss){vt({pagination:l()(l()({},Ha.pagination),{current:$a,pageSize:ss})},"paginate")},Sa=Ut(yi.length,gi,Ya),wa=f()(Sa,2),Da=wa[0],ja=wa[1];Ha.pagination=gi===!1?{}:dr(gi,Da),Ha.resetPagination=ja;var ko=a.useMemo(function(){if(gi===!1||!Da.pageSize)return yi;var Ao=Da.current,$a=Ao===void 0?1:Ao,ss=Da.total,_s=Da.pageSize,Fo=_s===void 0?xt:_s;return yi.length<ss?yi.length>Fo?(Object(Le.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."),yi.slice(($a-1)*Fo,$a*Fo)):yi:yi.slice(($a-1)*Fo,$a*Fo)},[!!gi,yi,Da&&Da.current,Da&&Da.pageSize,Da&&Da.total]),ro=ot(Fi,{prefixCls:wo,data:yi,pageData:ko,getRowKey:rs,getRecordByKey:uo,expandType:os,childrenColumnName:Io,locale:bo,expandIconColumnIndex:Ia.expandIconColumnIndex,getPopupContainer:Hi}),pa=f()(ro,2),Ea=pa[0],Fa=pa[1],Ka=function($a,ss,_s){var Fo;return typeof Ii=="function"?Fo=t()(Ii($a,ss,_s)):Fo=t()(Ii),t()(m()({},"".concat(wo,"-row-selected"),Fa.has(rs($a,ss))),Fo)};Ia.__PARENT_RENDER_ICON__=Ia.expandIcon,Ia.expandIcon=Ia.expandIcon||ca||bi(bo),os==="nest"&&Ia.expandIconColumnIndex===void 0?Ia.expandIconColumnIndex=Fi?1:0:Ia.expandIconColumnIndex>0&&Fi&&(Ia.expandIconColumnIndex-=1),typeof Ia.indentSize!="number"&&(Ia.indentSize=typeof La=="number"?La:15);var lo=a.useCallback(function(Ao){return fa(Ea(li(Jn(Ao))))},[Jn,li,Ea]),so,To;if(gi!==!1){var Lo;Da.size?Lo=Da.size:Lo=xo==="small"||xo==="middle"?"small":void 0;var is=function($a){return a.createElement(hn.a,l()({className:"".concat(wo,"-pagination ").concat(wo,"-pagination-").concat($a)},Da,{size:Lo}))},cs=ao==="rtl"?"left":"right";if(Da.position!==null&&Array.isArray(Da.position)){var Rs=Da.position.find(function(Ao){return Ao.indexOf("top")!==-1}),Ko=Da.position.find(function(Ao){return Ao.indexOf("bottom")!==-1});!Rs&&!Ko?To=is(cs):(Rs&&(so=is(Rs.toLowerCase().replace("top",""))),Ko&&(To=is(Ko.toLowerCase().replace("bottom",""))))}else To=is(cs)}var as;typeof Ji=="boolean"?as={spinning:Ji}:g()(Ji)==="object"&&(as=l()({spinning:!0},Ji));var co=t()("".concat(wo,"-wrapper"),an,m()({},"".concat(wo,"-wrapper-rtl"),ao==="rtl"));return a.createElement("div",{className:co,style:Cn},a.createElement(Vr.a,l()({spinning:!1},as),so,a.createElement(Mr,l()({},Bi,{columns:Va,direction:ao,expandable:Ia,prefixCls:wo,className:t()((Lr={},m()(Lr,"".concat(wo,"-middle"),xo==="middle"),m()(Lr,"".concat(wo,"-small"),xo==="small"),m()(Lr,"".concat(wo,"-bordered"),En),m()(Lr,"".concat(wo,"-empty"),to.length===0),Lr)),data:ko,rowKey:rs,rowClassName:Ka,emptyText:Oa&&Oa.emptyText||Co("Table"),internalHooks:rt,internalRefs:So,transformColumns:lo})),yi&&yi.length>0&&To))}Xr.defaultProps={rowKey:"key"},Xr.SELECTION_ALL=je,Xr.SELECTION_INVERT=Xe,Xr.Column=Nr,Xr.ColumnGroup=On,Xr.Summary=mn;var cn=Xr,Un=D.a=cn},wDdD:function(R,D,n){var y=n("ProS"),g=n("bYtY");n("98bh"),n("GrNh");var S=n("d4KN"),m=n("mOdp"),p=n("KS52"),f=n("0/Rx");S("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),y.registerVisual(m("pie")),y.registerLayout(g.curry(p,"pie")),y.registerProcessor(f("pie"))},"wF/u":function(R,D,n){var y=n("e5cp"),g=n("ExA7");function S(m,p,f,d,l){return m===p?!0:m==null||p==null||!g(m)&&!g(p)?m!==m&&p!==p:y(m,p,f,d,S,l)}R.exports=S},wFql:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("q1tI"),f=n("TSYQ"),d=n.n(f),l=n("H84U"),a=n("uaoM"),i=n("ID/q"),t=function(ut,St){var mt={};for(var lt in ut)Object.prototype.hasOwnProperty.call(ut,lt)&&St.indexOf(lt)<0&&(mt[lt]=ut[lt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,lt=Object.getOwnPropertySymbols(ut);tt<lt.length;tt++)St.indexOf(lt[tt])<0&&Object.prototype.propertyIsEnumerable.call(ut,lt[tt])&&(mt[lt[tt]]=ut[lt[tt]]);return mt},o=function(St,mt){var lt=St.prefixCls,tt=St.component,Cr=tt===void 0?"article":tt,nn=St.className,mn=St["aria-label"],Bn=St.setContentRef,oi=St.children,wn=t(St,["prefixCls","component","className","aria-label","setContentRef","children"]),Rn=mt;return Bn&&(Object(a.a)(!1,"Typography","`setContentRef` is deprecated. Please use `ref` instead."),Rn=Object(i.a)(mt,Bn)),p.createElement(l.a,null,function(Zt){var Tt=Zt.getPrefixCls,De=Zt.direction,Re=Cr,Pe=Tt("typography",lt),rt=d()(Pe,nn,m()({},"".concat(Pe,"-rtl"),De==="rtl"));return p.createElement(Re,g()({className:rt,"aria-label":mn,ref:Rn},wn),oi)})},e=p.forwardRef(o);e.displayName="Typography";var u=e,r=u,s=n("cDf5"),c=n.n(s),h=n("RIqP"),v=n.n(h),A=n("lwsE"),b=n.n(A),x=n("W8MJ"),E=n.n(x),T=n("7W2i"),_=n.n(T),C=n("LQ03"),w=n.n(C),O=n("Zm9Q"),I=n("m+aA"),k=n("+QRC"),M=n.n(k),U=n("BGR+"),P=n("s/wZ"),X=n.n(P),F=n("NAnI"),j=n.n(F),K=n("0OKo"),z=n.n(K),V=n("6ner"),Q=n("wEI+"),G=n("YMnH"),te=n("4IlW"),q=function(ut,St){var mt={};for(var lt in ut)Object.prototype.hasOwnProperty.call(ut,lt)&&St.indexOf(lt)<0&&(mt[lt]=ut[lt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,lt=Object.getOwnPropertySymbols(ut);tt<lt.length;tt++)St.indexOf(lt[tt])<0&&Object.prototype.propertyIsEnumerable.call(ut,lt[tt])&&(mt[lt[tt]]=ut[lt[tt]]);return mt},se={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},re=function(ut){_()(mt,ut);var St=w()(mt);function mt(){var lt;return b()(this,mt),lt=St.apply(this,arguments),lt.onKeyDown=function(tt){var Cr=tt.keyCode;Cr===te.a.ENTER&&tt.preventDefault()},lt.onKeyUp=function(tt){var Cr=tt.keyCode,nn=lt.props.onClick;Cr===te.a.ENTER&&nn&&nn()},lt.setRef=function(tt){lt.div=tt},lt}return E()(mt,[{key:"componentDidMount",value:function(){var tt=this.props.autoFocus;tt&&this.focus()}},{key:"focus",value:function(){this.div&&this.div.focus()}},{key:"blur",value:function(){this.div&&this.div.blur()}},{key:"render",value:function(){var tt=this.props,Cr=tt.style,nn=tt.noStyle,mn=tt.disabled,Bn=q(tt,["style","noStyle","disabled"]),oi={};return nn||(oi=g()({},se)),mn&&(oi.pointerEvents="none"),oi=g()(g()({},oi),Cr),p.createElement("div",g()({role:"button",tabIndex:0,ref:this.setRef},Bn,{onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,style:oi}))}}]),mt}(p.Component),we=re,Oe=n("oHiP"),Me=function(St){if(typeof window!="undefined"&&window.document&&window.document.documentElement){var mt=Array.isArray(St)?St:[St],lt=window.document.documentElement;return mt.some(function(tt){return tt in lt.style})}return!1},Qe=Me(["flex","webkitFlex","Flex","msFlex"]),Ve=Me,dt=n("3S7+"),Fe=n("FMes"),ue=n.n(Fe),et=n("whJP"),he=function(ut){_()(mt,ut);var St=w()(mt);function mt(){var lt;return b()(this,mt),lt=St.apply(this,arguments),lt.inComposition=!1,lt.state={current:""},lt.onChange=function(tt){var Cr=tt.target.value;lt.setState({current:Cr.replace(/[\n\r]/g,"")})},lt.onCompositionStart=function(){lt.inComposition=!0},lt.onCompositionEnd=function(){lt.inComposition=!1},lt.onKeyDown=function(tt){var Cr=tt.keyCode;if(lt.inComposition)return;lt.lastKeyCode=Cr},lt.onKeyUp=function(tt){var Cr=tt.keyCode,nn=tt.ctrlKey,mn=tt.altKey,Bn=tt.metaKey,oi=tt.shiftKey,wn=lt.props.onCancel;lt.lastKeyCode===Cr&&!lt.inComposition&&!nn&&!mn&&!Bn&&!oi&&(Cr===te.a.ENTER?lt.confirmChange():Cr===te.a.ESC&&wn())},lt.onBlur=function(){lt.confirmChange()},lt.confirmChange=function(){var tt=lt.state.current,Cr=lt.props.onSave;Cr(tt.trim())},lt.setTextarea=function(tt){lt.textarea=tt},lt}return E()(mt,[{key:"componentDidMount",value:function(){if(this.textarea&&this.textarea.resizableTextArea){var tt=this.textarea.resizableTextArea.textArea;tt.focus();var Cr=tt.value.length;tt.setSelectionRange(Cr,Cr)}}},{key:"render",value:function(){var tt=this.state.current,Cr=this.props,nn=Cr.prefixCls,mn=Cr["aria-label"],Bn=Cr.className,oi=Cr.style,wn=Cr.direction,Rn=Cr.maxLength,Zt=Cr.autoSize,Tt=d()(nn,Bn,"".concat(nn,"-edit-content"),m()({},"".concat(nn,"-rtl"),wn==="rtl"));return p.createElement("div",{className:Tt,style:oi},p.createElement(et.a,{ref:this.setTextarea,maxLength:Rn,value:tt,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd,onBlur:this.onBlur,"aria-label":mn,autoSize:Zt===void 0||Zt}),p.createElement(ue.a,{className:"".concat(nn,"-edit-content-confirm")}))}}],[{key:"getDerivedStateFromProps",value:function(tt,Cr){var nn=Cr.prevValue,mn=tt.value,Bn={prevValue:mn};return nn!==mn&&(Bn.current=mn),Bn}}]),mt}(p.Component),J=he,Y=n("i8i4"),$=1,de=3,be=8,Te,Be={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function fe(ut){if(!ut)return 0;var St=ut.match(/^\d*(\.\d*)?/);return St?Number(St[0]):0}function xe(ut){var St=Array.prototype.slice.apply(ut);return St.map(function(mt){return"".concat(mt,": ").concat(ut.getPropertyValue(mt),";")}).join("")}function ke(ut){var St=[];return ut.forEach(function(mt){var lt=St[St.length-1];typeof mt=="string"&&typeof lt=="string"?St[St.length-1]+=mt:St.push(mt)}),St}var nt=function(ut,St,mt,lt,tt){Te||(Te=document.createElement("div"),Te.setAttribute("aria-hidden","true"),document.body.appendChild(Te));var Cr=St.rows,nn=St.suffix,mn=nn===void 0?"":nn,Bn=window.getComputedStyle(ut),oi=xe(Bn),wn=fe(Bn.lineHeight),Rn=Math.round(wn*(Cr+1)+fe(Bn.paddingTop)+fe(Bn.paddingBottom));Te.setAttribute("style",oi),Te.style.position="fixed",Te.style.left="0",Te.style.height="auto",Te.style.minHeight="auto",Te.style.maxHeight="auto",Te.style.top="-999999px",Te.style.zIndex="-1000",Te.style.textOverflow="clip",Te.style.whiteSpace="normal",Te.style.webkitLineClamp="none";var Zt=ke(Object(O.a)(mt));Object(Y.render)(p.createElement("div",{style:Be},p.createElement("span",{style:Be},Zt,mn),p.createElement("span",{style:Be},lt)),Te);function Tt(){return Te.offsetHeight<Rn}if(Tt())return Object(Y.unmountComponentAtNode)(Te),{content:mt,text:Te.innerHTML,ellipsis:!1};var De=Array.prototype.slice.apply(Te.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(function(Vr){var hn=Vr.nodeType;return hn!==be}),Re=Array.prototype.slice.apply(Te.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Object(Y.unmountComponentAtNode)(Te);var Pe=[];Te.innerHTML="";var rt=document.createElement("span");Te.appendChild(rt);var wt=document.createTextNode(tt+mn);rt.appendChild(wt),Re.forEach(function(Vr){Te.appendChild(Vr)});function Ot(Vr){rt.insertBefore(Vr,wt)}function $t(Vr,hn){var Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,yt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:hn.length,xt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,dr=Math.floor((Vt+yt)/2),er=hn.slice(0,dr);if(Vr.textContent=er,Vt>=yt-1)for(var Ut=yt;Ut>=Vt;Ut-=1){var ir=hn.slice(0,Ut);if(Vr.textContent=ir,Tt()||!ir)return Ut===hn.length?{finished:!1,reactNode:hn}:{finished:!0,reactNode:ir}}return Tt()?$t(Vr,hn,dr,yt,dr):$t(Vr,hn,Vt,dr,xt)}function Mr(Vr,hn){var Vt=Vr.nodeType;if(Vt===$)return Ot(Vr),Tt()?{finished:!1,reactNode:Zt[hn]}:(rt.removeChild(Vr),{finished:!0,reactNode:null});if(Vt===de){var yt=Vr.textContent||"",xt=document.createTextNode(yt);return Ot(xt),$t(xt,yt)}return{finished:!1,reactNode:null}}return De.some(function(Vr,hn){var Vt=Mr(Vr,hn),yt=Vt.finished,xt=Vt.reactNode;return xt&&Pe.push(xt),yt}),{content:Pe,text:Te.innerHTML,ellipsis:!0}},Ct=function(ut,St){var mt={};for(var lt in ut)Object.prototype.hasOwnProperty.call(ut,lt)&&St.indexOf(lt)<0&&(mt[lt]=ut[lt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,lt=Object.getOwnPropertySymbols(ut);tt<lt.length;tt++)St.indexOf(lt[tt])<0&&Object.prototype.propertyIsEnumerable.call(ut,lt[tt])&&(mt[lt[tt]]=ut[lt[tt]]);return mt},pt=Ve("webkitLineClamp"),He=Ve("textOverflow");function nr(ut,St){var mt=ut.mark,lt=ut.code,tt=ut.underline,Cr=ut.delete,nn=ut.strong,mn=ut.keyboard,Bn=St;function oi(wn,Rn){if(!wn)return;Bn=p.createElement(Rn,{},Bn)}return oi(nn,"strong"),oi(tt,"u"),oi(Cr,"del"),oi(lt,"code"),oi(mt,"mark"),oi(mn,"kbd"),Bn}var ht="...",Gt=function(ut){_()(mt,ut);var St=w()(mt);function mt(){var lt;return b()(this,mt),lt=St.apply(this,arguments),lt.contentRef=p.createRef(),lt.state={edit:!1,copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1},lt.getPrefixCls=function(){var tt=lt.props.prefixCls,Cr=lt.context.getPrefixCls;return Cr("typography",tt)},lt.onExpandClick=function(tt){var Cr=lt.getEllipsis(),nn=Cr.onExpand;lt.setState({expanded:!0}),nn&&nn(tt)},lt.onEditClick=function(){lt.triggerEdit(!0)},lt.onEditChange=function(tt){var Cr=lt.getEditable(),nn=Cr.onChange;nn&&nn(tt),lt.triggerEdit(!1)},lt.onEditCancel=function(){lt.triggerEdit(!1)},lt.onCopyClick=function(){var tt=lt.props,Cr=tt.children,nn=tt.copyable,mn=g()({},c()(nn)==="object"?nn:null);mn.text===void 0&&(mn.text=String(Cr)),M()(mn.text||""),lt.setState({copied:!0},function(){mn.onCopy&&mn.onCopy(),lt.copyId=window.setTimeout(function(){lt.setState({copied:!1})},3e3)})},lt.setEditRef=function(tt){lt.editIcon=tt},lt.triggerEdit=function(tt){var Cr=lt.getEditable(),nn=Cr.onStart;tt&&nn&&nn(),lt.setState({edit:tt},function(){!tt&&lt.editIcon&&lt.editIcon.focus()})},lt.resizeOnNextFrame=function(){Oe.a.cancel(lt.rafId),lt.rafId=Object(Oe.a)(function(){lt.syncEllipsis()})},lt}return E()(mt,[{key:"componentDidMount",value:function(){this.setState({clientRendered:!0}),this.resizeOnNextFrame()}},{key:"componentDidUpdate",value:function(tt){var Cr=this.props.children,nn=this.getEllipsis(),mn=this.getEllipsis(tt);(Cr!==tt.children||nn.rows!==mn.rows)&&this.resizeOnNextFrame()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.copyId),Oe.a.cancel(this.rafId)}},{key:"getEditable",value:function(tt){var Cr=this.state.edit,nn=tt||this.props,mn=nn.editable;return mn?g()({editing:Cr},c()(mn)==="object"?mn:null):{editing:Cr}}},{key:"getEllipsis",value:function(tt){var Cr=tt||this.props,nn=Cr.ellipsis;return nn?g()({rows:1,expandable:!1},c()(nn)==="object"?nn:null):{}}},{key:"canUseCSSEllipsis",value:function(){var tt=this.state.clientRendered,Cr=this.props,nn=Cr.editable,mn=Cr.copyable,Bn=this.getEllipsis(),oi=Bn.rows,wn=Bn.expandable,Rn=Bn.suffix,Zt=Bn.onEllipsis;return Rn||(nn||mn||wn||!tt||Zt)?!1:oi===1?He:pt}},{key:"syncEllipsis",value:function(){var tt=this.state,Cr=tt.ellipsisText,nn=tt.isEllipsis,mn=tt.expanded,Bn=this.getEllipsis(),oi=Bn.rows,wn=Bn.suffix,Rn=Bn.onEllipsis,Zt=this.props.children;if(!oi||oi<0||!this.contentRef.current||mn)return;if(this.canUseCSSEllipsis())return;Object(a.a)(Object(O.a)(Zt).every(function(rt){return typeof rt=="string"}),"Typography","`ellipsis` should use string as children only.");var Tt=nt(Object(I.a)(this.contentRef.current),{rows:oi,suffix:wn},Zt,this.renderOperations(!0),ht),De=Tt.content,Re=Tt.text,Pe=Tt.ellipsis;(Cr!==Re||nn!==Pe)&&(this.setState({ellipsisText:Re,ellipsisContent:De,isEllipsis:Pe}),nn!==Pe&&Rn&&Rn(Pe))}},{key:"renderExpand",value:function(tt){var Cr=this.getEllipsis(),nn=Cr.expandable,mn=Cr.symbol,Bn=this.state,oi=Bn.expanded,wn=Bn.isEllipsis;if(!nn)return null;if(!tt&&(oi||!wn))return null;var Rn;return mn?Rn=mn:Rn=this.expandStr,p.createElement("a",{key:"expand",className:"".concat(this.getPrefixCls(),"-expand"),onClick:this.onExpandClick,"aria-label":this.expandStr},Rn)}},{key:"renderEdit",value:function(){var tt=this.props.editable;if(!tt)return;var Cr=tt.icon,nn=tt.tooltip,mn=Object(O.a)(nn)[0]||this.editStr,Bn=typeof mn=="string"?mn:"";return p.createElement(dt.a,{key:"edit",title:nn===!1?"":mn},p.createElement(we,{ref:this.setEditRef,className:"".concat(this.getPrefixCls(),"-edit"),onClick:this.onEditClick,"aria-label":Bn},Cr||p.createElement(X.a,{role:"button"})))}},{key:"renderCopy",value:function(){var tt=this.state.copied,Cr=this.props.copyable;if(!Cr)return;var nn=this.getPrefixCls(),mn=Cr.tooltips,Bn=Object(O.a)(mn);Bn.length===0&&(Bn=[this.copyStr,this.copiedStr]);var oi=tt?Bn[1]:Bn[0],wn=typeof oi=="string"?oi:"",Rn=Object(O.a)(Cr.icon);return p.createElement(dt.a,{key:"copy",title:mn===!1?"":oi},p.createElement(we,{className:d()("".concat(nn,"-copy"),tt&&"".concat(nn,"-copy-success")),onClick:this.onCopyClick,"aria-label":wn},tt?Rn[1]||p.createElement(j.a,null):Rn[0]||p.createElement(z.a,null)))}},{key:"renderEditInput",value:function(){var tt=this.props,Cr=tt.children,nn=tt.className,mn=tt.style,Bn=this.context.direction,oi=this.getEditable(),wn=oi.maxLength,Rn=oi.autoSize;return p.createElement(J,{value:typeof Cr=="string"?Cr:"",onSave:this.onEditChange,onCancel:this.onEditCancel,prefixCls:this.getPrefixCls(),className:nn,style:mn,direction:Bn,maxLength:wn,autoSize:Rn})}},{key:"renderOperations",value:function(tt){return[this.renderExpand(tt),this.renderEdit(),this.renderCopy()].filter(function(Cr){return Cr})}},{key:"renderContent",value:function(){var tt=this,Cr=this.state,nn=Cr.ellipsisContent,mn=Cr.isEllipsis,Bn=Cr.expanded,oi=this.props,wn=oi.component,Rn=oi.children,Zt=oi.className,Tt=oi.type,De=oi.disabled,Re=oi.style,Pe=Ct(oi,["component","children","className","type","disabled","style"]),rt=this.context.direction,wt=this.getEllipsis(),Ot=wt.rows,$t=wt.suffix,Mr=this.getPrefixCls(),Vr=Object(U.default)(Pe,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard"].concat(v()(Q.a))),hn=this.canUseCSSEllipsis(),Vt=Ot===1&&hn,yt=Ot&&Ot>1&&hn,xt=Rn,dr;if(Ot&&mn&&!Bn&&!hn){var er=Pe.title;dr=er,!er&&(typeof Rn=="string"||typeof Rn=="number")&&(dr=String(Rn)),xt=p.createElement("span",{title:dr,"aria-hidden":"true"},nn,ht,$t)}else xt=p.createElement(p.Fragment,null,Rn,$t);return xt=nr(this.props,xt),p.createElement(G.a,{componentName:"Text"},function(Ut){var ir,Ft=Ut.edit,rr=Ut.copy,Kr=Ut.copied,Rr=Ut.expand;return tt.editStr=Ft,tt.copyStr=rr,tt.copiedStr=Kr,tt.expandStr=Rr,p.createElement(V.a,{onResize:tt.resizeOnNextFrame,disabled:!Ot},p.createElement(r,g()({className:d()(Zt,(ir={},m()(ir,"".concat(Mr,"-").concat(Tt),Tt),m()(ir,"".concat(Mr,"-disabled"),De),m()(ir,"".concat(Mr,"-ellipsis"),Ot),m()(ir,"".concat(Mr,"-ellipsis-single-line"),Vt),m()(ir,"".concat(Mr,"-ellipsis-multiple-line"),yt),ir)),style:g()(g()({},Re),{WebkitLineClamp:yt?Ot:null}),component:wn,ref:tt.contentRef,"aria-label":dr,direction:rt},Vr),xt,tt.renderOperations()))})}},{key:"render",value:function(){var tt=this.getEditable(),Cr=tt.editing;return Cr?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(tt){var Cr=tt.children,nn=tt.editable;return Object(a.a)(!nn||typeof Cr=="string","Typography","When `editable` is enabled, the `children` should use string."),{}}}]),mt}(p.Component);Gt.contextType=l.b,Gt.defaultProps={children:""};var pr=Gt,Qt=function(ut,St){var mt={};for(var lt in ut)Object.prototype.hasOwnProperty.call(ut,lt)&&St.indexOf(lt)<0&&(mt[lt]=ut[lt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,lt=Object.getOwnPropertySymbols(ut);tt<lt.length;tt++)St.indexOf(lt[tt])<0&&Object.prototype.propertyIsEnumerable.call(ut,lt[tt])&&(mt[lt[tt]]=ut[lt[tt]]);return mt},Ht=function(St){var mt=St.ellipsis,lt=Qt(St,["ellipsis"]);return Object(a.a)(c()(mt)!=="object","Typography.Text","`ellipsis` only supports boolean value."),p.createElement(pr,g()({},lt,{ellipsis:!!mt,component:"span"}))},Jt=Ht,Ge=function(ut,St){var mt={};for(var lt in ut)Object.prototype.hasOwnProperty.call(ut,lt)&&St.indexOf(lt)<0&&(mt[lt]=ut[lt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,lt=Object.getOwnPropertySymbols(ut);tt<lt.length;tt++)St.indexOf(lt[tt])<0&&Object.prototype.propertyIsEnumerable.call(ut,lt[tt])&&(mt[lt[tt]]=ut[lt[tt]]);return mt},pe=function(St,mt){var lt=St.ellipsis,tt=St.rel,Cr=Ge(St,["ellipsis","rel"]);Object(a.a)(c()(lt)!=="object","Typography.Link","`ellipsis` only supports boolean value.");var nn=p.useRef(null);p.useImperativeHandle(mt,function(){var Bn;return(Bn=nn.current)===null||Bn===void 0?void 0:Bn.contentRef.current});var mn=g()(g()({},Cr),{rel:tt===void 0&&Cr.target==="_blank"?"noopener noreferrer":tt});return p.createElement(pr,g()({},mn,{ref:nn,ellipsis:!!lt,component:"a"}))},oe=p.forwardRef(pe),ct=n("CWQg"),qe=function(ut,St){var mt={};for(var lt in ut)Object.prototype.hasOwnProperty.call(ut,lt)&&St.indexOf(lt)<0&&(mt[lt]=ut[lt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,lt=Object.getOwnPropertySymbols(ut);tt<lt.length;tt++)St.indexOf(lt[tt])<0&&Object.prototype.propertyIsEnumerable.call(ut,lt[tt])&&(mt[lt[tt]]=ut[lt[tt]]);return mt},me=Object(ct.b)(1,2,3,4,5),Kt=function(St){var mt=St.level,lt=mt===void 0?1:mt,tt=qe(St,["level"]),Cr;return me.indexOf(lt)!==-1?Cr="h".concat(lt):(Object(a.a)(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),Cr="h1"),p.createElement(pr,g()({},tt,{component:Cr}))},vr=Kt,bt=function(St){return p.createElement(pr,g()({},St,{component:"div"}))},or=bt,_t=r;_t.Text=Jt,_t.Link=oe,_t.Title=vr,_t.Paragraph=or;var jt=D.a=_t},wJg7:function(R,D){var n=9007199254740991,y=/^(?:0|[1-9]\d*)$/;function g(S,m){var p=typeof S;return m=m==null?n:m,!!m&&(p=="number"||p!="symbol"&&y.test(S))&&(S>-1&&S%1==0)&&S<m}R.exports=g},wOnQ:function(R,D,n){/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/(function(y,g){R.exports=g()})(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 y=function(ye,Ne){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,ft){We.__proto__=ft}||function(We,ft){for(var Ar in ft)Object.prototype.hasOwnProperty.call(ft,Ar)&&(We[Ar]=ft[Ar])},y(ye,Ne)};function g(Tr,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Class extends value "+String(ye)+" is not a constructor or null");y(Tr,ye);function Ne(){this.constructor=Tr}Tr.prototype=ye===null?Object.create(ye):(Ne.prototype=ye.prototype,new Ne)}var S=function(){return S=Object.assign||function(Ne){for(var We,ft=1,Ar=arguments.length;ft<Ar;ft++){We=arguments[ft];for(var sn in We)Object.prototype.hasOwnProperty.call(We,sn)&&(Ne[sn]=We[sn])}return Ne},S.apply(this,arguments)};function m(Tr,ye,Ne,We){function ft(Ar){return Ar instanceof Ne?Ar:new Ne(function(sn){sn(Ar)})}return new(Ne||(Ne=Promise))(function(Ar,sn){function _n(Yi){try{ai(We.next(Yi))}catch(Ui){sn(Ui)}}function Hn(Yi){try{ai(We.throw(Yi))}catch(Ui){sn(Ui)}}function ai(Yi){Yi.done?Ar(Yi.value):ft(Yi.value).then(_n,Hn)}ai((We=We.apply(Tr,ye||[])).next())})}function p(Tr,ye){var Ne={label:0,sent:function(){if(Ar[0]&1)throw Ar[1];return Ar[1]},trys:[],ops:[]},We,ft,Ar,sn;return sn={next:_n(0),throw:_n(1),return:_n(2)},typeof Symbol=="function"&&(sn[Symbol.iterator]=function(){return this}),sn;function _n(ai){return function(Yi){return Hn([ai,Yi])}}function Hn(ai){if(We)throw new TypeError("Generator is already executing.");for(;Ne;)try{if(We=1,ft&&(Ar=ai[0]&2?ft.return:ai[0]?ft.throw||((Ar=ft.return)&&Ar.call(ft),0):ft.next)&&!(Ar=Ar.call(ft,ai[1])).done)return Ar;(ft=0,Ar)&&(ai=[ai[0]&2,Ar.value]);switch(ai[0]){case 0:case 1:Ar=ai;break;case 4:return Ne.label++,{value:ai[1],done:!1};case 5:Ne.label++,ft=ai[1],ai=[0];continue;case 7:ai=Ne.ops.pop(),Ne.trys.pop();continue;default:if(!(Ar=Ne.trys,Ar=Ar.length>0&&Ar[Ar.length-1])&&(ai[0]===6||ai[0]===2)){Ne=0;continue}if(ai[0]===3&&(!Ar||ai[1]>Ar[0]&&ai[1]<Ar[3])){Ne.label=ai[1];break}if(ai[0]===6&&Ne.label<Ar[1]){Ne.label=Ar[1],Ar=ai;break}if(Ar&&Ne.label<Ar[2]){Ne.label=Ar[2],Ne.ops.push(ai);break}Ar[2]&&Ne.ops.pop(),Ne.trys.pop();continue}ai=ye.call(Tr,Ne)}catch(Yi){ai=[6,Yi],ft=0}finally{We=Ar=0}if(ai[0]&5)throw ai[1];return{value:ai[0]?ai[1]:void 0,done:!0}}}function f(Tr,ye,Ne){if(Ne||arguments.length===2)for(var We=0,ft=ye.length,Ar;We<ft;We++)(Ar||!(We in ye))&&(Ar||(Ar=Array.prototype.slice.call(ye,0,We)),Ar[We]=ye[We]);return Tr.concat(Ar||ye)}for(var d=function(){function Tr(ye,Ne,We,ft){this.left=ye,this.top=Ne,this.width=We,this.height=ft}return Tr.prototype.add=function(ye,Ne,We,ft){return new Tr(this.left+ye,this.top+Ne,this.width+We,this.height+ft)},Tr.fromClientRect=function(ye,Ne){return new Tr(Ne.left+ye.windowBounds.left,Ne.top+ye.windowBounds.top,Ne.width,Ne.height)},Tr.fromDOMRectList=function(ye,Ne){var We=Array.from(Ne).find(function(ft){return ft.width!==0});return We?new Tr(We.left+ye.windowBounds.left,We.top+ye.windowBounds.top,We.width,We.height):Tr.EMPTY},Tr.EMPTY=new Tr(0,0,0,0),Tr}(),l=function(ye,Ne){return d.fromClientRect(ye,Ne.getBoundingClientRect())},a=function(ye){var Ne=ye.body,We=ye.documentElement;if(!Ne||!We)throw new Error("Unable to get document size");var ft=Math.max(Math.max(Ne.scrollWidth,We.scrollWidth),Math.max(Ne.offsetWidth,We.offsetWidth),Math.max(Ne.clientWidth,We.clientWidth)),Ar=Math.max(Math.max(Ne.scrollHeight,We.scrollHeight),Math.max(Ne.offsetHeight,We.offsetHeight),Math.max(Ne.clientHeight,We.clientHeight));return new d(0,0,ft,Ar)},i=function(ye){for(var Ne=[],We=0,ft=ye.length;We<ft;){var Ar=ye.charCodeAt(We++);if(Ar>=55296&&Ar<=56319&&We<ft){var sn=ye.charCodeAt(We++);(sn&64512)===56320?Ne.push(((Ar&1023)<<10)+(sn&1023)+65536):(Ne.push(Ar),We--)}else Ne.push(Ar)}return Ne},t=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ye);var We=ye.length;if(!We)return"";for(var ft=[],Ar=-1,sn="";++Ar<We;){var _n=ye[Ar];_n<=65535?ft.push(_n):(_n-=65536,ft.push((_n>>10)+55296,_n%1024+56320)),(Ar+1===We||ft.length>16384)&&(sn+=String.fromCharCode.apply(String,ft),ft.length=0)}return sn},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),u=0;u<o.length;u++)e[o.charCodeAt(u)]=u;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),c=0;c<r.length;c++)s[r.charCodeAt(c)]=c;for(var h=function(ye){var Ne=ye.length*.75,We=ye.length,ft,Ar=0,sn,_n,Hn,ai;ye[ye.length-1]==="="&&(Ne--,ye[ye.length-2]==="="&&Ne--);var Yi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ne):new Array(Ne),Ui=Array.isArray(Yi)?Yi:new Uint8Array(Yi);for(ft=0;ft<We;ft+=4)sn=s[ye.charCodeAt(ft)],_n=s[ye.charCodeAt(ft+1)],Hn=s[ye.charCodeAt(ft+2)],ai=s[ye.charCodeAt(ft+3)],Ui[Ar++]=sn<<2|_n>>4,Ui[Ar++]=(_n&15)<<4|Hn>>2,Ui[Ar++]=(Hn&3)<<6|ai&63;return Yi},v=function(ye){for(var Ne=ye.length,We=[],ft=0;ft<Ne;ft+=2)We.push(ye[ft+1]<<8|ye[ft]);return We},A=function(ye){for(var Ne=ye.length,We=[],ft=0;ft<Ne;ft+=4)We.push(ye[ft+3]<<24|ye[ft+2]<<16|ye[ft+1]<<8|ye[ft]);return We},b=5,x=6+5,E=2,T=x-b,_=65536>>b,C=1<<b,w=C-1,O=1024>>b,I=_+O,k=I,M=2048>>6,U=k+M,P=65536>>x,X=1<<T,F=X-1,j=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint16Array(Array.prototype.slice.call(ye,Ne,We))},K=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint32Array(Array.prototype.slice.call(ye,Ne,We))},z=function(ye,Ne){var We=h(ye),ft=Array.isArray(We)?A(We):new Uint32Array(We),Ar=Array.isArray(We)?v(We):new Uint16Array(We),sn=24,_n=j(Ar,sn/2,ft[4]/2),Hn=ft[5]===2?j(Ar,(sn+ft[4])/2):K(ft,Math.ceil((sn+ft[4])/4));return new V(ft[0],ft[1],ft[2],ft[3],_n,Hn)},V=function(){function Tr(ye,Ne,We,ft,Ar,sn){this.initialValue=ye,this.errorValue=Ne,this.highStart=We,this.highValueIndex=ft,this.index=Ar,this.data=sn}return Tr.prototype.get=function(ye){var Ne;if(ye>=0){if(ye<55296||ye>56319&&ye<=65535)return Ne=this.index[ye>>b],Ne=(Ne<<E)+(ye&w),this.data[Ne];if(ye<=65535)return Ne=this.index[_+(ye-55296>>b)],Ne=(Ne<<E)+(ye&w),this.data[Ne];if(ye<this.highStart)return Ne=U-P+(ye>>x),Ne=this.index[Ne],Ne+=ye>>b&F,Ne=this.index[Ne],Ne=(Ne<<E)+(ye&w),this.data[Ne];if(ye<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Tr}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),te=0;te<Q.length;te++)G[Q.charCodeAt(te)]=te;var q="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",se=50,re=1,we=2,Oe=3,Me=4,Qe=5,Ve=7,dt=8,Fe=9,ue=10,et=11,he=12,J=13,Y=14,$=15,de=16,be=17,Te=18,Be=19,fe=20,xe=21,ke=22,nt=23,Ct=24,pt=25,He=26,nr=27,ht=28,Gt=29,pr=30,Qt=31,Ht=32,Jt=33,Ge=34,pe=35,oe=36,ct=37,qe=38,me=39,Kt=40,vr=41,bt=42,or=43,_t=[9001,65288],jt="!",ut="\xD7",St="\xF7",mt=z(q),lt=[pr,oe],tt=[re,we,Oe,Qe],Cr=[ue,dt],nn=[nr,He],mn=tt.concat(Cr),Bn=[qe,me,Kt,Ge,pe],oi=[$,J],wn=function(ye,Ne){Ne===void 0&&(Ne="strict");var We=[],ft=[],Ar=[];return ye.forEach(function(sn,_n){var Hn=mt.get(sn);if(Hn>se?(Ar.push(!0),Hn-=se):Ar.push(!1),["normal","auto","loose"].indexOf(Ne)!==-1&&[8208,8211,12316,12448].indexOf(sn)!==-1)return ft.push(_n),We.push(de);if(Hn===Me||Hn===et){if(_n===0)return ft.push(_n),We.push(pr);var ai=We[_n-1];return mn.indexOf(ai)===-1?(ft.push(ft[_n-1]),We.push(ai)):(ft.push(_n),We.push(pr))}if(ft.push(_n),Hn===Qt)return We.push(Ne==="strict"?xe:ct);if(Hn===bt)return We.push(pr);if(Hn===Gt)return We.push(pr);if(Hn===or)return sn>=131072&&sn<=196605||sn>=196608&&sn<=262141?We.push(ct):We.push(pr);We.push(Hn)}),[ft,We,Ar]},Rn=function(ye,Ne,We,ft){var Ar=ft[We];if(Array.isArray(ye)?ye.indexOf(Ar)!==-1:ye===Ar)for(var sn=We;sn<=ft.length;){sn++;var _n=ft[sn];if(_n===Ne)return!0;if(_n!==ue)break}if(Ar===ue)for(var sn=We;sn>0;){sn--;var Hn=ft[sn];if(Array.isArray(ye)?ye.indexOf(Hn)!==-1:ye===Hn)for(var ai=We;ai<=ft.length;){ai++;var _n=ft[ai];if(_n===Ne)return!0;if(_n!==ue)break}if(Hn!==ue)break}return!1},Zt=function(ye,Ne){for(var We=ye;We>=0;){var ft=Ne[We];if(ft===ue)We--;else return ft}return 0},Tt=function(ye,Ne,We,ft,Ar){if(We[ft]===0)return ut;var sn=ft-1;if(Array.isArray(Ar)&&Ar[sn]===!0)return ut;var _n=sn-1,Hn=sn+1,ai=Ne[sn],Yi=_n>=0?Ne[_n]:0,Ui=Ne[Hn];if(ai===we&&Ui===Oe)return ut;if(tt.indexOf(ai)!==-1)return jt;if(tt.indexOf(Ui)!==-1)return ut;if(Cr.indexOf(Ui)!==-1)return ut;if(Zt(sn,Ne)===dt)return St;if(mt.get(ye[sn])===et)return ut;if((ai===Ht||ai===Jt)&&mt.get(ye[Hn])===et)return ut;if(ai===Ve||Ui===Ve)return ut;if(ai===Fe)return ut;if([ue,J,$].indexOf(ai)===-1&&Ui===Fe)return ut;if([be,Te,Be,Ct,ht].indexOf(Ui)!==-1)return ut;if(Zt(sn,Ne)===ke)return ut;if(Rn(nt,ke,sn,Ne))return ut;if(Rn([be,Te],xe,sn,Ne))return ut;if(Rn(he,he,sn,Ne))return ut;if(ai===ue)return St;if(ai===nt||Ui===nt)return ut;if(Ui===de||ai===de)return St;if([J,$,xe].indexOf(Ui)!==-1||ai===Y)return ut;if(Yi===oe&&oi.indexOf(ai)!==-1)return ut;if(ai===ht&&Ui===oe)return ut;if(Ui===fe)return ut;if(lt.indexOf(Ui)!==-1&&ai===pt||lt.indexOf(ai)!==-1&&Ui===pt)return ut;if(ai===nr&&[ct,Ht,Jt].indexOf(Ui)!==-1||[ct,Ht,Jt].indexOf(ai)!==-1&&Ui===He)return ut;if(lt.indexOf(ai)!==-1&&nn.indexOf(Ui)!==-1||nn.indexOf(ai)!==-1&&lt.indexOf(Ui)!==-1)return ut;if([nr,He].indexOf(ai)!==-1&&(Ui===pt||[ke,$].indexOf(Ui)!==-1&&Ne[Hn+1]===pt)||[ke,$].indexOf(ai)!==-1&&Ui===pt||ai===pt&&[pt,ht,Ct].indexOf(Ui)!==-1)return ut;if([pt,ht,Ct,be,Te].indexOf(Ui)!==-1)for(var qi=sn;qi>=0;){var Za=Ne[qi];if(Za===pt)return ut;if([ht,Ct].indexOf(Za)!==-1)qi--;else break}if([nr,He].indexOf(Ui)!==-1)for(var qi=[be,Te].indexOf(ai)!==-1?_n:sn;qi>=0;){var Za=Ne[qi];if(Za===pt)return ut;if([ht,Ct].indexOf(Za)!==-1)qi--;else break}if(qe===ai&&[qe,me,Ge,pe].indexOf(Ui)!==-1||[me,Ge].indexOf(ai)!==-1&&[me,Kt].indexOf(Ui)!==-1||[Kt,pe].indexOf(ai)!==-1&&Ui===Kt)return ut;if(Bn.indexOf(ai)!==-1&&[fe,He].indexOf(Ui)!==-1||Bn.indexOf(Ui)!==-1&&ai===nr)return ut;if(lt.indexOf(ai)!==-1&&lt.indexOf(Ui)!==-1)return ut;if(ai===Ct&&lt.indexOf(Ui)!==-1)return ut;if(lt.concat(pt).indexOf(ai)!==-1&&Ui===ke&&_t.indexOf(ye[Hn])===-1||lt.concat(pt).indexOf(Ui)!==-1&&ai===Te)return ut;if(ai===vr&&Ui===vr){for(var eo=We[sn],po=1;eo>0&&(eo--,Ne[eo]===vr);)po++;if(po%2!==0)return ut}return ai===Ht&&Ui===Jt?ut:St},De=function(ye,Ne){Ne||(Ne={lineBreak:"normal",wordBreak:"normal"});var We=wn(ye,Ne.lineBreak),ft=We[0],Ar=We[1],sn=We[2];(Ne.wordBreak==="break-all"||Ne.wordBreak==="break-word")&&(Ar=Ar.map(function(Hn){return[pt,pr,bt].indexOf(Hn)!==-1?ct:Hn}));var _n=Ne.wordBreak==="keep-all"?sn.map(function(Hn,ai){return Hn&&ye[ai]>=19968&&ye[ai]<=40959}):void 0;return[ft,Ar,_n]},Re=function(){function Tr(ye,Ne,We,ft){this.codePoints=ye,this.required=Ne===jt,this.start=We,this.end=ft}return Tr.prototype.slice=function(){return t.apply(void 0,this.codePoints.slice(this.start,this.end))},Tr}(),Pe=function(ye,Ne){var We=i(ye),ft=De(We,Ne),Ar=ft[0],sn=ft[1],_n=ft[2],Hn=We.length,ai=0,Yi=0;return{next:function(){if(Yi>=Hn)return{done:!0,value:null};for(var qi=ut;Yi<Hn&&(qi=Tt(We,sn,Ar,++Yi,_n))===ut;);if(qi!==ut||Yi===Hn){var Za=new Re(We,qi,ai,Yi);return ai=Yi,{value:Za,done:!1}}return{done:!0,value:null}}}},rt=1<<0,wt=1<<1,Ot=1<<2,$t=1<<3,Mr=10,Vr=47,hn=92,Vt=9,yt=32,xt=34,dr=61,er=35,Ut=36,ir=37,Ft=39,rr=40,Kr=41,Rr=95,kr=45,dn=33,yn=60,ri=62,$n=64,pi=91,_i=93,Di=61,Wi=123,at=63,Le=125,je=124,Xe=126,it=128,Ze=65533,ot=42,Lt=43,At=44,mr=58,qr=59,Qr=46,gn=0,yr=8,Vn=11,Br=14,jn=31,xn=127,tn=-1,ti=48,mi=97,Pi=101,en=102,Tn=117,Yn=122,Yt=65,Dt=69,Bt=70,Wt=85,Xt=90,kt=function(ye){return ye>=ti&&ye<=57},hr=function(ye){return ye>=55296&&ye<=57343},br=function(ye){return kt(ye)||ye>=Yt&&ye<=Bt||ye>=mi&&ye<=en},wr=function(ye){return ye>=mi&&ye<=Yn},Fr=function(ye){return ye>=Yt&&ye<=Xt},Xn=function(ye){return wr(ye)||Fr(ye)},Fn=function(ye){return ye>=it},hi=function(ye){return ye===Mr||ye===Vt||ye===yt},An=function(ye){return Xn(ye)||Fn(ye)||ye===Rr},jr=function(ye){return An(ye)||kt(ye)||ye===kr},In=function(ye){return ye>=gn&&ye<=yr||ye===Vn||ye>=Br&&ye<=jn||ye===xn},Qn=function(ye,Ne){return ye!==hn?!1:Ne!==Mr},qn=function(ye,Ne,We){return ye===kr?An(Ne)||Qn(Ne,We):An(ye)?!0:!!(ye===hn&&Qn(ye,Ne))},si=function(ye,Ne,We){return ye===Lt||ye===kr?kt(Ne)?!0:Ne===Qr&&kt(We):ye===Qr?kt(Ne):kt(ye)},Ci=function(ye){var Ne=0,We=1;(ye[Ne]===Lt||ye[Ne]===kr)&&(ye[Ne]===kr&&(We=-1),Ne++);for(var ft=[];kt(ye[Ne]);)ft.push(ye[Ne++]);var Ar=ft.length?parseInt(t.apply(void 0,ft),10):0;ye[Ne]===Qr&&Ne++;for(var sn=[];kt(ye[Ne]);)sn.push(ye[Ne++]);var _n=sn.length,Hn=_n?parseInt(t.apply(void 0,sn),10):0;(ye[Ne]===Dt||ye[Ne]===Pi)&&Ne++;var ai=1;(ye[Ne]===Lt||ye[Ne]===kr)&&(ye[Ne]===kr&&(ai=-1),Ne++);for(var Yi=[];kt(ye[Ne]);)Yi.push(ye[Ne++]);var Ui=Yi.length?parseInt(t.apply(void 0,Yi),10):0;return We*(Ar+Hn*Math.pow(10,-_n))*Math.pow(10,ai*Ui)},ki={type:2},Ri={type:3},oa={type:4},ma={type:13},aa={type:8},ba={type:21},bi={type:9},Pn={type:10},ji={type:11},ha={type:12},ta={type:14},ra={type:23},Nr={type:1},Er={type:25},On={type:24},gr={type:26},Pr={type:27},Xr={type:28},cn={type:29},Un={type:31},Nt={type:32},Lr=function(){function Tr(){this._value=[]}return Tr.prototype.write=function(ye){this._value=this._value.concat(i(ye))},Tr.prototype.read=function(){for(var ye=[],Ne=this.consumeToken();Ne!==Nt;)ye.push(Ne),Ne=this.consumeToken();return ye},Tr.prototype.consumeToken=function(){var ye=this.consumeCodePoint();switch(ye){case xt:return this.consumeStringToken(xt);case er:var Ne=this.peekCodePoint(0),We=this.peekCodePoint(1),ft=this.peekCodePoint(2);if(jr(Ne)||Qn(We,ft)){var Ar=qn(Ne,We,ft)?wt:rt,sn=this.consumeName();return{type:5,value:sn,flags:Ar}}break;case Ut:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),ma;break;case Ft:return this.consumeStringToken(Ft);case rr:return ki;case Kr:return Ri;case ot:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),ta;break;case Lt:if(si(ye,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ye),this.consumeNumericToken();break;case At:return oa;case kr:var _n=ye,Hn=this.peekCodePoint(0),ai=this.peekCodePoint(1);if(si(_n,Hn,ai))return this.reconsumeCodePoint(ye),this.consumeNumericToken();if(qn(_n,Hn,ai))return this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();if(Hn===kr&&ai===ri)return this.consumeCodePoint(),this.consumeCodePoint(),On;break;case Qr:if(si(ye,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ye),this.consumeNumericToken();break;case Vr:if(this.peekCodePoint(0)===ot)for(this.consumeCodePoint();;){var Yi=this.consumeCodePoint();if(Yi===ot&&(Yi=this.consumeCodePoint(),Yi===Vr))return this.consumeToken();if(Yi===tn)return this.consumeToken()}break;case mr:return gr;case qr:return Pr;case yn:if(this.peekCodePoint(0)===dn&&this.peekCodePoint(1)===kr&&this.peekCodePoint(2)===kr)return this.consumeCodePoint(),this.consumeCodePoint(),Er;break;case $n:var Ui=this.peekCodePoint(0),qi=this.peekCodePoint(1),Za=this.peekCodePoint(2);if(qn(Ui,qi,Za)){var sn=this.consumeName();return{type:7,value:sn}}break;case pi:return Xr;case hn:if(Qn(ye,this.peekCodePoint(0)))return this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();break;case _i:return cn;case Di:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),aa;break;case Wi:return ji;case Le:return ha;case Tn:case Wt:var eo=this.peekCodePoint(0),po=this.peekCodePoint(1);return eo===Lt&&(br(po)||po===at)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();case je:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),bi;if(this.peekCodePoint(0)===je)return this.consumeCodePoint(),ba;break;case Xe:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),Pn;break;case tn:return Nt}return hi(ye)?(this.consumeWhiteSpace(),Un):kt(ye)?(this.reconsumeCodePoint(ye),this.consumeNumericToken()):An(ye)?(this.reconsumeCodePoint(ye),this.consumeIdentLikeToken()):{type:6,value:t(ye)}},Tr.prototype.consumeCodePoint=function(){var ye=this._value.shift();return typeof ye=="undefined"?-1:ye},Tr.prototype.reconsumeCodePoint=function(ye){this._value.unshift(ye)},Tr.prototype.peekCodePoint=function(ye){return ye>=this._value.length?-1:this._value[ye]},Tr.prototype.consumeUnicodeRangeToken=function(){for(var ye=[],Ne=this.consumeCodePoint();br(Ne)&&ye.length<6;)ye.push(Ne),Ne=this.consumeCodePoint();for(var We=!1;Ne===at&&ye.length<6;)ye.push(Ne),Ne=this.consumeCodePoint(),We=!0;if(We){var ft=parseInt(t.apply(void 0,ye.map(function(Hn){return Hn===at?ti:Hn})),16),Ar=parseInt(t.apply(void 0,ye.map(function(Hn){return Hn===at?Bt:Hn})),16);return{type:30,start:ft,end:Ar}}var sn=parseInt(t.apply(void 0,ye),16);if(this.peekCodePoint(0)===kr&&br(this.peekCodePoint(1))){this.consumeCodePoint(),Ne=this.consumeCodePoint();for(var _n=[];br(Ne)&&_n.length<6;)_n.push(Ne),Ne=this.consumeCodePoint();var Ar=parseInt(t.apply(void 0,_n),16);return{type:30,start:sn,end:Ar}}else return{type:30,start:sn,end:sn}},Tr.prototype.consumeIdentLikeToken=function(){var ye=this.consumeName();return ye.toLowerCase()==="url"&&this.peekCodePoint(0)===rr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===rr?(this.consumeCodePoint(),{type:19,value:ye}):{type:20,value:ye}},Tr.prototype.consumeUrlToken=function(){var ye=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===tn)return{type:22,value:""};var Ne=this.peekCodePoint(0);if(Ne===Ft||Ne===xt){var We=this.consumeStringToken(this.consumeCodePoint());return We.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===tn||this.peekCodePoint(0)===Kr)?(this.consumeCodePoint(),{type:22,value:We.value}):(this.consumeBadUrlRemnants(),ra)}for(;;){var ft=this.consumeCodePoint();if(ft===tn||ft===Kr)return{type:22,value:t.apply(void 0,ye)};if(hi(ft))return this.consumeWhiteSpace(),this.peekCodePoint(0)===tn||this.peekCodePoint(0)===Kr?(this.consumeCodePoint(),{type:22,value:t.apply(void 0,ye)}):(this.consumeBadUrlRemnants(),ra);if(ft===xt||ft===Ft||ft===rr||In(ft))return this.consumeBadUrlRemnants(),ra;if(ft===hn)if(Qn(ft,this.peekCodePoint(0)))ye.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ra;else ye.push(ft)}},Tr.prototype.consumeWhiteSpace=function(){for(;hi(this.peekCodePoint(0));)this.consumeCodePoint()},Tr.prototype.consumeBadUrlRemnants=function(){for(;;){var ye=this.consumeCodePoint();if(ye===Kr||ye===tn)return;Qn(ye,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Tr.prototype.consumeStringSlice=function(ye){for(var Ne=5e4,We="";ye>0;){var ft=Math.min(Ne,ye);We+=t.apply(void 0,this._value.splice(0,ft)),ye-=ft}return this._value.shift(),We},Tr.prototype.consumeStringToken=function(ye){var Ne="",We=0;do{var ft=this._value[We];if(ft===tn||ft===void 0||ft===ye)return Ne+=this.consumeStringSlice(We),{type:0,value:Ne};if(ft===Mr)return this._value.splice(0,We),Nr;if(ft===hn){var Ar=this._value[We+1];Ar!==tn&&Ar!==void 0&&(Ar===Mr?(Ne+=this.consumeStringSlice(We),We=-1,this._value.shift()):Qn(ft,Ar)&&(Ne+=this.consumeStringSlice(We),Ne+=t(this.consumeEscapedCodePoint()),We=-1))}We++}while(!0)},Tr.prototype.consumeNumber=function(){var ye=[],Ne=Ot,We=this.peekCodePoint(0);for((We===Lt||We===kr)&&ye.push(this.consumeCodePoint());kt(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());We=this.peekCodePoint(0);var ft=this.peekCodePoint(1);if(We===Qr&&kt(ft))for(ye.push(this.consumeCodePoint(),this.consumeCodePoint()),Ne=$t;kt(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());We=this.peekCodePoint(0),ft=this.peekCodePoint(1);var Ar=this.peekCodePoint(2);if((We===Dt||We===Pi)&&((ft===Lt||ft===kr)&&kt(Ar)||kt(ft)))for(ye.push(this.consumeCodePoint(),this.consumeCodePoint()),Ne=$t;kt(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());return[Ci(ye),Ne]},Tr.prototype.consumeNumericToken=function(){var ye=this.consumeNumber(),Ne=ye[0],We=ye[1],ft=this.peekCodePoint(0),Ar=this.peekCodePoint(1),sn=this.peekCodePoint(2);if(qn(ft,Ar,sn)){var _n=this.consumeName();return{type:15,number:Ne,flags:We,unit:_n}}return ft===ir?(this.consumeCodePoint(),{type:16,number:Ne,flags:We}):{type:17,number:Ne,flags:We}},Tr.prototype.consumeEscapedCodePoint=function(){var ye=this.consumeCodePoint();if(br(ye)){for(var Ne=t(ye);br(this.peekCodePoint(0))&&Ne.length<6;)Ne+=t(this.consumeCodePoint());hi(this.peekCodePoint(0))&&this.consumeCodePoint();var We=parseInt(Ne,16);return We===0||hr(We)||We>1114111?Ze:We}return ye===tn?Ze:ye},Tr.prototype.consumeName=function(){for(var ye="";;){var Ne=this.consumeCodePoint();if(jr(Ne))ye+=t(Ne);else if(Qn(Ne,this.peekCodePoint(0)))ye+=t(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Ne),ye}},Tr}(),Dr=function(){function Tr(ye){this._tokens=ye}return Tr.create=function(ye){var Ne=new Lr;return Ne.write(ye),new Tr(Ne.read())},Tr.parseValue=function(ye){return Tr.create(ye).parseComponentValue()},Tr.parseValues=function(ye){return Tr.create(ye).parseComponentValues()},Tr.prototype.parseComponentValue=function(){for(var ye=this.consumeToken();ye.type===31;)ye=this.consumeToken();if(ye.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(ye);var Ne=this.consumeComponentValue();do ye=this.consumeToken();while(ye.type===31);if(ye.type===32)return Ne;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Tr.prototype.parseComponentValues=function(){for(var ye=[];;){var Ne=this.consumeComponentValue();if(Ne.type===32)return ye;ye.push(Ne),ye.push()}},Tr.prototype.consumeComponentValue=function(){var ye=this.consumeToken();switch(ye.type){case 11:case 28:case 2:return this.consumeSimpleBlock(ye.type);case 19:return this.consumeFunction(ye)}return ye},Tr.prototype.consumeSimpleBlock=function(ye){for(var Ne={type:ye,values:[]},We=this.consumeToken();;){if(We.type===32||wi(We,ye))return Ne;this.reconsumeToken(We),Ne.values.push(this.consumeComponentValue()),We=this.consumeToken()}},Tr.prototype.consumeFunction=function(ye){for(var Ne={name:ye.value,values:[],type:18};;){var We=this.consumeToken();if(We.type===32||We.type===3)return Ne;this.reconsumeToken(We),Ne.values.push(this.consumeComponentValue())}},Tr.prototype.consumeToken=function(){var ye=this._tokens.shift();return typeof ye=="undefined"?Nt:ye},Tr.prototype.reconsumeToken=function(ye){this._tokens.unshift(ye)},Tr}(),an=function(ye){return ye.type===15},Cn=function(ye){return ye.type===17},Nn=function(ye){return ye.type===20},En=function(ye){return ye.type===0},ei=function(ye,Ne){return Nn(ye)&&ye.value===Ne},Wn=function(ye){return ye.type!==31},gi=function(ye){return ye.type!==31&&ye.type!==4},Fi=function(ye){var Ne=[],We=[];return ye.forEach(function(ft){if(ft.type===4){if(We.length===0)throw new Error("Error parsing function args, zero tokens for arg");Ne.push(We),We=[];return}ft.type!==31&&We.push(ft)}),We.length&&Ne.push(We),Ne},wi=function(ye,Ne){return Ne===11&&ye.type===12||Ne===28&&ye.type===29?!0:Ne===2&&ye.type===3},Ii=function(ye){return ye.type===17||ye.type===15},Vi=function(ye){return ye.type===16||Ii(ye)},ea=function(ye){return ye.length>1?[ye[0],ye[1]]:[ye[0]]},Xi={type:17,number:0,flags:Ot},zi={type:16,number:50,flags:Ot},Hi={type:16,number:100,flags:Ot},Ji=function(ye,Ne,We){var ft=ye[0],Ar=ye[1];return[ca(ft,Ne),ca(typeof Ar!="undefined"?Ar:ft,We)]},ca=function(ye,Ne){if(ye.type===16)return ye.number/100*Ne;if(an(ye))switch(ye.unit){case"rem":case"em":return 16*ye.number;case"px":default:return ye.number}return ye.number},Ta="deg",na="grad",Pa="rad",La="turn",va={name:"angle",parse:function(ye,Ne){if(Ne.type===15)switch(Ne.unit){case Ta:return Math.PI*Ne.number/180;case na:return Math.PI/200*Ne.number;case Pa:return Ne.number;case La:return Math.PI*2*Ne.number}throw new Error("Unsupported angle type")}},ga=function(ye){return ye.type===15&&(ye.unit===Ta||ye.unit===na||ye.unit===Pa||ye.unit===La)},Oa=function(ye){var Ne=ye.filter(Nn).map(function(We){return We.value}).join(" ");switch(Ne){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xi,Xi];case"to top":case"bottom":return Aa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xi,Hi];case"to right":case"left":return Aa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Hi,Hi];case"to bottom":case"top":return Aa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Hi,Xi];case"to left":case"right":return Aa(270)}return 0},Aa=function(ye){return Math.PI*ye/180},Xa={name:"color",parse:function(ye,Ne){if(Ne.type===18){var We=Co[Ne.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Ne.name+'"');return We(ye,Ne.values)}if(Ne.type===5){if(Ne.value.length===3){var ft=Ne.value.substring(0,1),Ar=Ne.value.substring(1,2),sn=Ne.value.substring(2,3);return Bi(parseInt(ft+ft,16),parseInt(Ar+Ar,16),parseInt(sn+sn,16),1)}if(Ne.value.length===4){var ft=Ne.value.substring(0,1),Ar=Ne.value.substring(1,2),sn=Ne.value.substring(2,3),_n=Ne.value.substring(3,4);return Bi(parseInt(ft+ft,16),parseInt(Ar+Ar,16),parseInt(sn+sn,16),parseInt(_n+_n,16)/255)}if(Ne.value.length===6){var ft=Ne.value.substring(0,2),Ar=Ne.value.substring(2,4),sn=Ne.value.substring(4,6);return Bi(parseInt(ft,16),parseInt(Ar,16),parseInt(sn,16),1)}if(Ne.value.length===8){var ft=Ne.value.substring(0,2),Ar=Ne.value.substring(2,4),sn=Ne.value.substring(4,6),_n=Ne.value.substring(6,8);return Bi(parseInt(ft,16),parseInt(Ar,16),parseInt(sn,16),parseInt(_n,16)/255)}}if(Ne.type===20){var Hn=xo[Ne.value.toUpperCase()];if(typeof Hn!="undefined")return Hn}return xo.TRANSPARENT}},_a=function(ye){return(255&ye)===0},Va=function(ye){var Ne=255&ye,We=255&ye>>8,ft=255&ye>>16,Ar=255&ye>>24;return Ne<255?"rgba("+Ar+","+ft+","+We+","+Ne/255+")":"rgb("+Ar+","+ft+","+We+")"},Bi=function(ye,Ne,We,ft){return(ye<<24|Ne<<16|We<<8|Math.round(ft*255)<<0)>>>0},io=function(ye,Ne){if(ye.type===17)return ye.number;if(ye.type===16){var We=Ne===3?1:255;return Ne===3?ye.number/100*We:Math.round(ye.number/100*We)}return 0},oo=function(ye,Ne){var We=Ne.filter(gi);if(We.length===3){var ft=We.map(io),Ar=ft[0],sn=ft[1],_n=ft[2];return Bi(Ar,sn,_n,1)}if(We.length===4){var Hn=We.map(io),Ar=Hn[0],sn=Hn[1],_n=Hn[2],ai=Hn[3];return Bi(Ar,sn,_n,ai)}return 0};function Qo(Tr,ye,Ne){return Ne<0&&(Ne+=1),Ne>=1&&(Ne-=1),Ne<1/6?(ye-Tr)*Ne*6+Tr:Ne<1/2?ye:Ne<2/3?(ye-Tr)*6*(2/3-Ne)+Tr:Tr}var mo=function(ye,Ne){var We=Ne.filter(gi),ft=We[0],Ar=We[1],sn=We[2],_n=We[3],Hn=(ft.type===17?Aa(ft.number):va.parse(ye,ft))/(Math.PI*2),ai=Vi(Ar)?Ar.number/100:0,Yi=Vi(sn)?sn.number/100:0,Ui=typeof _n!="undefined"&&Vi(_n)?ca(_n,1):1;if(ai===0)return Bi(Yi*255,Yi*255,Yi*255,1);var qi=Yi<=.5?Yi*(ai+1):Yi+ai-Yi*ai,Za=Yi*2-qi,eo=Qo(Za,qi,Hn+1/3),po=Qo(Za,qi,Hn),us=Qo(Za,qi,Hn-1/3);return Bi(eo*255,po*255,us*255,Ui)},Co={hsl:mo,hsla:mo,rgb:oo,rgba:oo},ao=function(ye,Ne){return Xa.parse(ye,Dr.create(Ne).parseComponentValue())},xo={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},bo={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(ye,Ne){return Ne.map(function(We){if(Nn(We))switch(We.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},to={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jo=function(ye,Ne){var We=Xa.parse(ye,Ne[0]),ft=Ne[1];return ft&&Vi(ft)?{color:We,stop:ft}:{color:We,stop:null}},Uo=function(ye,Ne){var We=ye[0],ft=ye[ye.length-1];We.stop===null&&(We.stop=Xi),ft.stop===null&&(ft.stop=Hi);for(var Ar=[],sn=0,_n=0;_n<ye.length;_n++){var Hn=ye[_n].stop;if(Hn!==null){var ai=ca(Hn,Ne);ai>sn?Ar.push(ai):Ar.push(sn),sn=ai}else Ar.push(null)}for(var Yi=null,_n=0;_n<Ar.length;_n++){var Ui=Ar[_n];if(Ui===null)Yi===null&&(Yi=_n);else if(Yi!==null){for(var qi=_n-Yi,Za=Ar[Yi-1],eo=(Ui-Za)/(qi+1),po=1;po<=qi;po++)Ar[Yi+po-1]=eo*po;Yi=null}}return ye.map(function(us,Yo){var Po=us.color;return{color:Po,stop:Math.max(Math.min(1,Ar[Yo]/Ne),0)}})},wo=function(ye,Ne,We){var ft=Ne/2,Ar=We/2,sn=ca(ye[0],Ne)-ft,_n=Ar-ca(ye[1],We);return(Math.atan2(_n,sn)+Math.PI*2)%(Math.PI*2)},ts=function(ye,Ne,We){var ft=typeof ye=="number"?ye:wo(ye,Ne,We),Ar=Math.abs(Ne*Math.sin(ft))+Math.abs(We*Math.cos(ft)),sn=Ne/2,_n=We/2,Hn=Ar/2,ai=Math.sin(ft-Math.PI/2)*Hn,Yi=Math.cos(ft-Math.PI/2)*Hn;return[Ar,sn-Yi,sn+Yi,_n-ai,_n+ai]},Ia=function(ye,Ne){return Math.sqrt(ye*ye+Ne*Ne)},Oo=function(ye,Ne,We,ft,Ar){var sn=[[0,0],[0,Ne],[ye,0],[ye,Ne]];return sn.reduce(function(_n,Hn){var ai=Hn[0],Yi=Hn[1],Ui=Ia(We-ai,ft-Yi);return(Ar?Ui<_n.optimumDistance:Ui>_n.optimumDistance)?{optimumCorner:Hn,optimumDistance:Ui}:_n},{optimumDistance:Ar?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Io=function(ye,Ne,We,ft,Ar){var sn=0,_n=0;switch(ye.size){case 0:ye.shape===0?sn=_n=Math.min(Math.abs(Ne),Math.abs(Ne-ft),Math.abs(We),Math.abs(We-Ar)):ye.shape===1&&(sn=Math.min(Math.abs(Ne),Math.abs(Ne-ft)),_n=Math.min(Math.abs(We),Math.abs(We-Ar)));break;case 2:if(ye.shape===0)sn=_n=Math.min(Ia(Ne,We),Ia(Ne,We-Ar),Ia(Ne-ft,We),Ia(Ne-ft,We-Ar));else if(ye.shape===1){var Hn=Math.min(Math.abs(We),Math.abs(We-Ar))/Math.min(Math.abs(Ne),Math.abs(Ne-ft)),ai=Oo(ft,Ar,Ne,We,!0),Yi=ai[0],Ui=ai[1];sn=Ia(Yi-Ne,(Ui-We)/Hn),_n=Hn*sn}break;case 1:ye.shape===0?sn=_n=Math.max(Math.abs(Ne),Math.abs(Ne-ft),Math.abs(We),Math.abs(We-Ar)):ye.shape===1&&(sn=Math.max(Math.abs(Ne),Math.abs(Ne-ft)),_n=Math.max(Math.abs(We),Math.abs(We-Ar)));break;case 3:if(ye.shape===0)sn=_n=Math.max(Ia(Ne,We),Ia(Ne,We-Ar),Ia(Ne-ft,We),Ia(Ne-ft,We-Ar));else if(ye.shape===1){var Hn=Math.max(Math.abs(We),Math.abs(We-Ar))/Math.max(Math.abs(Ne),Math.abs(Ne-ft)),qi=Oo(ft,Ar,Ne,We,!1),Yi=qi[0],Ui=qi[1];sn=Ia(Yi-Ne,(Ui-We)/Hn),_n=Hn*sn}break}return Array.isArray(ye.size)&&(sn=ca(ye.size[0],ft),_n=ye.size.length===2?ca(ye.size[1],Ar):sn),[sn,_n]},os=function(ye,Ne){var We=Aa(180),ft=[];return Fi(Ne).forEach(function(Ar,sn){if(sn===0){var _n=Ar[0];if(_n.type===20&&_n.value==="to"){We=Oa(Ar);return}else if(ga(_n)){We=va.parse(ye,_n);return}}var Hn=Jo(ye,Ar);ft.push(Hn)}),{angle:We,stops:ft,type:1}},So=function(ye,Ne){var We=Aa(180),ft=[];return Fi(Ne).forEach(function(Ar,sn){if(sn===0){var _n=Ar[0];if(_n.type===20&&["top","left","right","bottom"].indexOf(_n.value)!==-1){We=Oa(Ar);return}else if(ga(_n)){We=(va.parse(ye,_n)+Aa(270))%Aa(360);return}}var Hn=Jo(ye,Ar);ft.push(Hn)}),{angle:We,stops:ft,type:1}},rs=function(ye,Ne){var We=Aa(180),ft=[],Ar=1,sn=0,_n=3,Hn=[];return Fi(Ne).forEach(function(ai,Yi){var Ui=ai[0];if(Yi===0){if(Nn(Ui)&&Ui.value==="linear"){Ar=1;return}else if(Nn(Ui)&&Ui.value==="radial"){Ar=2;return}}if(Ui.type===18){if(Ui.name==="from"){var qi=Xa.parse(ye,Ui.values[0]);ft.push({stop:Xi,color:qi})}else if(Ui.name==="to"){var qi=Xa.parse(ye,Ui.values[0]);ft.push({stop:Hi,color:qi})}else if(Ui.name==="color-stop"){var Za=Ui.values.filter(gi);if(Za.length===2){var qi=Xa.parse(ye,Za[1]),eo=Za[0];Cn(eo)&&ft.push({stop:{type:16,number:eo.number*100,flags:eo.flags},color:qi})}}}}),Ar===1?{angle:(We+Aa(180))%Aa(360),stops:ft,type:Ar}:{size:_n,shape:sn,stops:ft,position:Hn,type:Ar}},Ho="closest-side",_o="farthest-side",uo="closest-corner",Ha="farthest-corner",vt="circle",_r="ellipse",rn="cover",Jr="contain",Jn=function(ye,Ne){var We=0,ft=3,Ar=[],sn=[];return Fi(Ne).forEach(function(_n,Hn){var ai=!0;if(Hn===0){var Yi=!1;ai=_n.reduce(function(qi,Za){if(Yi)if(Nn(Za))switch(Za.value){case"center":return sn.push(zi),qi;case"top":case"left":return sn.push(Xi),qi;case"right":case"bottom":return sn.push(Hi),qi}else(Vi(Za)||Ii(Za))&&sn.push(Za);else if(Nn(Za))switch(Za.value){case vt:return We=0,!1;case _r:return We=1,!1;case"at":return Yi=!0,!1;case Ho:return ft=0,!1;case rn:case _o:return ft=1,!1;case Jr:case uo:return ft=2,!1;case Ha:return ft=3,!1}else if(Ii(Za)||Vi(Za))return Array.isArray(ft)||(ft=[]),ft.push(Za),!1;return qi},ai)}if(ai){var Ui=Jo(ye,_n);Ar.push(Ui)}}),{size:ft,shape:We,stops:Ar,position:sn,type:2}},fn=function(ye,Ne){var We=0,ft=3,Ar=[],sn=[];return Fi(Ne).forEach(function(_n,Hn){var ai=!0;if(Hn===0?ai=_n.reduce(function(Ui,qi){if(Nn(qi))switch(qi.value){case"center":return sn.push(zi),!1;case"top":case"left":return sn.push(Xi),!1;case"right":case"bottom":return sn.push(Hi),!1}else if(Vi(qi)||Ii(qi))return sn.push(qi),!1;return Ui},ai):Hn===1&&(ai=_n.reduce(function(Ui,qi){if(Nn(qi))switch(qi.value){case vt:return We=0,!1;case _r:return We=1,!1;case Jr:case Ho:return ft=0,!1;case _o:return ft=1,!1;case uo:return ft=2,!1;case rn:case Ha:return ft=3,!1}else if(Ii(qi)||Vi(qi))return Array.isArray(ft)||(ft=[]),ft.push(qi),!1;return Ui},ai)),ai){var Yi=Jo(ye,_n);Ar.push(Yi)}}),{size:ft,shape:We,stops:Ar,position:sn,type:2}},Yr=function(ye){return ye.type===1},ii=function(ye){return ye.type===2},on={name:"image",parse:function(ye,Ne){if(Ne.type===22){var We={url:Ne.value,type:0};return ye.cache.addImage(Ne.value),We}if(Ne.type===18){var ft=ui[Ne.name];if(typeof ft=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Ne.name+'"');return ft(ye,Ne.values)}throw new Error("Unsupported image type "+Ne.type)}};function zn(Tr){return!(Tr.type===20&&Tr.value==="none")&&(Tr.type!==18||!!ui[Tr.name])}var ui={"linear-gradient":os,"-moz-linear-gradient":So,"-ms-linear-gradient":So,"-o-linear-gradient":So,"-webkit-linear-gradient":So,"radial-gradient":Jn,"-moz-radial-gradient":fn,"-ms-radial-gradient":fn,"-o-radial-gradient":fn,"-webkit-radial-gradient":fn,"-webkit-gradient":rs},di={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){if(Ne.length===0)return[];var We=Ne[0];return We.type===20&&We.value==="none"?[]:Ne.filter(function(ft){return gi(ft)&&zn(ft)}).map(function(ft){return on.parse(ye,ft)})}},li={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(ye,Ne){return Ne.map(function(We){if(Nn(We))switch(We.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ti={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(ye,Ne){return Fi(Ne).map(function(We){return We.filter(Vi)}).map(ea)}},vi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(ye,Ne){return Fi(Ne).map(function(We){return We.filter(Nn).map(function(ft){return ft.value}).join(" ")}).map(yi)}},yi=function(ye){switch(ye){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}},Ni;(function(Tr){Tr.AUTO="auto",Tr.CONTAIN="contain",Tr.COVER="cover"})(Ni||(Ni={}));var ia={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(ye,Ne){return Fi(Ne).map(function(We){return We.filter(Ki)})}},Ki=function(ye){return Nn(ye)||Vi(ye)},fa=function(ye){return{name:"border-"+ye+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ya=fa("top"),Sa=fa("right"),wa=fa("bottom"),Da=fa("left"),ja=function(ye){return{name:"border-radius-"+ye,initialValue:"0 0",prefix:!1,type:1,parse:function(We,ft){return ea(ft.filter(Vi))}}},ko=ja("top-left"),ro=ja("top-right"),pa=ja("bottom-right"),Ea=ja("bottom-left"),Fa=function(ye){return{name:"border-"+ye+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(We,ft){switch(ft){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ka=Fa("top"),lo=Fa("right"),so=Fa("bottom"),To=Fa("left"),Lo=function(ye){return{name:"border-"+ye+"-width",initialValue:"0",type:0,prefix:!1,parse:function(We,ft){return an(ft)?ft.number:0}}},is=Lo("top"),cs=Lo("right"),Rs=Lo("bottom"),Ko=Lo("left"),as={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},co={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"rtl":return 1;case"ltr":default:return 0}}},Ao={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(Nn).reduce(function(We,ft){return We|$a(ft.value)},0)}},$a=function(ye){switch(ye){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},ss={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},_s={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(ye,Ne){return Ne.type===20&&Ne.value==="normal"?0:Ne.type===17||Ne.type===15?Ne.number:0}},Fo;(function(Tr){Tr.NORMAL="normal",Tr.STRICT="strict"})(Fo||(Fo={}));var il={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"strict":return Fo.STRICT;case"normal":default:return Fo.NORMAL}}},Eo={name:"line-height",initialValue:"normal",prefix:!1,type:4},zo=function(ye,Ne){return Nn(ye)&&ye.value==="normal"?1.2*Ne:ye.type===17?Ne*ye.number:Vi(ye)?ca(ye,Ne):Ne},Fs={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(ye,Ne){return Ne.type===20&&Ne.value==="none"?null:on.parse(ye,Ne)}},ms={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"inside":return 0;case"outside":default:return 1}}},hs={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){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}}},Sn=function(ye){return{name:"margin-"+ye,initialValue:"0",prefix:!1,type:4}},Ns=Sn("top"),Ll=Sn("right"),el=Sn("bottom"),Gs=Sn("left"),ds={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(Nn).map(function(We){switch(We.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ks={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"break-word":return"break-word";case"normal":default:return"normal"}}},Qs=function(ye){return{name:"padding-"+ye,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},tl=Qs("top"),Ss=Qs("right"),Bs=Qs("bottom"),al=Qs("left"),Js={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){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(ye,Ne){switch(Ne){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},No={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){return Ne.length===1&&ei(Ne[0],"none")?[]:Fi(Ne).map(function(We){for(var ft={color:xo.TRANSPARENT,offsetX:Xi,offsetY:Xi,blur:Xi},Ar=0,sn=0;sn<We.length;sn++){var _n=We[sn];Ii(_n)?(Ar===0?ft.offsetX=_n:Ar===1?ft.offsetY=_n:ft.blur=_n,Ar++):ft.color=Xa.parse(ye,_n)}return ft})}},fs={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ds={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(ye,Ne){if(Ne.type===20&&Ne.value==="none")return null;if(Ne.type===18){var We=ur[Ne.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Ne.name+'"');return We(Ne.values)}return null}},go=function(ye){var Ne=ye.filter(function(We){return We.type===17}).map(function(We){return We.number});return Ne.length===6?Ne:null},zt=function(ye){var Ne=ye.filter(function(ai){return ai.type===17}).map(function(ai){return ai.number}),We=Ne[0],ft=Ne[1];Ne[2],Ne[3];var Ar=Ne[4],sn=Ne[5];Ne[6],Ne[7],Ne[8],Ne[9],Ne[10],Ne[11];var _n=Ne[12],Hn=Ne[13];return Ne[14],Ne[15],Ne.length===16?[We,ft,Ar,sn,_n,Hn]:null},ur={matrix:go,matrix3d:zt},Dn={type:16,number:50,flags:Ot},fi=[Dn,Dn],Mt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(ye,Ne){var We=Ne.filter(Vi);return We.length!==2?fi:[We[0],We[1]]}},ce={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Se;(function(Tr){Tr.NORMAL="normal",Tr.BREAK_ALL="break-all",Tr.KEEP_ALL="keep-all"})(Se||(Se={}));for(var Ie={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"break-all":return Se.BREAK_ALL;case"keep-all":return Se.KEEP_ALL;case"normal":default:return Se.NORMAL}}},Je={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(ye,Ne){if(Ne.type===20)return{auto:!0,order:0};if(Cn(Ne))return{auto:!1,order:Ne.number};throw new Error("Invalid z-index number parsed")}},Pt={name:"time",parse:function(ye,Ne){if(Ne.type===15)switch(Ne.unit.toLowerCase()){case"s":return 1e3*Ne.number;case"ms":return Ne.number}throw new Error("Unsupported time type")}},cr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(ye,Ne){return Cn(Ne)?Ne.number:1}},Zr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},vn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(Nn).map(function(We){switch(We.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(We){return We!==0})}},kn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(ye,Ne){var We=[],ft=[];return Ne.forEach(function(Ar){switch(Ar.type){case 20:case 0:We.push(Ar.value);break;case 17:We.push(Ar.number.toString());break;case 4:ft.push(We.join(" ")),We.length=0;break}}),We.length&&ft.push(We.join(" ")),ft.map(function(Ar){return Ar.indexOf(" ")===-1?Ar:"'"+Ar+"'"})}},ci={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Si={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(ye,Ne){if(Cn(Ne))return Ne.number;if(Nn(Ne))switch(Ne.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ai={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){return Ne.filter(Nn).map(function(We){return We.value})}},Qi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},sa=function(ye,Ne){return(ye&Ne)!==0},Ua={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){if(Ne.length===0)return[];var We=Ne[0];return We.type===20&&We.value==="none"?[]:Ne}},no={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(ye,Ne){if(Ne.length===0)return null;var We=Ne[0];if(We.type===20&&We.value==="none")return null;for(var ft=[],Ar=Ne.filter(Wn),sn=0;sn<Ar.length;sn++){var _n=Ar[sn],Hn=Ar[sn+1];if(_n.type===20){var ai=Hn&&Cn(Hn)?Hn.number:1;ft.push({counter:_n.value,increment:ai})}}return ft}},Wo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(ye,Ne){if(Ne.length===0)return[];for(var We=[],ft=Ne.filter(Wn),Ar=0;Ar<ft.length;Ar++){var sn=ft[Ar],_n=ft[Ar+1];if(Nn(sn)&&sn.value!=="none"){var Hn=_n&&Cn(_n)?_n.number:0;We.push({counter:sn.value,reset:Hn})}}return We}},Zo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(an).map(function(We){return Pt.parse(ye,We)})}},Bo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(ye,Ne){if(Ne.length===0)return null;var We=Ne[0];if(We.type===20&&We.value==="none")return null;var ft=[],Ar=Ne.filter(En);if(Ar.length%2!==0)return null;for(var sn=0;sn<Ar.length;sn+=2){var _n=Ar[sn].value,Hn=Ar[sn+1].value;ft.push({open:_n,close:Hn})}return ft}},Es=function(ye,Ne,We){if(!ye)return"";var ft=ye[Math.min(Ne,ye.length-1)];return ft?We?ft.open:ft.close:""},As={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){return Ne.length===1&&ei(Ne[0],"none")?[]:Fi(Ne).map(function(We){for(var ft={color:255,offsetX:Xi,offsetY:Xi,blur:Xi,spread:Xi,inset:!1},Ar=0,sn=0;sn<We.length;sn++){var _n=We[sn];ei(_n,"inset")?ft.inset=!0:Ii(_n)?(Ar===0?ft.offsetX=_n:Ar===1?ft.offsetY=_n:Ar===2?ft.blur=_n:ft.spread=_n,Ar++):ft.color=Xa.parse(ye,_n)}return ft})}},$o={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(ye,Ne){var We=[0,1,2],ft=[];return Ne.filter(Nn).forEach(function(Ar){switch(Ar.value){case"stroke":ft.push(1);break;case"fill":ft.push(0);break;case"markers":ft.push(2);break}}),We.forEach(function(Ar){ft.indexOf(Ar)===-1&&ft.push(Ar)}),ft}},Do={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},vo={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(ye,Ne){return an(Ne)?Ne.number:0}},Ms=function(){function Tr(ye,Ne){var We,ft;this.animationDuration=Ra(ye,Zo,Ne.animationDuration),this.backgroundClip=Ra(ye,bo,Ne.backgroundClip),this.backgroundColor=Ra(ye,to,Ne.backgroundColor),this.backgroundImage=Ra(ye,di,Ne.backgroundImage),this.backgroundOrigin=Ra(ye,li,Ne.backgroundOrigin),this.backgroundPosition=Ra(ye,Ti,Ne.backgroundPosition),this.backgroundRepeat=Ra(ye,vi,Ne.backgroundRepeat),this.backgroundSize=Ra(ye,ia,Ne.backgroundSize),this.borderTopColor=Ra(ye,Ya,Ne.borderTopColor),this.borderRightColor=Ra(ye,Sa,Ne.borderRightColor),this.borderBottomColor=Ra(ye,wa,Ne.borderBottomColor),this.borderLeftColor=Ra(ye,Da,Ne.borderLeftColor),this.borderTopLeftRadius=Ra(ye,ko,Ne.borderTopLeftRadius),this.borderTopRightRadius=Ra(ye,ro,Ne.borderTopRightRadius),this.borderBottomRightRadius=Ra(ye,pa,Ne.borderBottomRightRadius),this.borderBottomLeftRadius=Ra(ye,Ea,Ne.borderBottomLeftRadius),this.borderTopStyle=Ra(ye,Ka,Ne.borderTopStyle),this.borderRightStyle=Ra(ye,lo,Ne.borderRightStyle),this.borderBottomStyle=Ra(ye,so,Ne.borderBottomStyle),this.borderLeftStyle=Ra(ye,To,Ne.borderLeftStyle),this.borderTopWidth=Ra(ye,is,Ne.borderTopWidth),this.borderRightWidth=Ra(ye,cs,Ne.borderRightWidth),this.borderBottomWidth=Ra(ye,Rs,Ne.borderBottomWidth),this.borderLeftWidth=Ra(ye,Ko,Ne.borderLeftWidth),this.boxShadow=Ra(ye,As,Ne.boxShadow),this.color=Ra(ye,as,Ne.color),this.direction=Ra(ye,co,Ne.direction),this.display=Ra(ye,Ao,Ne.display),this.float=Ra(ye,ss,Ne.cssFloat),this.fontFamily=Ra(ye,kn,Ne.fontFamily),this.fontSize=Ra(ye,ci,Ne.fontSize),this.fontStyle=Ra(ye,Qi,Ne.fontStyle),this.fontVariant=Ra(ye,Ai,Ne.fontVariant),this.fontWeight=Ra(ye,Si,Ne.fontWeight),this.letterSpacing=Ra(ye,_s,Ne.letterSpacing),this.lineBreak=Ra(ye,il,Ne.lineBreak),this.lineHeight=Ra(ye,Eo,Ne.lineHeight),this.listStyleImage=Ra(ye,Fs,Ne.listStyleImage),this.listStylePosition=Ra(ye,ms,Ne.listStylePosition),this.listStyleType=Ra(ye,hs,Ne.listStyleType),this.marginTop=Ra(ye,Ns,Ne.marginTop),this.marginRight=Ra(ye,Ll,Ne.marginRight),this.marginBottom=Ra(ye,el,Ne.marginBottom),this.marginLeft=Ra(ye,Gs,Ne.marginLeft),this.opacity=Ra(ye,cr,Ne.opacity);var Ar=Ra(ye,ds,Ne.overflow);this.overflowX=Ar[0],this.overflowY=Ar[Ar.length>1?1:0],this.overflowWrap=Ra(ye,ks,Ne.overflowWrap),this.paddingTop=Ra(ye,tl,Ne.paddingTop),this.paddingRight=Ra(ye,Ss,Ne.paddingRight),this.paddingBottom=Ra(ye,Bs,Ne.paddingBottom),this.paddingLeft=Ra(ye,al,Ne.paddingLeft),this.paintOrder=Ra(ye,$o,Ne.paintOrder),this.position=Ra(ye,Vo,Ne.position),this.textAlign=Ra(ye,Js,Ne.textAlign),this.textDecorationColor=Ra(ye,Zr,(We=Ne.textDecorationColor)!==null&&We!==void 0?We:Ne.color),this.textDecorationLine=Ra(ye,vn,(ft=Ne.textDecorationLine)!==null&&ft!==void 0?ft:Ne.textDecoration),this.textShadow=Ra(ye,No,Ne.textShadow),this.textTransform=Ra(ye,fs,Ne.textTransform),this.transform=Ra(ye,Ds,Ne.transform),this.transformOrigin=Ra(ye,Mt,Ne.transformOrigin),this.visibility=Ra(ye,ce,Ne.visibility),this.webkitTextStrokeColor=Ra(ye,Do,Ne.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ra(ye,vo,Ne.webkitTextStrokeWidth),this.wordBreak=Ra(ye,Ie,Ne.wordBreak),this.zIndex=Ra(ye,Je,Ne.zIndex)}return Tr.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Tr.prototype.isTransparent=function(){return _a(this.backgroundColor)},Tr.prototype.isTransformed=function(){return this.transform!==null},Tr.prototype.isPositioned=function(){return this.position!==0},Tr.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Tr.prototype.isFloating=function(){return this.float!==0},Tr.prototype.isInlineLevel=function(){return sa(this.display,4)||sa(this.display,33554432)||sa(this.display,268435456)||sa(this.display,536870912)||sa(this.display,67108864)||sa(this.display,134217728)},Tr}(),rl=function(){function Tr(ye,Ne){this.content=Ra(ye,Ua,Ne.content),this.quotes=Ra(ye,Bo,Ne.quotes)}return Tr}(),gs=function(){function Tr(ye,Ne){this.counterIncrement=Ra(ye,no,Ne.counterIncrement),this.counterReset=Ra(ye,Wo,Ne.counterReset)}return Tr}(),Ra=function(ye,Ne,We){var ft=new Lr,Ar=We!==null&&typeof We!="undefined"?We.toString():Ne.initialValue;ft.write(Ar);var sn=new Dr(ft.read());switch(Ne.type){case 2:var _n=sn.parseComponentValue();return Ne.parse(ye,Nn(_n)?_n.value:Ne.initialValue);case 0:return Ne.parse(ye,sn.parseComponentValue());case 1:return Ne.parse(ye,sn.parseComponentValues());case 4:return sn.parseComponentValue();case 3:switch(Ne.format){case"angle":return va.parse(ye,sn.parseComponentValue());case"color":return Xa.parse(ye,sn.parseComponentValue());case"image":return on.parse(ye,sn.parseComponentValue());case"length":var Hn=sn.parseComponentValue();return Ii(Hn)?Hn:Xi;case"length-percentage":var ai=sn.parseComponentValue();return Vi(ai)?ai:Xi;case"time":return Pt.parse(ye,sn.parseComponentValue())}break}},dl="data-html2canvas-debug",fl=function(ye){var Ne=ye.getAttribute(dl);switch(Ne){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Us=function(ye,Ne){var We=fl(ye);return We===1||Ne===We},Os=function(){function Tr(ye,Ne){if(this.context=ye,this.textNodes=[],this.elements=[],this.flags=0,Us(Ne,3))debugger;this.styles=new Ms(ye,window.getComputedStyle(Ne,null)),js(Ne)&&(this.styles.animationDuration.some(function(We){return We>0})&&(Ne.style.animationDuration="0s"),this.styles.transform!==null&&(Ne.style.transform="none")),this.bounds=l(this.context,Ne),Us(Ne,4)&&(this.flags|=16)}return Tr}(),Xs="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ul=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),wl=0;wl<Ql.length;wl++)Ul[Ql.charCodeAt(wl)]=wl;for(var Cs=function(ye){var Ne=ye.length*.75,We=ye.length,ft,Ar=0,sn,_n,Hn,ai;ye[ye.length-1]==="="&&(Ne--,ye[ye.length-2]==="="&&Ne--);var Yi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ne):new Array(Ne),Ui=Array.isArray(Yi)?Yi:new Uint8Array(Yi);for(ft=0;ft<We;ft+=4)sn=Ul[ye.charCodeAt(ft)],_n=Ul[ye.charCodeAt(ft+1)],Hn=Ul[ye.charCodeAt(ft+2)],ai=Ul[ye.charCodeAt(ft+3)],Ui[Ar++]=sn<<2|_n>>4,Ui[Ar++]=(_n&15)<<4|Hn>>2,Ui[Ar++]=(Hn&3)<<6|ai&63;return Yi},Ws=function(ye){for(var Ne=ye.length,We=[],ft=0;ft<Ne;ft+=2)We.push(ye[ft+1]<<8|ye[ft]);return We},Cl=function(ye){for(var Ne=ye.length,We=[],ft=0;ft<Ne;ft+=4)We.push(ye[ft+3]<<24|ye[ft+2]<<16|ye[ft+1]<<8|ye[ft]);return We},pl=5,jo=6+5,yo=2,qo=jo-pl,ps=65536>>pl,Is=1<<pl,es=Is-1,Ls=1024>>pl,Ps=ps+Ls,ml=Ps,Rl=2048>>6,_l=ml+Rl,Bl=65536>>jo,jl=1<<qo,kl=jl-1,Xl=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint16Array(Array.prototype.slice.call(ye,Ne,We))},ol=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint32Array(Array.prototype.slice.call(ye,Ne,We))},Ys=function(ye,Ne){var We=Cs(ye),ft=Array.isArray(We)?Cl(We):new Uint32Array(We),Ar=Array.isArray(We)?Ws(We):new Uint16Array(We),sn=24,_n=Xl(Ar,sn/2,ft[4]/2),Hn=ft[5]===2?Xl(Ar,(sn+ft[4])/2):ol(ft,Math.ceil((sn+ft[4])/4));return new sl(ft[0],ft[1],ft[2],ft[3],_n,Hn)},sl=function(){function Tr(ye,Ne,We,ft,Ar,sn){this.initialValue=ye,this.errorValue=Ne,this.highStart=We,this.highValueIndex=ft,this.index=Ar,this.data=sn}return Tr.prototype.get=function(ye){var Ne;if(ye>=0){if(ye<55296||ye>56319&&ye<=65535)return Ne=this.index[ye>>pl],Ne=(Ne<<yo)+(ye&es),this.data[Ne];if(ye<=65535)return Ne=this.index[ps+(ye-55296>>pl)],Ne=(Ne<<yo)+(ye&es),this.data[Ne];if(ye<this.highStart)return Ne=_l-Bl+(ye>>jo),Ne=this.index[Ne],Ne+=ye>>pl&kl,Ne=this.index[Ne],Ne=(Ne<<yo)+(ye&es),this.data[Ne];if(ye<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Tr}(),nl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ml=0;Ml<nl.length;Ml++)Sl[nl.charCodeAt(Ml)]=Ml;var Wl=1,au=2,Nl=3,$l=4,tu=5,Iu=7,pu=8,mu=9,gu=10,ql=11,Tl=12,ll=13,Hl=14,xl=15,xu=function(ye){for(var Ne=[],We=0,ft=ye.length;We<ft;){var Ar=ye.charCodeAt(We++);if(Ar>=55296&&Ar<=56319&&We<ft){var sn=ye.charCodeAt(We++);(sn&64512)===56320?Ne.push(((Ar&1023)<<10)+(sn&1023)+65536):(Ne.push(Ar),We--)}else Ne.push(Ar)}return Ne},vu=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ye);var We=ye.length;if(!We)return"";for(var ft=[],Ar=-1,sn="";++Ar<We;){var _n=ye[Ar];_n<=65535?ft.push(_n):(_n-=65536,ft.push((_n>>10)+55296,_n%1024+56320)),(Ar+1===We||ft.length>16384)&&(sn+=String.fromCharCode.apply(String,ft),ft.length=0)}return sn},Au=Ys(Xs),Ol="\xD7",cu="\xF7",du=function(ye){return Au.get(ye)},Lu=function(ye,Ne,We){var ft=We-2,Ar=Ne[ft],sn=Ne[We-1],_n=Ne[We];if(sn===au&&_n===Nl)return Ol;if(sn===au||sn===Nl||sn===$l)return cu;if(_n===au||_n===Nl||_n===$l)return cu;if(sn===pu&&[pu,mu,ql,Tl].indexOf(_n)!==-1)return Ol;if((sn===ql||sn===mu)&&(_n===mu||_n===gu))return Ol;if((sn===Tl||sn===gu)&&_n===gu)return Ol;if(_n===ll||_n===tu)return Ol;if(_n===Iu)return Ol;if(sn===Wl)return Ol;if(sn===ll&&_n===Hl){for(;Ar===tu;)Ar=Ne[--ft];if(Ar===Hl)return Ol}if(sn===xl&&_n===xl){for(var Hn=0;Ar===xl;)Hn++,Ar=Ne[--ft];if(Hn%2===0)return Ol}return cu},zl=function(ye){var Ne=xu(ye),We=Ne.length,ft=0,Ar=0,sn=Ne.map(du);return{next:function(){if(ft>=We)return{done:!0,value:null};for(var Hn=Ol;ft<We&&(Hn=Lu(Ne,sn,++ft))===Ol;);if(Hn!==Ol||ft===We){var ai=vu.apply(null,Ne.slice(Ar,ft));return Ar=ft,{value:ai,done:!1}}return{done:!0,value:null}}}},ru=function(ye){for(var Ne=zl(ye),We=[],ft;!(ft=Ne.next()).done;)ft.value&&We.push(ft.value.slice());return We},ou=function(ye){var Ne=123;if(ye.createRange){var We=ye.createRange();if(We.getBoundingClientRect){var ft=ye.createElement("boundtest");ft.style.height=Ne+"px",ft.style.display="block",ye.body.appendChild(ft),We.selectNode(ft);var Ar=We.getBoundingClientRect(),sn=Math.round(Ar.height);if(ye.body.removeChild(ft),sn===Ne)return!0}}return!1},su=function(ye){var Ne=ye.createElement("boundtest");Ne.style.width="50px",Ne.style.display="block",Ne.style.fontSize="12px",Ne.style.letterSpacing="0px",Ne.style.wordSpacing="0px",ye.body.appendChild(Ne);var We=ye.createRange();Ne.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var ft=Ne.firstChild,Ar=i(ft.data).map(function(ai){return t(ai)}),sn=0,_n={},Hn=Ar.every(function(ai,Yi){We.setStart(ft,sn),We.setEnd(ft,sn+ai.length);var Ui=We.getBoundingClientRect();sn+=ai.length;var qi=Ui.x>_n.x||Ui.y>_n.y;return _n=Ui,Yi===0?!0:qi});return ye.body.removeChild(Ne),Hn},Jl=function(){return typeof new Image().crossOrigin!="undefined"},Du=function(){return typeof new XMLHttpRequest().responseType=="string"},Ru=function(ye){var Ne=new Image,We=ye.createElement("canvas"),ft=We.getContext("2d");if(!ft)return!1;Ne.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{ft.drawImage(Ne,0,0),We.toDataURL()}catch(Ar){return!1}return!0},Zl=function(ye){return ye[0]===0&&ye[1]===255&&ye[2]===0&&ye[3]===255},yu=function(ye){var Ne=ye.createElement("canvas"),We=100;Ne.width=We,Ne.height=We;var ft=Ne.getContext("2d");if(!ft)return Promise.reject(!1);ft.fillStyle="rgb(0, 255, 0)",ft.fillRect(0,0,We,We);var Ar=new Image,sn=Ne.toDataURL();Ar.src=sn;var _n=Su(We,We,0,0,Ar);return ft.fillStyle="red",ft.fillRect(0,0,We,We),bu(_n).then(function(Hn){ft.drawImage(Hn,0,0);var ai=ft.getImageData(0,0,We,We).data;ft.fillStyle="red",ft.fillRect(0,0,We,We);var Yi=ye.createElement("div");return Yi.style.backgroundImage="url("+sn+")",Yi.style.height=We+"px",Zl(ai)?bu(Su(We,We,0,0,Yi)):Promise.reject(!1)}).then(function(Hn){return ft.drawImage(Hn,0,0),Zl(ft.getImageData(0,0,We,We).data)}).catch(function(){return!1})},Su=function(ye,Ne,We,ft,Ar){var sn="http://www.w3.org/2000/svg",_n=document.createElementNS(sn,"svg"),Hn=document.createElementNS(sn,"foreignObject");return _n.setAttributeNS(null,"width",ye.toString()),_n.setAttributeNS(null,"height",Ne.toString()),Hn.setAttributeNS(null,"width","100%"),Hn.setAttributeNS(null,"height","100%"),Hn.setAttributeNS(null,"x",We.toString()),Hn.setAttributeNS(null,"y",ft.toString()),Hn.setAttributeNS(null,"externalResourcesRequired","true"),_n.appendChild(Hn),Hn.appendChild(Ar),_n},bu=function(ye){return new Promise(function(Ne,We){var ft=new Image;ft.onload=function(){return Ne(ft)},ft.onerror=We,ft.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ye))})},hl={get SUPPORT_RANGE_BOUNDS(){var Tr=ou(document);return Object.defineProperty(hl,"SUPPORT_RANGE_BOUNDS",{value:Tr}),Tr},get SUPPORT_WORD_BREAKING(){var Tr=hl.SUPPORT_RANGE_BOUNDS&&su(document);return Object.defineProperty(hl,"SUPPORT_WORD_BREAKING",{value:Tr}),Tr},get SUPPORT_SVG_DRAWING(){var Tr=Ru(document);return Object.defineProperty(hl,"SUPPORT_SVG_DRAWING",{value:Tr}),Tr},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Tr=typeof Array.from=="function"&&typeof window.fetch=="function"?yu(document):Promise.resolve(!1);return Object.defineProperty(hl,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Tr}),Tr},get SUPPORT_CORS_IMAGES(){var Tr=Jl();return Object.defineProperty(hl,"SUPPORT_CORS_IMAGES",{value:Tr}),Tr},get SUPPORT_RESPONSE_TYPE(){var Tr=Du();return Object.defineProperty(hl,"SUPPORT_RESPONSE_TYPE",{value:Tr}),Tr},get SUPPORT_CORS_XHR(){var Tr="withCredentials"in new XMLHttpRequest;return Object.defineProperty(hl,"SUPPORT_CORS_XHR",{value:Tr}),Tr},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Tr=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(hl,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Tr}),Tr}},Dl=function(){function Tr(ye,Ne){this.text=ye,this.bounds=Ne}return Tr}(),nu=function(ye,Ne,We,ft){var Ar=Ae(Ne,We),sn=[],_n=0;return Ar.forEach(function(Hn){if(We.textDecorationLine.length||Hn.trim().length>0)if(hl.SUPPORT_RANGE_BOUNDS){var ai=hu(ft,_n,Hn.length).getClientRects();if(ai.length>1){var Yi=fu(Hn),Ui=0;Yi.forEach(function(Za){sn.push(new Dl(Za,d.fromDOMRectList(ye,hu(ft,Ui+_n,Za.length).getClientRects()))),Ui+=Za.length})}else sn.push(new Dl(Hn,d.fromDOMRectList(ye,ai)))}else{var qi=ft.splitText(Hn.length);sn.push(new Dl(Hn,Nu(ye,ft))),ft=qi}else hl.SUPPORT_RANGE_BOUNDS||(ft=ft.splitText(Hn.length));_n+=Hn.length}),sn},Nu=function(ye,Ne){var We=Ne.ownerDocument;if(We){var ft=We.createElement("html2canvaswrapper");ft.appendChild(Ne.cloneNode(!0));var Ar=Ne.parentNode;if(Ar){Ar.replaceChild(ft,Ne);var sn=l(ye,ft);return ft.firstChild&&Ar.replaceChild(ft.firstChild,ft),sn}}return d.EMPTY},hu=function(ye,Ne,We){var ft=ye.ownerDocument;if(!ft)throw new Error("Node has no owner document");var Ar=ft.createRange();return Ar.setStart(ye,Ne),Ar.setEnd(ye,Ne+We),Ar},fu=function(ye){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ne=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(Ne.segment(ye)).map(function(We){return We.segment})}return ru(ye)},iu=function(ye,Ne){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var We=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(We.segment(ye)).map(function(ft){return ft.segment})}return L(ye,Ne)},Ae=function(ye,Ne){return Ne.letterSpacing!==0?fu(ye):iu(ye,Ne)},ee=[32,160,4961,65792,65793,4153,4241],L=function(ye,Ne){for(var We=Pe(ye,{lineBreak:Ne.lineBreak,wordBreak:Ne.overflowWrap==="break-word"?"break-word":Ne.wordBreak}),ft=[],Ar,sn=function(){if(Ar.value){var Hn=Ar.value.slice(),ai=i(Hn),Yi="";ai.forEach(function(Ui){ee.indexOf(Ui)===-1?Yi+=t(Ui):(Yi.length&&ft.push(Yi),ft.push(t(Ui)),Yi="")}),Yi.length&&ft.push(Yi)}};!(Ar=We.next()).done;)sn();return ft},W=function(){function Tr(ye,Ne,We){this.text=H(Ne.data,We.textTransform),this.textBounds=nu(ye,this.text,We,Ne)}return Tr}(),H=function(ye,Ne){switch(Ne){case 1:return ye.toLowerCase();case 3:return ye.replace(Z,ne);case 2:return ye.toUpperCase();default:return ye}},Z=/(^|\s|:|-|\(|\))([a-z])/g,ne=function(ye,Ne,We){return ye.length>0?Ne+We.toUpperCase():ye},ve=function(Tr){g(ye,Tr);function ye(Ne,We){var ft=Tr.call(this,Ne,We)||this;return ft.src=We.currentSrc||We.src,ft.intrinsicWidth=We.naturalWidth,ft.intrinsicHeight=We.naturalHeight,ft.context.cache.addImage(ft.src),ft}return ye}(Os),Ce=function(Tr){g(ye,Tr);function ye(Ne,We){var ft=Tr.call(this,Ne,We)||this;return ft.canvas=We,ft.intrinsicWidth=We.width,ft.intrinsicHeight=We.height,ft}return ye}(Os),ze=function(Tr){g(ye,Tr);function ye(Ne,We){var ft=Tr.call(this,Ne,We)||this,Ar=new XMLSerializer,sn=l(Ne,We);return We.setAttribute("width",sn.width+"px"),We.setAttribute("height",sn.height+"px"),ft.svg="data:image/svg+xml,"+encodeURIComponent(Ar.serializeToString(We)),ft.intrinsicWidth=We.width.baseVal.value,ft.intrinsicHeight=We.height.baseVal.value,ft.context.cache.addImage(ft.svg),ft}return ye}(Os),st=function(Tr){g(ye,Tr);function ye(Ne,We){var ft=Tr.call(this,Ne,We)||this;return ft.value=We.value,ft}return ye}(Os),gt=function(Tr){g(ye,Tr);function ye(Ne,We){var ft=Tr.call(this,Ne,We)||this;return ft.start=We.start,ft.reversed=typeof We.reversed=="boolean"&&We.reversed===!0,ft}return ye}(Os),tr=[{type:15,flags:0,unit:"px",number:3}],Or=[{type:16,flags:0,number:50}],Sr=function(ye){return ye.width>ye.height?new d(ye.left+(ye.width-ye.height)/2,ye.top,ye.height,ye.height):ye.width<ye.height?new d(ye.left,ye.top+(ye.height-ye.width)/2,ye.width,ye.width):ye},Wr=function(ye){var Ne=ye.type===Mn?new Array(ye.value.length+1).join("\u2022"):ye.value;return Ne.length===0?ye.placeholder||"":Ne},$r="checkbox",Ln="radio",Mn="password",Zn=707406591,xi=function(Tr){g(ye,Tr);function ye(Ne,We){var ft=Tr.call(this,Ne,We)||this;ft.type=We.type.toLowerCase(),ft.checked=We.checked,ft.value=Wr(We),(ft.type===$r||ft.type===Ln)&&(ft.styles.backgroundColor=3739148031,ft.styles.borderTopColor=ft.styles.borderRightColor=ft.styles.borderBottomColor=ft.styles.borderLeftColor=2779096575,ft.styles.borderTopWidth=ft.styles.borderRightWidth=ft.styles.borderBottomWidth=ft.styles.borderLeftWidth=1,ft.styles.borderTopStyle=ft.styles.borderRightStyle=ft.styles.borderBottomStyle=ft.styles.borderLeftStyle=1,ft.styles.backgroundClip=[0],ft.styles.backgroundOrigin=[0],ft.bounds=Sr(ft.bounds));switch(ft.type){case $r:ft.styles.borderTopRightRadius=ft.styles.borderTopLeftRadius=ft.styles.borderBottomRightRadius=ft.styles.borderBottomLeftRadius=tr;break;case Ln:ft.styles.borderTopRightRadius=ft.styles.borderTopLeftRadius=ft.styles.borderBottomRightRadius=ft.styles.borderBottomLeftRadius=Or;break}return ft}return ye}(Os),ua=function(Tr){g(ye,Tr);function ye(Ne,We){var ft=Tr.call(this,Ne,We)||this,Ar=We.options[We.selectedIndex||0];return ft.value=Ar&&Ar.text||"",ft}return ye}(Os),Gi=function(Tr){g(ye,Tr);function ye(Ne,We){var ft=Tr.call(this,Ne,We)||this;return ft.value=We.value,ft}return ye}(Os),Zi=function(Tr){g(ye,Tr);function ye(Ne,We){var ft=Tr.call(this,Ne,We)||this;ft.src=We.src,ft.width=parseInt(We.width,10)||0,ft.height=parseInt(We.height,10)||0,ft.backgroundColor=ft.styles.backgroundColor;try{if(We.contentWindow&&We.contentWindow.document&&We.contentWindow.document.documentElement){ft.tree=xa(Ne,We.contentWindow.document.documentElement);var Ar=We.contentWindow.document.documentElement?ao(Ne,getComputedStyle(We.contentWindow.document.documentElement).backgroundColor):xo.TRANSPARENT,sn=We.contentWindow.document.body?ao(Ne,getComputedStyle(We.contentWindow.document.body).backgroundColor):xo.TRANSPARENT;ft.backgroundColor=_a(Ar)?_a(sn)?ft.styles.backgroundColor:sn:Ar}}catch(_n){}return ft}return ye}(Os),ka=["OL","UL","MENU"],Ga=function Tr(ye,Ne,We,ft){for(var Ar=Ne.firstChild,sn=void 0;Ar;Ar=sn)if(sn=Ar.nextSibling,ys(Ar)&&Ar.data.trim().length>0)We.textNodes.push(new W(ye,Ar,We.styles));else if(Ts(Ar))if(lr(Ar)&&Ar.assignedNodes)Ar.assignedNodes().forEach(function(Hn){return Tr(ye,Hn,We,ft)});else{var _n=Ba(ye,Ar);_n.styles.isVisible()&&(Go(Ar,_n,ft)?_n.flags|=4:bs(_n.styles)&&(_n.flags|=2),ka.indexOf(Ar.tagName)!==-1&&(_n.flags|=8),We.elements.push(_n),Ar.slot,Ar.shadowRoot?Tr(ye,Ar.shadowRoot,_n,ft):!qt(Ar)&&!fr(Ar)&&!ar(Ar)&&Tr(ye,Ar,_n,ft))}},Ba=function(ye,Ne){return ae(Ne)?new ve(ye,Ne):ln(Ne)?new Ce(ye,Ne):fr(Ne)?new ze(ye,Ne):Hs(Ne)?new st(ye,Ne):Ee(Ne)?new gt(ye,Ne):Ye(Ne)?new xi(ye,Ne):ar(Ne)?new ua(ye,Ne):qt(Ne)?new Gi(ye,Ne):_e(Ne)?new Zi(ye,Ne):new Os(ye,Ne)},xa=function(ye,Ne){var We=Ba(ye,Ne);return We.flags|=4,Ga(ye,Ne,We,We),We},Go=function(ye,Ne,We){return Ne.styles.isPositionedWithZIndex()||Ne.styles.opacity<1||Ne.styles.isTransformed()||Ur(ye)&&We.styles.isTransparent()},bs=function(ye){return ye.isPositioned()||ye.isFloating()},ys=function(ye){return ye.nodeType===Node.TEXT_NODE},Ts=function(ye){return ye.nodeType===Node.ELEMENT_NODE},js=function(ye){return Ts(ye)&&typeof ye.style!="undefined"&&!ws(ye)},ws=function(ye){return typeof ye.className=="object"},Hs=function(ye){return ye.tagName==="LI"},Ee=function(ye){return ye.tagName==="OL"},Ye=function(ye){return ye.tagName==="INPUT"},It=function(ye){return ye.tagName==="HTML"},fr=function(ye){return ye.tagName==="svg"},Ur=function(ye){return ye.tagName==="BODY"},ln=function(ye){return ye.tagName==="CANVAS"},Ue=function(ye){return ye.tagName==="VIDEO"},ae=function(ye){return ye.tagName==="IMG"},_e=function(ye){return ye.tagName==="IFRAME"},$e=function(ye){return ye.tagName==="STYLE"},Et=function(ye){return ye.tagName==="SCRIPT"},qt=function(ye){return ye.tagName==="TEXTAREA"},ar=function(ye){return ye.tagName==="SELECT"},lr=function(ye){return ye.tagName==="SLOT"},Gr=function(ye){return ye.tagName.indexOf("-")>0},pn=function(){function Tr(){this.counters={}}return Tr.prototype.getCounterValue=function(ye){var Ne=this.counters[ye];return Ne&&Ne.length?Ne[Ne.length-1]:1},Tr.prototype.getCounterValues=function(ye){var Ne=this.counters[ye];return Ne||[]},Tr.prototype.pop=function(ye){var Ne=this;ye.forEach(function(We){return Ne.counters[We].pop()})},Tr.prototype.parse=function(ye){var Ne=this,We=ye.counterIncrement,ft=ye.counterReset,Ar=!0;We!==null&&We.forEach(function(_n){var Hn=Ne.counters[_n.counter];Hn&&_n.increment!==0&&(Ar=!1,Hn.length||Hn.push(1),Hn[Math.max(0,Hn.length-1)]+=_n.increment)});var sn=[];return Ar&&ft.forEach(function(_n){var Hn=Ne.counters[_n.counter];sn.push(_n.counter),Hn||(Hn=Ne.counters[_n.counter]=[]),Hn.push(_n.reset)}),sn},Tr}(),zr={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"]},Hr={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"]},un={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"]},bn={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"]},Gn=function(ye,Ne,We,ft,Ar,sn){return ye<Ne||ye>We?ie(ye,Ar,sn.length>0):ft.integers.reduce(function(_n,Hn,ai){for(;ye>=Hn;)ye-=Hn,_n+=ft.values[ai];return _n},"")+sn},Li=function(ye,Ne,We,ft){var Ar="";do We||ye--,Ar=ft(ye)+Ar,ye/=Ne;while(ye*Ne>=Ne);return Ar},Mi=function(ye,Ne,We,ft,Ar){var sn=We-Ne+1;return(ye<0?"-":"")+(Li(Math.abs(ye),sn,ft,function(_n){return t(Math.floor(_n%sn)+Ne)})+Ar)},da=function(ye,Ne,We){We===void 0&&(We=". ");var ft=Ne.length;return Li(Math.abs(ye),ft,!1,function(Ar){return Ne[Math.floor(Ar%ft)]})+We},$i=1<<0,Qa=1<<1,ya=1<<2,fo=1<<3,za=function(ye,Ne,We,ft,Ar,sn){if(ye<-9999||ye>9999)return ie(ye,4,Ar.length>0);var _n=Math.abs(ye),Hn=Ar;if(_n===0)return Ne[0]+Hn;for(var ai=0;_n>0&&ai<=4;ai++){var Yi=_n%10;Yi===0&&sa(sn,$i)&&Hn!==""?Hn=Ne[Yi]+Hn:Yi>1||Yi===1&&ai===0||Yi===1&&ai===1&&sa(sn,Qa)||Yi===1&&ai===1&&sa(sn,ya)&&ye>100||Yi===1&&ai>1&&sa(sn,fo)?Hn=Ne[Yi]+(ai>0?We[ai-1]:"")+Hn:Yi===1&&ai>0&&(Hn=We[ai-1]+Hn),_n=Math.floor(_n/10)}return(ye<0?ft:"")+Hn},Xo="\u5341\u767E\u5343\u842C",ls="\u62FE\u4F70\u4EDF\u842C",N="\u30DE\u30A4\u30CA\u30B9",B="\uB9C8\uC774\uB108\uC2A4",ie=function(ye,Ne,We){var ft=We?". ":"",Ar=We?"\u3001":"",sn=We?", ":"",_n=We?" ":"";switch(Ne){case 0:return"\u2022"+_n;case 1:return"\u25E6"+_n;case 2:return"\u25FE"+_n;case 5:var Hn=Mi(ye,48,57,!0,ft);return Hn.length<4?"0"+Hn:Hn;case 4:return da(ye,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ar);case 6:return Gn(ye,1,3999,zr,3,ft).toLowerCase();case 7:return Gn(ye,1,3999,zr,3,ft);case 8:return Mi(ye,945,969,!1,ft);case 9:return Mi(ye,97,122,!1,ft);case 10:return Mi(ye,65,90,!1,ft);case 11:return Mi(ye,1632,1641,!0,ft);case 12:case 49:return Gn(ye,1,9999,Hr,3,ft);case 35:return Gn(ye,1,9999,Hr,3,ft).toLowerCase();case 13:return Mi(ye,2534,2543,!0,ft);case 14:case 30:return Mi(ye,6112,6121,!0,ft);case 15:return da(ye,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Ar);case 16:return da(ye,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Ar);case 17:case 48:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8CA0",Ar,Qa|ya|fo);case 47:return za(ye,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ls,"\u8CA0",Ar,$i|Qa|ya|fo);case 42:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8D1F",Ar,Qa|ya|fo);case 41:return za(ye,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ls,"\u8D1F",Ar,$i|Qa|ya|fo);case 26:return za(ye,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",N,Ar,0);case 25:return za(ye,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",N,Ar,$i|Qa|ya);case 31:return za(ye,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",B,sn,$i|Qa|ya);case 33:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",B,sn,0);case 32:return za(ye,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",B,sn,$i|Qa|ya);case 18:return Mi(ye,2406,2415,!0,ft);case 20:return Gn(ye,1,19999,bn,3,ft);case 21:return Mi(ye,2790,2799,!0,ft);case 22:return Mi(ye,2662,2671,!0,ft);case 22:return Gn(ye,1,10999,un,3,ft);case 23:return da(ye,"\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 da(ye,"\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 Mi(ye,3302,3311,!0,ft);case 28:return da(ye,"\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",Ar);case 29:return da(ye,"\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",Ar);case 34:return Mi(ye,3792,3801,!0,ft);case 37:return Mi(ye,6160,6169,!0,ft);case 38:return Mi(ye,4160,4169,!0,ft);case 39:return Mi(ye,2918,2927,!0,ft);case 40:return Mi(ye,1776,1785,!0,ft);case 43:return Mi(ye,3046,3055,!0,ft);case 44:return Mi(ye,3174,3183,!0,ft);case 45:return Mi(ye,3664,3673,!0,ft);case 46:return Mi(ye,3872,3881,!0,ft);case 3:default:return Mi(ye,48,57,!0,ft)}},le="data-html2canvas-ignore",ge=function(){function Tr(ye,Ne,We){if(this.context=ye,this.options=We,this.scrolledElements=[],this.referenceElement=Ne,this.counters=new pn,this.quoteDepth=0,!Ne.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Ne.ownerDocument.documentElement,!1)}return Tr.prototype.toIFrame=function(ye,Ne){var We=this,ft=Rt(ye,Ne);if(!ft.contentWindow)return Promise.reject("Unable to find iframe window");var Ar=ye.defaultView.pageXOffset,sn=ye.defaultView.pageYOffset,_n=ft.contentWindow,Hn=_n.document,ai=Ir(ft).then(function(){return m(We,void 0,void 0,function(){var Yi,Ui;return p(this,function(qi){switch(qi.label){case 0:return this.scrolledElements.forEach(la),_n&&(_n.scrollTo(Ne.left,Ne.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(_n.scrollY!==Ne.top||_n.scrollX!==Ne.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(_n.scrollX-Ne.left,_n.scrollY-Ne.top,0,0))),Yi=this.options.onclone,Ui=this.clonedReferenceElement,typeof Ui=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Hn.fonts&&Hn.fonts.ready?[4,Hn.fonts.ready]:[3,2];case 1:qi.sent(),qi.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,xr(Hn)]:[3,4];case 3:qi.sent(),qi.label=4;case 4:return typeof Yi=="function"?[2,Promise.resolve().then(function(){return Yi(Hn,Ui)}).then(function(){return ft})]:[2,ft]}})})});return Hn.open(),Hn.write(Ei(document.doctype)+"<html></html>"),Oi(this.referenceElement.ownerDocument,Ar,sn),Hn.replaceChild(Hn.adoptNode(this.documentElement),Hn.documentElement),Hn.close(),ai},Tr.prototype.createElementClone=function(ye){if(Us(ye,2))debugger;if(ln(ye))return this.createCanvasClone(ye);if(Ue(ye))return this.createVideoClone(ye);if($e(ye))return this.createStyleClone(ye);var Ne=ye.cloneNode(!1);return ae(Ne)&&(ae(ye)&&ye.currentSrc&&ye.currentSrc!==ye.src&&(Ne.src=ye.currentSrc,Ne.srcset=""),Ne.loading==="lazy"&&(Ne.loading="eager")),Gr(Ne)?this.createCustomElementClone(Ne):Ne},Tr.prototype.createCustomElementClone=function(ye){var Ne=document.createElement("html2canvascustomelement");return ni(ye.style,Ne),Ne},Tr.prototype.createStyleClone=function(ye){try{var Ne=ye.sheet;if(Ne&&Ne.cssRules){var We=[].slice.call(Ne.cssRules,0).reduce(function(Ar,sn){return sn&&typeof sn.cssText=="string"?Ar+sn.cssText:Ar},""),ft=ye.cloneNode(!1);return ft.textContent=We,ft}}catch(Ar){if(this.context.logger.error("Unable to access cssRules property",Ar),Ar.name!=="SecurityError")throw Ar}return ye.cloneNode(!1)},Tr.prototype.createCanvasClone=function(ye){var Ne;if(this.options.inlineImages&&ye.ownerDocument){var We=ye.ownerDocument.createElement("img");try{return We.src=ye.toDataURL(),We}catch(ai){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",ye)}}var ft=ye.cloneNode(!1);try{ft.width=ye.width,ft.height=ye.height;var Ar=ye.getContext("2d"),sn=ft.getContext("2d");if(sn)if(!this.options.allowTaint&&Ar)sn.putImageData(Ar.getImageData(0,0,ye.width,ye.height),0,0);else{var _n=(Ne=ye.getContext("webgl2"))!==null&&Ne!==void 0?Ne:ye.getContext("webgl");if(_n){var Hn=_n.getContextAttributes();(Hn==null?void 0:Hn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",ye)}sn.drawImage(ye,0,0)}return ft}catch(ai){this.context.logger.info("Unable to clone canvas as it is tainted",ye)}return ft},Tr.prototype.createVideoClone=function(ye){var Ne=ye.ownerDocument.createElement("canvas");Ne.width=ye.offsetWidth,Ne.height=ye.offsetHeight;var We=Ne.getContext("2d");try{return We&&(We.drawImage(ye,0,0,Ne.width,Ne.height),this.options.allowTaint||We.getImageData(0,0,Ne.width,Ne.height)),Ne}catch(Ar){this.context.logger.info("Unable to clone video as it is tainted",ye)}var ft=ye.ownerDocument.createElement("canvas");return ft.width=ye.offsetWidth,ft.height=ye.offsetHeight,ft},Tr.prototype.appendChildNode=function(ye,Ne,We){(!Ts(Ne)||!Et(Ne)&&!Ne.hasAttribute(le)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Ne)))&&((!this.options.copyStyles||!Ts(Ne)||!$e(Ne))&&ye.appendChild(this.cloneNode(Ne,We)))},Tr.prototype.cloneChildNodes=function(ye,Ne,We){for(var ft=this,Ar=ye.shadowRoot?ye.shadowRoot.firstChild:ye.firstChild;Ar;Ar=Ar.nextSibling)if(Ts(Ar)&&lr(Ar)&&typeof Ar.assignedNodes=="function"){var sn=Ar.assignedNodes();sn.length&&sn.forEach(function(_n){return ft.appendChildNode(Ne,_n,We)})}else this.appendChildNode(Ne,Ar,We)},Tr.prototype.cloneNode=function(ye,Ne){if(ys(ye))return document.createTextNode(ye.data);if(!ye.ownerDocument)return ye.cloneNode(!1);var We=ye.ownerDocument.defaultView;if(We&&Ts(ye)&&(js(ye)||ws(ye))){var ft=this.createElementClone(ye);ft.style.transitionProperty="none";var Ar=We.getComputedStyle(ye),sn=We.getComputedStyle(ye,":before"),_n=We.getComputedStyle(ye,":after");this.referenceElement===ye&&js(ft)&&(this.clonedReferenceElement=ft),Ur(ft)&&ho(ft);var Hn=this.counters.parse(new gs(this.context,Ar)),ai=this.resolvePseudoContent(ye,ft,sn,Ke.BEFORE);Gr(ye)&&(Ne=!0),Ue(ye)||this.cloneChildNodes(ye,ft,Ne),ai&&ft.insertBefore(ai,ft.firstChild);var Yi=this.resolvePseudoContent(ye,ft,_n,Ke.AFTER);return Yi&&ft.appendChild(Yi),this.counters.pop(Hn),(Ar&&(this.options.copyStyles||ws(ye))&&!_e(ye)||Ne)&&ni(Ar,ft),(ye.scrollTop!==0||ye.scrollLeft!==0)&&this.scrolledElements.push([ft,ye.scrollLeft,ye.scrollTop]),(qt(ye)||ar(ye))&&(qt(ft)||ar(ft))&&(ft.value=ye.value),ft}return ye.cloneNode(!1)},Tr.prototype.resolvePseudoContent=function(ye,Ne,We,ft){var Ar=this;if(!We)return;var sn=We.content,_n=Ne.ownerDocument;if(!_n||!sn||sn==="none"||sn==="-moz-alt-content"||We.display==="none")return;this.counters.parse(new gs(this.context,We));var Hn=new rl(this.context,We),ai=_n.createElement("html2canvaspseudoelement");ni(We,ai),Hn.content.forEach(function(Ui){if(Ui.type===0)ai.appendChild(_n.createTextNode(Ui.value));else if(Ui.type===22){var qi=_n.createElement("img");qi.src=Ui.value,qi.style.opacity="1",ai.appendChild(qi)}else if(Ui.type===18){if(Ui.name==="attr"){var Za=Ui.values.filter(Nn);Za.length&&ai.appendChild(_n.createTextNode(ye.getAttribute(Za[0].value)||""))}else if(Ui.name==="counter"){var eo=Ui.values.filter(gi),po=eo[0],us=eo[1];if(po&&Nn(po)){var Yo=Ar.counters.getCounterValue(po.value),Po=us&&Nn(us)?hs.parse(Ar.context,us.value):3;ai.appendChild(_n.createTextNode(ie(Yo,Po,!1)))}}else if(Ui.name==="counters"){var $s=Ui.values.filter(gi),po=$s[0],cl=$s[1],us=$s[2];if(po&&Nn(po)){var zs=Ar.counters.getCounterValues(po.value),Ro=us&&Nn(us)?hs.parse(Ar.context,us.value):3,Al=cl&&cl.type===0?cl.value:"",bl=zs.map(function(Mu){return ie(Mu,Ro,!1)}).join(Al);ai.appendChild(_n.createTextNode(bl))}}}else if(Ui.type===20)switch(Ui.value){case"open-quote":ai.appendChild(_n.createTextNode(Es(Hn.quotes,Ar.quoteDepth++,!0)));break;case"close-quote":ai.appendChild(_n.createTextNode(Es(Hn.quotes,--Ar.quoteDepth,!1)));break;default:ai.appendChild(_n.createTextNode(Ui.value))}}),ai.className=Ma+" "+Na;var Yi=ft===Ke.BEFORE?" "+Ma:" "+Na;return ws(Ne)?Ne.className.baseValue+=Yi:Ne.className+=Yi,ai},Tr.destroy=function(ye){return ye.parentNode?(ye.parentNode.removeChild(ye),!0):!1},Tr}(),Ke;(function(Tr){Tr[Tr.BEFORE=0]="BEFORE",Tr[Tr.AFTER=1]="AFTER"})(Ke||(Ke={}));var Rt=function(ye,Ne){var We=ye.createElement("iframe");return We.className="html2canvas-container",We.style.visibility="hidden",We.style.position="fixed",We.style.left="-10000px",We.style.top="0px",We.style.border="0",We.width=Ne.width.toString(),We.height=Ne.height.toString(),We.scrolling="no",We.setAttribute(le,"true"),ye.body.appendChild(We),We},sr=function(ye){return new Promise(function(Ne){if(ye.complete){Ne();return}if(!ye.src){Ne();return}ye.onload=Ne,ye.onerror=Ne})},xr=function(ye){return Promise.all([].slice.call(ye.images,0).map(sr))},Ir=function(ye){return new Promise(function(Ne,We){var ft=ye.contentWindow;if(!ft)return We("No window assigned for iframe");var Ar=ft.document;ft.onload=ye.onload=function(){ft.onload=ye.onload=null;var sn=setInterval(function(){Ar.body.childNodes.length>0&&Ar.readyState==="complete"&&(clearInterval(sn),Ne(ye))},50)}})},Kn=["all","d","content"],ni=function(ye,Ne){for(var We=ye.length-1;We>=0;We--){var ft=ye.item(We);Kn.indexOf(ft)===-1&&Ne.style.setProperty(ft,ye.getPropertyValue(ft))}return Ne},Ei=function(ye){var Ne="";return ye&&(Ne+="<!DOCTYPE ",ye.name&&(Ne+=ye.name),ye.internalSubset&&(Ne+=ye.internalSubset),ye.publicId&&(Ne+='"'+ye.publicId+'"'),ye.systemId&&(Ne+='"'+ye.systemId+'"'),Ne+=">"),Ne},Oi=function(ye,Ne,We){ye&&ye.defaultView&&(Ne!==ye.defaultView.pageXOffset||We!==ye.defaultView.pageYOffset)&&ye.defaultView.scrollTo(Ne,We)},la=function(ye){var Ne=ye[0],We=ye[1],ft=ye[2];Ne.scrollLeft=We,Ne.scrollTop=ft},Ca=":before",Wa=":after",Ma="___html2canvas___pseudoelement_before",Na="___html2canvas___pseudoelement_after",qa=`{
content: "" !important;
display: none !important;
}`,ho=function(ye){ns(ye,"."+Ma+Ca+qa+`
.`+Na+Wa+qa)},ns=function(ye,Ne){var We=ye.ownerDocument;if(We){var ft=We.createElement("style");ft.textContent=Ne,ye.appendChild(ft)}},Mo=function(){function Tr(){}return Tr.getOrigin=function(ye){var Ne=Tr._link;return Ne?(Ne.href=ye,Ne.href=Ne.href,Ne.protocol+Ne.hostname+Ne.port):"about:blank"},Tr.isSameOrigin=function(ye){return Tr.getOrigin(ye)===Tr._origin},Tr.setContext=function(ye){Tr._link=ye.document.createElement("a"),Tr._origin=Tr.getOrigin(ye.location.href)},Tr._origin="about:blank",Tr}(),xs=function(){function Tr(ye,Ne){this.context=ye,this._options=Ne,this._cache={}}return Tr.prototype.addImage=function(ye){var Ne=Promise.resolve();return this.has(ye)||(Gl(ye)||Pl(ye))&&(this._cache[ye]=this.loadImage(ye)).catch(function(){}),Ne},Tr.prototype.match=function(ye){return this._cache[ye]},Tr.prototype.loadImage=function(ye){return m(this,void 0,void 0,function(){var Ne,We,ft,Ar,sn=this;return p(this,function(_n){switch(_n.label){case 0:return Ne=Mo.isSameOrigin(ye),We=!Vl(ye)&&this._options.useCORS===!0&&hl.SUPPORT_CORS_IMAGES&&!Ne,ft=!Vl(ye)&&!Ne&&!Gl(ye)&&typeof this._options.proxy=="string"&&hl.SUPPORT_CORS_XHR&&!We,!Ne&&this._options.allowTaint===!1&&!Vl(ye)&&!Gl(ye)&&!ft&&!We?[2]:(Ar=ye,ft?[4,this.proxy(Ar)]:[3,2]);case 1:Ar=_n.sent(),_n.label=2;case 2:return this.context.logger.debug("Added image "+ye.substring(0,256)),[4,new Promise(function(Hn,ai){var Yi=new Image;Yi.onload=function(){return Hn(Yi)},Yi.onerror=ai,(Il(Ar)||We)&&(Yi.crossOrigin="anonymous"),Yi.src=Ar,Yi.complete===!0&&setTimeout(function(){return Hn(Yi)},500),sn._options.imageTimeout>0&&setTimeout(function(){return ai("Timed out ("+sn._options.imageTimeout+"ms) loading image")},sn._options.imageTimeout)})];case 3:return[2,_n.sent()]}})})},Tr.prototype.has=function(ye){return typeof this._cache[ye]!="undefined"},Tr.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Tr.prototype.proxy=function(ye){var Ne=this,We=this._options.proxy;if(!We)throw new Error("No proxy defined");var ft=ye.substring(0,256);return new Promise(function(Ar,sn){var _n=hl.SUPPORT_RESPONSE_TYPE?"blob":"text",Hn=new XMLHttpRequest;Hn.onload=function(){if(Hn.status===200)if(_n==="text")Ar(Hn.response);else{var Ui=new FileReader;Ui.addEventListener("load",function(){return Ar(Ui.result)},!1),Ui.addEventListener("error",function(qi){return sn(qi)},!1),Ui.readAsDataURL(Hn.response)}else sn("Failed to proxy resource "+ft+" with status code "+Hn.status)},Hn.onerror=sn;var ai=We.indexOf("?")>-1?"&":"?";if(Hn.open("GET",""+We+ai+"url="+encodeURIComponent(ye)+"&responseType="+_n),_n!=="text"&&Hn instanceof XMLHttpRequest&&(Hn.responseType=_n),Ne._options.imageTimeout){var Yi=Ne._options.imageTimeout;Hn.timeout=Yi,Hn.ontimeout=function(){return sn("Timed out ("+Yi+"ms) proxying "+ft)}}Hn.send()})},Tr}(),Zs=/^data:image\/svg\+xml/i,yl=/^data:image\/.*;base64,/i,ul=/^data:image\/.*/i,Pl=function(ye){return hl.SUPPORT_SVG_DRAWING||!Fl(ye)},Vl=function(ye){return ul.test(ye)},Il=function(ye){return yl.test(ye)},Gl=function(ye){return ye.substr(0,4)==="blob"},Fl=function(ye){return ye.substr(-3).toLowerCase()==="svg"||Zs.test(ye)},Ja=function(){function Tr(ye,Ne){this.type=0,this.x=ye,this.y=Ne}return Tr.prototype.add=function(ye,Ne){return new Tr(this.x+ye,this.y+Ne)},Tr}(),vl=function(ye,Ne,We){return new Ja(ye.x+(Ne.x-ye.x)*We,ye.y+(Ne.y-ye.y)*We)},gl=function(){function Tr(ye,Ne,We,ft){this.type=1,this.start=ye,this.startControl=Ne,this.endControl=We,this.end=ft}return Tr.prototype.subdivide=function(ye,Ne){var We=vl(this.start,this.startControl,ye),ft=vl(this.startControl,this.endControl,ye),Ar=vl(this.endControl,this.end,ye),sn=vl(We,ft,ye),_n=vl(ft,Ar,ye),Hn=vl(sn,_n,ye);return Ne?new Tr(this.start,We,sn,Hn):new Tr(Hn,_n,Ar,this.end)},Tr.prototype.add=function(ye,Ne){return new Tr(this.start.add(ye,Ne),this.startControl.add(ye,Ne),this.endControl.add(ye,Ne),this.end.add(ye,Ne))},Tr.prototype.reverse=function(){return new Tr(this.end,this.endControl,this.startControl,this.start)},Tr}(),El=function(ye){return ye.type===1},Bu=function(){function Tr(ye){var Ne=ye.styles,We=ye.bounds,ft=Ji(Ne.borderTopLeftRadius,We.width,We.height),Ar=ft[0],sn=ft[1],_n=Ji(Ne.borderTopRightRadius,We.width,We.height),Hn=_n[0],ai=_n[1],Yi=Ji(Ne.borderBottomRightRadius,We.width,We.height),Ui=Yi[0],qi=Yi[1],Za=Ji(Ne.borderBottomLeftRadius,We.width,We.height),eo=Za[0],po=Za[1],us=[];us.push((Ar+Hn)/We.width),us.push((eo+Ui)/We.width),us.push((sn+po)/We.height),us.push((ai+qi)/We.height);var Yo=Math.max.apply(Math,us);Yo>1&&(Ar/=Yo,sn/=Yo,Hn/=Yo,ai/=Yo,Ui/=Yo,qi/=Yo,eo/=Yo,po/=Yo);var Po=We.width-Hn,$s=We.height-qi,cl=We.width-Ui,zs=We.height-po,Ro=Ne.borderTopWidth,Al=Ne.borderRightWidth,bl=Ne.borderBottomWidth,Vs=Ne.borderLeftWidth,_u=ca(Ne.paddingTop,ye.bounds.width),Mu=ca(Ne.paddingRight,ye.bounds.width),Ou=ca(Ne.paddingBottom,ye.bounds.width),eu=ca(Ne.paddingLeft,ye.bounds.width);this.topLeftBorderDoubleOuterBox=Ar>0||sn>0?vs(We.left+Vs/3,We.top+Ro/3,Ar-Vs/3,sn-Ro/3,Ks.TOP_LEFT):new Ja(We.left+Vs/3,We.top+Ro/3),this.topRightBorderDoubleOuterBox=Ar>0||sn>0?vs(We.left+Po,We.top+Ro/3,Hn-Al/3,ai-Ro/3,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al/3,We.top+Ro/3),this.bottomRightBorderDoubleOuterBox=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui-Al/3,qi-bl/3,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al/3,We.top+We.height-bl/3),this.bottomLeftBorderDoubleOuterBox=eo>0||po>0?vs(We.left+Vs/3,We.top+zs,eo-Vs/3,po-bl/3,Ks.BOTTOM_LEFT):new Ja(We.left+Vs/3,We.top+We.height-bl/3),this.topLeftBorderDoubleInnerBox=Ar>0||sn>0?vs(We.left+Vs*2/3,We.top+Ro*2/3,Ar-Vs*2/3,sn-Ro*2/3,Ks.TOP_LEFT):new Ja(We.left+Vs*2/3,We.top+Ro*2/3),this.topRightBorderDoubleInnerBox=Ar>0||sn>0?vs(We.left+Po,We.top+Ro*2/3,Hn-Al*2/3,ai-Ro*2/3,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al*2/3,We.top+Ro*2/3),this.bottomRightBorderDoubleInnerBox=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui-Al*2/3,qi-bl*2/3,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al*2/3,We.top+We.height-bl*2/3),this.bottomLeftBorderDoubleInnerBox=eo>0||po>0?vs(We.left+Vs*2/3,We.top+zs,eo-Vs*2/3,po-bl*2/3,Ks.BOTTOM_LEFT):new Ja(We.left+Vs*2/3,We.top+We.height-bl*2/3),this.topLeftBorderStroke=Ar>0||sn>0?vs(We.left+Vs/2,We.top+Ro/2,Ar-Vs/2,sn-Ro/2,Ks.TOP_LEFT):new Ja(We.left+Vs/2,We.top+Ro/2),this.topRightBorderStroke=Ar>0||sn>0?vs(We.left+Po,We.top+Ro/2,Hn-Al/2,ai-Ro/2,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al/2,We.top+Ro/2),this.bottomRightBorderStroke=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui-Al/2,qi-bl/2,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al/2,We.top+We.height-bl/2),this.bottomLeftBorderStroke=eo>0||po>0?vs(We.left+Vs/2,We.top+zs,eo-Vs/2,po-bl/2,Ks.BOTTOM_LEFT):new Ja(We.left+Vs/2,We.top+We.height-bl/2),this.topLeftBorderBox=Ar>0||sn>0?vs(We.left,We.top,Ar,sn,Ks.TOP_LEFT):new Ja(We.left,We.top),this.topRightBorderBox=Hn>0||ai>0?vs(We.left+Po,We.top,Hn,ai,Ks.TOP_RIGHT):new Ja(We.left+We.width,We.top),this.bottomRightBorderBox=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui,qi,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width,We.top+We.height),this.bottomLeftBorderBox=eo>0||po>0?vs(We.left,We.top+zs,eo,po,Ks.BOTTOM_LEFT):new Ja(We.left,We.top+We.height),this.topLeftPaddingBox=Ar>0||sn>0?vs(We.left+Vs,We.top+Ro,Math.max(0,Ar-Vs),Math.max(0,sn-Ro),Ks.TOP_LEFT):new Ja(We.left+Vs,We.top+Ro),this.topRightPaddingBox=Hn>0||ai>0?vs(We.left+Math.min(Po,We.width-Al),We.top+Ro,Po>We.width+Al?0:Math.max(0,Hn-Al),Math.max(0,ai-Ro),Ks.TOP_RIGHT):new Ja(We.left+We.width-Al,We.top+Ro),this.bottomRightPaddingBox=Ui>0||qi>0?vs(We.left+Math.min(cl,We.width-Vs),We.top+Math.min($s,We.height-bl),Math.max(0,Ui-Al),Math.max(0,qi-bl),Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al,We.top+We.height-bl),this.bottomLeftPaddingBox=eo>0||po>0?vs(We.left+Vs,We.top+Math.min(zs,We.height-bl),Math.max(0,eo-Vs),Math.max(0,po-bl),Ks.BOTTOM_LEFT):new Ja(We.left+Vs,We.top+We.height-bl),this.topLeftContentBox=Ar>0||sn>0?vs(We.left+Vs+eu,We.top+Ro+_u,Math.max(0,Ar-(Vs+eu)),Math.max(0,sn-(Ro+_u)),Ks.TOP_LEFT):new Ja(We.left+Vs+eu,We.top+Ro+_u),this.topRightContentBox=Hn>0||ai>0?vs(We.left+Math.min(Po,We.width+Vs+eu),We.top+Ro+_u,Po>We.width+Vs+eu?0:Hn-Vs+eu,ai-(Ro+_u),Ks.TOP_RIGHT):new Ja(We.left+We.width-(Al+Mu),We.top+Ro+_u),this.bottomRightContentBox=Ui>0||qi>0?vs(We.left+Math.min(cl,We.width-(Vs+eu)),We.top+Math.min($s,We.height+Ro+_u),Math.max(0,Ui-(Al+Mu)),qi-(bl+Ou),Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-(Al+Mu),We.top+We.height-(bl+Ou)),this.bottomLeftContentBox=eo>0||po>0?vs(We.left+Vs+eu,We.top+zs,Math.max(0,eo-(Vs+eu)),po-(bl+Ou),Ks.BOTTOM_LEFT):new Ja(We.left+Vs+eu,We.top+We.height-(bl+Ou))}return Tr}(),Ks;(function(Tr){Tr[Tr.TOP_LEFT=0]="TOP_LEFT",Tr[Tr.TOP_RIGHT=1]="TOP_RIGHT",Tr[Tr.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Tr[Tr.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ks||(Ks={}));var vs=function(ye,Ne,We,ft,Ar){var sn=4*((Math.sqrt(2)-1)/3),_n=We*sn,Hn=ft*sn,ai=ye+We,Yi=Ne+ft;switch(Ar){case Ks.TOP_LEFT:return new gl(new Ja(ye,Yi),new Ja(ye,Yi-Hn),new Ja(ai-_n,Ne),new Ja(ai,Ne));case Ks.TOP_RIGHT:return new gl(new Ja(ye,Ne),new Ja(ye+_n,Ne),new Ja(ai,Yi-Hn),new Ja(ai,Yi));case Ks.BOTTOM_RIGHT:return new gl(new Ja(ai,Ne),new Ja(ai,Ne+Hn),new Ja(ye+_n,Yi),new Ja(ye,Yi));case Ks.BOTTOM_LEFT:default:return new gl(new Ja(ai,Yi),new Ja(ai-_n,Yi),new Ja(ye,Ne+Hn),new Ja(ye,Ne))}},lu=function(ye){return[ye.topLeftBorderBox,ye.topRightBorderBox,ye.bottomRightBorderBox,ye.bottomLeftBorderBox]},Kl=function(ye){return[ye.topLeftContentBox,ye.topRightContentBox,ye.bottomRightContentBox,ye.bottomLeftContentBox]},Uu=function(ye){return[ye.topLeftPaddingBox,ye.topRightPaddingBox,ye.bottomRightPaddingBox,ye.bottomLeftPaddingBox]},Eu=function(){function Tr(ye,Ne,We){this.offsetX=ye,this.offsetY=Ne,this.matrix=We,this.type=0,this.target=2|4}return Tr}(),uu=function(){function Tr(ye,Ne){this.path=ye,this.target=Ne,this.type=1}return Tr}(),ku=function(){function Tr(ye){this.opacity=ye,this.type=2,this.target=2|4}return Tr}(),Yl=function(ye){return ye.type===0},Cu=function(ye){return ye.type===1},Vu=function(ye){return ye.type===2},Ju=function(ye,Ne){return ye.length===Ne.length?ye.some(function(We,ft){return We===Ne[ft]}):!1},vc=function(ye,Ne,We,ft,Ar){return ye.map(function(sn,_n){switch(_n){case 0:return sn.add(Ne,We);case 1:return sn.add(Ne+ft,We);case 2:return sn.add(Ne+ft,We+Ar);case 3:return sn.add(Ne,We+Ar)}return sn})},Ac=function(){function Tr(ye){this.element=ye,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Tr}(),tc=function(){function Tr(ye,Ne){if(this.container=ye,this.parent=Ne,this.effects=[],this.curves=new Bu(this.container),this.container.styles.opacity<1&&this.effects.push(new ku(this.container.styles.opacity)),this.container.styles.transform!==null){var We=this.container.bounds.left+this.container.styles.transformOrigin[0].number,ft=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ar=this.container.styles.transform;this.effects.push(new Eu(We,ft,Ar))}if(this.container.styles.overflowX!==0){var sn=lu(this.curves),_n=Uu(this.curves);Ju(sn,_n)?this.effects.push(new uu(sn,2|4)):(this.effects.push(new uu(sn,2)),this.effects.push(new uu(_n,4)))}}return Tr.prototype.getEffects=function(ye){for(var Ne=[2,3].indexOf(this.container.styles.position)===-1,We=this.parent,ft=this.effects.slice(0);We;){var Ar=We.effects.filter(function(Hn){return!Cu(Hn)});if(Ne||We.container.styles.position!==0||!We.parent){if(ft.unshift.apply(ft,Ar),Ne=[2,3].indexOf(We.container.styles.position)===-1,We.container.styles.overflowX!==0){var sn=lu(We.curves),_n=Uu(We.curves);Ju(sn,_n)||ft.unshift(new uu(_n,2|4))}}else ft.unshift.apply(ft,Ar);We=We.parent}return ft.filter(function(Hn){return sa(Hn.target,ye)})},Tr}(),yc=function Tr(ye,Ne,We,ft){ye.container.elements.forEach(function(Ar){var sn=sa(Ar.flags,4),_n=sa(Ar.flags,2),Hn=new tc(Ar,ye);sa(Ar.styles.display,2048)&&ft.push(Hn);var ai=sa(Ar.flags,8)?[]:ft;if(sn||_n){var Yi=sn||Ar.styles.isPositioned()?We:Ne,Ui=new Ac(Hn);if(Ar.styles.isPositioned()||Ar.styles.opacity<1||Ar.styles.isTransformed()){var qi=Ar.styles.zIndex.order;if(qi<0){var Za=0;Yi.negativeZIndex.some(function(po,us){return qi>po.element.container.styles.zIndex.order?(Za=us,!1):Za>0}),Yi.negativeZIndex.splice(Za,0,Ui)}else if(qi>0){var eo=0;Yi.positiveZIndex.some(function(po,us){return qi>=po.element.container.styles.zIndex.order?(eo=us+1,!1):eo>0}),Yi.positiveZIndex.splice(eo,0,Ui)}else Yi.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ui)}else Ar.styles.isFloating()?Yi.nonPositionedFloats.push(Ui):Yi.nonPositionedInlineLevel.push(Ui);Tr(Hn,Ui,sn?Ui:We,ai)}else Ar.styles.isInlineLevel()?Ne.inlineLevel.push(Hn):Ne.nonInlineLevel.push(Hn),Tr(Hn,Ne,We,ai);sa(Ar.flags,8)&&sc(Ar,ai)})},sc=function(ye,Ne){for(var We=ye instanceof gt?ye.start:1,ft=ye instanceof gt?ye.reversed:!1,Ar=0;Ar<Ne.length;Ar++){var sn=Ne[Ar];sn.container instanceof st&&typeof sn.container.value=="number"&&sn.container.value!==0&&(We=sn.container.value),sn.listValue=ie(We,sn.container.styles.listStyleType,!0),We+=ft?-1:1}},ju=function(ye){var Ne=new tc(ye,null),We=new Ac(Ne),ft=[];return yc(Ne,We,We,ft),sc(Ne.container,ft),We},hc=function(ye,Ne){switch(Ne){case 0:return Tu(ye.topLeftBorderBox,ye.topLeftPaddingBox,ye.topRightBorderBox,ye.topRightPaddingBox);case 1:return Tu(ye.topRightBorderBox,ye.topRightPaddingBox,ye.bottomRightBorderBox,ye.bottomRightPaddingBox);case 2:return Tu(ye.bottomRightBorderBox,ye.bottomRightPaddingBox,ye.bottomLeftBorderBox,ye.bottomLeftPaddingBox);case 3:default:return Tu(ye.bottomLeftBorderBox,ye.bottomLeftPaddingBox,ye.topLeftBorderBox,ye.topLeftPaddingBox)}},bc=function(ye,Ne){switch(Ne){case 0:return Tu(ye.topLeftBorderBox,ye.topLeftBorderDoubleOuterBox,ye.topRightBorderBox,ye.topRightBorderDoubleOuterBox);case 1:return Tu(ye.topRightBorderBox,ye.topRightBorderDoubleOuterBox,ye.bottomRightBorderBox,ye.bottomRightBorderDoubleOuterBox);case 2:return Tu(ye.bottomRightBorderBox,ye.bottomRightBorderDoubleOuterBox,ye.bottomLeftBorderBox,ye.bottomLeftBorderDoubleOuterBox);case 3:default:return Tu(ye.bottomLeftBorderBox,ye.bottomLeftBorderDoubleOuterBox,ye.topLeftBorderBox,ye.topLeftBorderDoubleOuterBox)}},Cc=function(ye,Ne){switch(Ne){case 0:return Tu(ye.topLeftBorderDoubleInnerBox,ye.topLeftPaddingBox,ye.topRightBorderDoubleInnerBox,ye.topRightPaddingBox);case 1:return Tu(ye.topRightBorderDoubleInnerBox,ye.topRightPaddingBox,ye.bottomRightBorderDoubleInnerBox,ye.bottomRightPaddingBox);case 2:return Tu(ye.bottomRightBorderDoubleInnerBox,ye.bottomRightPaddingBox,ye.bottomLeftBorderDoubleInnerBox,ye.bottomLeftPaddingBox);case 3:default:return Tu(ye.bottomLeftBorderDoubleInnerBox,ye.bottomLeftPaddingBox,ye.topLeftBorderDoubleInnerBox,ye.topLeftPaddingBox)}},wc=function(ye,Ne){switch(Ne){case 0:return Pu(ye.topLeftBorderStroke,ye.topRightBorderStroke);case 1:return Pu(ye.topRightBorderStroke,ye.bottomRightBorderStroke);case 2:return Pu(ye.bottomRightBorderStroke,ye.bottomLeftBorderStroke);case 3:default:return Pu(ye.bottomLeftBorderStroke,ye.topLeftBorderStroke)}},Pu=function(ye,Ne){var We=[];return El(ye)?We.push(ye.subdivide(.5,!1)):We.push(ye),El(Ne)?We.push(Ne.subdivide(.5,!0)):We.push(Ne),We},Tu=function(ye,Ne,We,ft){var Ar=[];return El(ye)?Ar.push(ye.subdivide(.5,!1)):Ar.push(ye),El(We)?Ar.push(We.subdivide(.5,!0)):Ar.push(We),El(ft)?Ar.push(ft.subdivide(.5,!0).reverse()):Ar.push(ft),El(Ne)?Ar.push(Ne.subdivide(.5,!1).reverse()):Ar.push(Ne),Ar},fc=function(ye){var Ne=ye.bounds,We=ye.styles;return Ne.add(We.borderLeftWidth,We.borderTopWidth,-(We.borderRightWidth+We.borderLeftWidth),-(We.borderTopWidth+We.borderBottomWidth))},lc=function(ye){var Ne=ye.styles,We=ye.bounds,ft=ca(Ne.paddingLeft,We.width),Ar=ca(Ne.paddingRight,We.width),sn=ca(Ne.paddingTop,We.width),_n=ca(Ne.paddingBottom,We.width);return We.add(ft+Ne.borderLeftWidth,sn+Ne.borderTopWidth,-(Ne.borderRightWidth+Ne.borderLeftWidth+ft+Ar),-(Ne.borderTopWidth+Ne.borderBottomWidth+sn+_n))},xc=function(ye,Ne){return ye===0?Ne.bounds:ye===2?lc(Ne):fc(Ne)},Tc=function(ye,Ne){return ye===0?Ne.bounds:ye===2?lc(Ne):fc(Ne)},Gu=function(ye,Ne,We){var ft=xc(wu(ye.styles.backgroundOrigin,Ne),ye),Ar=Tc(wu(ye.styles.backgroundClip,Ne),ye),sn=Fu(wu(ye.styles.backgroundSize,Ne),We,ft),_n=sn[0],Hn=sn[1],ai=Ji(wu(ye.styles.backgroundPosition,Ne),ft.width-_n,ft.height-Hn),Yi=Ku(wu(ye.styles.backgroundRepeat,Ne),ai,sn,ft,Ar),Ui=Math.round(ft.left+ai[0]),qi=Math.round(ft.top+ai[1]);return[Yi,Ui,qi,_n,Hn]},Hu=function(ye){return Nn(ye)&&ye.value===Ni.AUTO},Xu=function(ye){return typeof ye=="number"},Fu=function(ye,Ne,We){var ft=Ne[0],Ar=Ne[1],sn=Ne[2],_n=ye[0],Hn=ye[1];if(!_n)return[0,0];if(Vi(_n)&&Hn&&Vi(Hn))return[ca(_n,We.width),ca(Hn,We.height)];var ai=Xu(sn);if(Nn(_n)&&(_n.value===Ni.CONTAIN||_n.value===Ni.COVER)){if(Xu(sn)){var Yi=We.width/We.height;return Yi<sn!==(_n.value===Ni.COVER)?[We.width,We.width/sn]:[We.height*sn,We.height]}return[We.width,We.height]}var Ui=Xu(ft),qi=Xu(Ar),Za=Ui||qi;if(Hu(_n)&&(!Hn||Hu(Hn))){if(Ui&&qi)return[ft,Ar];if(!ai&&!Za)return[We.width,We.height];if(Za&&ai){var eo=Ui?ft:Ar*sn,po=qi?Ar:ft/sn;return[eo,po]}var us=Ui?ft:We.width,Yo=qi?Ar:We.height;return[us,Yo]}if(ai){var Po=0,$s=0;return Vi(_n)?Po=ca(_n,We.width):Vi(Hn)&&($s=ca(Hn,We.height)),Hu(_n)?Po=$s*sn:(!Hn||Hu(Hn))&&($s=Po/sn),[Po,$s]}var cl=null,zs=null;if(Vi(_n)?cl=ca(_n,We.width):Hn&&Vi(Hn)&&(zs=ca(Hn,We.height)),cl!==null&&(!Hn||Hu(Hn))&&(zs=Ui&&qi?cl/ft*Ar:We.height),zs!==null&&Hu(_n)&&(cl=Ui&&qi?zs/Ar*ft:We.width),cl!==null&&zs!==null)return[cl,zs];throw new Error("Unable to calculate background-size for element")},wu=function(ye,Ne){var We=ye[Ne];return typeof We=="undefined"?ye[0]:We},Ku=function(ye,Ne,We,ft,Ar){var sn=Ne[0],_n=Ne[1],Hn=We[0],ai=We[1];switch(ye){case 2:return[new Ja(Math.round(ft.left),Math.round(ft.top+_n)),new Ja(Math.round(ft.left+ft.width),Math.round(ft.top+_n)),new Ja(Math.round(ft.left+ft.width),Math.round(ai+ft.top+_n)),new Ja(Math.round(ft.left),Math.round(ai+ft.top+_n))];case 3:return[new Ja(Math.round(ft.left+sn),Math.round(ft.top)),new Ja(Math.round(ft.left+sn+Hn),Math.round(ft.top)),new Ja(Math.round(ft.left+sn+Hn),Math.round(ft.height+ft.top)),new Ja(Math.round(ft.left+sn),Math.round(ft.height+ft.top))];case 1:return[new Ja(Math.round(ft.left+sn),Math.round(ft.top+_n)),new Ja(Math.round(ft.left+sn+Hn),Math.round(ft.top+_n)),new Ja(Math.round(ft.left+sn+Hn),Math.round(ft.top+_n+ai)),new Ja(Math.round(ft.left+sn),Math.round(ft.top+_n+ai))];default:return[new Ja(Math.round(Ar.left),Math.round(Ar.top)),new Ja(Math.round(Ar.left+Ar.width),Math.round(Ar.top)),new Ja(Math.round(Ar.left+Ar.width),Math.round(Ar.height+Ar.top)),new Ja(Math.round(Ar.left),Math.round(Ar.height+Ar.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",Sc=function(){function Tr(ye){this._data={},this._document=ye}return Tr.prototype.parseMetrics=function(ye,Ne){var We=this._document.createElement("div"),ft=this._document.createElement("img"),Ar=this._document.createElement("span"),sn=this._document.body;We.style.visibility="hidden",We.style.fontFamily=ye,We.style.fontSize=Ne,We.style.margin="0",We.style.padding="0",We.style.whiteSpace="nowrap",sn.appendChild(We),ft.src=uc,ft.width=1,ft.height=1,ft.style.margin="0",ft.style.padding="0",ft.style.verticalAlign="baseline",Ar.style.fontFamily=ye,Ar.style.fontSize=Ne,Ar.style.margin="0",Ar.style.padding="0",Ar.appendChild(this._document.createTextNode(cc)),We.appendChild(Ar),We.appendChild(ft);var _n=ft.offsetTop-Ar.offsetTop+2;We.removeChild(Ar),We.appendChild(this._document.createTextNode(cc)),We.style.lineHeight="normal",ft.style.verticalAlign="super";var Hn=ft.offsetTop-We.offsetTop+2;return sn.removeChild(We),{baseline:_n,middle:Hn}},Tr.prototype.getMetrics=function(ye,Ne){var We=ye+" "+Ne;return typeof this._data[We]=="undefined"&&(this._data[We]=this.parseMetrics(ye,Ne)),this._data[We]},Tr}(),Ec=function(){function Tr(ye,Ne){this.context=ye,this.options=Ne}return Tr}(),pc=1e4,mc=function(Tr){g(ye,Tr);function ye(Ne,We){var ft=Tr.call(this,Ne,We)||this;return ft._activeEffects=[],ft.canvas=We.canvas?We.canvas:document.createElement("canvas"),ft.ctx=ft.canvas.getContext("2d"),We.canvas||(ft.canvas.width=Math.floor(We.width*We.scale),ft.canvas.height=Math.floor(We.height*We.scale),ft.canvas.style.width=We.width+"px",ft.canvas.style.height=We.height+"px"),ft.fontMetrics=new Sc(document),ft.ctx.scale(ft.options.scale,ft.options.scale),ft.ctx.translate(-We.x,-We.y),ft.ctx.textBaseline="bottom",ft._activeEffects=[],ft.context.logger.debug("Canvas renderer initialized ("+We.width+"x"+We.height+") with scale "+We.scale),ft}return ye.prototype.applyEffects=function(Ne){for(var We=this;this._activeEffects.length;)this.popEffect();Ne.forEach(function(ft){return We.applyEffect(ft)})},ye.prototype.applyEffect=function(Ne){this.ctx.save(),Vu(Ne)&&(this.ctx.globalAlpha=Ne.opacity),Yl(Ne)&&(this.ctx.translate(Ne.offsetX,Ne.offsetY),this.ctx.transform(Ne.matrix[0],Ne.matrix[1],Ne.matrix[2],Ne.matrix[3],Ne.matrix[4],Ne.matrix[5]),this.ctx.translate(-Ne.offsetX,-Ne.offsetY)),Cu(Ne)&&(this.path(Ne.path),this.ctx.clip()),this._activeEffects.push(Ne)},ye.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},ye.prototype.renderStack=function(Ne){return m(this,void 0,void 0,function(){var We;return p(this,function(ft){switch(ft.label){case 0:return We=Ne.element.container.styles,We.isVisible()?[4,this.renderStackContent(Ne)]:[3,2];case 1:ft.sent(),ft.label=2;case 2:return[2]}})})},ye.prototype.renderNode=function(Ne){return m(this,void 0,void 0,function(){return p(this,function(We){switch(We.label){case 0:if(sa(Ne.container.flags,16))debugger;return Ne.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Ne)]:[3,3];case 1:return We.sent(),[4,this.renderNodeContent(Ne)];case 2:We.sent(),We.label=3;case 3:return[2]}})})},ye.prototype.renderTextWithLetterSpacing=function(Ne,We,ft){var Ar=this;if(We===0)this.ctx.fillText(Ne.text,Ne.bounds.left,Ne.bounds.top+ft);else{var sn=fu(Ne.text);sn.reduce(function(_n,Hn){return Ar.ctx.fillText(Hn,_n,Ne.bounds.top+ft),_n+Ar.ctx.measureText(Hn).width},Ne.bounds.left)}},ye.prototype.createFontStyle=function(Ne){var We=Ne.fontVariant.filter(function(sn){return sn==="normal"||sn==="small-caps"}).join(""),ft=Nc(Ne.fontFamily).join(", "),Ar=an(Ne.fontSize)?""+Ne.fontSize.number+Ne.fontSize.unit:Ne.fontSize.number+"px";return[[Ne.fontStyle,We,Ne.fontWeight,Ar,ft].join(" "),ft,Ar]},ye.prototype.renderTextNode=function(Ne,We){return m(this,void 0,void 0,function(){var ft,Ar,sn,_n,Hn,ai,Yi,Ui,qi=this;return p(this,function(Za){return ft=this.createFontStyle(We),Ar=ft[0],sn=ft[1],_n=ft[2],this.ctx.font=Ar,this.ctx.direction=We.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Hn=this.fontMetrics.getMetrics(sn,_n),ai=Hn.baseline,Yi=Hn.middle,Ui=We.paintOrder,Ne.textBounds.forEach(function(eo){Ui.forEach(function(po){switch(po){case 0:qi.ctx.fillStyle=Va(We.color),qi.renderTextWithLetterSpacing(eo,We.letterSpacing,ai);var us=We.textShadow;us.length&&eo.text.trim().length&&(us.slice(0).reverse().forEach(function(Yo){qi.ctx.shadowColor=Va(Yo.color),qi.ctx.shadowOffsetX=Yo.offsetX.number*qi.options.scale,qi.ctx.shadowOffsetY=Yo.offsetY.number*qi.options.scale,qi.ctx.shadowBlur=Yo.blur.number,qi.renderTextWithLetterSpacing(eo,We.letterSpacing,ai)}),qi.ctx.shadowColor="",qi.ctx.shadowOffsetX=0,qi.ctx.shadowOffsetY=0,qi.ctx.shadowBlur=0),We.textDecorationLine.length&&(qi.ctx.fillStyle=Va(We.textDecorationColor||We.color),We.textDecorationLine.forEach(function(Yo){switch(Yo){case 1:qi.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top+ai),eo.bounds.width,1);break;case 2:qi.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top),eo.bounds.width,1);break;case 3:qi.ctx.fillRect(eo.bounds.left,Math.ceil(eo.bounds.top+Yi),eo.bounds.width,1);break}}));break;case 1:We.webkitTextStrokeWidth&&eo.text.trim().length&&(qi.ctx.strokeStyle=Va(We.webkitTextStrokeColor),qi.ctx.lineWidth=We.webkitTextStrokeWidth,qi.ctx.lineJoin=window.chrome?"miter":"round",qi.ctx.strokeText(eo.text,eo.bounds.left,eo.bounds.top+ai)),qi.ctx.strokeStyle="",qi.ctx.lineWidth=0,qi.ctx.lineJoin="miter";break}})}),[2]})})},ye.prototype.renderReplacedElement=function(Ne,We,ft){if(ft&&Ne.intrinsicWidth>0&&Ne.intrinsicHeight>0){var Ar=lc(Ne),sn=Uu(We);this.path(sn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(ft,0,0,Ne.intrinsicWidth,Ne.intrinsicHeight,Ar.left,Ar.top,Ar.width,Ar.height),this.ctx.restore()}},ye.prototype.renderNodeContent=function(Ne){return m(this,void 0,void 0,function(){var We,ft,Ar,sn,_n,Hn,ai,ai,Yi,Ui,qi,Za,eo,po,us,Yo,Po,$s,cl,ai,zs,eo,Yo;return p(this,function(Ro){switch(Ro.label){case 0:this.applyEffects(Ne.getEffects(4)),We=Ne.container,ft=Ne.curves,Ar=We.styles,sn=0,_n=We.textNodes,Ro.label=1;case 1:return sn<_n.length?(Hn=_n[sn],[4,this.renderTextNode(Hn,Ar)]):[3,4];case 2:Ro.sent(),Ro.label=3;case 3:return sn++,[3,1];case 4:if(!(We instanceof ve))return[3,8];Ro.label=5;case 5:return Ro.trys.push([5,7,,8]),[4,this.context.cache.match(We.src)];case 6:return ai=Ro.sent(),this.renderReplacedElement(We,ft,ai),[3,8];case 7:return Ro.sent(),this.context.logger.error("Error loading image "+We.src),[3,8];case 8:if(We instanceof Ce&&this.renderReplacedElement(We,ft,We.canvas),!(We instanceof ze))return[3,12];Ro.label=9;case 9:return Ro.trys.push([9,11,,12]),[4,this.context.cache.match(We.svg)];case 10:return ai=Ro.sent(),this.renderReplacedElement(We,ft,ai),[3,12];case 11:return Ro.sent(),this.context.logger.error("Error loading svg "+We.svg.substring(0,255)),[3,12];case 12:return We instanceof Zi&&We.tree?(Yi=new ye(this.context,{scale:this.options.scale,backgroundColor:We.backgroundColor,x:0,y:0,width:We.width,height:We.height}),[4,Yi.render(We.tree)]):[3,14];case 13:Ui=Ro.sent(),We.width&&We.height&&this.ctx.drawImage(Ui,0,0,We.width,We.height,We.bounds.left,We.bounds.top,We.bounds.width,We.bounds.height),Ro.label=14;case 14:if(We instanceof xi&&(qi=Math.min(We.bounds.width,We.bounds.height),We.type===$r?We.checked&&(this.ctx.save(),this.path([new Ja(We.bounds.left+qi*.39363,We.bounds.top+qi*.79),new Ja(We.bounds.left+qi*.16,We.bounds.top+qi*.5549),new Ja(We.bounds.left+qi*.27347,We.bounds.top+qi*.44071),new Ja(We.bounds.left+qi*.39694,We.bounds.top+qi*.5649),new Ja(We.bounds.left+qi*.72983,We.bounds.top+qi*.23),new Ja(We.bounds.left+qi*.84,We.bounds.top+qi*.34085),new Ja(We.bounds.left+qi*.39363,We.bounds.top+qi*.79)]),this.ctx.fillStyle=Va(Zn),this.ctx.fill(),this.ctx.restore()):We.type===Ln&&(We.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(We.bounds.left+qi/2,We.bounds.top+qi/2,qi/4,0,Math.PI*2,!0),this.ctx.fillStyle=Va(Zn),this.ctx.fill(),this.ctx.restore()))),_c(We)&&We.value.length){Za=this.createFontStyle(Ar),eo=Za[0],po=Za[1],us=this.fontMetrics.getMetrics(eo,po).baseline,this.ctx.font=eo,this.ctx.fillStyle=Va(Ar.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(We.styles.textAlign),Yo=lc(We),Po=0;switch(We.styles.textAlign){case 1:Po+=Yo.width/2;break;case 2:Po+=Yo.width;break}$s=Yo.add(Po,0,0,-Yo.height/2+1),this.ctx.save(),this.path([new Ja(Yo.left,Yo.top),new Ja(Yo.left+Yo.width,Yo.top),new Ja(Yo.left+Yo.width,Yo.top+Yo.height),new Ja(Yo.left,Yo.top+Yo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Dl(We.value,$s),Ar.letterSpacing,us),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!sa(We.styles.display,2048))return[3,20];if(!(We.styles.listStyleImage!==null))return[3,19];if(cl=We.styles.listStyleImage,!(cl.type===0))return[3,18];ai=void 0,zs=cl.url,Ro.label=15;case 15:return Ro.trys.push([15,17,,18]),[4,this.context.cache.match(zs)];case 16:return ai=Ro.sent(),this.ctx.drawImage(ai,We.bounds.left-(ai.width+10),We.bounds.top),[3,18];case 17:return Ro.sent(),this.context.logger.error("Error loading list-style-image "+zs),[3,18];case 18:return[3,20];case 19:Ne.listValue&&We.styles.listStyleType!==-1&&(eo=this.createFontStyle(Ar)[0],this.ctx.font=eo,this.ctx.fillStyle=Va(Ar.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Yo=new d(We.bounds.left,We.bounds.top+ca(We.styles.paddingTop,We.bounds.width),We.bounds.width,zo(Ar.lineHeight,Ar.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Dl(Ne.listValue,Yo),Ar.letterSpacing,zo(Ar.lineHeight,Ar.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ro.label=20;case 20:return[2]}})})},ye.prototype.renderStackContent=function(Ne){return m(this,void 0,void 0,function(){var We,ft,Ar,sn,_n,Ar,Hn,ai,Ar,Yi,Ui,Ar,qi,Za,Ar,eo,po,Ar,us,Yo,Ar;return p(this,function(Po){switch(Po.label){case 0:if(sa(Ne.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Ne.element)];case 1:Po.sent(),We=0,ft=Ne.negativeZIndex,Po.label=2;case 2:return We<ft.length?(Ar=ft[We],[4,this.renderStack(Ar)]):[3,5];case 3:Po.sent(),Po.label=4;case 4:return We++,[3,2];case 5:return[4,this.renderNodeContent(Ne.element)];case 6:Po.sent(),sn=0,_n=Ne.nonInlineLevel,Po.label=7;case 7:return sn<_n.length?(Ar=_n[sn],[4,this.renderNode(Ar)]):[3,10];case 8:Po.sent(),Po.label=9;case 9:return sn++,[3,7];case 10:Hn=0,ai=Ne.nonPositionedFloats,Po.label=11;case 11:return Hn<ai.length?(Ar=ai[Hn],[4,this.renderStack(Ar)]):[3,14];case 12:Po.sent(),Po.label=13;case 13:return Hn++,[3,11];case 14:Yi=0,Ui=Ne.nonPositionedInlineLevel,Po.label=15;case 15:return Yi<Ui.length?(Ar=Ui[Yi],[4,this.renderStack(Ar)]):[3,18];case 16:Po.sent(),Po.label=17;case 17:return Yi++,[3,15];case 18:qi=0,Za=Ne.inlineLevel,Po.label=19;case 19:return qi<Za.length?(Ar=Za[qi],[4,this.renderNode(Ar)]):[3,22];case 20:Po.sent(),Po.label=21;case 21:return qi++,[3,19];case 22:eo=0,po=Ne.zeroOrAutoZIndexOrTransformedOrOpacity,Po.label=23;case 23:return eo<po.length?(Ar=po[eo],[4,this.renderStack(Ar)]):[3,26];case 24:Po.sent(),Po.label=25;case 25:return eo++,[3,23];case 26:us=0,Yo=Ne.positiveZIndex,Po.label=27;case 27:return us<Yo.length?(Ar=Yo[us],[4,this.renderStack(Ar)]):[3,30];case 28:Po.sent(),Po.label=29;case 29:return us++,[3,27];case 30:return[2]}})})},ye.prototype.mask=function(Ne){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(Ne.slice(0).reverse()),this.ctx.closePath()},ye.prototype.path=function(Ne){this.ctx.beginPath(),this.formatPath(Ne),this.ctx.closePath()},ye.prototype.formatPath=function(Ne){var We=this;Ne.forEach(function(ft,Ar){var sn=El(ft)?ft.start:ft;Ar===0?We.ctx.moveTo(sn.x,sn.y):We.ctx.lineTo(sn.x,sn.y),El(ft)&&We.ctx.bezierCurveTo(ft.startControl.x,ft.startControl.y,ft.endControl.x,ft.endControl.y,ft.end.x,ft.end.y)})},ye.prototype.renderRepeat=function(Ne,We,ft,Ar){this.path(Ne),this.ctx.fillStyle=We,this.ctx.translate(ft,Ar),this.ctx.fill(),this.ctx.translate(-ft,-Ar)},ye.prototype.resizeImage=function(Ne,We,ft){var Ar;if(Ne.width===We&&Ne.height===ft)return Ne;var sn=(Ar=this.canvas.ownerDocument)!==null&&Ar!==void 0?Ar:document,_n=sn.createElement("canvas");_n.width=Math.max(1,We),_n.height=Math.max(1,ft);var Hn=_n.getContext("2d");return Hn.drawImage(Ne,0,0,Ne.width,Ne.height,0,0,We,ft),_n},ye.prototype.renderBackgroundImage=function(Ne){return m(this,void 0,void 0,function(){var We,ft,Ar,sn,_n,Hn;return p(this,function(ai){switch(ai.label){case 0:We=Ne.styles.backgroundImage.length-1,ft=function(Ui){var qi,Za,eo,po,us,Yo,Po,$s,cl,zs,po,us,Yo,Po,$s,Ro,Al,bl,Vs,_u,Mu,Ou,eu,rc,cl,Wu,po,Zu,$u,Po,$s,qu,us,Yo,nc,zu,ec,ic,ac,Yu,oc,Qu;return p(this,function(dc){switch(dc.label){case 0:if(!(Ui.type===0))return[3,5];qi=void 0,Za=Ui.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,Ar.context.cache.match(Za)];case 2:return qi=dc.sent(),[3,4];case 3:return dc.sent(),Ar.context.logger.error("Error loading background-image "+Za),[3,4];case 4:return qi&&(eo=Gu(Ne,We,[qi.width,qi.height,qi.width/qi.height]),po=eo[0],us=eo[1],Yo=eo[2],Po=eo[3],$s=eo[4],cl=Ar.ctx.createPattern(Ar.resizeImage(qi,Po,$s),"repeat"),Ar.renderRepeat(po,cl,us,Yo)),[3,6];case 5:Yr(Ui)?(zs=Gu(Ne,We,[null,null,null]),po=zs[0],us=zs[1],Yo=zs[2],Po=zs[3],$s=zs[4],Ro=ts(Ui.angle,Po,$s),Al=Ro[0],bl=Ro[1],Vs=Ro[2],_u=Ro[3],Mu=Ro[4],Ou=document.createElement("canvas"),Ou.width=Po,Ou.height=$s,eu=Ou.getContext("2d"),rc=eu.createLinearGradient(bl,_u,Vs,Mu),Uo(Ui.stops,Al).forEach(function(gc){return rc.addColorStop(gc.stop,Va(gc.color))}),eu.fillStyle=rc,eu.fillRect(0,0,Po,$s),Po>0&&$s>0&&(cl=Ar.ctx.createPattern(Ou,"repeat"),Ar.renderRepeat(po,cl,us,Yo))):ii(Ui)&&(Wu=Gu(Ne,We,[null,null,null]),po=Wu[0],Zu=Wu[1],$u=Wu[2],Po=Wu[3],$s=Wu[4],qu=Ui.position.length===0?[zi]:Ui.position,us=ca(qu[0],Po),Yo=ca(qu[qu.length-1],$s),nc=Io(Ui,us,Yo,Po,$s),zu=nc[0],ec=nc[1],zu>0&&ec>0&&(ic=Ar.ctx.createRadialGradient(Zu+us,$u+Yo,0,Zu+us,$u+Yo,zu),Uo(Ui.stops,zu*2).forEach(function(gc){return ic.addColorStop(gc.stop,Va(gc.color))}),Ar.path(po),Ar.ctx.fillStyle=ic,zu!==ec?(ac=Ne.bounds.left+.5*Ne.bounds.width,Yu=Ne.bounds.top+.5*Ne.bounds.height,oc=ec/zu,Qu=1/oc,Ar.ctx.save(),Ar.ctx.translate(ac,Yu),Ar.ctx.transform(1,0,0,oc,0,0),Ar.ctx.translate(-ac,-Yu),Ar.ctx.fillRect(Zu,Qu*($u-Yu)+Yu,Po,$s*Qu),Ar.ctx.restore()):Ar.ctx.fill())),dc.label=6;case 6:return We--,[2]}})},Ar=this,sn=0,_n=Ne.styles.backgroundImage.slice(0).reverse(),ai.label=1;case 1:return sn<_n.length?(Hn=_n[sn],[5,ft(Hn)]):[3,4];case 2:ai.sent(),ai.label=3;case 3:return sn++,[3,1];case 4:return[2]}})})},ye.prototype.renderSolidBorder=function(Ne,We,ft){return m(this,void 0,void 0,function(){return p(this,function(Ar){return this.path(hc(ft,We)),this.ctx.fillStyle=Va(Ne),this.ctx.fill(),[2]})})},ye.prototype.renderDoubleBorder=function(Ne,We,ft,Ar){return m(this,void 0,void 0,function(){var sn,_n;return p(this,function(Hn){switch(Hn.label){case 0:return We<3?[4,this.renderSolidBorder(Ne,ft,Ar)]:[3,2];case 1:return Hn.sent(),[2];case 2:return sn=bc(Ar,ft),this.path(sn),this.ctx.fillStyle=Va(Ne),this.ctx.fill(),_n=Cc(Ar,ft),this.path(_n),this.ctx.fill(),[2]}})})},ye.prototype.renderNodeBackgroundAndBorders=function(Ne){return m(this,void 0,void 0,function(){var We,ft,Ar,sn,_n,Hn,ai,Yi,Ui=this;return p(this,function(qi){switch(qi.label){case 0:return this.applyEffects(Ne.getEffects(2)),We=Ne.container.styles,ft=!_a(We.backgroundColor)||We.backgroundImage.length,Ar=[{style:We.borderTopStyle,color:We.borderTopColor,width:We.borderTopWidth},{style:We.borderRightStyle,color:We.borderRightColor,width:We.borderRightWidth},{style:We.borderBottomStyle,color:We.borderBottomColor,width:We.borderBottomWidth},{style:We.borderLeftStyle,color:We.borderLeftColor,width:We.borderLeftWidth}],sn=Oc(wu(We.backgroundClip,0),Ne.curves),ft||We.boxShadow.length?(this.ctx.save(),this.path(sn),this.ctx.clip(),_a(We.backgroundColor)||(this.ctx.fillStyle=Va(We.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Ne.container)]):[3,2];case 1:qi.sent(),this.ctx.restore(),We.boxShadow.slice(0).reverse().forEach(function(Za){Ui.ctx.save();var eo=lu(Ne.curves),po=Za.inset?0:pc,us=vc(eo,-po+(Za.inset?1:-1)*Za.spread.number,(Za.inset?1:-1)*Za.spread.number,Za.spread.number*(Za.inset?-2:2),Za.spread.number*(Za.inset?-2:2));Za.inset?(Ui.path(eo),Ui.ctx.clip(),Ui.mask(us)):(Ui.mask(eo),Ui.ctx.clip(),Ui.path(us)),Ui.ctx.shadowOffsetX=Za.offsetX.number+po,Ui.ctx.shadowOffsetY=Za.offsetY.number,Ui.ctx.shadowColor=Va(Za.color),Ui.ctx.shadowBlur=Za.blur.number,Ui.ctx.fillStyle=Za.inset?Va(Za.color):"rgba(0,0,0,1)",Ui.ctx.fill(),Ui.ctx.restore()}),qi.label=2;case 2:_n=0,Hn=0,ai=Ar,qi.label=3;case 3:return Hn<ai.length?(Yi=ai[Hn],Yi.style!==0&&!_a(Yi.color)&&Yi.width>0?Yi.style===2?[4,this.renderDashedDottedBorder(Yi.color,Yi.width,_n,Ne.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return qi.sent(),[3,11];case 5:return Yi.style===3?[4,this.renderDashedDottedBorder(Yi.color,Yi.width,_n,Ne.curves,3)]:[3,7];case 6:return qi.sent(),[3,11];case 7:return Yi.style===4?[4,this.renderDoubleBorder(Yi.color,Yi.width,_n,Ne.curves)]:[3,9];case 8:return qi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Yi.color,_n,Ne.curves)];case 10:qi.sent(),qi.label=11;case 11:_n++,qi.label=12;case 12:return Hn++,[3,3];case 13:return[2]}})})},ye.prototype.renderDashedDottedBorder=function(Ne,We,ft,Ar,sn){return m(this,void 0,void 0,function(){var _n,Hn,ai,Yi,Ui,qi,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,zs,Ro;return p(this,function(Al){return this.ctx.save(),_n=wc(Ar,ft),Hn=hc(Ar,ft),sn===2&&(this.path(Hn),this.ctx.clip()),El(Hn[0])?(ai=Hn[0].start.x,Yi=Hn[0].start.y):(ai=Hn[0].x,Yi=Hn[0].y),El(Hn[1])?(Ui=Hn[1].end.x,qi=Hn[1].end.y):(Ui=Hn[1].x,qi=Hn[1].y),ft===0||ft===2?Za=Math.abs(ai-Ui):Za=Math.abs(Yi-qi),this.ctx.beginPath(),sn===3?this.formatPath(_n):this.formatPath(Hn.slice(0,2)),eo=We<3?We*3:We*2,po=We<3?We*2:We,sn===3&&(eo=We,po=We),us=!0,Za<=eo*2?us=!1:Za<=eo*2+po?(Yo=Za/(2*eo+po),eo*=Yo,po*=Yo):(Po=Math.floor((Za+po)/(eo+po)),$s=(Za-Po*eo)/(Po-1),cl=(Za-(Po+1)*eo)/Po,po=cl<=0||Math.abs(po-$s)<Math.abs(po-cl)?$s:cl),us&&(sn===3?this.ctx.setLineDash([0,eo+po]):this.ctx.setLineDash([eo,po])),sn===3?(this.ctx.lineCap="round",this.ctx.lineWidth=We):this.ctx.lineWidth=We*2+1.1,this.ctx.strokeStyle=Va(Ne),this.ctx.stroke(),this.ctx.setLineDash([]),sn===2&&(El(Hn[0])&&(zs=Hn[3],Ro=Hn[0],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke()),El(Hn[1])&&(zs=Hn[1],Ro=Hn[2],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},ye.prototype.render=function(Ne){return m(this,void 0,void 0,function(){var We;return p(this,function(ft){switch(ft.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),We=ju(Ne),[4,this.renderStack(We)];case 1:return ft.sent(),this.applyEffects([]),[2,this.canvas]}})})},ye}(Ec),_c=function(ye){return ye instanceof Gi||ye instanceof ua?!0:ye instanceof xi&&ye.type!==Ln&&ye.type!==$r},Oc=function(ye,Ne){switch(ye){case 0:return lu(Ne);case 2:return Kl(Ne);case 1:default:return Uu(Ne)}},Ic=function(ye){switch(ye){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lc=["-apple-system","system-ui"],Nc=function(ye){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?ye.filter(function(Ne){return Lc.indexOf(Ne)===-1}):ye},Dc=function(Tr){g(ye,Tr);function ye(Ne,We){var ft=Tr.call(this,Ne,We)||this;return ft.canvas=We.canvas?We.canvas:document.createElement("canvas"),ft.ctx=ft.canvas.getContext("2d"),ft.options=We,ft.canvas.width=Math.floor(We.width*We.scale),ft.canvas.height=Math.floor(We.height*We.scale),ft.canvas.style.width=We.width+"px",ft.canvas.style.height=We.height+"px",ft.ctx.scale(ft.options.scale,ft.options.scale),ft.ctx.translate(-We.x,-We.y),ft.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+We.width+"x"+We.height+" at "+We.x+","+We.y+") with scale "+We.scale),ft}return ye.prototype.render=function(Ne){return m(this,void 0,void 0,function(){var We,ft;return p(this,function(Ar){switch(Ar.label){case 0:return We=Su(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Ne),[4,Rc(We)];case 1:return ft=Ar.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(ft,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},ye}(Ec),Rc=function(ye){return new Promise(function(Ne,We){var ft=new Image;ft.onload=function(){Ne(ft)},ft.onerror=We,ft.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ye))})},kc=function(){function Tr(ye){var Ne=ye.id,We=ye.enabled;this.id=Ne,this.enabled=We,this.start=Date.now()}return Tr.prototype.debug=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Tr.prototype.getTime=function(){return Date.now()-this.start},Tr.prototype.info=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,f([this.id,this.getTime()+"ms"],ye)))},Tr.prototype.warn=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Tr.prototype.error=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Tr.instances={},Tr}(),Mc=function(){function Tr(ye,Ne){var We;this.windowBounds=Ne,this.instanceName="#"+Tr.instanceCount++,this.logger=new kc({id:this.instanceName,enabled:ye.logging}),this.cache=(We=ye.cache)!==null&&We!==void 0?We:new xs(this,ye)}return Tr.instanceCount=1,Tr}(),Pc=function(ye,Ne){return Ne===void 0&&(Ne={}),Fc(ye,Ne)};typeof window!="undefined"&&Mo.setContext(window);var Fc=function(ye,Ne){return m(void 0,void 0,void 0,function(){var We,ft,Ar,sn,_n,Hn,ai,Yi,Ui,qi,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,Al,bl,Al,Vs,_u,Mu,Ou,eu,rc,Wu,Zu,$u,qu,nc,zu,ec,ic,ac,Yu,oc;return p(this,function(Qu){switch(Qu.label){case 0:if(!ye||typeof ye!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(We=ye.ownerDocument,!We)throw new Error("Element is not attached to a Document");if(ft=We.defaultView,!ft)throw new Error("Document is not attached to a Window");return Ar={allowTaint:(Vs=Ne.allowTaint)!==null&&Vs!==void 0?Vs:!1,imageTimeout:(_u=Ne.imageTimeout)!==null&&_u!==void 0?_u:15e3,proxy:Ne.proxy,useCORS:(Mu=Ne.useCORS)!==null&&Mu!==void 0?Mu:!1},sn=S({logging:(Ou=Ne.logging)!==null&&Ou!==void 0?Ou:!0,cache:Ne.cache},Ar),_n={windowWidth:(eu=Ne.windowWidth)!==null&&eu!==void 0?eu:ft.innerWidth,windowHeight:(rc=Ne.windowHeight)!==null&&rc!==void 0?rc:ft.innerHeight,scrollX:(Wu=Ne.scrollX)!==null&&Wu!==void 0?Wu:ft.pageXOffset,scrollY:(Zu=Ne.scrollY)!==null&&Zu!==void 0?Zu:ft.pageYOffset},Hn=new d(_n.scrollX,_n.scrollY,_n.windowWidth,_n.windowHeight),ai=new Mc(sn,Hn),Yi=($u=Ne.foreignObjectRendering)!==null&&$u!==void 0?$u:!1,Ui={allowTaint:(qu=Ne.allowTaint)!==null&&qu!==void 0?qu:!1,onclone:Ne.onclone,ignoreElements:Ne.ignoreElements,inlineImages:Yi,copyStyles:Yi},ai.logger.debug("Starting document clone with size "+Hn.width+"x"+Hn.height+" scrolled to "+-Hn.left+","+-Hn.top),qi=new ge(ai,ye,Ui),Za=qi.clonedReferenceElement,Za?[4,qi.toIFrame(We,Hn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return eo=Qu.sent(),po=Ur(Za)||It(Za)?a(Za.ownerDocument):l(ai,Za),us=po.width,Yo=po.height,Po=po.left,$s=po.top,cl=Bc(ai,Za,Ne.backgroundColor),zs={canvas:Ne.canvas,backgroundColor:cl,scale:(zu=(nc=Ne.scale)!==null&&nc!==void 0?nc:ft.devicePixelRatio)!==null&&zu!==void 0?zu:1,x:((ec=Ne.x)!==null&&ec!==void 0?ec:0)+Po,y:((ic=Ne.y)!==null&&ic!==void 0?ic:0)+$s,width:(ac=Ne.width)!==null&&ac!==void 0?ac:Math.ceil(us),height:(Yu=Ne.height)!==null&&Yu!==void 0?Yu:Math.ceil(Yo)},Yi?(ai.logger.debug("Document cloned, using foreign object rendering"),Al=new Dc(ai,zs),[4,Al.render(Za)]):[3,3];case 2:return Ro=Qu.sent(),[3,5];case 3:return ai.logger.debug("Document cloned, element located at "+Po+","+$s+" with size "+us+"x"+Yo+" using computed rendering"),ai.logger.debug("Starting DOM parsing"),bl=xa(ai,Za),cl===bl.styles.backgroundColor&&(bl.styles.backgroundColor=xo.TRANSPARENT),ai.logger.debug("Starting renderer for element at "+zs.x+","+zs.y+" with size "+zs.width+"x"+zs.height),Al=new mc(ai,zs),[4,Al.render(bl)];case 4:Ro=Qu.sent(),Qu.label=5;case 5:return((oc=Ne.removeContainer)!==null&&oc!==void 0?oc:!0)&&(ge.destroy(eo)||ai.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ai.logger.debug("Finished rendering"),[2,Ro]}})})},Bc=function(ye,Ne,We){var ft=Ne.ownerDocument,Ar=ft.documentElement?ao(ye,getComputedStyle(ft.documentElement).backgroundColor):xo.TRANSPARENT,sn=ft.body?ao(ye,getComputedStyle(ft.body).backgroundColor):xo.TRANSPARENT,_n=typeof We=="string"?ao(ye,We):We===null?xo.TRANSPARENT:4294967295;return Ne===ft.documentElement?_a(Ar)?_a(sn)?_n:sn:Ar:_n};return Pc})},wPhX:function(R,D,n){"use strict";n.d(D,"b",function(){return i}),n.d(D,"a",function(){return t}),n.d(D,"k",function(){return o}),n.d(D,"h",function(){return e}),n.d(D,"i",function(){return u}),n.d(D,"g",function(){return r}),n.d(D,"c",function(){return s}),n.d(D,"d",function(){return c}),n.d(D,"j",function(){return A}),n.d(D,"e",function(){return b}),n.d(D,"f",function(){return x});var y=n("KQm4"),g=n("U8pU"),S=n("Ff2n"),m=n("q1tI"),p=n.n(m),f=n("Kwbf"),d=n("lr6o"),l=.25,a=2;function i(E,T){var _=E.slice(),C=_.indexOf(T);return C>=0&&_.splice(C,1),_}function t(E,T){var _=E.slice();return _.indexOf(T)===-1&&_.push(T),_}function o(E){return E.split("-")}function e(E,T){return"".concat(E,"-").concat(T)}function u(E){return E&&E.type&&E.type.isTreeNode}function r(E,T){var _=[E],C=T[E];function w(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];O.forEach(function(I){var k=I.key,M=I.children;_.push(k),w(M)})}return w(C.children),_}function s(E,T){var _=E.clientY,C=T.selectHandle.getBoundingClientRect(),w=C.top,O=C.bottom,I=C.height,k=Math.max(I*l,a);return _<=w+k?-1:_>=O-k?1:0}function c(E,T){if(!E)return;var _=T.multiple;return _?E.slice():E.length?[E[0]]:E}var h=function(T){return T};function v(E,T){if(!E)return[];var _=T||{},C=_.processProps,w=C===void 0?h:C,O=Array.isArray(E)?E:[E];return O.map(function(I){var k=I.children,M=Object(S.a)(I,["children"]),U=v(k,T);return p.a.createElement(d.a,Object.assign({},w(M)),U)})}function A(E){if(!E)return null;var T;if(Array.isArray(E))T={checkedKeys:E,halfCheckedKeys:void 0};else if(Object(g.a)(E)==="object")T={checkedKeys:E.checked||void 0,halfCheckedKeys:E.halfChecked||void 0};else return Object(f.a)(!1,"`checkedKeys` is not an array or an object"),null;return T}function b(E,T){var _=new Set;function C(w){if(_.has(w))return;var O=T[w];if(!O)return;_.add(w);var I=O.parent,k=O.node;if(k.disabled)return;I&&C(I.key)}return(E||[]).forEach(function(w){C(w)}),Object(y.a)(_)}function x(E){var T={};return Object.keys(E).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(T[_]=E[_])}),T}},wXyp:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("ygfH")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="CheckOutlined";var i=m.forwardRef(a);D.default=i},wYyv:function(R,D,n){"use strict";var y=n("R5yR"),g=n("5wUe"),S=function(f,d,l){var a=d<0?f.length+d:d;if(a>=0&&a<f.length){var i=l<0?f.length+l:l,t=f.splice(d,1),o=g(t,1),e=o[0];f.splice(i,0,e)}},m=function(f,d,l){return f=y(f),S(f,d,l),f};R.exports=m,R.exports.mutate=S},wZgz:function(R,D,n){(function(y,g,S){R.exports=D=g(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.BlockCipher,p=g.algo,f=[],d=[],l=[],a=[],i=[],t=[],o=[],e=[],u=[],r=[];(function(){for(var h=[],v=0;v<256;v++)v<128?h[v]=v<<1:h[v]=v<<1^283;for(var A=0,b=0,v=0;v<256;v++){var x=b^b<<1^b<<2^b<<3^b<<4;x=x>>>8^x&255^99,f[A]=x,d[x]=A;var E=h[A],T=h[E],_=h[T],C=h[x]*257^x*16843008;l[A]=C<<24|C>>>8,a[A]=C<<16|C>>>16,i[A]=C<<8|C>>>24,t[A]=C;var C=_*16843009^T*65537^E*257^A*16843008;o[x]=C<<24|C>>>8,e[x]=C<<16|C>>>16,u[x]=C<<8|C>>>24,r[x]=C,A?(A=E^h[h[h[_^E]]],b^=h[h[b]]):A=b=1}})();var s=[0,1,2,4,8,16,32,64,128,27,54],c=p.AES=m.extend({_doReset:function(){var v;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var A=this._keyPriorReset=this._key,b=A.words,x=A.sigBytes/4,E=this._nRounds=x+6,T=(E+1)*4,_=this._keySchedule=[],C=0;C<T;C++)C<x?_[C]=b[C]:(v=_[C-1],C%x?x>6&&C%x==4&&(v=f[v>>>24]<<24|f[v>>>16&255]<<16|f[v>>>8&255]<<8|f[v&255]):(v=v<<8|v>>>24,v=f[v>>>24]<<24|f[v>>>16&255]<<16|f[v>>>8&255]<<8|f[v&255],v^=s[C/x|0]<<24),_[C]=_[C-x]^v);for(var w=this._invKeySchedule=[],O=0;O<T;O++){var C=T-O;if(O%4)var v=_[C];else var v=_[C-4];O<4||C<=4?w[O]=v:w[O]=o[f[v>>>24]]^e[f[v>>>16&255]]^u[f[v>>>8&255]]^r[f[v&255]]}},encryptBlock:function(v,A){this._doCryptBlock(v,A,this._keySchedule,l,a,i,t,f)},decryptBlock:function(v,A){var b=v[A+1];v[A+1]=v[A+3],v[A+3]=b,this._doCryptBlock(v,A,this._invKeySchedule,o,e,u,r,d);var b=v[A+1];v[A+1]=v[A+3],v[A+3]=b},_doCryptBlock:function(v,A,b,x,E,T,_,C){for(var w=this._nRounds,O=v[A]^b[0],I=v[A+1]^b[1],k=v[A+2]^b[2],M=v[A+3]^b[3],U=4,P=1;P<w;P++){var X=x[O>>>24]^E[I>>>16&255]^T[k>>>8&255]^_[M&255]^b[U++],F=x[I>>>24]^E[k>>>16&255]^T[M>>>8&255]^_[O&255]^b[U++],j=x[k>>>24]^E[M>>>16&255]^T[O>>>8&255]^_[I&255]^b[U++],K=x[M>>>24]^E[O>>>16&255]^T[I>>>8&255]^_[k&255]^b[U++];O=X,I=F,k=j,M=K}var X=(C[O>>>24]<<24|C[I>>>16&255]<<16|C[k>>>8&255]<<8|C[M&255])^b[U++],F=(C[I>>>24]<<24|C[k>>>16&255]<<16|C[M>>>8&255]<<8|C[O&255])^b[U++],j=(C[k>>>24]<<24|C[M>>>16&255]<<16|C[O>>>8&255]<<8|C[I&255])^b[U++],K=(C[M>>>24]<<24|C[O>>>16&255]<<16|C[I>>>8&255]<<8|C[k&255])^b[U++];v[A]=X,v[A+1]=F,v[A+2]=j,v[A+3]=K},keySize:256/32});g.AES=m._createHelper(c)}(),y.AES})},wbyO:function(R,D,n){(function(y,g){R.exports=D=g(n("Ib8C"))})(this,function(y){return function(){var g=y,S=g.lib,m=S.WordArray,p=g.enc,f=p.Base64url={stringify:function(a,i){i===void 0&&(i=!0);var t=a.words,o=a.sigBytes,e=i?this._safe_map:this._map;a.clamp();for(var u=[],r=0;r<o;r+=3)for(var s=t[r>>>2]>>>24-r%4*8&255,c=t[r+1>>>2]>>>24-(r+1)%4*8&255,h=t[r+2>>>2]>>>24-(r+2)%4*8&255,v=s<<16|c<<8|h,A=0;A<4&&r+A*.75<o;A++)u.push(e.charAt(v>>>6*(3-A)&63));var b=e.charAt(64);if(b)for(;u.length%4;)u.push(b);return u.join("")},parse:function(a,i){i===void 0&&(i=!0);var t=a.length,o=i?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var u=0;u<o.length;u++)e[o.charCodeAt(u)]=u}var r=o.charAt(64);if(r){var s=a.indexOf(r);s!==-1&&(t=s)}return d(a,t,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function d(l,a,i){for(var t=[],o=0,e=0;e<a;e++)if(e%4){var u=i[l.charCodeAt(e-1)]<<e%4*2,r=i[l.charCodeAt(e)]>>>6-e%4*2,s=u|r;t[o>>>2]|=s<<24-o%4*8,o++}return m.create(t,o)}}(),y.enc.Base64url})},wgjA:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},whJP:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("lwsE"),f=n.n(p),d=n("W8MJ"),l=n.n(d),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),u=n.n(e),r=n("Y1PL"),s=n("BGR+"),c=n("TSYQ"),h=n.n(c),v=n("LlR5"),A=n("H84U"),b=n("mh/l"),x=function(E){i()(_,E);var T=o()(_);function _(C){var w;f()(this,_),w=T.call(this,C),w.focus=function(){w.resizableTextArea.textArea.focus()},w.saveTextArea=function(I){w.resizableTextArea=I==null?void 0:I.resizableTextArea},w.saveClearableInput=function(I){w.clearableInput=I},w.handleChange=function(I){w.setValue(I.target.value),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.handleReset=function(I){w.setValue("",function(){w.focus()}),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.renderTextArea=function(I,k){return e.createElement(r.default,g()({},Object(s.default)(w.props,["allowClear","bordered"]),{className:h()(w.props.className,m()({},"".concat(I,"-borderless"),!k)),prefixCls:I,onChange:w.handleChange,ref:w.saveTextArea}))},w.renderComponent=function(I){var k=I.getPrefixCls,M=I.direction,U=w.state.value,P=w.props,X=P.prefixCls,F=P.bordered,j=F===void 0?!0:F,K=k("input",X);return e.createElement(v.a,g()({},w.props,{prefixCls:K,direction:M,inputType:"text",value:Object(b.b)(U),element:w.renderTextArea(K,j),handleReset:w.handleReset,ref:w.saveClearableInput,triggerFocus:w.focus,bordered:j}))};var O=typeof C.value=="undefined"?C.defaultValue:C.value;return w.state={value:O},w}return l()(_,[{key:"setValue",value:function(w,O){this.props.value===void 0&&this.setState({value:w},O)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(A.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(w){return w.value!==void 0?{value:w.value}:null}}]),_}(e.Component);D.a=x},whVF:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("lNSK"),g=S(n("1q3G"));function S(l){return l&&l.__esModule?l:{default:l}}function m(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function p(l,a){for(var i=0;i<a.length;i++){var t=a[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}function f(l,a,i){return a&&p(l.prototype,a),i&&p(l,i),l}var d=function(){function l(){m(this,l),this.strm=new g.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,y.deflateInit)(this.strm,this.windowBits)}return f(l,[{key:"deflate",value:function(i){this.strm.input=i,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 t=(0,y.deflate)(this.strm,y.Z_FULL_FLUSH),o=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(t<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var e=[o],u=o.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,t=(0,y.deflate)(this.strm,y.Z_FULL_FLUSH),t<0)throw new Error("zlib deflate failed");var r=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);u+=r.length,e.push(r)}while(this.strm.avail_in>0);for(var s=new Uint8Array(u),c=0,h=0;h<e.length;h++)s.set(e[h],c),c+=e[h].length;o=s}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,o}}]),l}();D.default=d},wr5s:function(R,D,n){var y=n("IwbS"),g=y.extendShape,S=g({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(m,p){var f=p.cx,d=p.cy,l=Math.max(p.r0||0,0),a=Math.max(p.r,0),i=(a-l)*.5,t=l+i,o=p.startAngle,e=p.endAngle,u=p.clockwise,r=Math.cos(o),s=Math.sin(o),c=Math.cos(e),h=Math.sin(e),v=u?e-o<Math.PI*2:o-e<Math.PI*2;v&&(m.moveTo(r*l+f,s*l+d),m.arc(r*t+f,s*t+d,i,-Math.PI+o,o,!u)),m.arc(f,d,a,o,e,!u),m.moveTo(c*a+f,h*a+d),m.arc(c*t+f,h*t+d,i,e-Math.PI*2,e-Math.PI,!u),l!==0&&(m.arc(f,d,l,e,o,u),m.moveTo(r*l+f,h*l+d)),m.closePath()}});R.exports=S},wt3j:function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("/IIm"),m=n("EMyp"),p=m.layoutCovers,f=y.extendComponentView({type:"brush",init:function(l,a){this.ecModel=l,this.api=a,this.model,(this._brushController=new S(a.getZr())).on("brush",g.bind(this._onBrush,this)).mount()},render:function(l){return this.model=l,d.apply(this,arguments)},updateTransform:function(l,a){return p(a),d.apply(this,arguments)},updateView:d,dispose:function(){this._brushController.dispose()},_onBrush:function(l,a){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(l,this.ecModel),(!a.isEnd||a.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:g.clone(l),$from:i}),a.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:g.clone(l),$from:i})}});function d(l,a,i,t){(!t||t.$from!==l.id)&&this._brushController.setPanels(l.brushTargetManager.makePanelOpts(i)).enableBrush(l.brushOption).updateCovers(l.areas.slice())}R.exports=f},x3X8:function(R,D,n){var y=n("KxfA"),g=y.retrieveRawValue;function S(m,p){var f=m.mapDimension("defaultedLabel",!0),d=f.length;if(d===1)return g(m,p,f[0]);if(d){for(var l=[],a=0;a<f.length;a++){var i=g(m,p,f[a]);l.push(i)}return l.join(" ")}}D.getDefaultLabel=S},x54q:function(R,D,n){},x6Kt:function(R,D,n){var y=n("y+Vt"),g=n("VpOo"),S=n("nPnh"),m=S.subPixelOptimizeRect,p={},f=y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(l,a){var i,t,o,e;this.subPixelOptimize?(m(p,a,this.style),i=p.x,t=p.y,o=p.width,e=p.height,p.r=a.r,a=p):(i=a.x,t=a.y,o=a.width,e=a.height),a.r?g.buildPath(l,a):l.rect(i,t,o,e),l.closePath();return}});R.exports=f},xGfz:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="PlusSquareOutlined";var d=D.a=g.forwardRef(f)},xKMd:function(R,D){function n(g,S){this.getAllNames=function(){var m=S();return m.mapArray(m.getName)},this.containName=function(m){var p=S();return p.indexOfName(m)>=0},this.indexOfName=function(m){var p=g();return p.indexOfName(m)},this.getItemVisual=function(m,p){var f=g();return f.getItemVisual(m,p)}}var y=n;R.exports=y},xO64:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=g(n("8K/p"));function g(r){return r&&r.__esModule?r:{default:r}}function S(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(c){return typeof c}:S=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},S(r)}function m(r,s){if(!(r instanceof s))throw new TypeError("Cannot call a class as a function")}function p(r,s){for(var c=0;c<s.length;c++){var h=s[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}function f(r,s,c){return s&&p(r.prototype,s),c&&p(r,c),r}function d(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(s&&s.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),s&&l(r,s)}function l(r,s){return l=Object.setPrototypeOf||function(h,v){return h.__proto__=v,h},l(r,s)}function a(r){var s=o();return function(){var h=e(r),v;if(s){var A=e(this).constructor;v=Reflect.construct(h,arguments,A)}else v=h.apply(this,arguments);return i(this,v)}}function i(r,s){return s&&(S(s)==="object"||typeof s=="function")?s:t(r)}function t(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function o(){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(r){return!1}}function e(r){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},e(r)}var u=function(r){d(c,r);var s=a(c);function c(){return m(this,c),s.apply(this,arguments)}return f(c,[{key:"_pngRect",value:function(v,A,b,x,E,T,_){var C=this._readData(E);return C===null?!1:(T.imageRect(v,A,b,x,"image/png",C),!0)}},{key:"_basicRect",value:function(v,A,b,x,E,T,_,C){throw new Error("BasicCompression received in TightPNG rect")}}]),c}(y.default);D.default=u},xOOu:function(R,D,n){(function(y,g,S){var m,m;/*!
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(p){R.exports=p()}(function(){return function p(f,d,l){function a(o,e){if(!d[o]){if(!f[o]){var u=typeof m=="function"&&m;if(!e&&u)return m(o,!0);if(i)return i(o,!0);var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r}var s=d[o]={exports:{}};f[o][0].call(s.exports,function(c){var h=f[o][1][c];return a(h||c)},s,s.exports,p,f,d,l)}return d[o].exports}for(var i=typeof m=="function"&&m,t=0;t<l.length;t++)a(l[t]);return a}({1:[function(p,f,d){"use strict";var l=p("./utils"),a=p("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(t){for(var o,e,u,r,s,c,h,v=[],A=0,b=t.length,x=b,E=l.getTypeOf(t)!=="string";A<t.length;)x=b-A,u=E?(o=t[A++],e=A<b?t[A++]:0,A<b?t[A++]:0):(o=t.charCodeAt(A++),e=A<b?t.charCodeAt(A++):0,A<b?t.charCodeAt(A++):0),r=o>>2,s=(3&o)<<4|e>>4,c=1<x?(15&e)<<2|u>>6:64,h=2<x?63&u:64,v.push(i.charAt(r)+i.charAt(s)+i.charAt(c)+i.charAt(h));return v.join("")},d.decode=function(t){var o,e,u,r,s,c,h=0,v=0,A="data:";if(t.substr(0,A.length)===A)throw new Error("Invalid base64 input, it looks like a data url.");var b,x=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===i.charAt(64)&&x--,t.charAt(t.length-2)===i.charAt(64)&&x--,x%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=a.uint8array?new Uint8Array(0|x):new Array(0|x);h<t.length;)o=i.indexOf(t.charAt(h++))<<2|(r=i.indexOf(t.charAt(h++)))>>4,e=(15&r)<<4|(s=i.indexOf(t.charAt(h++)))>>2,u=(3&s)<<6|(c=i.indexOf(t.charAt(h++))),b[v++]=o,s!==64&&(b[v++]=e),c!==64&&(b[v++]=u);return b}},{"./support":30,"./utils":32}],2:[function(p,f,d){"use strict";var l=p("./external"),a=p("./stream/DataWorker"),i=p("./stream/Crc32Probe"),t=p("./stream/DataLengthProbe");function o(e,u,r,s,c){this.compressedSize=e,this.uncompressedSize=u,this.crc32=r,this.compression=s,this.compressedContent=c}o.prototype={getContentWorker:function(){var u=new a(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new t("data_length")),r=this;return u.on("end",function(){if(this.streamInfo.data_length!==r.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new a(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,u,r){return e.pipe(new i).pipe(new t("uncompressedSize")).pipe(u.compressWorker(r)).pipe(new t("compressedSize")).withStreamInfo("compression",u)},f.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(p,f,d){"use strict";var l=p("./stream/GenericWorker");d.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},d.DEFLATE=p("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(p,f,d){"use strict";var l=p("./utils"),a=function(){for(var i,t=[],o=0;o<256;o++){i=o;for(var e=0;e<8;e++)i=1&i?3988292384^i>>>1:i>>>1;t[o]=i}return t}();f.exports=function(i,t){return i!==void 0&&i.length?l.getTypeOf(i)!=="string"?function(o,e,u,r){var s=a,c=r+u;o^=-1;for(var h=r;h<c;h++)o=o>>>8^s[255&(o^e[h])];return-1^o}(0|t,i,i.length,0):function(o,e,u,r){var s=a,c=r+u;o^=-1;for(var h=r;h<c;h++)o=o>>>8^s[255&(o^e.charCodeAt(h))];return-1^o}(0|t,i,i.length,0):0}},{"./utils":32}],5:[function(p,f,d){"use strict";d.base64=!1,d.binary=!1,d.dir=!1,d.createFolders=!0,d.date=null,d.compression=null,d.compressionOptions=null,d.comment=null,d.unixPermissions=null,d.dosPermissions=null},{}],6:[function(p,f,d){"use strict";var l=null;l=typeof Promise!="undefined"?Promise:p("lie"),f.exports={Promise:l}},{lie:37}],7:[function(p,f,d){"use strict";var l=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=p("pako"),i=p("./utils"),t=p("./stream/GenericWorker"),o=l?"uint8array":"array";function e(u,r){t.call(this,"FlateWorker/"+u),this._pako=null,this._pakoAction=u,this._pakoOptions=r,this.meta={}}d.magic="\b\0",i.inherits(e,t),e.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(o,u.data),!1)},e.prototype.flush=function(){t.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},e.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this._pako=null},e.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var u=this;this._pako.onData=function(r){u.push({data:r,meta:u.meta})}},d.compressWorker=function(u){return new e("Deflate",u)},d.uncompressWorker=function(){return new e("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(p,f,d){"use strict";function l(s,c){var h,v="";for(h=0;h<c;h++)v+=String.fromCharCode(255&s),s>>>=8;return v}function a(s,c,h,v,A,b){var x,E,T=s.file,_=s.compression,C=b!==o.utf8encode,w=i.transformTo("string",b(T.name)),O=i.transformTo("string",o.utf8encode(T.name)),I=T.comment,k=i.transformTo("string",b(I)),M=i.transformTo("string",o.utf8encode(I)),U=O.length!==T.name.length,P=M.length!==I.length,X="",F="",j="",K=T.dir,z=T.date,V={crc32:0,compressedSize:0,uncompressedSize:0};c&&!h||(V.crc32=s.crc32,V.compressedSize=s.compressedSize,V.uncompressedSize=s.uncompressedSize);var Q=0;c&&(Q|=8),C||!U&&!P||(Q|=2048);var G=0,te=0;K&&(G|=16),A==="UNIX"?(te=798,G|=function(se,re){var we=se;return se||(we=re?16893:33204),(65535&we)<<16}(T.unixPermissions,K)):(te=20,G|=function(se){return 63&(se||0)}(T.dosPermissions)),x=z.getUTCHours(),x<<=6,x|=z.getUTCMinutes(),x<<=5,x|=z.getUTCSeconds()/2,E=z.getUTCFullYear()-1980,E<<=4,E|=z.getUTCMonth()+1,E<<=5,E|=z.getUTCDate(),U&&(F=l(1,1)+l(e(w),4)+O,X+="up"+l(F.length,2)+F),P&&(j=l(1,1)+l(e(k),4)+M,X+="uc"+l(j.length,2)+j);var q="";return q+=`
\0`,q+=l(Q,2),q+=_.magic,q+=l(x,2),q+=l(E,2),q+=l(V.crc32,4),q+=l(V.compressedSize,4),q+=l(V.uncompressedSize,4),q+=l(w.length,2),q+=l(X.length,2),{fileRecord:u.LOCAL_FILE_HEADER+q+w+X,dirRecord:u.CENTRAL_FILE_HEADER+l(te,2)+q+l(k.length,2)+"\0\0\0\0"+l(G,4)+l(v,4)+w+X+k}}var i=p("../utils"),t=p("../stream/GenericWorker"),o=p("../utf8"),e=p("../crc32"),u=p("../signature");function r(s,c,h,v){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=h,this.encodeFileName=v,this.streamFiles=s,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(r,t),r.prototype.push=function(s){var c=s.meta.percent||0,h=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(s):(this.bytesWritten+=s.data.length,t.prototype.push.call(this,{data:s.data,meta:{currentFile:this.currentFile,percent:h?(c+100*(h-v-1))/h:100}}))},r.prototype.openedSource=function(s){this.currentSourceOffset=this.bytesWritten,this.currentFile=s.file.name;var c=this.streamFiles&&!s.file.dir;if(c){var h=a(s,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},r.prototype.closedSource=function(s){this.accumulate=!1;var c=this.streamFiles&&!s.file.dir,h=a(s,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),c)this.push({data:function(v){return u.DATA_DESCRIPTOR+l(v.crc32,4)+l(v.compressedSize,4)+l(v.uncompressedSize,4)}(s),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},r.prototype.flush=function(){for(var s=this.bytesWritten,c=0;c<this.dirRecords.length;c++)this.push({data:this.dirRecords[c],meta:{percent:100}});var h=this.bytesWritten-s,v=function(A,b,x,E,T){var _=i.transformTo("string",T(E));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(A,2)+l(A,2)+l(b,4)+l(x,4)+l(_.length,2)+_}(this.dirRecords.length,h,s,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},r.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},r.prototype.registerPrevious=function(s){this._sources.push(s);var c=this;return s.on("data",function(h){c.processChunk(h)}),s.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),s.on("error",function(h){c.error(h)}),this},r.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},r.prototype.error=function(s){var c=this._sources;if(!t.prototype.error.call(this,s))return!1;for(var h=0;h<c.length;h++)try{c[h].error(s)}catch(v){}return!0},r.prototype.lock=function(){t.prototype.lock.call(this);for(var s=this._sources,c=0;c<s.length;c++)s[c].lock()},f.exports=r},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(p,f,d){"use strict";var l=p("../compressions"),a=p("./ZipFileWorker");d.generateWorker=function(i,t,o){var e=new a(t.streamFiles,o,t.platform,t.encodeFileName),u=0;try{i.forEach(function(r,s){u++;var c=function(b,x){var E=b||x,T=l[E];if(!T)throw new Error(E+" is not a valid compression method !");return T}(s.options.compression,t.compression),h=s.options.compressionOptions||t.compressionOptions||{},v=s.dir,A=s.date;s._compressWorker(c,h).withStreamInfo("file",{name:r,dir:v,date:A,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(e)}),e.entriesCount=u}catch(r){e.error(r)}return e}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(p,f,d){"use strict";function l(){if(!(this instanceof l))return new l;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 a=new l;for(var i in this)typeof this[i]!="function"&&(a[i]=this[i]);return a}}(l.prototype=p("./object")).loadAsync=p("./load"),l.support=p("./support"),l.defaults=p("./defaults"),l.version="3.10.1",l.loadAsync=function(a,i){return new l().loadAsync(a,i)},l.external=p("./external"),f.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(p,f,d){"use strict";var l=p("./utils"),a=p("./external"),i=p("./utf8"),t=p("./zipEntries"),o=p("./stream/Crc32Probe"),e=p("./nodejsUtils");function u(r){return new a.Promise(function(s,c){var h=r.decompressed.getContentWorker().pipe(new o);h.on("error",function(v){c(v)}).on("end",function(){h.streamInfo.crc32!==r.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):s()}).resume()})}f.exports=function(r,s){var c=this;return s=l.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),e.isNode&&e.isStream(r)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",r,!0,s.optimizedBinaryString,s.base64).then(function(h){var v=new t(s);return v.load(h),v}).then(function(h){var v=[a.Promise.resolve(h)],A=h.files;if(s.checkCRC32)for(var b=0;b<A.length;b++)v.push(u(A[b]));return a.Promise.all(v)}).then(function(h){for(var v=h.shift(),A=v.files,b=0;b<A.length;b++){var x=A[b],E=x.fileNameStr,T=l.resolve(x.fileNameStr);c.file(T,x.decompressed,{binary:!0,optimizedBinaryString:!0,date:x.date,dir:x.dir,comment:x.fileCommentStr.length?x.fileCommentStr:null,unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions,createFolders:s.createFolders}),x.dir||(c.file(T).unsafeOriginalName=E)}return v.zipComment.length&&(c.comment=v.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(p,f,d){"use strict";var l=p("../utils"),a=p("../stream/GenericWorker");function i(t,o){a.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(o)}l.inherits(i,a),i.prototype._bindStream=function(t){var o=this;(this._stream=t).pause(),t.on("data",function(e){o.push({data:e,meta:{percent:0}})}).on("error",function(e){o.isPaused?this.generatedError=e:o.error(e)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},i.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},f.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(p,f,d){"use strict";var l=p("readable-stream").Readable;function a(i,t,o){l.call(this,t),this._helper=i;var e=this;i.on("data",function(u,r){e.push(u)||e._helper.pause(),o&&o(r)}).on("error",function(u){e.emit("error",u)}).on("end",function(){e.push(null)})}p("../utils").inherits(a,l),a.prototype._read=function(){this._helper.resume()},f.exports=a},{"../utils":32,"readable-stream":16}],14:[function(p,f,d){"use strict";f.exports={isNode:typeof y!="undefined",newBufferFrom:function(a,i){if(y.from&&y.from!==Uint8Array.from)return y.from(a,i);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new y(a,i)},allocBuffer:function(a){if(y.alloc)return y.alloc(a);var i=new y(a);return i.fill(0),i},isBuffer:function(a){return y.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(p,f,d){"use strict";function l(T,_,C){var w,O=i.getTypeOf(_),I=i.extend(C||{},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&&(T=A(T)),I.createFolders&&(w=v(T))&&b.call(this,w,!0);var k=O==="string"&&I.binary===!1&&I.base64===!1;C&&C.binary!==void 0||(I.binary=!k),(_ instanceof u&&_.uncompressedSize===0||I.dir||!_||_.length===0)&&(I.base64=!1,I.binary=!0,_="",I.compression="STORE",O="string");var M=null;M=_ instanceof u||_ instanceof t?_:c.isNode&&c.isStream(_)?new h(T,_):i.prepareContent(T,_,I.binary,I.optimizedBinaryString,I.base64);var U=new r(T,M,I);this.files[T]=U}var a=p("./utf8"),i=p("./utils"),t=p("./stream/GenericWorker"),o=p("./stream/StreamHelper"),e=p("./defaults"),u=p("./compressedObject"),r=p("./zipObject"),s=p("./generate"),c=p("./nodejsUtils"),h=p("./nodejs/NodejsStreamInputAdapter"),v=function(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var C=_.lastIndexOf("/");return 0<C?_.substring(0,C):""},A=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},b=function(_,C){return C=C!==void 0?C:e.createFolders,_=A(_),this.files[_]||l.call(this,_,null,{dir:!0,createFolders:C}),this.files[_]};function x(T){return Object.prototype.toString.call(T)==="[object RegExp]"}var E={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var C,w,O;for(C in this.files)O=this.files[C],(w=C.slice(this.root.length,C.length))&&C.slice(0,this.root.length)===this.root&&_(w,O)},filter:function(_){var C=[];return this.forEach(function(w,O){_(w,O)&&C.push(O)}),C},file:function(_,C,w){if(arguments.length!==1)return _=this.root+_,l.call(this,_,C,w),this;if(x(_)){var O=_;return this.filter(function(k,M){return!M.dir&&O.test(k)})}var I=this.files[this.root+_];return I&&!I.dir?I:null},folder:function(_){if(!_)return this;if(x(_))return this.filter(function(I,k){return k.dir&&_.test(I)});var C=this.root+_,w=b.call(this,C),O=this.clone();return O.root=w.name,O},remove:function(_){_=this.root+_;var C=this.files[_];if(C||(_.slice(-1)!=="/"&&(_+="/"),C=this.files[_]),C&&!C.dir)delete this.files[_];else for(var w=this.filter(function(I,k){return k.name.slice(0,_.length)===_}),O=0;O<w.length;O++)delete this.files[w[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(_){var C,w={};try{if((w=i.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=w.type.toLowerCase(),w.compression=w.compression.toUpperCase(),w.type==="binarystring"&&(w.type="string"),!w.type)throw new Error("No output type specified.");i.checkSupport(w.type),w.platform!=="darwin"&&w.platform!=="freebsd"&&w.platform!=="linux"&&w.platform!=="sunos"||(w.platform="UNIX"),w.platform==="win32"&&(w.platform="DOS");var O=w.comment||this.comment||"";C=s.generateWorker(this,w,O)}catch(I){(C=new t("error")).error(I)}return new o(C,w.type||"string",w.mimeType)},generateAsync:function(_,C){return this.generateInternalStream(_).accumulate(C)},generateNodeStream:function(_,C){return(_=_||{}).type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(C)}};f.exports=E},{"./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(p,f,d){"use strict";f.exports=p("stream")},{stream:void 0}],17:[function(p,f,d){"use strict";var l=p("./DataReader");function a(i){l.call(this,i);for(var t=0;t<this.data.length;t++)i[t]=255&i[t]}p("../utils").inherits(a,l),a.prototype.byteAt=function(i){return this.data[this.zero+i]},a.prototype.lastIndexOfSignature=function(i){for(var t=i.charCodeAt(0),o=i.charCodeAt(1),e=i.charCodeAt(2),u=i.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===t&&this.data[r+1]===o&&this.data[r+2]===e&&this.data[r+3]===u)return r-this.zero;return-1},a.prototype.readAndCheckSignature=function(i){var t=i.charCodeAt(0),o=i.charCodeAt(1),e=i.charCodeAt(2),u=i.charCodeAt(3),r=this.readData(4);return t===r[0]&&o===r[1]&&e===r[2]&&u===r[3]},a.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./DataReader":18}],18:[function(p,f,d){"use strict";var l=p("../utils");function a(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var o,e=0;for(this.checkOffset(t),o=this.index+t-1;o>=this.index;o--)e=(e<<8)+this.byteAt(o);return this.index+=t,e},readString:function(t){return l.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},f.exports=a},{"../utils":32}],19:[function(p,f,d){"use strict";var l=p("./Uint8ArrayReader");function a(i){l.call(this,i)}p("../utils").inherits(a,l),a.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(p,f,d){"use strict";var l=p("./DataReader");function a(i){l.call(this,i)}p("../utils").inherits(a,l),a.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},a.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},a.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},a.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./DataReader":18}],21:[function(p,f,d){"use strict";var l=p("./ArrayReader");function a(i){l.call(this,i)}p("../utils").inherits(a,l),a.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(p,f,d){"use strict";var l=p("../utils"),a=p("../support"),i=p("./ArrayReader"),t=p("./StringReader"),o=p("./NodeBufferReader"),e=p("./Uint8ArrayReader");f.exports=function(u){var r=l.getTypeOf(u);return l.checkSupport(r),r!=="string"||a.uint8array?r==="nodebuffer"?new o(u):a.uint8array?new e(l.transformTo("uint8array",u)):new i(l.transformTo("array",u)):new t(u)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(p,f,d){"use strict";d.LOCAL_FILE_HEADER="PK",d.CENTRAL_FILE_HEADER="PK",d.CENTRAL_DIRECTORY_END="PK",d.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",d.ZIP64_CENTRAL_DIRECTORY_END="PK",d.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(p,f,d){"use strict";var l=p("./GenericWorker"),a=p("../utils");function i(t){l.call(this,"ConvertWorker to "+t),this.destType=t}a.inherits(i,l),i.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},f.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(p,f,d){"use strict";var l=p("./GenericWorker"),a=p("../crc32");function i(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}p("../utils").inherits(i,l),i.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},f.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(p,f,d){"use strict";var l=p("../utils"),a=p("./GenericWorker");function i(t){a.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}l.inherits(i,a),i.prototype.processChunk=function(t){if(t){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+t.data.length}a.prototype.processChunk.call(this,t)},f.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(p,f,d){"use strict";var l=p("../utils"),a=p("./GenericWorker");function i(t){a.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(e){o.dataIsReady=!0,o.data=e,o.max=e&&e.length||0,o.type=l.getTypeOf(e),o.isPaused||o._tickAndRepeat()},function(e){o.error(e)})}l.inherits(i,a),i.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,o);break;case"uint8array":t=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":t=this.data.slice(this.index,o)}return this.index=o,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},f.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(p,f,d){"use strict";function l(a){this.name=a||"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}l.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,t){return this._listeners[i].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,t){if(this._listeners[i])for(var o=0;o<this._listeners[i].length;o++)this._listeners[i][o].call(this,t)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var t=this;return i.on("data",function(o){t.processChunk(o)}),i.on("end",function(){t.end()}),i.on("error",function(o){t.error(o)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,t){return this.extraStreamInfo[i]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},f.exports=l},{}],29:[function(p,f,d){"use strict";var l=p("../utils"),a=p("./ConvertWorker"),i=p("./GenericWorker"),t=p("../base64"),o=p("../support"),e=p("../external"),u=null;if(o.nodestream)try{u=p("../nodejs/NodejsStreamOutputAdapter")}catch(c){}function r(c,h){return new e.Promise(function(v,A){var b=[],x=c._internalType,E=c._outputType,T=c._mimeType;c.on("data",function(_,C){b.push(_),h&&h(C)}).on("error",function(_){b=[],A(_)}).on("end",function(){try{var _=function(C,w,O){switch(C){case"blob":return l.newBlob(l.transformTo("arraybuffer",w),O);case"base64":return t.encode(w);default:return l.transformTo(C,w)}}(E,function(C,w){var O,I=0,k=null,M=0;for(O=0;O<w.length;O++)M+=w[O].length;switch(C){case"string":return w.join("");case"array":return Array.prototype.concat.apply([],w);case"uint8array":for(k=new Uint8Array(M),O=0;O<w.length;O++)k.set(w[O],I),I+=w[O].length;return k;case"nodebuffer":return y.concat(w);default:throw new Error("concat : unsupported type '"+C+"'")}}(x,b),T);v(_)}catch(C){A(C)}b=[]}).resume()})}function s(c,h,v){var A=h;switch(h){case"blob":case"arraybuffer":A="uint8array";break;case"base64":A="string"}try{this._internalType=A,this._outputType=h,this._mimeType=v,l.checkSupport(A),this._worker=c.pipe(new a(A)),c.lock()}catch(b){this._worker=new i("error"),this._worker.error(b)}}s.prototype={accumulate:function(h){return r(this,h)},on:function(h,v){var A=this;return h==="data"?this._worker.on(h,function(b){v.call(A,b.data,b.meta)}):this._worker.on(h,function(){l.delay(v,arguments,A)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(h){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},h)}},f.exports=s},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(p,f,d){"use strict";if(d.base64=!0,d.array=!0,d.string=!0,d.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",d.nodebuffer=typeof y!="undefined",d.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")d.blob=!1;else{var l=new ArrayBuffer(0);try{d.blob=new Blob([l],{type:"application/zip"}).size===0}catch(i){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(l),d.blob=a.getBlob("application/zip").size===0}catch(t){d.blob=!1}}}try{d.nodestream=!!p("readable-stream").Readable}catch(i){d.nodestream=!1}},{"readable-stream":16}],31:[function(p,f,d){"use strict";for(var l=p("./utils"),a=p("./support"),i=p("./nodejsUtils"),t=p("./stream/GenericWorker"),o=new Array(256),e=0;e<256;e++)o[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;o[254]=o[254]=1;function u(){t.call(this,"utf-8 decode"),this.leftOver=null}function r(){t.call(this,"utf-8 encode")}d.utf8encode=function(s){return a.nodebuffer?i.newBufferFrom(s,"utf-8"):function(c){var h,v,A,b,x,E=c.length,T=0;for(b=0;b<E;b++)(64512&(v=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(A=c.charCodeAt(b+1)))==56320&&(v=65536+(v-55296<<10)+(A-56320),b++),T+=v<128?1:v<2048?2:v<65536?3:4;for(h=a.uint8array?new Uint8Array(T):new Array(T),b=x=0;x<T;b++)(64512&(v=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(A=c.charCodeAt(b+1)))==56320&&(v=65536+(v-55296<<10)+(A-56320),b++),v<128?h[x++]=v:(v<2048?h[x++]=192|v>>>6:(v<65536?h[x++]=224|v>>>12:(h[x++]=240|v>>>18,h[x++]=128|v>>>12&63),h[x++]=128|v>>>6&63),h[x++]=128|63&v);return h}(s)},d.utf8decode=function(s){return a.nodebuffer?l.transformTo("nodebuffer",s).toString("utf-8"):function(c){var h,v,A,b,x=c.length,E=new Array(2*x);for(h=v=0;h<x;)if((A=c[h++])<128)E[v++]=A;else if(4<(b=o[A]))E[v++]=65533,h+=b-1;else{for(A&=b===2?31:b===3?15:7;1<b&&h<x;)A=A<<6|63&c[h++],b--;1<b?E[v++]=65533:A<65536?E[v++]=A:(A-=65536,E[v++]=55296|A>>10&1023,E[v++]=56320|1023&A)}return E.length!==v&&(E.subarray?E=E.subarray(0,v):E.length=v),l.applyFromCharCode(E)}(s=l.transformTo(a.uint8array?"uint8array":"array",s))},l.inherits(u,t),u.prototype.processChunk=function(s){var c=l.transformTo(a.uint8array?"uint8array":"array",s.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var h=c;(c=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),c.set(h,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var v=function(b,x){var E;for((x=x||b.length)>b.length&&(x=b.length),E=x-1;0<=E&&(192&b[E])==128;)E--;return E<0||E===0?x:E+o[b[E]]>x?E:x}(c),A=c;v!==c.length&&(a.uint8array?(A=c.subarray(0,v),this.leftOver=c.subarray(v,c.length)):(A=c.slice(0,v),this.leftOver=c.slice(v,c.length))),this.push({data:d.utf8decode(A),meta:s.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=u,l.inherits(r,t),r.prototype.processChunk=function(s){this.push({data:d.utf8encode(s.data),meta:s.meta})},d.Utf8EncodeWorker=r},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(p,f,d){"use strict";var l=p("./support"),a=p("./base64"),i=p("./nodejsUtils"),t=p("./external");function o(h){return h}function e(h,v){for(var A=0;A<h.length;++A)v[A]=255&h.charCodeAt(A);return v}p("setimmediate"),d.newBlob=function(h,v){d.checkSupport("blob");try{return new Blob([h],{type:v})}catch(b){try{var A=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return A.append(h),A.getBlob(v)}catch(x){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(v,A,b){var x=[],E=0,T=v.length;if(T<=b)return String.fromCharCode.apply(null,v);for(;E<T;)A==="array"||A==="nodebuffer"?x.push(String.fromCharCode.apply(null,v.slice(E,Math.min(E+b,T)))):x.push(String.fromCharCode.apply(null,v.subarray(E,Math.min(E+b,T)))),E+=b;return x.join("")},stringifyByChar:function(v){for(var A="",b=0;b<v.length;b++)A+=String.fromCharCode(v[b]);return A},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(h){return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch(h){return!1}}()}};function r(h){var v=65536,A=d.getTypeOf(h),b=!0;if(A==="uint8array"?b=u.applyCanBeUsed.uint8array:A==="nodebuffer"&&(b=u.applyCanBeUsed.nodebuffer),b)for(;1<v;)try{return u.stringifyByChunk(h,A,v)}catch(x){v=Math.floor(v/2)}return u.stringifyByChar(h)}function s(h,v){for(var A=0;A<h.length;A++)v[A]=h[A];return v}d.applyFromCharCode=r;var c={};c.string={string:o,array:function(v){return e(v,new Array(v.length))},arraybuffer:function(v){return c.string.uint8array(v).buffer},uint8array:function(v){return e(v,new Uint8Array(v.length))},nodebuffer:function(v){return e(v,i.allocBuffer(v.length))}},c.array={string:r,array:o,arraybuffer:function(v){return new Uint8Array(v).buffer},uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return i.newBufferFrom(v)}},c.arraybuffer={string:function(v){return r(new Uint8Array(v))},array:function(v){return s(new Uint8Array(v),new Array(v.byteLength))},arraybuffer:o,uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return i.newBufferFrom(new Uint8Array(v))}},c.uint8array={string:r,array:function(v){return s(v,new Array(v.length))},arraybuffer:function(v){return v.buffer},uint8array:o,nodebuffer:function(v){return i.newBufferFrom(v)}},c.nodebuffer={string:r,array:function(v){return s(v,new Array(v.length))},arraybuffer:function(v){return c.nodebuffer.uint8array(v).buffer},uint8array:function(v){return s(v,new Uint8Array(v.length))},nodebuffer:o},d.transformTo=function(h,v){if(v=v||"",!h)return v;d.checkSupport(h);var A=d.getTypeOf(v);return c[A][h](v)},d.resolve=function(h){for(var v=h.split("/"),A=[],b=0;b<v.length;b++){var x=v[b];x==="."||x===""&&b!==0&&b!==v.length-1||(x===".."?A.pop():A.push(x))}return A.join("/")},d.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":l.nodebuffer&&i.isBuffer(h)?"nodebuffer":l.uint8array&&h instanceof Uint8Array?"uint8array":l.arraybuffer&&h instanceof ArrayBuffer?"arraybuffer":void 0},d.checkSupport=function(h){if(!l[h.toLowerCase()])throw new Error(h+" is not supported by this platform")},d.MAX_VALUE_16BITS=65535,d.MAX_VALUE_32BITS=-1,d.pretty=function(h){var v,A,b="";for(A=0;A<(h||"").length;A++)b+="\\x"+((v=h.charCodeAt(A))<16?"0":"")+v.toString(16).toUpperCase();return b},d.delay=function(h,v,A){setImmediate(function(){h.apply(A||null,v||[])})},d.inherits=function(h,v){function A(){}A.prototype=v.prototype,h.prototype=new A},d.extend=function(){var h,v,A={};for(h=0;h<arguments.length;h++)for(v in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],v)&&A[v]===void 0&&(A[v]=arguments[h][v]);return A},d.prepareContent=function(h,v,A,b,x){return t.Promise.resolve(v).then(function(E){return l.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1)&&typeof FileReader!="undefined"?new t.Promise(function(T,_){var C=new FileReader;C.onload=function(w){T(w.target.result)},C.onerror=function(w){_(w.target.error)},C.readAsArrayBuffer(E)}):E}).then(function(E){var T=d.getTypeOf(E);return T?(T==="arraybuffer"?E=d.transformTo("uint8array",E):T==="string"&&(x?E=a.decode(E):A&&b!==!0&&(E=function(_){return e(_,l.uint8array?new Uint8Array(_.length):new Array(_.length))}(E))),E):t.Promise.reject(new Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(p,f,d){"use strict";var l=p("./reader/readerFor"),a=p("./utils"),i=p("./signature"),t=p("./zipEntry"),o=p("./support");function e(u){this.files=[],this.loadOptions=u}e.prototype={checkSignature:function(r){if(!this.reader.readAndCheckSignature(r)){this.reader.index-=4;var s=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(s)+", expected "+a.pretty(r)+")")}},isSignature:function(r,s){var c=this.reader.index;this.reader.setIndex(r);var h=this.reader.readString(4)===s;return this.reader.setIndex(c),h},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 r=this.reader.readData(this.zipCommentLength),s=o.uint8array?"uint8array":"array",c=a.transformTo(s,r);this.zipComment=this.loadOptions.decodeFileName(c)},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 r,s,c,h=this.zip64EndOfCentralSize-44;0<h;)r=this.reader.readInt(2),s=this.reader.readInt(4),c=this.reader.readData(s),this.zip64ExtensibleData[r]={id:r,length:s,value:c}},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 r,s;for(r=0;r<this.files.length;r++)s=this.files[r],this.reader.setIndex(s.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),s.readLocalPart(this.reader),s.handleUTF8(),s.processAttributes()},readCentralDir:function(){var r;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(r=new t({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(r);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 r=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(r<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(r);var s=r;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(r=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(r),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var h=s-c;if(0<h)this.isSignature(s,i.CENTRAL_FILE_HEADER)||(this.reader.zero=h);else if(h<0)throw new Error("Corrupted zip: missing "+Math.abs(h)+" bytes.")},prepareReader:function(r){this.reader=l(r)},load:function(r){this.prepareReader(r),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},f.exports=e},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(p,f,d){"use strict";var l=p("./reader/readerFor"),a=p("./utils"),i=p("./compressedObject"),t=p("./crc32"),o=p("./utf8"),e=p("./compressions"),u=p("./support");function r(s,c){this.options=s,this.loadOptions=c}r.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(c){var h,v;if(c.skip(22),this.fileNameLength=c.readInt(2),v=c.readInt(2),this.fileName=c.readData(this.fileNameLength),c.skip(v),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((h=function(A){for(var b in e)if(Object.prototype.hasOwnProperty.call(e,b)&&e[b].magic===A)return e[b];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,h,c.readData(this.compressedSize))},readCentralPart:function(c){this.versionMadeBy=c.readInt(2),c.skip(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4);var h=c.readInt(2);if(this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");c.skip(h),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=l(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var h,v,A,b=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<b;)h=c.readInt(2),v=c.readInt(2),A=c.readData(v),this.extraFields[h]={id:h,length:v,value:A};c.setIndex(b)},handleUTF8:function(){var c=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var h=this.findExtraFieldUnicodePath();if(h!==null)this.fileNameStr=h;else{var v=a.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(v)}var A=this.findExtraFieldUnicodeComment();if(A!==null)this.fileCommentStr=A;else{var b=a.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var h=l(c.value);return h.readInt(1)!==1||t(this.fileName)!==h.readInt(4)?null:o.utf8decode(h.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var h=l(c.value);return h.readInt(1)!==1||t(this.fileComment)!==h.readInt(4)?null:o.utf8decode(h.readData(c.length-5))}return null}},f.exports=r},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(p,f,d){"use strict";function l(c,h,v){this.name=c,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=h,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var a=p("./stream/StreamHelper"),i=p("./stream/DataWorker"),t=p("./utf8"),o=p("./compressedObject"),e=p("./stream/GenericWorker");l.prototype={internalStream:function(h){var v=null,A="string";try{if(!h)throw new Error("No output type specified.");var b=(A=h.toLowerCase())==="string"||A==="text";A!=="binarystring"&&A!=="text"||(A="string"),v=this._decompressWorker();var x=!this._dataBinary;x&&!b&&(v=v.pipe(new t.Utf8EncodeWorker)),!x&&b&&(v=v.pipe(new t.Utf8DecodeWorker))}catch(E){(v=new e("error")).error(E)}return new a(v,A,"")},async:function(h,v){return this.internalStream(h).accumulate(v)},nodeStream:function(h,v){return this.internalStream(h||"nodebuffer").toNodejsStream(v)},_compressWorker:function(h,v){if(this._data instanceof o&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new t.Utf8EncodeWorker)),o.createWorkerFrom(A,h,v)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof e?this._data:new i(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],r=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},s=0;s<u.length;s++)l.prototype[u[s]]=r;f.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(p,f,d){(function(l){"use strict";var a,i,t=l.MutationObserver||l.WebKitMutationObserver;if(t){var o=0,e=new t(c),u=l.document.createTextNode("");e.observe(u,{characterData:!0}),a=function(){u.data=o=++o%2}}else if(l.setImmediate||l.MessageChannel===void 0)a="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var h=l.document.createElement("script");h.onreadystatechange=function(){c(),h.onreadystatechange=null,h.parentNode.removeChild(h),h=null},l.document.documentElement.appendChild(h)}:function(){setTimeout(c,0)};else{var r=new l.MessageChannel;r.port1.onmessage=c,a=function(){r.port2.postMessage(0)}}var s=[];function c(){var h,v;i=!0;for(var A=s.length;A;){for(v=s,s=[],h=-1;++h<A;)v[h]();A=s.length}i=!1}f.exports=function(h){s.push(h)!==1||i||a()}}).call(this,typeof g!="undefined"?g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(p,f,d){"use strict";var l=p("immediate");function a(){}var i={},t=["REJECTED"],o=["FULFILLED"],e=["PENDING"];function u(A){if(typeof A!="function")throw new TypeError("resolver must be a function");this.state=e,this.queue=[],this.outcome=void 0,A!==a&&h(this,A)}function r(A,b,x){this.promise=A,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof x=="function"&&(this.onRejected=x,this.callRejected=this.otherCallRejected)}function s(A,b,x){l(function(){var E;try{E=b(x)}catch(T){return i.reject(A,T)}E===A?i.reject(A,new TypeError("Cannot resolve promise with itself")):i.resolve(A,E)})}function c(A){var b=A&&A.then;if(A&&(typeof A=="object"||typeof A=="function")&&typeof b=="function")return function(){b.apply(A,arguments)}}function h(A,b){var x=!1;function E(C){x||(x=!0,i.reject(A,C))}function T(C){x||(x=!0,i.resolve(A,C))}var _=v(function(){b(T,E)});_.status==="error"&&E(_.value)}function v(A,b){var x={};try{x.value=A(b),x.status="success"}catch(E){x.status="error",x.value=E}return x}(f.exports=u).prototype.finally=function(A){if(typeof A!="function")return this;var b=this.constructor;return this.then(function(x){return b.resolve(A()).then(function(){return x})},function(x){return b.resolve(A()).then(function(){throw x})})},u.prototype.catch=function(A){return this.then(null,A)},u.prototype.then=function(A,b){if(typeof A!="function"&&this.state===o||typeof b!="function"&&this.state===t)return this;var x=new this.constructor(a);return this.state!==e?s(x,this.state===o?A:b,this.outcome):this.queue.push(new r(x,A,b)),x},r.prototype.callFulfilled=function(A){i.resolve(this.promise,A)},r.prototype.otherCallFulfilled=function(A){s(this.promise,this.onFulfilled,A)},r.prototype.callRejected=function(A){i.reject(this.promise,A)},r.prototype.otherCallRejected=function(A){s(this.promise,this.onRejected,A)},i.resolve=function(A,b){var x=v(c,b);if(x.status==="error")return i.reject(A,x.value);var E=x.value;if(E)h(A,E);else{A.state=o,A.outcome=b;for(var T=-1,_=A.queue.length;++T<_;)A.queue[T].callFulfilled(b)}return A},i.reject=function(A,b){A.state=t,A.outcome=b;for(var x=-1,E=A.queue.length;++x<E;)A.queue[x].callRejected(b);return A},u.resolve=function(A){return A instanceof this?A:i.resolve(new this(a),A)},u.reject=function(A){var b=new this(a);return i.reject(b,A)},u.all=function(A){var b=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=A.length,E=!1;if(!x)return this.resolve([]);for(var T=new Array(x),_=0,C=-1,w=new this(a);++C<x;)O(A[C],C);return w;function O(I,k){b.resolve(I).then(function(M){T[k]=M,++_!==x||E||(E=!0,i.resolve(w,T))},function(M){E||(E=!0,i.reject(w,M))})}},u.race=function(A){var b=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=A.length,E=!1;if(!x)return this.resolve([]);for(var T=-1,_=new this(a);++T<x;)C=A[T],b.resolve(C).then(function(w){E||(E=!0,i.resolve(_,w))},function(w){E||(E=!0,i.reject(_,w))});var C;return _}},{immediate:36}],38:[function(p,f,d){"use strict";var l={};(0,p("./lib/utils/common").assign)(l,p("./lib/deflate"),p("./lib/inflate"),p("./lib/zlib/constants")),f.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(p,f,d){"use strict";var l=p("./zlib/deflate"),a=p("./utils/common"),i=p("./utils/strings"),t=p("./zlib/messages"),o=p("./zlib/zstream"),e=Object.prototype.toString,u=0,r=-1,s=0,c=8;function h(A){if(!(this instanceof h))return new h(A);this.options=a.assign({level:r,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},A||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var x=l.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(x!==u)throw new Error(t[x]);if(b.header&&l.deflateSetHeader(this.strm,b.header),b.dictionary){var E;if(E=typeof b.dictionary=="string"?i.string2buf(b.dictionary):e.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(x=l.deflateSetDictionary(this.strm,E))!==u)throw new Error(t[x]);this._dict_set=!0}}function v(A,b){var x=new h(b);if(x.push(A,!0),x.err)throw x.msg||t[x.err];return x.result}h.prototype.push=function(A,b){var x,E,T=this.strm,_=this.options.chunkSize;if(this.ended)return!1;E=b===~~b?b:b===!0?4:0,typeof A=="string"?T.input=i.string2buf(A):e.call(A)==="[object ArrayBuffer]"?T.input=new Uint8Array(A):T.input=A,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new a.Buf8(_),T.next_out=0,T.avail_out=_),(x=l.deflate(T,E))!==1&&x!==u)return this.onEnd(x),!(this.ended=!0);T.avail_out!==0&&(T.avail_in!==0||E!==4&&E!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(a.shrinkBuf(T.output,T.next_out))):this.onData(a.shrinkBuf(T.output,T.next_out)))}while((0<T.avail_in||T.avail_out===0)&&x!==1);return E===4?(x=l.deflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===u):E!==2||(this.onEnd(u),!(T.avail_out=0))},h.prototype.onData=function(A){this.chunks.push(A)},h.prototype.onEnd=function(A){A===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},d.Deflate=h,d.deflate=v,d.deflateRaw=function(A,b){return(b=b||{}).raw=!0,v(A,b)},d.gzip=function(A,b){return(b=b||{}).gzip=!0,v(A,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(p,f,d){"use strict";var l=p("./zlib/inflate"),a=p("./utils/common"),i=p("./utils/strings"),t=p("./zlib/constants"),o=p("./zlib/messages"),e=p("./zlib/zstream"),u=p("./zlib/gzheader"),r=Object.prototype.toString;function s(h){if(!(this instanceof s))return new s(h);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},h||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||h&&h.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&(15&v.windowBits)==0&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e,this.strm.avail_out=0;var A=l.inflateInit2(this.strm,v.windowBits);if(A!==t.Z_OK)throw new Error(o[A]);this.header=new u,l.inflateGetHeader(this.strm,this.header)}function c(h,v){var A=new s(v);if(A.push(h,!0),A.err)throw A.msg||o[A.err];return A.result}s.prototype.push=function(h,v){var A,b,x,E,T,_,C=this.strm,w=this.options.chunkSize,O=this.options.dictionary,I=!1;if(this.ended)return!1;b=v===~~v?v:v===!0?t.Z_FINISH:t.Z_NO_FLUSH,typeof h=="string"?C.input=i.binstring2buf(h):r.call(h)==="[object ArrayBuffer]"?C.input=new Uint8Array(h):C.input=h,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new a.Buf8(w),C.next_out=0,C.avail_out=w),(A=l.inflate(C,t.Z_NO_FLUSH))===t.Z_NEED_DICT&&O&&(_=typeof O=="string"?i.string2buf(O):r.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,A=l.inflateSetDictionary(this.strm,_)),A===t.Z_BUF_ERROR&&I===!0&&(A=t.Z_OK,I=!1),A!==t.Z_STREAM_END&&A!==t.Z_OK)return this.onEnd(A),!(this.ended=!0);C.next_out&&(C.avail_out!==0&&A!==t.Z_STREAM_END&&(C.avail_in!==0||b!==t.Z_FINISH&&b!==t.Z_SYNC_FLUSH)||(this.options.to==="string"?(x=i.utf8border(C.output,C.next_out),E=C.next_out-x,T=i.buf2string(C.output,x),C.next_out=E,C.avail_out=w-E,E&&a.arraySet(C.output,C.output,x,E,0),this.onData(T)):this.onData(a.shrinkBuf(C.output,C.next_out)))),C.avail_in===0&&C.avail_out===0&&(I=!0)}while((0<C.avail_in||C.avail_out===0)&&A!==t.Z_STREAM_END);return A===t.Z_STREAM_END&&(b=t.Z_FINISH),b===t.Z_FINISH?(A=l.inflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===t.Z_OK):b!==t.Z_SYNC_FLUSH||(this.onEnd(t.Z_OK),!(C.avail_out=0))},s.prototype.onData=function(h){this.chunks.push(h)},s.prototype.onEnd=function(h){h===t.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},d.Inflate=s,d.inflate=c,d.inflateRaw=function(h,v){return(v=v||{}).raw=!0,c(h,v)},d.ungzip=c},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(p,f,d){"use strict";var l=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";d.assign=function(t){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var e=o.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])}}return t},d.shrinkBuf=function(t,o){return t.length===o?t:t.subarray?t.subarray(0,o):(t.length=o,t)};var a={arraySet:function(o,e,u,r,s){if(e.subarray&&o.subarray)o.set(e.subarray(u,u+r),s);else for(var c=0;c<r;c++)o[s+c]=e[u+c]},flattenChunks:function(o){var e,u,r,s,c,h;for(e=r=0,u=o.length;e<u;e++)r+=o[e].length;for(h=new Uint8Array(r),e=s=0,u=o.length;e<u;e++)c=o[e],h.set(c,s),s+=c.length;return h}},i={arraySet:function(o,e,u,r,s){for(var c=0;c<r;c++)o[s+c]=e[u+c]},flattenChunks:function(o){return[].concat.apply([],o)}};d.setTyped=function(t){t?(d.Buf8=Uint8Array,d.Buf16=Uint16Array,d.Buf32=Int32Array,d.assign(d,a)):(d.Buf8=Array,d.Buf16=Array,d.Buf32=Array,d.assign(d,i))},d.setTyped(l)},{}],42:[function(p,f,d){"use strict";var l=p("./common"),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(u){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){i=!1}for(var t=new l.Buf8(256),o=0;o<256;o++)t[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function e(u,r){if(r<65537&&(u.subarray&&i||!u.subarray&&a))return String.fromCharCode.apply(null,l.shrinkBuf(u,r));for(var s="",c=0;c<r;c++)s+=String.fromCharCode(u[c]);return s}t[254]=t[254]=1,d.string2buf=function(u){var r,s,c,h,v,A=u.length,b=0;for(h=0;h<A;h++)(64512&(s=u.charCodeAt(h)))==55296&&h+1<A&&(64512&(c=u.charCodeAt(h+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),h++),b+=s<128?1:s<2048?2:s<65536?3:4;for(r=new l.Buf8(b),h=v=0;v<b;h++)(64512&(s=u.charCodeAt(h)))==55296&&h+1<A&&(64512&(c=u.charCodeAt(h+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),h++),s<128?r[v++]=s:(s<2048?r[v++]=192|s>>>6:(s<65536?r[v++]=224|s>>>12:(r[v++]=240|s>>>18,r[v++]=128|s>>>12&63),r[v++]=128|s>>>6&63),r[v++]=128|63&s);return r},d.buf2binstring=function(u){return e(u,u.length)},d.binstring2buf=function(u){for(var r=new l.Buf8(u.length),s=0,c=r.length;s<c;s++)r[s]=u.charCodeAt(s);return r},d.buf2string=function(u,r){var s,c,h,v,A=r||u.length,b=new Array(2*A);for(s=c=0;s<A;)if((h=u[s++])<128)b[c++]=h;else if(4<(v=t[h]))b[c++]=65533,s+=v-1;else{for(h&=v===2?31:v===3?15:7;1<v&&s<A;)h=h<<6|63&u[s++],v--;1<v?b[c++]=65533:h<65536?b[c++]=h:(h-=65536,b[c++]=55296|h>>10&1023,b[c++]=56320|1023&h)}return e(b,c)},d.utf8border=function(u,r){var s;for((r=r||u.length)>u.length&&(r=u.length),s=r-1;0<=s&&(192&u[s])==128;)s--;return s<0||s===0?r:s+t[u[s]]>r?s:r}},{"./common":41}],43:[function(p,f,d){"use strict";f.exports=function(l,a,i,t){for(var o=65535&l|0,e=l>>>16&65535|0,u=0;i!==0;){for(i-=u=2e3<i?2e3:i;e=e+(o=o+a[t++]|0)|0,--u;);o%=65521,e%=65521}return o|e<<16|0}},{}],44:[function(p,f,d){"use strict";f.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(p,f,d){"use strict";var l=function(){for(var a,i=[],t=0;t<256;t++){a=t;for(var o=0;o<8;o++)a=1&a?3988292384^a>>>1:a>>>1;i[t]=a}return i}();f.exports=function(a,i,t,o){var e=l,u=o+t;a^=-1;for(var r=o;r<u;r++)a=a>>>8^e[255&(a^i[r])];return-1^a}},{}],46:[function(p,f,d){"use strict";var l,a=p("../utils/common"),i=p("./trees"),t=p("./adler32"),o=p("./crc32"),e=p("./messages"),u=0,r=4,s=0,c=-2,h=-1,v=4,A=2,b=8,x=9,E=286,T=30,_=19,C=2*E+1,w=15,O=3,I=258,k=I+O+1,M=42,U=113,P=1,X=2,F=3,j=4;function K(ue,et){return ue.msg=e[et],et}function z(ue){return(ue<<1)-(4<ue?9:0)}function V(ue){for(var et=ue.length;0<=--et;)ue[et]=0}function Q(ue){var et=ue.state,he=et.pending;he>ue.avail_out&&(he=ue.avail_out),he!==0&&(a.arraySet(ue.output,et.pending_buf,et.pending_out,he,ue.next_out),ue.next_out+=he,et.pending_out+=he,ue.total_out+=he,ue.avail_out-=he,et.pending-=he,et.pending===0&&(et.pending_out=0))}function G(ue,et){i._tr_flush_block(ue,0<=ue.block_start?ue.block_start:-1,ue.strstart-ue.block_start,et),ue.block_start=ue.strstart,Q(ue.strm)}function te(ue,et){ue.pending_buf[ue.pending++]=et}function q(ue,et){ue.pending_buf[ue.pending++]=et>>>8&255,ue.pending_buf[ue.pending++]=255&et}function se(ue,et){var he,J,Y=ue.max_chain_length,$=ue.strstart,de=ue.prev_length,be=ue.nice_match,Te=ue.strstart>ue.w_size-k?ue.strstart-(ue.w_size-k):0,Be=ue.window,fe=ue.w_mask,xe=ue.prev,ke=ue.strstart+I,nt=Be[$+de-1],Ct=Be[$+de];ue.prev_length>=ue.good_match&&(Y>>=2),be>ue.lookahead&&(be=ue.lookahead);do if(Be[(he=et)+de]===Ct&&Be[he+de-1]===nt&&Be[he]===Be[$]&&Be[++he]===Be[$+1]){$+=2,he++;do;while(Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&$<ke);if(J=I-(ke-$),$=ke-I,de<J){if(ue.match_start=et,be<=(de=J))break;nt=Be[$+de-1],Ct=Be[$+de]}}while((et=xe[et&fe])>Te&&--Y!=0);return de<=ue.lookahead?de:ue.lookahead}function re(ue){var et,he,J,Y,$,de,be,Te,Be,fe,xe=ue.w_size;do{if(Y=ue.window_size-ue.lookahead-ue.strstart,ue.strstart>=xe+(xe-k)){for(a.arraySet(ue.window,ue.window,xe,xe,0),ue.match_start-=xe,ue.strstart-=xe,ue.block_start-=xe,et=he=ue.hash_size;J=ue.head[--et],ue.head[et]=xe<=J?J-xe:0,--he;);for(et=he=xe;J=ue.prev[--et],ue.prev[et]=xe<=J?J-xe:0,--he;);Y+=xe}if(ue.strm.avail_in===0)break;if(de=ue.strm,be=ue.window,Te=ue.strstart+ue.lookahead,Be=Y,fe=void 0,fe=de.avail_in,Be<fe&&(fe=Be),he=fe===0?0:(de.avail_in-=fe,a.arraySet(be,de.input,de.next_in,fe,Te),de.state.wrap===1?de.adler=t(de.adler,be,fe,Te):de.state.wrap===2&&(de.adler=o(de.adler,be,fe,Te)),de.next_in+=fe,de.total_in+=fe,fe),ue.lookahead+=he,ue.lookahead+ue.insert>=O)for($=ue.strstart-ue.insert,ue.ins_h=ue.window[$],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[$+1])&ue.hash_mask;ue.insert&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[$+O-1])&ue.hash_mask,ue.prev[$&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=$,$++,ue.insert--,!(ue.lookahead+ue.insert<O)););}while(ue.lookahead<k&&ue.strm.avail_in!==0)}function we(ue,et){for(var he,J;;){if(ue.lookahead<k){if(re(ue),ue.lookahead<k&&et===u)return P;if(ue.lookahead===0)break}if(he=0,ue.lookahead>=O&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+O-1])&ue.hash_mask,he=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),he!==0&&ue.strstart-he<=ue.w_size-k&&(ue.match_length=se(ue,he)),ue.match_length>=O)if(J=i._tr_tally(ue,ue.strstart-ue.match_start,ue.match_length-O),ue.lookahead-=ue.match_length,ue.match_length<=ue.max_lazy_match&&ue.lookahead>=O){for(ue.match_length--;ue.strstart++,ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+O-1])&ue.hash_mask,he=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart,--ue.match_length!=0;);ue.strstart++}else ue.strstart+=ue.match_length,ue.match_length=0,ue.ins_h=ue.window[ue.strstart],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+1])&ue.hash_mask;else J=i._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++;if(J&&(G(ue,!1),ue.strm.avail_out===0))return P}return ue.insert=ue.strstart<O-1?ue.strstart:O-1,et===r?(G(ue,!0),ue.strm.avail_out===0?F:j):ue.last_lit&&(G(ue,!1),ue.strm.avail_out===0)?P:X}function Oe(ue,et){for(var he,J,Y;;){if(ue.lookahead<k){if(re(ue),ue.lookahead<k&&et===u)return P;if(ue.lookahead===0)break}if(he=0,ue.lookahead>=O&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+O-1])&ue.hash_mask,he=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),ue.prev_length=ue.match_length,ue.prev_match=ue.match_start,ue.match_length=O-1,he!==0&&ue.prev_length<ue.max_lazy_match&&ue.strstart-he<=ue.w_size-k&&(ue.match_length=se(ue,he),ue.match_length<=5&&(ue.strategy===1||ue.match_length===O&&4096<ue.strstart-ue.match_start)&&(ue.match_length=O-1)),ue.prev_length>=O&&ue.match_length<=ue.prev_length){for(Y=ue.strstart+ue.lookahead-O,J=i._tr_tally(ue,ue.strstart-1-ue.prev_match,ue.prev_length-O),ue.lookahead-=ue.prev_length-1,ue.prev_length-=2;++ue.strstart<=Y&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+O-1])&ue.hash_mask,he=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),--ue.prev_length!=0;);if(ue.match_available=0,ue.match_length=O-1,ue.strstart++,J&&(G(ue,!1),ue.strm.avail_out===0))return P}else if(ue.match_available){if((J=i._tr_tally(ue,0,ue.window[ue.strstart-1]))&&G(ue,!1),ue.strstart++,ue.lookahead--,ue.strm.avail_out===0)return P}else ue.match_available=1,ue.strstart++,ue.lookahead--}return ue.match_available&&(J=i._tr_tally(ue,0,ue.window[ue.strstart-1]),ue.match_available=0),ue.insert=ue.strstart<O-1?ue.strstart:O-1,et===r?(G(ue,!0),ue.strm.avail_out===0?F:j):ue.last_lit&&(G(ue,!1),ue.strm.avail_out===0)?P:X}function Me(ue,et,he,J,Y){this.good_length=ue,this.max_lazy=et,this.nice_length=he,this.max_chain=J,this.func=Y}function Qe(){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 a.Buf16(2*C),this.dyn_dtree=new a.Buf16(2*(2*T+1)),this.bl_tree=new a.Buf16(2*(2*_+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(w+1),this.heap=new a.Buf16(2*E+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*E+1),V(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 Ve(ue){var et;return ue&&ue.state?(ue.total_in=ue.total_out=0,ue.data_type=A,(et=ue.state).pending=0,et.pending_out=0,et.wrap<0&&(et.wrap=-et.wrap),et.status=et.wrap?M:U,ue.adler=et.wrap===2?0:1,et.last_flush=u,i._tr_init(et),s):K(ue,c)}function dt(ue){var et=Ve(ue);return et===s&&function(he){he.window_size=2*he.w_size,V(he.head),he.max_lazy_match=l[he.level].max_lazy,he.good_match=l[he.level].good_length,he.nice_match=l[he.level].nice_length,he.max_chain_length=l[he.level].max_chain,he.strstart=0,he.block_start=0,he.lookahead=0,he.insert=0,he.match_length=he.prev_length=O-1,he.match_available=0,he.ins_h=0}(ue.state),et}function Fe(ue,et,he,J,Y,$){if(!ue)return c;var de=1;if(et===h&&(et=6),J<0?(de=0,J=-J):15<J&&(de=2,J-=16),Y<1||x<Y||he!==b||J<8||15<J||et<0||9<et||$<0||v<$)return K(ue,c);J===8&&(J=9);var be=new Qe;return(ue.state=be).strm=ue,be.wrap=de,be.gzhead=null,be.w_bits=J,be.w_size=1<<be.w_bits,be.w_mask=be.w_size-1,be.hash_bits=Y+7,be.hash_size=1<<be.hash_bits,be.hash_mask=be.hash_size-1,be.hash_shift=~~((be.hash_bits+O-1)/O),be.window=new a.Buf8(2*be.w_size),be.head=new a.Buf16(be.hash_size),be.prev=new a.Buf16(be.w_size),be.lit_bufsize=1<<Y+6,be.pending_buf_size=4*be.lit_bufsize,be.pending_buf=new a.Buf8(be.pending_buf_size),be.d_buf=1*be.lit_bufsize,be.l_buf=3*be.lit_bufsize,be.level=et,be.strategy=$,be.method=he,dt(ue)}l=[new Me(0,0,0,0,function(ue,et){var he=65535;for(he>ue.pending_buf_size-5&&(he=ue.pending_buf_size-5);;){if(ue.lookahead<=1){if(re(ue),ue.lookahead===0&&et===u)return P;if(ue.lookahead===0)break}ue.strstart+=ue.lookahead,ue.lookahead=0;var J=ue.block_start+he;if((ue.strstart===0||ue.strstart>=J)&&(ue.lookahead=ue.strstart-J,ue.strstart=J,G(ue,!1),ue.strm.avail_out===0))return P;if(ue.strstart-ue.block_start>=ue.w_size-k&&(G(ue,!1),ue.strm.avail_out===0))return P}return ue.insert=0,et===r?(G(ue,!0),ue.strm.avail_out===0?F:j):(ue.strstart>ue.block_start&&(G(ue,!1),ue.strm.avail_out),P)}),new Me(4,4,8,4,we),new Me(4,5,16,8,we),new Me(4,6,32,32,we),new Me(4,4,16,16,Oe),new Me(8,16,32,32,Oe),new Me(8,16,128,128,Oe),new Me(8,32,128,256,Oe),new Me(32,128,258,1024,Oe),new Me(32,258,258,4096,Oe)],d.deflateInit=function(ue,et){return Fe(ue,et,b,15,8,0)},d.deflateInit2=Fe,d.deflateReset=dt,d.deflateResetKeep=Ve,d.deflateSetHeader=function(ue,et){return ue&&ue.state?ue.state.wrap!==2?c:(ue.state.gzhead=et,s):c},d.deflate=function(ue,et){var he,J,Y,$;if(!ue||!ue.state||5<et||et<0)return ue?K(ue,c):c;if(J=ue.state,!ue.output||!ue.input&&ue.avail_in!==0||J.status===666&&et!==r)return K(ue,ue.avail_out===0?-5:c);if(J.strm=ue,he=J.last_flush,J.last_flush=et,J.status===M)if(J.wrap===2)ue.adler=0,te(J,31),te(J,139),te(J,8),J.gzhead?(te(J,(J.gzhead.text?1:0)+(J.gzhead.hcrc?2:0)+(J.gzhead.extra?4:0)+(J.gzhead.name?8:0)+(J.gzhead.comment?16:0)),te(J,255&J.gzhead.time),te(J,J.gzhead.time>>8&255),te(J,J.gzhead.time>>16&255),te(J,J.gzhead.time>>24&255),te(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),te(J,255&J.gzhead.os),J.gzhead.extra&&J.gzhead.extra.length&&(te(J,255&J.gzhead.extra.length),te(J,J.gzhead.extra.length>>8&255)),J.gzhead.hcrc&&(ue.adler=o(ue.adler,J.pending_buf,J.pending,0)),J.gzindex=0,J.status=69):(te(J,0),te(J,0),te(J,0),te(J,0),te(J,0),te(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),te(J,3),J.status=U);else{var de=b+(J.w_bits-8<<4)<<8;de|=(2<=J.strategy||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6,J.strstart!==0&&(de|=32),de+=31-de%31,J.status=U,q(J,de),J.strstart!==0&&(q(J,ue.adler>>>16),q(J,65535&ue.adler)),ue.adler=1}if(J.status===69)if(J.gzhead.extra){for(Y=J.pending;J.gzindex<(65535&J.gzhead.extra.length)&&(J.pending!==J.pending_buf_size||(J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),Q(ue),Y=J.pending,J.pending!==J.pending_buf_size));)te(J,255&J.gzhead.extra[J.gzindex]),J.gzindex++;J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),J.gzindex===J.gzhead.extra.length&&(J.gzindex=0,J.status=73)}else J.status=73;if(J.status===73)if(J.gzhead.name){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),Q(ue),Y=J.pending,J.pending===J.pending_buf_size)){$=1;break}$=J.gzindex<J.gzhead.name.length?255&J.gzhead.name.charCodeAt(J.gzindex++):0,te(J,$)}while($!==0);J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),$===0&&(J.gzindex=0,J.status=91)}else J.status=91;if(J.status===91)if(J.gzhead.comment){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),Q(ue),Y=J.pending,J.pending===J.pending_buf_size)){$=1;break}$=J.gzindex<J.gzhead.comment.length?255&J.gzhead.comment.charCodeAt(J.gzindex++):0,te(J,$)}while($!==0);J.gzhead.hcrc&&J.pending>Y&&(ue.adler=o(ue.adler,J.pending_buf,J.pending-Y,Y)),$===0&&(J.status=103)}else J.status=103;if(J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&Q(ue),J.pending+2<=J.pending_buf_size&&(te(J,255&ue.adler),te(J,ue.adler>>8&255),ue.adler=0,J.status=U)):J.status=U),J.pending!==0){if(Q(ue),ue.avail_out===0)return J.last_flush=-1,s}else if(ue.avail_in===0&&z(et)<=z(he)&&et!==r)return K(ue,-5);if(J.status===666&&ue.avail_in!==0)return K(ue,-5);if(ue.avail_in!==0||J.lookahead!==0||et!==u&&J.status!==666){var be=J.strategy===2?function(Te,Be){for(var fe;;){if(Te.lookahead===0&&(re(Te),Te.lookahead===0)){if(Be===u)return P;break}if(Te.match_length=0,fe=i._tr_tally(Te,0,Te.window[Te.strstart]),Te.lookahead--,Te.strstart++,fe&&(G(Te,!1),Te.strm.avail_out===0))return P}return Te.insert=0,Be===r?(G(Te,!0),Te.strm.avail_out===0?F:j):Te.last_lit&&(G(Te,!1),Te.strm.avail_out===0)?P:X}(J,et):J.strategy===3?function(Te,Be){for(var fe,xe,ke,nt,Ct=Te.window;;){if(Te.lookahead<=I){if(re(Te),Te.lookahead<=I&&Be===u)return P;if(Te.lookahead===0)break}if(Te.match_length=0,Te.lookahead>=O&&0<Te.strstart&&(xe=Ct[ke=Te.strstart-1])===Ct[++ke]&&xe===Ct[++ke]&&xe===Ct[++ke]){nt=Te.strstart+I;do;while(xe===Ct[++ke]&&xe===Ct[++ke]&&xe===Ct[++ke]&&xe===Ct[++ke]&&xe===Ct[++ke]&&xe===Ct[++ke]&&xe===Ct[++ke]&&xe===Ct[++ke]&&ke<nt);Te.match_length=I-(nt-ke),Te.match_length>Te.lookahead&&(Te.match_length=Te.lookahead)}if(Te.match_length>=O?(fe=i._tr_tally(Te,1,Te.match_length-O),Te.lookahead-=Te.match_length,Te.strstart+=Te.match_length,Te.match_length=0):(fe=i._tr_tally(Te,0,Te.window[Te.strstart]),Te.lookahead--,Te.strstart++),fe&&(G(Te,!1),Te.strm.avail_out===0))return P}return Te.insert=0,Be===r?(G(Te,!0),Te.strm.avail_out===0?F:j):Te.last_lit&&(G(Te,!1),Te.strm.avail_out===0)?P:X}(J,et):l[J.level].func(J,et);if(be!==F&&be!==j||(J.status=666),be===P||be===F)return ue.avail_out===0&&(J.last_flush=-1),s;if(be===X&&(et===1?i._tr_align(J):et!==5&&(i._tr_stored_block(J,0,0,!1),et===3&&(V(J.head),J.lookahead===0&&(J.strstart=0,J.block_start=0,J.insert=0))),Q(ue),ue.avail_out===0))return J.last_flush=-1,s}return et!==r?s:J.wrap<=0?1:(J.wrap===2?(te(J,255&ue.adler),te(J,ue.adler>>8&255),te(J,ue.adler>>16&255),te(J,ue.adler>>24&255),te(J,255&ue.total_in),te(J,ue.total_in>>8&255),te(J,ue.total_in>>16&255),te(J,ue.total_in>>24&255)):(q(J,ue.adler>>>16),q(J,65535&ue.adler)),Q(ue),0<J.wrap&&(J.wrap=-J.wrap),J.pending!==0?s:1)},d.deflateEnd=function(ue){var et;return ue&&ue.state?(et=ue.state.status)!==M&&et!==69&&et!==73&&et!==91&&et!==103&&et!==U&&et!==666?K(ue,c):(ue.state=null,et===U?K(ue,-3):s):c},d.deflateSetDictionary=function(ue,et){var he,J,Y,$,de,be,Te,Be,fe=et.length;if(!ue||!ue.state)return c;if(($=(he=ue.state).wrap)===2||$===1&&he.status!==M||he.lookahead)return c;for($===1&&(ue.adler=t(ue.adler,et,fe,0)),he.wrap=0,fe>=he.w_size&&($===0&&(V(he.head),he.strstart=0,he.block_start=0,he.insert=0),Be=new a.Buf8(he.w_size),a.arraySet(Be,et,fe-he.w_size,he.w_size,0),et=Be,fe=he.w_size),de=ue.avail_in,be=ue.next_in,Te=ue.input,ue.avail_in=fe,ue.next_in=0,ue.input=et,re(he);he.lookahead>=O;){for(J=he.strstart,Y=he.lookahead-(O-1);he.ins_h=(he.ins_h<<he.hash_shift^he.window[J+O-1])&he.hash_mask,he.prev[J&he.w_mask]=he.head[he.ins_h],he.head[he.ins_h]=J,J++,--Y;);he.strstart=J,he.lookahead=O-1,re(he)}return he.strstart+=he.lookahead,he.block_start=he.strstart,he.insert=he.lookahead,he.lookahead=0,he.match_length=he.prev_length=O-1,he.match_available=0,ue.next_in=be,ue.input=Te,ue.avail_in=de,he.wrap=$,s},d.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(p,f,d){"use strict";f.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(p,f,d){"use strict";f.exports=function(l,a){var i,t,o,e,u,r,s,c,h,v,A,b,x,E,T,_,C,w,O,I,k,M,U,P,X;i=l.state,t=l.next_in,P=l.input,o=t+(l.avail_in-5),e=l.next_out,X=l.output,u=e-(a-l.avail_out),r=e+(l.avail_out-257),s=i.dmax,c=i.wsize,h=i.whave,v=i.wnext,A=i.window,b=i.hold,x=i.bits,E=i.lencode,T=i.distcode,_=(1<<i.lenbits)-1,C=(1<<i.distbits)-1;e:do{x<15&&(b+=P[t++]<<x,x+=8,b+=P[t++]<<x,x+=8),w=E[b&_];t:for(;;){if(b>>>=O=w>>>24,x-=O,(O=w>>>16&255)===0)X[e++]=65535&w;else{if(!(16&O)){if((64&O)==0){w=E[(65535&w)+(b&(1<<O)-1)];continue t}if(32&O){i.mode=12;break e}l.msg="invalid literal/length code",i.mode=30;break e}I=65535&w,(O&=15)&&(x<O&&(b+=P[t++]<<x,x+=8),I+=b&(1<<O)-1,b>>>=O,x-=O),x<15&&(b+=P[t++]<<x,x+=8,b+=P[t++]<<x,x+=8),w=T[b&C];r:for(;;){if(b>>>=O=w>>>24,x-=O,!(16&(O=w>>>16&255))){if((64&O)==0){w=T[(65535&w)+(b&(1<<O)-1)];continue r}l.msg="invalid distance code",i.mode=30;break e}if(k=65535&w,x<(O&=15)&&(b+=P[t++]<<x,(x+=8)<O&&(b+=P[t++]<<x,x+=8)),s<(k+=b&(1<<O)-1)){l.msg="invalid distance too far back",i.mode=30;break e}if(b>>>=O,x-=O,(O=e-u)<k){if(h<(O=k-O)&&i.sane){l.msg="invalid distance too far back",i.mode=30;break e}if(U=A,(M=0)===v){if(M+=c-O,O<I){for(I-=O;X[e++]=A[M++],--O;);M=e-k,U=X}}else if(v<O){if(M+=c+v-O,(O-=v)<I){for(I-=O;X[e++]=A[M++],--O;);if(M=0,v<I){for(I-=O=v;X[e++]=A[M++],--O;);M=e-k,U=X}}}else if(M+=v-O,O<I){for(I-=O;X[e++]=A[M++],--O;);M=e-k,U=X}for(;2<I;)X[e++]=U[M++],X[e++]=U[M++],X[e++]=U[M++],I-=3;I&&(X[e++]=U[M++],1<I&&(X[e++]=U[M++]))}else{for(M=e-k;X[e++]=X[M++],X[e++]=X[M++],X[e++]=X[M++],2<(I-=3););I&&(X[e++]=X[M++],1<I&&(X[e++]=X[M++]))}break}}break}}while(t<o&&e<r);t-=I=x>>3,b&=(1<<(x-=I<<3))-1,l.next_in=t,l.next_out=e,l.avail_in=t<o?o-t+5:5-(t-o),l.avail_out=e<r?r-e+257:257-(e-r),i.hold=b,i.bits=x}},{}],49:[function(p,f,d){"use strict";var l=p("../utils/common"),a=p("./adler32"),i=p("./crc32"),t=p("./inffast"),o=p("./inftrees"),e=1,u=2,r=0,s=-2,c=1,h=852,v=592;function A(M){return(M>>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<24)}function b(){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 l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function x(M){var U;return M&&M.state?(U=M.state,M.total_in=M.total_out=U.total=0,M.msg="",U.wrap&&(M.adler=1&U.wrap),U.mode=c,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new l.Buf32(h),U.distcode=U.distdyn=new l.Buf32(v),U.sane=1,U.back=-1,r):s}function E(M){var U;return M&&M.state?((U=M.state).wsize=0,U.whave=0,U.wnext=0,x(M)):s}function T(M,U){var P,X;return M&&M.state?(X=M.state,U<0?(P=0,U=-U):(P=1+(U>>4),U<48&&(U&=15)),U&&(U<8||15<U)?s:(X.window!==null&&X.wbits!==U&&(X.window=null),X.wrap=P,X.wbits=U,E(M))):s}function _(M,U){var P,X;return M?(X=new b,(M.state=X).window=null,(P=T(M,U))!==r&&(M.state=null),P):s}var C,w,O=!0;function I(M){if(O){var U;for(C=new l.Buf32(512),w=new l.Buf32(32),U=0;U<144;)M.lens[U++]=8;for(;U<256;)M.lens[U++]=9;for(;U<280;)M.lens[U++]=7;for(;U<288;)M.lens[U++]=8;for(o(e,M.lens,0,288,C,0,M.work,{bits:9}),U=0;U<32;)M.lens[U++]=5;o(u,M.lens,0,32,w,0,M.work,{bits:5}),O=!1}M.lencode=C,M.lenbits=9,M.distcode=w,M.distbits=5}function k(M,U,P,X){var F,j=M.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new l.Buf8(j.wsize)),X>=j.wsize?(l.arraySet(j.window,U,P-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(X<(F=j.wsize-j.wnext)&&(F=X),l.arraySet(j.window,U,P-X,F,j.wnext),(X-=F)?(l.arraySet(j.window,U,P-X,X,0),j.wnext=X,j.whave=j.wsize):(j.wnext+=F,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=F))),0}d.inflateReset=E,d.inflateReset2=T,d.inflateResetKeep=x,d.inflateInit=function(M){return _(M,15)},d.inflateInit2=_,d.inflate=function(M,U){var P,X,F,j,K,z,V,Q,G,te,q,se,re,we,Oe,Me,Qe,Ve,dt,Fe,ue,et,he,J,Y=0,$=new l.Buf8(4),de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!M||!M.state||!M.output||!M.input&&M.avail_in!==0)return s;(P=M.state).mode===12&&(P.mode=13),K=M.next_out,F=M.output,V=M.avail_out,j=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,te=z,q=V,et=r;e:for(;;)switch(P.mode){case c:if(P.wrap===0){P.mode=13;break}for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(2&P.wrap&&Q===35615){$[P.check=0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0),G=Q=0,P.mode=2;break}if(P.flags=0,P.head&&(P.head.done=!1),!(1&P.wrap)||(((255&Q)<<8)+(Q>>8))%31){M.msg="incorrect header check",P.mode=30;break}if((15&Q)!=8){M.msg="unknown compression method",P.mode=30;break}if(G-=4,ue=8+(15&(Q>>>=4)),P.wbits===0)P.wbits=ue;else if(ue>P.wbits){M.msg="invalid window size",P.mode=30;break}P.dmax=1<<ue,M.adler=P.check=1,P.mode=512&Q?10:12,G=Q=0;break;case 2:for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(P.flags=Q,(255&P.flags)!=8){M.msg="unknown compression method",P.mode=30;break}if(57344&P.flags){M.msg="unknown header flags set",P.mode=30;break}P.head&&(P.head.text=Q>>8&1),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0,P.mode=3;case 3:for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.head&&(P.head.time=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,$[2]=Q>>>16&255,$[3]=Q>>>24&255,P.check=i(P.check,$,4,0)),G=Q=0,P.mode=4;case 4:for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.head&&(P.head.xflags=255&Q,P.head.os=Q>>8),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0,P.mode=5;case 5:if(1024&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.length=Q,P.head&&(P.head.extra_len=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0}else P.head&&(P.head.extra=null);P.mode=6;case 6:if(1024&P.flags&&(z<(se=P.length)&&(se=z),se&&(P.head&&(ue=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),l.arraySet(P.head.extra,X,j,se,ue)),512&P.flags&&(P.check=i(P.check,X,se,j)),z-=se,j+=se,P.length-=se),P.length))break e;P.length=0,P.mode=7;case 7:if(2048&P.flags){if(z===0)break e;for(se=0;ue=X[j+se++],P.head&&ue&&P.length<65536&&(P.head.name+=String.fromCharCode(ue)),ue&&se<z;);if(512&P.flags&&(P.check=i(P.check,X,se,j)),z-=se,j+=se,ue)break e}else P.head&&(P.head.name=null);P.length=0,P.mode=8;case 8:if(4096&P.flags){if(z===0)break e;for(se=0;ue=X[j+se++],P.head&&ue&&P.length<65536&&(P.head.comment+=String.fromCharCode(ue)),ue&&se<z;);if(512&P.flags&&(P.check=i(P.check,X,se,j)),z-=se,j+=se,ue)break e}else P.head&&(P.head.comment=null);P.mode=9;case 9:if(512&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q!==(65535&P.check)){M.msg="header crc mismatch",P.mode=30;break}G=Q=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),M.adler=P.check=0,P.mode=12;break;case 10:for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}M.adler=P.check=A(Q),G=Q=0,P.mode=11;case 11:if(P.havedict===0)return M.next_out=K,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,2;M.adler=P.check=1,P.mode=12;case 12:if(U===5||U===6)break e;case 13:if(P.last){Q>>>=7&G,G-=7&G,P.mode=27;break}for(;G<3;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}switch(P.last=1&Q,G-=1,3&(Q>>>=1)){case 0:P.mode=14;break;case 1:if(I(P),P.mode=20,U!==6)break;Q>>>=2,G-=2;break e;case 2:P.mode=17;break;case 3:M.msg="invalid block type",P.mode=30}Q>>>=2,G-=2;break;case 14:for(Q>>>=7&G,G-=7&G;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if((65535&Q)!=(Q>>>16^65535)){M.msg="invalid stored block lengths",P.mode=30;break}if(P.length=65535&Q,G=Q=0,P.mode=15,U===6)break e;case 15:P.mode=16;case 16:if(se=P.length){if(z<se&&(se=z),V<se&&(se=V),se===0)break e;l.arraySet(F,X,j,se,K),z-=se,j+=se,V-=se,K+=se,P.length-=se;break}P.mode=12;break;case 17:for(;G<14;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(P.nlen=257+(31&Q),Q>>>=5,G-=5,P.ndist=1+(31&Q),Q>>>=5,G-=5,P.ncode=4+(15&Q),Q>>>=4,G-=4,286<P.nlen||30<P.ndist){M.msg="too many length or distance symbols",P.mode=30;break}P.have=0,P.mode=18;case 18:for(;P.have<P.ncode;){for(;G<3;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.lens[de[P.have++]]=7&Q,Q>>>=3,G-=3}for(;P.have<19;)P.lens[de[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,he={bits:P.lenbits},et=o(0,P.lens,0,19,P.lencode,0,P.work,he),P.lenbits=he.bits,et){M.msg="invalid code lengths set",P.mode=30;break}P.have=0,P.mode=19;case 19:for(;P.have<P.nlen+P.ndist;){for(;Me=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Qe=65535&Y,!((Oe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Qe<16)Q>>>=Oe,G-=Oe,P.lens[P.have++]=Qe;else{if(Qe===16){for(J=Oe+2;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q>>>=Oe,G-=Oe,P.have===0){M.msg="invalid bit length repeat",P.mode=30;break}ue=P.lens[P.have-1],se=3+(3&Q),Q>>>=2,G-=2}else if(Qe===17){for(J=Oe+3;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}G-=Oe,ue=0,se=3+(7&(Q>>>=Oe)),Q>>>=3,G-=3}else{for(J=Oe+7;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}G-=Oe,ue=0,se=11+(127&(Q>>>=Oe)),Q>>>=7,G-=7}if(P.have+se>P.nlen+P.ndist){M.msg="invalid bit length repeat",P.mode=30;break}for(;se--;)P.lens[P.have++]=ue}}if(P.mode===30)break;if(P.lens[256]===0){M.msg="invalid code -- missing end-of-block",P.mode=30;break}if(P.lenbits=9,he={bits:P.lenbits},et=o(e,P.lens,0,P.nlen,P.lencode,0,P.work,he),P.lenbits=he.bits,et){M.msg="invalid literal/lengths set",P.mode=30;break}if(P.distbits=6,P.distcode=P.distdyn,he={bits:P.distbits},et=o(u,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,he),P.distbits=he.bits,et){M.msg="invalid distances set",P.mode=30;break}if(P.mode=20,U===6)break e;case 20:P.mode=21;case 21:if(6<=z&&258<=V){M.next_out=K,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,t(M,q),K=M.next_out,F=M.output,V=M.avail_out,j=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,P.mode===12&&(P.back=-1);break}for(P.back=0;Me=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Qe=65535&Y,!((Oe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Me&&(240&Me)==0){for(Ve=Oe,dt=Me,Fe=Qe;Me=(Y=P.lencode[Fe+((Q&(1<<Ve+dt)-1)>>Ve)])>>>16&255,Qe=65535&Y,!(Ve+(Oe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}Q>>>=Ve,G-=Ve,P.back+=Ve}if(Q>>>=Oe,G-=Oe,P.back+=Oe,P.length=Qe,Me===0){P.mode=26;break}if(32&Me){P.back=-1,P.mode=12;break}if(64&Me){M.msg="invalid literal/length code",P.mode=30;break}P.extra=15&Me,P.mode=22;case 22:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.length+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}P.was=P.length,P.mode=23;case 23:for(;Me=(Y=P.distcode[Q&(1<<P.distbits)-1])>>>16&255,Qe=65535&Y,!((Oe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if((240&Me)==0){for(Ve=Oe,dt=Me,Fe=Qe;Me=(Y=P.distcode[Fe+((Q&(1<<Ve+dt)-1)>>Ve)])>>>16&255,Qe=65535&Y,!(Ve+(Oe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}Q>>>=Ve,G-=Ve,P.back+=Ve}if(Q>>>=Oe,G-=Oe,P.back+=Oe,64&Me){M.msg="invalid distance code",P.mode=30;break}P.offset=Qe,P.extra=15&Me,P.mode=24;case 24:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.offset+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}if(P.offset>P.dmax){M.msg="invalid distance too far back",P.mode=30;break}P.mode=25;case 25:if(V===0)break e;if(se=q-V,P.offset>se){if((se=P.offset-se)>P.whave&&P.sane){M.msg="invalid distance too far back",P.mode=30;break}re=se>P.wnext?(se-=P.wnext,P.wsize-se):P.wnext-se,se>P.length&&(se=P.length),we=P.window}else we=F,re=K-P.offset,se=P.length;for(V<se&&(se=V),V-=se,P.length-=se;F[K++]=we[re++],--se;);P.length===0&&(P.mode=21);break;case 26:if(V===0)break e;F[K++]=P.length,V--,P.mode=21;break;case 27:if(P.wrap){for(;G<32;){if(z===0)break e;z--,Q|=X[j++]<<G,G+=8}if(q-=V,M.total_out+=q,P.total+=q,q&&(M.adler=P.check=P.flags?i(P.check,F,q,K-q):a(P.check,F,q,K-q)),q=V,(P.flags?Q:A(Q))!==P.check){M.msg="incorrect data check",P.mode=30;break}G=Q=0}P.mode=28;case 28:if(P.wrap&&P.flags){for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q!==(4294967295&P.total)){M.msg="incorrect length check",P.mode=30;break}G=Q=0}P.mode=29;case 29:et=1;break e;case 30:et=-3;break e;case 31:return-4;case 32:default:return s}return M.next_out=K,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,(P.wsize||q!==M.avail_out&&P.mode<30&&(P.mode<27||U!==4))&&k(M,M.output,M.next_out,q-M.avail_out)?(P.mode=31,-4):(te-=M.avail_in,q-=M.avail_out,M.total_in+=te,M.total_out+=q,P.total+=q,P.wrap&&q&&(M.adler=P.check=P.flags?i(P.check,F,q,M.next_out-q):a(P.check,F,q,M.next_out-q)),M.data_type=P.bits+(P.last?64:0)+(P.mode===12?128:0)+(P.mode===20||P.mode===15?256:0),(te==0&&q===0||U===4)&&et===r&&(et=-5),et)},d.inflateEnd=function(M){if(!M||!M.state)return s;var U=M.state;return U.window&&(U.window=null),M.state=null,r},d.inflateGetHeader=function(M,U){var P;return M&&M.state?(2&(P=M.state).wrap)==0?s:((P.head=U).done=!1,r):s},d.inflateSetDictionary=function(M,U){var P,X=U.length;return M&&M.state?(P=M.state).wrap!==0&&P.mode!==11?s:P.mode===11&&a(1,U,X,0)!==P.check?-3:k(M,U,X,X)?(P.mode=31,-4):(P.havedict=1,r):s},d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(p,f,d){"use strict";var l=p("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],t=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];f.exports=function(e,u,r,s,c,h,v,A){var b,x,E,T,_,C,w,O,I,k=A.bits,M=0,U=0,P=0,X=0,F=0,j=0,K=0,z=0,V=0,Q=0,G=null,te=0,q=new l.Buf16(16),se=new l.Buf16(16),re=null,we=0;for(M=0;M<=15;M++)q[M]=0;for(U=0;U<s;U++)q[u[r+U]]++;for(F=k,X=15;1<=X&&q[X]===0;X--);if(X<F&&(F=X),X===0)return c[h++]=20971520,c[h++]=20971520,A.bits=1,0;for(P=1;P<X&&q[P]===0;P++);for(F<P&&(F=P),M=z=1;M<=15;M++)if(z<<=1,(z-=q[M])<0)return-1;if(0<z&&(e===0||X!==1))return-1;for(se[1]=0,M=1;M<15;M++)se[M+1]=se[M]+q[M];for(U=0;U<s;U++)u[r+U]!==0&&(v[se[u[r+U]]++]=U);if(C=e===0?(G=re=v,19):e===1?(G=a,te-=257,re=i,we-=257,256):(G=t,re=o,-1),M=P,_=h,K=U=Q=0,E=-1,T=(V=1<<(j=F))-1,e===1&&852<V||e===2&&592<V)return 1;for(;;){for(w=M-K,I=v[U]<C?(O=0,v[U]):v[U]>C?(O=re[we+v[U]],G[te+v[U]]):(O=96,0),b=1<<M-K,P=x=1<<j;c[_+(Q>>K)+(x-=b)]=w<<24|O<<16|I|0,x!==0;);for(b=1<<M-1;Q&b;)b>>=1;if(b!==0?(Q&=b-1,Q+=b):Q=0,U++,--q[M]==0){if(M===X)break;M=u[r+v[U]]}if(F<M&&(Q&T)!==E){for(K===0&&(K=F),_+=P,z=1<<(j=M-K);j+K<X&&!((z-=q[j+K])<=0);)j++,z<<=1;if(V+=1<<j,e===1&&852<V||e===2&&592<V)return 1;c[E=Q&T]=F<<24|j<<16|_-h|0}}return Q!==0&&(c[_+Q]=M-K<<24|64<<16|0),A.bits=F,0}},{"../utils/common":41}],51:[function(p,f,d){"use strict";f.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(p,f,d){"use strict";var l=p("../utils/common"),a=0,i=1;function t(Y){for(var $=Y.length;0<=--$;)Y[$]=0}var o=0,e=29,u=256,r=u+1+e,s=30,c=19,h=2*r+1,v=15,A=16,b=7,x=256,E=16,T=17,_=18,C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],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],k=new Array(2*(r+2));t(k);var M=new Array(2*s);t(M);var U=new Array(512);t(U);var P=new Array(256);t(P);var X=new Array(e);t(X);var F,j,K,z=new Array(s);function V(Y,$,de,be,Te){this.static_tree=Y,this.extra_bits=$,this.extra_base=de,this.elems=be,this.max_length=Te,this.has_stree=Y&&Y.length}function Q(Y,$){this.dyn_tree=Y,this.max_code=0,this.stat_desc=$}function G(Y){return Y<256?U[Y]:U[256+(Y>>>7)]}function te(Y,$){Y.pending_buf[Y.pending++]=255&$,Y.pending_buf[Y.pending++]=$>>>8&255}function q(Y,$,de){Y.bi_valid>A-de?(Y.bi_buf|=$<<Y.bi_valid&65535,te(Y,Y.bi_buf),Y.bi_buf=$>>A-Y.bi_valid,Y.bi_valid+=de-A):(Y.bi_buf|=$<<Y.bi_valid&65535,Y.bi_valid+=de)}function se(Y,$,de){q(Y,de[2*$],de[2*$+1])}function re(Y,$){for(var de=0;de|=1&Y,Y>>>=1,de<<=1,0<--$;);return de>>>1}function we(Y,$,de){var be,Te,Be=new Array(v+1),fe=0;for(be=1;be<=v;be++)Be[be]=fe=fe+de[be-1]<<1;for(Te=0;Te<=$;Te++){var xe=Y[2*Te+1];xe!==0&&(Y[2*Te]=re(Be[xe]++,xe))}}function Oe(Y){var $;for($=0;$<r;$++)Y.dyn_ltree[2*$]=0;for($=0;$<s;$++)Y.dyn_dtree[2*$]=0;for($=0;$<c;$++)Y.bl_tree[2*$]=0;Y.dyn_ltree[2*x]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Me(Y){8<Y.bi_valid?te(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function Qe(Y,$,de,be){var Te=2*$,Be=2*de;return Y[Te]<Y[Be]||Y[Te]===Y[Be]&&be[$]<=be[de]}function Ve(Y,$,de){for(var be=Y.heap[de],Te=de<<1;Te<=Y.heap_len&&(Te<Y.heap_len&&Qe($,Y.heap[Te+1],Y.heap[Te],Y.depth)&&Te++,!Qe($,be,Y.heap[Te],Y.depth));)Y.heap[de]=Y.heap[Te],de=Te,Te<<=1;Y.heap[de]=be}function dt(Y,$,de){var be,Te,Be,fe,xe=0;if(Y.last_lit!==0)for(;be=Y.pending_buf[Y.d_buf+2*xe]<<8|Y.pending_buf[Y.d_buf+2*xe+1],Te=Y.pending_buf[Y.l_buf+xe],xe++,be===0?se(Y,Te,$):(se(Y,(Be=P[Te])+u+1,$),(fe=C[Be])!==0&&q(Y,Te-=X[Be],fe),se(Y,Be=G(--be),de),(fe=w[Be])!==0&&q(Y,be-=z[Be],fe)),xe<Y.last_lit;);se(Y,x,$)}function Fe(Y,$){var de,be,Te,Be=$.dyn_tree,fe=$.stat_desc.static_tree,xe=$.stat_desc.has_stree,ke=$.stat_desc.elems,nt=-1;for(Y.heap_len=0,Y.heap_max=h,de=0;de<ke;de++)Be[2*de]!==0?(Y.heap[++Y.heap_len]=nt=de,Y.depth[de]=0):Be[2*de+1]=0;for(;Y.heap_len<2;)Be[2*(Te=Y.heap[++Y.heap_len]=nt<2?++nt:0)]=1,Y.depth[Te]=0,Y.opt_len--,xe&&(Y.static_len-=fe[2*Te+1]);for($.max_code=nt,de=Y.heap_len>>1;1<=de;de--)Ve(Y,Be,de);for(Te=ke;de=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],Ve(Y,Be,1),be=Y.heap[1],Y.heap[--Y.heap_max]=de,Y.heap[--Y.heap_max]=be,Be[2*Te]=Be[2*de]+Be[2*be],Y.depth[Te]=(Y.depth[de]>=Y.depth[be]?Y.depth[de]:Y.depth[be])+1,Be[2*de+1]=Be[2*be+1]=Te,Y.heap[1]=Te++,Ve(Y,Be,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(Ct,pt){var He,nr,ht,Gt,pr,Qt,Ht=pt.dyn_tree,Jt=pt.max_code,Ge=pt.stat_desc.static_tree,pe=pt.stat_desc.has_stree,oe=pt.stat_desc.extra_bits,ct=pt.stat_desc.extra_base,qe=pt.stat_desc.max_length,me=0;for(Gt=0;Gt<=v;Gt++)Ct.bl_count[Gt]=0;for(Ht[2*Ct.heap[Ct.heap_max]+1]=0,He=Ct.heap_max+1;He<h;He++)qe<(Gt=Ht[2*Ht[2*(nr=Ct.heap[He])+1]+1]+1)&&(Gt=qe,me++),Ht[2*nr+1]=Gt,Jt<nr||(Ct.bl_count[Gt]++,pr=0,ct<=nr&&(pr=oe[nr-ct]),Qt=Ht[2*nr],Ct.opt_len+=Qt*(Gt+pr),pe&&(Ct.static_len+=Qt*(Ge[2*nr+1]+pr)));if(me!==0){do{for(Gt=qe-1;Ct.bl_count[Gt]===0;)Gt--;Ct.bl_count[Gt]--,Ct.bl_count[Gt+1]+=2,Ct.bl_count[qe]--,me-=2}while(0<me);for(Gt=qe;Gt!==0;Gt--)for(nr=Ct.bl_count[Gt];nr!==0;)Jt<(ht=Ct.heap[--He])||(Ht[2*ht+1]!==Gt&&(Ct.opt_len+=(Gt-Ht[2*ht+1])*Ht[2*ht],Ht[2*ht+1]=Gt),nr--)}}(Y,$),we(Be,nt,Y.bl_count)}function ue(Y,$,de){var be,Te,Be=-1,fe=$[1],xe=0,ke=7,nt=4;for(fe===0&&(ke=138,nt=3),$[2*(de+1)+1]=65535,be=0;be<=de;be++)Te=fe,fe=$[2*(be+1)+1],++xe<ke&&Te===fe||(xe<nt?Y.bl_tree[2*Te]+=xe:Te!==0?(Te!==Be&&Y.bl_tree[2*Te]++,Y.bl_tree[2*E]++):xe<=10?Y.bl_tree[2*T]++:Y.bl_tree[2*_]++,Be=Te,nt=(xe=0)===fe?(ke=138,3):Te===fe?(ke=6,3):(ke=7,4))}function et(Y,$,de){var be,Te,Be=-1,fe=$[1],xe=0,ke=7,nt=4;for(fe===0&&(ke=138,nt=3),be=0;be<=de;be++)if(Te=fe,fe=$[2*(be+1)+1],!(++xe<ke&&Te===fe)){if(xe<nt)for(;se(Y,Te,Y.bl_tree),--xe!=0;);else Te!==0?(Te!==Be&&(se(Y,Te,Y.bl_tree),xe--),se(Y,E,Y.bl_tree),q(Y,xe-3,2)):xe<=10?(se(Y,T,Y.bl_tree),q(Y,xe-3,3)):(se(Y,_,Y.bl_tree),q(Y,xe-11,7));Be=Te,nt=(xe=0)===fe?(ke=138,3):Te===fe?(ke=6,3):(ke=7,4)}}t(z);var he=!1;function J(Y,$,de,be){q(Y,(o<<1)+(be?1:0),3),function(Te,Be,fe,xe){Me(Te),xe&&(te(Te,fe),te(Te,~fe)),l.arraySet(Te.pending_buf,Te.window,Be,fe,Te.pending),Te.pending+=fe}(Y,$,de,!0)}d._tr_init=function(Y){he||(function(){var $,de,be,Te,Be,fe=new Array(v+1);for(Te=be=0;Te<e-1;Te++)for(X[Te]=be,$=0;$<1<<C[Te];$++)P[be++]=Te;for(P[be-1]=Te,Te=Be=0;Te<16;Te++)for(z[Te]=Be,$=0;$<1<<w[Te];$++)U[Be++]=Te;for(Be>>=7;Te<s;Te++)for(z[Te]=Be<<7,$=0;$<1<<w[Te]-7;$++)U[256+Be++]=Te;for(de=0;de<=v;de++)fe[de]=0;for($=0;$<=143;)k[2*$+1]=8,$++,fe[8]++;for(;$<=255;)k[2*$+1]=9,$++,fe[9]++;for(;$<=279;)k[2*$+1]=7,$++,fe[7]++;for(;$<=287;)k[2*$+1]=8,$++,fe[8]++;for(we(k,r+1,fe),$=0;$<s;$++)M[2*$+1]=5,M[2*$]=re($,5);F=new V(k,C,u+1,r,v),j=new V(M,w,0,s,v),K=new V(new Array(0),O,0,c,b)}(),he=!0),Y.l_desc=new Q(Y.dyn_ltree,F),Y.d_desc=new Q(Y.dyn_dtree,j),Y.bl_desc=new Q(Y.bl_tree,K),Y.bi_buf=0,Y.bi_valid=0,Oe(Y)},d._tr_stored_block=J,d._tr_flush_block=function(Y,$,de,be){var Te,Be,fe=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(xe){var ke,nt=4093624447;for(ke=0;ke<=31;ke++,nt>>>=1)if(1&nt&&xe.dyn_ltree[2*ke]!==0)return a;if(xe.dyn_ltree[18]!==0||xe.dyn_ltree[20]!==0||xe.dyn_ltree[26]!==0)return i;for(ke=32;ke<u;ke++)if(xe.dyn_ltree[2*ke]!==0)return i;return a}(Y)),Fe(Y,Y.l_desc),Fe(Y,Y.d_desc),fe=function(xe){var ke;for(ue(xe,xe.dyn_ltree,xe.l_desc.max_code),ue(xe,xe.dyn_dtree,xe.d_desc.max_code),Fe(xe,xe.bl_desc),ke=c-1;3<=ke&&xe.bl_tree[2*I[ke]+1]===0;ke--);return xe.opt_len+=3*(ke+1)+5+5+4,ke}(Y),Te=Y.opt_len+3+7>>>3,(Be=Y.static_len+3+7>>>3)<=Te&&(Te=Be)):Te=Be=de+5,de+4<=Te&&$!==-1?J(Y,$,de,be):Y.strategy===4||Be===Te?(q(Y,2+(be?1:0),3),dt(Y,k,M)):(q(Y,4+(be?1:0),3),function(xe,ke,nt,Ct){var pt;for(q(xe,ke-257,5),q(xe,nt-1,5),q(xe,Ct-4,4),pt=0;pt<Ct;pt++)q(xe,xe.bl_tree[2*I[pt]+1],3);et(xe,xe.dyn_ltree,ke-1),et(xe,xe.dyn_dtree,nt-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,fe+1),dt(Y,Y.dyn_ltree,Y.dyn_dtree)),Oe(Y),be&&Me(Y)},d._tr_tally=function(Y,$,de){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=$>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&$,Y.pending_buf[Y.l_buf+Y.last_lit]=255&de,Y.last_lit++,$===0?Y.dyn_ltree[2*de]++:(Y.matches++,$--,Y.dyn_ltree[2*(P[de]+u+1)]++,Y.dyn_dtree[2*G($)]++),Y.last_lit===Y.lit_bufsize-1},d._tr_align=function(Y){q(Y,2,3),se(Y,x,k),function($){$.bi_valid===16?(te($,$.bi_buf),$.bi_buf=0,$.bi_valid=0):8<=$.bi_valid&&($.pending_buf[$.pending++]=255&$.bi_buf,$.bi_buf>>=8,$.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(p,f,d){"use strict";f.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(p,f,d){(function(l){!function(a,i){"use strict";if(!a.setImmediate){var t,o,e,u,r=1,s={},c=!1,h=a.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(a);v=v&&v.setTimeout?v:a,t={}.toString.call(a.process)==="[object process]"?function(E){S.nextTick(function(){b(E)})}:function(){if(a.postMessage&&!a.importScripts){var E=!0,T=a.onmessage;return a.onmessage=function(){E=!1},a.postMessage("","*"),a.onmessage=T,E}}()?(u="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",x,!1):a.attachEvent("onmessage",x),function(E){a.postMessage(u+E,"*")}):a.MessageChannel?((e=new MessageChannel).port1.onmessage=function(E){b(E.data)},function(E){e.port2.postMessage(E)}):h&&"onreadystatechange"in h.createElement("script")?(o=h.documentElement,function(E){var T=h.createElement("script");T.onreadystatechange=function(){b(E),T.onreadystatechange=null,o.removeChild(T),T=null},o.appendChild(T)}):function(E){setTimeout(b,0,E)},v.setImmediate=function(E){typeof E!="function"&&(E=new Function(""+E));for(var T=new Array(arguments.length-1),_=0;_<T.length;_++)T[_]=arguments[_+1];var C={callback:E,args:T};return s[r]=C,t(r),r++},v.clearImmediate=A}function A(E){delete s[E]}function b(E){if(c)setTimeout(b,0,E);else{var T=s[E];if(T){c=!0;try{!function(_){var C=_.callback,w=_.args;switch(w.length){case 0:C();break;case 1:C(w[0]);break;case 2:C(w[0],w[1]);break;case 3:C(w[0],w[1],w[2]);break;default:C.apply(i,w)}}(T)}finally{A(E),c=!1}}}}function x(E){E.source===a&&typeof E.data=="string"&&E.data.indexOf(u)===0&&b(+E.data.slice(u.length))}}(typeof self=="undefined"?l===void 0?this:l:self)}).call(this,typeof g!="undefined"?g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,n("HDXh").Buffer,n("yLpj"),n("Q2Ig"))},xRUu:function(R,D,n){n("hJvP"),n("hFmY"),n("sAZ8")},xSIq:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={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"};D.default=y},xSat:function(R,D){var n={axisPointer:1,tooltip:1,brush:1};function y(g,S,m){var p=S.getComponentByElement(g.topTarget),f=p&&p.coordinateSystem;return p&&p!==m&&!n[p.mainType]&&f&&f.model!==m}D.onIrrelevantElement=y},xTNl:function(R,D){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],y={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]};R.exports=y},xYSL:function(R,D){function n(y,g){return y.has(g)}R.exports=n},xb2K:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("5yev")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="RedoOutlined";var i=m.forwardRef(a);D.default=i},xiyX:function(R,D,n){var y=n("bYtY"),g=n("bLfw"),S=n("nkfE"),m=n("ICMv"),p=g.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),f={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 d(a,i){return i.type||(i.data?"category":"value")}y.merge(p.prototype,m),S("single",p,d,f);var l=p;R.exports=l},xlC8:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(g,S,m,p){for(var f=g&65535|0,d=g>>>16&65535|0,l=0;m!==0;){l=m>2e3?2e3:m,m-=l;do f=f+S[p++]|0,d=d+f|0;while(--l);f%=65521,d%=65521}return f|d<<16|0}},xvlK:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="PlusOutlined";var d=D.a=g.forwardRef(f)},xzDV:function(R,D,n){},"y+Vt":function(R,D,n){var y=n("Gev7"),g=n("bYtY"),S=n("IMiH"),m=n("2DNl"),p=n("3C/r"),f=p.prototype.getCanvasPattern,d=Math.abs,l=new S(!0);function a(t){y.call(this,t),this.path=null}a.prototype={constructor:a,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(o,e){var u=this.style,r=this.path||l,s=u.hasStroke(),c=u.hasFill(),h=u.fill,v=u.stroke,A=c&&!!h.colorStops,b=s&&!!v.colorStops,x=c&&!!h.image,E=s&&!!v.image;if(u.bind(o,this,e),this.setTransform(o),this.__dirty){var T;A&&(T=T||this.getBoundingRect(),this._fillGradient=u.getGradient(o,h,T)),b&&(T=T||this.getBoundingRect(),this._strokeGradient=u.getGradient(o,v,T))}A?o.fillStyle=this._fillGradient:x&&(o.fillStyle=f.call(h,o)),b?o.strokeStyle=this._strokeGradient:E&&(o.strokeStyle=f.call(v,o));var _=u.lineDash,C=u.lineDashOffset,w=!!o.setLineDash,O=this.getGlobalScale();if(r.setScale(O[0],O[1],this.segmentIgnoreThreshold),this.__dirtyPath||_&&!w&&s?(r.beginPath(o),_&&!w&&(r.setLineDash(_),r.setLineDashOffset(C)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(o.beginPath(),this.path.rebuildPath(o)),c)if(u.fillOpacity!=null){var I=o.globalAlpha;o.globalAlpha=u.fillOpacity*u.opacity,r.fill(o),o.globalAlpha=I}else r.fill(o);if(_&&w&&(o.setLineDash(_),o.lineDashOffset=C),s)if(u.strokeOpacity!=null){var I=o.globalAlpha;o.globalAlpha=u.strokeOpacity*u.opacity,r.stroke(o),o.globalAlpha=I}else r.stroke(o);_&&w&&o.setLineDash([]),u.text!=null&&(this.restoreTransform(o),this.drawRectText(o,this.getBoundingRect()))},buildPath:function(o,e,u){},createPathProxy:function(){this.path=new S},getBoundingRect:function(){var o=this._rect,e=this.style,u=!o;if(u){var r=this.path;r||(r=this.path=new S),this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),o=r.getBoundingRect()}if(this._rect=o,e.hasStroke()){var s=this._rectWithStroke||(this._rectWithStroke=o.clone());if(this.__dirty||u){s.copy(o);var c=e.lineWidth,h=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(c=Math.max(c,this.strokeContainThreshold||4)),h>1e-10&&(s.width+=c/h,s.height+=c/h,s.x-=c/h/2,s.y-=c/h/2)}return s}return o},contain:function(o,e){var u=this.transformCoordToLocal(o,e),r=this.getBoundingRect(),s=this.style;if(o=u[0],e=u[1],r.contain(o,e)){var c=this.path.data;if(s.hasStroke()){var h=s.lineWidth,v=s.strokeNoScale?this.getLineScale():1;if(v>1e-10&&(s.hasFill()||(h=Math.max(h,this.strokeContainThreshold)),m.containStroke(c,h/v,o,e)))return!0}if(s.hasFill())return m.contain(c,o,e)}return!1},dirty:function(o){o==null&&(o=!0),o&&(this.__dirtyPath=o,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(o){return this.animate("shape",o)},attrKV:function(o,e){o==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):y.prototype.attrKV.call(this,o,e)},setShape:function(o,e){var u=this.shape;if(u){if(g.isObject(o))for(var r in o)o.hasOwnProperty(r)&&(u[r]=o[r]);else u[o]=e;this.dirty(!0)}return this},getLineScale:function(){var o=this.transform;return o&&d(o[0]-1)>1e-10&&d(o[3]-1)>1e-10?Math.sqrt(d(o[0]*o[3]-o[2]*o[1])):1}},a.extend=function(t){var o=function(r){a.call(this,r),t.style&&this.style.extendFrom(t.style,!1);var s=t.shape;if(s){this.shape=this.shape||{};var c=this.shape;for(var h in s)!c.hasOwnProperty(h)&&s.hasOwnProperty(h)&&(c[h]=s[h])}t.init&&t.init.call(this,r)};g.inherits(o,a);for(var e in t)e!=="style"&&e!=="shape"&&(o.prototype[e]=t[e]);return o},g.inherits(a,y);var i=a;R.exports=i},"y+lR":function(R,D,n){var y=n("bYtY"),g=n("mFDi"),S=n("z35g");function m(f){S.call(this,f)}m.prototype={constructor:m,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(f){var d=this.getAxis("x"),l=this.getAxis("y");return d.contain(d.toLocalCoord(f[0]))&&l.contain(l.toLocalCoord(f[1]))},containData:function(f){return this.getAxis("x").containData(f[0])&&this.getAxis("y").containData(f[1])},dataToPoint:function(f,d,l){var a=this.getAxis("x"),i=this.getAxis("y");return l=l||[],l[0]=a.toGlobalCoord(a.dataToCoord(f[0])),l[1]=i.toGlobalCoord(i.dataToCoord(f[1])),l},clampData:function(f,d){var l=this.getAxis("x").scale,a=this.getAxis("y").scale,i=l.getExtent(),t=a.getExtent(),o=l.parse(f[0]),e=a.parse(f[1]);return d=d||[],d[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),d[1]=Math.min(Math.max(Math.min(t[0],t[1]),e),Math.max(t[0],t[1])),d},pointToData:function(f,d){var l=this.getAxis("x"),a=this.getAxis("y");return d=d||[],d[0]=l.coordToData(l.toLocalCoord(f[0])),d[1]=a.coordToData(a.toLocalCoord(f[1])),d},getOtherAxis:function(f){return this.getAxis(f.dim==="x"?"y":"x")},getArea:function(){var f=this.getAxis("x").getGlobalExtent(),d=this.getAxis("y").getGlobalExtent(),l=Math.min(f[0],f[1]),a=Math.min(d[0],d[1]),i=Math.max(f[0],f[1])-l,t=Math.max(d[0],d[1])-a,o=new g(l,a,i,t);return o}},y.inherits(m,S);var p=m;R.exports=p},"y0+3":function(R,D,n){"use strict";n.d(D,"a",function(){return t}),n.d(D,"b",function(){return e});var y=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},S={cssFloat:1,styleFloat:1,float:1};function m(u){return u.nodeType===1?u.ownerDocument.defaultView.getComputedStyle(u,null):{}}function p(u,r,s){if(r=r.toLowerCase(),s==="auto"){if(r==="height")return u.offsetHeight;if(r==="width")return u.offsetWidth}return r in g||(g[r]=y.test(r)),g[r]?parseFloat(s)||0:s}function f(u,r){var s=arguments.length,c=m(u);return r=S[r]?"cssFloat"in u.style?"cssFloat":"styleFloat":r,s===1?c:p(u,r,c[r]||u.style[r])}function d(u,r,s){var c=arguments.length;if(r=S[r]?"cssFloat"in u.style?"cssFloat":"styleFloat":r,c===3)return typeof s=="number"&&y.test(r)&&(s="".concat(s,"px")),u.style[r]=s,s;for(var h in r)r.hasOwnProperty(h)&&d(u,h,r[h]);return m(u)}function l(u){return u===document.body?document.documentElement.clientWidth:u.offsetWidth}function a(u){return u===document.body?window.innerHeight||document.documentElement.clientHeight:u.offsetHeight}function i(){var u=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:u,height:r}}function t(){var u=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:u,height:r}}function o(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function e(u){var r=u.getBoundingClientRect(),s=document.documentElement;return{left:r.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}},y1pI:function(R,D,n){var y=n("ljhN");function g(S,m){for(var p=S.length;p--;)if(y(S[p][0],m))return p;return-1}R.exports=g},y23F:function(R,D){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}n.prototype={constructor:n,_dragStart:function(m){for(var p=m.target;p&&!p.draggable;)p=p.parent;p&&(this._draggingTarget=p,p.dragging=!0,this._x=m.offsetX,this._y=m.offsetY,this.dispatchToElement(y(p,m),"dragstart",m.event))},_drag:function(m){var p=this._draggingTarget;if(p){var f=m.offsetX,d=m.offsetY,l=f-this._x,a=d-this._y;this._x=f,this._y=d,p.drift(l,a,m),this.dispatchToElement(y(p,m),"drag",m.event);var i=this.findHover(f,d,p).target,t=this._dropTarget;this._dropTarget=i,p!==i&&(t&&i!==t&&this.dispatchToElement(y(t,m),"dragleave",m.event),i&&i!==t&&this.dispatchToElement(y(i,m),"dragenter",m.event))}},_dragEnd:function(m){var p=this._draggingTarget;p&&(p.dragging=!1),this.dispatchToElement(y(p,m),"dragend",m.event),this._dropTarget&&this.dispatchToElement(y(this._dropTarget,m),"drop",m.event),this._draggingTarget=null,this._dropTarget=null}};function y(S,m){return{target:S,topTarget:m&&m.topTarget}}var g=n;R.exports=g},y2l5:function(R,D,n){var y=n("MwEJ"),g=n("T4UG"),S=g.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(m,p){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var m=this.option.progressive;return m==null?this.option.large?5e3:this.get("progressive"):m},getProgressiveThreshold:function(){var m=this.option.progressiveThreshold;return m==null?this.option.large?1e4:this.get("progressiveThreshold"):m},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});R.exports=S},y3Kf:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="UpOutlined";var d=D.a=g.forwardRef(f)},y3NT:function(R,D,n){var y=n("OELB"),g=y.parsePercent,S=n("bYtY"),m=Math.PI/180;function p(l,a,i,t){a.eachSeriesByType(l,function(o){var e=o.get("center"),u=o.get("radius");S.isArray(u)||(u=[0,u]),S.isArray(e)||(e=[e,e]);var r=i.getWidth(),s=i.getHeight(),c=Math.min(r,s),h=g(e[0],r),v=g(e[1],s),A=g(u[0],c/2),b=g(u[1],c/2),x=-o.get("startAngle")*m,E=o.get("minAngle")*m,T=o.getData().tree.root,_=o.getViewRoot(),C=_.depth,w=o.get("sort");w!=null&&f(_,w);var O=0;S.each(_.children,function(G){!isNaN(G.getValue())&&O++});var I=_.getValue(),k=Math.PI/(I||O)*2,M=_.depth>0,U=_.height-(M?-1:1),P=(b-A)/(U||1),X=o.get("clockwise"),F=o.get("stillShowZeroSum"),j=X?1:-1,K=function(G,te){if(!G)return;var q=te;if(G!==T){var se=G.getValue(),re=I===0&&F?k:se*k;re<E&&(re=E),q=te+j*re;var we=G.depth-C-(M?-1:1),Oe=A+P*we,Me=A+P*(we+1),Qe=G.getModel();Qe.get("r0")!=null&&(Oe=g(Qe.get("r0"),c/2)),Qe.get("r")!=null&&(Me=g(Qe.get("r"),c/2)),G.setLayout({angle:re,startAngle:te,endAngle:q,clockwise:X,cx:h,cy:v,r0:Oe,r:Me})}if(G.children&&G.children.length){var Ve=0;S.each(G.children,function(dt){Ve+=K(dt,te+Ve)})}return q-te};if(M){var z=A,V=A+P,Q=Math.PI*2;T.setLayout({angle:Q,startAngle:x,endAngle:x+Q,clockwise:X,cx:h,cy:v,r0:z,r:V})}K(_,x)})}function f(l,a){var i=l.children||[];l.children=d(i,a),i.length&&S.each(l.children,function(t){f(t,a)})}function d(l,a){if(typeof a=="function")return l.sort(a);var i=a==="asc";return l.sort(function(t,o){var e=(t.getValue()-o.getValue())*(i?1:-1);return e===0?(t.dataIndex-o.dataIndex)*(i?-1:1):e})}R.exports=p},y3Yb:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("HBhm")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="PaperClipOutlined";var i=m.forwardRef(a);D.default=i},"y4/Y":function(R,D,n){var y=n("ProS"),g=n("bYtY"),S=n("zTMp"),m=n("62sa");n("SKx+"),n("1LEl"),n("Sp2Z"),y.registerPreprocessor(function(p){if(p){(!p.axisPointer||p.axisPointer.length===0)&&(p.axisPointer={});var f=p.axisPointer.link;f&&!g.isArray(f)&&(p.axisPointer.link=[f])}}),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,function(p,f){p.getComponent("axisPointer").coordSysAxesInfo=S.collect(p,f)}),y.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},m)},y7Aq:function(R,D,n){var y=n("bYtY"),g=n("+TT/"),S=g.getLayoutRect;function m(f,d,l){var a=f.option,i=a.align;if(i!=null&&i!=="auto")return i;for(var t={width:d.getWidth(),height:d.getHeight()},o=a.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],u=e[o],r=[0,null,10],s={},c=0;c<3;c++)s[e[1-o][c]]=r[c],s[u[c]]=c===2?l[0]:a[u[c]];var h=[["x","width",3],["y","height",0]][o],v=S(s,t,a.padding);return u[(v.margin[h[2]]||0)+v[h[0]]+v[h[1]]*.5<t[h[1]]*.5?0:1]}function p(f,d){return y.each(f||[],function(l){l.dataIndex!=null&&(l.dataIndexInside=l.dataIndex,l.dataIndex=null),l.highlightKey="visualMap"+(d?d.componentIndex:"")}),f}D.getItemAlign=m,D.makeHighDownBatch=p},y8nQ:function(R,D,n){"use strict";var y=n("cIOH"),g=n.n(y),S=n("gwTy"),m=n.n(S),p=n("1GLa")},yEEn:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="ArrowDownOutlined";var d=D.a=g.forwardRef(f)},yGk4:function(R,D,n){var y=n("Cwc5"),g=n("Kz5y"),S=y(g,"Set");R.exports=S},yO87:function(R,D,n){var y=n("bYtY"),g=n("oVpE"),S=g.createSymbol,m=n("IwbS"),p=m.Group,f=n("OELB"),d=f.parsePercent,l=n("FBjb"),a=3;function i(r){return y.isArray(r)||(r=[+r,+r]),r}function t(r,s){var c=s.rippleEffectColor||s.color;r.eachChild(function(h){h.attr({z:s.z,zlevel:s.zlevel,style:{stroke:s.brushType==="stroke"?c:null,fill:s.brushType==="fill"?c:null}})})}function o(r,s){p.call(this);var c=new l(r,s),h=new p;this.add(c),this.add(h),h.beforeUpdate=function(){this.attr(c.getScale())},this.updateData(r,s)}var e=o.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(r){for(var s=r.symbolType,c=r.color,h=this.childAt(1),v=0;v<a;v++){var A=S(s,-1,-1,2,2,c);A.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var b=-v/a*r.period+r.effectOffset;A.animate("",!0).when(r.period,{scale:[r.rippleScale/2,r.rippleScale/2]}).delay(b).start(),A.animateStyle(!0).when(r.period,{opacity:0}).delay(b).start(),h.add(A)}t(h,r)},e.updateEffectAnimation=function(r){for(var s=this._effectCfg,c=this.childAt(1),h=["symbolType","period","rippleScale"],v=0;v<h.length;v++){var A=h[v];if(s[A]!==r[A]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}t(c,r)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(r,s){var c=r.hostModel;this.childAt(0).updateData(r,s);var h=this.childAt(1),v=r.getItemModel(s),A=r.getItemVisual(s,"symbol"),b=i(r.getItemVisual(s,"symbolSize")),x=r.getItemVisual(s,"color");h.attr("scale",b),h.traverse(function(k){k.attr({fill:x})});var E=v.getShallow("symbolOffset");if(E){var T=h.position;T[0]=d(E[0],b[0]),T[1]=d(E[1],b[1])}var _=r.getItemVisual(s,"symbolRotate");h.rotation=(_||0)*Math.PI/180||0;var C={};if(C.showEffectOn=c.get("showEffectOn"),C.rippleScale=v.get("rippleEffect.scale"),C.brushType=v.get("rippleEffect.brushType"),C.period=v.get("rippleEffect.period")*1e3,C.effectOffset=s/r.count(),C.z=v.getShallow("z")||0,C.zlevel=v.getShallow("zlevel")||0,C.symbolType=A,C.color=x,C.rippleEffectColor=v.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),C.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(C):this.startEffectAnimation(C),this._effectCfg=C;else{this._effectCfg=null,this.stopEffectAnimation();var w=this.childAt(0),O=function(){w.highlight(),C.showEffectOn!=="render"&&this.startEffectAnimation(C)},I=function(){w.downplay(),C.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",O,this).on("mouseout",I,this).on("emphasis",O,this).on("normal",I,this)}this._effectCfg=C},e.fadeOut=function(r){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),r&&r()},y.inherits(o,p);var u=o;R.exports=u},yS9w:function(R,D,n){var y=n("MEGo"),g=y.parseSVG,S=y.makeViewBoxTransform,m=n("4fz+"),p=n("x6Kt"),f=n("bYtY"),d=f.assert,l=f.createHashMap,a=n("mFDi"),i=n("4NO4"),t=i.makeInner,o=t(),e={load:function(r,s){var c=o(s).originRoot;if(c)return{root:c,boundingRect:o(s).boundingRect};var h=u(s);return o(s).originRoot=h.root,o(s).boundingRect=h.boundingRect,h},makeGraphic:function(r,s,c){var h=o(s),v=h.rootMap||(h.rootMap=l()),A=v.get(c);if(A)return A;var b=h.originRoot,x=h.boundingRect;return h.originRootHostKey?A=u(s,x).root:(h.originRootHostKey=c,A=b),v.set(c,A)},removeGraphic:function(r,s,c){var h=o(s),v=h.rootMap;v&&v.removeKey(c),c===h.originRootHostKey&&(h.originRootHostKey=null)}};function u(r,s){var c=r.svgXML,h,v;try{h=c&&g(c,{ignoreViewBox:!0,ignoreRootClip:!0})||{},v=h.root,d(v!=null)}catch(_){throw new Error(`Invalid svg format
`+_.message)}var A=h.width,b=h.height,x=h.viewBoxRect;if(s||(s=A==null||b==null?v.getBoundingRect():new a(0,0,0,0),A!=null&&(s.width=A),b!=null&&(s.height=b)),x){var E=S(x,s.width,s.height),T=v;v=new m,v.add(T),T.scale=E.scale,T.position=E.position}return v.setClipPath(new p({shape:s.plain()})),{root:v,boundingRect:s}}R.exports=e},yWXo:function(R,D,n){var y=n("IwbS"),g=n("oVpE"),S=g.createSymbol,m=n("OS9S"),p=4,f=y.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(i,t){var o=t.points,e=t.size,u=this.symbolProxy,r=u.shape,s=i.getContext?i.getContext():i,c=s&&e[0]<p;if(c)return;for(var h=0;h<o.length;){var v=o[h++],A=o[h++];if(isNaN(v)||isNaN(A))continue;if(this.softClipShape&&!this.softClipShape.contain(v,A))continue;r.x=v-e[0]/2,r.y=A-e[1]/2,r.width=e[0],r.height=e[1],u.buildPath(i,r,!0)}},afterBrush:function(i){var t=this.shape,o=t.points,e=t.size,u=e[0]<p;if(!u)return;this.setTransform(i);for(var r=0;r<o.length;){var s=o[r++],c=o[r++];if(isNaN(s)||isNaN(c))continue;if(this.softClipShape&&!this.softClipShape.contain(s,c))continue;i.fillRect(s-e[0]/2,c-e[1]/2,e[0],e[1])}this.restoreTransform(i)},findDataIndex:function(i,t){for(var o=this.shape,e=o.points,u=o.size,r=Math.max(u[0],4),s=Math.max(u[1],4),c=e.length/2-1;c>=0;c--){var h=c*2,v=e[h]-r/2,A=e[h+1]-s/2;if(i>=v&&t>=A&&i<=v+r&&t<=A+s)return c}return-1}});function d(){this.group=new y.Group}var l=d.prototype;l.isPersistent=function(){return!this._incremental},l.updateData=function(i,t){this.group.removeAll();var o=new f({rectHover:!0,cursor:"default"});o.setShape({points:i.getLayout("symbolPoints")}),this._setCommon(o,i,!1,t),this.group.add(o),this._incremental=null},l.updateLayout=function(i){if(this._incremental)return;var t=i.getLayout("symbolPoints");this.group.eachChild(function(o){if(o.startIndex!=null){var e=(o.endIndex-o.startIndex)*2,u=o.startIndex*4*2;t=new Float32Array(t.buffer,u,e)}o.setShape("points",t)})},l.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>2e6?(this._incremental||(this._incremental=new m({silent:!0})),this.group.add(this._incremental)):this._incremental=null},l.incrementalUpdate=function(i,t,o){var e;this._incremental?(e=new f,this._incremental.addDisplayable(e,!0)):(e=new f({rectHover:!0,cursor:"default",startIndex:i.start,endIndex:i.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t,!!this._incremental,o)},l._setCommon=function(i,t,o,e){var u=t.hostModel;e=e||{};var r=t.getVisual("symbolSize");i.setShape("size",r instanceof Array?r:[r,r]),i.softClipShape=e.clipShape||null,i.symbolProxy=S(t.getVisual("symbol"),0,0,0,0),i.setColor=i.symbolProxy.setColor;var s=i.shape.size[0]<p;i.useStyle(u.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));var c=t.getVisual("color");c&&i.setColor(c),o||(i.seriesIndex=u.seriesIndex,i.on("mousemove",function(h){i.dataIndex=null;var v=i.findDataIndex(h.offsetX,h.offsetY);v>=0&&(i.dataIndex=v+(i.startIndex||0))}))},l.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},l._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()};var a=d;R.exports=a},ycre:function(R,D,n){var y=n("711d"),g=y("length");R.exports=g},ye1Q:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="LoadingOutlined";var d=D.a=g.forwardRef(f)},ygfH:function(R,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},yik8:function(R,D,n){var y=n("bZqE"),g=y.eachAfter,S=y.eachBefore,m=n("Itpr"),p=m.init,f=m.firstWalk,d=m.secondWalk,l=m.separation,a=m.radialCoordinate,i=m.getViewRect;function t(e,u){e.eachSeriesByType("tree",function(r){o(r,u)})}function o(e,u){var r=i(e,u);e.layoutInfo=r;var s=e.get("layout"),c=0,h=0,v=null;s==="radial"?(c=2*Math.PI,h=Math.min(r.height,r.width)/2,v=l(function(U,P){return(U.parentNode===P.parentNode?1:2)/U.depth})):(c=r.width,h=r.height,v=l());var A=e.getData().tree.root,b=A.children[0];if(b){p(A),g(b,f,v),A.hierNode.modifier=-b.hierNode.prelim,S(b,d);var x=b,E=b,T=b;S(b,function(U){var P=U.getLayout().x;P<x.getLayout().x&&(x=U),P>E.getLayout().x&&(E=U),U.depth>T.depth&&(T=U)});var _=x===E?1:v(x,E)/2,C=_-x.getLayout().x,w=0,O=0,I=0,k=0;if(s==="radial")w=c/(E.getLayout().x+_+C),O=h/(T.depth-1||1),S(b,function(U){I=(U.getLayout().x+C)*w,k=(U.depth-1)*O;var P=a(I,k);U.setLayout({x:P.x,y:P.y,rawX:I,rawY:k},!0)});else{var M=e.getOrient();M==="RL"||M==="LR"?(O=h/(E.getLayout().x+_+C),w=c/(T.depth-1||1),S(b,function(U){k=(U.getLayout().x+C)*O,I=M==="LR"?(U.depth-1)*w:c-(U.depth-1)*w,U.setLayout({x:I,y:k},!0)})):(M==="TB"||M==="BT")&&(w=c/(E.getLayout().x+_+C),O=h/(T.depth-1||1),S(b,function(U){I=(U.getLayout().x+C)*w,k=M==="TB"?(U.depth-1)*O:h-(U.depth-1)*O,U.setLayout({x:I,y:k},!0)}))}}}R.exports=t},ynwM:function(R,D,n){var y=n("MFOe"),g=y.Global;R.exports={name:"oldFF-globalStorage",read:m,write:p,each:f,remove:d,clearAll:l};var S=g.globalStorage;function m(a){return S[a]}function p(a,i){S[a]=i}function f(a){for(var i=S.length-1;i>=0;i--){var t=S.key(i);a(S[t],t)}}function d(a){return S.removeItem(a)}function l(){f(function(a,i){delete S[a]})}},ypgQ:function(R,D,n){var y=n("bYtY"),g=n("4NO4"),S=n("bLfw"),m=y.each,p=y.clone,f=y.map,d=y.merge,l=/^(min|max)?(.+)$/;function a(s){this._api=s,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}a.prototype={constructor:a,setOption:function(s,c){s&&y.each(g.normalizeToArray(s.series),function(A){A&&A.data&&y.isTypedArray(A.data)&&y.setAsPrimitive(A.data)}),s=p(s);var h=this._optionBackup,v=i.call(this,s,c,!h);this._newBaseOption=v.baseOption,h?(u(h.baseOption,v.baseOption),v.timelineOptions.length&&(h.timelineOptions=v.timelineOptions),v.mediaList.length&&(h.mediaList=v.mediaList),v.mediaDefault&&(h.mediaDefault=v.mediaDefault)):this._optionBackup=v},mountOption:function(s){var c=this._optionBackup;return this._timelineOptions=f(c.timelineOptions,p),this._mediaList=f(c.mediaList,p),this._mediaDefault=p(c.mediaDefault),this._currentMediaIndices=[],p(s?c.baseOption:this._newBaseOption)},getTimelineOption:function(s){var c,h=this._timelineOptions;if(h.length){var v=s.getComponent("timeline");v&&(c=p(h[v.getCurrentIndex()],!0))}return c},getMediaOption:function(s){var c=this._api.getWidth(),h=this._api.getHeight(),v=this._mediaList,A=this._mediaDefault,b=[],x=[];if(!v.length&&!A)return x;for(var E=0,T=v.length;E<T;E++)t(v[E].query,c,h)&&b.push(E);return!b.length&&A&&(b=[-1]),b.length&&!e(b,this._currentMediaIndices)&&(x=f(b,function(_){return p(_===-1?A.option:v[_].option)})),this._currentMediaIndices=b,x}};function i(s,c,h){var v=[],A=[],b,x,E=s.timeline;if(s.baseOption&&(x=s.baseOption),(E||s.options)&&(x=x||{},v=(s.options||[]).slice()),s.media){x=x||{};var T=s.media;m(T,function(_){_&&_.option&&(_.query?A.push(_):b||(b=_))})}return x||(x=s),x.timeline||(x.timeline=E),m([x].concat(v).concat(y.map(A,function(_){return _.option})),function(_){m(c,function(C){C(_,h)})}),{baseOption:x,timelineOptions:v,mediaDefault:b,mediaList:A}}function t(s,c,h){var v={width:c,height:h,aspectratio:c/h},A=!0;return y.each(s,function(b,x){var E=x.match(l);if(!E||!E[1]||!E[2])return;var T=E[1],_=E[2].toLowerCase();o(v[_],b,T)||(A=!1)}),A}function o(s,c,h){return h==="min"?s>=c:h==="max"?s<=c:s===c}function e(s,c){return s.join(",")===c.join(",")}function u(s,c){c=c||{},m(c,function(h,v){if(h==null)return;var A=s[v];if(!S.hasClass(v))s[v]=d(A,h,!0);else{h=g.normalizeToArray(h),A=g.normalizeToArray(A);var b=g.mappingToExists(A,h);s[v]=f(b,function(x){return x.option&&x.exist?d(x.exist,x.option,!0):x.exist||x.option})}})}var r=a;R.exports=r},yxFR:function(R,D,n){var y=n("y+Vt"),g=n("nPnh"),S=g.subPixelOptimizeLine,m={},p=y.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(d,l){var a,i,t,o;this.subPixelOptimize?(S(m,l,this.style),a=m.x1,i=m.y1,t=m.x2,o=m.y2):(a=l.x1,i=l.y1,t=l.x2,o=l.y2);var e=l.percent;if(e===0)return;d.moveTo(a,i),e<1&&(t=a*(1-e)+t*e,o=i*(1-e)+o*e),d.lineTo(t,o)},pointAt:function(d){var l=this.shape;return[l.x1*(1-d)+l.x2*d,l.y1*(1-d)+l.y2*d]}});R.exports=p},z35g:function(R,D,n){var y=n("bYtY");function g(p){return this._axes[p]}var S=function(p){this._axes={},this._dimList=[],this.name=p||""};S.prototype={constructor:S,type:"cartesian",getAxis:function(p){return this._axes[p]},getAxes:function(){return y.map(this._dimList,g,this)},getAxesByScale:function(p){return p=p.toLowerCase(),y.filter(this.getAxes(),function(f){return f.scale.type===p})},addAxis:function(p){var f=p.dim;this._axes[f]=p,this._dimList.push(f)},dataToCoord:function(p){return this._dataCoordConvert(p,"dataToCoord")},coordToData:function(p){return this._dataCoordConvert(p,"coordToData")},_dataCoordConvert:function(p,f){for(var d=this._dimList,l=p instanceof Array?[]:{},a=0;a<d.length;a++){var i=d[a],t=this._axes[i];l[i]=t[f](p[i])}return l}};var m=S;R.exports=m},z7Xi:function(R,D,n){"use strict";var y=n("VTBJ"),g=n("q1tI"),S={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"},m=S,p=n("6VBw"),f=function(a,i){return g.createElement(p.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:m}))};f.displayName="UploadOutlined";var d=D.a=g.forwardRef(f)},zAh6:function(R,D,n){"use strict";n.d(D,"a",function(){return p});var y=n("xEkU"),g=n.n(y),S=n("i6bk");function m(f,d,l,a){var i=l-d;return f/=a/2,f<1?i/2*f*f*f+d:i/2*((f-=2)*f*f+2)+d}function p(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=d.getContainer,a=l===void 0?function(){return window}:l,i=d.callback,t=d.duration,o=t===void 0?450:t,e=a(),u=Object(S.a)(e,!0),r=Date.now(),s=function c(){var h=Date.now(),v=h-r,A=m(v>o?o:v,u,f,o);Object(S.b)(e)?e.scrollTo(window.pageXOffset,A):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=A:e.scrollTop=A,v<o?g()(c):typeof i=="function"&&i()};g()(s)}},zDms:function(R,D,n){var y=n("bYtY"),g=n("OELB"),S=n("UOVi"),m=n("72pK"),p=y.each,f=g.asc,d=function(e,u,r,s){this._dimName=e,this._axisIndex=u,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=s,this._dataZoomModel=r};d.prototype={constructor:d,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],u=this.ecModel;return u.eachSeries(function(r){if(S.isCoordSupported(r.get("coordinateSystem"))){var s=this._dimName,c=u.queryComponents({mainType:s+"Axis",index:r.get(s+"AxisIndex"),id:r.get(s+"AxisId")})[0];this._axisIndex===(c&&c.componentIndex)&&e.push(r)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e=this._dimName,u=this.ecModel,r=this.getAxisModel(),s=e==="x"||e==="y",c,h;s?(h="gridIndex",c=e==="x"?"y":"x"):(h="polarIndex",c=e==="angle"?"radius":"angle");var v;return u.eachComponent(c+"Axis",function(A){(A.get(h)||0)===(r.get(h)||0)&&(v=A)}),v},getMinMaxSpan:function(){return y.clone(this._minMaxSpan)},calculateDataWindow:function(e){var u=this._dataExtent,r=this.getAxisModel(),s=r.axis.scale,c=this._dataZoomModel.getRangePropMode(),h=[0,100],v=[],A=[],b;p(["start","end"],function(T,_){var C=e[T],w=e[T+"Value"];c[_]==="percent"?(C==null&&(C=h[_]),w=s.parse(g.linearMap(C,h,u))):(b=!0,w=w==null?u[_]:s.parse(w),C=g.linearMap(w,u,h)),A[_]=w,v[_]=C}),f(A),f(v);var x=this._minMaxSpan;b?E(A,v,u,h,!1):E(v,A,h,u,!0);function E(T,_,C,w,O){var I=O?"Span":"ValueSpan";m(0,T,C,"all",x["min"+I],x["max"+I]);for(var k=0;k<2;k++)_[k]=g.linearMap(T[k],C,w,!0),O&&(_[k]=s.parse(_[k]))}return{valueWindow:A,percentWindow:v}},reset:function(e){if(e!==this._dataZoomModel)return;var u=this.getTargetSeriesModels();this._dataExtent=l(this,this._dimName,u),t(this);var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,i(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,i(this,!0)},filterData:function(e,u){if(e!==this._dataZoomModel)return;var r=this._dimName,s=this.getTargetSeriesModels(),c=e.get("filterMode"),h=this._valueWindow;if(c==="none")return;p(s,function(A){var b=A.getData(),x=b.mapDimension(r,!0);if(!x.length)return;c==="weakFilter"?b.filterSelf(function(E){for(var T,_,C,w=0;w<x.length;w++){var O=b.get(x[w],E),I=!isNaN(O),k=O<h[0],M=O>h[1];if(I&&!k&&!M)return!0;I&&(C=!0),k&&(T=!0),M&&(_=!0)}return C&&T&&_}):p(x,function(E){if(c==="empty")A.setData(b=b.map(E,function(_){return v(_)?_:NaN}));else{var T={};T[E]=h,b.selectRange(T)}}),p(x,function(E){b.setApproximateExtent(h,E)})});function v(A){return A>=h[0]&&A<=h[1]}}};function l(e,u,r){var s=[Infinity,-Infinity];return p(r,function(c){var h=c.getData();h&&p(h.mapDimension(u,!0),function(v){var A=h.getApproximateExtent(v);A[0]<s[0]&&(s[0]=A[0]),A[1]>s[1]&&(s[1]=A[1])})}),s[1]<s[0]&&(s=[NaN,NaN]),a(e,s),s}function a(e,u){var r=e.getAxisModel(),s=r.getMin(!0),c=r.get("type")==="category",h=c&&r.getCategories().length;s!=null&&s!=="dataMin"&&typeof s!="function"?u[0]=s:c&&(u[0]=h>0?0:NaN);var v=r.getMax(!0);return v!=null&&v!=="dataMax"&&typeof v!="function"?u[1]=v:c&&(u[1]=h>0?h-1:NaN),r.get("scale",!0)||(u[0]>0&&(u[0]=0),u[1]<0&&(u[1]=0)),u}function i(e,u){var r=e.getAxisModel(),s=e._percentWindow,c=e._valueWindow;if(!s)return;var h=g.getPixelPrecision(c,[0,500]);h=Math.min(h,20);var v=u||s[0]===0&&s[1]===100;r.setRange(v?null:+c[0].toFixed(h),v?null:+c[1].toFixed(h))}function t(e){var u=e._minMaxSpan={},r=e._dataZoomModel,s=e._dataExtent;p(["min","max"],function(c){var h=r.get(c+"Span"),v=r.get(c+"ValueSpan");v!=null&&(v=e.getAxisModel().axis.scale.parse(v)),v!=null?h=g.linearMap(s[0]+v,s,[0,100],!0):h!=null&&(v=g.linearMap(h,[0,100],s,!0)-s[0]),u[c+"Span"]=h,u[c+"ValueSpan"]=v})}var o=d;R.exports=o},zM3Q:function(R,D,n){var y=n("4NO4"),g=y.makeInner;function S(){var m=g();return function(p){var f=m(p),d=p.pipelineContext,l=f.large,a=f.progressiveRender,i=f.large=d&&d.large,t=f.progressiveRender=d&&d.progressiveRender;return!!(l^i||a^t)&&"reset"}}R.exports=S},zRKj:function(R,D,n){n("Ae16"),n("Sp2Z"),n("y4/Y")},zTMp:function(R,D,n){var y=n("bYtY"),g=n("Qxkt"),S=y.each,m=y.curry;function p(s,c){var h={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return f(h,s,c),h.seriesInvolved&&l(h,s),h}function f(s,c,h){var v=c.getComponent("tooltip"),A=c.getComponent("axisPointer"),b=A.get("link",!0)||[],x=[];S(h.getCoordinateSystems(),function(E){if(!E.axisPointerEnabled)return;var T=r(E.model),_=s.coordSysAxesInfo[T]={};s.coordSysMap[T]=E;var C=E.model,w=C.getModel("tooltip",v);if(S(E.getAxes(),m(M,!1,null)),E.getTooltipAxes&&v&&w.get("show")){var O=w.get("trigger")==="axis",I=w.get("axisPointer.type")==="cross",k=E.getTooltipAxes(w.get("axisPointer.axis"));(O||I)&&S(k.baseAxes,m(M,I?"cross":!0,O)),I&&S(k.otherAxes,m(M,"cross",!1))}function M(U,P,X){var F=X.model.getModel("axisPointer",A),j=F.get("show");if(!j||j==="auto"&&!U&&!u(F))return;P==null&&(P=F.get("triggerTooltip")),F=U?d(X,w,A,c,U,P):F;var K=F.get("snap"),z=r(X.model),V=P||K||X.type==="category",Q=s.axesInfo[z]={key:z,axis:X,coordSys:E,axisPointerModel:F,triggerTooltip:P,involveSeries:V,snap:K,useHandle:u(F),seriesModels:[]};_[z]=Q,s.seriesInvolved|=V;var G=a(b,X);if(G!=null){var te=x[G]||(x[G]={axesInfo:{}});te.axesInfo[z]=Q,te.mapper=b[G].mapper,Q.linkGroup=te}}})}function d(s,c,h,v,A,b){var x=c.getModel("axisPointer"),E={};S(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(w){E[w]=y.clone(x.get(w))}),E.snap=s.type!=="category"&&!!b,x.get("type")==="cross"&&(E.type="line");var T=E.label||(E.label={});if(T.show==null&&(T.show=!1),A==="cross"){var _=x.get("label.show");if(T.show=_!=null?_:!0,!b){var C=E.lineStyle=x.get("crossStyle");C&&y.defaults(T,C.textStyle)}}return s.model.getModel("axisPointer",new g(E,h,v))}function l(s,c){c.eachSeries(function(h){var v=h.coordinateSystem,A=h.get("tooltip.trigger",!0),b=h.get("tooltip.show",!0);if(!v||A==="none"||A===!1||A==="item"||b===!1||h.get("axisPointer.show",!0)===!1)return;S(s.coordSysAxesInfo[r(v.model)],function(x){var E=x.axis;v.getAxis(E.dim)===E&&(x.seriesModels.push(h),x.seriesDataCount==null&&(x.seriesDataCount=0),x.seriesDataCount+=h.getData().count())})},this)}function a(s,c){for(var h=c.model,v=c.dim,A=0;A<s.length;A++){var b=s[A]||{};if(i(b[v+"AxisId"],h.id)||i(b[v+"AxisIndex"],h.componentIndex)||i(b[v+"AxisName"],h.name))return A}}function i(s,c){return s==="all"||y.isArray(s)&&y.indexOf(s,c)>=0||s===c}function t(s){var c=o(s);if(!c)return;var h=c.axisPointerModel,v=c.axis.scale,A=h.option,b=h.get("status"),x=h.get("value");x!=null&&(x=v.parse(x));var E=u(h);b==null&&(A.status=E?"show":"hide");var T=v.getExtent().slice();T[0]>T[1]&&T.reverse(),(x==null||x>T[1])&&(x=T[1]),x<T[0]&&(x=T[0]),A.value=x,E&&(A.status=c.axis.scale.isBlank()?"hide":"show")}function o(s){var c=(s.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return c&&c.axesInfo[r(s)]}function e(s){var c=o(s);return c&&c.axisPointerModel}function u(s){return!!s.get("handle.show")}function r(s){return s.type+"||"+s.id}D.collect=p,D.fixValue=t,D.getAxisInfo=o,D.getAxisPointerModel=e,D.makeKey=r},zYTA:function(R,D,n){var y=n("bYtY"),g=256;function S(){var p=y.createCanvas();this.canvas=p,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}S.prototype={update:function(p,f,d,l,a,i){var t=this._getBrush(),o=this._getGradient(p,a,"inRange"),e=this._getGradient(p,a,"outOfRange"),u=this.pointSize+this.blurSize,r=this.canvas,s=r.getContext("2d"),c=p.length;r.width=f,r.height=d;for(var h=0;h<c;++h){var v=p[h],A=v[0],b=v[1],x=v[2],E=l(x);s.globalAlpha=E,s.drawImage(t,A-u,b-u)}if(!r.width||!r.height)return r;for(var T=s.getImageData(0,0,r.width,r.height),_=T.data,C=0,w=_.length,O=this.minOpacity,I=this.maxOpacity,k=I-O;C<w;){var E=_[C+3]/256,M=Math.floor(E*(g-1))*4;if(E>0){var U=i(E)?o:e;E>0&&(E=E*k+O),_[C++]=U[M],_[C++]=U[M+1],_[C++]=U[M+2],_[C++]=U[M+3]*E*256}else C+=4}return s.putImageData(T,0,0),r},_getBrush:function(){var p=this._brushCanvas||(this._brushCanvas=y.createCanvas()),f=this.pointSize+this.blurSize,d=f*2;p.width=d,p.height=d;var l=p.getContext("2d");return l.clearRect(0,0,d,d),l.shadowOffsetX=d,l.shadowBlur=this.blurSize,l.shadowColor="#000",l.beginPath(),l.arc(-f,f,this.pointSize,0,Math.PI*2,!0),l.closePath(),l.fill(),p},_getGradient:function(p,f,d){for(var l=this._gradientPixels,a=l[d]||(l[d]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],t=0,o=0;o<256;o++)f[d](o/255,!0,i),a[t++]=i[0],a[t++]=i[1],a[t++]=i[2],a[t++]=i[3];return a}};var m=S;R.exports=m},zarK:function(R,D,n){var y=n("YH21"),g=y.addEventListener,S=y.removeEventListener,m=y.normalizeEvent,p=y.getNativeEvent,f=n("bYtY"),d=n("H6uX"),l=n("ItGF"),a=300,i=l.domSupported,t=function(){var U=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],P=["touchstart","touchend","touchmove"],X={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},F=f.map(U,function(j){var K=j.replace("mouse","pointer");return X.hasOwnProperty(K)?K:j});return{mouse:U,touch:P,pointer:F}}(),o={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(U){return U==="mousewheel"&&l.browser.firefox?"DOMMouseScroll":U}function u(U){var P=U.pointerType;return P==="pen"||P==="touch"}function r(U){U.touching=!0,U.touchTimer!=null&&(clearTimeout(U.touchTimer),U.touchTimer=null),U.touchTimer=setTimeout(function(){U.touching=!1,U.touchTimer=null},700)}function s(U){U&&(U.zrByTouch=!0)}function c(U,P){return m(U.dom,new v(U,P),!0)}function h(U,P){for(var X=P,F=!1;X&&X.nodeType!==9&&!(F=X.domBelongToZr||X!==P&&X===U.painterRoot);)X=X.parentNode;return F}function v(U,P){this.type=P.type,this.target=this.currentTarget=U.dom,this.pointerType=P.pointerType,this.clientX=P.clientX,this.clientY=P.clientY}var A=v.prototype;A.stopPropagation=A.stopImmediatePropagation=A.preventDefault=f.noop;var b={mousedown:function(P){P=m(this.dom,P),this._mayPointerCapture=[P.zrX,P.zrY],this.trigger("mousedown",P)},mousemove:function(P){P=m(this.dom,P);var X=this._mayPointerCapture;X&&(P.zrX!==X[0]||P.zrY!==X[1])&&w(this,!0),this.trigger("mousemove",P)},mouseup:function(P){P=m(this.dom,P),w(this,!1),this.trigger("mouseup",P)},mouseout:function(P){P=m(this.dom,P),this._pointerCapturing&&(P.zrEventControl="no_globalout");var X=P.toElement||P.relatedTarget;P.zrIsToLocalDOM=h(this,X),this.trigger("mouseout",P)},touchstart:function(P){P=m(this.dom,P),s(P),this._lastTouchMoment=new Date,this.handler.processGesture(P,"start"),b.mousemove.call(this,P),b.mousedown.call(this,P)},touchmove:function(P){P=m(this.dom,P),s(P),this.handler.processGesture(P,"change"),b.mousemove.call(this,P)},touchend:function(P){P=m(this.dom,P),s(P),this.handler.processGesture(P,"end"),b.mouseup.call(this,P),+new Date-this._lastTouchMoment<a&&b.click.call(this,P)},pointerdown:function(P){b.mousedown.call(this,P)},pointermove:function(P){u(P)||b.mousemove.call(this,P)},pointerup:function(P){b.mouseup.call(this,P)},pointerout:function(P){u(P)||b.mouseout.call(this,P)}};f.each(["click","mousewheel","dblclick","contextmenu"],function(U){b[U]=function(P){P=m(this.dom,P),this.trigger(U,P)}});var x={pointermove:function(P){u(P)||x.mousemove.call(this,P)},pointerup:function(P){x.mouseup.call(this,P)},mousemove:function(P){this.trigger("mousemove",P)},mouseup:function(P){var X=this._pointerCapturing;w(this,!1),this.trigger("mouseup",P),X&&(P.zrEventControl="only_globalout",this.trigger("mouseout",P))}};function E(U,P){var X=P.domHandlers;l.pointerEventsSupported?f.each(t.pointer,function(F){_(P,F,function(j){X[F].call(U,j)})}):(l.touchEventsSupported&&f.each(t.touch,function(F){_(P,F,function(j){X[F].call(U,j),r(P)})}),f.each(t.mouse,function(F){_(P,F,function(j){j=p(j),P.touching||X[F].call(U,j)})}))}function T(U,P){l.pointerEventsSupported?f.each(o.pointer,X):l.touchEventsSupported||f.each(o.mouse,X);function X(F){function j(K){K=p(K),h(U,K.target)||(K=c(U,K),P.domHandlers[F].call(U,K))}_(P,F,j,{capture:!0})}}function _(U,P,X,F){U.mounted[P]=X,U.listenerOpts[P]=F,g(U.domTarget,e(P),X,F)}function C(U){var P=U.mounted;for(var X in P)P.hasOwnProperty(X)&&S(U.domTarget,e(X),P[X],U.listenerOpts[X]);U.mounted={}}function w(U,P){if(U._mayPointerCapture=null,i&&U._pointerCapturing^P){U._pointerCapturing=P;var X=U._globalHandlerScope;P?T(U,X):C(X)}}function O(U,P){this.domTarget=U,this.domHandlers=P,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(U,P){d.call(this),this.dom=U,this.painterRoot=P,this._localHandlerScope=new O(U,b),i&&(this._globalHandlerScope=new O(document,x)),this._pointerCapturing=!1,this._mayPointerCapture=null,E(this,this._localHandlerScope)}var k=I.prototype;k.dispose=function(){C(this._localHandlerScope),i&&C(this._globalHandlerScope)},k.setCursor=function(U){this.dom.style&&(this.dom.style.cursor=U||"default")},f.mixin(I,d);var M=I;R.exports=M},zdCA:function(R,D,n){"use strict";var y=n("TqRt"),g=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(n("3tO9")),m=l(n("q1tI")),p=y(n("PSzr")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:o})(t)}function l(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var e=d(o);if(e&&e.has(t))return e.get(t);var u={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}return u.default=t,e&&e.set(t,u),u}var a=function(o,e){return m.createElement(f.default,(0,S.default)((0,S.default)({},o),{},{ref:e,icon:p.default}))};a.displayName="BarsOutlined";var i=m.forwardRef(a);D.default=i},zeV3:function(R,D,n){"use strict";var y=n("pVnL"),g=n.n(y),S=n("lSNA"),m=n.n(S),p=n("q1tI"),f=n.n(p),d=n("TSYQ"),l=n.n(d),a=n("H84U"),i=function(e,u){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&u.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(e);c<s.length;c++)u.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(e,s[c])&&(r[s[c]]=e[s[c]]);return r},t={small:8,middle:16,large:24},o=function(u){var r,s=p.useContext(a.b),c=s.getPrefixCls,h=s.space,v=s.direction,A=u.size,b=A===void 0?(h==null?void 0:h.size)||"small":A,x=u.align,E=u.className,T=u.children,_=u.direction,C=_===void 0?"horizontal":_,w=u.prefixCls,O=i(u,["size","align","className","children","direction","prefixCls"]),I=p.Children.count(T);if(I===0)return null;var k=x===void 0&&C==="horizontal"?"center":x,M=c("space",w),U=l()(M,"".concat(M,"-").concat(C),(r={},m()(r,"".concat(M,"-rtl"),v==="rtl"),m()(r,"".concat(M,"-align-").concat(k),k),r),E),P="".concat(M,"-item"),X=v==="rtl"?"marginLeft":"marginRight";return p.createElement("div",g()({className:U},O),p.Children.map(T,function(F,j){return p.createElement("div",{className:P,key:"".concat(P,"-").concat(j),style:j===I-1||F===null||F===void 0?{}:m()({},C==="vertical"?"marginBottom":X,typeof b=="string"?t[b]:b)},F)}))};D.a=o},zuHt:function(R,D,n){var y=n("bYtY");function g(S){var m={};S.eachSeriesByType("map",function(p){var f=p.getMapType();if(p.getHostGeoModel()||m[f])return;var d={};y.each(p.seriesGroup,function(a){var i=a.coordinateSystem,t=a.originalData;a.get("showLegendSymbol")&&S.getComponent("legend")&&t.each(t.mapDimension("value"),function(o,e){var u=t.getName(e),r=i.getRegion(u);if(!r||isNaN(o))return;var s=d[u]||0,c=i.dataToPoint(r.center);d[u]=s+1,t.setItemLayout(e,{point:c,offset:s})})});var l=p.getData();l.each(function(a){var i=l.getName(a),t=l.getItemLayout(a)||{};t.showLabel=!d[i],l.setItemLayout(a,t)}),m[f]=!0})}R.exports=g}}]);